/* =========================================================
   TokenHub · components.css
   导航 / 页脚 / 按钮 / 卡片 / 区块模板 / 代码块 / 表格 / 表单 / 动效
   ========================================================= */

/* ---------- 顶部公告条 ---------- */
.announce-bar {
  background: var(--primary-soft);
  border-bottom: 1px solid var(--border);
  font-size: 14px; line-height: 1.5; color: var(--text-2);
}
.announce-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 16px; min-height: 40px; padding-top: 8px; padding-bottom: 8px; text-align: center; }
.announce-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--primary); white-space: nowrap; }
.announce-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.announce-link:hover { text-decoration: none; color: var(--primary-hover); }
.announce-link:hover svg { transform: translateX(3px); }
@media (max-width: 480px) { .announce-bar { font-size: 13px; } }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; height: var(--header-h); gap: var(--sp-6); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-sub { margin-top: 3px; font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--text-3); white-space: nowrap; }
html[lang="en"] .brand-sub { font-size: 10px; letter-spacing: .02em; }
.hero-kicker { margin: var(--sp-5) 0 0; font-size: 15px; font-weight: 600; letter-spacing: .12em; color: var(--primary); }
.hero .hero-kicker + h1 { margin-top: var(--sp-3); }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav-menu { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; flex: 1; }
.nav-menu > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: var(--r-sm);
  color: var(--text-2); font-size: 15px; font-weight: 500;
  background: none; border: 0;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--text); background: var(--bg-muted); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--primary); }
.nav-link .chev { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: var(--sp-2); }
.theme-toggle, .nav-toggle {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
}
.theme-toggle:hover, .nav-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg, .nav-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: block; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
.nav-toggle { display: none; }

/* 下拉面板 */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: -12px;
  width: 560px; padding: var(--sp-3);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.dropdown.is-open { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; gap: 12px; padding: 12px; border-radius: var(--r-md); color: var(--text); }
.dropdown a:hover { background: var(--bg-soft); text-decoration: none; }
.dropdown .dd-ico { flex: none; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.dropdown .dd-ico svg { width: 20px; height: 20px; }
.dropdown strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.4; }
.dropdown span { display: block; font-size: 13px; color: var(--text-3); line-height: 1.5; }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-grid; }
  .nav-actions .btn-login { display: none; }
  .nav-menu {
    position: fixed; inset: var(--menu-top, var(--header-h)) 0 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--sp-4) var(--gutter) var(--sp-10);
    background: var(--bg); overflow-y: auto;
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav-menu.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav-menu > li { border-bottom: 1px solid var(--border); }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 16px; }
  .nav-link:hover { background: none; }
  .dropdown { position: static; width: auto; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 0 0 var(--sp-3);
    opacity: 1; visibility: visible; transform: none; display: none; background: transparent; }
  .dropdown.is-open { display: grid; }
  .nav-menu .mobile-only { display: block; padding: var(--sp-5) 0 0; border: 0; }
  .nav-actions { margin-left: auto; }
}
@media (min-width: 1025px) { .nav-menu .mobile-only { display: none; } }
@media (max-width: 480px) { .nav-actions .btn-demo { display: none; } }
body.nav-open { overflow: hidden; }
/* backdrop-filter 会让 fixed 子元素以 header 为定位容器，菜单展开时关闭它 */
body.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: var(--r-md);
  font-size: 15px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 6px 18px rgba(52, 211, 153,.22); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--bg-muted); }
