/* ============================================================
   StarFrom — Base / Shell  v3
   结构：Reset → 背景蓝图 → 布局 → 排版 → 按钮 → 徽章 → 卡片
        → 表单 → 页头/导航 → 页脚 → 内容块 → 暗色补充
   ============================================================ */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
p,
figure {
  margin: 0;
}

/* 标题自动平衡换行，避免孤字 */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

/* hidden 属性必须始终生效（筛选器依赖它隐藏卡片） */
[hidden] {
  display: none !important;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--r-xs);
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ---------- 背景：工程蓝图网格 + 温润渐变 ---------- */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 82% -10%, rgba(255, 107, 0, 0.12), transparent 62%),
    radial-gradient(900px 520px at 78% -8%, rgba(255, 92, 0, 0.07), transparent 62%),
    radial-gradient(800px 460px at 8% 12%, rgba(216, 195, 165, 0.26), transparent 56%),
    radial-gradient(620px 360px at 55% 110%, rgba(126, 139, 132, 0.14), transparent 60%),
    radial-gradient(700px 460px at 4% 2%, rgba(14, 16, 19, 0.05), transparent 60%),
    var(--paper);
}

.bg-scene__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 78%);
  opacity: 0.85;
}

.bg-scene__glow {
  position: absolute;
  left: 50%;
  top: -240px;
  width: 900px;
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 40%, rgba(255, 107, 0, 0.14), transparent 66%);
}

body[data-theme="dark"] .bg-scene__grid {
  opacity: 0.5;
}

/* ---------- 布局 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.site-main {
  display: block;
  min-height: 50vh;
}

.section {
  position: relative;
  padding: var(--space-9) 0;
}

.section--tight {
  padding: var(--space-7) 0;
}

.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--ink {
  background: var(--ink);
  color: var(--ink-invert);
}

.section--ink .section-head__title,
.section--ink h2,
.section--ink h3 {
  color: #fff;
}

.section--ink .section-head__sub,
.section--ink p {
  color: rgba(246, 246, 244, 0.72);
}

.grid {
  display: grid;
  gap: var(--space-5);
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid,
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .section {
    padding: var(--space-8) 0;
  }
}

/* ---------- 排版 ---------- */
.eyebrow,
.section-head__eyebrow,
.tag,
.badge,
.status-badge,
.form label,
.side-card__label,
.footer__h {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--accent);
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.section-head {
  margin-bottom: var(--space-7);
  max-width: 760px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-3);
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-3);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
}

.section-head__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.section--ink .section-head__eyebrow {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(246, 246, 244, 0.7);
}

.section-head__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.22;
  letter-spacing: -0.022em;
  font-weight: 600;
  color: var(--ink);
}

.section-head__sub {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  color: var(--ink-2);
  line-height: 1.7;
}

@media (max-width: 640px) {
  .section-head__title {
    font-size: var(--text-2xl);
  }
  .section-head__sub {
    font-size: var(--text-md);
  }
}

.page-head {
  margin-bottom: var(--space-7);
  max-width: 780px;
}

.page-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  line-height: 1.16;
  letter-spacing: -0.028em;
  font-weight: 600;
  margin-top: var(--space-3);
}

.page-sub {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  color: var(--ink-2);
}

.page-text {
  margin-top: var(--space-4);
  color: var(--ink-2);
  font-size: var(--text-md);
}

.page-note {
  margin-top: var(--space-4);
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.price-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px dashed var(--accent-line);
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

body[data-theme="dark"] .price-tag {
  color: var(--accent);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
  color: var(--ink-3);
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  background: transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.985);
  transition-duration: 0.08s;
}

.btn--sm {
  padding: 8px 14px;
  font-size: var(--text-xs);
}

.btn--lg {
  padding: 15px 26px;
  font-size: var(--text-md);
}

.btn--primary {
  background: var(--ink);
  color: var(--ink-invert);
  box-shadow: var(--shadow-xs);
}

.btn--primary:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 92, 0, 0.22);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 92, 0, 0.2);
}

.btn--accent:hover {
  background: var(--accent-deep);
  box-shadow: 0 10px 26px rgba(255, 92, 0, 0.28);
}

.btn--secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn--secondary:hover {
  border-color: var(--ink);
  background: var(--surface-2);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink-2);
}

.btn--ghost:hover {
  color: var(--ink);
  border-color: var(--ink-3);
  background: var(--surface);
}

/* 带「火爆」角标的高关注度按钮：角标绝对定位在右上角，不改变按钮自身尺寸 */
.btn--hot {
  position: relative;
}

