/* 华商通设计系统 v2.3 —— 门户 /portal 与控制台 /console 共用。
   中英双语站点共用一套 tokens；旧页面（index/admin/platform）P3 再迁入。 */

:root {
  --bg: #f6f7fb;
  --bg-2: #eef1f7;
  --surface: #ffffff;
  --ink: #101828;
  --ink-2: #475467;
  --ink-3: #98a2b3;
  --line: #e4e7ec;
  --brand: #4f46e5;
  --brand-2: #6366f1;
  --brand-soft: #eef2ff;
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%);
  --grad-soft: linear-gradient(135deg, rgba(99, 102, 241, .14), rgba(168, 85, 247, .12));
  --ok: #12b76a;
  --ok-soft: #ecfdf3;
  --warn: #f79009;
  --warn-soft: #fffaeb;
  --bad: #f04438;
  --bad-soft: #fef3f2;
  /* 圆角：与 admin.css 同名同值（admin 侧少用 2xl~5xl） */
  --r-sm: 8px;
  --r-md: 11px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-3xl: 28px;
  --r-4xl: 34px;
  --r-5xl: 48px;
  --r-pill: 999px;
  --r-circle: 50%;
  --shadow-s: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .07);
  --shadow-lift: 0 14px 32px -16px rgba(16, 24, 40, .22);
  --sh-btn: 0 6px 16px -7px rgba(99, 102, 241, .65);
  --sh-btn-hover: 0 10px 22px -8px rgba(129, 90, 255, .7);
  --sh-focus: 0 0 0 3px var(--brand-soft);
  --sh-logo: 0 5px 12px -5px rgba(99, 102, 241, .7);
  --sh-navpanel: 0 18px 34px -22px rgba(16, 24, 40, .55);
  --sh-eyebrow: 0 4px 14px -8px rgba(99, 102, 241, .55);
  --sh-ghost-cta: 0 6px 18px -12px rgba(16, 24, 40, .4);
  --sh-stepnum: 0 9px 18px -8px rgba(99, 102, 241, .65);
  --sh-save: 0 6px 14px -7px rgba(99, 102, 241, .75);
  --sh-price-featured: 0 18px 44px -22px rgba(99, 102, 241, .55);
  --sh-side-active: inset 0 0 0 1px rgba(99, 102, 241, .18);
  --sh-plan-hot: 0 0 0 1px var(--brand);
  --sh-nav: 0 10px 30px -20px rgba(16, 24, 40, .5);
  --sh-mock-chat: 0 34px 64px -32px rgba(49, 46, 129, .5), 0 14px 34px -20px rgba(16, 24, 40, .35);
  --sh-mock-avatar: 0 5px 12px -6px rgba(99, 102, 241, .8);
  --sh-bubble-out: 0 8px 18px -10px rgba(99, 102, 241, .8);
  --sh-cta-band: 0 32px 64px -32px rgba(99, 102, 241, .7);
  --sh-cta-btn: 0 14px 30px -14px rgba(0, 0, 0, .5);
  --sh-cta-btn-hover: 0 18px 34px -14px rgba(0, 0, 0, .55);
  --sh-hero-img: 0 44px 74px -40px rgba(49, 46, 129, .60), 0 18px 36px -26px rgba(16, 24, 40, .45);
  --sh-cta-b: 0 12px 28px -16px rgba(0, 0, 0, .8);
  --sh-bmark-d1: 0 0 16px 5px rgba(167, 139, 250, .65);
  --sh-bmark-d2: 0 0 16px 5px rgba(103, 232, 249, .55);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;

  /* ===== T7-R2 V7 收敛：规则体颜色全部走 token（明色基线值 = 原裸色，明面渲染零变化） ===== */
  --ok-fg: #027a48; --warn-fg: #b54708; --bad-fg: #b42318; --info-fg: #3538cd;
  --warn-fg-deep: #93370d; --bad-fg-deep: #912018;
  --ok-line: #6ce9a6; --warn-line: #fec84b; --bad-line: #fda29b; --info-line: #c7d7fe;
  --line-hover: #d7ddf5; --line-2: #d0d5dd; --line-strong: #b6bdc9;
  --line-brand: #c7d0fd; --line-3: #dfe4ff;
  --brand-tint: #f2f4ff; --brand-tint-line: #dbe2ff;
  --ind0-bg: #fff4e5; --ind0-fg: #b54708;
  --ind3-bg: #f4ebff; --ind3-fg: #6941c6;
  /* 能力区图标：品牌单色系两组交替（原六色 → 靛蓝家族，B 气质贯彻全站） */
  --fi-a-bg: #eef2ff; --fi-a-fg: #4f46e5; --fi-a-line: #dbe2ff;
  --fi-b-bg: #e0e7ff; --fi-b-fg: #4338ca; --fi-b-line: #c7d2fe;
  /* 首屏 / 导航 / 页脚表面（明暗双值） */
  --nav-bg: rgba(255, 255, 255, .78); --nav-line: rgba(228, 231, 236, .8); --nav-panel: #ffffff;
  --hero-eye-bg: rgba(255, 255, 255, .72);
  --hero-note-bg: rgba(255, 255, 255, .66); --hero-note-line: rgba(228, 231, 236, .9);
  --hero-ghost-bg: rgba(255, 255, 255, .82); --hero-cta-ink: #171a33;
  --grad-h1: linear-gradient(180deg, #101828 20%, #3b2f9e 130%);
  --grad-h1-b: linear-gradient(180deg, #ffffff 52%, #c7d2fe 130%);
  --b-hero: linear-gradient(168deg, #141732 0%, #221a4b 52%, #3a1f6d 100%);
  --b-dot1: #a78bfa; --b-dot2: #67e8f9;
  --mock-bg: #f6f7fd; --mock-head-bg: rgba(255, 255, 255, .95);
  --prod-bg-a: #ecfdf3; --prod-bg-b: #d1fae5;
  --foot-grad: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .75));
  --on-brand-fg: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(99, 102, 241, .22); }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.muted { color: var(--ink-2); }