.btn-text { height: auto; padding: 0; color: var(--link); font-weight: 600; }
.btn-text:hover { text-decoration: underline; }
.btn-light { background: #34d399; color: #06281c; }
.btn-light:hover { background: #4ee0aa; color: #06281c; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 14px; border-radius: var(--r-sm); }
.btn-lg { height: 50px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; padding: 0; }

/* ---------- 徽标 / 标签 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 600; line-height: 1.4;
  background: var(--primary-soft); color: var(--primary-soft-text);
}
.badge-accent { background: rgba(20,184,176,.12); color: var(--accent-600); }
.badge-success { background: rgba(22,163,74,.12); color: var(--success); }
.badge-warning { background: rgba(217,119,6,.12); color: var(--warning); }
.badge-muted { background: var(--bg-muted); color: var(--text-3); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; color: var(--text-3); background: var(--bg-muted); border: 1px solid var(--border); }
.pill-hero {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: 14px; color: var(--text-2);
}
.pill-hero .badge { padding: 2px 8px; }

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
a.card { display: block; color: inherit; }
a.card:hover, .card.is-hover:hover { text-decoration: none; border-color: var(--brand-200); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 15px; margin-bottom: 0; }
.card .more { display: inline-flex; align-items: center; gap: 4px; margin-top: var(--sp-4); font-size: 14px; font-weight: 600; color: var(--link); }
.card .more svg { width: 16px; height: 16px; transition: transform .2s; }
a.card:hover .more svg { transform: translateX(3px); }
.icon-box {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: var(--sp-4);
  background: var(--primary-soft); color: var(--primary);
}
.icon-box svg { width: 24px; height: 24px; }
.icon-box.accent { background: rgba(20,184,176,.12); color: var(--accent-600); }
.icon-box.grad { background: var(--grad-brand); color: #06281c; }

/* 厂商卡（文字徽标） */
.vendor-card { display: flex; align-items: center; gap: 12px; padding: var(--sp-4); }
.vendor-mark {
  flex: none; width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px; color: #fff; letter-spacing: -.02em;
  background: var(--vm, #34d399);
}
.vendor-card .v-name { font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--text); }
.vendor-card .v-desc { font-size: 13px; color: var(--text-3); line-height: 1.4; }

/* 案例卡 */
.case-card .case-metric { font-size: var(--fs-2xl); font-weight: 800; color: var(--primary); line-height: 1.1; }

/* 勾选列表 */
.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.check-list.cross li::before { background: var(--bg-muted); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: var(--sp-20) 0 var(--sp-16); background: var(--hero-grad); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}
.hero > .container { position: relative; }
.hero-center { text-align: center; max-width: 900px; margin: 0 auto; }
.hero h1 { margin: var(--sp-5) 0 var(--sp-5); }
.hero .lead { font-size: clamp(16px, 1.6vw, 20px); color: var(--text-2); max-width: 720px; margin: 0 auto var(--sp-8); }
.hero-actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: var(--sp-4); font-size: 13px; color: var(--text-3); }

/* 内页 Hero */
.page-hero { padding: var(--sp-16) 0 var(--sp-12); background: var(--hero-grad); border-bottom: 1px solid var(--border); }
.page-hero .split { align-items: center; }
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); margin: var(--sp-3) 0 var(--sp-4); }
.page-hero .lead { font-size: var(--fs-md); color: var(--text-2); margin-bottom: var(--sp-6); }
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: var(--text-3); flex-wrap: wrap; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--link); }
.breadcrumb span[aria-hidden] { opacity: .6; }

