/* ============================================================
   OUTOKEN · Token 全产业链一站式服务平台
   设计系统 / Design System  v1.0
   深色科技风 · AI 元素 · 响应式（PC / 移动）
   ============================================================ */

:root {
  /* 主色 —— 深空蓝黑 + 电子蓝青 + 紫罗兰霓虹 */
  --bg-0: #060912;
  --bg-1: #0a0e1a;
  --bg-2: #0f1424;
  --bg-3: #151b30;
  --surface: rgba(20, 27, 48, 0.72);
  --surface-2: rgba(28, 36, 64, 0.55);
  --border: rgba(120, 150, 220, 0.16);
  --border-strong: rgba(120, 160, 255, 0.38);

  --cyan: #00d8ff;
  --blue: #2f7bff;
  --lightblue: #7cc0ff;   /* OUTOKEN 中 TOKEN 浅蓝 */
  --violet: #8b5cf6;
  --gold: #ffc24b;      /* 中国优势高亮 */
  --green: #2fe3a0;     /* 正向指标 */
  --red: #ff5d6c;       /* 风险/下降 */

  --text-0: #f2f6ff;
  --text-1: #c4cde6;
  --text-2: #8a96b8;
  --text-3: #5d688a;

  --grad-brand: linear-gradient(120deg, #00d8ff 0%, #2f7bff 45%, #8b5cf6 100%);
  --grad-gold: linear-gradient(120deg, #ffd87a, #ff9d2f);
  --grad-soft: linear-gradient(135deg, rgba(0,216,255,.14), rgba(139,92,246,.14));

  --shadow: 0 18px 50px -22px rgba(0,0,0,.75);
  --shadow-glow: 0 0 0 1px var(--border-strong), 0 24px 60px -24px rgba(47,123,255,.45);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1240px;

  --font: "Inter", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", "Consolas", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
.mono { font-family: var(--mono); }

/* ---------- 背景动效层 ---------- */
.bg-fx {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(47,123,255,.20), transparent 60%),
    radial-gradient(800px 620px at 95% 5%, rgba(139,92,246,.18), transparent 60%),
    radial-gradient(700px 700px at 50% 120%, rgba(0,216,255,.12), transparent 60%),
    var(--bg-0);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(rgba(120,160,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}

/* ---------- 容器 ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(6,9,18,.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--text-0); letter-spacing: .5px; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad-brand);
  display: grid; place-items: center; font-weight: 900; color: #04111f; font-size: 18px;
  box-shadow: 0 0 22px rgba(0,216,255,.5);
}
.brand b { font-size: 19px; letter-spacing: .5px; display: inline-flex; }
/* OUTOKEN：OU 白色，TOKEN 浅蓝 */
.brand .b-ou { color: #ffffff; }
.brand .b-token { color: var(--lightblue); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: 10px; color: var(--text-1); font-size: 14.5px; font-weight: 500;
  transition: .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-0); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
/* 语种下拉（多语种同步切换） */
.lang-select { position: relative; }
.lang-current {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border);
  padding: 8px 13px; border-radius: 10px; font-size: 13.5px; color: var(--text-1);
  background: var(--surface); transition: .2s; white-space: nowrap;
}
.lang-current:hover { border-color: var(--border-strong); color: var(--text-0); }
.lang-current .lang-flag { font-size: 15px; }
.lang-current .caret { font-size: 10px; opacity: .7; transition: .2s; }
.lang-select.open .lang-current .caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 196px; max-height: 360px; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 12px; padding: 6px;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s; z-index: 120;
}
.lang-menu.open { opacity: 1; visibility: visible; transform: none; }
.lang-menu li {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 9px;
  font-size: 14px; color: var(--text-1); cursor: pointer; transition: .15s;
}
.lang-menu li:hover { background: var(--surface-2); color: var(--text-0); }
.lang-menu li.active { color: var(--cyan); font-weight: 700; }
.lang-menu li .lf { font-size: 16px; line-height: 1; }
/* 兼容旧 lang-toggle（少数页面遗留） */
.lang-toggle { border: 1px solid var(--border); padding: 7px 12px; border-radius: 10px; font-size: 13px; color: var(--text-1); transition: .2s; }
.lang-toggle:hover { border-color: var(--border-strong); color: var(--text-0); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 11px;
  font-weight: 600; font-size: 14.5px; transition: .22s; white-space: nowrap;
}
.btn-primary { background: var(--grad-brand); color: #04111f; box-shadow: 0 12px 30px -10px rgba(47,123,255,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(47,123,255,.75); }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--text-0); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn-gold { background: var(--grad-gold); color: #2a1700; }
.btn-gold:hover { transform: translateY(-2px); }
.hamburger { display: none; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--border); place-items: center; }
.hamburger span, .hamburger span::before, .hamburger span::after {
  display: block; width: 18px; height: 2px; background: var(--text-0); position: relative; transition: .25s;
}
.hamburger span::before, .hamburger span::after { content: ""; position: absolute; left: 0; }
.hamburger span::before { top: -6px; } .hamburger span::after { top: 6px; }

/* 移动端抽屉 */
.drawer { position: fixed; inset: 0; z-index: 200; display: none; }
.drawer.open { display: block; }
.drawer-mask { position: absolute; inset: 0; background: rgba(3,6,14,.7); backdrop-filter: blur(4px); }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: 80%; max-width: 340px;
  background: var(--bg-2); border-left: 1px solid var(--border); padding: 24px;
  display: flex; flex-direction: column; gap: 6px; animation: slideIn .25s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer-panel a { padding: 14px 12px; border-radius: 12px; color: var(--text-1); font-size: 16px; border: 1px solid transparent; }
.drawer-panel a:hover { background: var(--surface-2); color: var(--text-0); }
.drawer-close { position: absolute; top: 18px; right: 18px; font-size: 26px; color: var(--text-2); }

/* ---------- 通用区块 ---------- */
section { padding: 84px 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--cyan); padding: 6px 14px; border: 1px solid var(--border-strong);
  border-radius: 999px; background: var(--surface-2);
}
.eyebrow.gold { color: var(--gold); border-color: rgba(255,194,75,.35); }
.section-title { font-size: clamp(26px, 3.6vw, 42px); font-weight: 800; color: var(--text-0); margin: 18px 0 14px; line-height: 1.18; }
.section-sub { font-size: 16.5px; color: var(--text-2); max-width: 720px; }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head .section-sub { margin: 0 auto; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: .25s; position: relative; overflow: hidden;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: var(--shadow); }
.card-glow::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad-brand); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: .25s;
}
.card-glow:hover::after { opacity: .9; }