.muted-3 { color: var(--ink-3); }
.small { font-size: 13px; }
.center { text-align: center; }
.grow { flex: 1; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.hide { display: none !important; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: var(--r-lg); padding: 10px 18px; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: var(--font); line-height: 1.2;
  transition: box-shadow .18s, transform .06s, background .18s, border-color .18s, filter .18s;
}
.btn:hover { box-shadow: var(--shadow-s); text-decoration: none; border-color: var(--line-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary {
  background: var(--grad); border-color: transparent; color: #fff;
  box-shadow: var(--sh-btn);
}
.btn-primary:hover {
  background: var(--grad); border-color: transparent; filter: brightness(1.07);
  box-shadow: var(--sh-btn-hover); text-decoration: none;
}
.btn-primary:active { filter: brightness(.98); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--brand); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--r-lg); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: var(--r-sm); }
.btn-block { width: 100%; }

/* ---------- 表单 ---------- */
.field { margin: 14px 0; }
.label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.input, .select {
  width: 100%; border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--r-sm); padding: 11px 12px; font-size: 15px; color: var(--ink);
  font-family: var(--font); outline: none;
}
.input:focus, .select:focus { border-color: var(--brand-2); box-shadow: var(--sh-focus); }
.input::placeholder { color: var(--ink-3); }

/* ---------- 卡片 / 网格 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--shadow-s); padding: 20px;
}
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .g-3 { grid-template-columns: 1fr; } .g-2 { grid-template-columns: 1fr; } }

/* ---------- 徽标 / 状态 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: var(--r-pill); padding: 3px 10px; font-size: 12px; font-weight: 600;
  background: var(--bg-2); color: var(--ink-2);
}
.badge-ok { background: var(--ok-soft); color: var(--ok-fg); }
.badge-warn { background: var(--warn-soft); color: var(--warn-fg); }
.badge-bad { background: var(--bad-soft); color: var(--bad-fg); }
.badge-brand { background: var(--brand-soft); color: var(--brand); }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid var(--nav-line);
}
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { font-weight: 800; font-size: 17px; color: var(--ink); letter-spacing: .2px;
  display: inline-flex; align-items: center; gap: 9px; }
.brand:hover { text-decoration: none; }
.brand i {
  font-style: normal; color: #fff; background: var(--grad);
  width: 26px; height: 26px; border-radius: var(--r-sm); font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-logo);
}
/* T7-R2 V3：品牌标识复用 favicon.svg 图形（console 的 <i>◆</i> 不受影响） */
.brand i.bico {
  background: none; overflow: hidden;
  -webkit-mask-image: none; mask-image: none;
}
.brand i.bico img { width: 100%; height: 100%; display: block; }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a {
  color: var(--ink-2); font-weight: 500; font-size: 14px;
  padding: 6px 12px; border-radius: var(--r-pill); transition: background .15s, color .15s;
}
.nav-links a:hover { color: var(--brand); background: var(--brand-soft); text-decoration: none; }
.nav .btn { border-radius: var(--r-pill); }
.lang-btn {
  border: 1px solid var(--line); background: var(--nav-panel); color: var(--ink-2);
  border-radius: var(--r-pill); padding: 5px 13px; font-size: 13px; cursor: pointer; font-family: var(--font);
  font-weight: 600; transition: border-color .15s, color .15s;
}
.lang-btn:hover { border-color: var(--brand-2); color: var(--brand); }

/* 汉堡按钮（≤720px 显示；三横线 ↔ 叉号） */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--nav-panel); color: var(--ink-2); cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.nav-toggle:hover { border-color: var(--brand-2); color: var(--brand); }
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  display: block; width: 16px; height: 2px; border-radius: var(--r-pill);
  background: currentColor; transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; position: absolute; left: 0;
}
.nav-toggle .bars::before { top: -5px; }
.nav-toggle .bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] { color: var(--brand); border-color: var(--brand-2); }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }

/* 移动端：导航链接受进下拉面板（原来只是 display:none，手机上无法跳转） */
@media (max-width: 720px) {
  .nav .wrap { gap: 8px; }
  .nav-toggle { display: inline-flex; }
  .nav .lang-btn { margin-left: auto; }
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex: none; flex-direction: column; gap: 3px;
    padding: 10px 16px 14px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-navpanel);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a {
    padding: 11px 13px; border-radius: var(--r-md);
    font-size: 15px; font-weight: 600; color: var(--ink);
  }
  .nav-links a:hover { background: var(--brand-soft); color: var(--brand); }
}
/* 极窄屏（320px）：收紧头部，保证品牌 + 语言 + CTA + 汉堡一行放得下 */
@media (max-width: 400px) {
  .nav .wrap { gap: 6px; }
  .brand { font-size: 16px; gap: 7px; }
  .brand i { width: 24px; height: 24px; border-radius: var(--r-sm); }
  .nav .btn { padding: 7px 11px; font-size: 13px; }
  .lang-btn { padding: 5px 10px; }
  .nav-toggle { width: 34px; height: 34px; }
}

