/* ============================================================
   TradeCC 官网 · 设计系统 (V1.0 视觉规范)
   品牌主色 #24D064（取自徽标） · 浅色大留白 · 1200px 容器
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* 品牌色（取自 TradeCC 徽标 #24D064） */
  --brand: #24D064;           /* 徽标绿：装饰、填充、渐变、图标 */
  --brand-strong: #0B7A3B;    /* 深绿：文字/链接/按钮（对比度 ≥ 4.5:1） */
  --brand-bright: #45E084;
  --brand-deep: #075E2C;
  --brand-soft: #E6FBF0;
  --brand-soft-2: #CFF6DF;
  --cyan: #0E8A6E;            /* 辅助：青绿，仅少量 */
  --cyan-soft: #E3F7F1;

  /* 中性 / 表面 */
  --bg: #F7F8FC;
  --surface: #FFFFFF;
  --surface-2: #F1F3FA;
  --text: #172033;
  --text-2: #526079;
  --text-3: #5F6B7A;
  --line: #E6E9F2;
  --line-strong: #D4DAE8;

  /* 语义（独立于涨跌，不用于按钮装饰） */
  --up: #E5484D;            /* 涨（独立语义色） */
  --down: #12A150;          /* 跌（独立语义色） */
  --warn: #8A5200;
  --warn-soft: #FFF4E0;
  --danger: #B54747;
  --danger-soft: #FDECEC;
  --ok: #0B7A3B;
  --ok-soft: #E7F7EE;

  /* 间距尺度 4/8/12/16/24/32/48/64/80 */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 80px;

  /* 圆角 */
  --r-btn: 11px;
  --r-card: 16px;
  --r-drawer: 20px;
  --r-pill: 999px;

  /* 阴影 */
  --sh-sm: 0 1px 2px rgba(16,28,51,.05);
  --sh-md: 0 6px 20px rgba(16,28,51,.07);
  --sh-lg: 0 18px 48px rgba(16,28,51,.10);

  /* 字体 */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, "Cascadia Code",
          Consolas, monospace;

  /* 动效 */
  --t-fast: 160ms ease;
  --t-norm: 220ms ease;

  --maxw: 1200px;
  --header-h: 68px;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { color: var(--brand-deep); }
h1, h2, h3, h4 { margin: 0 0 var(--s-3); color: var(--text); line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; text-wrap: balance; }
h2 { font-size: clamp(24px, 3.4vw, 38px); }
h3 { font-size: 20px; }
p { margin: 0 0 var(--s-4); }
ul { margin: 0 0 var(--s-4); padding-left: 1.25em; }
li { margin: 0 0 var(--s-2); }
:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--s-5); padding-right: var(--s-5); }
.container--narrow { max-width: 880px; }
.section { padding: var(--s-9) 0; }
.section--tight { padding: var(--s-7) 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: var(--s-5); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); letter-spacing: -0.02em; min-height: 44px; }
.brand:hover { color: var(--text); }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-bright) 100%);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px;
  box-shadow: var(--sh-sm);
}
.brand .mark span { transform: translateY(-1px); }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; display: block; }
.footer-logo { width: 28px; height: 28px; border-radius: 8px; display: block; }

/* 语言下拉框 */
.lang-select {
  height: 44px; padding: 0 8px; font-family: var(--font); font-size: 14px; font-weight: 600;
  color: var(--text); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 9px; cursor: pointer; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.lang-select:hover { border-color: var(--brand-strong); }
.lang-select:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 2px; }
@media (max-width: 900px) {
  .nav-toggle { margin-left: 8px; }
  .lang-select { height: 44px; font-size: 13px; }
}
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: var(--s-4); }
.nav-links a {
  color: var(--text-2); font-weight: 500; font-size: 15px;
  padding: 10px 12px; border-radius: 9px; min-height: 44px; display: inline-flex; align-items: center;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--brand-strong); background: var(--brand-soft); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-3); }
.nav-toggle { display: none; }

