/* ==========================================================================
   site.v3.css — 全站前端 v3 皮肤（2026-11-29，玻璃分子风）
   --------------------------------------------------------------------------
   引入方式：includes/header.php 在 main.css 之后加载（全站生效）。
   分工：
     · main.css 的结构类（.section/.card/.grid-*）保留 —— 各页 HTML 不动
     · 本文件覆盖「观感」：底色、圆角、阴影、banner、按钮、字体阶梯、玻璃分子
   红线（与首页一致）：
     ① 品牌蓝 #005BAE 一族 + 白 + 灰，无渐变蓝（banner 深蓝底为纯色）
     ② 玻璃分子为 CSS 绘制（.glass 类），全站可复用
     ③ a4 打印区、后台 admin.* 完全不受影响（作用域限前台 body.site）
   ========================================================================== */

/* ── 0. 令牌 ── */
body.site {
    --sv-brand: #005BAE;
    --sv-deep: #062A4A;
    --sv-mid: #2E7FC2;
    --sv-tint: #EFF5FB;
    --sv-tint2: #DDEBF7;
    --sv-ink: #101820;
    --sv-ink2: #5A6B7B;
    --sv-ink3: #93A3B3;
    --sv-line: rgba(16,24,32,.08);
    --sv-r: 24px;
    --sv-r-md: 16px;
}

/* ── 1. 基字与链接 ── */
body.site {
    color: var(--sv-ink);
}
body.site a { transition: color .18s; }
body.site .section-heading { letter-spacing: -.02em; font-weight: 600; }
body.site .section-label { color: var(--sv-brand); font-weight: 600; }

/* ── 2. 顶栏：白底毛玻璃 ── */
body.site .header {
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--sv-line);
}
body.site .header-inner { max-width: 1240px; }
body.site .nav a { font-size: 14px; font-weight: 500; color: var(--sv-ink2); }
body.site .nav a:hover, body.site .nav a.active { color: var(--sv-ink); }
body.site .nav a::after { height: 2px; border-radius: 2px; background: var(--sv-brand); bottom: -2px; }
body.site .header .btn-primary,
body.site .header .btn {
    border-radius: 999px !important;
    background: var(--sv-deep) !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 11px 22px !important;
}
body.site .header .btn-primary:hover { background: var(--sv-brand) !important; }

/* ── 3. 页面 Banner：深蓝纯色 + 点阵纹理 + 玻璃气泡（替代旧渐变） ── */
body.site .page-banner {
    background: var(--sv-deep) !important;
    position: relative;
    overflow: hidden;
    padding: 96px 40px 88px;
}
body.site .page-banner::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1.6px);
    background-size: 26px 26px;
    opacity: .35;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 40%, #000 20%, transparent 72%);
    mask-image: radial-gradient(ellipse 60% 70% at 70% 40%, #000 20%, transparent 72%);
    pointer-events: none;
}
body.site .page-banner::after {
    content: '';
    position: absolute;
    right: -70px; top: -80px;
    width: 300px; height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.22);
    pointer-events: none;
}
body.site .page-banner__overlay { display: none !important; }
body.site .page-banner__content { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; text-align: left; }
body.site .page-banner h1 {
    font-size: clamp(36px, 4.6vw, 56px);
    font-weight: 600;
    letter-spacing: -.02em;
    margin-bottom: 12px;
}
body.site .page-banner p { color: #BFD9F2; max-width: 640px; margin: 0 auto 0 0; font-size: 15.5px; }

/* ── 4. 通用区块节奏 ── */
body.site section { padding: 100px 40px; }
body.site .section-inner { max-width: 1240px; }
body.site .section--alt, body.site section[style*="bg-light"] { background: var(--sv-tint) !important; }
body.site .section--dark { background: var(--sv-deep) !important; }

/* ── 5. 卡片：无边框白卡 + 悬浮阴影 ── */
body.site .card {
    border: 0 !important;
    border-radius: var(--sv-r) !important;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 10px 34px -12px rgba(6,42,74,.14);
    transition: box-shadow .2s, transform .2s;
}
body.site .card:hover { box-shadow: 0 4px 8px rgba(16,24,40,.05), 0 22px 50px -16px rgba(6,42,74,.22); transform: translateY(-2px); }
body.site .home-icon-box, body.site .home-card-title, body.site .home-card-desc {
    text-align: left;
}
body.site .home-icon-box {
    background: var(--sv-tint2) !important;
    color: var(--sv-brand) !important;
    border-radius: 14px !important;
}

/* ── 6. 按钮：胶囊化 ── */
body.site .btn {
    border-radius: 999px !important;
    font-weight: 600 !important;
    padding: 13px 26px !important;
    box-shadow: none !important;
}
body.site .btn-primary {
    background: var(--sv-brand) !important;
    border-color: var(--sv-brand) !important;
}
body.site .btn-primary:hover { background: var(--sv-mid) !important; }
body.site .btn-outline {
    background: transparent !important;
    color: var(--sv-ink) !important;
    border: 1.5px solid var(--sv-line) !important;
}
body.site .btn-outline:hover { border-color: var(--sv-ink3) !important; background: var(--sv-tint) !important; }
body.site .btn-text { color: var(--sv-brand); font-weight: 600; }
body.site .btn-text svg { transition: transform .18s; }
body.site .btn-text:hover svg { transform: translateX(4px); }

/* ── 7. 表格/表单（产品列表、询价、会员中心） ── */
body.site table { border-collapse: collapse; }
body.site th {
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--sv-ink3) !important;
    font-weight: 600 !important;
}
body.site td { border-color: var(--sv-line) !important; font-size: 14px; }
body.site input[type=text], body.site input[type=email], body.site input[type=password],
body.site input[type=tel], body.site select, body.site textarea {
    border-radius: 10px !important;
    border-color: var(--sv-line) !important;
    padding: 11px 14px !important;
    font-size: 14px !important;
}
body.site input:focus, body.site select:focus, body.site textarea:focus {
    border-color: rgba(0,91,174,.45) !important;
    box-shadow: 0 0 0 3px rgba(0,91,174,.09) !important;
    outline: none !important;
}