/* ---------- 门户区块 ---------- */
.hero {
  position: relative; overflow: hidden; padding: 96px 0 76px; text-align: center;
  background:
    radial-gradient(900px 480px at 50% -150px, rgba(129, 90, 255, .30), transparent 65%),
    radial-gradient(620px 320px at 12% 18%, rgba(56, 189, 248, .16), transparent 62%),
    radial-gradient(620px 320px at 88% 24%, rgba(236, 72, 153, .12), transparent 62%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(99, 102, 241, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(720px 420px at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(720px 420px at 50% 0%, #000 0%, transparent 78%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 17px; border-radius: var(--r-pill); margin-bottom: 22px;
  background: var(--hero-eye-bg); border: 1px solid var(--line-3);
  color: var(--brand); font-size: 14px; font-weight: 700; letter-spacing: .3px;
  box-shadow: var(--sh-eyebrow);
  backdrop-filter: blur(6px);
}
.hero h1 {
  font-size: clamp(34px, 5.6vw, 58px); line-height: 1.2; margin: 0 0 18px;
  letter-spacing: -1.2px; font-weight: 900; color: var(--ink);
  text-wrap: balance;
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero h1 {
    background: var(--grad-h1);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}
.hero p.sub {
  font-size: 18.5px; line-height: 1.75; color: var(--ink-2);
  max-width: 700px; margin: 0 auto 32px;
}
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .cta .btn { min-width: 156px; }
.hero .cta .btn:not(.btn-primary) {
  background: var(--hero-ghost-bg); backdrop-filter: blur(6px);
  box-shadow: var(--sh-ghost-cta);
}
.hero .note {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px; font-size: 13px; color: var(--ink-2);
  padding: 8px 16px; border-radius: var(--r-pill);
  background: var(--hero-note-bg); border: 1px solid var(--hero-note-line);
}
@media (max-width: 720px) { .hero { padding: 66px 0 56px; } .hero h1 { letter-spacing: -.5px; } }

@media (prefers-reduced-motion: no-preference) {
  .hero .hero-copy > *, .hero .hero-stage, .hero .trust {
    animation: rise .65s cubic-bezier(.2, .7, .2, 1) both;
  }
  .hero .hero-copy > *:nth-child(1) { animation-delay: .05s; }
  .hero .hero-copy > *:nth-child(2) { animation-delay: .13s; }
  .hero .hero-copy > *:nth-child(3) { animation-delay: .21s; }
  .hero .hero-copy > *:nth-child(4) { animation-delay: .29s; }
  .hero .hero-copy > *:nth-child(5) { animation-delay: .36s; }
  .hero .hero-stage { animation-delay: .46s; }
  .hero .trust { animation-delay: .56s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}

.section { padding: 76px 0; position: relative; }
@media (max-width: 720px) { .section { padding: 56px 0; } }
.section.alt {
  background:
    radial-gradient(700px 260px at 85% 0%, rgba(99, 102, 241, .07), transparent 65%),
    var(--bg-2);
}
.section h2 {
  font-size: clamp(25px, 3.6vw, 34px); margin: 0 0 6px; letter-spacing: -.55px;
  font-weight: 900; display: inline-block; position: relative; text-wrap: balance;
}
.section h2::after {
  content: ""; position: absolute; left: 50%; bottom: -9px;
  transform: translateX(-50%); width: 54px; height: 4px; border-radius: var(--r-pill);
  background: var(--grad);
}
.section .lead { color: var(--ink-2); margin: 0 0 26px; }
.sec-head { text-align: center; margin-bottom: 38px; }
.sec-head .lead { margin-top: 18px; }

.step-num {
  width: 44px; height: 44px; border-radius: var(--r-lg); background: var(--grad);
  color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
  font-size: 17px; margin-bottom: 14px;
  box-shadow: var(--sh-stepnum);
}
.feat-ico {
  width: 44px; height: 44px; border-radius: var(--r-md); background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  margin-bottom: 14px; color: var(--brand);
  border: 1px solid rgba(99, 102, 241, .14);
  transition: transform .18s;
}
.card h3 { font-size: 16px; margin: 0 0 6px; font-weight: 800; }
.card p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* ---------- 定价 ---------- */
.price-card { position: relative; text-align: center; padding: 20px 22px 16px; }
.price-card .amt { font-size: 36px; font-weight: 800; letter-spacing: -.5px; color: var(--brand); }
.price-card .amt small { font-size: 15px; color: var(--ink-3); font-weight: 600; }
.price-card .plan { font-weight: 800; margin-bottom: 8px; color: var(--ink-2); }
.price-card .save {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 700;
  border-radius: var(--r-pill); padding: 4px 14px;
  box-shadow: var(--sh-save);
}
.price-card.featured {
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  border: 2px solid transparent;
  box-shadow: var(--sh-price-featured);
}
.price-card.featured .plan {
  display: inline-block; background: var(--grad); color: #fff;
  padding: 4px 16px; border-radius: var(--r-pill); font-size: 13px; margin-bottom: 10px;
}
/* 推荐档价格：品牌渐变文字（不支持 clip 的浏览器自动回退为 --brand 纯色） */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .price-card.featured .amt {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
  .price-card.featured .amt small { -webkit-text-fill-color: currentColor; }
}
.price-card ul { list-style: none; padding: 0; margin: 16px 0 20px; color: var(--ink-2); font-size: 14px; text-align: left; line-height: 1.5; }
.price-card ul li { padding: 4px 0; }
.price-card ul li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 8px; }
.price-card ul.pfeat li:first-child { color: var(--ink); font-weight: 700; padding-top: 0; }
.price-card ul.pfeat li:first-child::before { color: var(--brand); }
.pfeat-title { text-align: center; font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: .5px; margin: 0 0 12px; }
.pfeat-all { list-style: none; padding: 0; margin: 0 auto 26px; max-width: 620px; color: var(--ink-2); font-size: 14px; text-align: left; line-height: 1.5; display: grid; grid-template-columns: 1fr; }
.pfeat-all li { padding: 4px 0; }
.pfeat-all li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 8px; }
.pfeat-all li:first-child { color: var(--ink); font-weight: 700; padding-top: 0; }
.pfeat-all li:first-child::before { color: var(--brand); }
@media (min-width: 821px) { .pfeat-all { grid-template-columns: 1fr 1fr; } }
/* ---------- FAQ ---------- */
/* ---------- 行业模板板块（/portal/#industries） ---------- */
.ind-stats {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
  max-width: 660px; margin: 0 auto 34px;
}
.ind-stat {
  display: flex; align-items: baseline; gap: 8px;
  padding: 8px 20px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
}
.ind-stat b {
  font-size: 21px; font-weight: 900; color: var(--brand); letter-spacing: -.5px;
}
.ind-stat span { font-size: 13px; font-weight: 600; color: var(--ink-2); }

.ind-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
/* 卡片按行等高；标签区 flex:1 + align-content:center 让留白上下对称，
   避免「团购配送 5 个」这类内容少的卡片底部空一大块 */
.ind-card { padding: 20px; display: flex; flex-direction: column; }
.ind-card:hover { box-shadow: var(--shadow); border-color: var(--line-hover); }
.ind-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ind-head b { font-size: 16px; font-weight: 800; letter-spacing: -.2px; }
.ind-ico {
  width: 30px; height: 30px; border-radius: var(--r-sm); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1; background: var(--brand-soft);
}
.ind-n { margin-left: auto; font-variant-numeric: tabular-nums; }
/* 4 组各配一色：徽章与图标同色，扫一眼能分清组 */
.ind-card[data-i="0"] .ind-ico { background: var(--ind0-bg); }
.ind-card[data-i="0"] .ind-n { background: var(--ind0-bg); color: var(--warn-fg); }
.ind-card[data-i="1"] .ind-ico { background: var(--brand-soft); }
.ind-card[data-i="1"] .ind-n { background: var(--brand-soft); color: var(--brand); }
.ind-card[data-i="2"] .ind-ico { background: var(--ok-soft); }
.ind-card[data-i="2"] .ind-n { background: var(--ok-soft); color: var(--ok-fg); }
.ind-card[data-i="3"] .ind-ico { background: var(--ind3-bg); }
.ind-card[data-i="3"] .ind-n { background: var(--ind3-bg); color: var(--ind3-fg); }

.ind-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  flex: 1; align-content: center; padding-top: 2px;
}
.ind-chip {
  display: inline-flex; align-items: center;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 13.5px; font-weight: 600;
  transition: transform .15s, background .15s, color .15s, border-color .15s,
              box-shadow .15s;
}
.ind-chip:hover {
  background: var(--brand-soft); color: var(--brand); border-color: var(--line-brand);
  box-shadow: var(--shadow-s); transform: translateY(-1px);
}
.ind-note {
  grid-column: 1 / -1; text-align: center; color: var(--ink-2);
  font-size: 14px; padding: 26px 0; margin: 0;
}
.ind-fail { color: var(--bad-fg); }
.ind-more { margin-top: 22px; }
@media (max-width: 820px) {
  .ind-groups { grid-template-columns: 1fr; }
  .ind-stat { padding: 7px 16px; }
}

.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 15px 18px; margin-bottom: 12px;
  transition: box-shadow .18s, border-color .18s;
}
.faq details:hover { border-color: var(--line-hover); }
.faq details[open] { box-shadow: var(--shadow-s); border-color: var(--line-hover); }
.faq summary {
  font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 15px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--brand); font-size: 21px; font-weight: 600;
  line-height: 1; transition: transform .2s; flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 11px 0 0; color: var(--ink-2); font-size: 14px; }

.footer {
  border-top: 1px solid var(--line); padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); color: var(--ink-3);
  font-size: 13px; text-align: center;
  background: var(--foot-grad);
}