.gradient-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gradient-gold { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- HERO ---------- */
.hero { padding: 96px 0 70px; text-align: center; }
.hero h1 { font-size: clamp(34px, 6vw, 66px); font-weight: 900; color: var(--text-0); line-height: 1.08; letter-spacing: -1px; }
.hero p.lead { font-size: clamp(16px, 2vw, 20px); color: var(--text-1); max-width: 760px; margin: 22px auto 0; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-tags { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.tag-chip { font-size: 13px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); background: var(--surface); }
.tag-chip b { color: var(--cyan); }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 22px 18px; text-align: center;
}
.stat .num { font-size: clamp(24px, 3vw, 34px); font-weight: 900; color: var(--text-0); font-family: var(--mono); }
.stat .num .unit { font-size: 15px; color: var(--cyan); margin-left: 3px; }
.stat .label { font-size: 13px; color: var(--text-2); margin-top: 6px; }

/* 漂浮 token 装饰 */
.float-tokens { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; opacity: .5; }
.float-tokens i {
  position: absolute; font-family: var(--mono); font-size: 12px; color: var(--cyan);
  padding: 4px 9px; border: 1px solid var(--border); border-radius: 8px; background: rgba(10,14,26,.5);
  animation: floatUp linear infinite;
}
@keyframes floatUp { from { transform: translateY(20px); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { transform: translateY(-120px); opacity: 0; } }

/* ---------- 模型矩阵网格 ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.model-card { display: flex; flex-direction: column; gap: 14px; }
.model-head { display: flex; align-items: center; gap: 13px; }
.model-logo {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #04111f;
  flex-shrink: 0;
}
.model-name { font-size: 17px; font-weight: 700; color: var(--text-0); }
.model-vendor { font-size: 12.5px; color: var(--text-2); }
.badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.badge-cn { background: rgba(255,194,75,.16); color: var(--gold); border: 1px solid rgba(255,194,75,.35); }
.badge-new { background: rgba(47,227,160,.14); color: var(--green); border: 1px solid rgba(47,227,160,.35); }
.badge-hot { background: rgba(255,93,108,.14); color: var(--red); border: 1px solid rgba(255,93,108,.35); }
.model-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-pill { font-size: 12px; padding: 4px 10px; border-radius: 8px; background: var(--surface-2); color: var(--text-1); border: 1px solid var(--border); }
.model-price { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--border); display: flex; align-items: baseline; justify-content: space-between; }
.model-price .price { font-family: var(--mono); font-size: 19px; font-weight: 800; color: var(--cyan); }
.model-price .price small { font-size: 12px; color: var(--text-2); font-weight: 400; }

/* 筛选工具条 */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 28px; }
.filter-btn {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-1); font-size: 14px; transition: .2s;
}
.filter-btn:hover { border-color: var(--border-strong); color: var(--text-0); }
.filter-btn.active { background: var(--grad-brand); color: #04111f; border-color: transparent; font-weight: 700; }
.search-box { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.search-box input { flex: 1; background: none; border: none; outline: none; color: var(--text-0); font-size: 14px; }
.search-box input::placeholder { color: var(--text-3); }

/* ---------- 流程 / 链路 ---------- */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.pipe-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.pipe-step .step-no {
  width: 38px; height: 38px; border-radius: 11px; background: var(--grad-brand); color: #04111f;
  display: grid; place-items: center; font-weight: 800; font-family: var(--mono); margin-bottom: 14px;
}
.pipe-step h4 { color: var(--text-0); font-size: 17px; margin-bottom: 8px; }
.pipe-step p { font-size: 14px; color: var(--text-2); }

/* ---------- 特性列表 ---------- */
.feature-list { display: flex; flex-direction: column; gap: 14px; }
.feature-item { display: flex; gap: 14px; }
.feature-item .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; flex-shrink: 0; font-size: 18px; }
.feature-item h4 { color: var(--text-0); font-size: 15.5px; }
.feature-item p { font-size: 13.5px; color: var(--text-2); }

/* ---------- 计价 / 计算器 ---------- */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.calc-controls { display: flex; flex-direction: column; gap: 18px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.field select, .field input {
  width: 100%; padding: 12px 14px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-0); font-size: 14.5px; outline: none; transition: .2s;
}
.field select:focus, .field input:focus { border-color: var(--border-strong); }
.range-row { display: flex; align-items: center; gap: 14px; }
input[type=range] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; background: var(--bg-3); outline: none; flex: 1; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(0,216,255,.2); cursor: pointer; }
.range-val { font-family: var(--mono); color: var(--cyan); font-weight: 700; min-width: 64px; text-align: right; }
.calc-result { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.calc-result .big { font-size: 40px; font-weight: 900; font-family: var(--mono); color: var(--cyan); }
.calc-result .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.calc-result .row:last-child { border-bottom: none; }
.calc-result .row span:last-child { color: var(--text-0); font-weight: 600; }

/* 价格表 */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.price-card.featured { border-color: var(--border-strong); box-shadow: var(--shadow-glow); }
.price-card .tier { font-size: 14px; font-weight: 700; color: var(--cyan); letter-spacing: .5px; }
.price-card .amount { font-size: 38px; font-weight: 900; color: var(--text-0); font-family: var(--mono); }
.price-card .amount small { font-size: 14px; color: var(--text-2); font-weight: 400; }
.price-card ul { display: flex; flex-direction: column; gap: 11px; }
.price-card li { font-size: 14px; color: var(--text-1); display: flex; gap: 10px; }
.price-card li::before { content: "✓"; color: var(--green); font-weight: 800; }
.price-card .btn { margin-top: auto; justify-content: center; }
.popular { position: absolute; top: -12px; right: 22px; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--grad-brand); color: #04111f; }

/* ---------- 开发者 / 代码 ---------- */
.code-window { background: #05080f; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.code-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.code-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.code-bar .dot.r { background: #ff5f56; } .code-bar .dot.y { background: #ffbd2e; } .code-bar .dot.g { background: #27c93f; }
.code-bar .file { margin-left: 8px; font-size: 13px; color: var(--text-2); font-family: var(--mono); }
.code-body { padding: 20px; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: #d6e2ff; overflow-x: auto; }
.code-body .c-key { color: #ff7edb; } .code-body .c-str { color: #9fffa8; } .code-body .c-com { color: #5d688a; } .code-body .c-fn { color: #7dd3ff; }
.try-console { margin-top: 14px; }
.try-console button { width: 100%; }

.endpoint { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 10px; }
.endpoint .method { font-family: var(--mono); font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 7px; background: rgba(47,227,160,.16); color: var(--green); }
.endpoint .path { font-family: var(--mono); font-size: 13.5px; color: var(--text-0); }
.endpoint .desc { margin-left: auto; font-size: 13px; color: var(--text-2); }

/* ---------- 资讯 ---------- */
.news-card { display: flex; flex-direction: column; gap: 10px; }
.news-card .cat { font-size: 12px; font-weight: 700; color: var(--gold); }
.news-card h4 { font-size: 17px; color: var(--text-0); line-height: 1.4; }
.news-card p { font-size: 14px; color: var(--text-2); }
.news-card .date { font-size: 12.5px; color: var(--text-3); font-family: var(--mono); }

/* ---------- 对比表 ---------- */
.compare { width: 100%; border-collapse: collapse; font-size: 14px; overflow: hidden; border-radius: var(--radius); }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.compare thead th { background: var(--bg-2); color: var(--text-0); font-weight: 700; }
.compare tbody tr:hover { background: var(--surface-2); }
.compare td:first-child { color: var(--text-1); font-weight: 600; }
.compare .yes { color: var(--green); font-weight: 700; }
.compare .no { color: var(--red); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }

/* ---------- 出海区域卡 ---------- */
.region-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.region-card h4 { color: var(--text-0); font-size: 18px; margin-bottom: 6px; }
.region-card .flag { font-size: 26px; }
.region-card p { font-size: 13.5px; color: var(--text-2); margin-top: 10px; }
.region-stats { display: flex; gap: 18px; margin-top: 16px; }
.region-stats div span { display: block; }
.region-stats .v { font-family: var(--mono); font-weight: 800; color: var(--cyan); font-size: 18px; }
.region-stats .k { font-size: 12px; color: var(--text-3); }

/* ---------- CTA 条 ---------- */
.cta-band { background: var(--grad-soft); border: 1px solid var(--border-strong); border-radius: 24px; padding: 56px 40px; text-align: center; }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 38px); color: var(--text-0); font-weight: 800; }
.cta-band p { color: var(--text-1); margin: 14px auto 26px; max-width: 600px; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--border); padding: 60px 0 30px; background: var(--bg-1); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer h5 { color: var(--text-0); font-size: 14px; margin-bottom: 14px; }
.footer a { display: block; font-size: 13.5px; color: var(--text-2); padding: 5px 0; transition: .2s; }
.footer a:hover { color: var(--cyan); }
.footer .about { font-size: 13.5px; color: var(--text-2); max-width: 320px; margin-top: 14px; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-3); }

/* ---------- 提示 / 通知 ---------- */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--bg-3); border: 1px solid var(--border-strong); color: var(--text-0); padding: 13px 22px; border-radius: 12px; font-size: 14px; opacity: 0; transition: .3s; z-index: 300; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 进场动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-actions .btn { display: none; }
  .lang-menu { right: auto; left: 0; }
  .hamburger { display: grid; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .container { padding: 0 18px; }
  .cta-band { padding: 40px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (min-width: 761px) {
  .drawer { display: none !important; }
}

/* ============================================================
   多语种 · RTL（阿拉伯语等从右到左）
   ============================================================ */
[dir="rtl"] { direction: rtl; }
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .drawer-panel {
  right: auto; left: 0; border-left: none; border-right: 1px solid var(--border);
  animation: slideInRTL .25s ease;
}
[dir="rtl"] .drawer-close { right: auto; left: 18px; }
@keyframes slideInRTL { from { transform: translateX(-100%); } to { transform: translateX(0); } }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .hero-tags, [dir="rtl"] .hero-cta, [dir="rtl"] .nav-inner { flex-direction: row-reverse; }
[dir="rtl"] .section-head { text-align: center; }
[dir="rtl"] .feature-item, [dir="rtl"] .model-head { flex-direction: row-reverse; }
[dir="rtl"] .endpoint .desc { margin-left: 0; margin-right: auto; }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .calc-result .row, [dir="rtl"] .hero-stats { direction: rtl; }

/* ============================================================
   TOKEN 价格页 + 客服模块（v3 新增）
   ============================================================ */

/* ---------- TOKEN 价格页 ---------- */
.tp-hero { text-align: center; max-width: 860px; margin: 0 auto 34px; }
.tp-hero .eyebrow { color: var(--cyan); font-weight: 700; letter-spacing: 2px; font-size: 13px; }
.tp-hero h1 { font-size: clamp(28px, 4.6vw, 44px); margin: 10px 0 12px; }
.tp-hero p { color: var(--text-2); line-height: 1.8; }
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.tp-card {
  position: relative; border: 1px solid var(--border); border-radius: 18px; padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  display: flex; flex-direction: column; gap: 12px; transition: .25s;
}
.tp-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 18px 44px rgba(0,0,0,.45); }
.tp-card.featured {
  border-color: rgba(0,216,255,.55);
  background: linear-gradient(180deg, rgba(0,216,255,.10), rgba(47,123,255,.05));
  box-shadow: 0 0 40px rgba(0,216,255,.18);
}
.tp-badge {
  position: absolute; top: -11px; right: 16px; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 800; color: #04111f; background: var(--grad-brand);
}
.tp-badge.gold { background: linear-gradient(135deg, #ffd66b, #ff9f43); }
.tp-name { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tp-name .tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--text-2); }
.tp-name .tag.hot { color: #ff7d7d; border-color: rgba(255,125,125,.5); }
.tp-name .tag.new { color: #7cc0ff; border-color: rgba(124,192,255,.5); }
.tp-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tp-price .ot { font-size: 28px; font-weight: 900; color: var(--cyan); }
.tp-price .unit { font-size: 12px; color: var(--text-2); }
.tp-price .off { font-size: 13px; color: var(--text-2); text-decoration: line-through; }
.tp-save { display: inline-block; font-size: 12px; font-weight: 800; color: #55e6a5;
  background: rgba(85,230,165,.12); border: 1px solid rgba(85,230,165,.4); border-radius: 999px; padding: 3px 10px; }
.tp-meta { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.tp-meta b { color: var(--text-1); font-weight: 700; }
.tp-card .btn { margin-top: auto; width: 100%; justify-content: center; }
.tp-note { margin-top: 18px; font-size: 12.5px; color: var(--text-2); text-align: center; }

/* 价格页 FAQ */
.tp-faq { margin-top: 56px; }
.tp-faq-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.tp-faq-item {
  border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; cursor: pointer;
  background: rgba(255,255,255,.02); transition: .2s; text-align: start;
}
.tp-faq-item:hover { border-color: var(--cyan); background: rgba(0,216,255,.06); }
.tp-faq-item b { display: block; font-size: 14.5px; color: var(--text-0); margin-bottom: 6px; }
.tp-faq-item span { font-size: 13px; color: var(--text-2); line-height: 1.7; display: block; }

/* ---------- 客服浮动按钮 ---------- */
.cs-fab {
  position: fixed; z-index: 960; right: 22px; bottom: 22px;
  display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px;
  border: 1px solid rgba(0,216,255,.5); cursor: pointer;
  background: linear-gradient(135deg, rgba(0,216,255,.16), rgba(47,123,255,.16));
  color: var(--text-0); font-size: 14px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,216,255,.28); backdrop-filter: blur(8px);
  animation: csPulse 2.6s infinite; transition: .2s;
}
.cs-fab:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(0,216,255,.42); }
.cs-fab-ico { font-size: 18px; }
@keyframes csPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(0,216,255,.28); }
  50% { box-shadow: 0 10px 40px rgba(0,216,255,.55); }
}

/* ---------- 客服弹窗 ---------- */
.cs-modal { position: fixed; inset: 0; z-index: 990; display: none; }
.cs-modal.open { display: block; }
.cs-backdrop { position: absolute; inset: 0; background: rgba(2,8,20,.72); backdrop-filter: blur(4px); }
.cs-panel {
  position: absolute; right: 22px; bottom: 92px; width: min(420px, calc(100vw - 24px));
  max-height: min(640px, calc(100vh - 130px));
  display: flex; flex-direction: column;
  background: #0a1424; border: 1px solid var(--border-strong); border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); overflow: hidden;
  animation: csUp .22s ease;
}
@keyframes csUp { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cs-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px;
  background: linear-gradient(135deg, rgba(0,216,255,.12), rgba(47,123,255,.10)); border-bottom: 1px solid var(--border); }
.cs-head-info { display: flex; align-items: center; gap: 10px; }
.cs-head-info b { display: block; font-size: 15px; }
.cs-head-info small { color: var(--text-2); font-size: 11.5px; }
.cs-avatar { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad-brand); font-size: 18px; }
.cs-close { background: none; border: none; color: var(--text-2); font-size: 16px; cursor: pointer; padding: 6px; }
.cs-close:hover { color: var(--text-0); }
.cs-tabs { display: flex; gap: 4px; padding: 8px 12px 0; border-bottom: 1px solid var(--border); }
.cs-tab { flex: 1; background: none; border: none; color: var(--text-2); font-size: 13px; font-weight: 700;
  padding: 9px 4px; cursor: pointer; border-bottom: 2px solid transparent; transition: .2s; }
