/* ==========================================================================
CodeInit AI · 官网设计系统（浅色 · 互联网大厂风格）
--------------------------------------------------------------------------
设计口径：白底 + 浅灰容器 + 品牌蓝主色 + 1px 直角描边 + 极浅阴影 + 全站 0 圆角
克制优先：不用胶囊、不用圆角、不用渐变与彩色投影
栅格宽度：1200px；向下兼容所有历史页面 class（卡片/表格/表单/标签等）。
========================================================================== */
:root {
  /* 品牌与主色 */
  --brand: #1560ff;
  --brand-600: #0b47d6;
  --brand-700: #083aa8;
  --brand-50: #eef4ff;
  --cyan: #00a88f;
  --cyan-50: #e6f7f4;
  /* 中性色 */
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-blue: #f0f5ff;
  --panel: #ffffff;
  --panel-2: #f7f9fc;
  --border: #e6eaf0;
  --border-strong: #d4dbe6;
  /* 文字 */
  --text: #1b2333;
  --text-dim: #4d5a6e;
  --text-faint: #7b8698;
  /* 语义色（品牌蓝/青已在上文，不再重复一套别名） */
  --warn: #d98200;
  --danger: #d93026;
  /* 形状：全站无圆角，三档 token 一律 0，需要变化时只改这里 */
  --radius: 0;
  --radius-sm: 0;
  --radius-lg: 0;
  --shadow-sm: 0 1px 2px rgba(16, 32, 64, .05);
  --shadow: 0 2px 6px rgba(16, 32, 64, .06);
  --shadow-lg: 0 6px 18px rgba(16, 32, 64, .07);
  --shadow-hover: 0 2px 6px rgba(16, 32, 64, .07);
  --wrap: 1200px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* 品牌色阶：以前各处硬写 #c7d9ff / #dbe6ff，统一收到 token 上 */
  --brand-100: #dbe6ff;
  --brand-200: #c7d9ff;
  --brand-300: #9dbdfb;
  --cyan-100: #d3f2ec;
  --danger-50: #fff1f0;
  --danger-100: #ffccc7;
  --warn-50: #fff8ec;
  --warn-100: #ffe4bd;
  /* 字号阶梯：标题用 clamp 随视口缩放，最大档拉到 56px 与 15px 正文拉开档次 */
  --fs-h1: clamp(30px, 5vw, 56px);
  --fs-h2: clamp(23px, 3.1vw, 37px);
  --fs-h3: clamp(19px, 2.1vw, 26px);
  --fs-h4: 19px;
  --fs-body: 15px;
  --fs-sm: 13.5px;
  --fs-cap: 12.5px;
  --fs-micro: 11px;
  /* 行高与字距 */
  --lh-tight: 1.12;
  --lh-snug: 1.5;
  --lh-normal: 1.7;
  --lh-relax: 1.85;
  --ls-tight: -.02em;
  --ls-eyebrow: .08em;
  /* 间距阶梯：区块节奏只用这几档，不再手写 margin */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --focus-ring: 0 0 0 3px rgba(21, 96, 255, .16);
  --control-h: 40px;
  --control-h-lg: 46px;
}
* { box-sizing: border-box; }

/* 组件里大量用 .card/.error-box 这类带 display 的规则，单靠 UA 的 hidden 样式会被覆盖 */
[hidden] { display: none !important; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); text-decoration: none; }
.boot-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-soft);
}
.boot-logo { font-size: 22px; font-weight: 700; letter-spacing: .5px; color: var(--text); }
.boot-text { color: var(--text-faint); font-size: 13px; }

/* ==========================================================================
1. 顶部导航（大厂官网：白底 + 巨幕下拉）
========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
  padding: 0 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .2px;
  color: var(--text);
  flex: none;
}
.nav-brand .dot {
  width: 26px; height: 26px; border-radius: var(--radius); flex: none;
  background: var(--brand);
  position: relative;
}
.nav-brand .dot::after {
  content: '</>';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: -.5px;
}
.nav-brand-sub {
  font-size: 11px; color: var(--text-faint); font-weight: 500;
  border-left: 1px solid var(--border); padding-left: 10px; margin-left: 2px;
}
.nav-links { display: flex; gap: 2px; align-items: center; height: 100%; }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-links a.nav-a {
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .16s ease, background .16s ease;
}
.nav-links a.nav-a:hover { color: var(--brand); background: var(--brand-50); }
.nav-links a.nav-a.active { color: var(--brand); font-weight: 600; }
.nav-links a.nav-a.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 0;
  height: 2px; background: var(--brand); }
.nav-caret { display: inline-flex; align-items: center; opacity: .6; }
.nav-caret svg { transition: transform .16s ease; }
.nav-item.open .nav-caret svg { transform: rotate(180deg); }

/* 巨幕下拉：产品线一目了然 */

/* 之前只有 :hover，键盘 Tab 与触屏完全打不开下拉 */
.nav-item:hover .mega,
.nav-item:focus-within .mega,
.nav-item.open .mega { visibility: visible; opacity: 1; transform: translateY(0); }
.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 6px);
  width: 620px;
  max-width: calc(100vw - 32px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--s-5);
  visibility: hidden;
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 50;
}
.mega--dev { width: 340px; }
.mega-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.mega-group + .mega-group { margin-top: 14px; }
.mega-group--full { grid-column: 1 / -1; }
.mega-sol-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mega-group-title {
  font-size: var(--fs-micro); letter-spacing: 1.2px; color: var(--text-faint);
  text-transform: uppercase; margin: 0 0 8px; font-weight: 600;
}
.mega-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 10px; border-radius: var(--radius-sm);
  color: var(--text); transition: background .16s ease;
}
.mega-item:hover { background: var(--brand-50); }
.mega-ico {
  width: 30px; height: 30px; flex: none; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand); background: var(--brand-50); border: 1px solid var(--brand-100);
}
.mega-name { font-size: 13.5px; font-weight: 600; line-height: 1.4; display: flex; align-items: center; gap: 6px; }
.mega-desc { font-size: 12px; color: var(--text-faint); line-height: 1.5; }
.mega-foot {
  margin-top: var(--s-4); padding-top: 14px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-sm);
}
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.nav-credits {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brand-600);
  border: 1px solid var(--brand-100);
  background: var(--brand-50);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 32px 24px 72px; }
.container.narrow { max-width: 780px; }

/* 视图内的窄列：.container 已负责左右留白，这里只补居中 */
.page-narrow { max-width: 780px; margin: 0 auto; }

/* 官网首页 / 产品中心：全宽容器，区块自带 .wrap 栅格 */
.container.wide { max-width: 100%; padding: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ==========================================================================
2. 通用区块 / 标题
========================================================================== */
.sec { padding: var(--s-16) 0; }
.sec + .sec { border-top: 1px solid var(--border); }
.sec.pad-tight { padding: var(--s-10) 0; }
.sec-soft { background: var(--bg-soft); }
.sec-blue { background: var(--bg-blue); }
.sec-head { text-align: center; margin-bottom: var(--s-10); }
.sec-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  color: var(--brand); background: var(--brand-50); border: 1px solid #dbe6ff;
  padding: 4px 12px; border-radius: var(--radius-sm); margin-bottom: 12px;
}
.sec-title { font-size: var(--fs-h2); line-height: 1.35; margin: 0 0 var(--s-2); font-weight: 700; letter-spacing: var(--ls-tight); }
.sec-sub { color: var(--text-dim); font-size: var(--fs-body); margin: 0 auto; max-width: 720px; line-height: var(--lh-snug); }
.sec-head.left { text-align: left; }
.sec-head.left .sec-sub { margin-left: 0; }

/* 区块内小标题：与 sec-* 同一套阶梯，避免出现两种标题风格 */
.section-title { font-size: var(--fs-h3); margin: var(--s-8) 0 var(--s-4); font-weight: 700; letter-spacing: var(--ls-tight); }
.grid { display: grid; gap: var(--s-5); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ==========================================================================
3. Hero
========================================================================== */
.og-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  /* 大厂口径：Hero 不做光晕与网格装饰，靠浅灰底色 + 一条分隔线把首屏和内容分开 */
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.og-hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 44px; align-items: center;
}
.og-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--brand); font-weight: 600;
  border: 1px solid var(--brand-100); background: var(--panel);
  padding: 5px 12px; border-radius: var(--radius-sm); margin-bottom: 20px;
}
.og-badge .pulse {
  width: 6px; height: 6px; background: var(--brand);
}
.og-hero h1 { margin: 0 0 18px; font-size: var(--fs-h1); line-height: var(--lh-tight); font-weight: 700; letter-spacing: var(--ls-tight); color: var(--text); }
.og-hero h1 .hl { color: var(--brand); }
.og-lead { font-size: 18px; line-height: 1.75; color: var(--text-dim); margin: 0 0 28px; max-width: 620px; }
.og-lead strong { color: var(--text); font-weight: 600; }
.og-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.og-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.badge {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-cap); color: var(--text-dim);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 5px 13px; background: var(--panel);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.badge.solid { color: var(--brand); background: var(--brand-50); border-color: var(--brand-100); }