/* ---------- 门户专属（body.portal-page） ---------- */
.portal-page .card {
  border-radius: var(--r-xl); padding: 26px 24px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.portal-page .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line-hover);
}
.portal-page .grid { gap: 16px; }
#feat .card:nth-child(1) .feat-ico { background: var(--fi-a-bg); color: var(--fi-a-fg); border-color: var(--fi-a-line); }
#feat .card:nth-child(2) .feat-ico { background: var(--fi-b-bg); color: var(--fi-b-fg); border-color: var(--fi-b-line); }
#feat .card:nth-child(3) .feat-ico { background: var(--fi-a-bg); color: var(--fi-a-fg); border-color: var(--fi-a-line); }
#feat .card:nth-child(4) .feat-ico { background: var(--fi-b-bg); color: var(--fi-b-fg); border-color: var(--fi-b-line); }
#feat .card:nth-child(5) .feat-ico { background: var(--fi-a-bg); color: var(--fi-a-fg); border-color: var(--fi-a-line); }
#feat .card:nth-child(6) .feat-ico { background: var(--fi-b-bg); color: var(--fi-b-fg); border-color: var(--fi-b-line); }
.portal-page #feat .card:hover .feat-ico { transform: scale(1.08) rotate(-4deg); }

/* ---------- 控制台骨架 ---------- */
.app { display: flex; min-height: 100vh; }
.side {
  width: 224px; background: var(--surface); border-right: 1px solid var(--line);
  padding: 18px 12px; flex-shrink: 0; display: flex; flex-direction: column; gap: 4px;
}
.side .brand { padding: 4px 10px 14px; display: block; }
.side-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: var(--r-sm); color: var(--ink-2); font-size: 14px; font-weight: 500;
  cursor: pointer; border: none; background: none; width: 100%; text-align: left;
  font-family: var(--font);
}
.side-item:hover { background: var(--bg-2); text-decoration: none; }
.side-item.active {
  background: var(--grad-soft); color: var(--brand); font-weight: 700;
  box-shadow: var(--sh-side-active);
}
.side-item .soon { margin-left: auto; font-size: 11px; color: var(--ink-3); }
.main { flex: 1; padding: 26px 30px 60px; max-width: 940px; }
.page-title { font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.page-sub { color: var(--ink-2); margin: 0 0 22px; font-size: 14px; }
@media (max-width: 760px) {
  .app { flex-direction: column; }
  .side { width: 100%; flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .side .brand { display: none; }
  .side-item { white-space: nowrap; width: auto; }
  .side-item .soon { display: none; }
  .main { padding: 18px 16px 50px; }
}

/* ---------- 提示条 ---------- */
.banner { border-radius: var(--r-md); padding: 12px 16px; font-size: 14px; margin-bottom: 16px; border: 1px solid transparent; }
.banner-warn { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn-fg-deep); }
.banner-bad { background: var(--bad-soft); border-color: var(--bad-line); color: var(--bad-fg-deep); }
.banner-ok { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok-fg); }
.banner-info { background: var(--brand-soft); border-color: var(--info-line); color: var(--info-fg); }

/* ---------- 开店向导 stepper ---------- */
.stepper { display: flex; gap: 0; margin-bottom: 24px; }
.stepper .st { flex: 1; text-align: center; font-size: 13px; color: var(--ink-3); position: relative; }
.stepper .st::before {
  content: attr(data-n); display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: var(--r-circle); background: var(--bg-2); color: var(--ink-3);
  font-weight: 700; margin-bottom: 4px;
}
.stepper .st.on { color: var(--brand); font-weight: 700; }
.stepper .st.on::before { background: var(--brand); color: var(--on-brand-fg); }
.stepper .st.done { color: var(--ok); }
.stepper .st.done::before { background: var(--ok); color: var(--on-brand-fg); content: "✓"; }
.stepper .st::after {
  content: ""; position: absolute; top: 13px; left: calc(50% + 18px); right: calc(-50% + 18px);
  height: 2px; background: var(--bg-2); z-index: -1;
}
.stepper .st:last-child::after { display: none; }

/* ---------- 接入体检 ---------- */
.check-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  margin-bottom: 10px;
}
.check-item .ci-ico {
  width: 22px; height: 22px; border-radius: var(--r-circle); flex-shrink: 0; margin-top: 1px;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
  background: var(--bg-2); color: var(--ink-3);
}
.check-item.ok .ci-ico { background: var(--ok-soft); color: var(--ok-fg); }
.check-item.bad .ci-ico { background: var(--bad-soft); color: var(--bad-fg); }
.check-item .ci-t { font-weight: 600; font-size: 14px; }
.check-item .ci-d { font-size: 13px; color: var(--ink-2); }
.check-item .ci-fix { margin-left: auto; flex-shrink: 0; }