.btn__hot {
  position: absolute;
  top: -9px;
  right: -9px;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, #ff3b30, #d02a1e);
  color: #fff;
  font-size: var(--text-2xs);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(208, 42, 30, 0.35);
  /* 角标仅作装饰，点击穿透到按钮本体 */
  pointer-events: none;
}

.section--ink .btn--ghost {
  border-color: rgba(255, 255, 255, 0.24);
  color: rgba(246, 246, 244, 0.86);
}

.section--ink .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
  color: #fff;
}

.section--ink .btn--primary {
  background: #fff;
  color: var(--ink);
}

.section--ink .btn--primary:hover {
  background: var(--accent);
  color: #fff;
}

.btn--text {
  padding: 6px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
}

.btn--text::after {
  content: " →";
  color: var(--accent);
  transition: transform 0.2s var(--ease);
  display: inline-block;
}

.btn--text:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.btn--text:hover::after {
  transform: translateX(3px);
}

/* ---------- 徽章 / 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--surface-2);
  color: var(--ink-3);
  text-transform: none;
  letter-spacing: 0.02em;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: var(--r-xs);
  background: var(--surface-3);
  color: var(--ink-2);
  text-transform: none;
  letter-spacing: 0.02em;
}

.badge--orange {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border: 1px solid var(--accent-line);
}

body[data-theme="dark"] .badge--orange {
  color: var(--accent);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-3);
  text-transform: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.status-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-3);
  flex: none;
}

.status-badge--available::before {
  background: var(--ok);
}
.status-badge--available {
  color: var(--ok);
  border-color: rgba(18, 133, 95, 0.3);
  background: var(--ok-soft);
}
.status-badge--beta::before,
.status-badge--testing::before,
.status-badge--running::before {
  background: var(--accent);
}
.status-badge--beta,
.status-badge--testing,
.status-badge--running {
  color: var(--accent-deep);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.status-badge--service::before,
.status-badge--enterprise::before {
  background: var(--ink);
}
.status-badge--research::before,
.status-badge--prototype::before {
  background: var(--warn);
}
.status-badge--paused::before,
.status-badge--archived::before {
  background: var(--ink-3);
}
.status-badge--graduated::before {
  background: var(--ok);
}

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 var(--accent-line), var(--shadow-md);
}

.card__link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.card__link:focus-visible {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.card__media {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-soft);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  flex: 1;
}

.solution-hero {
  margin: var(--space-6) auto;
  max-width: 960px;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.solution-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.card__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.card__title-line {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.card__icon {
  width: 26px;
  height: 26px;
  flex: none;
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.35;
  color: var(--ink);
}

.card__text {
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: 1.65;
}

.card__text + .card__audience {
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--ink-3);
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: var(--space-2);
}

.card__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--ink-2);
}

.card__list li {
  position: relative;
  padding-left: 16px;
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card__price {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent-deep);
}

body[data-theme="dark"] .card__price {
  color: var(--accent);
}

/* 进度条 */
.progress {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.progress::before {
  content: "";
  flex: 1;
  height: 3px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  order: -1;
}

.progress__bar {
  height: 3px;
  min-width: 3px;
  border-radius: var(--r-pill);
  background: var(--accent);
  transition: width 0.6s var(--ease);
}

.progress__label {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--ink-3);
}

/* ---------- 列表 / 步骤 ---------- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.feature-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2);
  font-size: var(--text-md);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 12px;
  height: 1px;
  background: var(--accent);
}

.steps {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.steps li {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
}

.steps li:last-child {
  border-bottom: none;
}

.steps__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--accent);
}

/* ---------- 侧栏卡片 ---------- */
.side-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: var(--space-4);
}

.side-card__label {
  color: var(--ink-3);
}

.side-card__value {
  font-size: var(--text-md);
  color: var(--ink);
  font-weight: 500;
}

a.side-card__value:hover {
  color: var(--accent);
}

/* ---------- 表单 ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.form__row {
  display: grid;
  gap: var(--space-4);
}

.form__row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
  .form__row--2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.form label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--ink-3);
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: var(--text-xs);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 11px 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.form select {
  height: 48px;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: var(--focus-ring);
}

.form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  min-height: 20px;
  font-size: var(--text-sm);
  color: var(--accent-deep);
}

.form__privacy {
  font-size: var(--text-xs);
  color: var(--ink-3);
}

.form__privacy a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(251, 250, 247, 0.94);
  border-bottom-color: var(--line-strong);
  box-shadow: 0 8px 28px rgba(14, 16, 19, 0.06);
}

body[data-theme="dark"] .site-header {
  background: rgba(11, 13, 16, 0.82);
}

body[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(11, 13, 16, 0.94);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

/* 顶部滚动进度条（工程感） */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  pointer-events: none;
  will-change: transform;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex: none;
}