/* 产品页把 badge 当锚点用，之前没有 hover 态，点上去是死的 */
a.badge:hover { color: var(--brand); background: var(--brand-50); border-color: var(--brand-200); }

/* Hero 右侧：产品界面预览（纯 CSS，无第三方资源） */
.og-preview {
  position: relative;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-lg); overflow: hidden;
}
.og-prev-bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: var(--panel-2); border-bottom: 1px solid var(--border);
}
.og-prev-bar i { width: 10px; height: 10px; background: #dfe4ec; display: inline-block; }
.og-prev-bar i:nth-child(1) { background: #ff6058; }
.og-prev-bar i:nth-child(2) { background: #ffbd2e; }
.og-prev-bar i:nth-child(3) { background: #28c840; }
.og-prev-title { margin-left: 8px; font-size: 12px; color: var(--text-faint); font-family: var(--mono); }
.og-prev-body { display: grid; grid-template-columns: 132px 1fr; min-height: 274px; }
.og-prev-side { border-right: 1px solid var(--border); background: #fbfcfe; padding: 12px 10px; }
.og-prev-side .og-side-label { font-size: 10.5px; letter-spacing: 1px; color: var(--text-faint); padding: 0 6px 6px; }
.og-side-item {
  display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim);
  padding: 6px 8px; border-radius: var(--radius); margin-bottom: 2px;
}
.og-side-item.on { background: var(--brand-50); color: var(--brand); font-weight: 600; }
.og-prev-main { padding: 14px 16px; }
.og-chat-line { display: flex; gap: 8px; margin-bottom: 12px; }
.og-chat-line.me { flex-direction: row-reverse; }
.og-avatar {
  width: 24px; height: 24px; border-radius: var(--radius); flex: none; font-size: 11px;
  display: flex; align-items: center; justify-content: center; color: #fff; background: var(--brand);
}
.og-chat-line.ai .og-avatar { background: var(--brand); }
.og-bubble {
  font-size: 12.5px; line-height: 1.6; color: var(--text-dim);
  background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 11px;
}
.og-chat-line.me .og-bubble { background: var(--brand-50); border-color: #dbe6ff; color: #173a86; }
.og-code {
  font-family: var(--mono); font-size: 11.5px; line-height: 1.75; color: #243050;
  background: #fbfcfe; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 12px; margin-top: 4px; white-space: pre-wrap;
}
.og-code .k { color: var(--brand); }
.og-code .c { color: #93a0b5; }
.og-code .s { color: var(--cyan); }
.og-prev-tag {
  position: absolute; right: 12px; bottom: 12px;
  font-size: 11px; color: var(--brand-600); background: #fff;
  border: 1px solid var(--brand-100); padding: 3px 10px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
4. 产品线卡片
========================================================================== */
.prod-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.prod-card { position: relative; display: flex; flex-direction: column; }
.prod-flag {
  position: absolute; top: var(--s-4); right: var(--s-4);
  font-size: var(--fs-micro); font-weight: 700; padding: 2px 8px; border-radius: var(--radius-sm);
  background: var(--brand-50); color: var(--brand); border: 1px solid var(--brand-100);
}
.prod-flag.soon { background: var(--warn-50); color: var(--warn); border-color: var(--warn-100); }
.prod-flag.core { background: var(--brand); color: #fff; border-color: transparent; }
.prod-ico { margin-bottom: var(--s-4); }
.prod-name { font-size: var(--fs-h4); font-weight: 700; margin: 0 0 var(--s-1); color: var(--text); }
.prod-en { font-size: var(--fs-micro); letter-spacing: var(--ls-eyebrow); color: var(--text-faint); text-transform: uppercase; margin-bottom: var(--s-3); }
.prod-desc { font-size: var(--fs-sm); color: var(--text-dim); line-height: var(--lh-normal); margin-bottom: var(--s-4); flex: 1; }
.prod-meta { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-bottom: var(--s-4); }

/* 元数据小标签（产品线规格 / 方案技术栈）：与 prod-chip 同一配方，避免两份近似样式 */
.prod-chip, .sol-chip {
  font-size: var(--fs-micro); color: var(--text-dim); background: var(--panel-2);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 2px 8px;
}
.prod-link {
  font-size: var(--fs-sm); font-weight: 600; color: var(--brand);
  display: inline-flex; align-items: center; gap: var(--s-1);
}

/* 产品详情行头：图标砖与徽标改为随文排列，替代原先写在 HTML 里的三段 style */
.prod-ico--inline { margin-bottom: 0; }
.prod-name--lg { font-size: var(--fs-h4); }
.prod-flag--inline { position: static; margin-left: auto; }

/* 产品中心：页头 + 详情双栏 */
.page-hero {
  padding: var(--s-12) 0 var(--s-8);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin: var(--s-3) 0 var(--s-2); font-size: var(--fs-h2); font-weight: 700; letter-spacing: var(--ls-tight); line-height: var(--lh-tight); }
.page-hero p { margin: 0; max-width: 760px; font-size: var(--fs-h4); line-height: var(--lh-relax); color: var(--text-dim); }
.page-hero.center { text-align: center; }
.page-hero.center p { margin-left: auto; margin-right: auto; }
.prod-detail { display: grid; grid-template-columns: 1.35fr .65fr; gap: var(--s-8); align-items: start; }
.prod-detail-main { min-width: 0; }
.prod-row-head { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-4); }
.prod-tagline { font-size: var(--fs-h4); font-weight: 700; color: var(--brand-600); margin-bottom: var(--s-3); }
.prod-text { font-size: var(--fs-body); line-height: var(--lh-relax); color: var(--text-dim); margin: 0 0 var(--s-5); }
.prod-sublabel { font-size: var(--fs-cap); letter-spacing: var(--ls-eyebrow); color: var(--text-faint); font-weight: 600; margin-bottom: var(--s-2); text-transform: uppercase; }
.prod-point { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2) var(--s-5); }
.prod-point li { position: relative; padding-left: 18px; font-size: var(--fs-sm); color: var(--text-dim); line-height: var(--lh-normal); }
.prod-point li::before { content: '✓'; position: absolute; left: 0; color: var(--brand); font-weight: 700; font-size: var(--fs-cap); }
.prod-spec {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--s-5); box-shadow: var(--shadow-sm); position: sticky; top: 88px;
}
.prod-spec-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 12px; letter-spacing: .5px; }
.prod-spec-list { margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: 82px 1fr; gap: 8px 12px; font-size: 12.5px; }
.prod-spec-list:last-child { margin-bottom: 0; padding-top: 14px; border-top: 1px dashed var(--border); }
.prod-spec-list dt { color: var(--text-faint); }
.prod-spec-list dd { margin: 0; color: var(--text-dim); line-height: 1.6; }

/* ==========================================================================
5. 能力 / 流水线 / 场景
========================================================================== */
.cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.cap-title { font-size: var(--fs-body); font-weight: 700; margin-bottom: var(--s-1); }
.cap-desc { font-size: var(--fs-sm); color: var(--text-dim); line-height: var(--lh-normal); margin: 0; }
.flow {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-3);
  position: relative; padding: 6px 0 0;
}
.flow::before {
  content: ''; position: absolute; left: 8%; right: 8%; top: 30px; height: 1px;
  background: repeating-linear-gradient(90deg, #c3d5ff 0 8px, transparent 8px 16px);
}
.flow-step { text-align: center; position: relative; }
.flow-dot {
  width: 60px; height: 60px; margin: 0 auto var(--s-3); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center; font-size: var(--fs-h4);
  background: var(--brand-50);
  border: 1px solid var(--brand-100); box-shadow: var(--shadow-sm); color: var(--brand); font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.flow-title { font-size: var(--fs-body); font-weight: 700; margin-bottom: 3px; }
.flow-desc { font-size: var(--fs-cap); color: var(--text-faint); line-height: var(--lh-snug); }
.scene-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.scene-card { overflow: hidden; }
.scene-top { padding: var(--s-5) var(--s-5) var(--s-4); border-bottom: 1px dashed var(--border); }
.scene-title { font-size: var(--fs-body); font-weight: 700; margin-bottom: var(--s-1); }
.scene-desc { font-size: var(--fs-sm); color: var(--text-dim); line-height: var(--lh-normal); margin: 0; }
.scene-list { list-style: none; margin: 0; padding: var(--s-4) var(--s-5) var(--s-5); display: grid; gap: var(--s-1); }
.scene-list li { font-size: var(--fs-sm); color: var(--text-dim); padding-left: 18px; position: relative; line-height: var(--lh-snug); }
.scene-list li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; background: var(--brand); opacity: .5;
}

/* 开发者 / API */
.api-block {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--s-8); align-items: center;
}
.api-code {
  background: #fbfcfe; border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--s-5); font-family: var(--mono); font-size: var(--fs-cap); line-height: var(--lh-relax);
  color: #243050; box-shadow: var(--shadow-sm); overflow-x: auto;
}
.api-code .k { color: var(--brand); }
.api-code .s { color: var(--cyan); }
.api-code .c { color: #93a0b5; }

/* CTA */
.cta-band {
  border-radius: var(--radius-lg); padding: var(--s-12) var(--s-10); text-align: center;
  /* 深一档的品牌蓝，压住整页配色 */
  background: var(--brand-700);
  color: #fff;
}
.cta-band h3 { margin: 0 0 var(--s-3); font-size: var(--fs-h2); font-weight: 700; letter-spacing: var(--ls-tight); line-height: var(--lh-tight); }
.cta-band p { margin: 0 0 var(--s-6); font-size: var(--fs-body); color: rgba(255, 255, 255, .88); }
.cta-actions { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; }
.cta-band .btn.on-dark { background: #fff; color: var(--brand-600); border-color: #fff; }
.cta-band .btn.on-dark:hover { background: #eaf1ff; }
.cta-band .btn.on-ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); color: #fff; }
.cta-band .btn.on-ghost:hover { background: rgba(255, 255, 255, .22); }

/* 数据 / 事实墙 */
.fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.fact { border-left: 3px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; }
.fact-title { font-size: var(--fs-body); font-weight: 700; margin-bottom: var(--s-1); display: flex; align-items: center; gap: var(--s-2); }
.fact-desc { font-size: var(--fs-sm); color: var(--text-dim); line-height: var(--lh-normal); margin: 0; }

/* ==========================================================================
6. 页脚（大厂官网多列）
========================================================================== */
.site-footer { border-top: 1px solid var(--border); background: #fbfcfe; }
.footer-inner { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 44px 24px 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding-bottom: 30px; }
.footer-brand-name { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.footer-brand-desc { font-size: 12.5px; color: var(--text-faint); line-height: 1.8; max-width: 320px; }
.footer-col-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 12.5px; color: var(--text-dim); }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--border); padding: 16px 0 26px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 12px; color: var(--text-faint); }
.footer-links a { color: var(--text-dim); }
.footer-copy { font-size: 12px; color: var(--text-faint); margin-top: 8px; line-height: 1.8; }
.footer-sep { opacity: .45; }

/* ==========================================================================
7. 基础组件（历史页面共用）
========================================================================== */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
}
.card.hoverable { transition: box-shadow .18s ease, border-color .18s ease; }
.card.hoverable:hover { border-color: var(--brand-200); box-shadow: var(--shadow); }
.card-title { font-size: var(--fs-h4); font-weight: 650; letter-spacing: var(--ls-tight); line-height: var(--lh-snug); margin: 0 0 6px; color: var(--text); }
.card-desc { color: var(--text-dim); font-size: var(--fs-sm); line-height: var(--lh-normal); margin: 0 0 var(--s-4); }
.card-desc--tight { margin: var(--s-1) 0 0; }
.card--brand { background: var(--brand-50); border-color: var(--brand-200); }

/* 嵌在卡片里的次级信息块：不要外投影，只留一层软底 */
.card--soft { background: var(--panel-2); box-shadow: none; }
.field-note { margin: 0; }
.card--danger { border-color: var(--danger-100); background: var(--danger-50); }
.card--danger .card-title { color: var(--danger); }
.card--danger .card-title .icon { color: var(--danger); }
.zone-span { grid-column: 1 / -1; }
.pay-card { display: flex; flex-direction: column; justify-content: center; }
.tag--inline { margin-left: var(--s-1); }

/* 账单 / 流水的紧凑列表行 */
.list-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-2) 0; border-bottom: 1px solid var(--border);
}
.list-row:last-child { border-bottom: 0; }

/* 概览柱状图：柱高由 JS 按比例写死，容器固定高度保证不同周期可比 */
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 140px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.bar-fill { width: 100%; border-radius: var(--radius) var(--radius) 0 0; background: var(--brand); }
.bar-label { font-size: var(--fs-micro); color: var(--text-faint); }
.bar-chart > .empty-state { flex: 1; margin: 0 auto; }
.result-block { border-top: 1px solid var(--border); padding-top: var(--s-2); }

/* 投诉举报渠道（合规：不少于三种渠道对外明示） */
.cp-channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.cp-channel {
  padding: var(--s-3); border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--panel-2);
}
.cp-channel-name { font-size: var(--fs-sm); font-weight: 600; color: var(--text-dim); }
.cp-channel-value { margin-top: 6px; font-size: var(--fs-body); font-weight: 600; word-break: break-all; }
.cp-channel-value a { color: var(--brand); }
.cp-channel-hint { margin-top: 4px; font-size: var(--fs-micro); color: var(--text-faint); }