/* ---------- 数据卡 ---------- */
.stat { padding: 16px 18px; }
.stat .k { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.stat .v { font-size: 24px; font-weight: 800; letter-spacing: -.3px; }
.stat .v small { font-size: 13px; color: var(--ink-3); font-weight: 600; }

/* ---------- 弹层 / 加载 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(16, 24, 40, .45); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow);
  max-width: 520px; width: 100%; max-height: 86vh; overflow: auto; padding: 24px;
}
@media (prefers-reduced-motion: no-preference) {
  .modal { animation: pop .22s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
}
.modal h3 { margin: 0 0 10px; font-size: 17px; }
.modal ol { padding-left: 20px; color: var(--ink-2); font-size: 14px; }
.modal ol li { margin: 7px 0; }
.modal .close-row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.spinner {
  width: 18px; height: 18px; border: 2.5px solid var(--line); border-top-color: var(--brand);
  border-radius: var(--r-circle); display: inline-block; animation: spin .7s linear infinite; vertical-align: -3px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%);
  background: var(--ink); color: var(--on-brand-fg); padding: 10px 18px; border-radius: var(--r-pill);
  font-size: 14px; z-index: 200; box-shadow: var(--shadow);
}

/* ---------- P2：商品/订单/营销/数据 ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  border-radius: var(--r-pill); padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.chip:hover { border-color: var(--brand-2); color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.p-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.p-thumb {
  width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: var(--ink-3);
}
.p-thumb img { width: 100%; height: 100%; object-fit: cover; }
.p-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 7px; }
.p-name { font-weight: 700; font-size: 15px; line-height: 1.3; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.6em; }
.p-price { display: flex; align-items: baseline; gap: 7px; }
.p-price .now { font-size: 17px; font-weight: 800; color: var(--brand); }
.p-price .was { font-size: 12px; color: var(--ink-3); text-decoration: line-through; }
.p-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.p-acts { display: flex; gap: 8px; margin-top: 2px; }
.p-acts .btn { flex: 1; }

.list-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-top: 1px solid var(--line);
}
.list-item:first-child { border-top: 0; }
.list-item:hover { background: var(--bg-2); }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 4px 0; }
.kv .k { color: var(--ink-3); }
.kv .v { font-weight: 600; text-align: right; }

.bar-wrap { background: var(--bg-2); border-radius: var(--r-sm); height: 8px; overflow: hidden; margin-top: 5px; }
.bar { background: var(--brand); height: 100%; border-radius: var(--r-sm); min-width: 3px; }

.form2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 640px) { .form2 { grid-template-columns: 1fr; } }
.ord-items { background: var(--bg-2); border-radius: var(--r-sm); padding: 10px 12px; margin-top: 8px; }
.ord-line { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.qty-tag { color: var(--ink-3); }
.empty-note { text-align: center; color: var(--ink-3); font-size: 14px; padding: 34px 10px; }

.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 820px) { .g-4 { grid-template-columns: 1fr 1fr; } }
textarea.input { min-height: 74px; resize: vertical; padding-top: 9px; }
.p-thumb.ph::before { content: "◆"; }

/* ---------- P4: USDT 续费 / 付款单 ---------- */
.receipt {
  margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 16px; background: var(--warn-soft);
}
.rc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rc-no { font-weight: 700; font-size: 14px; color: var(--ink); }
.rc-wallet { display: flex; align-items: center; gap: 8px; margin: 4px 0 8px; }
.rc-wallet code.mono {
  flex: 1; min-width: 0; font-size: 12.5px; background: var(--surface);
  border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 8px 10px;
  word-break: break-all; user-select: all; color: var(--ink);
}
.rc-acts { display: flex; justify-content: flex-end; margin-top: 6px; }
.rc-hist { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.rc-hist-t { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.rc-row {
  display: flex; align-items: center; gap: 10px; font-size: 13px;
  padding: 6px 0; flex-wrap: wrap;
}
.rc-row .mono { font-weight: 700; color: var(--ink); }
.rc-row .muted-3 { margin-left: auto; font-size: 12px; }
.st-chip {
  font-size: 11.5px; font-weight: 700; border-radius: var(--r-pill); padding: 2px 9px;
  background: var(--bg-2); color: var(--ink-2);
}
.st-chip.ok { background: var(--ok-soft); color: var(--ok); }
.st-chip.warn { background: var(--warn-soft); color: var(--warn); }
.st-chip.bad { background: var(--bad-soft); color: var(--bad); }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
@media (max-width: 560px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-card {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 10px 12px;
  text-align: center; background: var(--surface); display: flex;
  flex-direction: column; gap: 4px; align-items: center;
}
.plan-card.hot { border-color: var(--brand); box-shadow: var(--sh-plan-hot); }
.plan-card .pl-n { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.plan-card .pl-p { font-size: 24px; font-weight: 800; color: var(--brand); line-height: 1.1; }
.plan-card .pl-p em { font-size: 13px; font-style: normal; font-weight: 700; margin-left: 2px; }
.plan-card .pl-d { font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.plan-card .btn { width: 100%; }


/* ---------- 门户 v2.2：实景 mock / 信任条 / CTA 大板 / 页脚 ---------- */
.nav.scrolled { box-shadow: var(--sh-nav); }

/* .hero-stage：三个方向共用的定位槽（同一格叠放，只显示当前 ?v= 的那个） */
.hero-stage {
  position: relative; display: grid;
  max-width: min(400px, 88vw); margin: 48px auto 0;
}
.hero-stage > * { grid-area: 1 / 1; min-width: 0; }
.hero-visual { position: relative; margin: 0; }
.hv { display: none; }
html[data-hero="a"] .hv[data-hv="a"],
html[data-hero="b"] .hv[data-hv="b"],
html[data-hero="c"] .hv[data-hv="c"] { display: block; }
.hero-visual::before {
  content: ""; position: absolute; inset: -34px -40px; z-index: -1;
  background: radial-gradient(closest-side, rgba(129, 90, 255, .30), transparent 78%);
  filter: blur(14px); border-radius: var(--r-5xl); pointer-events: none;
}
.mock-chat {
  background: var(--surface); border-radius: var(--r-2xl); overflow: hidden; text-align: left;
  transform: rotate(-.55deg);
  border: 1px solid rgba(228, 231, 236, .9);
  box-shadow: var(--sh-mock-chat);
}
.mock-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: var(--mock-head-bg); border-bottom: 1px solid var(--line);
}
.mock-avatar {
  width: 34px; height: 34px; border-radius: var(--r-circle); background: var(--grad);
  color: #fff; font-weight: 800; display: flex; align-items: center;
  justify-content: center; font-size: 15px;
  box-shadow: var(--sh-mock-avatar);
}
.mock-title { font-weight: 700; font-size: 14px; color: var(--ink); }
.mock-bot {
  font-size: 10.5px; font-weight: 800; background: var(--brand-soft);
  color: var(--brand); border-radius: var(--r-pill); padding: 1px 8px; margin-left: 6px;
  text-transform: uppercase; letter-spacing: .6px; vertical-align: 1px;
}
.mock-dots { margin-left: auto; color: var(--ink-3); font-size: 18px; }
.mock-body {
  padding: 16px 14px 18px; display: flex; flex-direction: column; gap: 9px;
  background:
    radial-gradient(circle at 13px 13px, rgba(99, 102, 241, .08) 1.4px, transparent 1.5px) 0 0 / 26px 26px,
    var(--mock-bg);
}
.bubble {
  max-width: 84%; padding: 9px 13px; border-radius: var(--r-lg); font-size: 13.5px;
  line-height: 1.5; box-shadow: var(--shadow-s);
}
.bubble.in {
  background: var(--surface); border: 1px solid var(--line);
  border-bottom-left-radius: 6px; align-self: flex-start; color: var(--ink);
}
.bubble.out {
  background: var(--grad); color: #fff; border: none;
  border-bottom-right-radius: 6px; align-self: flex-end;
  box-shadow: var(--sh-bubble-out);
}
.bubble.prod { display: flex; gap: 10px; align-items: center; padding: 10px; max-width: 94%; }
.prod-img {
  width: 52px; height: 52px; border-radius: var(--r-md); flex-shrink: 0;
  background: linear-gradient(135deg, var(--prod-bg-a), var(--prod-bg-b));
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.prod-info { display: flex; flex-direction: column; min-width: 0; }
.prod-info b { font-size: 13.5px; line-height: 1.35; }
.prod-price { color: var(--brand); font-weight: 800; font-size: 14px; }
.mock-btn {
  margin-left: auto; flex-shrink: 0; background: var(--brand-soft);
  color: var(--brand); font-size: 12px; font-weight: 700;
  border-radius: var(--r-sm); padding: 7px 10px; white-space: nowrap;
}
.bubble.order { max-width: 94%; padding: 11px 13px; border-left: 3px solid var(--brand); }
.ord-row {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 13.5px; font-weight: 700; color: var(--ink);
}
.ord-row b { color: var(--brand); }
.ord-sub { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.mock-float {
  position: absolute; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 8px 14px; font-size: 12.5px; font-weight: 700;
  box-shadow: var(--shadow); white-space: nowrap; color: var(--ink);
}
.mock-float.f1 { left: -34px; top: 72px; color: var(--ok-fg); animation: floaty 3.6s ease-in-out infinite; }
.mock-float.f2 { right: -30px; bottom: 84px; color: var(--brand); animation: floaty 3.6s .9s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-7px); } }
@media (max-width: 560px) {
  .mock-float.f1 { left: 4px; top: -14px; }
  .mock-float.f2 { right: 4px; bottom: -14px; }
}

.trust {
  display: flex; justify-content: center; flex-wrap: wrap;
  margin: 44px auto 0; padding-top: 26px; max-width: 780px;
  border-top: 1px solid rgba(99, 102, 241, .18);
}
.trust-item {
  display: flex; align-items: center; gap: 8px; padding: 4px 22px;
  position: relative; font-size: 14px; color: var(--ink-2); line-height: 1.4;
}
.trust-item + .trust-item::before {
  content: ""; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); height: 22px; width: 1px;
  background: rgba(99, 102, 241, .22);
}
.trust-item b {
  font-size: 17px; font-weight: 900; color: var(--brand);
  background: var(--grad-soft); padding: 3px 10px; border-radius: var(--r-sm);
  font-variant-numeric: tabular-nums;
}

.portal-page #how .card { position: relative; }
@media (min-width: 821px) {
  .portal-page #how .card:not(:last-child)::after {
    content: "➜"; position: absolute; right: -20px; top: 50%;
    transform: translateY(-50%); color: var(--brand); font-size: 17px;
    font-weight: 800; z-index: 2;
  }
  /* 能力区 bento：非对称 5+7 / 7+5 / 6+6 */
  .portal-page #feat .grid { grid-template-columns: repeat(12, 1fr); gap: 18px; }
  .portal-page #feat .card:nth-child(1) { grid-column: span 5; }
  .portal-page #feat .card:nth-child(2) { grid-column: span 7; }
  .portal-page #feat .card:nth-child(3) { grid-column: span 7; }
  .portal-page #feat .card:nth-child(4) { grid-column: span 5; }
  .portal-page #feat .card:nth-child(5) { grid-column: span 6; }
  .portal-page #feat .card:nth-child(6) { grid-column: span 6; }
}
.portal-page #feat .card:first-child {
  background: linear-gradient(150deg, var(--surface) 35%, var(--brand-tint) 100%);
  border-color: var(--line-3);
}
@media (min-width: 821px) {
  .portal-page #feat .card:first-child { padding: 34px 30px; }
  .portal-page #feat .card:first-child .feat-ico {
    width: 54px; height: 54px; font-size: 25px; border-radius: var(--r-lg);
  }
  .portal-page #feat .card:first-child h3 { font-size: 19px; }
  .portal-page #feat .card:first-child p { font-size: 15px; }
}

/* 滚动渐显：内容**默认可见**，只有 JS 确认能显现时才启用隐藏态。
   旧实现把 .has-js .reveal 设为 opacity:0，靠 IntersectionObserver 滚动才加 .in；
   于是「不滚动 / 爬虫 / JS 中途失败 / 部分 WebView」下整页空白（2026-10-03 实测复现）。
   现在改��� reveal-ready 门闩 + 兜底，内容永不可见优先，动效降级为「位移+淡入」。 */
.has-js.reveal-ready .reveal { transform: translateY(22px); }
.has-js.reveal-ready .reveal:not(.in) { opacity: .001; }
.has-js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-reduced-motion: reduce) {
  .has-js.reveal-ready .reveal { opacity: 1 !important; transform: none !important; }
  .has-js .reveal.in { opacity: 1 !important; transform: none !important; }
}

