/**
 * theme-style — 主题风格验收（对齐组件库家族写法；颜色走 --wa-*）
 * 页面宽度走 base/品牌 --wa-container，勿在本页覆写
 */

/* 本页接入氛围底；全站 body 仍走中性 --wa-color-bg */
body {
  background: var(--wa-gradient-page);
  background-attachment: fixed;
}

#app {
  position: relative;
  z-index: 1;
}

/* Dashed Orbit：右上角小环，色跟 --wa-* / 明暗 */
.sc-orbit-host {
  --do-orbit-fg: var(--wa-color-primary);
  position: fixed;
  top: -56px;
  right: -80px;
  width: 520px;
  height: 520px;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
.sc-orbit-host .do-root {
  width: 100%;
  height: 100%;
  min-height: 0;
  background: transparent;
  color: var(--wa-color-primary);
  overflow: visible;
}
.sc-orbit-host .do-orbits {
  inset: 0;
}
/* 环心点缀：主色锚点 + 脉冲环（无渐变光晕） */
.sc-orbit-host .do-orbits::before,
.sc-orbit-host .do-orbits::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
}
.sc-orbit-host .do-orbits::before {
  width: 10px;
  height: 10px;
  border: 1.5px solid color-mix(in srgb, var(--wa-color-primary) 55%, transparent);
  background: transparent;
  opacity: 0.7;
  animation: sc-orbit-pulse 2.4s ease-out infinite;
}
.sc-orbit-host .do-orbits::after {
  width: 10px;
  height: 10px;
  background: var(--wa-color-primary);
  opacity: 0.78;
  animation: sc-orbit-core 2.4s ease-in-out infinite;
}
@keyframes sc-orbit-pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.65;
  }
  70% {
    transform: translate(-50%, -50%) scale(3.2);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(3.2);
    opacity: 0;
  }
}
@keyframes sc-orbit-core {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.78;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.12);
    opacity: 0.95;
  }
}
html[data-theme='dark'] .sc-orbit-host .do-orbits::before {
  border-color: color-mix(in srgb, var(--wa-color-primary) 70%, transparent);
}
html[data-theme='dark'] .sc-orbit-host .do-orbits::after {
  opacity: 0.9;
}
@media (prefers-reduced-motion: reduce) {
  .sc-orbit-host .do-orbits::before,
  .sc-orbit-host .do-orbits::after {
    animation: none;
  }
  .sc-orbit-host .do-orbits::before {
    display: none;
  }
}
.sc-orbit-host .do-orbits svg.do-path circle {
  stroke: color-mix(in srgb, var(--wa-color-primary) 14%, transparent);
  stroke-width: 1;
}
.sc-orbit-host .do-glow-top,
.sc-orbit-host .do-glow-mid,
.sc-orbit-host .do-glow-core,
.sc-orbit-host .do-glow-horizon {
  display: none;
}
html[data-theme='dark'] .sc-orbit-host {
  --do-orbit-fg: color-mix(in srgb, var(--wa-color-primary) 78%, #fff);
}
html[data-theme='dark'] .sc-orbit-host .do-orbits svg.do-path circle {
  stroke: color-mix(in srgb, var(--wa-color-primary) 22%, transparent);
}

/*
 * 主按钮阴影（仅本页试装；正式推广再迁入 global.css）
 * token 已在 global：--wa-shadow-button / -hover；暗色卡反色仍用 component.css 的 --wa-shadow-lift
 */
.arco-btn-primary:not(.arco-btn-disabled):not(.wa-btn--flat) {
  box-shadow: var(--wa-shadow-button);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.18s ease;
}
.arco-btn-primary:not(.arco-btn-disabled):not(.wa-btn--flat):hover {
  box-shadow: var(--wa-shadow-button-hover);
}
.arco-btn-primary.arco-btn-disabled,
.arco-btn-primary.wa-btn--flat,
.arco-btn-primary.wa-btn--flat:hover,
.arco-btn-primary.wa-btn--flat:active {
  box-shadow: none;
}
.arco-card-actions .arco-btn-primary:not(.arco-btn-disabled),
.arco-card-actions .arco-btn-primary:not(.arco-btn-disabled):hover,
.arco-modal-footer .arco-btn-primary:not(.arco-btn-disabled),
.arco-modal-footer .arco-btn-primary:not(.arco-btn-disabled):hover,
.arco-drawer-footer .arco-btn-primary:not(.arco-btn-disabled),
.arco-drawer-footer .arco-btn-primary:not(.arco-btn-disabled):hover {
  box-shadow: none;
}

.wa-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wa-color-primary);
}