/* 实名认证卡片 */
.rn-state { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.rn-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px;
  border-radius: 999px; font-size: var(--fs-micro); font-weight: 600;
}
.rn-badge--ok { background: var(--brand-50); color: var(--brand); }
.rn-badge--no { background: var(--bg-soft); color: var(--text-dim); }
/* 审核中：区别于「未认证」，避免用户以为提交丢了反复重提 */
.rn-badge--wait { background: #fff7e6; color: #b45309; }
/* 实名主体类型切换：个人 / 企业 */
.rn-types { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.rn-type {
  font-size: var(--fs-sm); padding: 6px 14px; border-radius: var(--radius);
  border: 1px solid var(--border); background: #fff; color: var(--text-dim); cursor: pointer;
}
.rn-type:hover { border-color: var(--brand-200); color: var(--text); }
.rn-type.is-active {
  border-color: var(--brand); background: var(--brand-50); color: var(--brand); font-weight: 600;
}
/* 人脸核身区块（可选通道，含单独同意） */
.fc-box {
  border: 1px dashed var(--border); border-radius: var(--radius-lg);
  padding: 14px 16px; background: var(--panel-2);
}
.fc-title { font-size: var(--fs-sm); font-weight: 700; display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.fc-consent { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-micro); color: var(--text-dim); line-height: 1.6; cursor: pointer; }
.fc-consent input { margin-top: 2px; flex: none; }

/* AI 生成内容标识：输出结果的显式标识条 */
.ai-label-bar {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px;
  border: 1px dashed var(--brand-200); border-radius: var(--radius);
  background: var(--brand-50); color: var(--brand);
  font-size: var(--fs-sm); font-weight: 600;
}

/* 账本金额：等宽数字 + 收支配色，避免出现「12,300」与「12 300」两种对齐 */
.amount { font-variant-numeric: tabular-nums; font-weight: 600; }
.amount--in { color: var(--cyan); }
.amount--out { color: var(--danger); }
.legal-note { font-size: var(--fs-sm); color: var(--text-dim); line-height: var(--lh-relax); margin-bottom: var(--s-3); }
.card-title .icon { color: var(--brand); }
.plan-card { position: relative; display: flex; flex-direction: column; }
.plan-card.featured { border-color: var(--brand-200); box-shadow: 0 0 0 2px rgba(21, 96, 255, .10), var(--shadow); }
.plan-ribbon {
  position: absolute; top: -11px; right: 16px;
  background: var(--brand);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 12px; border-radius: var(--radius-sm);
}
.plan-name { font-size: 16px; font-weight: 700; color: var(--text); }
.plan-price { font-size: var(--fs-h2); font-weight: 700; margin: var(--s-3) 0 2px; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: var(--ls-tight); }
.plan-price small { font-size: var(--fs-sm); color: var(--text-faint); font-weight: 400; letter-spacing: 0; }

/* 只划线金额，「原价」二字保持正常 —— 交给 <s> 负责，父级不能再加 line-through */
.plan-old { color: var(--text-faint); font-size: var(--fs-sm); }
.plan-old s { text-decoration: line-through; }
.plan-features { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 9px; flex: 1; }
.plan-features li { color: var(--text-dim); font-size: 13px; padding-left: 20px; position: relative; }
.plan-features li::before { content: '✓'; position: absolute; left: 0; color: var(--brand); font-size: 12px; font-weight: 700; }
.plan-meta { font-size: 12px; color: var(--text-faint); margin-bottom: 12px; }

/* 表单 */
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(21, 96, 255, .13);
}
input::placeholder { color: #a9b2c1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--brand-600); color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.block { width: 100%; }
.btn.ghost { background: #fff; border-color: var(--border-strong); color: var(--text-dim); }
.btn.ghost:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-50); box-shadow: none; }
.btn.accent { background: var(--brand-700); }
.btn.accent:hover { background: var(--brand-600); }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #b3271f; }
.btn.sm { padding: 6px 13px; font-size: 12.5px; }
.btn.lg { padding: 13px 28px; font-size: 15px; }
.error-box {
  background: var(--danger-50);
  border: 1px solid var(--danger-100);
  color: var(--danger);
  padding: 10px var(--s-3);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  margin-bottom: var(--s-3);
}

/* 同一身材的成功态提示（重置邮件已发送这类），不让页面为一条好消息另造一套盒子 */
.error-box--ok { background: var(--cyan-50); border-color: var(--cyan-100); color: #0a6b5b; }

/* ==========================================================================
登录 / 注册 / 找回密码（大厂账号页口径：全屏独立外壳 + 左右分栏）
左：品牌与权益；右：440px 表单卡。不带官网主导航与长页脚。
========================================================================== */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.auth-top {
  flex: none;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .92);
}
.auth-top-right { font-size: 13px; color: var(--text-faint); display: flex; align-items: center; gap: 6px; }
.auth-main {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 32px 48px;
  display: flex;
  align-items: center;
  gap: 64px;
}

/* 左侧品牌区 */
.auth-visual {
  flex: 1 1 54%;
  min-width: 0;
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  min-height: 440px;
  padding: 40px 44px;
  border-radius: var(--radius-lg);
  /* 左栏用纯色深底，不铺渐变、不加彩色投影 */
  background: var(--brand-700);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.auth-eyebrow { font-size: 12.5px; letter-spacing: .8px; color: rgba(255, 255, 255, .78); position: relative; z-index: 1; }
.auth-headline { font-size: var(--fs-h2); line-height: 1.36; font-weight: 700; margin: 14px 0 26px; letter-spacing: .3px; position: relative; z-index: 1; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; position: relative; z-index: 1; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; }

/* 提高一级选择器权重：下面 .auth-points span 会把裸 span 设为 block，会把图标挤到独立一行 */
.auth-points .auth-point-ico {
  width: 28px; height: 28px; border-radius: var(--radius); flex: none;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .18);
  font-size: 13px;
}
.auth-points b { display: block; font-size: 14.5px; font-weight: 700; color: #fff; }
.auth-points span { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .8); line-height: 1.6; }
.auth-visual-foot { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .22); font-size: 12.5px; color: rgba(255, 255, 255, .8); position: relative; z-index: 1; }
.auth-visual-foot a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* 右侧表单面板 */
.auth-panel { flex: 0 0 440px; max-width: 100%; }
.auth-card {
  width: 100%;
  padding: 32px 32px 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.auth-head { font-size: var(--fs-h3); line-height: var(--lh-snug); font-weight: 700; letter-spacing: var(--ls-tight); color: var(--text); }
.auth-sub { font-size: 13px; color: var(--text-faint); margin: 6px 0 24px; }
.auth-field { margin-bottom: 18px; }
.auth-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; color: var(--text-dim); margin-bottom: 8px; }
.auth-label .opt { font-weight: 400; font-size: 12px; color: var(--text-faint); }
.auth-input { position: relative; }
.auth-input input { height: 46px; padding: 0 14px; font-size: 14px; border-radius: var(--radius); }
.auth-input.has-suffix input { padding-right: 46px; }
.auth-eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--radius);
  background: transparent; color: var(--text-faint); cursor: pointer;
  display: grid; place-items: center;
}
.auth-eye:hover { color: var(--brand); background: var(--brand-50); }
.auth-error { display: none; margin-top: 6px; font-size: 12.5px; color: var(--danger); line-height: 1.5; }
.auth-field.is-invalid input { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(217, 48, 38, .10); }
.auth-field.is-invalid .auth-error { display: block; }