.cs-tab.active { color: var(--cyan); border-bottom-color: var(--cyan); }
.cs-body { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.cs-pane { display: none; flex: 1; min-height: 0; flex-direction: column; }
.cs-pane.active { display: flex; }

/* AI 问答 */
.cs-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.cs-msg { display: flex; }
.cs-msg.user { justify-content: flex-end; }
.cs-bubble {
  max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.75;
  background: rgba(255,255,255,.06); border: 1px solid var(--border); color: var(--text-1);
  white-space: pre-wrap; word-break: break-word;
}
.cs-msg.user .cs-bubble { background: var(--grad-brand); color: #04111f; font-weight: 600; border: none; }
.cs-msg.bot b { color: var(--cyan); }
.cs-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; align-items: center; }
.cs-suggest-label { font-size: 11px; color: var(--text-2); }
.cs-chip { font-size: 12px; padding: 5px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border-strong); background: rgba(255,255,255,.03); color: var(--text-1); transition: .2s; }
.cs-chip:hover { border-color: var(--cyan); color: var(--cyan); }
.cs-inputrow { display: flex; gap: 8px; padding: 10px 12px 14px; border-top: 1px solid var(--border); }
.cs-inputrow input {
  flex: 1; background: rgba(255,255,255,.05); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 10px 12px; color: var(--text-0); font-size: 13.5px; outline: none;
}
.cs-inputrow input:focus { border-color: var(--cyan); }
.cs-send { padding: 10px 16px; border-radius: 10px; white-space: nowrap; }

