/*
Theme Name: LeadGen B2B
Theme URI: https://example.com
Author: 自建
Description: 浅蓝精致科技风的 B 端获客主题（#2563eb 主题蓝 + 白玻璃拟态 + HUD 控制台 + 移动端 HUD 抽屉导航）。服务线 + 行业方案 + 案例 + 询盘留痕，零前端框架依赖。
Version: 2.6.0
Requires PHP: 7.4
Text Domain: leadgen
Tags: custom-menu, featured-images, translation-ready
*/

/* ================================================================ 字体（自托管）
 * 展示字 Sora + 等宽 JetBrains Mono：与效果图 index.html 同款字形。
 * 放本地而不是 Google CDN——国内访问 fonts.googleapis.com 慢且不稳，会拖慢首屏。
 * 中文字形 Sora 没有，自动回落到系统中文（苹方 / 微软雅黑），观感与 Noto Sans SC 接近。
 */
@font-face {
    font-family: 'Sora';
    src: url('fonts/sora-800.woff2') format('woff2');
    font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Sora';
    src: url('fonts/sora-700.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('fonts/jetbrains-400.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('fonts/jetbrains-600.woff2') format('woff2');
    font-weight: 600; font-style: normal; font-display: swap;
}

/* ================================================================ 设计令牌
 * 浅蓝明亮 · #2563eb 主题蓝 · 精致科技（Refined Technical）
 * 主色占大面积（浅蓝底 + 蓝氛围光），强调色只用于关键动作（CTA / 节点 / 编号）。
 */
:root {
    --bg: #eef5ff;
    --bg-2: #ffffff;
    --surface: rgba(255, 255, 255, .74);
    --surface-solid: #ffffff;
    --surface-2: rgba(37, 99, 235, .06);
    --text: #0e2440;
    --text-2: #33527c;
    --muted: #5b7290;
    --accent: #2563eb;
    --accent-ink: #1e40af;
    --accent-2: #60a5fa;
    --accent-3: #3b82f6;
    --sun: #2563eb;

    --line: rgba(37, 99, 235, .12);
    --line-strong: rgba(37, 99, 235, .40);

    --radius: 14px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --max: 1180px;

    --shadow-1: 0 2px 8px rgba(37, 99, 235, .08);
    --shadow-2: 0 8px 28px rgba(37, 99, 235, .12);
    --shadow-3: 0 24px 60px rgba(37, 99, 235, .16), 0 0 0 1px rgba(37, 99, 235, .08);
    --glow: 0 0 24px rgba(37, 99, 235, .22);

    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --dur-fast: 170ms;
    --dur-base: 340ms;

    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    --display: "Sora", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC",
               "Microsoft YaHei", sans-serif;
    --sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
            "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

/* 防止 full-bleed 的 hero 因 100vw 含滚动条宽度而产生横向滚动 */
html { overflow-x: hidden; scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(160deg, #a9ccff 0%, #7fb0f7 52%, #5b95f2 100%);
    font: 16px/1.75 var(--sans);
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    position: relative;
}

/* 氛围层：渐变网格（三团径向光缓慢漂移）+ 细噪点，拒绝平涂 */
body::before {
    content: '';
    position: fixed; inset: -20%;
    z-index: -2; pointer-events: none;
    background:
        radial-gradient(58rem 40rem at 82% -10%, rgba(255, 255, 255, .6), transparent 60%),
        radial-gradient(50rem 38rem at 4% 4%, rgba(37, 99, 235, .16), transparent 55%),
        radial-gradient(42rem 42rem at 50% 122%, rgba(96, 165, 250, .34), transparent 60%);
    background-size: 200% 200%;
    animation: drift 22s ease-in-out infinite;
}
body::after {
    content: '';
    position: fixed; inset: 0;
    z-index: -1; pointer-events: none; opacity: .07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}
/* 三团光晕各自独立漂移（原为整体水平平移，观感偏生硬） */
@keyframes drift {
    0%, 100% { background-position: 0% 0%, 0% 0%, 0% 0%; }
    50%      { background-position: 12% 8%, -10% -6%, -8% 6%; }
}

a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--accent); }

/* 与效果图一致：展示字 Sora、字重 800、行高收紧到 1.04、字距 -.02em */
h1, h2, h3 {
    font-family: var(--display);
    color: var(--text); line-height: 1.04; font-weight: 800;
    letter-spacing: -.02em; margin: 0 0 .6em;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.08rem; }
/* 长文正文里的标题放宽行高，1.04 在段落中会挤 */
.entry h2, .entry h3, .leadform h2, .leadform h3 { line-height: 1.28; font-weight: 700; letter-spacing: -.01em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* 小标签：蓝色胶囊，全站统一 */
.eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font: 600 .78rem/1 var(--mono);
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--accent-ink);
    background: rgba(37, 99, 235, .08);
    border: 1px solid var(--line-strong);
    padding: 7px 14px; border-radius: var(--radius-pill);
    margin-bottom: 16px;
}
/* 区块标题组内的小标签不额外撑开间距（h2 自带 14px 上边距） */
.section-head .eyebrow { margin-bottom: 0; }

/* 氛围层：漂浮球 + 透视网格地板（叠在渐变网格之上，制造纵深） */
.atmosphere { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb {
    position: absolute; border-radius: 50%; filter: blur(10px); opacity: .5;
    background: radial-gradient(circle at 30% 30%, rgba(96, 165, 250, .9), var(--accent));
    will-change: transform;
    animation: orbFloat 14s ease-in-out infinite;
}
.orb.o1 { width: 130px; height: 130px; top: 16%; left: 7%; }
.orb.o2 { width: 86px; height: 86px; top: 62%; left: 74%; animation-duration: 18s; animation-direction: reverse; }
.orb.o3 { width: 58px; height: 58px; top: 40%; left: 46%; animation-duration: 12s; }
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    33%      { transform: translate(18px, -22px); }
    66%      { transform: translate(-14px, 12px); }
}