/* 协议勾选的错误挂在 label.is-invalid 上，由相邻兄弟选择器驱动，JS 不再改 display */
.auth-agree.is-invalid + .auth-error { display: block; margin-top: 2px; }
.auth-field.shake { animation: auth-shake .26s ease; }
@keyframes auth-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) { .auth-field.shake { animation: none; } }

/* 密码强度 */
.auth-strength { display: flex; gap: 6px; margin-top: 9px; }
.auth-strength i { height: 3px; flex: 1; background: var(--border-strong); transition: background .15s ease; }
.auth-strength.s1 i:nth-child(1) { background: var(--danger); }
.auth-strength.s2 i:nth-child(-n + 2) { background: var(--warn); }
.auth-strength.s3 i { background: var(--cyan); }
.auth-strength-text { margin-top: 5px; font-size: 12px; color: var(--text-faint); }

/* 强度条插槽：无 hint 时不留空盒 */
.auth-strength-slot:empty { display: none; }

/* 全局错误条：与字段级提示拉开一档间距，避免两条错误贴在一起 */
.auth-global { margin-bottom: var(--s-4); }

/* 表单行（记住我 / 忘记密码） */
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 18px; font-size: 13px; }
.auth-check { display: inline-flex; align-items: center; gap: 7px; color: var(--text-dim); cursor: pointer; }
.auth-check input { width: 15px; height: 15px; margin: 0; flex: none; cursor: pointer; }

/* 协议勾选：整块触控，未勾选时就地标红 */
.auth-agree { display: flex; align-items: flex-start; gap: 8px; margin: -4px 0 18px; font-size: 12.5px; line-height: 1.6; color: var(--text-faint); cursor: pointer; }
.auth-agree input { width: 15px; height: 15px; margin: 3px 0 0; flex: none; cursor: pointer; }
.auth-agree.is-invalid { color: var(--danger); }
.auth-agree.is-invalid input { outline: 2px solid rgba(217, 48, 38, .35); outline-offset: 1px; }

/* 主按钮：高度对齐输入框，提交进入 loading 防重复点击 */
.auth-submit { width: 100%; height: 46px; border-radius: var(--radius); font-size: 15px; }
.auth-submit:disabled { opacity: .7; }
.cm-spinner {
  width: 14px; height: 14px; flex: none;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  animation: cm-spin .7s linear infinite;
}
@keyframes cm-spin { to { transform: rotate(360deg); } }