.wa-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--wa-color-text);
}

/* Hero 标题：字号/行距对齐亮色科技蓝 h1 */
.sc-hero .wa-title.wa-type-scale--display-3 {
  margin: 8px 0 22px;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wa-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--wa-color-muted);
  max-width: 46em;
}

.wa-lead code,
.sc-section-lead code {
  font-size: 0.92em;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--wa-color-primary-soft);
  color: var(--wa-color-primary);
}

.wa-lead a {
  color: var(--wa-color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sc-container {
  max-width: var(--wa-container, 1200px);
  width: calc(100% - 48px);
  margin: 0 auto;
  /* 顶距由 .sc-top-nav-shell padding-top 承担 */
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sc-card {
  /* 半透明区块 + 磨砂（略实于紫雾 0.42，可读性更好） */
  background: color-mix(in srgb, var(--wa-color-surface) 68%, transparent);
  border: var(--wa-border-section);
  border-radius: var(--wa-radius-lg, 20px);
  box-shadow: var(--wa-shadow-section);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  /* surface-fx 光晕 inherit 圆角；勿裁投影 */
  overflow: visible;
}

html[data-theme="dark"] .sc-card {
  background: color-mix(in srgb, var(--wa-color-surface) 86%, transparent);
}

/* 页内嵌套卡片面：仅阴影，无描边（与 card 组件库 token 对齐） */
.sc-token,
.sc-swatch,
.sc-progress-col,
.sc-progress-grid {
  box-shadow: var(--wa-shadow-soft);
  border: none;
}

.sc-top-nav-shell {
  --sc-nav-pad-top: 24px;
  --sc-nav-pad-top-scrolled: 12px;
  position: sticky;
  top: 0;
  z-index: 20;
  padding: var(--sc-nav-pad-top) 0 0;
  box-sizing: border-box;
  pointer-events: none;
  transition: padding-top 0.22s ease;
}

/* 滚动后收紧顶距 */
.sc-top-nav-shell.is-scrolled {
  padding-top: var(--sc-nav-pad-top-scrolled);
}

.sc-top-nav {
  --sc-nav-ctrl-h: 36px;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  /* 对齐亮色科技蓝 .top-nav：14×18 + 36px 控件 → 总高约 64px */
  padding: 14px 18px;
  min-height: calc(var(--sc-nav-ctrl-h) + 28px);
  box-sizing: border-box;
  margin: 0;
  border: none;
  /* 顶栏略实于内容区块，对齐紫雾 dock-surface ≈ 0.72 */
  background: color-mix(in srgb, var(--wa-color-surface) 72%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  /* 中性抬升阴影（覆盖 .sc-card 的 section 投影，避免蓝晕叠出一圈） */
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

/* 白场：顶栏用最弱一阶描边（区块仍走 --wa-border-section / border-2） */
html[data-brand='baichang-ningshuo'] .sc-top-nav {
  border: var(--wa-border-w) solid var(--wa-color-border-1);
}

.sc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--wa-color-text);
  white-space: nowrap;
}

.sc-brand__dot {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 8px;
  /* 两端主色渐变：勿混入 slate，否则色相偏离 --wa-color-primary */
  background: linear-gradient(
    135deg,
    var(--wa-color-primary),
    color-mix(in srgb, var(--wa-color-primary) 72%, #000)
  );
  box-shadow: var(--wa-shadow-button);
}

.sc-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
  justify-content: flex-start;
  justify-self: start;
  min-width: 0;
}

.sc-menu a {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--wa-color-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.sc-menu a:hover {
  color: var(--wa-color-primary);
}

.sc-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  justify-self: end;
}

.sc-brand-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--sc-nav-ctrl-h);
  padding: 0 4px 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--wa-color-bg) 55%, var(--wa-color-surface));
  border: none;
  box-sizing: border-box;
}

