/* ============================================================================
 * 腾龙 GEO SaaS — 玻璃拟态 2.0 组件库（唯一玻璃层，取代 premium.css）
 * 纯加法 / 只消费 design-system.css 的令牌（含 §19 精炼补充）。
 * 统一收口：landing / admin / portal 三端共用同一套玻璃观感与组件。
 * 升级点：四档抬升 e1–e4、顶边高光 + 内描边、极光背景 + 微噪点、光标辉光（premium.js 驱动）、
 *         磁吸、滚动渐显、弹簧缓动、主按钮流光、主题平滑过渡、焦点可达性、减少动态。
 * 禁止：本文件不得出现除令牌外的颜色字面量。
 * 历史：由 prototypes/glass.css 晋升为生产唯一玻璃层；premium.css 已退化为 @import 本文件。
 * ==========================================================================*/

/* ---------- 1. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
/* 极光：固定在内容之下，缓慢呼吸 */
body::before {
  content: ""; position: fixed; inset: -30%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40% 38% at 18% 18%, var(--aurora-1), transparent 60%),
    radial-gradient(36% 34% at 84% 14%, var(--aurora-2), transparent 60%),
    radial-gradient(44% 42% at 74% 86%, var(--aurora-3), transparent 62%),
    radial-gradient(34% 32% at 28% 90%, var(--aurora-2), transparent 58%);
  filter: blur(50px) saturate(150%);
  opacity: 0.9;
  animation: aurora 26s var(--ease) infinite alternate;
  will-change: transform;
}
/* 微噪点：极淡，增加玻璃质感层次 */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes aurora {
  0%   { transform: translate3d(-2%, -1.5%, 0) scale(1.04); }
  50%  { transform: translate3d(2%, 1.8%, 0) scale(1.09); }
  100% { transform: translate3d(-1.5%, 2.2%, 0) scale(1.05); }
}

a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: var(--w-bold); line-height: var(--lh-tight); letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); } h2 { font-size: var(--fs-h2); } h3 { font-size: var(--fs-h3); }
p { margin: 0; }
.muted { color: var(--text-2); }
.tiny { font-size: var(--fs-xs); color: var(--text-3); }
.hidden { display: none !important; }
.text-gradient {
  background: linear-gradient(120deg, var(--text), var(--primary));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--r-pill); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 2. 玻璃表面（核心） ---------- */
.glass {
  position: relative; isolation: isolate;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--e2), inset 0 1px 0 var(--glass-highlight);
}
.glass::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--glass-highlight), transparent);
  opacity: 0.7;
}
.glass--flat { box-shadow: var(--e1), inset 0 1px 0 var(--glass-highlight); }
.glass--float { box-shadow: var(--e3), inset 0 1px 0 var(--glass-highlight); }
.glass--lg { border-radius: var(--r-xl); }

/* ---------- 3. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 10px 18px; border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); cursor: pointer;
  font: inherit; font-size: var(--fs-body); font-weight: var(--w-medium);
  transition: transform var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease),
              background var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
  white-space: nowrap; max-width: 100%;
}
.btn:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn--primary {
  background: var(--btn-primary); border-color: transparent; color: var(--text-on-primary);
  box-shadow: 0 8px 22px var(--primary-soft); position: relative; overflow: hidden;
}
.btn--primary:hover { background: var(--btn-primary-hover); box-shadow: 0 12px 30px var(--primary-soft); }
.btn--primary::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg); transition: left 0.6s var(--ease); pointer-events: none;
}
.btn--primary:hover::after { left: 130%; }
.btn--ghost { background: transparent; }
.btn--danger { color: var(--fail); border-color: var(--fail-soft); background: var(--fail-soft); }
.btn--danger:hover { background: var(--fail); color: #fff; border-color: transparent; }
.btn--sm { padding: 7px 12px; font-size: var(--fs-sm); }
.btn--lg { padding: 13px 24px; font-size: var(--fs-h3); }
.btn--block { width: 100%; }

/* ---------- 4. 徽章 / 芯片 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px;
  border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: var(--w-semibold);
  border: 1px solid transparent;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok); background: var(--ok-soft); }
.badge.warn { color: var(--warn); background: var(--warn-soft); }
.badge.fail { color: var(--fail); background: var(--fail-soft); }
.badge.info { color: var(--info); background: var(--info-soft); }
.badge.neutral { color: var(--text-2); background: var(--surface-2); }
.badge.neutral::before { display: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  border-radius: var(--r-pill); font-size: var(--fs-sm); cursor: pointer;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2);
  transition: all var(--dur-base) var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active { color: var(--text); background: var(--primary-soft); border-color: transparent; }

/* ---------- 5. 表单原语（防外溢核心） ---------- */
.field { display: flex; flex-direction: column; gap: 6px; max-width: var(--field-max); width: 100%; }
.field--full { max-width: 100%; }
.field > label { font-size: var(--fs-sm); color: var(--text-2); font-weight: var(--w-medium); }
.field input, .field select, .field textarea {
  width: 100%; max-width: 100%; padding: 11px 13px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface-solid); color: var(--text);
  font: inherit; font-size: var(--fs-body); transition: all var(--dur-base) var(--ease); outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary); box-shadow: var(--focus-ring);
}
.field textarea { min-height: 96px; resize: vertical; }
.field .hint { font-size: var(--fs-xs); color: var(--text-3); }
.field .err { font-size: var(--fs-xs); color: var(--fail); }