.cta-band-sec { padding: 30px 0 66px; }
.cta-band {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background: var(--grad); border-radius: var(--r-3xl); padding: 56px 26px;
  box-shadow: var(--sh-cta-band);
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: var(--r-circle); background: rgba(255, 255, 255, .14);
}
.cta-band::before { width: 320px; height: 320px; left: -90px; top: -170px; }
.cta-band::after { width: 260px; height: 260px; right: -70px; bottom: -150px; }
.cta-band h2 {
  position: relative; z-index: 1; color: #fff; font-weight: 900;
  font-size: clamp(22px, 3.4vw, 31px); margin: 0 0 8px; letter-spacing: -.4px;
}
.cta-band p { position: relative; z-index: 1; margin: 0 0 26px; color: rgba(255, 255, 255, .88); }
.cta-band .cta-btn {
  position: relative; z-index: 1; background: var(--surface); color: var(--brand);
  border: none; padding: 14px 32px; font-size: 16px; border-radius: var(--r-lg);
  font-weight: 800; box-shadow: var(--sh-cta-btn);
}
.cta-band .cta-btn:hover {
  border: none; text-decoration: none; transform: translateY(-2px);
  box-shadow: var(--sh-cta-btn-hover);
}

.footer {
  border-top: 1px solid var(--line); padding: 42px 0 calc(36px + env(safe-area-inset-bottom)); color: var(--ink-3);
  font-size: 13.5px; text-align: left;
  background: var(--foot-grad);
}
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 40px; }
.foot-brand p { margin: 12px 0 0; max-width: 360px; line-height: 1.75; }
.foot-col { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.foot-col b { font-size: 13px; color: var(--ink); font-weight: 800; margin-bottom: 3px; }
.foot-col a { color: var(--ink-2); font-size: 13.5px; transition: color .15s; }
.foot-col a:hover { color: var(--brand); text-decoration: none; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- 细节打磨：数字/滚动条/控制台 ---------- */
.price-card .amt, .stat .v, .prod-price { font-variant-numeric: tabular-nums; }
@media (min-width: 821px) {
  .portal-page .price-card.featured { transform: translateY(-6px); }
  .portal-page .price-card.featured:hover { transform: translateY(-10px); }
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: var(--line-2); border-radius: var(--r-pill); border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }
::-webkit-scrollbar-track { background: transparent; }
.page-title { position: relative; padding-left: 15px; }
.page-title::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px;
  border-radius: var(--r-pill); background: var(--grad);
}
.chip.on { background: var(--grad); border-color: transparent; }
.stat:hover { border-color: var(--line-hover); }

/* ---------- 无障碍：动效总开关 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* ============================================================
   T7 Round 1 —— 首屏三方向（/portal/?v=a|b|c，默认 a）
   只作用于 body.portal-page 的 .hero；design.css 其余规则不动。
   A｜产品实证派：左文右图 + 真实商城截图
   B｜品牌主张派：深色大字 + 极简几何
   C｜功能演示派：下单 → 通知老板 的分步动效
   ============================================================ */

/* ---------- 方向 A：产品实证派 ---------- */
html[data-hero="a"] .hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 34px 44px; align-items: center; text-align: left;
}
html[data-hero="a"] .hero p.sub { margin: 0 0 26px; font-size: 17.5px; max-width: 34em; }
html[data-hero="a"] .hero .cta { justify-content: flex-start; }
html[data-hero="a"] .hero-stage {
  max-width: min(390px, 100%); margin: 0; justify-self: center;
}
html[data-hero="a"] .hero-visual::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -18px; height: 34px;
  background: radial-gradient(closest-side, rgba(49, 46, 129, .34), transparent 78%);
  filter: blur(10px); pointer-events: none;
}
html[data-hero="a"] .hero-visual img {
  display: block; width: 100%; height: auto; position: relative;
  border-radius: var(--r-xl); border: 1px solid rgba(16, 24, 40, .10);
  box-shadow: var(--sh-hero-img);
}
html[data-hero="a"] .trust { grid-column: 1 / -1; max-width: 960px; }
@media (min-width: 861px) {
  html[data-hero="a"] .hero h1 { font-size: clamp(34px, 3.6vw, 46px); letter-spacing: -1px; }
}
@media (max-width: 860px) {
  html[data-hero="a"] .hero-in { grid-template-columns: 1fr; gap: 0; }
  html[data-hero="a"] .hero-stage { justify-self: center; margin-top: 40px; max-width: min(400px, 100%); }
}