.sc-brand-switch__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--wa-color-muted);
  white-space: nowrap;
}

.sc-brand-switch__select {
  height: calc(var(--sc-nav-ctrl-h) - 8px);
  min-width: 8.5em;
  padding: 0 22px 0 6px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--wa-color-text);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

/* 顶栏操作：高度对齐亮色科技蓝 .btn-sm；文案 14px */
.sc-nav-actions .arco-btn {
  height: var(--sc-nav-ctrl-h);
  padding: 0 14px;
  font-size: 14px;
}

/* 品牌切换：高度对齐顶栏其它控件；箭头略小 */
.sc-nav-actions .sc-brand-dropdown-trigger.arco-btn {
  padding: 0 10px 0 12px;
}

.sc-brand-trigger-icon {
  color: var(--sc-brand-icon, var(--wa-color-primary));
  font-size: 13px;
  line-height: 1;
}

.sc-brand-dropdown-trigger .sc-brand-trigger-caret {
  margin-left: 6px;
  font-size: 8px;
  line-height: 1;
  color: var(--wa-color-muted, var(--color-text-3));
  flex-shrink: 0;
  transform: scale(0.85);
  transform-origin: center;
}

.sc-brand-dropdown-trigger .arco-btn-icon {
  color: var(--sc-brand-icon, var(--wa-color-primary));
}

/* 品牌下拉：各皮主色圆点（对照主题切换参考） */
.sc-brand-dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
  flex-shrink: 0;
}

html[data-theme='dark'] .sc-brand-dot {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* 顶栏「网站首页」不走 large 加粗；单独挂 strong token */
.sc-nav-actions .arco-btn-primary {
  font-weight: var(--wa-btn-fw-strong, 600);
}

/* 明暗切换：与品牌下拉同用 secondary，仅图标方钮 */
.sc-nav-actions .sc-theme-toggle.arco-btn {
  width: var(--sc-nav-ctrl-h);
  height: var(--sc-nav-ctrl-h);
  padding: 0;
}

.sc-hero,
.sc-section {
  padding: 28px 28px 32px;
  /* sticky 顶距 24 + 导航约 64 + 间隙 24 */
  scroll-margin-top: 96px;
}

/* Hero 内间距对齐亮色科技蓝 .hero */
.sc-hero {
  padding: 46px;
}

.sc-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  gap: 28px 36px;
  align-items: start;
}

.sc-hero__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sc-hero__copy .wa-kicker {
  margin: 0 0 10px;
  line-height: 1.2;
}

.sc-hero__copy .sc-actions {
  margin-top: 28px;
}

.sc-hero__copy .wa-lead {
  max-width: 38em;
}

.sc-hero__aside {
  /* 跳过左侧 kicker，与标题顶对齐（12×1.2 + kicker 底距 + 标题顶距） */
  margin-top: calc(12px * 1.2 + 10px + 8px);
  /* 只改 fill 变量；background 由 .wa-border-flow 负责，避免盖掉悬停流光 */
  --wa-border-flow-fill: color-mix(in srgb, var(--wa-color-primary) 6%, var(--wa-color-surface));
  border-radius: var(--wa-radius, 12px);
  padding: 16px;
  box-shadow: none;
}

/* 亮色科技蓝 · 暗色：Tokens 卡中性抬升面（只改 fill 变量，勿写死 background，以免盖掉 border-flow 悬停流光） */
html[data-brand='liangse-keji-lan'][data-theme='dark'] .sc-hero__aside {
  --wa-border-flow-fill: #222326;
}