/* ---------- 左右图文 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); align-items: center; }
.split + .split { margin-top: var(--sp-20); }
.split.reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(24px, 2.6vw, 32px); }
.split .lead { font-size: var(--fs-md); color: var(--text-2); }
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: var(--sp-10); }
  .split.reverse > :first-child { order: 0; }
  .split + .split { margin-top: var(--sp-16); }
}

/* 示意窗口（浏览器框） */
.mock {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mock-bar i:nth-child(1) { background: #ff5f57; } .mock-bar i:nth-child(2) { background: #febc2e; } .mock-bar i:nth-child(3) { background: #28c840; }
.mock-bar .mock-title { margin-left: 10px; font-size: 12px; color: var(--text-3); font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-body { padding: var(--sp-5); }

/* ---------- 数据亮点条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
.stat { text-align: center; padding: var(--sp-4); }
.stat-num { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.stat-num small { font-size: .5em; font-weight: 700; margin-left: 2px; }
.stat-label { font-size: 14px; color: var(--text-3); margin-top: 6px; }
@media (max-width: 768px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.demo-note { font-size: 12px; color: var(--text-3); text-align: center; margin-top: var(--sp-4); }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); counter-reset: step; }
.step { position: relative; padding: var(--sp-6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: var(--sp-4);
  border-radius: 50%; background: var(--grad-brand); color: #06281c; font-weight: 700;
}
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; } }

/* 流程（横向箭头） */
.flow { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; justify-content: center; }
.flow-item {
  flex: 1 1 120px; max-width: 170px; min-width: 110px;
  padding: 14px 12px; border-radius: var(--r-md); text-align: center;
  background: var(--surface); border: 1px solid var(--border); position: relative;
}
.flow-item .fi-ico { width: 34px; height: 34px; margin: 0 auto 8px; border-radius: 9px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.flow-item .fi-ico svg { width: 18px; height: 18px; }
.flow-item strong { display: block; font-size: 14px; }
.flow-item span { display: block; font-size: 12px; color: var(--text-3); line-height: 1.4; margin-top: 2px; }
.flow-arrow { align-self: center; color: var(--text-3); flex: none; }
.flow-arrow svg { width: 18px; height: 18px; }
@media (max-width: 768px) { .flow-arrow { display: none; } .flow-item { max-width: none; flex-basis: calc(50% - 10px); } }

/* ---------- CTA 横幅 ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); padding: var(--sp-16) var(--sp-10);
  background: radial-gradient(700px 260px at 85% 0%, rgba(52, 211, 153, .30), transparent 70%),
              radial-gradient(600px 260px at 0% 100%, rgba(45, 212, 191, .16), transparent 70%), #151a21;
  border: 1px solid rgba(52, 211, 153, .28);
  color: #fff; text-align: center;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 75%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); font-size: var(--fs-md); max-width: 640px; margin: 0 auto var(--sp-8); }
.cta-band .hero-actions { justify-content: center; }
@media (max-width: 768px) { .cta-band { padding: var(--sp-12) var(--sp-5); } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--sp-4); align-items: center;
  padding: var(--sp-5) 0; font-weight: 600; font-size: 17px; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 20px; height: 20px; transition: transform .2s var(--ease);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 0 var(--sp-5); color: var(--text-2); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- 代码块 ---------- */
.code-tabs { border-radius: var(--r-lg); overflow: hidden; background: var(--code-bg); border: 1px solid #232b36; box-shadow: var(--shadow-lg); }
.code-tabs-bar { display: flex; align-items: center; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid #232b36; overflow-x: auto; }
.code-tab {
  padding: 8px 14px; border: 0; background: none; color: #8592a3; font-size: 13px; font-weight: 600;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.code-tab[aria-selected="true"] { color: #fff; border-bottom-color: var(--accent-400); }
.code-copy {
  margin-left: auto; margin-bottom: 6px; flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 6px; border: 1px solid #2c3542; background: transparent; color: #aab6c4; font-size: 12px;
}
.code-copy:hover { color: #fff; border-color: #3d4a5c; }
.code-copy svg { width: 14px; height: 14px; }
.code-panel { display: none; }
.code-panel.is-active { display: block; }
.code-tabs pre, pre.code {
  margin: 0; padding: var(--sp-5); overflow-x: auto;
  color: var(--code-text); font-size: 13.5px; line-height: 1.7; tab-size: 2;
  background: var(--code-bg);
}
pre.code { border-radius: var(--r-lg); border: 1px solid #232b36; }
.tok-k { color: #c792ea; } .tok-s { color: #c3e88d; } .tok-c { color: #6b7aa6; font-style: italic; }
.tok-n { color: #f78c6c; } .tok-f { color: #82aaff; } .tok-p { color: #89ddff; }

/* ---------- 对比表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); -webkit-overflow-scrolling: touch; }
.table { min-width: 640px; font-size: 14.5px; }
.table th, .table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table thead th { background: var(--surface-2); font-weight: 600; color: var(--text); font-size: 14px; position: sticky; top: 0; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--bg-soft); }
.table td { color: var(--text-2); }
.table .t-center { text-align: center; }
.table .group-row td { background: var(--bg-muted); font-weight: 700; color: var(--text); font-size: 13px; letter-spacing: .03em; }
.yes, .no, .part { display: inline-block; width: 20px; height: 20px; vertical-align: middle; }
.yes { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/18px no-repeat; }
.no { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") center/16px no-repeat; }
.part { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='6' fill='none' stroke='%23d97706' stroke-width='2.4'/%3E%3Cpath d='M12 6a6 6 0 010 12z' fill='%23d97706'/%3E%3C/svg%3E") center/16px no-repeat; }

/* ---------- 表单 ---------- */
.form { display: grid; gap: var(--sp-5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
@media (max-width: 768px) { .form-row { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field .req { color: var(--danger); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 14px;
  border-radius: var(--r-md); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.select { appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366718a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); opacity: .8; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field-error { display: none; font-size: 13px; color: var(--danger); margin-top: 6px; }
.field.has-error .field-error { display: block; }
.choice-group { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-block; padding: 8px 14px; border-radius: var(--r-full); font-size: 14px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); transition: all .15s;
}
.choice input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-soft-text); font-weight: 600; }
.choice input:focus-visible + span { box-shadow: var(--ring); }
.form-note { font-size: 13px; color: var(--text-3); }
.form-success { display: none; text-align: center; padding: var(--sp-10) var(--sp-6); }
.form-success.is-show { display: block; }
.form-success .icon-box { margin: 0 auto var(--sp-4); background: rgba(22,163,74,.12); color: var(--success); }

/* ---------- 筛选 chips / Tabs ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px; border-radius: var(--r-full); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 500;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.tabs-nav { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-md); background: var(--bg-muted); flex-wrap: wrap; }
.tabs-nav button { padding: 8px 16px; border: 0; border-radius: 8px; background: none; color: var(--text-2); font-weight: 600; font-size: 14px; }
.tabs-nav button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.tab-panel[hidden] { display: none; }

/* ---------- 厂商滚动墙 ---------- */
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: var(--sp-4); width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee + .marquee { margin-top: var(--sp-4); }
.marquee.rev .marquee-track { animation-direction: reverse; }
.logo-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px;
  border-radius: var(--r-full); border: 1px solid var(--border); background: var(--surface);
  font-weight: 600; font-size: 15px; color: var(--text-2); white-space: nowrap;
}
.logo-chip .vendor-mark { width: 30px; height: 30px; border-radius: 50%; font-size: 12px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 时间线 ---------- */
.timeline { position: relative; list-style: none; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline > li { position: relative; padding-bottom: var(--sp-10); }
.timeline > li::before {
  content: ""; position: absolute; left: -28px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--primary);
}

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: var(--sp-16) 0 var(--sp-8); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: var(--sp-8); }
.footer-brand p { margin: var(--sp-4) 0; color: var(--text-3); max-width: 300px; font-size: 14px; }
.footer-col h4 { font-size: 14px; margin-bottom: var(--sp-4); color: var(--text); }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--text-3); }
.footer-col a:hover { color: var(--link); }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-12); padding-top: var(--sp-6); border-top: 1px solid var(--border); color: var(--text-3); font-size: 13px; }
.footer-bottom a { color: var(--text-3); }
.footer-bottom .links { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 回到顶部 / Toast ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); color: var(--text-2);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s var(--ease);
}
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 18px; height: 18px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 20px);
  padding: 10px 18px; border-radius: var(--r-md); background: #0f172a; color: #fff; font-size: 14px;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all .2s var(--ease);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 滚动进入动效 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 语言切换 / 品牌 Logo ---------- */
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px;
  border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); font-size: 13px; font-weight: 600;
}
.lang-switch:hover { color: var(--text); border-color: var(--border-strong); text-decoration: none; }
.lang-switch svg { width: 16px; height: 16px; }
.brand svg { border-radius: 8px; box-shadow: 0 0 0 1px rgba(52, 211, 153, .18); }
.btn-demo svg { width: 16px; height: 16px; }
@media (max-width: 480px) { .lang-switch span { display: none; } .lang-switch { width: 38px; justify-content: center; padding: 0; } }