.brand__mark {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-left: var(--space-5);
}

.nav__link {
  position: relative;
  font-size: var(--text-sm);
  color: var(--ink-2);
  padding: 6px 0;
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}

.nav__link:hover {
  color: var(--ink);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}

.nav__link.is-active {
  color: var(--ink);
  font-weight: 500;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--ink-3);
}

.lang-switch__btn {
  padding: 3px 5px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--ink-3);
  border-radius: var(--r-xs);
}

.lang-switch__btn.is-active {
  color: var(--ink);
  font-weight: 600;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent-line);
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
  padding: 8px 9px;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  margin: 4px 0;
  transition: transform 0.24s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.mobile-nav .nav__link {
  padding: 12px 0;
  font-size: var(--text-lg);
  border-bottom: 1px solid var(--line-soft);
}

.mobile-nav .btn {
  margin-top: var(--space-3);
}

@media (max-width: 1040px) {
  .site-nav {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .lang-switch {
    display: none;
  }
}

/* 窄屏：顶栏只保留品牌 + 主题切换 + 菜单，CTA 收进移动菜单 */
@media (max-width: 440px) {
  .site-header__inner {
    gap: var(--space-3);
  }
  .site-header__actions {
    gap: var(--space-2);
  }
  .site-header__actions .btn {
    display: none;
  }
  .brand__name {
    letter-spacing: 0.08em;
  }
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: var(--space-9);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) 3fr;
  gap: var(--space-7);
  padding: var(--space-8) var(--space-5);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--ink-2);
  max-width: 320px;
}

.footer__qr {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer__qr-img {
  width: 96px;
  height: 96px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  object-fit: cover;
}

.footer__qr-text {
  font-size: var(--text-sm);
  color: var(--ink-3);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

.footer__h {
  color: var(--ink-3);
  margin-bottom: var(--space-4);
}

.footer__col a {
  display: block;
  padding: 5px 0;
  font-size: var(--text-sm);
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}

.footer__col a:hover {
  color: var(--accent);
}

.footer__bar {
  border-top: 1px solid var(--line);
}

.footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.footer__bar-right {
  display: inline-flex;
  gap: var(--space-4);
}

.footer__bar-right a:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- CTA 区块 ---------- */
.cta-section {
  position: relative;
  padding: var(--space-9) 0;
  background: var(--ink);
  color: var(--ink-invert);
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 100% at 50% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(80% 100% at 50% 0%, #000, transparent 70%);
}

.cta-section::after {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  width: 720px;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 92, 0, 0.22), transparent 62%);
}

.cta-section__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
}

.cta-section__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  line-height: 1.18;
  letter-spacing: -0.028em;
  font-weight: 600;
  color: #fff;
}

.cta-section__sub {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  color: rgba(246, 246, 244, 0.7);
}

.cta-section__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-7);
}

.cta-section .btn--primary {
  background: var(--accent);
  color: #fff;
}

.cta-section .btn--primary:hover {
  background: #fff;
  color: var(--ink);
}

@media (max-width: 640px) {
  .cta-section__title {
    font-size: var(--text-3xl);
  }
}

/* ---------- 详情页布局 ---------- */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
  gap: var(--space-7);
  align-items: start;
}

@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- 状态块 ---------- */
.state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-7);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  text-align: center;
  color: var(--ink-2);
}

.state__icon {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  color: var(--ink-3);
}

.state__title {
  font-size: var(--text-lg);
  color: var(--ink);
}

.state__text {
  font-size: var(--text-sm);
  max-width: 420px;
}

.state--error {
  border-color: rgba(192, 57, 43, 0.4);
}

.state--loading .state__icon {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- FAQ 折叠 ---------- */
.faq {
  display: grid;
  gap: var(--space-3);
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  overflow: hidden;
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--ink);
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  flex: none;
}

.faq__item[open] summary::after {
  content: "–";
}

.faq__item p {
  padding: 0 var(--space-5) var(--space-5);
  font-size: var(--text-sm);
  color: var(--ink-2);
}

/* ---------- 筛选栏 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.filter-group__label {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.filter-group__options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-group__options button {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: var(--text-xs);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.filter-group__options button:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}

.filter-group__options button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ink-invert);
}

.filter-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.filter-panel__count {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

/* ---------- 文章正文 ---------- */
.article {
  max-width: 760px;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.article__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.2;
  letter-spacing: -0.026em;
  font-weight: 600;
  color: var(--ink);
}