.sc-kpi {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.sc-kpi-item {
  border-radius: var(--wa-radius, 12px);
  background: var(--wa-color-surface);
  border: var(--wa-border-w) solid var(--wa-color-border-1);
  box-shadow: none;
  padding: 14px 16px;
}

.sc-kpi-value {
  font-family: var(--wa-font-serif, var(--wa-font-display));
  font-size: 24px;
  font-weight: 700;
  color: var(--wa-color-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.sc-kpi-label {
  margin-top: 4px;
  font-size: 12px;
  color: var(--wa-color-muted);
}

.sc-h2 {
  margin: 0 0 20px;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--wa-color-text);
}

.sc-section-lead {
  margin-bottom: 18px;
}

.sc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}

.sc-actions--tight {
  margin-top: 0;
}

.sc-actions--baseline {
  align-items: flex-end;
}

.sc-hero__aside-head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wa-color-muted);
  margin-bottom: 12px;
}

.sc-token-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sc-token {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--wa-color-surface);
}

.sc-token__swatch {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
}

.sc-token__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--wa-color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sc-token__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--wa-color-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.sc-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  /* 末行卡片底部投影留空，避免被下一区块顶住 */
  padding-bottom: 8px;
}

/* 色板区：一行 5 个，其余样式同原色卡 */
#sc-color-swatches {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sc-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sc-swatch {
  border-radius: var(--wa-radius, 12px);
  background: var(--wa-color-surface);
  /* 色卡投影单独弱化，勿 overflow:hidden，否则投影被裁 */
  box-shadow: 0 0 6px rgba(15, 23, 42, 0.04), 0 0 12px rgba(15, 23, 42, 0.03);
}

html[data-theme="dark"] .sc-swatch {
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.16), 0 0 12px rgba(0, 0, 0, 0.12);
}

.sc-swatch__color {
  height: 64px;
  border-radius: inherit;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* 近白样块：仅底边，避免与卡面糊成一片、又不全框死 */
.sc-swatch__color--lined {
  box-shadow: inset 0 -1px 0 var(--wa-color-border-1);
}

/* 主色上字：主色底 + on-primary 示意字 */
.sc-swatch__color--on-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wa-color-primary);
}

.sc-swatch__on-primary-mark {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--wa-color-on-primary);
}

/*
 * 阴影样板：整卡铺满表面色；顶区表面色块底边透出对应 shadow
 *（落在下方文案区，无灰色承影底）
 */
.sc-swatch[data-kind="shadow"] {
  overflow: visible;
}

.sc-swatch__color--shadow,
.sc-swatch__color--shadow-section,
.sc-swatch__color--shadow-lift,
.sc-swatch__color--shadow-button {
  position: relative;
  z-index: 1;
  background: var(--wa-color-surface);
}

.sc-swatch__color--shadow {
  box-shadow: var(--wa-shadow-soft);
}

.sc-swatch__color--shadow-section {
  box-shadow: var(--wa-shadow-section);
}

.sc-swatch__color--shadow-lift {
  box-shadow: var(--wa-shadow-lift);
}

.sc-swatch__color--shadow-button {
  background: var(--wa-color-primary);
  box-shadow: var(--wa-shadow-button);
}

.sc-swatch__color--mask {
  background: var(--wa-mask-bg);
}