/* 移动端菜单 */
.mobile-menu {
  display: none; border-top: 1px solid var(--line); background: var(--surface);
  padding: var(--s-4) var(--s-5) var(--s-5);
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 8px; color: var(--text-2); font-weight: 500; border-radius: 9px; }
.mobile-menu a:hover { background: var(--surface-2); color: var(--text); }
.mobile-menu .btn { width: 100%; margin-top: var(--s-3); }

@media (max-width: 900px) {
  .nav-links, .nav-actions .desktop-only { display: none; }
  .nav-toggle {
    display: inline-flex; margin-left: auto; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 11px;
    background: var(--surface); cursor: pointer; color: var(--text);
  }
  .nav-toggle svg { width: 22px; height: 22px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--r-btn);
  font-family: var(--font); font-size: 16px; font-weight: 600; line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--brand-strong); color: #fff; box-shadow: var(--sh-sm); }
.btn--primary:hover { background: var(--brand-deep); color: #fff; box-shadow: var(--sh-md); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface-2); color: var(--text); }
.btn--text { background: transparent; color: var(--brand-strong); padding: 0 8px; height: auto; min-height: 44px; display: inline-flex; align-items: center; }
.btn--text:hover { color: var(--brand-deep); transform: none; }
.btn--sm { height: 44px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--lg { height: 54px; padding: 0 28px; font-size: 17px; }

/* ---------- Tag / Badge ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--brand-soft); color: var(--brand-strong);
}
.tag--cyan { background: var(--cyan-soft); color: #0E7A5F; }
.tag--muted { background: var(--surface-2); color: var(--text-2); }
.tag--ok { background: var(--ok-soft); color: var(--ok); }
.tag--warn { background: var(--warn-soft); color: var(--warn); }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-strong); margin-bottom: var(--s-3);
}
.section-head { max-width: 720px; margin-bottom: var(--s-7); }
.section-head p { color: var(--text-2); font-size: 18px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: var(--s-5); box-shadow: var(--sh-sm);
  transition: box-shadow var(--t-norm), transform var(--t-norm), border-color var(--t-norm);
}
.card--hover:hover { box-shadow: var(--sh-md); transform: translateY(-3px); border-color: var(--line-strong); }

/* ---------- Hero ---------- */
.hero { padding: var(--s-9) 0 var(--s-8); }
.hero-grid { display: grid; grid-template-columns: 48fr 52fr; gap: var(--s-7); align-items: center; }
.hero h1 { margin-bottom: var(--s-4); }
.hero .lead { font-size: 19px; color: var(--text-2); max-width: 34em; margin-bottom: var(--s-5); }
.hero-cta { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-4); }
.hero-note { font-size: 13px; color: var(--text-3); max-width: 30em; }
.hero-note strong { color: var(--text-2); font-weight: 600; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* 产品 UI 示例（CSS 构建，非插画） */
.product-mock {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--sh-lg); overflow: hidden;
}
.product-mock .pm-top {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.product-mock .pm-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.product-mock .pm-title { font-weight: 600; font-size: 14px; color: var(--text); }
.product-mock .pm-body { padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.pm-row { display: flex; gap: 10px; align-items: flex-start; }
.pm-avatar { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; }
.pm-avatar.cc { background: linear-gradient(135deg, var(--brand), var(--brand-bright)); }
.pm-avatar.user { background: #2B3447; }
.pm-bubble { background: var(--surface-2); border-radius: 4px 14px 14px 14px; padding: 11px 14px; font-size: 14px; line-height: 1.55; color: var(--text); max-width: 92%; }
.pm-bubble.user { background: var(--brand-soft); color: var(--brand-strong); border-radius: 14px 4px 14px 14px; }
.pm-understand { font-size: 12px; color: var(--text-3); margin: 2px 0 4px 44px; }
.pm-options { display: flex; flex-direction: column; gap: 8px; margin-left: 44px; margin-top: 4px; }
.pm-opt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; background: var(--surface); }
.pm-opt b { color: var(--text); }
.pm-opt .pm-est { margin-left: auto; font-size: 12px; color: var(--text-3); font-family: var(--mono); }
.pm-opt.rec { border-color: var(--brand); background: var(--brand-soft); }

/* ---------- 流程 / 步骤 ---------- */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: var(--s-4); }
.step { display: grid; grid-template-columns: 40px 1fr; gap: var(--s-4); align-items: start; }
.step .num {
  width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong);
  display: grid; place-items: center; font-weight: 700; font-family: var(--mono);
}
.step h4 { margin: 0 0 4px; font-size: 17px; }
.step p { margin: 0; color: var(--text-2); font-size: 15px; }

/* ---------- 四模式对比 ---------- */
.mode-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
@media (max-width: 1023px) { .mode-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .mode-grid { grid-template-columns: 1fr; } }
.mode-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-5); }
.mode-card h4 { font-size: 17px; margin-bottom: 6px; }
.mode-card .mode-when { font-size: 13px; color: var(--text-3); margin-bottom: var(--s-3); }
.mode-card ul { font-size: 14px; color: var(--text-2); padding-left: 1.1em; margin: 0; }
.mode-card .mode-est { margin-top: var(--s-3); font-size: 13px; color: var(--brand-strong); font-weight: 600; font-family: var(--mono); }