/* 透视网格地板：浅蓝底上的一层科技纵深 */
.grid-floor {
    position: fixed; left: 50%; bottom: -12%; width: 160%; height: 60%;
    z-index: 0; pointer-events: none;
    transform: translateX(-50%) perspective(620px) rotateX(64deg);
    transform-origin: bottom;
    background-image: linear-gradient(rgba(37, 99, 235, .12) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(37, 99, 235, .10) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(closest-side at 50% 30%, #000 30%, transparent 78%);
            mask-image: radial-gradient(closest-side at 50% 30%, #000 30%, transparent 78%);
    opacity: .5;
}

/* 主体内容必须压在氛围层之上（否则 fixed 的 atmosphere 会盖住正文） */
.main, .site-foot { position: relative; z-index: 2; }

/* 锚点跳转：不被吸顶栏挡住标题 */
:where(#cap, #platform, #trust, #about, #cta) { scroll-margin-top: 88px; }

/* 入场揭示：统一节奏，滚动进入视口时逐段浮现 */
.reveal { opacity: 0; transform: translateY(26px); will-change: opacity, transform; }
.reveal.in {
    opacity: 1; transform: none;
    transition: opacity .62s var(--ease-out), transform .62s var(--ease-out);
}
/* 首屏与卡片错峰入场，整页节奏统一 */
.hero-copy > .reveal:nth-child(1) { transition-delay: 60ms; }
.hero-copy > .reveal:nth-child(2) { transition-delay: 140ms; }
.hero-copy > .reveal:nth-child(3) { transition-delay: 220ms; }
.hero-copy > .reveal:nth-child(4) { transition-delay: 300ms; }
.hero-copy > .reveal:nth-child(5) { transition-delay: 380ms; }
.grid > .card:nth-child(1) { transition-delay: 0ms; }
.grid > .card:nth-child(2) { transition-delay: 80ms; }
.grid > .card:nth-child(3) { transition-delay: 160ms; }
.grid > .card:nth-child(4) { transition-delay: 240ms; }
.grid > .card:nth-child(5) { transition-delay: 320ms; }
.grid > .card:nth-child(6) { transition-delay: 400ms; }
/* 非对称卡片网格同样错峰入场 */
.cards > .card:nth-child(1) { transition-delay: 0ms; }
.cards > .card:nth-child(2) { transition-delay: 80ms; }
.cards > .card:nth-child(3) { transition-delay: 160ms; }
.cards > .card:nth-child(4) { transition-delay: 240ms; }
.cards > .card:nth-child(5) { transition-delay: 320ms; }
.cards > .card:nth-child(6) { transition-delay: 400ms; }

/* 顶部阅读进度条 */
.progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
    box-shadow: 0 0 12px rgba(37, 99, 235, .6);
    z-index: 80; pointer-events: none;
}

/* ================================================================ 头部（浅色玻璃 + 移动端 HUD） */

.site-head {
    position: sticky; top: 0; z-index: 50;
    background: linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .62));
    -webkit-backdrop-filter: blur(16px);
            backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow var(--dur-base) ease, background var(--dur-base) ease;
}
.site-head.scrolled {
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 36px rgba(37, 99, 235, .14);
}
.head-inner { display: flex; align-items: center; gap: 24px; height: 68px; }

.brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 1.06rem; color: var(--text);
    letter-spacing: -.01em; white-space: nowrap;
}
.brand small {
    display: block; font: 500 .7rem/1.3 var(--mono);
    letter-spacing: .18em; color: var(--muted);
}
.brand .mark {
    width: 34px; height: 34px; flex: none;
    filter: drop-shadow(0 0 6px rgba(37, 99, 235, .4));
}
.brand img { max-height: 30px; width: auto; }
.brand:hover { text-decoration: none; }

.nav { margin-left: 18px; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a { position: relative; color: var(--muted); font-size: .92rem; font-weight: 500; }
.nav a::after {
    content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px;
    background: var(--accent); box-shadow: var(--glow);
    transition: right var(--dur-base) var(--ease-out);
}
.nav a:hover { color: var(--accent-ink); text-decoration: none; }
.nav a:hover::after { right: 0; }

/* 顶栏右侧：语言切换 + CTA + 汉堡 */
.head-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }

/* ---- 汉堡 / 菜单触发：发光玻璃方块 + 变形图标 ---- */
.nav-toggle {
    display: none; position: relative; flex: none; width: 44px; height: 44px;
    border: 1px solid var(--line-strong); border-radius: 12px;
    background: rgba(255, 255, 255, .72);
    cursor: pointer; overflow: hidden;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: var(--glow);
    transition: border-color var(--dur-fast), box-shadow var(--dur-base);
}
.nav-toggle::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, .14), transparent 62%);
}
.nav-toggle > span {
    position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px;
    background: var(--accent-ink);
    transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast), top var(--dur-base) var(--ease-out);
}
.nav-toggle > span:nth-child(1) { top: 16px; }
.nav-toggle > span:nth-child(2) { top: 21px; }
.nav-toggle > span:nth-child(3) { top: 26px; }
.nav-toggle.open { box-shadow: 0 0 0 2px rgba(37, 99, 235, .28), var(--glow); }
.nav-toggle.open > span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.open > span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.nav-toggle.open > span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---- 遮罩：系统暗场 ---- */
.nav-scrim {
    position: fixed; inset: 0; z-index: 55;
    background: rgba(14, 36, 64, .34);
    opacity: 0; visibility: hidden;
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    transition: opacity var(--dur-base) ease, visibility var(--dur-base);
}
.nav-scrim.open { opacity: 1; visibility: visible; }