/* 磨砂样板：底纹 + 半透明遮罩层吃 --wa-mask-blur */
.sc-swatch__color--mask-blur {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      -28deg,
      color-mix(in srgb, var(--wa-color-primary) 22%, transparent),
      color-mix(in srgb, var(--wa-color-primary) 22%, transparent) 8px,
      color-mix(in srgb, var(--wa-color-accent, #0ea5e9) 16%, transparent) 8px,
      color-mix(in srgb, var(--wa-color-accent, #0ea5e9) 16%, transparent) 16px
    ),
    var(--wa-color-surface);
}

.sc-swatch__mask-frost {
  position: absolute;
  inset: 0;
  background: var(--wa-mask-bg);
  backdrop-filter: blur(var(--wa-mask-blur));
  -webkit-backdrop-filter: blur(var(--wa-mask-blur));
}

.sc-swatch__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--wa-color-muted);
}

.sc-swatch__name {
  color: var(--wa-color-text);
  font-weight: 600;
}

.sc-swatch__value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--wa-color-muted);
  word-break: break-all;
}

.sc-fam-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px 16px;
  align-items: center;
  padding: 14px 0;
  /* 分隔线弱一阶（border-1） */
  border-top: var(--wa-border-w) solid var(--wa-color-border-1);
}

/* 按钮家族：中性 / 描边 / 图标钮描边弱一阶 */
#sec-buttons .arco-btn.arco-btn-secondary {
  border-color: var(--wa-color-border-1);
}
#sec-buttons .arco-btn.arco-btn-secondary:hover,
#sec-buttons .arco-btn.arco-btn-secondary:active {
  border-color: var(--wa-color-border-2);
}
#sec-buttons .arco-btn-outline:not(.wa-fam-copy):not(.wa-btn-soft),
#sec-buttons .arco-btn.arco-btn-dashed {
  --wa-btn-bd: color-mix(in srgb, var(--wa-btn-fg, var(--wa-color-primary)) 62%, transparent);
}
#sec-buttons .wa-btn-soft.arco-btn {
  color: var(--wa-color-primary);
  background-color: var(--wa-btn-soft-fill, color-mix(in srgb, var(--wa-color-primary) 14%, transparent));
  border-color: var(--wa-btn-soft-bd, color-mix(in srgb, var(--wa-color-primary) 28%, transparent));
}
#sec-buttons .wa-btn-soft.arco-btn:hover:not(.arco-btn-disabled):not(.arco-btn-loading):not([disabled]) {
  color: var(--wa-color-on-primary, #fff);
  background-color: var(--wa-color-primary);
  border-color: var(--wa-color-primary);
}

.sc-fam-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 0;
  justify-content: center;
}

.sc-fam-label__zh {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--wa-color-text);
  font-family: inherit;
  line-height: 1.3;
}

.sc-fam-label__en {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--wa-color-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.3;
}

.sc-form-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sc-label {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--wa-color-text);
}

.sc-label__zh {
  font-size: 13px;
  font-weight: 700;
  color: var(--wa-color-text);
}

.sc-label__dot {
  font-size: 13px;
  font-weight: 700;
  color: var(--wa-color-muted);
  line-height: 1;
}

/* 与输入框同高的控件槽，保证多选/单选/开关行高对齐 */
.sc-control-slot {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: var(--wa-input-h, 40px);
  height: var(--wa-input-h, 40px);
}

.sc-control-slot--spread {
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--wa-color-text);
}

.sc-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

#sec-feedback .sc-grid-2 > .wa-acard {
  width: 100%;
  height: 100%;
}

#sec-feedback .wa-acard.arco-card,
#sec-feedback .wa-acard.arco-card-bordered {
  border: none;
}

#sec-feedback .wa-acard-title {
  border-bottom: none;
  margin-bottom: 10px;
  padding-bottom: 0;
}

#sec-feedback .wa-acard-title + .wa-acard-title {
  margin-top: 0;
}

/* theme-style：仅展示胶囊 Tabs 头，不显示内容切换框 */
#sec-feedback .sc-tabs-nav-only > .arco-tabs-content {
  display: none !important;
}

.sc-spacer {
  height: 12px;
}

.sc-card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.sc-card-row .wa-acard {
  width: 100%;
  height: 100%;
  min-height: 176px;
  display: flex;
  flex-direction: column;
}

.sc-card-row .wa-acard .arco-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 16px;
}