/* ---------- 专家卡 ---------- */
.expert-card { display: flex; flex-direction: column; gap: var(--s-3); }
.expert-head { display: flex; align-items: center; gap: 12px; }
.expert-avatar { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 14px; flex: none; }
.expert-name { font-weight: 700; font-size: 17px; color: var(--text); }
.expert-role { font-size: 13px; color: var(--text-3); }
.expert-q { font-size: 14px; color: var(--text-2); border-left: 3px solid var(--brand-soft); padding-left: 12px; background: var(--surface-2); border-radius: 0 8px 8px 0; padding: 10px 12px; }
.expert-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.expert-card .btn { margin-top: auto; }

/* ---------- 定价 ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); }
.price-card.featured { border-color: var(--brand); box-shadow: var(--sh-md); position: relative; }
.price-card .ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand-strong); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: var(--r-pill); }
.price-name { font-size: 15px; font-weight: 700; color: var(--text-2); }
.price-amt { font-size: 36px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.price-amt small { font-size: 15px; font-weight: 600; color: var(--text-3); }
.price-cc { font-size: 14px; color: var(--text-2); font-family: var(--mono); }
.price-feats { list-style: none; padding: 0; margin: var(--s-2) 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-2); }
.price-feats li { display: flex; gap: 8px; align-items: flex-start; }
.price-feats li svg { flex: none; width: 18px; height: 18px; color: var(--ok); margin-top: 2px; }
.price-note { font-size: 12px; color: var(--text-3); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  display: flex; align-items: center; gap: 12px; padding: var(--s-4) 0;
  font-size: 17px; font-weight: 600; color: var(--text); font-family: var(--font);
}
.faq-q .ic { margin-left: auto; flex: none; width: 22px; height: 22px; transition: transform var(--t-fast); color: var(--text-3); }
.faq-item.open .faq-q .ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--t-norm); }
.faq-a-inner { padding: 0 0 var(--s-4); color: var(--text-2); font-size: 15px; max-width: 64em; }

/* ---------- 表单 / 认证 ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { background: linear-gradient(160deg, #052E16 0%, #0B7A3B 60%, #0B7A3B 100%); color: #fff; padding: var(--s-8); display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-aside { display: none; } }
.auth-aside h2 { color: #fff; }
.auth-aside p { color: rgba(255,255,255,.85); }
.auth-aside .aside-points { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: flex; flex-direction: column; gap: 14px; }
.auth-aside .aside-points li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.92); font-size: 15px; }
.auth-aside .aside-points .dot { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: var(--s-7) var(--s-5); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-2); margin-bottom: var(--s-5); font-size: 15px; }
.field { margin-bottom: var(--s-4); }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--text-3); font-weight: 400; }
.field input {
  width: 100%; height: 48px; padding: 0 14px; font-size: 16px; font-family: var(--font);
  border: 1px solid var(--line-strong); border-radius: var(--r-btn); background: var(--surface); color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus { outline: none; border-color: var(--brand-strong); box-shadow: 0 0 0 3px var(--brand-soft); }
.field .err { color: var(--danger); font-size: 13px; margin-top: 6px; display: none; }
.field.invalid input { border-color: var(--danger); }
.field.invalid .err { display: block; }
.code-row { display: flex; gap: var(--s-3); }
.code-row input { letter-spacing: .3em; font-family: var(--mono); }
.code-row .btn { flex: none; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); margin-bottom: var(--s-4); }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.checkbox a { color: var(--brand-strong); }
.auth-alt { text-align: center; font-size: 14px; color: var(--text-2); margin-top: var(--s-4); }
.auth-alt a { font-weight: 600; }

/* 验证码状态行 */
.code-status { font-size: 13px; color: var(--text-2); margin-top: 8px; min-height: 18px; }
.code-status.ok { color: var(--ok); }
.code-status.warn { color: var(--warn); }
.resend { background: none; border: 0; color: var(--brand-strong); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.resend:disabled { color: var(--text-3); cursor: default; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
th { background: var(--surface-2); font-weight: 600; color: var(--text); font-size: 13px; }
tr:last-child td { border-bottom: 0; }
td { color: var(--text-2); }

/* ---------- Callout / 合规 ---------- */
.callout { display: flex; gap: 12px; padding: var(--s-4); border-radius: 12px; font-size: 14px; line-height: 1.55; }
.callout .ic { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.callout--info { background: var(--brand-soft); color: var(--brand-strong); }
.callout--warn { background: var(--warn-soft); color: var(--warn); }
.callout--risk { background: var(--danger-soft); color: var(--danger); }

/* ---------- 页脚 ---------- */
.site-footer { background: #06130C; color: #C6D8CD; padding: var(--s-8) 0 var(--s-6); }
.site-footer a { color: #AFC6B7; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s-6); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { color: #fff; font-weight: 800; font-size: 18px; display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--s-3); }
.footer-brand .mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg,var(--brand),var(--brand-bright)); color:#fff; display:grid; place-items:center; font-weight:800; font-size:12px; }
.footer-col h2, .footer-col h5, .footer-col-title { color: #fff; font-size: 14px; margin: 0 0 var(--s-3); letter-spacing: .02em; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; font-size: 14px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid #173423; font-size: 13px; color: #8AA697; display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); justify-content: space-between; }
.footer-compliance { font-size: 12px; color: #8AA697; max-width: 70ch; line-height: 1.6; margin-top: var(--s-4); }

/* ---------- 收尾 CTA ---------- */
.cta-band { background: linear-gradient(160deg, #052E16 0%, #0B7A3B 55%, #24D064 130%); color: #fff; border-radius: 22px; padding: var(--s-8); text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: var(--s-3); }
.cta-band p { color: rgba(255,255,255,.85); max-width: 40em; margin: 0 auto var(--s-5); }

/* ---------- 筛选条 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-5); }
.filter-bar button {
  font: inherit; font-size: 14px; padding: 8px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2);
  cursor: pointer; transition: all var(--t-fast);
}
.filter-bar button:hover { border-color: var(--brand-strong); color: var(--brand-strong); }
.filter-bar button.active { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.filter-bar button:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 2px; }
.filter-bar button { min-height: 44px; }

/* ---------- 法务文档布局 ---------- */
.legal-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: var(--s-6); align-items: start; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static !important; }
}
.legal-toc {
  position: sticky; top: calc(var(--header-h) + 16px);
  border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  background: var(--surface); font-size: 14px;
}
.legal-toc h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin: 0 0 10px; }
.legal-toc a { display: block; padding: 10px 0; min-height: 44px; color: var(--text-2); line-height: 1.45; }
.legal-toc a:hover { color: var(--brand-strong); }
.legal-doc { color: var(--text); font-size: 15.5px; line-height: 1.8; min-width: 0; }
.legal-doc h2 { font-size: 24px; margin: var(--s-6) 0 var(--s-3); }
.legal-doc h3 { font-size: 19px; margin: var(--s-6) 0 var(--s-3); padding-top: 4px; }
.legal-doc h4 { font-size: 16px; margin: var(--s-5) 0 var(--s-2); }
.legal-doc p { color: var(--text-2); margin: 0 0 var(--s-3); }
.legal-doc ul, .legal-doc ol { color: var(--text-2); margin: 0 0 var(--s-3); padding-left: 1.35em; }
.legal-doc li { margin-bottom: 8px; }
.legal-doc strong { color: var(--text); }
.legal-doc a { text-decoration: underline; text-decoration-color: var(--brand-strong); text-underline-offset: 2px; }
.legal-doc table { margin: var(--s-3) 0; width: 100%; }
.legal-doc blockquote { margin: var(--s-3) 0; padding: 10px 16px; border-left: 3px solid var(--brand); background: var(--brand-soft); border-radius: 0 10px 10px 0; color: var(--brand-strong); }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-6); }
.legal-links a { font-size: 14px; padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--text-2); background: var(--surface); }
.legal-links a:hover { border-color: var(--brand-strong); color: var(--brand-strong); }
.legal-meta { font-size: 13px; color: var(--text-3); margin-top: 6px; }

/* ---------- 通用排版工具 ---------- */
.lead-lg { font-size: 19px; color: var(--text-2); line-height: 1.7; }
.muted { color: var(--text-2); }
.center { text-align: center; }
.stack > * + * { margin-top: var(--s-4); }
.divider { height: 1px; background: var(--line); border: 0; margin: var(--s-6) 0; }
.mb-0 { margin-bottom: 0; }
.mt-5 { margin-top: var(--s-5); }
.two-col { columns: 2; column-gap: var(--s-6); }
@media (max-width: 700px) { .two-col { columns: 1; } }

/* 内部页面头部 */
.page-head { padding: var(--s-8) 0 var(--s-6); }
.page-head .eyebrow { margin-bottom: var(--s-2); }
.page-head h1 { margin-bottom: var(--s-3); }
.page-head .lead { font-size: 18px; color: var(--text-2); max-width: 56em; }

/* 锚点导航（legal） */
.anchor-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-5); }
.anchor-nav a { font-size: 14px; padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--text-2); background: var(--surface); }
.anchor-nav a:hover { border-color: var(--brand-strong); color: var(--brand-strong); }