/* ---- 抽屉：HUD 控制台面板 ---- */
.nav-mobile {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); z-index: 60;
    background: linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(238, 245, 255, .97));
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-left: 1px solid var(--line-strong);
    box-shadow: -24px 0 70px rgba(37, 99, 235, .22);
    transform: translateX(101%);
    transition: transform var(--dur-base) var(--ease-out);
    display: flex; flex-direction: column; overflow: hidden;
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .55;
    background:
        linear-gradient(rgba(37, 99, 235, .06) 1px, transparent 1px) 0 0 / 22px 22px,
        linear-gradient(90deg, rgba(37, 99, 235, .06) 1px, transparent 1px) 0 0 / 22px 22px;
}
.nav-mobile::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 3;
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
    box-shadow: 0 0 14px rgba(37, 99, 235, .5);
}

/* 抽屉头部：HUD 状态条 */
.nav-m-head {
    position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: 10px;
    padding: 18px 22px 14px; border-bottom: 1px solid var(--line);
}
.nav-m-head .ttl {
    font: 600 .78rem/1 var(--mono); letter-spacing: .18em;
    color: var(--accent-ink); text-transform: uppercase;
}
.nav-m-head .sys {
    margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
    font: 400 .68rem/1 var(--mono); letter-spacing: .06em; color: var(--muted);
}
.nav-m-head .sys i {
    width: 8px; height: 8px; border-radius: 50%;
    background: #22c55e; box-shadow: 0 0 9px #22c55e;
    animation: pulse 1.8s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.nav-close {
    margin-left: 8px; width: 34px; height: 34px; flex: none;
    border: 1px solid var(--line); border-radius: 9px;
    background: #fff; display: grid; place-items: center; cursor: pointer;
    color: var(--accent-ink);
    transition: border-color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-base) var(--ease-spring);
}
.nav-close:hover { border-color: var(--line-strong); box-shadow: var(--glow); transform: rotate(90deg); }
.nav-close svg { width: 16px; height: 16px; }

/* 链接：电路总线 + 节点编号 */
.nav-list { position: relative; z-index: 2; flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 4px; padding: 20px 22px 8px; }
.nav-list::before {
    content: ''; position: absolute; left: 49px; top: 32px; bottom: 32px; width: 2px;
    background: linear-gradient(180deg, transparent, rgba(37, 99, 235, .32), transparent);
}
.nav-link {
    position: relative; display: flex; align-items: center; gap: 16px;
    font-size: 1.06rem; font-weight: 600; color: var(--text);
    padding: 13px 14px; border-radius: 12px;
    transition: background var(--dur-fast), color var(--dur-fast);
}
.nav-mobile.open .nav-link { animation: navIn .5s var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes navIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.nav-link .idx {
    position: relative; z-index: 1;
    font: 600 .72rem/1 var(--mono); color: var(--accent);
    width: 28px; height: 28px; flex: none; display: grid; place-items: center;
    border: 1px solid var(--line-strong); border-radius: 9px; background: #fff;
    transition: background var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast);
}
.nav-link:hover, .nav-link:focus-visible { background: rgba(37, 99, 235, .08); color: var(--accent-ink); text-decoration: none; }
.nav-link:hover .idx, .nav-link:focus-visible .idx {
    background: var(--accent); color: #fff; border-color: var(--accent);
    box-shadow: 0 0 14px rgba(37, 99, 235, .5);
}
.nav-link:nth-child(1) { --d: 90ms; }
.nav-link:nth-child(2) { --d: 150ms; }
.nav-link:nth-child(3) { --d: 210ms; }
.nav-link:nth-child(4) { --d: 270ms; }
.nav-link:nth-child(5) { --d: 330ms; }
.nav-link:nth-child(6) { --d: 390ms; }
.nav-link:nth-child(7) { --d: 450ms; }

/* 语言 + CTA 区 */
.nav-m-foot {
    position: relative; z-index: 2; flex: none;
    padding: 16px 22px calc(26px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 12px;
}
.nav-m-foot .lang-drop { width: 100%; }
.nav-m-foot .lang-toggle,
.nav-m-foot .btn { width: 100%; justify-content: center; }
.nav-m-foot .m-cta { width: 100%; font-size: 1rem; padding: 15px; }
/* 抽屉底部的语言下拉改为向上展开：向下会被 drawer 底部裁掉，向上才完整可见 */
.nav-m-foot .lang-menu { top: auto; bottom: calc(100% + 10px); transform-origin: bottom right; }

/* ================================================================ Hero（浅蓝 + 科技元素） */

.hero {
    position: relative; overflow: hidden;
    /* full-bleed：突破 .main.wrap 的 1180px 居中限制，让首屏左右占满整屏 */
    width: 100vw; left: 50%; margin-left: -50vw; margin-top: -30px;
    padding: 84px 0 96px;
}
/* 标题后侧柔光晕，给大字补光（与效果图同位置/同尺寸/带模糊） */
.hero::before {
    content: ''; position: absolute; left: -8%; top: 6%; width: 62%; height: 84%;
    background: radial-gradient(closest-side, rgba(255, 255, 255, .6), transparent 72%);
    filter: blur(8px);
    pointer-events: none; z-index: 0;
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }

/* 网络节点连线画布 */
.net-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
/* 线框地球（全球 / 互联网意象） */
.globe {
    position: absolute; left: 56%; top: 42%; width: 560px; height: 560px;
    transform: translate(-50%, calc(-50% + var(--py, 0px)));
    z-index: 0; opacity: .22; pointer-events: none;
    will-change: transform;
}
.globe svg { width: 100%; height: 100%; animation: globeSpin 64s linear infinite; transform-origin: 50% 50%; }
@keyframes globeSpin { to { transform: rotate(360deg); } }
/* 悬浮技术标签 */
.chips {
    position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
    transform: translateY(var(--py, 0px)); will-change: transform;
}
.chip {
    position: absolute; font: 600 .72rem/1 var(--mono);
    color: var(--accent-ink); background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(37, 99, 235, .30); border-radius: var(--radius-pill);
    padding: 6px 12px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, .18);
    white-space: nowrap; animation: chipFloat 9s ease-in-out infinite;
}
.chip.v2 { color: var(--accent); border-color: rgba(37, 99, 235, .45); }
.chip.v3 { color: #0e6bd6; }
@keyframes chipFloat {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50%      { transform: translateY(-16px) rotate(1deg); }
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero .eyebrow { background: rgba(37, 99, 235, .08); border-color: var(--line-strong); }
/* eyebrow 呼吸点 */
.eyebrow .dot {
    width: 7px; height: 7px; border-radius: 50%; flex: none;
    background: var(--sun); box-shadow: 0 0 10px var(--sun);
    animation: beat 1.6s infinite;
}
@keyframes beat { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.8); } }
.hero h1 {
    font-size: clamp(2.9rem, 5.8vw, 4.8rem); font-weight: 800; line-height: 1.04;
    letter-spacing: -.03em; margin: 22px 0 20px; max-width: 16em;
}
.hero h1 .grad {
    background: linear-gradient(100deg, #0e2440 6%, #1e40af 45%, #2563eb 70%, #1e40af 92%);
    background-size: 220% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 220% center; } }