/* 表面区：去掉标题通栏分割线，保留正文内非通栏 hr；两行统一收窄 */
#sec-surfaces .sc-card-row .wa-acard-title {
  border-bottom: none;
  margin: 0 0 8px;
  padding: 0;
}

#sec-surfaces .sc-card-row .wa-acard-split {
  margin: 10px 0;
}

#sec-surfaces .sc-card-row .wa-acard--cta .arco-card-body {
  min-height: 0;
  padding-top: 14px;
  padding-bottom: 16px;
}

#sec-surfaces .sc-card-row .wa-acard--cta .arco-card-body > .arco-btn:last-child {
  margin-top: auto !important;
}

#sec-surfaces .sc-card-row .wa-acard-avatars {
  margin-top: auto;
}

#sec-surfaces .sc-card-row .wa-acard-meter + .wa-acard-meter {
  margin-top: 10px;
}

#sec-surfaces .sc-card-row .wa-acard--dark .arco-card-body > .arco-btn:last-child {
  margin-top: auto;
}

.sc-stat-card {
  margin-bottom: 18px;
}

.sc-stat-card .wa-stat-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sc-table-toolbar {
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px 16px;
}

.sc-table-toolbar__head {
  flex: 0 1 auto;
  min-width: 0;
}

.sc-table-toolbar__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text-1);
  letter-spacing: 0.01em;
}

.sc-table-toolbar__sub {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-text-3);
}

.sc-table-toolbar__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

.sc-table-toolbar__actions .arco-input-wrapper,
.sc-table-toolbar__actions .arco-input-search,
.sc-table-toolbar__actions .arco-input-wrapper.arco-input-search {
  flex: 0 0 220px;
  width: 220px;
  max-width: 220px;
  min-width: 0;
  height: var(--wa-ctrl-h-small);
  min-height: var(--wa-ctrl-h-small);
  padding-left: var(--wa-ctrl-px-small) !important;
  padding-right: var(--wa-ctrl-px-small) !important;
}

.sc-table-toolbar__actions .arco-input-wrapper .arco-input,
.sc-table-toolbar__actions .arco-input-search .arco-input {
  font-size: var(--wa-ctrl-fs-small);
  line-height: calc(var(--wa-ctrl-h-small) - 2px);
}

.sc-table-toolbar__actions .arco-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  height: var(--wa-ctrl-h-small);
  min-height: var(--wa-ctrl-h-small);
}

.sc-grid-data {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(200px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.sc-progress-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--wa-radius, 12px);
  background: color-mix(in srgb, var(--wa-color-bg) 55%, var(--wa-color-surface));
}

.sc-progress-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  padding: 16px 18px;
  border-radius: var(--wa-radius, 12px);
  background: color-mix(in srgb, var(--wa-color-bg) 55%, var(--wa-color-surface));
}

.sc-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sc-state-panel.arco-card,
.sc-state-panel.arco-card-bordered {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  min-height: 100%;
  height: 100%;
  box-sizing: border-box;
  border: var(--wa-border-w) solid var(--wa-color-border-1);
}

#sec-states .sc-state-panel .arco-btn-outline:not(.wa-fam-copy) {
  --wa-btn-bd: color-mix(in srgb, var(--wa-btn-fg, var(--wa-color-primary)) 62%, transparent);
}

.sc-state-panel .arco-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  padding: 12px;
  min-height: 0;
}

.sc-state-panel .arco-result {
  padding: 12px 8px;
}

.sc-state-panel .arco-result-title {
  font-size: 18px;
}

.sc-state-panel .arco-result-subtitle {
  font-size: 13px;
}

.sc-state-panel .wa-empty {
  max-width: none;
  margin: 0;
}

.sc-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.sc-section-head__copy .sc-h2 {
  margin-bottom: 20px;
}

.sc-chart-palette-trigger {
  flex-shrink: 0;
  margin-top: 2px;
}

.sc-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