/* 减少动态效果 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- 11-language additions ---------- */
html[lang="ar"] body, html[lang="ur"] body { font-family: "Noto Naskh Arabic", "Geeza Pro", "Noto Nastaliq Urdu", "Segoe UI", Tahoma, sans-serif; }
html[lang="hi"] body { font-family: "Noto Sans Devanagari", "Devanagari MT", "Nirmala UI", "Segoe UI", sans-serif; }
html[lang="bn"] body { font-family: "Noto Sans Bengali", "Bangla MN", "Nirmala UI", "Segoe UI", sans-serif; }

/* ---------- 2026-11-12: de / ja / id ---------- */
/* 日语：--font 里的 PingFang SC / Hiragino Sans GB / 微软雅黑 排在系统日文字体前面，汉字会用中文字形；日语页把日文字体放在前面 */
html[lang="ja"] { --font: "Inter", system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif; }
/* 德语复合词很长：窄屏按词典断词，实在没有断点才折行，避免按钮 / 卡片横向溢出 */
html[lang="de"] body { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
html[lang="id"] body { overflow-wrap: break-word; }
/* "Bahasa Indonesia" 是最长的选项，会把收起状态的语言选择器撑宽 48px，1101–1199px 的页头（法 / 西 / 孟加拉语导航文字本来就紧）会因此折行：
   这个区间收回原来的宽度，长名字用省略号（展开的列表里是全名）。≤1100px 本来就固定 120px。 */
.lang-select { text-overflow: ellipsis; }
@media (min-width: 1101px) and (max-width: 1199px) { .lang-select { max-width: 104px; } }
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .nav, [dir="rtl"] .nav-links, [dir="rtl"] .nav-actions, [dir="rtl"] .mobile-menu { flex-direction: row; }
[dir="rtl"] .nav-links { margin-left: 0; margin-right: var(--s-4); }
[dir="rtl"] .nav-actions { margin-left: 0; margin-right: auto; }
[dir="rtl"] .footer-col, [dir="rtl"] .hero, [dir="rtl"] .page-head, [dir="rtl"] .legal-doc, [dir="rtl"] .mode-card, [dir="rtl"] .expert-card, [dir="rtl"] .price-card { text-align: right; }
[dir="rtl"] .legal-toc a, [dir="rtl"] .mobile-menu a { text-align: right; }
[dir="rtl"] .callout { text-align: right; }
[dir="rtl"] .faq-q { text-align: right; }
.mode-card--recommended { border-color: var(--brand-strong) !important; box-shadow: 0 0 0 1px var(--brand-strong) inset; }
.tag--recommended { background: var(--brand-soft); color: var(--brand-strong); }

[dir="rtl"] ul, [dir="rtl"] ol { padding-left: 0; padding-right: 1.35em; }
[dir="rtl"] .mode-card ul { padding-left: 0; padding-right: 1.1em; }
[dir="rtl"] .hero-cta, [dir="rtl"] .legal-links { flex-direction: row-reverse; }
[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }
[dir="rtl"] .price-card .ribbon { left: 50%; }

/* TradeCC marketing H5 repair · 2026-10-26
   Scoped layout repair; retain existing brand, content and commercial rules. */
.hero-grid > *, .grid > *, .mode-grid > *, .price-grid > *,
.footer-grid > *, .step > *, .expert-head > *, .pm-row > * { min-width: 0; }
.brand-logo, .footer-logo { object-fit: contain; height: auto; }

/* The eleven-language navigation needs more room than the English-only one. */
@media (max-width: 1100px) {
  .nav { gap: 12px; }
  .nav-links, .nav-actions .desktop-only { display: none; }
  .nav-actions { gap: 8px; min-width: 0; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 44px; width: 44px; height: 44px; margin: 0;
    border: 1px solid var(--line); border-radius: 11px;
    background: var(--surface); color: var(--text); cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .lang-select { min-width: 0; width: 120px; max-width: 100%; }
  .mobile-menu.open {
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto; overscroll-behavior: contain;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
  .mobile-menu a { min-height: 44px; overflow-wrap: anywhere; }
  [dir="rtl"] .nav-actions { margin-left: 0; margin-right: auto; }
}
@media (min-width: 1101px) { .mobile-menu.open { display: none; } }

@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .container { padding-inline: 20px; }
  .section { padding-block: 44px; }
  .section--tight { padding-block: 32px; }
  .hero { padding-block: 36px 32px; }
  .hero-grid { gap: 28px; grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(30px, 7.7vw, 38px); line-height: 1.2; text-wrap: pretty; }
  .hero .lead, .lead-lg, .section-head p, .page-head .lead {
    font-size: 16px; line-height: 1.7;
  }
  .hero .lead { margin-bottom: 20px; }
  .hero-cta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hero-cta .btn { width: 100%; }
  .btn { max-width: 100%; min-height: 48px; height: auto; padding-block: 12px; white-space: normal; line-height: 1.4; text-align: center; }
  .btn--sm { min-height: 44px; }
  .btn--text { min-height: 44px; }
  .hero-note { max-width: none; font-size: 12px; line-height: 1.65; }
  .eyebrow { font-size: 11px; letter-spacing: .06em; }
  h2 { font-size: clamp(24px, 6.3vw, 30px); line-height: 1.3; }
  h3 { font-size: 18px; }
  .section-head { margin-bottom: 24px; }
  .page-head { padding-block: 32px 24px; }
  .grid { gap: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .card, .mode-card, .price-card { padding: 20px; }
  .mode-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .price-grid { max-width: none; gap: 24px; }
  .product-mock { border-radius: 16px; box-shadow: var(--sh-md); }
  .product-mock .pm-top { padding: 12px; gap: 6px; }
  .pm-title { min-width: 0; overflow-wrap: anywhere; }
  .product-mock .pm-body { padding: 14px 12px; }
  .pm-row { gap: 8px; }
  .pm-avatar { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
  .pm-bubble { flex: 1 1 0; max-width: none; padding: 10px 12px; font-size: 13px; overflow-wrap: anywhere; }
  .pm-understand, .pm-options { margin-inline-start: 36px; margin-inline-end: 0; }
  .pm-opt { display: flex; flex-wrap: wrap; gap: 6px 8px; padding: 10px; align-items: flex-start; }
  .pm-opt > b { flex: 1 1 100%; line-height: 1.5; }
  .pm-opt .pm-est { margin: 0; flex: 1 1 100%; font-size: 11px; overflow-wrap: anywhere; }
  .step { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .step .num { width: 32px; height: 32px; border-radius: 9px; }
  .step h4 { font-size: 16px; line-height: 1.4; }
  .step p { font-size: 14px; line-height: 1.65; }
  .expert-head { align-items: flex-start; }
  .expert-name { line-height: 1.4; overflow-wrap: anywhere; }
  .expert-role, .expert-q, .tag { overflow-wrap: anywhere; }
  .expert-card .btn { width: 100%; }
  .cta-band { padding: 28px 20px; border-radius: 16px; }
  .cta-band .btn { width: 100%; }
  .cta-band p { font-size: 15px; line-height: 1.7; }
  .faq-q { font-size: 16px; line-height: 1.5; min-height: 56px; }
  .faq-a-inner { font-size: 14px; line-height: 1.75; }
  .filter-bar { gap: 8px; }
  .filter-bar button { flex: 0 1 auto; white-space: normal; text-align: start; }
  .callout { gap: 10px; padding: 14px; font-size: 13px; }
  .callout > :not(.ic) { min-width: 0; overflow-wrap: anywhere; }
  .site-footer { padding-block: 36px 24px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-col a { font-size: 13px; line-height: 1.5; padding-block: 8px; overflow-wrap: anywhere; }
  .footer-bottom { margin-top: 28px; font-size: 12px; }
  .footer-compliance { max-width: none; overflow-wrap: anywhere; }
  .legal-doc { font-size: 16px; overflow-wrap: anywhere; }
  .legal-doc table { display: block; min-width: 0; overflow-x: auto; }
  .table-wrap { max-width: 100%; overscroll-behavior-inline: contain; }
  .legal-links a, .anchor-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .legal-toc { max-width: 100%; }
  .auth-wrap { min-height: calc(100svh - var(--header-h)); }
  .auth-main { padding: 28px 20px; align-items: flex-start; }
  .code-row { flex-wrap: wrap; }
  .code-row input { min-width: 0; flex: 1 1 140px; }
  .code-row .btn { flex: 1 1 120px; }
  [dir="rtl"] .hero-cta { direction: rtl; }
}
@media (max-width: 359px) {
  .container { padding-inline: 16px; }
  .nav { gap: 8px; }
  .brand { font-size: 18px; gap: 8px; }
  .lang-select { width: 88px; font-size: 13px; padding-inline: 5px; }
  .card, .mode-card, .price-card { padding: 16px; }
}
@media (hover: none) {
  .btn:hover, .card--hover:hover { transform: none; }
}