/* 绑定 / 注册二选一分段控件 */
.auth-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 20px; background: var(--bg-soft); border-radius: var(--radius); }
.auth-tabs button { flex: 1; height: 36px; padding: 0; border: 0; border-radius: var(--radius); background: transparent; color: var(--text-dim); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.auth-tabs button.is-active { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }

/* 其他登录方式 */
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; font-size: 12px; color: var(--text-faint); }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-oauth { display: flex; gap: 12px; justify-content: center; }
.auth-oauth-btn {
  min-width: 168px; height: 44px; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--border-strong);
  background: #fff;
  font-size: var(--fs-sm); font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-oauth-btn svg { color: #09bb07; flex: none; }
.auth-oauth-btn:hover { border-color: #09bb07; }
.auth-tip { margin-top: 14px; font-size: 12px; color: var(--text-faint); text-align: center; line-height: 1.6; }
.auth-switch { margin-top: 20px; text-align: center; font-size: 13.5px; color: var(--text-faint); }

/* 极简页脚：仅备案与合规链接 */
.auth-foot { margin-top: 20px; text-align: center; font-size: 12px; color: var(--text-faint); line-height: 1.9; }
.auth-foot .footer-sep { margin: 0 6px; color: var(--border-strong); }
@media (max-width: 1080px) { .auth-main { gap: 40px; } }
@media (max-width: 960px) {
  .auth-visual { display: none; }
  .auth-main { padding: 24px 20px 32px; justify-content: center; }
  .auth-panel { flex: 1 1 auto; max-width: 420px; }
  .auth-top { padding: 0 20px; }
}
@media (max-width: 560px) {
  .auth-card { padding: 24px 18px; border: 0; box-shadow: none; }
  .auth-input input, .auth-submit { height: 48px; }
}

/* 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; color: var(--text-dim); }
th { background: var(--panel-2); color: var(--text); font-weight: 600; font-size: 12px; }
tbody tr:hover { background: var(--brand-50); }
tbody tr:last-child td { border-bottom: none; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.tag {
  display: inline-flex; align-items: center; gap: var(--s-1);
  height: 22px; padding: 0 10px; border-radius: var(--radius-sm);
  font-size: var(--fs-cap); line-height: 1; white-space: nowrap;
  border: 1px solid var(--border); color: var(--text-dim); background: var(--panel-2);
}
.tag.ok, .tag.active { color: #0a8a75; border-color: var(--cyan-100); background: var(--cyan-50); }
.tag.pending { color: #a86200; border-color: var(--warn-100); background: var(--warn-50); }
.tag.fail, .tag.danger, .tag.disabled { color: #a8201a; border-color: var(--danger-100); background: var(--danger-50); }
.tag.info, .tag.paid { color: var(--brand-600); border-color: var(--brand-100); background: var(--brand-50); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-4); }
.progress { height: 6px; background: var(--panel-2); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.progress > div { height: 100%; background: var(--brand); }
.tabs { display: flex; gap: var(--s-2); margin-bottom: var(--s-4); flex-wrap: wrap; }
.tabs button {
  display: inline-flex; align-items: center; gap: var(--s-2);
  background: var(--panel); border: 1px solid var(--border-strong); color: var(--text-dim);
  padding: 7px 15px; border-radius: var(--radius-sm); cursor: pointer; font-size: var(--fs-sm);
  transition: all .16s ease;
}
.tabs button .icon { opacity: .8; }
.tabs button:hover { border-color: var(--brand); color: var(--brand); }
.tabs button.active { background: var(--brand-50); color: var(--brand); border-color: var(--brand); font-weight: 600; }
.pay-box { text-align: center; padding: var(--s-3) 0; }
.pay-amount { font-size: var(--fs-h2); font-weight: 700; margin: var(--s-2) 0 var(--s-1); color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: var(--ls-tight); }

/* 下单页的渠道选择块：嵌在卡片里，不能再套一层 .card 的投影与内边距 */
.pay-tile {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--panel-2);
}
.pay-tile .icon { flex: none; color: var(--brand); }
.pay-tile-name { font-size: var(--fs-body); font-weight: 600; }
.pay-tile-desc { font-size: var(--fs-cap); color: var(--text-faint); margin-top: 2px; }

/* 二维码需要纯白底保证扫码对比度，容器宽度贴合图形居中 */
.qr-frame {
  width: max-content; margin: var(--s-4) auto;
  padding: var(--s-3);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
}
.qr-frame svg { display: block; }
.qr-link { margin: var(--s-2) 0 0; text-align: left; }

/* 同一只作「无可用二维码」与「渠道未就绪」两种占位，宽度贴合上方二维码框 */
.qr-placeholder {
  width: 220px; min-height: 220px; margin: var(--s-4) auto var(--s-3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-2);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-faint); font-size: var(--fs-cap); line-height: var(--lh-normal); text-align: center;
  padding: var(--s-4); background: var(--panel-2);
}
.qr-placeholder .icon { color: var(--text-dim); }
.qr-placeholder--inline { min-height: 0; width: auto; margin: var(--s-3) 0 0; }
.divider { height: 1px; background: var(--border); margin: var(--s-4) 0; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--text-faint); }
.kv dd { margin: 0; color: var(--text-dim); }
.card.accent-border { border-color: var(--brand-200); box-shadow: inset 3px 0 0 var(--brand); }
.checkbox-row { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-faint); }
.checkbox-row input { width: auto; margin: 0; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* 一次性明文：等宽、可断行、占满剩余宽度 */
.plain-key { flex: 1; min-width: 260px; word-break: break-all; font-size: var(--fs-body); }
.muted { color: var(--text-faint); }
.small { font-size: 12.5px; }

/* 法律文档（隐私政策 / 用户协议共用） */
.doc-wrap { max-width: 820px; margin: 0 auto; }
.doc-meta { margin: var(--s-2) 0 0; font-size: var(--fs-cap); color: var(--text-faint); letter-spacing: var(--ls-tight); }
.doc-h { font-size: var(--fs-h4); font-weight: 700; margin: var(--s-6) 0 var(--s-3); scroll-margin-top: 80px; color: var(--text); line-height: var(--lh-snug); }
.doc-h:first-child { margin-top: 0; }
.doc-p { font-size: var(--fs-sm); line-height: var(--lh-relax); color: var(--text-dim); margin: 0 0 var(--s-3); }
.doc-p b { color: var(--text); font-weight: 600; }
.doc-p--lead { font-size: var(--fs-body); margin-bottom: var(--s-4); }
.doc-list { margin: 0; padding-left: 20px; font-size: var(--fs-sm); line-height: var(--lh-relax); color: var(--text-dim); }
.doc-list li { margin-bottom: 6px; }
.doc-list b { color: var(--text); font-weight: 600; }
.doc-toc { border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: var(--s-3) var(--s-4); background: var(--panel-2); }
.doc-toc-title { font-size: var(--fs-cap); color: var(--text-faint); margin-bottom: var(--s-2); }
.doc-toc ol { margin: 0; padding-left: 20px; font-size: var(--fs-sm); line-height: var(--lh-relax); color: var(--text-dim); }
.doc-toc a { color: var(--text-dim); }
.doc-toc a:hover { color: var(--brand); }
.doc-cell { color: var(--text-dim); line-height: var(--lh-snug); white-space: normal; overflow-wrap: anywhere; }

/* 全局 table 有 min-width:560px，文书页在窄屏会横向溢出；这里放开让单元格自己折行 */
.doc-wrap .data-table { min-width: 0; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.toast-root { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 10px; z-index: 99; }
.toast {
  padding: 11px 16px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); font-size: 13px; min-width: 200px; color: var(--text);
  animation: toast-in .22s ease;
}
.toast.ok { border-left: 3px solid var(--cyan); }
.toast.err { border-left: 3px solid var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
pre.code-block {
  background: #fbfcfe; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px; overflow-x: auto; font-size: 12.5px; color: var(--text-dim);
}

/* ==========================================================================
8. 下载中心
========================================================================== */
.dl-tabs { margin-bottom: var(--s-5); }
.dl-panel.hidden { display: none; }
.dl-prod { padding: var(--s-6); }
.dl-head { display: flex; gap: var(--s-4); align-items: flex-start; }

/* 下载卡是本页主视觉，图标砖比产品线卡大一档 */
.dl-ico {
  width: 48px; height: 48px; flex: none;
  display: grid; place-items: center;
  background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius-sm);
  color: var(--brand);
}
.dl-head-main { flex: 1; min-width: 0; }
.dl-name { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-h4); font-weight: 700; flex-wrap: wrap; color: var(--text); }
.dl-meta { flex: none; display: flex; gap: 20px; }
.dl-meta div { display: flex; flex-direction: column; }
.dl-meta span { font-size: 11.5px; color: var(--text-faint); }
.dl-meta b { font-size: 13px; font-family: var(--mono); color: var(--text); }
.dl-feat {
  list-style: none; margin: 18px 0 0; padding: 16px 0 0;
  border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 6px 20px;
}
.dl-feat li { position: relative; padding-left: 18px; font-size: 13px; color: var(--text-dim); }
.dl-feat li::before { content: '✓'; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.dl-sub { margin: 20px 0 10px; font-size: 13px; font-weight: 600; color: var(--text-dim); }
.dl-note {
  margin-top: 14px; padding: 12px 14px; font-size: 12.5px; line-height: 1.85;
  color: var(--text-dim); background: var(--brand-50);
  border: 1px dashed #c7d9ff; border-radius: var(--radius-sm);
}
.dl-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.dl-opt {
  position: relative; display: flex; flex-direction: column; gap: var(--s-1);
  padding: var(--s-4) var(--s-5); text-decoration: none;
  border-radius: var(--radius-sm); color: var(--text);
}
.dl-opt:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.dl-opt.recommend { border-color: #b9d0ff; background: var(--brand-50); }
.dl-opt-label { font-size: 14px; font-weight: 600; }
.dl-opt-hint { font-size: 12px; color: var(--text-faint); }
.dl-opt-go { position: absolute; right: var(--s-4); top: var(--s-3); display: inline-flex; color: var(--brand); }
.dl-opt-badge {
  position: absolute; right: 34px; top: 14px;
  background: var(--brand);
  color: #fff; font-size: var(--fs-micro); font-weight: 700; padding: 2px 8px; border-radius: var(--radius-sm);
}
.dl-copy { margin-top: var(--s-4); display: flex; align-items: center; gap: var(--s-2); }
.dl-url {
  flex: 1; min-width: 0;
  font-family: var(--mono); font-size: var(--fs-cap); color: var(--text-dim);
  background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dl-soon {
  padding: var(--s-5); text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm);
  background: var(--panel-2); color: var(--text-dim); font-size: var(--fs-sm); line-height: var(--lh-relax);
}
.dl-soon-title { display: flex; align-items: center; justify-content: center; gap: var(--s-2); font-size: var(--fs-h4); font-weight: 700; color: var(--text); margin-bottom: var(--s-1); }

/* ==========================================================================
9. 入场动画
========================================================================== */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
10. 响应式
========================================================================== */
@media (max-width: 1080px) {
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(3, 1fr); gap: var(--s-5) var(--s-3); }
  .flow::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 960px) {
  .og-hero-inner { grid-template-columns: 1fr; gap: var(--s-8); }
  .cap-grid, .fact-grid, .scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec { padding: var(--s-10) 0; }
  .prod-detail { grid-template-columns: 1fr; gap: var(--s-5); }
  .prod-spec { position: static; }
  .prod-point { grid-template-columns: 1fr; }
  .api-block { grid-template-columns: 1fr; gap: var(--s-5); }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-brand-sub { display: none; }
}
@media (max-width: 720px) {
  .container { padding: var(--s-6) 16px 56px; }
  .nav-inner { padding: 0 16px; gap: var(--s-3); }
  .nav-links { gap: 0; overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-item.opt { display: none; }
  .nav-links a.nav-a { padding: 8px 10px; white-space: nowrap; }
  .nav-right { gap: 6px; }
  .prod-grid, .cap-grid, .fact-grid, .scene-grid, .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .sec-title { font-size: var(--fs-h3); }
  .sec-head { margin-bottom: var(--s-6); }
  .og-hero { padding: 44px 0 40px; }
  .cta-band { padding: var(--s-8) var(--s-5); }
  .cta-band h3 { font-size: var(--fs-h3); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .dl-head { flex-direction: column; }
  .dl-meta { gap: 14px; }
}

/* ==========================================================================
11. 行业解决方案
========================================================================== */
.sol-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.sol-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); }
.sol-card-top {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
}
.sol-arr {
  display: inline-flex; align-items: center;
  font-size: 14px; color: var(--text-faint); transition: transform .2s ease, color .2s ease;
}
.sol-card:hover .sol-arr { color: var(--brand); transform: translateX(3px); }
.sol-ico {
  width: 42px; height: 42px; border-radius: var(--radius); margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: var(--brand-50); border: 1px solid #dbe6ff;
}
.sol-name { font-size: 16px; font-weight: 700; margin-bottom: 5px; color: var(--text); }
.sol-tagline {
  font-size: 13px; font-weight: 600; color: var(--brand-600); margin-bottom: 8px; line-height: 1.5;
}
.sol-desc { font-size: var(--fs-sm); color: var(--text-dim); line-height: var(--lh-normal); margin: 0 0 var(--s-4); flex: 1; }
.sol-meta { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: auto; }

/* 案例卡：复用方案卡身材，摘要不再撑满等高，要点贴到卡片底部 */
.case-card { justify-content: flex-start; }
.case-card .sol-desc { flex: none; }
.case-results { margin-top: auto; }
.sol-hero { padding: 52px 0 40px; }
.sol-hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.sol-hero h1 { margin: 12px 0 10px; font-size: var(--fs-h2); font-weight: 700; letter-spacing: var(--ls-tight); }
.sol-tagline.hero { font-size: 18px; color: var(--brand-600); margin-bottom: 14px; }
.sol-lead { font-size: 15px; line-height: 1.85; color: var(--text-dim); margin: 0 0 20px; }
.sol-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.sol-poster {
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: #fff;
}
.sol-poster img { display: block; width: 100%; height: auto; }
.sol-detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
.sol-main { min-width: 0; }
.sol-section { margin-bottom: 44px; }
.sol-section:last-child { margin-bottom: 0; }
.sol-highlights {
  list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px;
}
.sol-highlights li {
  position: relative; padding-left: 20px; font-size: 13.5px; color: var(--text-dim); line-height: 1.7;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 12px 12px 34px;
}
.sol-highlights li::before {
  content: '✓'; position: absolute; left: 12px; top: 12px; color: var(--brand); font-weight: 700; font-size: 13px;
}
.sol-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.sol-feature-card .icon-tile { margin-bottom: var(--s-3); }
.sol-feature-title { font-size: var(--fs-body); font-weight: 700; margin-bottom: var(--s-1); color: var(--text); }
.sol-feature-desc { font-size: var(--fs-sm); color: var(--text-dim); line-height: var(--lh-normal); margin: 0; }
.sol-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sol-shot {
  display: block; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--panel-2); box-shadow: var(--shadow-sm); transition: box-shadow .2s ease;
}
.sol-shot:hover { box-shadow: var(--shadow); }
.sol-shot img { display: block; width: 100%; height: auto; }
.sol-video-wrap {
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  background: #0d1526; box-shadow: var(--shadow-lg);
}
.sol-video-wrap video { display: block; width: 100%; height: auto; }
.sol-spec {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow-sm); position: sticky; top: 88px;
}
.sol-spec-title { font-size: var(--fs-sm); font-weight: 700; color: var(--text); margin-bottom: var(--s-3); letter-spacing: .02em; }
.sol-spec-title--gap { margin-top: var(--s-5); }
.sol-spec-list { display: grid; gap: 10px; }
.sol-spec-row { display: grid; grid-template-columns: 78px 1fr; gap: 10px; font-size: 12.5px; }
.sol-spec-row dt { color: var(--text-faint); }
.sol-spec-row dd { margin: 0; color: var(--text-dim); line-height: 1.6; }