.hero .lead { color: #2b4a72; font-size: 1.12rem; max-width: 30em; margin: 0 0 30px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

/* 信任指标小行 */
.trust-line { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .9rem; color: #2b4a72; }
.trust-line span { display: inline-flex; align-items: center; gap: 9px; }
.trust-line span::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--sun); box-shadow: 0 0 8px var(--sun);
}
.trust-line b { color: var(--accent); font-family: var(--mono); font-weight: 600; }

/* 滚动引导：hero → 下一区的视觉桥梁（绝对定位在首屏底部居中） */
.scroll-cue {
    position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
    z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 9px;
    font: 500 .72rem/1 var(--mono); letter-spacing: .14em;
    color: var(--accent-ink); opacity: .9;
    transition: color var(--dur-fast) ease;
}
.scroll-cue:hover { color: var(--accent); text-decoration: none; }
.scroll-cue .mouse {
    width: 24px; height: 38px; border: 2px solid var(--line-strong);
    border-radius: 14px; display: flex; justify-content: center; padding-top: 7px;
    background: rgba(255, 255, 255, .4);
}
.scroll-cue .wheel {
    width: 4px; height: 8px; border-radius: 3px; background: var(--accent);
    animation: wheel 1.8s var(--ease-out) infinite;
}
.scroll-cue .cue-text { animation: cueFade 2.4s ease-in-out infinite; }
@keyframes wheel {
    0%   { transform: translateY(0); opacity: 1; }
    70%  { transform: translateY(9px); opacity: 0; }
    100% { opacity: 0; }
}
@keyframes cueFade { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* 推理控制台（记忆点：HUD 面板） */
.console {
    position: relative; z-index: 2;
    background: var(--surface); border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg); padding: 18px;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255, 255, 255, .65);
    overflow: hidden; will-change: transform;
}
.console::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(20rem 12rem at 90% -10%, rgba(37, 99, 235, .18), transparent 60%),
        linear-gradient(rgba(37, 99, 235, .05) 1px, transparent 1px) 0 0 / 22px 22px,
        linear-gradient(90deg, rgba(37, 99, 235, .05) 1px, transparent 1px) 0 0 / 22px 22px;
}
.console .scan {
    position: absolute; left: 0; right: 0; top: 0; height: 42%;
    z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(96, 165, 250, .22), transparent);
    animation: scanMove 4.5s linear infinite;
}
@keyframes scanMove { 0% { transform: translateY(-120%); } 100% { transform: translateY(260%); } }
.console .top {
    position: relative; display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; margin-bottom: 12px;
    background: rgba(37, 99, 235, .07); border-radius: 10px;
}
.console .top .dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 9px #22c55e; animation: pulse 1.8s infinite; }
.console .top .title { font: 400 .84rem/1 var(--mono); color: var(--text); }
.console .top .host { margin-left: auto; font: 600 .74rem/1 var(--mono); color: var(--accent-ink); letter-spacing: .04em; }
.console .c-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; }
.console .c-stat {
    background: rgba(255, 255, 255, .7); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 12px 14px;
    transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base), box-shadow var(--dur-base);
}
.console .c-stat:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--glow); }
.console .c-stat .k { font: 500 .72rem/1 var(--mono); color: var(--muted); letter-spacing: .04em; }
.console .c-stat .v { font: 600 1.5rem/1.25 var(--mono); color: var(--accent); margin-top: 4px; }
.console .c-stat .v em { font-style: normal; font-size: .8rem; color: var(--muted); font-weight: 400; }
/* token 流面板 */
.console .c-stream {
    position: relative; margin-top: 14px; height: 96px; overflow: hidden;
    padding: 12px 14px; border-radius: var(--radius);
    background: rgba(14, 36, 64, .92); border: 1px solid var(--line);
    font: .78rem/1.7 var(--mono); color: #cfe3ff;
}
.console .c-stream .row { white-space: nowrap; opacity: 0; animation: streamIn .5s forwards; }
.console .c-stream .ok { color: #4ade80; }
.console .c-stream .t { color: #9db8d8; }
@keyframes streamIn { from { opacity: 0; transform: translateY(7px); } to { opacity: .92; transform: none; } }
/* 部署进度条 */
.console .deploy { position: relative; margin-top: 14px; }
.console .deploy .lab {
    display: flex; justify-content: space-between;
    font: 500 .76rem/1 var(--mono); color: var(--muted); margin-bottom: 7px;
}
.console .deploy .bar {
    height: 8px; border-radius: var(--radius-pill); overflow: hidden;
    background: rgba(37, 99, 235, .12); border: 1px solid var(--line);
}
.console .deploy .bar i {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
    box-shadow: 0 0 12px rgba(37, 99, 235, .45);
    animation: fill 4.5s var(--ease-out) infinite;
}
@keyframes fill { 0% { width: 8%; } 60% { width: 92%; } 100% { width: 92%; } }

/* 控制台缓慢浮动（有动效偏好时） */
@media (prefers-reduced-motion: no-preference) {
    .console { animation: floaty 7s ease-in-out infinite; }
}

/* ================================================================ 按钮（蓝色焦点） */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border: 0; border-radius: var(--radius-pill);
    background: linear-gradient(120deg, var(--accent-3), var(--accent));
    color: #fff; font-weight: 700; font-size: .95rem; font-family: inherit;
    cursor: pointer; text-align: center;
    box-shadow: 0 10px 26px rgba(37, 99, 235, .4);
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
    transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.btn:hover {
    transform: translateY(-2px); color: #fff; text-decoration: none;
    box-shadow: 0 14px 42px rgba(37, 99, 235, .55);
}
.btn-ghost {
    background: #fff; color: var(--accent-ink);
    border: 1px solid var(--line-strong); box-shadow: var(--shadow-1);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--glow); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }

/* ================================================================ 主体 */

.main { padding: 30px 24px 44px; }

.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.crumbs .sep { margin: 0 8px; color: var(--line); }

.entry { max-width: 46em; }
.entry img { max-width: 100%; height: auto; border-radius: var(--radius); }
.entry h2 { margin-top: 1.9em; }
.entry h3 { margin-top: 1.5em; }
.entry table { border-collapse: collapse; width: 100%; margin: 1.3em 0; font-size: .95rem; }
.entry th, .entry td { border: 1px solid var(--line); padding: 9px 13px; text-align: left; }
.entry th { background: var(--surface-2); }

.facts { width: auto; min-width: 340px; background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 6px; }
.facts th { width: 100px; border: 0; background: none; color: var(--muted); font-weight: 400; }
.facts td { border: 0; font-weight: 600; color: var(--text); }
.metric { color: var(--accent); font-weight: 700; }

/* ================================================================ 区块与卡片（白玻璃） */

.section { max-width: var(--max); margin: 76px auto; padding: 0 24px; }
/* 与效果图 .sec-head 对齐：标题更大、整组下边距 48px */
.section-head { margin-bottom: 48px; max-width: 42em; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin: 14px 0 12px; }
/* 短杠标记放在小标签前（与效果图同行前置），而不是独占一行压在标题上 */
.section-head .eyebrow::before {
    content: ''; flex: none; width: 24px; height: 2px; border-radius: 2px;
    background: var(--accent); box-shadow: 0 0 10px rgba(37, 99, 235, .5);
}
.section-head p { color: var(--text-2); margin: 0; max-width: 44em; font-size: 1.05rem; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--center .eyebrow::before { display: none; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
    position: relative; display: block; overflow: hidden;
    padding: 26px 24px;
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: var(--surface);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    color: var(--text);
    transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base), border-color var(--dur-base);
}
/* 与效果图一致：hover 抬升 8px + 蓝色辉光（原为 3px + 大阴影，观感偏沉） */
.card:hover {
    transform: translateY(-8px); border-color: var(--line-strong); text-decoration: none;
    box-shadow: var(--glow);
}
/* hover 渐变描边：与效果图一致的一圈流光边 */
.card::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: linear-gradient(120deg, transparent, var(--accent), transparent);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; pointer-events: none; transition: opacity var(--dur-base);
}
.card:hover::after { opacity: 1; }
.card .num { font: 700 .8rem/1 var(--mono); color: var(--accent); letter-spacing: .1em; display: block; margin-bottom: 10px; }
.card h3 { font-size: 1.18rem; margin-bottom: 9px; color: var(--text); transition: color var(--dur-fast); }
.card:hover h3 { color: var(--accent-ink); }
.card p { margin: 0; font-size: .94rem; color: var(--muted); }
.card .go { font-size: .88rem; font-weight: 700; color: var(--accent); margin-top: 12px; display: block; }