/* ---------- 方向 B：品牌主张派 ---------- */
html[data-hero="b"] .hero {
  padding: 116px 0 94px;
  background:
    radial-gradient(900px 520px at 50% -150px, rgba(139, 92, 246, .55), transparent 62%),
    radial-gradient(700px 400px at 88% 34%, rgba(56, 189, 248, .13), transparent 60%),
    var(--b-hero);
}
@media (max-width: 720px) { html[data-hero="b"] .hero { padding: 78px 0 64px; } }
html[data-hero="b"] .hero::before {
  background:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(780px 470px at 50% 0%, #000 0%, transparent 80%);
  mask-image: radial-gradient(780px 470px at 50% 0%, #000 0%, transparent 80%);
}
html[data-hero="b"] .hero h1 {
  color: #fff; background: none; letter-spacing: -2.4px;
  font-size: clamp(36px, 6.2vw, 70px); line-height: 1.15;
}
/* B 主标题：白 → 淡靛渐隐，比纯白更有质感（渐变文本渐显、失败则回退纯白） */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  html[data-hero="b"] .hero h1 {
    background: var(--grad-h1-b);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
}
html[data-hero="b"] .hero .eyebrow {
  background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .26);
  color: #fff; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
html[data-hero="b"] .hero p.sub { color: rgba(255, 255, 255, .82); max-width: 660px; }
html[data-hero="b"] .hero .cta .btn:not(.btn-primary) {
  background: rgba(255, 255, 255, .95); border-color: transparent; color: var(--hero-cta-ink);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: var(--sh-cta-b);
}
html[data-hero="b"] .hero .note {
  background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .86);
}
html[data-hero="b"] .hero-stage {
  position: absolute; inset: 0; z-index: -1; max-width: none; margin: 0;
}
html[data-hero="b"] .hv[data-hv="b"] {
  display: flex; align-items: center; justify-content: center; height: 100%;
}
html[data-hero="b"] .bmark { width: min(520px, 82vw); }
html[data-hero="b"] .hero-visual::before { display: none; }
html[data-hero="b"] .hero .trust { border-top-color: rgba(255, 255, 255, .16); max-width: 720px; }
html[data-hero="b"] .hero .trust-item { color: rgba(255, 255, 255, .78); }
html[data-hero="b"] .hero .trust-item + .trust-item::before { background: rgba(255, 255, 255, .20); }
html[data-hero="b"] .hero .trust-item b { background: rgba(255, 255, 255, .13); color: #fff; }

.bmark { position: relative; width: 100%; aspect-ratio: 1; }
.bmark .b-diamond {
  position: absolute; inset: 15%; border-radius: var(--r-4xl);
  border: 1.5px solid rgba(255, 255, 255, .32); transform: rotate(45deg);
}
.bmark .b-d2 {
  inset: 30%; border-radius: var(--r-2xl); border-color: rgba(255, 255, 255, .17);
}
.bmark .b-dash {
  position: absolute; left: 50%; top: 6%; bottom: 6%; width: 1px; margin-left: -.5px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .34) 40%, rgba(255, 255, 255, .34) 60%, transparent);
}
.bmark .b-dot { position: absolute; width: 9px; height: 9px; border-radius: var(--r-circle); }
.bmark .d1 { top: -5px; left: -5px; background: var(--b-dot1); box-shadow: var(--sh-bmark-d1); }
.bmark .d2 { right: -5px; bottom: -5px; background: var(--b-dot2); box-shadow: var(--sh-bmark-d2); }
@media (prefers-reduced-motion: no-preference) {
  html[data-hero="b"] .bmark .b-diamond { animation: bspin 38s linear infinite; }
  @keyframes bspin { from { transform: rotate(45deg); } to { transform: rotate(405deg); } }
}