.search {
  width: 260px; max-width: 100%; padding: 9px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface-solid); color: var(--text);
  font: inherit; outline: none; transition: all var(--dur-base) var(--ease);
}
.search:focus { border-color: var(--primary); box-shadow: var(--focus-ring); }

.switch { display: inline-flex; align-items: center; gap: var(--sp-2); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track {
  width: 42px; height: 24px; border-radius: var(--r-pill); background: var(--surface-2);
  border: 1px solid var(--border); position: relative; transition: all var(--dur-base) var(--ease); flex: none;
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--text-3); transition: all var(--dur-base) var(--ease);
}
.switch input:checked + .track { background: var(--primary); border-color: transparent; }
.switch input:checked + .track::after { left: 22px; background: #fff; }

/* ---------- 6. 布局壳（admin / portal 共用） ---------- */
.app-shell { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }
.app-shell.collapsed { grid-template-columns: 78px 1fr; }
.main { min-width: 0; padding: var(--sp-5) var(--sp-6) var(--sp-8); }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  margin-bottom: var(--sp-5); flex-wrap: wrap;
}
.topbar .sub { color: var(--text-2); font-size: var(--fs-sm); margin-top: 2px; }
.content { max-width: var(--content-max); margin: 0 auto; }
.section-title {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  margin: var(--sp-6) 0 var(--sp-4);
}

.sidebar {
  background: var(--surface); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border-right: 1px solid var(--border); padding: var(--sp-4) var(--sp-3);
  display: flex; flex-direction: column; gap: var(--sp-3); position: sticky; top: 0; height: 100vh;
}
.side-brand { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  font-weight: var(--w-black); color: #fff; background: var(--brand-grad);
  box-shadow: 0 6px 18px var(--primary-soft); flex: none; letter-spacing: -0.02em;
}
.brand-mark.small { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
.side-brand strong { display: block; font-size: var(--fs-body); }
.side-brand span { font-size: var(--fs-2xs); color: var(--text-3); }
.nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; flex: 1; }
.nav__group {
  font-size: var(--fs-2xs); color: var(--text-3); padding: var(--sp-4) var(--sp-3) var(--sp-2);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: var(--w-semibold);
}
.nav__item {
  display: flex; align-items: center; gap: var(--sp-3); padding: 10px var(--sp-3);
  border: none; background: transparent; color: var(--text-2); border-radius: var(--r-sm);
  cursor: pointer; font-size: var(--fs-body); text-align: left; width: 100%;
  transition: all var(--dur-base) var(--ease); font-family: inherit;
}
.nav__item svg { width: 19px; height: 19px; flex: none; }
.nav__item:hover { background: var(--surface-2); color: var(--text); }
.nav__item.active { background: var(--primary-soft); color: var(--text); box-shadow: inset 2px 0 0 var(--primary); }
.app-shell.collapsed .nav__item span, .app-shell.collapsed .nav__group,
.app-shell.collapsed .side-brand div:last-child, .app-shell.collapsed .side-user-meta { display: none; }
.side-user { border-top: 1px solid var(--border); padding-top: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2); }
.side-user-info { display: flex; align-items: center; gap: var(--sp-3); }
.side-user-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2);
  display: grid; place-items: center; font-weight: var(--w-bold); flex: none;
}
.side-logout {
  background: transparent; border: 1px solid var(--border); color: var(--text-2);
  border-radius: var(--r-sm); padding: 8px; cursor: pointer; font-family: inherit;
  transition: all var(--dur-base) var(--ease);
}
.side-logout:hover { color: var(--fail); border-color: var(--fail); }

