/* ==========================================================================
   智子频道主站 · 统一设计系统 v2.0
   Design tokens → 基础组件 → 页面模式 → 响应式 → 无障碍
   所有页面共用本文件，禁止再在页面内复制一套 :root 变量。
   ========================================================================== */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* 表面与描边 */
  --bg:            #F7F9FC;
  --bg-tint:       #EEF4FB;
  --surface:       #FFFFFF;
  --surface-2:     #F4F8FD;
  --surface-3:     #EAF1FA;
  --border:        #E3EAF3;
  --border-strong: #C9D9EF;

  /* 文字（对 --bg / --surface 均 >= 4.5:1） */
  --text:          #101C31;   /* 主文字 ≈ 15:1 */
  --text-2:        #34425A;   /* 次级标题 */
  --muted:         #5B6880;   /* 辅助文字 ≈ 5.4:1 */
  --faint:         #8492A8;   /* 仅用于非关键信息/占位符 */

  /* 品牌与语义色 */
  --brand:         #2563EB;   /* 填充、描边、聚焦环 */
  --brand-ink:     #1D4ED8;   /* 链接文字（更高对比） */
  --brand-deep:    #122A4A;
  --cyan:          #0EA5E9;   /* 渐变辅色 */
  --cyan-ink:      #076E93;   /* 青色文字 */
  --green:         #10B981;
  --green-ink:     #047857;
  --amber:         #D97706;
  --err:           #DC2626;

  --tint-blue:     #EAF1FF;
  --tint-cyan:     #E5F6FD;
  --tint-green:    #E7F8F1;
  --tint-red:      #FDECEC;
  --tint-amber:    #FEF3E2;
  --ring:          rgba(37, 99, 235, .18);

  /* 字体 */
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 字号阶梯 */
  --fs-xs: 12px; --fs-sm: 13px; --fs-base: 14px; --fs-md: 16px;
  --fs-lg: 18px; --fs-xl: 20px; --fs-2xl: 24px; --fs-3xl: 32px;
  --fs-4xl: 40px; --fs-5xl: 52px;

  /* 8pt 间距节奏 */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-6: 24px; --sp-8: 32px; --sp-12: 48px; --sp-16: 64px; --sp-20: 80px;

  /* 圆角 / 阴影 / 动效 */
  --r-sm: 8px; --r-md: 10px; --r-lg: 16px; --r-xl: 20px; --r-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(16, 32, 64, .04);
  --shadow-sm: 0 1px 2px rgba(16, 32, 64, .05), 0 4px 12px -6px rgba(16, 32, 64, .10);
  --shadow-md: 0 12px 32px -14px rgba(28, 74, 168, .28);
  --shadow-lg: 0 28px 64px -20px rgba(15, 27, 45, .38);
  --t-fast: 150ms ease;
  --t-normal: 240ms ease;

  /* 版心 */
  --maxw: 1120px;
  --maxw-wide: 1280px;
}

/* ---------- 2. Reset & 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  color: var(--text);
  background:
    radial-gradient(900px 460px at 88% -12%, rgba(14, 165, 233, .11), transparent 62%),
    radial-gradient(820px 440px at 4% -8%, rgba(37, 99, 235, .10), transparent 64%),
    linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 42%, #FBFCFE 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
/* 极淡网格：只在页面上部可见，避免大面积噪点 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(37, 99, 235, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(1000px 620px at 50% 0%, #000 0%, transparent 82%);
  mask-image: radial-gradient(1000px 620px at 50% 0%, #000 0%, transparent 82%);
}
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4 { letter-spacing: -.02em; }
svg { display: block; }
::selection { background: #CFE0FF; color: var(--brand-deep); }

.container { position: relative; z-index: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.container--wide { max-width: var(--maxw-wide); }
.site-header, main, .site-footer { position: relative; z-index: 1; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.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; }

/* 键盘可达：跳过导航 */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--surface); color: var(--brand-ink); border: 1px solid var(--border-strong);
  padding: 10px 16px; border-radius: var(--r-md); box-shadow: var(--shadow-md); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* 全局聚焦环 —— WCAG 2.1 AA */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ---------- 3. 顶栏 / 导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--text); font-weight: 700; font-size: var(--fs-md); letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; background: #FFF; border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__sub { font-size: 11px; font-weight: 500; color: var(--faint); letter-spacing: .08em; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 11px;
  border-radius: var(--r-md); color: var(--muted); font-size: var(--fs-base); font-weight: 500;
  white-space: nowrap; transition: color var(--t-fast), background var(--t-fast);
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.is-active { color: var(--brand-ink); background: var(--tint-blue); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }

/* 移动端折叠导航（纯 details，无 JS 依赖） */
.mobile-nav { display: none; position: relative; }
.mobile-nav > summary {
  list-style: none; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); cursor: pointer; color: var(--text-2);
}
.mobile-nav > summary::-webkit-details-marker { display: none; }
.mobile-nav > summary svg { width: 20px; height: 20px; }
.mobile-nav__panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(280px, 84vw);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 8px; display: grid; gap: 2px;
}
.mobile-nav__link { display: block; padding: 11px 14px; border-radius: var(--r-md); color: var(--text-2); font-size: var(--fs-base); font-weight: 500; }
.mobile-nav__link:hover { background: var(--surface-2); color: var(--brand-ink); }
.mobile-nav__link.is-active { background: var(--tint-blue); color: var(--brand-ink); font-weight: 600; }

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--r-md);
  font-size: var(--fs-base); font-weight: 600; line-height: 1; cursor: pointer;
  white-space: nowrap; text-align: center;
  transition: filter var(--t-fast), transform var(--t-fast), background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.btn--primary {
  color: #FFF; background: linear-gradient(135deg, var(--brand), var(--cyan));
  box-shadow: 0 8px 20px -10px rgba(37, 99, 235, .72), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn--primary:hover { filter: brightness(1.06); transform: translateY(-1px); color: #FFF; }
.btn--ghost { background: var(--surface); color: var(--text-2); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--brand); color: var(--brand-ink); }
.btn--soft { background: var(--tint-blue); color: var(--brand-ink); border-color: #CFE0FF; }
.btn--soft:hover { background: #DCE9FF; }
.btn--danger { background: var(--tint-red); color: var(--err); border-color: #F6C9C9; }
.btn--danger:hover { background: #FBDCDC; }
.btn--on-dark { background: #FFF; color: var(--brand-deep); border-color: #FFF; }
.btn--on-dark:hover { background: var(--tint-blue); }
.btn--sm { min-height: 36px; padding: 0 13px; font-size: var(--fs-sm); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; filter: none; }

/* ---------- 5. 徽章 / 标签 / Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border: 1px solid #CFE0FA; background: var(--tint-blue); color: var(--brand-ink);
  border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 600;
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(16,185,129,.16); }
.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
  border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 700; line-height: 1.5;
  border: 1px solid transparent; vertical-align: middle; white-space: nowrap;
}
.tag--home  { background: var(--tint-green); color: var(--green-ink); border-color: #BDEBD6; }
.tag--biz   { background: var(--tint-blue);  color: var(--brand-ink); border-color: #C9DBFF; }
.tag--soon  { background: var(--tint-amber); color: var(--amber);      border-color: #F6DFB8; }
.tag--doc   { background: var(--surface-3);  color: var(--text-2);     border-color: var(--border); }
.tag--tool  { background: var(--tint-cyan);  color: var(--cyan-ink);   border-color: #BFEAF8; }

/* ---------- 6. 区块标题 ---------- */
/* 只设上下边距：避免 shorthand 把 .container 的左右内边距覆盖成 0 */
.section { padding-top: var(--sp-16); padding-bottom: var(--sp-16); }
.section--tight { padding-top: var(--sp-12); padding-bottom: var(--sp-12); }
.section--flush-top { padding-top: var(--sp-8); }
.section-head { margin-bottom: var(--sp-8); max-width: 720px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-kicker { display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--brand-ink); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.section-title { margin: 0 0 10px; font-size: var(--fs-2xl); font-weight: 700; line-height: 1.3; }
.section-lead { margin: 0; color: var(--muted); font-size: var(--fs-md); line-height: 1.8; }

/* ---------- 7. Hero ---------- */
.hero { padding-top: 84px; padding-bottom: 56px; }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: center; }
.hero-title {
  margin: 22px 0 18px; font-size: clamp(34px, 4.2vw, var(--fs-5xl));
  line-height: 1.14; font-weight: 700; letter-spacing: -.035em;
}
.gradient-text {
  background: linear-gradient(105deg, var(--brand) 8%, var(--cyan) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { margin: 0; max-width: 560px; font-size: var(--fs-md); line-height: 1.85; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--sp-8); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: var(--sp-8) 0 0; padding: 0; list-style: none; }
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-sm); color: var(--muted); }
.hero-meta svg { width: 15px; height: 15px; stroke: var(--green-ink); fill: none; stroke-width: 2.2; flex: none; }

/* 首页首屏入口区已取消：控制台入口统一收敛至顶部文字导航 */

/* ---------- 控制台内接入流程（由首页迁入，登录后按会话渲染） ---------- */
.how-section { padding-top: 4px; padding-bottom: 8px; margin-bottom: 26px; }
.how-section .section-head { margin-bottom: 18px; }
.how-section .section-title { font-size: var(--fs-xl); }
.how-section .steps { gap: 14px; }

/* 控制台登录后总览：链路示意 + 服务要点 + 容量数据（由首页迁入） */
.overview { margin-bottom: 26px; padding: 24px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-xl); }
.overview__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.overview__head h2 { margin: 0 0 6px; font-size: var(--fs-lg); font-weight: 700; }
.overview__head p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.overview__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.overview__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 22px; }
.overview__grid .link-card { max-width: none; }
.overview__side { display: flex; flex-direction: column; gap: 16px; }
.overview__side .hero-meta { flex: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; margin: 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.overview .stat-strip { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
.overview .stat { padding: 14px 16px; }
.overview .stat__v { margin-top: 4px; font-size: var(--fs-lg); }
.overview .flow-node { padding: 10px 12px; }

/* 链路可视化卡片（纯 CSS / SVG，无外部图片依赖） */
.link-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: 0 24px 56px -26px rgba(28, 74, 168, .42); padding: 22px; position: relative; overflow: hidden;
}
.link-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--brand), var(--cyan), var(--green)); }
.link-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.link-card__title { font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); }
.online-pill { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; color: var(--green-ink); background: var(--tint-green); border: 1px solid #BDEBD6; padding: 4px 10px; border-radius: var(--r-pill); }
.online-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.flow { display: grid; gap: 0; }
.flow-node { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); }
.flow-node__icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--tint-blue); border: 1px solid #CFE0FA; }
.flow-node__icon svg { width: 17px; height: 17px; stroke: var(--brand); fill: none; stroke-width: 1.8; }
.flow-node__label { display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--text); line-height: 1.35; }
.flow-node__sub { display: block; font-size: var(--fs-xs); color: var(--muted); font-family: var(--font-mono); margin-top: 2px; word-break: break-all; }
.flow-node__port { font-size: var(--fs-xs); font-family: var(--font-mono); color: var(--brand-ink); background: var(--tint-blue); border-radius: 6px; padding: 4px 8px; white-space: nowrap; }
.flow-node--edge { background: linear-gradient(100deg, #F1F6FF, #EAF8FD); border-color: var(--border-strong); }
.flow-arrow { height: 22px; margin-left: 28px; border-left: 2px dashed #C6D8F2; position: relative; }
.flow-arrow::after { content: ""; position: absolute; left: -5px; bottom: -1px; border: 4px solid transparent; border-top-color: #9DBAEA; }
.link-card__foot { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: var(--fs-xs); color: var(--muted); }
.link-card__foot .mono { color: var(--text-2); }

/* ---------- 8. 数据条 ---------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.stat { background: var(--surface); padding: 20px 22px; }
.stat__k { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.stat__v { margin-top: 8px; font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat__v .unit { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); margin-left: 4px; }
.stat__note { margin-top: 4px; font-size: var(--fs-xs); color: var(--muted); }

/* ---------- 9. 卡片 / 能力网格 ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: border-color var(--t-normal), transform var(--t-normal), box-shadow var(--t-normal);
}
.card--hover:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__accent { position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--brand), var(--cyan) 60%, transparent 100%); }
.icon-box { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--tint-blue); border: 1px solid #CFE0FA; margin-bottom: 18px; }
.icon-box svg { width: 21px; height: 21px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-box--cyan { background: var(--tint-cyan); border-color: #BFEAF8; } .icon-box--cyan svg { stroke: var(--cyan-ink); }
.icon-box--green { background: var(--tint-green); border-color: #BDEBD6; } .icon-box--green svg { stroke: var(--green-ink); }
.icon-box--violet { background: #F0ECFF; border-color: #DCD1FF; } .icon-box--violet svg { stroke: #6D42D6; }
.card__title { margin: 0 0 10px; font-size: var(--fs-lg); font-weight: 700; line-height: 1.35; }
.card__title .tag { margin-left: 8px; }
.card__text { margin: 0; font-size: var(--fs-base); line-height: 1.8; color: var(--muted); }
.card__list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.card__list li { position: relative; padding-left: 18px; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.6; }
.card__list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.card__list .mono { color: var(--brand-ink); }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: var(--fs-sm); font-weight: 700; color: var(--brand-ink); }
.card__link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform var(--t-fast); }
.card__link:hover svg { transform: translateX(3px); }
.card__link:hover { text-decoration: underline; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }

/* 接入步骤 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; padding: 20px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); }
.step__num { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--tint-blue); color: var(--brand-ink); font-size: var(--fs-sm); font-weight: 700; margin-bottom: 14px; }
.step__title { margin: 0 0 6px; font-size: var(--fs-base); font-weight: 700; }
.step__text { margin: 0; font-size: var(--fs-sm); line-height: 1.7; color: var(--muted); }

/* ---------- 10. 下载中心 ---------- */
.dl-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.dl-group + .dl-group { border-top: 1px solid var(--border); }
.dl-group__head { display: flex; align-items: center; gap: 10px; padding: 14px 22px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); }
.dl-group__head .count { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.dl-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--border); transition: background var(--t-fast); }
.dl-row:last-child { border-bottom: none; }
.dl-row:hover { background: var(--surface-2); }
.dl-ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--tint-blue); border: 1px solid #CFE0FA; }
.dl-ico svg { width: 20px; height: 20px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dl-meta { min-width: 0; }
.dl-name { font-size: var(--fs-base); font-weight: 700; line-height: 1.4; }
.dl-desc { font-size: var(--fs-sm); color: var(--muted); margin-top: 3px; line-height: 1.55; }
.note { margin: 16px 2px 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.8; }

/* ---------- 11. CTA 深色横带（局部深色，强化层级） ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 40px 44px;
  background: linear-gradient(125deg, #0E1B30 0%, #142B4A 58%, #123F58 100%);
  color: #FFF; box-shadow: 0 24px 52px -26px rgba(14, 27, 48, .8);
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000);
}
.cta-band__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 8px; font-size: var(--fs-2xl); font-weight: 700; }
.cta-band p { margin: 0; color: #C4D3E8; font-size: var(--fs-base); line-height: 1.7; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 12. 页脚 ---------- */
.site-footer { border-top: 1px solid var(--border); background: rgba(255, 255, 255, .72); margin-top: var(--sp-16); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; padding: 48px 0 36px; }
.footer-brand p { margin: 14px 0 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.8; max-width: 280px; }
.footer-col h4 { margin: 0 0 14px; font-size: var(--fs-sm); font-weight: 700; color: var(--text); }
.footer-links { display: grid; gap: 9px; }
.footer-links a, .footer-links span { font-size: var(--fs-sm); color: var(--muted); }
.footer-links a:hover { color: var(--brand-ink); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--border); padding: 18px 0 24px; font-size: var(--fs-xs); color: var(--muted); }

/* ---------- 13. 内页通用（页头 / 内容卡 / 信息行） ---------- */
.page-hero { padding-top: 64px; padding-bottom: 12px; }
.page-title { margin: 18px 0 12px; font-size: var(--fs-4xl); font-weight: 700; line-height: 1.2; }
.page-lead { margin: 0; max-width: 680px; font-size: var(--fs-md); line-height: 1.85; color: var(--muted); }
.panel { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); overflow: hidden; }
.panel__accent { position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--brand), var(--cyan) 60%, transparent 100%); }
.panel__title { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: var(--fs-lg); font-weight: 700; }
.panel__title .bar { width: 4px; height: 17px; border-radius: 3px; background: linear-gradient(180deg, var(--brand), var(--cyan)); }
.info-row { display: flex; gap: 16px; padding: 15px 0; border-bottom: 1px dashed var(--border); align-items: flex-start; }
.info-row:last-child { border-bottom: none; }
.info-row__icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--tint-blue); border: 1px solid #CFE0FA; }
.info-row__icon svg { width: 17px; height: 17px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.info-row__k { width: 92px; flex: none; font-size: var(--fs-sm); color: var(--muted); padding-top: 7px; }
.info-row__v { flex: 1; min-width: 0; font-size: var(--fs-md); font-weight: 600; line-height: 1.6; }
.info-row__v small { display: block; margin-top: 3px; font-size: var(--fs-sm); font-weight: 500; color: var(--muted); word-break: break-all; }
.info-row__act { flex: none; align-self: center; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid #CFE0FA; background: var(--tint-blue); border-radius: var(--r-md); font-size: var(--fs-sm); line-height: 1.75; color: var(--text-2); }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; stroke: var(--brand-ink); fill: none; stroke-width: 1.9; }

/* ---------- 14. 控制台专用组件 ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: var(--sp-6); }
.page-head h1 { margin: 0 0 6px; font-size: 26px; font-weight: 700; }
.page-head .sub { margin: 0; color: var(--muted); font-size: var(--fs-base); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-box { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm); }
.stat-box__icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--tint-blue); }
.stat-box__icon svg { width: 19px; height: 19px; stroke: var(--brand); fill: none; stroke-width: 1.8; }
.stat-box__k { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.stat-box__v { font-size: var(--fs-2xl); font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-box__v small { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); margin-left: 3px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.search { position: relative; flex: 1; max-width: 340px; min-width: 220px; }
.search input { padding-left: 38px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); pointer-events: none; }

.section-block { margin-bottom: 30px; }
.section-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
.section-line h2 { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-size: var(--fs-md); font-weight: 700; }
.section-line .bar { width: 4px; height: 16px; border-radius: 3px; background: linear-gradient(180deg, var(--brand), var(--cyan)); }
.section-line .cnt { font-size: var(--fs-xs); font-weight: 700; color: var(--brand-ink); background: var(--tint-blue); border: 1px solid #C9DBFF; border-radius: var(--r-pill); padding: 2px 9px; }
.section-line .hint { font-size: var(--fs-sm); color: var(--muted); }

/* 表单 */
label.field-label { display: block; font-size: var(--fs-sm); color: var(--muted); margin: 14px 0 6px; font-weight: 600; }
label.field-label:first-child { margin-top: 0; }
input, select {
  width: 100%; min-height: 42px; padding: 10px 13px; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text); border-radius: var(--r-md);
  font-size: var(--fs-base); outline: none; transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
input::placeholder { color: var(--faint); }
input:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); background: var(--surface); }
input[aria-invalid="true"] { border-color: var(--err); }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row > div { flex: 1; min-width: 180px; }
.msg { font-size: var(--fs-sm); margin-top: 12px; line-height: 1.6; }
.msg.err { color: var(--err); } .msg.ok { color: var(--green-ink); font-weight: 600; }