.article__summary {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  color: var(--ink-2);
}

/* TL;DR 结论速览（GEO：让生成式引擎可直接引用独立结论句） */
.article__tldr {
  margin-top: var(--space-5);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: var(--bg-soft, rgba(0, 0, 0, 0.02));
}
.article__tldr-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.article__tldr ul {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding-left: 1.2em;
}
.article__tldr li {
  font-size: var(--text-md);
  line-height: 1.65;
  color: var(--ink-2);
}
.article__tldr li::marker {
  color: var(--accent);
}

/* 文章内 FAQ（GEO：Article + FAQPage 可见问答） */
.article__faq {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.article__faq .section-head {
  margin-bottom: var(--space-4);
}

.article__body {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-6);
  font-size: var(--text-md);
  color: var(--ink-2);
  line-height: 1.85;
}

.article__body h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
}

/* ---------- 产品详情头 ---------- */
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: var(--space-7);
  align-items: center;
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--line);
}

.product-hero__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.product-hero__icon {
  width: 40px;
  height: 40px;
}

.product-hero__media {
  display: grid;
  place-items: center;
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
}

.product-hero__media img {
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .product-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- 前后对比 ---------- */
.before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.before-after > div {
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}

@media (max-width: 700px) {
  .before-after {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- 法律正文 ---------- */
.legal-body {
  display: grid;
  gap: var(--space-6);
  max-width: 760px;
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: 1.9;
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--ink);
}

/* ---------- 管理后台 ---------- */
.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.admin-list {
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--ink-2);
}

.admin-list > div {
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}

@media (max-width: 900px) {
  .admin-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- 其他补充 ---------- */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag--filter {
  cursor: pointer;
}

.side-card__note {
  font-size: var(--text-xs);
  color: var(--ink-3);
}

.progress--wide .progress__bar,
.progress--wide::before {
  height: 5px;
}

.form__check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--ink-2);
}

.form__check input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex: none;
}

.home-hero__copy {
  min-width: 0;
}

.card__participate {
  margin-top: auto;
  padding-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* ---------- 建设中 ---------- */
.wip__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-7);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.wip__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  letter-spacing: -0.02em;
}

.wip__desc {
  color: var(--ink-2);
}

.wip__list {
  display: grid;
  gap: var(--space-2);
  color: var(--ink-2);
  font-size: var(--text-sm);
}

.wip__list li {
  padding-left: 18px;
  position: relative;
}

.wip__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.wip__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ---------- 滚动揭示 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(6px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ---------- 无障碍 ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 移动端吸底主 CTA（≤900px 显示） ---------- */
.mobile-cta {
  display: none;
}
@media (max-width: 900px) {
  .mobile-cta {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: var(--text-md);
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(210, 66, 0, 0.35);
    transition: background 0.2s ease, transform 0.15s ease;
  }
  .mobile-cta:active {
    transform: scale(0.98);
    background: var(--accent-deep);
  }
  body {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
}

/* ================= Resources · AI 落地自检清单 ================= */
.checklist {
  margin-top: var(--space-6);
}

.checklist__bar {
  position: sticky;
  top: 72px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.checklist__progress {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.checklist__label {
  font-size: var(--text-sm);
  color: var(--ink-2);
}

.checklist__count {
  font-size: var(--text-lg);
  color: var(--accent);
}

.checklist__hint {
  flex: 1 1 260px;
  min-width: 0;
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: 1.6;
}

.checklist__actions {
  display: flex;
  gap: var(--space-2);
  margin-left: auto;
}

.checklist__group {
  margin-top: var(--space-6);
}

.checklist__group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-md);
  color: var(--ink);
}

.checklist__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 600;
}

.checklist__items {
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.checklist__item + .checklist__item {
  margin-top: 8px;
}

.checklist__item label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.checklist__item label:hover {
  border-color: var(--accent);
}

.checklist__item input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.checklist__item span {
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: 1.7;
}

.checklist__item input:checked + span {
  color: var(--ink);
}

@media (max-width: 720px) {
  .checklist__bar {
    position: static;
  }
  .checklist__actions {
    margin-left: 0;
  }
}

/* ================= 打印（方案页 / 清单页可存档） ================= */
@media print {
  [data-header],
  .mobile-cta,
  .site-footer,
  .checklist__actions,
  [data-print] {
    display: none !important;
  }
  .checklist__bar {
    position: static;
    box-shadow: none;
  }
  body {
    padding-bottom: 0 !important;
  }
}