/* ---------- 方向 C：功能演示派 ---------- */
.hero-stage .flow-steps {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.hero-stage .flow-step {
  font-size: 12.5px; font-weight: 700; padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-3);
  white-space: nowrap;
}
html[data-hero="c"] .mock-float.f1 { top: 64px; left: -168px; }
html[data-hero="c"] .mock-float.f2 { bottom: 96px; right: -156px; }
@media (max-width: 780px) {
  html[data-hero="c"] .mock-float { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html[data-hero="c"] .mock-chat .bubble { animation: flowIn .55s cubic-bezier(.2, .7, .2, 1) both; }
  html[data-hero="c"] .mock-chat .bubble:nth-child(1) { animation-delay: .50s; }
  html[data-hero="c"] .mock-chat .bubble:nth-child(2) { animation-delay: .95s; }
  html[data-hero="c"] .mock-chat .bubble:nth-child(3) { animation-delay: 1.40s; }
  html[data-hero="c"] .mock-chat .bubble:nth-child(4) { animation-delay: 1.85s; }
  html[data-hero="c"] .mock-float {
    animation: flowIn .55s cubic-bezier(.2, .7, .2, 1) 2.30s both,
               floaty 3.6s ease-in-out 2.90s infinite;
  }
  html[data-hero="c"] .flow-step { animation: stepOn 7.5s ease-in-out infinite; }
  html[data-hero="c"] .flow-step:nth-child(2) { animation-delay: 2.5s; }
  html[data-hero="c"] .flow-step:nth-child(3) { animation-delay: 5s; }
  @keyframes flowIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  @keyframes stepOn {
    0%, 26% { background: var(--brand); border-color: var(--brand); color: var(--on-brand-fg); }
    34%, 100% { background: var(--surface); border-color: var(--line); color: var(--ink-3); }
  }
}

/* ============================================================
   T7-R2：prefers-color-scheme: dark（V5）
   design.css 同时服务 portal + console —— 明色 token 一律不动
   （明色渲染零变化），暗色值与 admin/platform 暗色板同族。
   ============================================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161b; --bg-2: #191c22; --surface: #1f2229;
    --ink: #eef0f4; --ink-2: #b9bfca; --ink-3: #8d94a1;
    --line: #2d3039; --line-hover: #3a3f4b; --line-2: #3d424d;
    --line-strong: #565c68; --line-brand: #464f7d; --line-3: #3b4266;
    --brand: #a5b4fc; --brand-2: #818cf8; --brand-soft: rgba(129, 140, 248, .16);
    --grad-soft: linear-gradient(135deg, rgba(129, 140, 248, .18), rgba(168, 85, 247, .14));
    --brand-tint: #232742; --brand-tint-line: #3a4270;
    --ok: #32d583; --ok-soft: rgba(50, 213, 131, .13); --ok-fg: #6ce9a6;
    --warn: #fdb022; --warn-soft: rgba(253, 176, 34, .13); --warn-fg: #fdc075;
    --warn-fg-deep: #fdc075;
    --bad: #f97066; --bad-soft: rgba(249, 112, 102, .14); --bad-fg: #fda29b;
    --bad-fg-deep: #fda29b;
    --info-fg: #a5b4fc;
    --ok-line: rgba(50, 213, 131, .38); --warn-line: rgba(253, 176, 34, .38);
    --bad-line: rgba(249, 112, 102, .38); --info-line: rgba(129, 140, 248, .38);
    --ind0-bg: rgba(253, 176, 34, .12); --ind0-fg: #fdc075;
    --ind3-bg: rgba(168, 85, 247, .14); --ind3-fg: #d8b4fe;
    --fi-a-bg: rgba(129, 140, 248, .14); --fi-a-fg: #a5b4fc; --fi-a-line: rgba(129, 140, 248, .30);
    --fi-b-bg: rgba(99, 102, 241, .16); --fi-b-fg: #818cf8; --fi-b-line: rgba(99, 102, 241, .34);
    --nav-bg: rgba(20, 22, 27, .82); --nav-line: rgba(45, 48, 57, .85); --nav-panel: #1f2229;
    --hero-eye-bg: rgba(255, 255, 255, .08);
    --hero-note-bg: rgba(255, 255, 255, .06); --hero-note-line: rgba(255, 255, 255, .16);
    --hero-ghost-bg: rgba(31, 34, 41, .8);
    /* --hero-cta-ink 不随暗色翻转：B 方向副按钮恒为白底，文字必须保持深色 */
    --grad-h1: linear-gradient(180deg, #eef0f4 20%, #a5b4fc 130%);
    --b-hero: linear-gradient(168deg, #10122a 0%, #1c1540 52%, #2e1858 100%);
    --mock-bg: #171a22; --mock-head-bg: rgba(35, 38, 46, .95);
    --prod-bg-a: rgba(50, 213, 131, .12); --prod-bg-b: rgba(50, 213, 131, .20);
    --foot-grad: linear-gradient(180deg, rgba(20, 22, 27, 0), rgba(20, 22, 27, .8));
    --shadow-s: 0 1px 2px rgba(0, 0, 0, .45);
    --shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 8px 24px rgba(0, 0, 0, .5);
    --shadow-lift: 0 14px 32px -16px rgba(0, 0, 0, .75);
    --sh-nav: 0 10px 30px -12px rgba(0, 0, 0, .6);
    --sh-navpanel: 0 16px 40px -18px rgba(0, 0, 0, .7);
    /* 亮底上的文字在暗色下反相为深色（toast / stepper 徽底） */
    --on-brand-fg: #14161b;
  }
}