/* 非对称卡片网格（效果图 .cards）：6 列基底，普通卡 span 2、重点卡 span 3 */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cards > .card { grid-column: span 2; }
.cards > .card:nth-child(6n + 1),
.cards > .card:nth-child(6n) { grid-column: span 3; }

/* 服务卡片图标芯片：与效果图 .ico 同尺寸（48/圆角14/内边距10） */
.icon-chip {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; box-sizing: border-box; padding: 10px;
    border-radius: 14px; margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .16), rgba(37, 99, 235, .04));
    border: 1px solid rgba(37, 99, 235, .18); color: var(--accent);
    transition: transform var(--dur-base) var(--ease-spring), background var(--dur-base);
}
.icon-chip .svgic { width: 100%; height: 100%; display: block; }
.card--icon:hover .icon-chip {
    transform: scale(1.08) rotate(-6deg);
    background: linear-gradient(135deg, rgba(37, 99, 235, .24), rgba(37, 99, 235, .08));
}

/* ================================================================ 列表 */

.list { list-style: none; padding: 0; }
.list > li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.list h2 { font-size: 1.15rem; margin-bottom: .3em; }
.list p { margin: .3em 0 0; }

.subpages { margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--line); }
.subpages ul { list-style: none; padding: 0; columns: 2; }
.subpages li { margin-bottom: 9px; }

/* ================================================================ 信任数据带 */

.band--metrics { margin: 76px 0; }
.metrics { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.metric-card {
    padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: var(--surface);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, .7);
    transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base), border-color var(--dur-base);
}
.metric-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-3); }
.metric-num {
    font: 800 1.5rem/1.15 var(--mono); color: var(--accent); letter-spacing: -.01em;
    margin-bottom: 8px;
}
.metric-label { color: var(--text-2); font-size: .92rem; }

/* ================================================================ 指标跑马灯（两端渐隐，衔接更顺） */