/* 联系方式 */
.cs-pane-title { padding: 14px 16px 6px; font-size: 15px; }
.cs-contact { display: flex; flex-direction: column; gap: 10px; padding: 8px 16px; }
.cs-contact-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.03); }
.cs-contact-ico { font-size: 20px; }
.cs-contact-info { flex: 1; min-width: 0; }
.cs-contact-info small { display: block; color: var(--text-2); font-size: 11.5px; }
.cs-contact-info b { font-size: 14.5px; color: var(--text-0); word-break: break-all; }
.cs-copybtn { font-size: 12px; padding: 6px 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border-strong); background: none; color: var(--text-1); transition: .2s; }
.cs-copybtn:hover { border-color: var(--cyan); color: var(--cyan); }
.cs-contact-note { padding: 6px 16px 16px; font-size: 12.5px; color: var(--text-2); line-height: 1.7; }

/* 留言表单 */
.cs-form { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px; overflow-y: auto; }
.cs-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.cs-form input, .cs-form textarea {
  background: rgba(255,255,255,.05); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 10px 12px; color: var(--text-0); font-size: 13.5px; outline: none; resize: vertical; font-family: inherit;
}
.cs-form input:focus, .cs-form textarea:focus { border-color: var(--cyan); }
.cs-form .btn { justify-content: center; }