/* 图表卡：复用 Card Flat；描边弱一阶（border-1） */
.sc-chart-card.arco-card,
.sc-chart-card.arco-card-bordered {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
  box-sizing: border-box;
  border: var(--wa-border-w) solid var(--wa-color-border-1);
}

.sc-chart-card .arco-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px 16px 20px;
}

.sc-chart-card__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 14px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.sc-chart-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--wa-color-text);
}

.sc-chart-card__head .sc-fam-label__en {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sc-chart-demo {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}

.sc-chart-demo .shadcn-chart-host {
  flex: 0 0 auto;
}

/* 精简圆环：中间槽吃掉标题~图例之间的空白，环在槽内垂直居中（对齐 charts 规范 / .wa-chart-donut-slot） */
.sc-chart-demo .wa-chart-donut-slot {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  width: 100%;
}

.sc-chart-demo .wa-chart-donut-slot > .shadcn-chart-host,
.sc-chart-demo .wa-chart-donut-slot > .shadcn-chart-host--donut {
  margin: 0;
  flex: 0 0 auto;
  width: 200px;
  max-width: 100%;
  min-height: 200px !important;
  height: 200px !important;
}

.sc-chart-demo .shadcn-chart-legend {
  flex-shrink: 0;
}

/* —— Footer / 关注条（对齐亮色科技蓝 follow + footer） —— */
.sc-follow {
  text-align: center;
  /* 覆盖区块默认底边，上下留白一致，避免关注条贴底 */
  padding: 32px 28px;
}

.sc-follow .sc-h2 {
  margin-bottom: 12px;
}

.sc-follow__lead {
  max-width: 560px;
  margin: 0 auto 24px;
  font-weight: 600;
}

.sc-follow-bar {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  text-align: left;
  padding: 18px 32px;
  border: 0;
  border-radius: 16px;
  background: var(--wa-color-primary);
  color: var(--wa-color-on-primary, #fff);
  box-shadow: var(--wa-shadow-button);
}

.sc-follow-bar__text {
  min-width: 0;
}

.sc-follow-bar__label {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
}

.sc-follow-bar__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.sc-follow-bar__divider {
  width: 1px;
  height: 36px;
  flex-shrink: 0;
  background: currentColor;
  opacity: 0.25;
}

.sc-follow-bar__icons {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: visible;
}

.sc-follow,
.sc-follow-bar {
  overflow: visible;
}

.sc-follow-icon {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: var(--wa-color-surface);
  color: var(--wa-color-primary);
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.sc-follow-icon > i {
  display: inline-block;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-style: normal;
  text-align: center;
  vertical-align: middle;
}

.sc-follow-icon:hover {
  background: color-mix(in srgb, var(--wa-color-primary) 22%, #fff);
  color: var(--wa-color-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--wa-color-primary) 28%, transparent);
}

/* 微信公众号悬停卡片（交互对齐 components/layouts 索引，不改 CTA 区块底） */
.wa-bg-mp {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: center;
  line-height: 0;
}

.wa-bg-mp__card {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: 168px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--wa-color-border, #e5e6eb) 88%, transparent);
  border-radius: 12px;
  background: var(--wa-color-surface, #fff);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.wa-bg-mp__card::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  border-right: 1px solid color-mix(in srgb, var(--wa-color-border, #e5e6eb) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--wa-color-border, #e5e6eb) 88%, transparent);
  background: var(--wa-color-surface, #fff);
  transform: translateX(-50%) rotate(45deg);
}

.wa-bg-mp:hover .wa-bg-mp__card,
.wa-bg-mp:focus-within .wa-bg-mp__card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.wa-bg-mp__title {
  color: var(--wa-color-text, #1d2129);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.wa-bg-mp__hint {
  margin-top: 2px;
  margin-bottom: 6px;
  color: var(--wa-color-muted, #86909c);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}

.wa-bg-mp__qr {
  display: block;
  width: 136px;
  height: 136px;
  object-fit: cover;
  border-radius: 4px;
  background: color-mix(in srgb, var(--wa-color-muted, #86909c) 8%, var(--wa-color-surface, #fff));
}

html[data-theme='dark'] .wa-bg-mp__card {
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--wa-color-bg, #1a1a1a);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

html[data-theme='dark'] .wa-bg-mp__card::after {
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--wa-color-bg, #1a1a1a);
}

html[data-theme='dark'] .wa-bg-mp__title {
  color: var(--wa-color-text, #e5e6eb);
}

.sc-footer {
  /* 与上一区块 gap 24 + 本 margin 24 = 上边距 48；下边距 48 */
  margin: 24px 0 48px;
  padding: 0;
  border-top: none;
  color: var(--wa-color-muted);
  font-size: 12px;
  text-align: center;
}

.sc-footer a {
  color: inherit;
  text-decoration: none;
}

.sc-footer a:hover {
  color: var(--wa-color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 960px) {
  .sc-container {
    width: calc(100% - 32px);
    padding-top: 0;
    gap: 16px;
  }

  .sc-top-nav-shell {
    --sc-nav-pad-top: 16px;
    --sc-nav-pad-top-scrolled: 8px;
    top: 0;
    padding: var(--sc-nav-pad-top) 0 0;
  }

  .sc-top-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 10px;
    row-gap: 10px;
    min-height: 0;
    padding: 12px 14px;
  }

  .sc-brand,
  .sc-nav-actions {
    justify-self: auto;
  }

  .sc-brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .sc-nav-actions {
    margin-left: auto;
  }

  .sc-menu {
    order: 3;
    width: 100%;
    justify-self: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 4px 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .sc-menu::-webkit-scrollbar {
    display: none;
  }

  .sc-menu a {
    flex: 0 0 auto;
    padding: 0 8px;
  }

  /* Hero：中屏起改为单列，避免文案与 Tokens 挤在一起 */
  .sc-hero__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sc-hero__aside {
    margin-top: 0;
    max-width: none;
  }

  .sc-hero__copy .wa-lead {
    max-width: none;
  }

  .sc-kpi {
    grid-template-columns: 1fr 1fr;
    margin-top: 20px;
  }

  .sc-grid-4,
  .sc-grid-2,
  .sc-grid-3,
  .sc-card-row,
  .sc-grid-data,
  .sc-chart-grid,
  .sc-progress-grid {
    grid-template-columns: 1fr 1fr;
  }

  #sc-color-swatches {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sc-fam-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sc-fam-label {
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .sc-container {
    width: calc(100% - 24px);
  }

  .sc-brand {
    font-size: 16px;
    gap: 8px;
  }

  .sc-nav-actions {
    gap: 6px;
  }

  .sc-nav-actions .sc-brand-dropdown-trigger.arco-btn {
    max-width: 9.5em;
    overflow: hidden;
  }

  .sc-nav-actions .sc-brand-dropdown-trigger.arco-btn .arco-btn-content {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sc-grid-4,
  .sc-grid-2,
  .sc-grid-3,
  .sc-card-row,
  .sc-grid-data,
  .sc-chart-grid,
  .sc-progress-grid {
    grid-template-columns: 1fr;
  }

  #sc-color-swatches {
    grid-template-columns: 1fr 1fr;
  }

  .sc-kpi {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .sc-hero,
  .sc-section {
    padding: 22px 18px 26px;
  }

  .sc-hero {
    padding: 24px 18px 28px;
  }

  .sc-hero .wa-title.wa-type-scale--display-3 {
    margin: 6px 0 16px;
    font-size: clamp(32px, 10vw, 44px);
  }

  .sc-hero__copy .sc-actions {
    margin-top: 20px;
    width: 100%;
  }

  .sc-hero__copy .sc-actions .arco-btn {
    flex: 1 1 auto;
  }

  .sc-follow-bar {
    gap: 16px;
    padding: 14px 18px;
  }

  .sc-follow-bar__divider {
    display: none;
  }
}