/* 上游已备案生成式人工智能服务公示（网信办公告要求：注明模型名称及备案号） */
.uf-list { display: grid; gap: 12px; }
.uf-item { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.uf-type {
  font-size: var(--fs-sm); font-weight: 700; color: var(--text);
  background: var(--panel-2); padding: 8px 16px; border-bottom: 1px solid var(--border);
}
.uf-item .sol-spec { position: static; box-shadow: none; border: 0; border-radius: 0; padding: 14px 16px; }
.uf-item .sol-spec-row { grid-template-columns: 96px 1fr; }
.uf-no { font-family: var(--font-mono, ui-monospace, Menlo, Consolas, monospace); color: var(--text); font-weight: 600; }
.sol-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.sol-tech-item {
  font-size: 11.5px; color: var(--text-dim); background: var(--panel-2);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 3px 9px;
}
@media (max-width: 1080px) {
  .sol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sol-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sol-detail-grid { grid-template-columns: 1fr; }
  .sol-spec { position: static; }
}
@media (max-width: 720px) {
  .sol-grid { grid-template-columns: 1fr; }
  .sol-hero-grid { grid-template-columns: 1fr; }
  .sol-hero h1 { font-size: 27px; }
  .sol-highlights { grid-template-columns: 1fr; }
  .sol-feature-grid { grid-template-columns: 1fr; }
  .sol-gallery { grid-template-columns: 1fr; }
  .sol-poster { order: -1; }
}

/* ==========================================================================
13. 新闻 / 招聘 / 关于页面
========================================================================== */
.news-list { display: grid; gap: var(--s-4); }
.news-meta { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-2); }
.news-tag {
  font-size: var(--fs-micro); font-weight: 600; color: var(--brand); background: var(--brand-50);
  border: 1px solid var(--brand-100); border-radius: var(--radius-sm); padding: 2px 9px;
}
.news-date { font-size: var(--fs-cap); color: var(--text-faint); font-family: var(--mono); }
.news-title { font-size: var(--fs-h4); font-weight: 700; margin: 0 0 var(--s-2); color: var(--text); letter-spacing: var(--ls-tight); line-height: var(--lh-snug); }
.news-summary { font-size: var(--fs-sm); color: var(--text-dim); line-height: var(--lh-normal); margin: 0; }
.job-list { display: grid; gap: var(--s-4); }
.job-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); margin-bottom: var(--s-3); flex-wrap: wrap; }
.job-title { font-size: var(--fs-h4); font-weight: 700; margin: 0 0 var(--s-1); color: var(--text); letter-spacing: var(--ls-tight); line-height: var(--lh-snug); }
.job-meta { font-size: var(--fs-cap); color: var(--text-faint); }
.job-meta .sep { margin: 0 5px; }
.job-tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.job-desc { font-size: var(--fs-sm); color: var(--text-dim); line-height: var(--lh-normal); margin: 0; }