/* ---------- 7. 网格 / 卡片 ---------- */
.grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid.kpi { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { padding: var(--sp-5); }
.card h3 { margin-bottom: var(--sp-3); }

/* ---------- 8. KPI / 统计 ---------- */
.kpi { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); }
.kpi__label { color: var(--text-3); font-size: var(--fs-xs); font-weight: var(--w-semibold); text-transform: uppercase; letter-spacing: 0.04em; }
.kpi__value {
  font-size: var(--fs-display); font-weight: var(--w-black); line-height: 1;
  background: linear-gradient(120deg, var(--text), var(--primary));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.kpi__delta { font-size: var(--fs-sm); font-weight: var(--w-semibold); display: inline-flex; align-items: center; gap: 4px; }
.kpi__delta.up { color: var(--ok); }
.kpi__delta.down { color: var(--fail); }

/* ---------- 9. 表格 ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-base); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 640px; }
thead th {
  text-align: left; padding: 12px 14px; color: var(--text-3); font-weight: var(--w-semibold);
  font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0;
}
tbody td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface); }
.row-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

/* ---------- 10. 进度 / 条 ---------- */
.progress { height: 8px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--brand-grad); border-radius: var(--r-pill); transition: width 0.4s var(--ease); }
.bar { height: 8px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: var(--r-pill); }

/* ---------- 11. 分段控件 / 主题切换 ---------- */
.segmented { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.segmented button {
  border: none; background: transparent; color: var(--text-2); padding: 6px 12px;
  border-radius: var(--r-pill); cursor: pointer; font-size: var(--fs-sm); font-family: inherit;
  transition: all var(--dur-base) var(--ease);
}
.segmented button.active { background: var(--btn-primary); color: var(--text-on-primary); }

/* ---------- 12. 空态 / 提示 ---------- */
.empty { padding: var(--sp-7); text-align: center; color: var(--text-3); }
.alert { padding: 12px 16px; border-radius: var(--r-sm); font-size: var(--fs-sm); margin-bottom: var(--sp-4); border: 1px solid transparent; }
.alert.error { background: var(--fail-soft); color: var(--fail); }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.alert.info { background: var(--info-soft); color: var(--info); }
.alert.warn { background: var(--warn-soft); color: var(--warn); }

/* ---------- 13. 模态 ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(5, 8, 14, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: grid; place-items: center; padding: var(--sp-4); z-index: var(--z-modal); animation: fade var(--dur-base) var(--ease); }
.modal { background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--e4); width: min(560px, 100%); max-height: 90vh; overflow: auto; animation: pop var(--dur-base) var(--ease); }
.modal.wide { width: min(960px, 100%); }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-5) var(--sp-5) 0; }
.modal__head p { color: var(--text-2); font-size: var(--fs-sm); margin-top: 4px; }
.modal__body { padding: var(--sp-5); }
.modal__foot { display: flex; justify-content: flex-end; gap: var(--sp-2); padding: 0 var(--sp-5) var(--sp-5); }

/* ---------- 14. 登录壳 ---------- */
.login-view { min-height: 100vh; display: grid; place-items: center; padding: var(--sp-5); }
.login-card {
  width: min(400px, 100%); padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-4);
  animation: pop 0.3s var(--ease);
}
.login-card .brand { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.login-card h1 { font-size: var(--fs-h2); }
.login-card .field { max-width: 100%; }

/* ---------- 15. 滚动渐显 + 入场错落 ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease-spring), transform 0.6s var(--ease-spring); }
.reveal.is-in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }
.grid > * { animation: rise 0.5s var(--ease-spring) both; }
.grid > *:nth-child(2) { animation-delay: 0.04s; }
.grid > *:nth-child(3) { animation-delay: 0.08s; }
.grid > *:nth-child(4) { animation-delay: 0.12s; }
.grid > *:nth-child(5) { animation-delay: 0.16s; }
.grid > *:nth-child(6) { animation-delay: 0.20s; }

/* ---------- 16. 主题平滑过渡钩子 ---------- */
html.theme-transition, html.theme-transition body,
html.theme-transition .glass, html.theme-transition .sidebar,
html.theme-transition .btn, html.theme-transition .topbar, html.theme-transition .kpi {
  transition: background-color var(--dur-slow) var(--ease), color var(--dur-slow) var(--ease),
              border-color var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease) !important;
}