.marquee-band {
    position: relative; overflow: hidden;
    /* full-bleed：和 hero 一样突破 .main.wrap 的 1180px 限制，左右铺满 */
    width: 100vw; left: 50%; margin-left: -50vw;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(238, 245, 255, .4));
    padding: 30px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.m-item {
    display: flex; align-items: center; gap: 14px; white-space: nowrap;
    padding: 0 44px; border-right: 1px solid var(--line);
}
.m-item .num { font: 800 2.2rem/1 var(--display); color: var(--accent); letter-spacing: -.02em; }
.m-item .lab { font-size: .92rem; color: var(--muted); }

/* ================================================================ 部署平台：左右 split + 代码面板 */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feat-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 16px; }
.feat-list li { display: flex; gap: 13px; align-items: flex-start; color: var(--text-2); transition: transform var(--dur-base) var(--ease-out); }
.feat-list li:hover { transform: translateX(6px); }
.feat-list .chk {
    flex: none; width: 24px; height: 24px; border-radius: 50%; margin-top: 2px;
    background: rgba(37, 99, 235, .10); border: 1px solid var(--line-strong);
    display: grid; place-items: center; color: var(--accent-ink); font-size: .8rem;
    transition: transform var(--dur-base) var(--ease-spring), background var(--dur-fast);
}
.feat-list li:hover .chk { transform: scale(1.18) rotate(8deg); background: rgba(37, 99, 235, .18); }
.feat-list b { color: var(--text); }

.codepanel {
    background: #061528; border: 1px solid rgba(37, 99, 235, .20);
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-3);
    font-family: var(--mono);
}
.codepanel .bar {
    display: flex; gap: 7px; padding: 13px 16px;
    border-bottom: 1px solid rgba(37, 99, 235, .14); background: rgba(255, 255, 255, .04);
}
.codepanel .bar i { width: 11px; height: 11px; border-radius: 50%; background: #243a63; }
.codepanel .bar i:nth-child(1) { background: #ff5f57; }
.codepanel .bar i:nth-child(2) { background: #febc2e; }
.codepanel .bar i:nth-child(3) { background: #28c840; }
.codepanel pre {
    margin: 0; padding: 20px; font-size: .84rem; line-height: 1.85;
    color: #cfe3ff; overflow-x: auto;
}
.codepanel .cm { color: #7e93bb; }
.codepanel .k { color: #9fe9ff; }
.codepanel .s { color: #3dffa0; }
.codepanel .c { color: #6aa0ff; }
.codepanel .ok { color: #4ade80; }

/* ================================================================ 资质合规徽章 */

.badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.badge {
    display: flex; align-items: center; gap: 10px;
    border: 1px solid var(--line); border-radius: var(--radius-pill);
    padding: 10px 18px; font-size: .88rem; color: var(--text); background: #fff;
    transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-fast), box-shadow var(--dur-base);
}
.badge:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--glow); }
.badge svg { width: 20px; height: 20px; color: var(--accent-ink); transition: transform var(--dur-base) var(--ease-spring); }
.badge:hover svg { transform: scale(1.18) rotate(8deg); }

/* ================================================================ CTA 带（全页唯一饱和蓝焦点块） */

/* 与效果图 .cta-band 一致：全页唯一饱和蓝焦点块，居中（标题 + 副文案 + 按钮行） */
.band--cta {
    position: relative; margin: 76px auto 0; padding: 64px 48px;
    border-radius: var(--radius-lg); overflow: hidden; color: #fff;
    text-align: center;
    background: linear-gradient(120deg, var(--accent), var(--accent-ink));
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 24px 64px rgba(37, 99, 235, .42);
}
.band--cta::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(40rem 22rem at 50% -40%, rgba(255, 255, 255, .28), transparent 60%);
    animation: drift 18s ease-in-out infinite;
}
.band-inner { position: relative; z-index: 2; }
.band--cta h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin: 0; }
.band--cta p { color: rgba(255, 255, 255, .9); margin: 14px auto 28px; max-width: 34em; }
.cta-actions {
    position: relative; z-index: 2;
    display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}
/* 蓝底上按钮反相，形成清晰焦点 */
.band--cta .btn { background: #fff; color: var(--accent); box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.band--cta .btn:hover { color: var(--accent); box-shadow: 0 16px 46px rgba(0, 0, 0, .35); }
.band--cta .btn-ghost {
    background: rgba(255, 255, 255, .10); color: #fff;
    border: 1px solid rgba(255, 255, 255, .6); box-shadow: none;
}
.band--cta .btn-ghost:hover { border-color: #fff; color: #fff; box-shadow: 0 0 20px rgba(255, 255, 255, .4); }

/* 留资表单：独立居中白卡，放在蓝块下方，不破坏焦点块的居中构图 */
.lead-band { max-width: 560px; margin: 26px auto 0; text-align: left; }
.band-form {
    background: rgba(255, 255, 255, .96); border: 1px solid rgba(255, 255, 255, .6);
    border-radius: var(--radius-lg); padding: 22px;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}

/* ================================================================ 表单 */

.leadform { max-width: 30em; margin-top: 22px; scroll-margin-top: 88px; }
.leadform p { margin: 0 0 14px; }
.leadform label { display: block; font-size: .9rem; margin-bottom: 6px; font-weight: 600; color: var(--text-2); }
.leadform input, .leadform textarea {
    width: 100%; padding: 11px 13px; font: inherit;
    border: 1px solid var(--line-strong); border-radius: var(--radius);
    background: #fff; color: var(--text);
    transition: border-color .15s, box-shadow .15s;
}
.leadform input:focus, .leadform textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
}
.band--cta .leadform { max-width: none; margin-top: 0; }
.band--cta .leadform label { color: var(--text-2); }
.band--cta .leadform .btn { width: 100%; }
.req { color: #d64545; }
.ok {
    padding: 14px 17px; border-radius: var(--radius); border: 1px solid var(--line-strong);
    background: rgba(37, 99, 235, .10); color: var(--accent-ink); font-weight: 600;
}
.hp { position: absolute; left: -9999px; }

/* ================================================================ 底部（浅色） */

.site-foot {
    margin-top: 96px; padding: 56px 0 36px;
    border-top: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, .66);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
/* 与效果图一致：4 列（品牌列更宽）+ 等宽体 uppercase 小标题 + 独立底栏 */
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.foot-grid h4 {
    font: 400 .82rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted); margin: 0 0 16px;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 0; }
.site-foot a { color: var(--muted); font-size: .92rem; display: block; padding: 5px 0; transition: color var(--dur-fast), transform var(--dur-fast); }
.site-foot a:hover { color: var(--accent-ink); transform: translateX(4px); text-decoration: none; }
.foot-grid p { color: var(--muted); font-size: .92rem; max-width: 24em; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); margin-bottom: 14px; }
.foot-brand:hover { color: var(--accent-ink); text-decoration: none; }
.foot-bottom {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    margin-top: 40px; padding-top: 22px;
    border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem;
}

/* ================================================================ 语言切换（下拉 + 国旗） */

.lang-drop { position: relative; }
.lang-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 12px 7px 10px; border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .7); border: 1px solid var(--line);
    color: var(--text); font-size: .85rem; font-weight: 600; line-height: 1;
    cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    list-style: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.lang-toggle::-webkit-details-marker { display: none; }
.lang-toggle::marker { content: ''; }
.lang-toggle:hover,
.lang-drop[open] .lang-toggle {
    border-color: var(--accent); background: rgba(37, 99, 235, .08);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, .35), var(--glow);
}
.lang-toggle .flag { width: 22px; height: 15px; border-radius: 2px; display: block; flex: none; box-shadow: 0 0 0 1px rgba(37, 99, 235, .18); }
.lang-toggle .lang-label { white-space: nowrap; }
.caret {
    width: 0; height: 0; margin-left: 1px;
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 5px solid currentColor; opacity: .85; transition: transform .2s ease;
}
.lang-drop[open] .caret { transform: rotate(180deg); }

.lang-menu {
    position: absolute; top: calc(100% + 10px); right: 0; min-width: 152px;
    list-style: none; margin: 0; padding: 6px;
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-3); z-index: 70;
    transform-origin: top right; animation: langIn .18s ease;
}
@keyframes langIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
.lang-menu li { margin: 0; }
.lang-menu a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 11px; border-radius: 9px;
    color: var(--text-2); text-decoration: none; font-size: .88rem; font-weight: 500;
    transition: background .15s ease, color .15s ease;
}
.lang-menu a .flag { width: 22px; height: 15px; border-radius: 2px; display: block; flex: none; box-shadow: 0 0 0 1px rgba(37, 99, 235, .18); }
/* Polylang 的国旗是 16×11 的 PNG，放大到 22×15 时按 cover 裁，避免被拉变形 */
.lang-toggle img.flag, .lang-menu a img.flag { object-fit: cover; }
.lang-menu a:hover { background: rgba(37, 99, 235, .10); color: var(--accent-ink); text-decoration: none; }
.lang-menu li.is-current a { color: var(--accent); }
.lang-menu li.is-current a::after { content: '✓'; margin-left: auto; font-size: .8rem; }