/* about/cases 页面复用 sol-detail-grid/sol-section 等类，补充间距 */
.sol-section .stat-grid { margin-top: var(--s-2); }

/* ==========================================================================
12. 移动端导航优化
========================================================================== */
.nav-toggle {
  display: none; margin-left: auto;
  width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--border); padding: 12px 16px 18px;
    flex-direction: column; align-items: stretch; gap: 2px;
    display: none; max-height: calc(100vh - 64px); overflow-y: auto;
  }
.nav-links.open { display: flex; }
.nav-item { height: auto; }
.nav-item.opt { display: block; }
.nav-links a.nav-a { display: flex; justify-content: space-between; padding: 10px 0; }
.nav-links a.nav-a.active::after { display: none; }
.mega { position: static; width: 100%; transform: none; box-shadow: none; border: none; padding: 8px 0 0 12px; opacity: 1; visibility: visible; display: none; }
.nav-item.open .mega { display: block; }
.mega-grid { grid-template-columns: 1fr; }
.mega-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
.nav-right { margin-left: 0; flex: 1; justify-content: flex-end; }
.nav-right .btn.sm { padding: 6px 10px; font-size: 12px; }
}

/* ==========================================================================
9. 全站设计基元（大厂口径）
--------------------------------------------------------------------------
这一层给所有页面复用：卡片、徽章、表格、表单、空态、骨架、弹框、页头。
以前每页各写一套（9 个卡片类、6 个徽章类、3 种 label），现在只认这里的名字。
旧类名保留可用，页面逐页迁移，不会一次性崩版。
========================================================================== */

/* 焦点可见：全站此前 0 处 :focus-visible，键盘 Tab 没有任何反馈 */
:focus-visible { outline: none; }
a:focus-visible,
.btn:focus-visible,
.card:focus-visible,
.chip:focus-visible,
.tabs button:focus-visible,
.dl-opt:focus-visible,
.mega-item:focus-visible,
.nav-a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* 纯文字链接用描边而不是阴影，避免把行内盒撑开 */
p a:focus-visible, li a:focus-visible, .doc-body a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  box-shadow: none;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 内容宽度变体：取代散在各页的 max-width:720/780/820/900px 内联值 */
.wrap--prose { max-width: 780px; }
.wrap--list { max-width: 900px; }
.wrap--split { max-width: 1040px; }

/* 卡片：一个基类 + 少量修饰，替代 prod-card / cap-item / scene-card / fact /
sol-card / news-item / job-item / dl-opt 各写各的 padding+radius+hover */
.card--lg { border-radius: var(--radius-lg); }
.card--pad-s { padding: var(--s-4); }
.card--pad-l { padding: var(--s-6); }
.card--stack { display: flex; flex-direction: column; gap: var(--s-3); }
.card--hover { transition: box-shadow .18s ease, border-color .18s ease; }
.card--hover:hover { box-shadow: var(--shadow-hover); border-color: var(--brand-200); }
a.card--link { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: var(--s-3); }
a.card--link:hover { color: inherit; }

/* 图标砖基元：新页面用 .icon-tile，旧卡片类名在文末统一收到同一身材 */
.icon-tile {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand);
}
.icon-tile--sm { width: 32px; height: 32px; border-radius: var(--radius); }
.icon-tile--lg { width: 48px; height: 48px; border-radius: var(--radius); }
.icon-tile--plain { background: var(--bg-soft); border-color: var(--border); color: var(--text-dim); }
.icon { display: block; }

/* 徽章：合并 badge / tag / prod-flag / sol-cat / news-tag / dl-opt-badge */
.chip {
  display: inline-flex; align-items: center; gap: var(--s-1);
  height: 22px; padding: 0 10px;
  font-size: var(--fs-cap); font-weight: 500; line-height: 1;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-dim);
  white-space: nowrap;
}
.chip--brand { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand); }
.chip--warn { background: var(--warn-50); border-color: var(--warn-100); color: #a86200; }
.chip--danger { background: var(--danger-50); border-color: var(--danger-100); color: #a8201a; }
.chip--lg { height: 26px; padding: 0 12px; font-size: 12.5px; }
a.chip { cursor: pointer; }
a.chip:hover { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand); }
.chip-dot { width: 6px; height: 6px; background: currentColor; flex: none; }

/* 列表：把「卡中卡」的 sol-highlights 降级成纯符号列表 */
.bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.bullets li { position: relative; padding-left: 18px; font-size: var(--fs-sm); color: var(--text-dim); line-height: var(--lh-normal); }
.bullets li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 5px; height: 5px; background: var(--brand); opacity: .55;
}
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.check-list li { position: relative; padding-left: 22px; font-size: var(--fs-sm); color: var(--text-dim); line-height: var(--lh-normal); }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 4px;
  width: 14px; height: 14px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231560ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.check-list li.is-off { color: var(--text-faint); }
.check-list li.is-off::before { opacity: .35; filter: grayscale(1); }

/* 按钮组：取代 6 处内联 display:flex;gap:10/12px */
.btn-row { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.btn-row--end { justify-content: flex-end; }
.btn-row--split { justify-content: space-between; }
.field--runner { max-width: 150px; }

/* 表格里的长文本列：限宽 + 断词，避免一条指令把整张表撑开 */
.cell-text { max-width: 280px; word-break: break-all; }
.cell-error { font-size: var(--fs-sm); color: var(--danger); }

/* 页头：标题/副标题/操作区一套留白，取代各页内联 margin-bottom:4px */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-6); flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: var(--fs-h3); font-weight: 700; letter-spacing: var(--ls-tight); line-height: var(--lh-tight); }
.page-head .page-sub { margin: var(--s-1) 0 0; font-size: var(--fs-sm); color: var(--text-dim); }
.page-head h1 .icon { color: var(--brand); }

/* 表格：数字右对齐 + 等宽，是财务/用量类页面的底线 */
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.data-table caption { caption-side: top; text-align: left; font-size: var(--fs-cap); color: var(--text-faint); padding-bottom: var(--s-2); }
.data-table th, .data-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--bg-soft);
  font-size: var(--fs-cap); font-weight: 600; color: var(--text-dim);
  letter-spacing: .02em; white-space: nowrap;
  border-bottom: 1px solid var(--border-strong);
}
.data-table tbody tr:hover { background: var(--bg-soft); }
.data-table tbody tr:last-child td { border-bottom: 0; }

/* 行表头：对比表的第一列是「哪条产品线」，语义上属于 th，视觉上保持与普通单元格齐平 */
.data-table tbody th { text-align: left; font-weight: 600; color: var(--text); font-size: var(--fs-sm); }

/* 长文本列（变更说明、举报摘要）顶对齐，避免被垂直居中切成两行悬空 */
.data-table--top th, .data-table--top td { vertical-align: top; }
.col-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.col-money { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.col-mono { font-family: var(--mono); font-size: 12.5px; }
.col-nowrap { white-space: nowrap; }
.row-actions { display: inline-flex; align-items: center; gap: var(--s-2); white-space: nowrap; }

/* 空态 / 骨架：把「加载中…」纯文字升级成可辨认的占位 */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s-2);
  padding: var(--s-12) var(--s-5);
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--text-dim);
}
.empty-state .empty-title { font-size: var(--fs-body); font-weight: 600; color: var(--text); }
.empty-state .empty-sub { font-size: var(--fs-sm); color: var(--text-faint); max-width: 380px; }
.skeleton { position: relative; overflow: hidden; background: var(--bg-soft); border-radius: var(--radius-sm); }
.skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
  transform: translateX(-100%);
  animation: cm-shimmer 1.15s ease-in-out infinite;
}
.skeleton-row { height: 16px; margin-bottom: var(--s-3); }
.skeleton-row:last-child { margin-bottom: 0; width: 60%; }
.skeleton-list { display: grid; gap: var(--s-3); padding: var(--s-5); border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
@keyframes cm-shimmer { 60% { transform: translateX(100%); } 100% { transform: translateX(100%); } }

/* 数据卡：把「余额 / 剩余次数」这类关键数字提出来 */

/* 关键指标卡：全站唯一的统计卡实现（account / admin / store / about 共用） */
.stat-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s-4) var(--s-5); box-shadow: var(--shadow-sm); }
.stat-card .stat-label { display: flex; align-items: center; gap: var(--s-1); font-size: var(--fs-cap); color: var(--text-faint); letter-spacing: .02em; }
.stat-card .stat-label .icon { flex: none; color: var(--brand); }
.stat-card .stat-value { margin-top: 2px; font-size: var(--fs-h3); font-family: var(--mono); font-weight: 700; line-height: var(--lh-tight); letter-spacing: var(--ls-tight); font-variant-numeric: tabular-nums; color: var(--text); }
.stat-card .stat-sub { margin-top: 2px; font-size: var(--fs-cap); color: var(--text-dim); }
.stat-card--primary { border-color: var(--brand-100); background: var(--brand-50); }
.stat-card--primary .stat-value { font-size: var(--fs-h2); color: var(--brand-700); }
.stat-card--danger { border-color: var(--danger-100); background: var(--danger-50); }
.stat-card--danger .stat-value { color: var(--danger); }
.stat-card--danger .stat-label .icon { color: var(--danger); }