/* 表格 */
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow-x: auto; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 720px; }
th, td { text-align: left; padding: 13px 15px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--muted); font-weight: 700; font-size: var(--fs-xs); background: var(--surface-2); white-space: nowrap; letter-spacing: .02em; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }
td a { color: var(--brand-ink); font-weight: 700; word-break: break-all; }
td a:hover { text-decoration: underline; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); padding: 3px 10px; border-radius: var(--r-pill); font-weight: 700; border: 1px solid transparent; white-space: nowrap; }
.pill.active { background: var(--tint-green); color: var(--green-ink); border-color: #BDEBD6; }
.pill.deleted { background: var(--tint-red); color: var(--err); border-color: #F6C9C9; }
.pill.free { background: var(--tint-blue); color: var(--brand-ink); border-color: #C9DBFF; }
.pill.rec { background: var(--surface-3); color: var(--text-2); border-color: var(--border); }
.op { display: flex; gap: 10px; flex-wrap: wrap; }
.link-btn { background: none; border: none; color: var(--brand-ink); font-weight: 700; font-size: var(--fs-sm); cursor: pointer; padding: 4px 2px; margin: 0; box-shadow: none; min-height: 0; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--err); }
.empty-state { display: grid; justify-items: center; gap: 8px; padding: 34px 16px; color: var(--muted); text-align: center; }
.empty-state svg { width: 38px; height: 38px; stroke: #B7C9E4; fill: none; stroke-width: 1.5; margin-bottom: 4px; }
.empty-state b { color: var(--text-2); font-size: var(--fs-base); }
.empty-state span { font-size: var(--fs-sm); line-height: 1.7; }

/* 弹窗 */
.overlay { position: fixed; inset: 0; background: rgba(15, 27, 45, .48); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 20px; }
.modal { background: var(--surface); width: 100%; max-width: 540px; max-height: calc(100vh - 40px); overflow-y: auto; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); border: 1px solid var(--border); animation: pop .18s ease; }
@keyframes pop { from { transform: translateY(8px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
.m-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.m-head h3 { margin: 0; font-size: var(--fs-md); font-weight: 700; }
.m-head .x { background: none; border: none; font-size: 22px; color: var(--muted); cursor: pointer; line-height: 1; padding: 2px 8px; border-radius: var(--r-sm); margin: 0; box-shadow: none; min-height: 0; }
.m-head .x:hover { background: var(--surface-2); color: var(--text); }
.m-body { padding: 20px 22px; }
.m-foot { padding: 0 22px 20px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.m-foot .btn { margin: 0; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tab { min-height: 36px; padding: 0 16px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font-size: var(--fs-sm); font-weight: 700; border-radius: var(--r-sm); cursor: pointer; margin: 0; box-shadow: none; transition: all var(--t-fast); }
.tab:hover { color: var(--text); border-color: var(--border-strong); }
.tab.active { background: linear-gradient(135deg, var(--brand), var(--cyan)); color: #FFF; border-color: transparent; }
pre.code { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px; font-size: var(--fs-xs); line-height: 1.7; white-space: pre-wrap; word-break: break-all; margin: 0; font-family: var(--font-mono); color: var(--text-2); }
code { font-family: var(--font-mono); }

/* 用户菜单 */
.user-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 5px 12px 5px 6px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); font-size: var(--fs-base); font-weight: 600; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.user-chip:hover { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.user-chip .avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--cyan)); color: #FFF; display: grid; place-items: center; font-size: var(--fs-sm); font-weight: 700; }
.user-chip .caret { font-size: 10px; color: var(--muted); }
.user-chip .sess-info { font-size: 11px; color: var(--muted); font-weight: 500; }
.user-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 190px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 40; }
.user-menu .um-title { font-size: var(--fs-xs); color: var(--muted); padding: 8px 10px 6px; }
.um-item { display: block; width: 100%; text-align: left; background: none; border: none; cursor: pointer; font-size: var(--fs-base); color: var(--text); padding: 10px; border-radius: var(--r-sm); font-weight: 500; margin: 0; box-shadow: none; min-height: 40px; }
.um-item:hover { background: var(--surface-2); }
.um-item.danger { color: var(--err); }
.um-item.danger:hover { background: var(--tint-red); }

/* Toast */
.toast { position: fixed; top: 18px; right: 18px; z-index: 80; display: flex; align-items: center; gap: 10px; max-width: min(360px, calc(100vw - 36px)); background: var(--surface); border: 1px solid #BDEBD6; border-left: 4px solid var(--green); color: var(--text); padding: 12px 16px; border-radius: var(--r-md); box-shadow: var(--shadow-lg); font-size: var(--fs-base); font-weight: 600; opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity var(--t-normal), transform var(--t-normal); }
.toast.show { opacity: 1; transform: none; }
.toast.is-error { border-color: #F6C9C9; border-left-color: var(--err); }
.toast svg { width: 18px; height: 18px; flex: none; stroke: var(--green-ink); fill: none; stroke-width: 2.2; }
.toast.is-error svg { stroke: var(--err); }

/* 确认弹窗内容 */
.confirm-body { display: flex; gap: 14px; align-items: flex-start; }
.confirm-body__icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--tint-red); }
.confirm-body__icon svg { width: 21px; height: 21px; stroke: var(--err); fill: none; stroke-width: 2; }
.confirm-body h4 { margin: 0 0 6px; font-size: var(--fs-md); font-weight: 700; }
.confirm-body p { margin: 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.75; }
.confirm-body code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; color: var(--err); }

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .mobile-nav { display: block; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .page-title { font-size: var(--fs-3xl); }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .section { padding-top: var(--sp-12); padding-bottom: var(--sp-12); }
  .hero { padding-top: 52px; padding-bottom: 36px; }
  .hero-title { font-size: 32px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .grid-2, .grid-3, .steps, .stat-strip, .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; padding: 14px 16px; }
  .dl-row > .tag { display: none; }
  .dl-group__head { padding: 12px 16px; }
  .cta-band { padding: 28px 22px; }
  .cta-band h2 { font-size: var(--fs-xl); }
  .cta-band__actions .btn { flex: 1 1 100%; }
  .panel { padding: 20px; }
  .info-row__k { width: 74px; }
  .form-row { flex-direction: column; gap: 0; }
  .search { max-width: none; min-width: 0; flex-basis: 100%; }
  .page-head h1 { font-size: 22px; }
  .m-body, .m-head, .m-foot { padding-left: 16px; padding-right: 16px; }
  /* 窄屏顶栏只保留汉堡，CTA 统一收进折叠菜单，避免挤压 Logo */
  .nav-actions > .btn { display: none; }
}
@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
  .brand__sub { display: none; }
}

/* ---------- 16. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .card--hover:hover, .btn--primary:hover, .btn:hover { transform: none; }
}

/* 控制台总览 / 首页入口 响应式（置于末尾，特异性覆盖通用断点） */
@media (max-width: 1024px) {
  .overview__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .overview { padding: 18px; }
  .overview__head { flex-direction: column; }
  .overview .stat-strip { grid-template-columns: 1fr; }
}