/* ================================================================ 常见问题（白玻璃折叠） */

.faq-intro { color: var(--muted); margin-bottom: 22px; max-width: 46em; }
.faq-item {
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: var(--surface);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, .7);
    margin: 0 0 12px; overflow: hidden;
    transition: border-color .16s, box-shadow .16s;
}
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-3); }
.faq-item > summary {
    cursor: pointer; list-style: none; padding: 18px 22px;
    font-weight: 700; color: var(--text); font-size: 1.05rem;
    display: flex; align-items: center; gap: 12px; user-select: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::before {
    content: '+'; flex: 0 0 auto; color: var(--accent); font-weight: 700; font-size: 1.5rem;
    line-height: 1; width: 22px; text-align: center; transition: transform .2s;
}
.faq-item[open] > summary::before { transform: rotate(45deg); }
.faq-item > summary:hover { color: var(--accent-ink); }
.faq-item .faq-a { padding: 0 22px 20px 56px; color: var(--text-2); }
.faq-item .faq-a p:first-child { margin-top: 0; }
.faq-item .faq-a p:last-child { margin-bottom: 0; }

.entry h2 + p { margin-top: .5em; }

/* ================================================================ 搜索 / 归档 / 分页 */

.searchform { display: flex; gap: 8px; margin: 22px 0; max-width: 30em; }
.searchform input {
    flex: 1; padding: 11px 14px; font: inherit;
    border: 1px solid var(--line-strong); border-radius: var(--radius);
    background: #fff; color: var(--text);
}
.searchform input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }

.archive-head { margin-bottom: 28px; }
.archive-head h1 { font-size: 1.8rem; margin-bottom: .3em; }
.archive-head p { margin: 0; max-width: 44em; color: var(--muted); }