/* 表单：从 auth 层泛化，交易页与后台共用一套控件 */
.form-section { display: grid; gap: var(--s-4); }
.form-section--card { padding: var(--s-6); background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.form-section + .form-section { margin-top: var(--s-5); }
.form-section-title { margin: 0 0 var(--s-4); font-size: var(--fs-h4); font-weight: 650; letter-spacing: var(--ls-tight); }
.form-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* 后台一行塞 4~7 个短字段（标识、排序、状态），用更窄的下限 */
.form-grid--dense { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* 单行查询/签发条：控件等高后按底部对齐，按钮不会浮在半空 */
.form-grid--end { align-items: end; }
.form-grid--end .btn { height: var(--control-h); }
.field--grow2 { grid-column: span 2; }
.field--s { max-width: 180px; }
@media (max-width: 720px) {
  .field--grow2 { grid-column: auto; }
  .field--s, .field--runner { max-width: none; }
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.form-label .req { color: var(--danger); margin-left: 2px; }
.form-label .opt { color: var(--text-faint); font-weight: 400; margin-left: 6px; font-size: var(--fs-cap); }
.form-hint { font-size: var(--fs-cap); color: var(--text-faint); line-height: var(--lh-snug); }
.form-control {
  width: 100%; height: var(--control-h);
  padding: 0 12px;
  font: inherit; font-size: var(--fs-body); color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.form-control { height: auto; padding: 10px 12px; line-height: var(--lh-normal); resize: vertical; }
select.form-control { padding-right: 30px; }
.form-control:hover { border-color: var(--brand-300); }
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus-ring); }
.form-error { font-size: var(--fs-cap); color: var(--danger); line-height: var(--lh-snug); }
.form-field.is-invalid .form-control { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(217, 48, 38, .1); }
.form-success { font-size: var(--fs-sm); color: #0a8a75; }
.form-foot { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-5); }

/* 弹框：替代后台的 alert / confirm / prompt，原生弹框是最掉价的一处 */
.modal-mask {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: var(--s-5);
  background: rgba(16, 24, 40, .45);
  backdrop-filter: blur(2px);
  animation: cm-fade .15s ease;
}
.modal {
  width: 100%; max-width: 440px;
  padding: var(--s-6);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: cm-pop .18s cubic-bezier(.2, .8, .3, 1);
}
.modal--wide { max-width: 620px; }
.modal-title { margin: 0; font-size: var(--fs-h4); font-weight: 700; letter-spacing: var(--ls-tight); }
.modal-body { margin: var(--s-3) 0 0; font-size: var(--fs-sm); color: var(--text-dim); line-height: var(--lh-normal); }
.modal-body .danger-note { margin-top: var(--s-3); padding: var(--s-3); border-radius: var(--radius-sm); background: var(--danger-50); color: #a8201a; font-size: var(--fs-cap); }
.modal-actions { display: flex; justify-content: flex-end; gap: var(--s-3); margin-top: var(--s-6); }
.modal-input { width: 100%; margin-top: var(--s-3); }
@keyframes cm-fade { from { opacity: 0; } }
@keyframes cm-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* 锚点避让 sticky 导航：只有 doc-h 做过，其余锚点全被盖住 */
[id^="line-"], [id^="cat-"], [id^="sec-"], [id^="doc-"] { scroll-margin-top: 80px; }

/* 分页 */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--text-dim); flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) {
  .card--hover:hover { transform: none; }
  .skeleton::after { animation: none; }
  .modal, .modal-mask { animation: none; }
}
.ic-line { display: inline-flex; align-items: center; gap: 6px; }
.ic-line .icon { flex: none; }
.btn-row--center { justify-content: center; }
.nav-right .btn.is-current { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.mt-12 { margin-top: var(--s-3); }

/* 卡片基元：九类卡片（prod/cap/scene/fact/sol/news/job/dl/sol-feature）统一身材
—— 之前各自 18/20/22px 内距、12/16px 圆角、-2/-3/-4px 上浮，跨页对比一眼看出不是一个团队做的
现在：4px 圆角 + 1px 描边，hover 只换描边与一层极浅阴影，不再整卡上浮 */
.card,
.prod-card, .cap-item, .scene-card, .fact, .sol-card, .news-item, .job-item, .dl-opt, .sol-feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
}

/* 场景卡的内距由 scene-top / scene-list 自己出，外层再给一份就成了双层 padding */
.scene-card { padding: 0; }
.prod-card, .cap-item, .scene-card, .sol-card, .sol-feature-card, .dl-opt {
  transition: box-shadow .18s ease, border-color .18s ease;
}
.prod-card:hover, .cap-item:hover, .scene-card:hover,
.sol-card:hover, .sol-feature-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-200);
}

/* 图标砖统一：prod-ico / cap-ico / sol-ico / scene-ico 原本各写 38~42px 四种尺寸
（dl-ico 单独大一档，见下载中心一节） */
.prod-ico, .cap-ico, .sol-ico, .scene-ico {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand);
}
.cap-ico { background: var(--panel); border-color: var(--border); color: var(--brand); margin-bottom: var(--s-3); }
.scene-ico { margin-bottom: var(--s-3); }

/* 工具类：替代散落各页的一次性 style="text-align:center" */
.text-center { text-align: center; }

/* 行内图标与文字对齐（首页预览侧栏、区块标题、卡片链接） */
.chip .icon, .badge .icon, .tag .icon, .btn .icon { flex: none; }
.og-side-item .icon { opacity: .75; flex: none; }
.og-side-item.on .icon { opacity: 1; }
.fact-title .icon { color: var(--brand); }
.scene-ico .icon { display: block; }
.prod-link .icon { transition: transform .18s ease; }
.prod-link:hover .icon { transform: translateX(3px); }

/* 区块标题变体：左对齐小标题用于双栏区块，避免在 HTML 里写 style */
.sec-title--sm { font-size: var(--fs-h3); margin-top: var(--s-3); }
.sec-sub--left { margin: var(--s-2) 0 var(--s-5); text-align: left; }

/* ---- 三端设备授权页（#/device）：端侧配对码确认 ---- */
.device-auth { min-height: 62vh; display: flex; align-items: center; justify-content: center; padding: 64px 20px 80px; }
.device-card { width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--border); padding: 32px 30px 26px; }
.device-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--brand); text-transform: uppercase; margin-bottom: 10px; }
.device-title { font-size: 22px; font-weight: 700; margin: 0 0 10px; color: var(--text); }
.device-sub { font-size: 13px; line-height: 1.75; color: var(--text-dim); margin: 0 0 22px; }
.device-sub b { color: var(--text); font-weight: 600; }

.device-target { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--bg-blue); border: 1px solid var(--border); margin-bottom: 22px; }
.device-target-ico { display: flex; color: var(--brand); flex: none; }
.device-target-name { font-size: 14px; font-weight: 600; color: var(--text); }
.device-target-hint { font-size: 12px; color: var(--text-faint); margin-top: 2px; }

.device-label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.device-code-input {
  width: 100%; box-sizing: border-box; padding: 14px 16px; text-align: center;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 22px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase;
  color: var(--text); background: var(--panel); border: 1px solid var(--border-strong); outline: none;
}
.device-code-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.device-code-input::placeholder { color: #c2cad6; letter-spacing: 4px; }

.device-btn { width: 100%; justify-content: center; margin-top: 18px; }
.device-foot { font-size: 12px; color: var(--text-faint); line-height: 1.7; margin-top: 16px; text-align: center; }
.device-foot a { color: var(--brand); text-decoration: none; }
.device-foot a:hover { text-decoration: underline; }
#device-err { margin-top: 12px; }

.device-done { text-align: center; padding: 12px 0 4px; }
.device-done-ico { width: 52px; height: 52px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--cyan); }
.device-done .device-sub { margin-bottom: 18px; }