/* ---------- 17. 焦点可达性（WCAG 2.1 AA） ---------- */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn:focus-visible, .nav__item:focus-visible, .field__input:focus-visible,
.field select:focus-visible, .field textarea:focus-visible, .chip:focus-visible,
.icon-btn:focus-visible, .side-logout:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- 18. 动画 ---------- */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- 19. 响应式 ---------- */
@media (max-width: 860px) {
  .app-shell, .app-shell.collapsed { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: var(--z-sidebar); transform: translateX(-100%); transition: transform var(--dur-base) var(--ease); width: 268px; }
  .app-shell.nav-open .sidebar { transform: none; }
  .main { padding: var(--sp-4); }
  .nav-toggle { display: inline-grid !important; }
  .kpi__value { font-size: 34px; }
}
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; place-items: center; }

/* ---------- 20. 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .grid > * { animation: none !important; }
  .btn--primary::after { display: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- 21. 光标辉光（premium.js 注入 --mx/--my；取代原 premium.css 的玻璃辉光） ---------- */
.glass, .card, .panel {
  background-image:
    radial-gradient(240px 240px at var(--mx, 50%) var(--my, 0%),
      color-mix(in srgb, var(--primary) 12%, transparent), transparent 70%),
    var(--glass-bg);
  background-blend-mode: screen, normal;
}
html.js-magnetic .btn--primary,
html.js-magnetic .glass,
html.js-magnetic .card,
html.js-magnetic .tile,
html.js-magnetic .plan-card {
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
html.js-magnetic .btn--primary:hover,
html.js-magnetic .glass:hover,
html.js-magnetic .card:hover,
html.js-magnetic .tile:hover,
html.js-magnetic .plan-card:hover { transform: none; }
.tile { transition: transform var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease); }
.tile:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.plan-card { transition: transform var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease); }
.plan-card:hover { transform: translateY(-3px); border-color: var(--primary); }

/* ---------- 22. 通用展示组件（landing / admin / portal 共用，纯消费令牌） ---------- */
/* 浅色实心按钮：用于暗色 hero / 暗带，白底深字，高对比 */
.btn--light {
  background: var(--text-on-primary); color: var(--invert-ink); border-color: transparent;
  box-shadow: var(--e2); position: relative; overflow: hidden;
}
.btn--light:hover { box-shadow: var(--e3); transform: translateY(-1px); }
.btn--light:active { transform: translateY(0); }

/* 主色芯片：静态高亮标签 */
.chip--primary {
  background: var(--primary-soft); color: var(--text);
  border-color: color-mix(in srgb, var(--primary) 32%, transparent);
}
.chip--info { background: var(--info-soft); border-color: transparent; color: var(--info); }

/* 眉标（mono kicker）：editorial 风格的小号等宽大写标签，暖色点题 */
.eyebrow {
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: var(--w-semibold);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: var(--sp-2);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); opacity: 0.55; }
.eyebrow--light { color: var(--accent); }

/* 强调词：标题中点亮的单一强调字（60-30-10 中的暖色 10%） */
.kicker { color: var(--accent); font-weight: var(--w-bold); }
.kicker--primary { color: var(--primary); }

/* 区块标题组：眉标 + 标题 + 摘要 */
.section-head { display: flex; flex-direction: column; gap: var(--sp-3); max-width: 720px; }
.section-head--center { align-items: center; text-align: center; margin-inline: auto; }
.section-head h2 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
.section-head p { color: var(--text-2); font-size: var(--fs-body); line-height: var(--lh-base); max-width: 60ch; }
.section-head--center p { margin-inline: auto; }

/* 固定暗色带：局部深底，不随页面主题切换，用于 landing 的对比分段 */
.section--invert {
  background: var(--invert-bg); color: var(--text);
  --surface: var(--invert-surface); --border: var(--invert-border);
  --surface-2: var(--invert-surface); --text-2: var(--invert-text-2); --text-3: var(--invert-text-3);
}