/* ── 8. 统计卡（about/stats 区） ── */
body.site .stat-card__number, body.site .stat-num { color: var(--sv-ink); font-weight: 600; letter-spacing: -.02em; }
body.site .stats__grid .stat-num { color: #fff; }
body.site .stat-card { border-radius: var(--sv-r-md) !important; }

/* ── 9. 产品卡（products/detail） ── */
body.site .product-card { border-radius: var(--sv-r-md); overflow: hidden; border: 1px solid var(--sv-line); transition: .2s; }
body.site .product-card:hover { box-shadow: 0 18px 44px -14px rgba(6,42,74,.25); transform: translateY(-3px); }
body.site .badge { border-radius: 6px !important; font-weight: 600 !important; }

/* ── 10. 页脚 ── */
body.site .footer, body.site footer {
    background: var(--sv-deep) !important;
    color: #8FA6BD;
}
body.site .footer a, body.site footer a { color: #8FA6BD; }
body.site .footer a:hover, body.site footer a:hover { color: #fff; }
body.site .footer h4, body.site .footer h5, body.site footer h4, body.site footer h5 { color: #fff; }

/* ── 11. 玻璃分子（全站可复用装饰，页面里 <span class="glass">） ── */
body.site .glass {
    position: absolute; border-radius: 50%;
    background:
        radial-gradient(circle at 32% 26%, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 40%),
        radial-gradient(circle at 72% 82%, rgba(0,91,174,.20) 0%, rgba(0,91,174,0) 55%),
        radial-gradient(circle at 50% 55%, rgba(255,255,255,.55) 0%, rgba(224,238,250,.85) 78%);
    box-shadow:
        inset 0 -14px 34px rgba(0,91,174,.14),
        inset 0 10px 22px rgba(255,255,255,.95),
        0 30px 70px -18px rgba(6,42,74,.22);
    border: 1px solid rgba(255,255,255,.9);
    pointer-events: none;
}
body.site .glass::after {
    content: ''; position: absolute; left: 18%; top: 12%;
    width: 34%; height: 20%; border-radius: 50%;
    background: rgba(255,255,255,.85); filter: blur(2px); transform: rotate(-18deg);
}
body.site .glass.sm::after { width: 40%; height: 24%; }
body.site .glass.green-tint {
    background:
        radial-gradient(circle at 32% 26%, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 40%),
        radial-gradient(circle at 70% 80%, rgba(0,91,174,.30) 0%, rgba(0,91,174,0) 55%),
        radial-gradient(circle at 50% 55%, rgba(255,255,255,.4) 0%, rgba(190,218,240,.92) 80%);
}

/* ── 12. 窄屏 ── */
@media (max-width: 1080px) {
    body.site section { padding: 72px 24px; }
    body.site .page-banner { padding: 72px 24px 64px; }
}

/* ── 13. 横向溢出保险：内页装饰/宽图统一裁剪 ── */
body.site { overflow-x: hidden; }
body.site .page-banner img.page-banner__bg { min-width: 100% !important; }
body.site section { overflow-x: clip; }
body.site .stats__grid { flex-wrap: wrap; }
body.site img { max-width: 100%; height: auto; }

/* ── 14. banner 有背景图时：蓝调压暗（不再黑遮罩） ── */
body.site .page-banner img.page-banner__bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
body.site .page-banner .page-banner__overlay {
    display: block !important;
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(6,42,74,.97) 0%, rgba(6,42,74,.88) 60%, rgba(0,91,174,.62) 100%) !important;
    z-index: 1;
}
body.site .page-banner__content { z-index: 2; }

/* ── 15. 顶栏 logo 区：白底上 logo 图与文字堆叠错位修复 ── */
body.site .header .logo { gap: 10px; }
body.site .header .logo-img { height: 40px; }

/* ── 16. 语言切换胶囊 ── */
body.site .lang-switch { border-left-color: var(--sv-line); }


/* ── 17. 首页 v3 排版类提升为全站（原在 index.php $extraStyle，about/business 等页同样使用） ── */
.kick { font-size: 13px; font-weight: 600; color: var(--sv-ink2); margin-bottom: 18px; }
.display { font-size: clamp(38px, 4.6vw, 58px); line-height: 1.16; font-weight: 600; letter-spacing: -.025em; color: var(--sv-ink); }
.display .hl { color: var(--sv-brand); }
.lead { color: var(--sv-ink2); font-size: 16px; max-width: 520px; margin-top: 22px; }
.sec { padding: 100px 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.about-vis { position: relative; height: 480px; }
.av1 { width: 300px; height: 300px; right: 40px; top: 30px; }
.av2 { width: 140px; height: 140px; right: 270px; top: 230px; }
.av3 { width: 90px; height: 90px; right: 90px; top: 330px; }
.av-st1 { width: 160px; right: 200px; top: 210px; transform: rotate(-40deg); }
.av-st2 { width: 130px; right: 120px; top: 310px; transform: rotate(28deg); }
.flow { background: var(--sv-tint2); padding: 100px 0; }
.flow-head { display: grid; grid-template-columns: 1fr 400px; gap: 60px; align-items: end; margin-bottom: 50px; }
.flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(16,24,32,.08); border: 1px solid rgba(16,24,32,.08); border-radius: 16px; overflow: hidden; }
.fcell { background: #F5FAFE; padding: 30px 30px 34px; min-height: 220px; position: relative; transition: .2s; }
.fcell:hover { background: #fff; }
.fcell .no { font-size: 13px; font-weight: 700; color: var(--sv-ink2); }
.fcell .fico { position: absolute; right: 24px; top: 24px; width: 44px; height: 44px; border-radius: 12px; background: rgba(0,91,174,.08); display: grid; place-items: center; color: var(--sv-brand); }
.fcell h4 { font-size: 18px; font-weight: 600; margin-top: 52px; color: var(--sv-ink); }
.fcell p { font-size: 12.5px; color: var(--sv-ink2); margin-top: 10px; line-height: 1.7; }
.band { background: var(--sv-deep); padding: 110px 0; position: relative; overflow: hidden; }
.band-dots { position: absolute; inset: 0; opacity: .5;
    background-image: radial-gradient(rgba(255,255,255,.5) 1px, transparent 1.6px); background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 65% 60% at 50% 50%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 65% 60% at 50% 50%, #000 30%, transparent 75%); }
.pillbtn { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 24px; border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer; border: 0; transition: .2s; text-decoration: none; }
.pillbtn.dark { background: var(--sv-deep); color: #fff; }
.pillbtn.blue { background: var(--sv-brand); color: #fff; }
.pillbtn.line { background: transparent; color: var(--sv-ink); border: 1.5px solid var(--sv-line); }
.hm-stick { position: absolute; background: linear-gradient(90deg, rgba(190,216,238,.9), rgba(160,200,232,.75)); height: 10px; border-radius: 6px; }
@media (max-width: 1080px) {
    .about-grid, .flow-head { grid-template-columns: 1fr; }
    .about-vis { display: none; }
    .flow-grid { grid-template-columns: 1fr 1fr; }
    .sec, .flow { padding: 72px 0; }
}