body.cs-lock { overflow: hidden; }

/* 移动端适配 */
@media (max-width: 760px) {
  .cs-fab { right: 14px; bottom: 14px; padding: 10px 14px; }
  .cs-fab-txt { display: none; }
  .cs-panel { right: 8px; left: 8px; width: auto; bottom: 74px; max-height: calc(100vh - 100px); }
}
[dir="rtl"] .cs-fab { right: auto; left: 22px; }
[dir="rtl"] .cs-panel { right: auto; left: 22px; }

/* ===================== 「接入此模型」弹窗 ===================== */
.ot-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  background: rgba(6, 10, 20, 0.72); backdrop-filter: blur(4px);
  padding: 16px;
}
.ot-modal.show { display: flex; animation: ot-fade 0.18s ease; }
@keyframes ot-fade { from { opacity: 0; } to { opacity: 1; } }
.ot-modal-box {
  position: relative; width: 100%; max-width: 440px;
  background: #0f1626; border: 1px solid rgba(124, 192, 255, 0.22);
  border-radius: 18px; padding: 28px 26px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.ot-modal-close {
  position: absolute; top: 12px; right: 14px; width: 32px; height: 32px;
  border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.06);
  color: var(--text-2, #9fb0c8); font-size: 22px; line-height: 1; cursor: pointer;
}
.ot-modal-close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.ot-modal-title { font-size: 22px; font-weight: 700; color: #fff; margin: 0 0 4px; }
.ot-modal-sub { font-size: 13px; color: var(--cyan, #7cc0ff); margin: 0 0 2px; }
.ot-modal-info { font-size: 13px; color: var(--text-2, #9fb0c8); margin: 0 0 14px; }
.ot-login-hint {
  font-size: 13px; color: #ffd479; background: rgba(255, 212, 121, 0.1);
  border: 1px solid rgba(255, 212, 121, 0.25); border-radius: 10px;
  padding: 9px 12px; margin-bottom: 16px;
}
.ot-login-hint a { color: #ffd479; font-weight: 600; }
.ot-form { display: flex; flex-direction: column; gap: 13px; }
.ot-field { display: flex; flex-direction: column; gap: 5px; }
.ot-field label { font-size: 13px; color: var(--text-2, #9fb0c8); }
.ot-field input {
  height: 42px; padding: 0 13px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.04);
  color: #fff; font-size: 14px; outline: none;
}
.ot-field input:focus { border-color: var(--cyan, #7cc0ff); }
.ot-form .btn-primary { height: 44px; margin-top: 4px; }