.nav-links { display: flex; gap: 8px; margin: 34px 0 0; flex-wrap: wrap; }
.page-numbers {
    display: inline-block; padding: 8px 14px; min-width: 40px; text-align: center;
    border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--text-2); background: var(--surface-solid);
}
.page-numbers:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.page-numbers.current { background: linear-gradient(120deg, var(--accent-3), var(--accent)); border-color: transparent; color: #fff; font-weight: 700; }

.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ================================================================ 区块编辑器内容基础样式 */

.wp-block-quote {
    margin: 1.6em 0; padding: 4px 0 4px 20px;
    border-left: 3px solid var(--accent); color: var(--text-2);
}
.wp-block-quote cite { display: block; margin-top: .5em; font-size: .9rem; color: var(--muted); font-style: normal; }

.wp-block-table { margin: 1.6em 0; }
.wp-block-table table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.wp-block-table th, .wp-block-table td { border: 1px solid var(--line); padding: 9px 13px; text-align: left; }
.wp-block-table th { background: var(--surface-2); }

.wp-block-button__link {
    display: inline-block; padding: 12px 24px; border-radius: var(--radius-pill);
    background: linear-gradient(120deg, var(--accent-3), var(--accent));
    color: #fff; font-weight: 700; box-shadow: 0 10px 26px rgba(37, 99, 235, .4);
}
.wp-block-button__link:hover { color: #fff; text-decoration: none; }

.wp-block-image figcaption,
.wp-block-embed figcaption { font-size: .88rem; color: var(--muted); text-align: center; margin-top: 8px; }
.wp-block-group.has-background { padding: 24px; border-radius: var(--radius); }
.wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.wp-block-code, .wp-block-preformatted {
    background: #0e2440; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius);
    padding: 14px 16px; font: .9rem/1.7 var(--mono); overflow-x: auto; color: #cfe0ff;
}
.has-text-align-center { text-align: center; }
.alignwide { max-width: 100%; }
.alignfull { width: 100%; max-width: 100%; }

/* 服务区固定三栏，比 auto-fill 更整齐 */
@media (min-width: 900px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ================================================================ 响应式 */

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .console { max-width: 560px; margin: 0 auto; }
    .split { grid-template-columns: 1fr; gap: 30px; }
    .band-inner { grid-template-columns: 1fr; gap: 30px; }
    .metrics { grid-template-columns: repeat(2, 1fr); }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    /* 桌面导航隐藏，改用 HUD 抽屉；顶栏只留品牌 + 汉堡 */
    .nav { display: none; }
    .head-actions .lang-drop, .head-actions > .btn { display: none; }
    .nav-toggle { display: flex; }
    .section { margin: 60px auto; }
    /* 非对称卡片网格在窄屏退化为等宽两列 */
    .cards { grid-template-columns: repeat(2, 1fr); }
    .cards > .card,
    .cards > .card:nth-child(6n + 1),
    .cards > .card:nth-child(6n) { grid-column: span 1; }
}

@media (max-width: 620px) {
    .hero { padding: 46px 0 56px; }
    .hero h1 { font-size: clamp(2.1rem, 8vw, 2.9rem); letter-spacing: -.02em; }
    .hero .lead { font-size: 1rem; margin-bottom: 24px; }
    .hero .eyebrow {
        font-size: .72rem; padding: 6px 12px; max-width: 100%;
        flex-wrap: wrap; white-space: normal; line-height: 1.5;
    }
    .hero .actions { gap: 12px; margin-bottom: 26px; }
    .hero .actions .btn { width: 100%; flex: 1 1 auto; }
    .trust-line { font-size: .82rem; gap: 8px 16px; }
    .section { margin: 52px auto; padding: 0 18px; }
    .wrap { padding: 0 18px; }
    .head-inner { padding: 0 18px; gap: 14px; }
    .brand { font-size: .96rem; }
    .brand .mark { width: 30px; height: 30px; }
    .brand small { font-size: .6rem; letter-spacing: .14em; }
    .metrics { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr; }
    .band--cta { padding: 40px 18px; margin: 56px auto 0; border-radius: var(--radius); }
    .band--cta h2 { font-size: clamp(1.4rem, 6.4vw, 1.9rem); }
    .cta-actions .btn { width: 100%; }
    .lead-band { margin: 20px auto 0; }
    .site-foot { margin-top: 64px; padding: 48px 0 32px; }
    .subpages ul { columns: 1; }
    .entry table { font-size: .9rem; }
    /* 新增区块的小屏适配 */
    .codepanel pre { font-size: .72rem; padding: 16px; line-height: 1.7; }
    .m-item { padding: 0 24px; }
    .m-item .num { font-size: 1.6rem; }
    .cards { grid-template-columns: 1fr; gap: 14px; }
    .card { padding: 22px 20px; }
    .section-head { margin-bottom: 34px; }
    .section-head h2 { font-size: clamp(1.6rem, 6.6vw, 2.1rem); }
    /* 装饰减负，保证小屏文字可读 */
    .globe { width: 420px; height: 420px; opacity: .14; }
    .chips { opacity: .7; }
    .chip { font-size: .64rem; padding: 5px 9px; }
    .scroll-cue { display: none; }
    .console { padding: 15px; }
    .console .top .host { font-size: .66rem; }
    .console .c-rows { gap: 10px; }
    .console .c-stat { padding: 10px 12px; }
    .console .c-stat .v { font-size: 1.24rem; }
}

@media (max-width: 420px) {
    .wrap { padding: 0 16px; }
    .head-inner { padding: 0 16px; gap: 10px; }
    .hero { padding: 40px 0 50px; }
    .hero h1 { font-size: clamp(1.9rem, 8.8vw, 2.4rem); }
    .hero .eyebrow { font-size: .68rem; }
    .hero .actions .btn { padding: 12px 16px; font-size: .9rem; }
    .trust-line { font-size: .82rem; gap: 8px 16px; }
    .grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .console .top .host { display: none; }
    .console .c-rows { gap: 8px; }
    .console .c-stat .v { font-size: 1.12rem; }
    .codepanel pre { font-size: .66rem; }
    .m-item { padding: 0 18px; }
    .m-item .num { font-size: 1.4rem; }
    .band--cta { margin: 48px auto 0; padding: 36px 16px; }
    .chips { display: none; }
}

/* 触屏：去掉 hover 残留态 */
@media (hover: none) {
    .card:hover, .metric-card:hover, .badge:hover, .feat-list li:hover { transform: none; }
    .card:hover .icon-chip { transform: none; }
    .nav-close:hover { transform: none; }
    .nav a:hover::after { right: 100%; }
    .console .c-stat:hover { transform: none; }
}

/* 动效降级：全部关闭，栏目始终可见 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
