/* ===== Design Tokens — 迎光社 x shimmer(PixPix) 组件语言 · logo 奶油金主色 ===== */
:root {
  /* ---- 底色 / 面色：shimmer 亮色体系 ---- */
  --bg-page: #ffffff;
  --bg-page-rgb: 255, 255, 255;
  --bg-card: #ffffff;
  --bg-card-solid: #ffffff;
  --bg-subtle: rgba(22, 22, 26, 0.04);
  --bg-soft: #f8f7f3;

  /* ---- 文字三阶：shimmer ink ---- */
  --text-primary: #16161a;
  --text-secondary: #55555e;
  --text-muted: #8b8b94;

  /* ---- 主色：取自 logo 的奶油金，拆三支用，别混 ----
   *   --accent     浅奶油金，只做填充（按钮底 / 角标底 / 高亮底）
   *   --accent-ink 深琥珀金，只做文字（白底上才够 contrast）
   *   --on-accent  近黑深褐，压在金色填充上的文字
   *     —— 这组关系就是 logo 本身：深色底 + 奶金字 */
  --accent: #f0d68e;
  --accent-strong: #e0ae3c;
  --accent-ink: #8a6a12;
  --on-accent: #1c1608;
  --accent-light: rgba(240, 214, 142, 0.26);
  --accent-border: rgba(224, 174, 60, 0.55);

  /* ---- 分隔线与阴影 ---- */
  --border: rgba(20, 20, 25, 0.09);
  --shadow-card: 0 24px 60px rgba(60, 45, 10, 0.10);
  --shadow-elevated: 0 28px 70px rgba(60, 45, 10, 0.14);

  /* ---- 圆角：shimmer 大圆角 + 胶囊按钮 ---- */
  --radius-card: 28px;
  --radius-button: 999px;
  --radius-sm: 14px;

  /* ---- 金色渐变三支 ---- */
  --hero-top: #f6e0a3;
  --hero-mid: #e0ae3c;
  --hero-bot: #c9942a;

  --font-sans: 'Inter', 'Noto Sans SC', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;

  /* ---- 首屏背景图 ----
   * --header-h：吸顶导航栏实测高度（70px + 1px 下边框 = 71px）。
   *   首屏高度 = 一屏 - 导航栏，所以这个值必须准，否则底部会露缝或溢出。
   *   js/site-init.js 会用 ResizeObserver 按真实高度回写，覆盖这里的默认值。
   * --hero-bg：首屏图的可覆盖入口（后台换图时由 JS 写入）。
   *   注意：这里**故意不**给 --hero-bg 写默认 url()。
   *   自定义属性里的 url() 会以样式表自身为基准解析，实测会错成
   *   /css/assets/images/… -> 404。默认值改用 var() 的回退值书写，
   *   回退值在规则里解析，路径正确；JS 注入时用的是文档相对路径，同样正确。 */
  --header-h: 71px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 20% 0%, rgba(224, 174, 60, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 80% 90%, rgba(12, 139, 121, 0.06) 0%, transparent 30%),
    var(--bg-page);
  background-attachment: fixed;
}

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

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

h1, h2, h3, p {
  margin: 0;
}

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

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

/* 顶栏用三列网格：logo 左 / 导航正中 / 按钮右。
   导航与按钮来自 nav.html，经 [data-nav="desktop"] 挂载点注入，
   因此用 display:contents 让它们直接成为 .nav-inner 的网格项，
   导航才能真正处于中间（flex + justify-content 只能靠边对齐）。 */
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 70px;
  gap: var(--space-lg);
}

.nav-inner > .logo {
  grid-column: 1;
  justify-self: start;
}

.nav-mount[data-nav="desktop"] {
  display: contents;
}

.nav-mount[data-nav="mobile"] {
  display: block;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  flex-shrink: 0;
  /* 「迎光社」三个字绝不能折行。
     窄屏（<=360px）时顶栏空间一紧就会断成「迎光 / 社」两行，
     把 70px 高的导航栏撑变形。 */
  white-space: nowrap;
}

.logo-img {
  /*width: 34px;*/
  height: 58px;
   /*border-radius: 9px;*/
  object-fit: cover;
  /* box-shadow: 0 0 0 1.5px rgba(224, 174, 60, 0.22), 0 4px 14px rgba(0, 0, 0, 0.25);*/
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  grid-column: 2;
  justify-self: center;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
  grid-column: 3;
  justify-self: end;
}

/* ===== 产品下拉菜单（智谱风格 mega menu） ===== */
.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link[aria-expanded="true"],
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text-primary);
}

.nav-caret {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transition: transform 0.22s ease;
  opacity: 0.7;
}

.nav-link[aria-expanded="true"] .nav-caret {
  transform: rotate(180deg);
}

.mega-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  margin: 0 auto;
  /* 宽度自适应内容，但不超过视口；配合左右 auto 居中，永不溢出 */
  width: max-content;
  max-width: calc(100vw - 48px);
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-elevated);
  padding: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.nav-item.is-open .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* 透明桥接：避免鼠标从导航移到面板中途出现空隙导致收起 */
.nav-item.is-open::after,
.nav-item:hover::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
}

.mega-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2xl);
}

.mega-col {
  min-width: 232px;
}

.mega-col-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--accent-border);
}

.mega-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mega-link {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.mega-link:hover {
  background-color: var(--bg-subtle);
  transform: translateX(2px);
}

.mega-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 1rem;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  overflow: hidden;
}

/* 图标为 SVG 文件：铺满内框并保持自身宽高比 */
.mega-icon img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.mega-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.mega-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mega-desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.mega-link:hover .mega-desc {
  color: var(--text-secondary);
}

/* 移动端：下拉改为手风琴 */
.mobile-menu .nav-item {
  width: 100%;
}

.mobile-menu .nav-link {
  width: 100%;
  justify-content: space-between;
}

.mobile-menu .mega-menu {
  position: static;
  transform: none;
  width: 100%;
  max-width: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  box-shadow: none;
  background: transparent;
  border: none;
  border-left: 1px solid var(--border);
  border-radius: 0;
  padding: 0.5rem 0 0.5rem 0.9rem;
  margin-top: 0.4rem;
  display: none;
}

.mobile-menu .nav-item.is-open .mega-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mobile-menu .mega-grid {
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-menu .mega-col {
  min-width: 0;
}

.mobile-menu .mega-col-title {
  font-size: 0.72rem;
}

.mobile-menu .mega-desc {
  font-size: 0.78rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-button);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-ink);
  color: var(--on-accent);
  height: 3rem;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(224, 174, 60, 0.24);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: rgba(22, 22, 26, 0.04);
}

/* ===== Mobile Menu ===== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  /* 窄屏下 .main-nav / .nav-actions 被隐藏，汉堡按钮需自己贴到最右 */
  grid-column: 3;
  justify-self: end;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu {
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--bg-card-solid);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  box-shadow: var(--shadow-card);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-xs) 0;
}

/* ===== Sections ===== */
.pricing-section {
  padding: var(--space-4xl) 0;
}

.section-heading {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.section-heading h1,
.section-heading h2,
.promise-intro h2,
#faq-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-primary);
}

/* ===== Plan Grid ===== */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 1.625rem 1.5rem 1.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(224, 174, 60, 0.18);
}

.plan-card-featured {
  border: 1.5px solid var(--accent-border);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(224, 174, 60, 0.06), var(--shadow-elevated);
}

.plan-badge {
  position: absolute;
  top: -10px;
  right: 1.25rem;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 10px rgba(224, 174, 60, 0.18);
}

.plan-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 780;
  color: var(--accent-ink);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.plan-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  min-height: 3em;
  margin-bottom: var(--space-lg);
}

.price-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  margin-bottom: var(--space-sm);
}

/* 划线原价：后台配了 originalFeeFen 才出现，单独一行放现价上方 */
.price-original-row {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
  line-height: 1;
}

.price-original {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted, #8b8b94);
  text-decoration: line-through;
}

.price-original-unit {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted, #8b8b94);
  text-decoration: line-through;
}

/* 现价行：标签 + 货币符号 + 金额 + 有效期 */
.price-current-row {
  display: flex;
  align-items: flex-start;
  gap: 0.15rem;
}

/* 有效期文案：跟在现价后面，小字弱化，不抢大数字 */
.price-validity {
  align-self: flex-end;
  padding-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  color: var(--text-secondary, #55555e);
  white-space: nowrap;
}

/* 「优惠价」小标签：贴着现价左上角，不抢大数字的视觉重心 */
.price-tag {
  align-self: flex-start;
  margin-top: 0.3rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.currency {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 0.25rem;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.credit-summary {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  /* 预留 4 行高度，保证各卡片按钮在同一水平线上 */
  /* min-height: 5.25rem; */
  margin-bottom: var(--space-lg);
}

.credit-summary strong {
  color: var(--text-primary);
  font-weight: 600;
}

.plan-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.75rem 1rem;
  /* 按钮已移到卡片最下方（权益列表之后）：
   * margin-top:auto 把它压到卡片底部，各卡按钮底部对齐；
   * 原来的 margin-bottom 是给「按钮在权益上方」时留的间距，已不需要。 */
  margin-top: auto;
  padding-top: 1.25rem;
  margin-bottom: 0;
  /* 深底必须配浅字。原先这里是 var(--on-accent)（近黑深褐），
     在暗色主题下 --text-primary 是奶油色、看着没问题；
     换肤后 --text-primary 变成深墨色，于是变成黑底黑字，整块看不见。 */
  background: var(--text-primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-button);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.plan-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(60, 45, 10, 0.12);
}

.plan-action-featured {
  background: var(--accent);
  color: var(--on-accent);
}

.plan-action-featured:hover {
  box-shadow: 0 6px 24px rgba(224, 174, 60, 0.24);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}

.feature-list strong {
  color: var(--text-primary);
  font-weight: 600;
}

.check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-ink);
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.plan-disclaimer {
  max-width: 720px;
  margin: var(--space-3xl) auto 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== 方案分区（体验区 / 充值区）=====
 * pricing 页把方案分成两块：上面是 0 元 / 9.9 元的体验区，
 * 下面是 Y1~Y4 的充值区。两块各有一个小标题，避免用户
 * 把「免费体验」和「充值方案」混在一起看。
 */
.plan-section {
  margin-top: var(--space-3xl);
}

.plan-section[hidden] {
  display: none;
}

.plan-section-head {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.plan-section-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--space-xs);
}

.plan-section-desc {
  margin-top: var(--space-sm);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 体验区只有 2 张卡，用两列居中，不要拉满四列显得空 */
.plan-grid-trial {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
  margin: 0 auto;
}

/* ===== Promise Section ===== */
.promise-section {
  padding: var(--space-4xl) 0;
  background: linear-gradient(180deg, #fdfaf1 0%, #ffffff 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  /* 带 id 的段落被导航锚点跳转时，别让标题被吸顶导航挡住 */
  scroll-margin-top: 96px;
}

.promise-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(224, 174, 60, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

.promise-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.promise-intro {
  position: sticky;
  top: 100px;
}

.promise-intro h2 {
  margin-bottom: var(--space-md);
}

.promise-intro p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.promise-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-card);
  padding: var(--space-xl);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.promise-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(224, 174, 60, 0.18);
}

.promise-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(22, 22, 26, 0.05);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 16px rgba(224, 174, 60, 0.11), 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: var(--space-md);
}

.promise-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.promise-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== FAQ Section ===== */
.faq-section {
  padding: var(--space-4xl) 0;
}

.faq-container {
  max-width: 760px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.faq-item {
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.faq-item summary::after {
  content: '›';
  font-size: 1.4rem;
  color: var(--text-muted);
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(-90deg);
  color: var(--accent-ink);
}

.faq-item p {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Footer =====
   版式参考智谱官网：左侧品牌区（logo / slogan / 联系方式），
   右侧四栏链接，底部一条版权 + 备案栏。
   配色用品牌 logo 里的深藏蓝做底，奶油金做点缀。

   ⚠ 深色底上的 logo 必须用 logo_white1.png（米白字标）。
     site.logo 是 logo_black.png（深藏蓝），放在深底上会看不见。
     两者由 js/site-init.js 分别接管：页头用 site.logo，页脚用 site.footer_logo。 */
.site-footer {
  /* 品牌深藏蓝：取自 assets/images/logo.jpg 底色 */
  background: #050b1c;
  background-image:
    radial-gradient(900px 380px at 12% 0%, rgba(240, 214, 142, 0.07), transparent 70%),
    radial-gradient(760px 320px at 88% 100%, rgba(224, 174, 60, 0.06), transparent 70%);
  color: rgba(255, 255, 255, 0.72);
  padding: var(--space-3xl) 0 var(--space-xl);
}

/* ---------- 上半部：品牌区 + 链接栏 ---------- */
.footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 1.05fr) 2.6fr;
  gap: var(--space-2xl) var(--space-3xl);
  align-items: start;
}

/* ===== 品牌区 ===== */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-logo-img {
  width: 132px;
  height: auto;
  display: block;
  object-fit: contain;
}

.footer-slogan {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  max-width: 26em;
}

/* 联系方式：标签 + 值，像智谱那样一行行对齐 */
.footer-contact {
  list-style: none;
  margin: var(--space-sm) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-contact li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.8;
}

.fc-label {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
}

.fc-value {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  transition: color 0.2s ease;
  word-break: break-all;
}

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

/* ===== 链接栏 ===== */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-xl);
}

.footer-col h3 {
  margin: 0 0 var(--space-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* 当前页高亮（footer-loader.js 的 markCurrent 会加 aria-current） */
.footer-col a[aria-current="page"] {
  color: var(--accent);
}

/* ---------- 下半部：版权 + 备案 + 快捷入口 ---------- */
.footer-bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-copy {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.38);
}

.footer-icp {
  color: rgba(255, 255, 255, 0.38);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-icp:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer-quick {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.footer-quick a {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* 右下角的主行动按钮：深底上用奶油金填充 */
.footer-quick .footer-cta {
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-button);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
}

.footer-quick .footer-cta:hover {
  background: var(--accent-strong);
  color: var(--on-accent);
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
    .plan-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    /* 体验区本来就是 2 列，保持 2 列即可 */
    .plan-grid-trial {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      max-width: none;
    }

    .promise-layout {
      grid-template-columns: 1fr;
    }

    .promise-intro {
      position: static;
      max-width: 560px;
    }
  }

@media (max-width: 768px) {
  .main-nav,
  .nav-actions .btn-secondary {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

    .plan-grid {
      grid-template-columns: 1fr;
      max-width: 420px;
      margin: 0 auto;
    }

    .plan-grid-trial {
      grid-template-columns: 1fr;
      max-width: 420px;
      margin: 0 auto;
    }

    .plan-section-title {
      font-size: 1.5rem;
    }

  .promise-grid {
    grid-template-columns: 1fr;
  }

  /* ===== 深色页脚·响应式 ===== */

  /* 平板：品牌区与链接栏上下堆叠，链接栏收成2 列 */
  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-xl) var(--space-lg);
  }

  .footer-logo-img {
    width: 116px;
  }

  /* 底部条：版权在上、快捷入口在下，各自左对齐 */
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .section-heading h1,
  .section-heading h2,
  .promise-intro h2,
  #faq-title {
    font-size: 2rem;
  }

  .price {
    font-size: 2.5rem;
  }

  .plan-card {
    padding: 1.5rem;
  }

  /* 手机：四栏再收成 1 列，否则 375px 宽下每栏只有 ~80px，
     中文链接会一个一个折行，很难看。 */
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .footer-col h3 {
    margin-bottom: var(--space-sm);
  }

  .footer-col ul {
    gap: 0.5rem;
  }

  .footer-quick {
    gap: var(--space-md);
  }
}

/* ===== AI Studio 首屏嵌入 ===== */
button.btn {
  font-family: inherit;
  cursor: pointer;
}

/* =============================================================
 * —— 首屏：铺满一屏——
 * 原来锁死 aspect-ratio: 2040/800（约 2.55:1 宽幅），算出的高度小于
 * 视口高度，底部会露出 .studio-section 的深色底，看着像「留白」。
 * 改为按视口高度撑满：100vh 减去吸顶导航栏的 70px。
 * min-height 是窄屏兜底 —— 竖屏时视口窄，用 aspect-ratio 的值太小，
 * 那样内容会被压扁。
 * ============================================================= */
.studio-section {
  background: #0b1224;
  border-bottom: 1px solid var(--border);
}

.studio-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.9rem var(--space-md) 0.75rem;
}

/* ⚠ 这三个规则所在的 .studio-section 是**深色底**（#0b1224），
 * 所以这里不能用全局的 --text-primary(#16161a) / --text-secondary(#55555e)
 * ——那是浅色页面用的深色字，深底深字对比度只有 1.03:1 / 2.53:1，
 * 等于隐形（2026-10-21 修复，此前「操作手册」链接一直看不见就是这个原因）。 */
.studio-bar-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.studio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(224, 174, 60, 0.5);
  flex: none;                 /* flex 容器里防止被压扁 */
}

/* 手册入口：做成轻描边胶囊，和纯文字链相比更像个「可点的入口」，
 * 但仍保持克制，不抢教程列表的视觉重心。 */
.studio-open {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: none;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #dfe4f2;
  text-decoration: none;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.studio-open:hover,
.studio-open:focus-visible {
  color: #ffffff;
  border-color: var(--accent);
  background-color: rgba(224, 174, 60, 0.14);
}

.studio-open-arrow {
  transition: transform 0.2s ease;
}

.studio-open:hover .studio-open-arrow {
  transform: translate(2px, -2px);   /* 悬停时箭头右上轻移，暗示「站外跳转」 */
}

@media (max-width: 600px) {
  .studio-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
}

/* =============================================================
 * 首屏视觉：静态配图（原为 iframe 嵌入工作台）
 * ------------------------------------------------------------
 * 【为什么之前在不同电脑上铺不满】
 * 1) 后台 site.bg_image 下发的是 bg-lookearth.jpg（1758×636，约 2.76:1 超宽幅），
 *    会被 js/site-init.js 覆盖到前景 <img> 上，把 HTML 里写死的 16:9 图换掉。
 *    2.76:1 的图丢进 16:9~21:9 的容器里，object-fit: cover 会把左右大幅裁掉；
 *    而 769~1024px / ≤768px 那两条 media query 又把 object-fit 改回 contain，
 *    contain 遇到比例不一致的容器就会上下/左右留白 —— 这才是「铺不满」的真正原因。
 * 2) 模糊兜底层的 background 路径写错了（'../images/…'，实际在 ../assets/images/…），
 *    请求 404，所以留白处露出的不是模糊图而是纯色底，看起来像「背景图没铺满」。
 * 3) 高度写死 calc(100vh - 70px)，但导航栏实测 71px（70 + 1px 下边框），
 *    差 1px；且各浏览器 100vh 是否含横向滚动条不一致，进一步放大误差。
 *
 * 【现在的做法：让「铺满」成为结构性保证，而不是靠调参数碰运气】
 *   - 背景图直接挂在 .studio-frame-wrap 上（background-size: cover）。
 *     cover 由定义保证「至少铺满容器」，任何图片比例、任何视口比例都不会留白。
 *   - 前景 <img> 只负责承载语义（alt/LCP）与主体清晰度，用 object-fit: cover。
 *   - 高度用 --header-h（JS 实测导航栏）+ 100svh，并保留 min-height 兜底，
 *     保证「一屏」这个意图在各浏览器下一致。
 * ============================================================= */
.studio-frame-wrap {
  position: relative;
  width: 100%;
  min-height: 480px;                          /* 极矮屏兜底 */
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));     /* svh：移动端地址栏收起时不跳动 */
  margin: 0;
  padding: 0;
  overflow: hidden;                           /* 裁掉模糊层的溢出边 */
  line-height: 0;

  /* 铺满的第一道保证：容器自带 cover 背景，图没加载完也不会露白。
     默认图写在 var() 回退值里（路径相对样式表，解析正确）；
     JS 注入 --hero-bg 时会覆盖成后台下发的图。 */
  background-color: #0b1224;
  background-image: var(--hero-bg, url('../assets/images/bg-lookearth-16x9.jpg'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 模糊兜底层：压暗并柔化，让前景文字更清晰。
   同样走 var() 回退值，避免与前景图不一致导致 404。 */
.studio-frame-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg, url('../assets/images/bg-lookearth-16x9.jpg'));
  background-size: cover;
  background-position: center;
  filter: blur(2px) brightness(0.72) saturate(0.95);
  transform: translateZ(0);
  pointer-events: none;
}

.studio-frame {
  position: relative;         /* 盖在 ::before 之上 */
  display: block;
  width: 100%;
  height: 100%;
  /* cover 由定义保证铺满容器，永不留白。
     与容器背景同为 cover ⇒ 两者裁切一致，边缘不会出现错位。 */
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* =============================================================
 * —— 首屏内容层（叠加在背景图上）——
 * 布局：整块绝对定位居中，flex 竖排，间距由 gap 控制
 * ============================================================= */
.studio-hero {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: var(--space-lg) var(--space-lg) 4.2rem;
  text-align: center;
  pointer-events: none;   /* 不挡背景图的点击 */
  padding: var(--space-lg) var(--space-lg) 15rem;
}

.studio-hero a,
.studio-hero li {
  pointer-events: auto;   /* 内部可交互元素恢复 */
}

/* —— 顶部小标签：两侧细线 + 字—— */
.studio-kicker {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 1.5rem;
  font-size: clamp(0.7rem, 1.15vw, 4rem);
  font-weight: 500;
  letter-spacing: 0.42em;   /* 字间距拉宽，接近截图的疏朗感 */
  text-indent: 0.42em;/* 补偿末位间距，保证视觉居中 */
  color: var(--text-secondary);
  text-transform: uppercase;
}

.studio-kicker-line {
  width: clamp(28px, 4.2vw, 54px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-border), transparent);
}

.studio-kicker-text {
  white-space: nowrap;
}

/* —— 主标题：金属渐变字+ 顶部光柱——
 * 关键三层：
 *   1) background-clip:text 渐变填充 → 金属质感
 *   2) filter:drop-shadow 暖金光晕→ "被照亮"的感觉
 *   3) ::before 顶部光柱 → 截图里那道光
 * 全部纯 CSS，文字仍是真实文本，可选中、可被搜索引擎收录。
 */
.studio-slogan {
  position: relative;
  margin: 0;
  line-height: 1.16;
}

.studio-slogan-text {
  position: relative;
  display: inline-block;
  font-size: clamp(2.1rem, 6vw, 7rem);
  font-weight: 700;
  letter-spacing: 0.015em;
  background: linear-gradient(180deg,
      #fffdf3 0%,
      #f8e8b8 34%,
      #e6bb63 60%,
      #b8843a 88%,
      #8a5f26 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;          /* 必须透明，否则盖住渐变 */
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 24px rgba(224, 174, 60, 0.34))
    drop-shadow(0 3px 5px rgba(0, 0, 0, 0.85));
}

/* 顶部光柱：椭圆径向渐变 + 模糊，模拟光从上方洒下 */
.studio-slogan-text::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: -0.14em;
  height: 0.26em;
  /*background: radial-gradient(ellipse at 50% 100%,
      rgba(255, 232, 168, 0.92) 0%,
      rgba(255, 206, 110, 0.42) 42%,
      rgba(255, 196, 90, 0.12) 64%,
      transparent 78%);*/
  filter: blur(8px);
  pointer-events: none;
  z-index: -1;
}

/* 底部暗影：压出厚度，避免字飘在图上 */
.studio-slogan-text::after {
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -0.04em;
  height: 0.16em;
  /*background: radial-gradient(ellipse at 50% 0%,
      rgba(0, 0, 0, 0.55) 0%,
      transparent 72%);*/
  filter: blur(5px);
  pointer-events: none;
  z-index: -1;
}

/* —— 副标题 —— */
.studio-subtitle {
  margin: 2rem;
  font-size: clamp(0.92rem, 1.55vw, 1.12rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}

/* —— 标语小字（「让 AI 从想法走向实践」）——
 * 必须用独立 class，不能复用 .studio-slogan-text ——
 * 那是主标题的样式（clamp 上限 4.9rem），共用会把小字也放大成主标题。 */
.studio-tagline {
  margin: 1rem 0 0;
  line-height: 1.5;
  text-align: center;
}

.studio-tagline-text {
  display: inline-block;
  font-size: clamp(1rem, 1.15vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85);
}

/* —— 四个能力标签胶囊 —— */
.studio-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 0.7rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.studio-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  font-size: clamp(0.8rem, 1.15vw, 0.92rem);
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(28, 22, 8, 0.34);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.studio-tag:hover {
  background: rgba(58, 44, 16, 0.5);
  border-color: var(--accent-ink);
  transform: translateY(-1px);
}

.studio-tag-icon {
  font-size: 1.02em;
  line-height: 1;
}

/* —— 行动按钮 ——
 * 首屏唯一的主 CTA，做得比常规按钮更醒目：
 * 更大的字号、内边距与最小宽度，触摸目标也更好按。 */
.studio-actions {
  display: flex;
  justify-content: center;
  margin-top: 10rem;
}

.studio-btn {
  pointer-events: auto;
  min-width: 220px;                /* 视觉上的「主按钮」体量 */
  padding: 1.02rem 2.9rem;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 999px;            /* 与下方胶囊标签保持同一形态 */
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
}

.studio-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(224, 174, 60, 0.3);
}

/* —— 底部特性条 —— */
.studio-features {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.9rem;
  margin: 0;
  padding: 0 var(--space-lg);
  list-style: none;
}

.studio-feature {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: clamp(0.74rem, 1.05vw, 0.85rem);
  font-weight: 500;
  color: var(--text-secondary);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

.studio-feature-icon {
  font-size: 1.05em;
  line-height: 1;
  filter: drop-shadow(0 0 5px rgba(224, 174, 60, 0.4));
}

/* —— 延迟入场：图片解码完成后整块淡入，比图片晚约 0.5s —— */
.studio-hero {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.85s ease, transform 0.85s ease;
  transition-delay: 0.5s;
  will-change: opacity, transform;
}

.studio-hero.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 无障碍：用户偏好减少动效时直接显示，不做延迟 */
@media (prefers-reduced-motion: reduce) {
  .studio-hero {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .studio-slogan-text::before,
  .studio-slogan-text::after {
    filter: none;
  }
}

/* ===== 联系我们弹窗 ===== */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.contact-modal[hidden] {
  display: none;
}

.contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 22, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.contact-dialog {
  position: relative;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--bg-card-solid);
  border: 1.5px solid var(--accent-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-elevated);
  text-align: center;
}

.contact-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-secondary);
  background: rgba(22, 22, 26, 0.04);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.contact-close:hover {
  color: var(--text-primary);
  background: rgba(22, 22, 26, 0.07);
}

.contact-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.contact-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 460px;
  margin: 0 auto;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.qr-card {
  background: rgba(22, 22, 26, 0.028);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
}

.qr-frame {
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  max-width: 240px;
  margin: 0 auto var(--space-md);
}

.qr-frame img {
  width: 100%;
  border-radius: 8px;
}

.qr-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.qr-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== 关于页面 ===== */
.article-section {
  padding: var(--space-4xl) 0 var(--space-3xl);
}

.article {
  max-width: 760px;
  margin: 0 auto;
}

.article-hero {
  text-align: center;
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border);
}

.article-hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: var(--space-md);
}

.article-hero .lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.article-meta {
  margin-top: var(--space-lg);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 正文里的引导段（比普通段落大一号、颜色更深） */
.article-lead {
  font-size: 1.05rem !important;
  color: var(--text-primary) !important;
}

/* 正文里的无序列表（商务合作类型、要点枚举等） */
.article-list {
  list-style: none;
  margin: 0 0 var(--space-lg);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.article-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.article h2 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 500;
  line-height: 1.35;
  margin: var(--space-3xl) 0 var(--space-md);
  padding-left: 0.85rem;
  border-left: 3px solid var(--accent-border);
}

.article p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.article p.quote {
  color: var(--text-primary);
  font-size: 1.05rem;
  padding-left: var(--space-lg);
  border-left: 2px solid var(--accent-light);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-2xl) 0;
}

.article-tags span {
  font-size: 0.85rem;
  color: var(--accent-ink);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
}

.article-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: var(--space-3xl) 0;
  color: var(--accent-ink);
  font-size: 0.85rem;
}

.article-divider::before,
.article-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.article-cta {
  margin-top: var(--space-2xl);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  background: rgba(20, 32, 62, 0.72);
  border: 1.5px solid var(--accent-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.article-cta h2 {
  border: none;
  padding: 0;
  margin: 0 0 var(--space-sm);
}

.article-cta p {
  max-width: 460px;
  margin: 0 auto var(--space-lg);
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

/* ===== 关于页面 · 左侧目录 ===== */
.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: start;
}

.article-toc {
  position: sticky;
  top: 96px;
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.toc-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-ink);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.toc-nav {
  display: flex;
  flex-direction: column;
}

.toc-nav a {
  display: block;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
  padding: 0.45rem 0 0.45rem 0.75rem;
  border-left: 2px solid var(--border);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.toc-nav a[hidden] {
  display: none;
}

.toc-nav a:hover {
  color: var(--text-primary);
}

.toc-nav a.active {
  color: var(--accent-ink);
  border-left-color: var(--accent-ink);
  background: linear-gradient(90deg, var(--accent-light), transparent 70%);
}

/* 二级目录（案例步骤） */
.toc-nav a.toc-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.32rem 0 0.32rem 1.5rem;
  border-left-color: transparent;
}

.toc-nav a.toc-sub:hover {
  color: var(--text-secondary);
  border-left-color: var(--border);
}

.toc-nav a.toc-sub.active {
  color: var(--accent-ink);
  border-left-color: var(--accent-ink);
  background: linear-gradient(90deg, var(--accent-light), transparent 70%);
}

.article h2 {
  scroll-margin-top: 96px;
}

@media (max-width: 1080px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .article-toc {
    position: static;
  }

  .toc-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-xs);
  }

  .toc-nav a {
    border-left: none;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    font-size: 0.82rem;
  }

  .toc-nav a.active {
    border-color: var(--accent-border);
    background: var(--accent-light);
  }

  /* 窄屏下二级目录不占空间，只保留一级条目 */
  .toc-nav a.toc-sub {
    display: none;
  }
}

@media (max-width: 768px) {
  /* 移动端沿用「模糊层填满 + 前景图完整」的结构，只是高度改用移动端导航栏高度。
     不再按图片比例压矮容器 —— 那样只有 150px 左右高度，装不下六层内容。 */
  .studio-frame-wrap {
    padding: 0;
    min-height: 560px;
    height: calc(100vh - var(--header-h));
    height: calc(100svh - var(--header-h));
  }

  /* 手机竖屏是 0.5 左右的比例，16:9 的图用 cover 会裁掉左右 60%~128%。
     这里仍然保持 cover（而不是 contain）：cover 保证铺满、绝不露白，
     contain 才是「铺不满」的元凶。构图上通过 object-position 保留
     居中偏右的地球，其余交给 ::before 模糊层压暗，不影响可读性。 */
  .studio-frame {
    height: 100%;
    object-fit: cover;
    object-position: 62% center;   /* 偏向右侧，保住地球这个视觉主体 */
  }

  .studio-frame-wrap::before {
    filter: blur(3px) brightness(0.66) saturate(0.9);
  }

  /* 首屏内容压缩：一屏装不下全部元素，减小间距与字号 */
  .studio-hero {
    padding: var(--space-md) var(--space-md) 3.2rem;
  }

  .studio-kicker {
    margin-bottom: 0.6rem;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
  }

  .studio-slogan-text {
    font-size: clamp(1.7rem, 7.4vw, 2.6rem);
  }

  .studio-subtitle {
    margin-top: 0.75rem;
    font-size: 0.86rem;
    letter-spacing: 0.02em;
  }

  .studio-tags {
    gap: 0.4rem 0.45rem;
    margin-top: 1rem;
  }

  .studio-tag {
    padding: 0.36rem 0.7rem;
    font-size: 0.76rem;
  }

  .studio-tagline {
    margin-top: 1rem;
  }

  .studio-tagline-text {
    font-size: 0.78rem;
    letter-spacing: 0.05em;
  }

  .studio-actions {
    margin-top: 1.3rem;
  }

  /* 移动端按钮虽比桌面小，但仍要保证触摸目标 ≥44px 高 */
  .studio-btn {
    min-width: 180px;
    padding: 0.85rem 2.2rem;
    font-size: 1.02rem;
    font-weight: 700;
  }

  .studio-features {
    bottom: 1rem;
    gap: 0.35rem 1.1rem;
  }

  .studio-feature {
    font-size: 0.7rem;
  }

  .qr-grid {
    grid-template-columns: 1fr;
  }

  .contact-dialog {
    padding: var(--space-xl) var(--space-md);
  }
}

/* 平板竖屏（768px~1024px）：容器比例约 0.8~1.0。
   同样保持 cover 以保证铺满；原先的 contain 会让上下留白。 */
@media (min-width: 769px) and (max-width: 1024px) {
  .studio-frame {
    object-fit: cover;
    object-position: 58% center;
  }
}

/* 超窄屏：特性条隐藏，避免挤成一团 */
@media (max-width: 420px) {
  .studio-features {
    display: none;
  }

  .studio-hero {
    padding-bottom: var(--space-lg);
  }
}

/* ===== 案例页 ===== */
.cases-hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center;
  background: linear-gradient(180deg, #fdfaf1 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}

.cases-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.cases-hero-sub {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.cases-section {
  padding: var(--space-2xl) 0 var(--space-4xl);
}

/* 分类切换 */
.case-tabs {
  position: sticky;
  top: 76px;
  z-index: 90;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-2xl);
  padding: var(--space-sm);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow-x: auto;
  scrollbar-width: none;
}

.case-tabs::-webkit-scrollbar {
  display: none;
}

.case-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.case-tab:hover {
  color: var(--text-primary);
  border-color: var(--accent-border);
}

.case-tab.active {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent-ink);
  box-shadow: 0 6px 20px rgba(224, 174, 60, 0.22);
}

.case-tab-icon {
  font-size: 1rem;
  line-height: 1;
}

/* 案例章节 */
.case-content {
  max-width: 960px;
  margin: 0 auto;
}

.article-layout-single {
  grid-template-columns: 1fr;
}

.case-section {
  scroll-margin-top: 170px;
  margin-bottom: var(--space-3xl);
}

/* 目录跳转锚点：案例步骤 */
.case-steps li[id] {
  scroll-margin-top: 190px;
}

/* 大方块：把步骤块包成一个整体 */
.case-block {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
  scroll-margin-top: 170px;
}

.case-block .case-head {
  margin-bottom: var(--space-xl);
}

/* 案例占位 */
.case-placeholder {
  border: 1px dashed var(--accent-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2xl);
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  background: rgba(22, 22, 26, 0.022);
}

/* 左侧目录（案例页） */
.case-toc {
  top: 170px;
}

@media (max-width: 1080px) {
  .case-tabs {
    top: 70px;
    justify-content: flex-start;
  }

  .case-toc {
    position: static;
  }

  .case-section {
    scroll-margin-top: 140px;
  }
}

/* 面板内二级切换 */
.case-subtabs {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.case-subtab {
  padding: 0.45rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.case-subtab:hover {
  color: var(--text-primary);
  border-color: var(--accent-border);
}

.case-subtab.active {
  color: var(--accent-ink);
  background: var(--accent-light);
  border-color: var(--accent-border);
}

.case-empty-sub {
  max-width: 720px;
}

.case-head {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.case-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  margin-bottom: var(--space-md);
}

.case-head h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: var(--space-md);
}

.case-head p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* 步骤流 */
.case-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-rows: 1fr;
  gap: var(--space-2xl);
}

.case-step {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--space-xl);
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
}

.case-step-reverse {
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
}

.case-step-reverse .case-step-text {
  order: 2;
}

.case-step-reverse .case-figure {
  order: 1;
}

.case-step-num {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-ink);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.case-step-text h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.case-step-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.case-figure {
  margin: 0;
  background: #f5f1e6;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.case-figure:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
}

.case-figure img {
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

/* 步骤图统一高度：图片过高时缩小（完整显示、居中），保证各步骤块高度一致 */
.case-steps .case-figure img {
  max-height: 340px;
  object-fit: contain;
}

.case-figure figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.6rem 0.9rem;
  border-top: 1px solid var(--border);
}

.case-step-full {
  display: block;
}

.case-step-full .case-step-text {
  max-width: 640px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}

/* 成品图集 */
.case-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
}

/* 单张成品图：居中、限制宽度 */
.case-gallery-1 {
  grid-template-columns: minmax(0, 340px);
  justify-content: center;
}

/* 单图高度与多图画廊的小图保持一致，避免该步骤把整块撑高 */
.case-gallery-1 .case-shot img {
  max-height: 200px;
  object-fit: contain;
}

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

.case-shot {
  margin: 0;
  background: #f5f1e6;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.case-shot:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--accent-border);
}

.case-shot img {
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.case-shot figcaption {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.55rem 0.5rem;
  border-top: 1px solid var(--border);
}

.case-cta-row {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

/* 更多真实生成案例 */
.case-more {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border);
  scroll-margin-top: 170px;
}

.case-more-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-xl);
}

.case-more-head h3 {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: var(--space-md);
}

.case-more-head p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.case-more-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  align-items: stretch;
}

.case-more-shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #f5f1e6;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.case-more-shot:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--accent-border);
}

.case-more-shot img {
  width: 100%;
  height: auto;
  flex: 1;
  object-fit: cover;
  object-position: top;
  cursor: zoom-in;
}

.case-more-shot figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.6rem 0.8rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
  flex-shrink: 0;
}

/* 占位面板 */
.case-empty {
  max-width: 620px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px dashed var(--accent-border);
  border-radius: var(--radius-card);
}

.case-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  font-size: 1.8rem;
  background: rgba(22, 22, 26, 0.04);
  border-radius: 18px;
  margin-bottom: var(--space-lg);
}

.case-empty h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: var(--space-md);
}

.case-empty p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.case-tags span {
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: rgba(22, 22, 26, 0.035);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
}

/* 图片放大查看 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 22, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-body {
  position: relative;
  margin: 0;
  max-width: min(920px, 92vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.lightbox-body img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-elevated);
}

.lightbox-body figcaption {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: var(--space-md);
}

.lightbox-close {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-primary);
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  z-index: 1;
}

.lightbox-close:hover {
  color: var(--accent-ink);
}

@media (max-width: 900px) {
  .case-step,
  .case-step-reverse {
    grid-template-columns: 1fr;
  }

  .case-step-reverse .case-step-text {
    order: 1;
  }

  .case-step-reverse .case-figure {
    order: 2;
  }

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

  .case-gallery-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-more-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .case-gallery {
    grid-template-columns: 1fr;
  }
}

/* =============================================================
   ===== 新闻模块 =====
   复用既有 token 与卡片风格，新增类统一以 .news- 前缀
   ============================================================= */

/* --- 列表页头部 --- */
.news-hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center;
  background: linear-gradient(180deg, #fdfaf1 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}

.news-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.news-hero-sub {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.news-section {
  padding: var(--space-2xl) 0 var(--space-4xl);
}

/* --- 栏目条 + 搜索 --- */
.news-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  padding: var(--space-sm);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  scroll-margin-top: 90px;
}

.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  min-width: 0;
}

.news-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.news-tab:hover {
  color: var(--text-primary);
  background: rgba(22, 22, 26, 0.035);
}

.news-tab.active {
  color: var(--accent-ink);
  background: var(--accent-light);
  border-color: var(--accent-border);
}

.news-tab-icon {
  font-size: 0.9rem;
}

.news-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 1 260px;
  min-width: 180px;
}

.news-search input {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.9rem;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-primary);
  background: rgba(22, 22, 26, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.news-search input::placeholder {
  color: var(--text-muted);
}

.news-search input:focus {
  border-color: var(--accent-border);
  background: rgba(22, 22, 26, 0.055);
}

.news-search button {
  flex-shrink: 0;
  padding: 0.45rem 1rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--on-accent);
  background: var(--accent);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.news-search button:hover {
  opacity: 0.88;
}

/* --- 卡片网格 --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: stretch;
}

.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(224, 174, 60, 0.2);
}

.news-card-cover {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.news-card-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-card:hover .news-card-cover img {
  transform: scale(1.04);
}

.news-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.35rem 1.35rem;
}

.news-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.news-flag {
  font-weight: 700;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
}

.news-cat {
  color: var(--accent-ink);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
}

.news-card-title {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: var(--space-sm);
}

.news-card-title a {
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.news-card:hover .news-card-title a {
  color: var(--accent-ink);
}

.news-card-summary {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.news-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
}

.news-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.news-card-tags span {
  font-size: 0.74rem;
  color: var(--text-secondary);
  background: rgba(22, 22, 26, 0.035);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

.news-card-more {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-ink);
}

/* 无封面卡：靠左侧竖线做视觉区分，避免整片平铺 */
.news-card-plain {
  background: #ffffff;
}

.news-card-plain .news-card-body {
  border-left: 3px solid var(--accent-border);
  padding-left: 1.1rem;
}

/* --- 骨架屏 --- */
.news-card-skeleton {
  pointer-events: none;
}

.news-card-skeleton:hover {
  transform: none;
  box-shadow: var(--shadow-card);
  border-color: var(--border);
}

.sk-cover {
  aspect-ratio: 16 / 9;
  background: rgba(22, 22, 26, 0.035);
}

.sk-line {
  height: 0.8rem;
  margin-bottom: 0.75rem;
  border-radius: 6px;
  background: linear-gradient(90deg,
    rgba(22, 22, 26, 0.035) 0%,
    rgba(22, 22, 26, 0.07) 50%,
    rgba(22, 22, 26, 0.035) 100%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.4s ease-in-out infinite;
}

.sk-w40 { width: 40%; }
.sk-w70 { width: 70%; }
.sk-w90 { width: 90%; }

@keyframes sk-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- 分页 --- */
.news-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-3xl);
}

.pager-btn {
  min-width: 38px;
  padding: 0.42rem 0.85rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.pager-btn:hover:not([disabled]) {
  color: var(--text-primary);
  border-color: var(--accent-border);
}

.pager-btn.active {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent-ink);
}

.pager-btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

.pager-total {
  margin-left: var(--space-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- 空状态 --- */
.empty-state {
  grid-column: 1 / -1;
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  border: 1px dashed var(--accent-border);
  border-radius: var(--radius-card);
  background: rgba(22, 22, 26, 0.022);
}

.empty-icon {
  display: block;
  font-size: 2rem;
  color: var(--accent-ink);
  margin-bottom: var(--space-sm);
}

.empty-state p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --- 详情页 --- */
.news-detail-hero {
  padding: var(--space-3xl) 0 0;
}

.news-detail-layout {
  padding: var(--space-2xl) 0 var(--space-4xl);
}

.news-article {
  max-width: 760px;
  margin: 0 auto;
}

.news-detail-cover {
  margin: var(--space-2xl) 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.news-detail-cover img {
  width: 100%;
  height: auto;
}

.news-content {
  margin-top: var(--space-xl);
}

.news-content h2 {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 500;
  line-height: 1.35;
  margin: var(--space-2xl) 0 var(--space-md);
  padding-left: 0.85rem;
  border-left: 3px solid var(--accent-border);
  scroll-margin-top: 96px;
}

.news-content h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin: var(--space-xl) 0 var(--space-sm);
  color: var(--text-primary);
}

.news-content p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.news-content ul,
.news-content ol {
  margin: 0 0 var(--space-lg);
  padding-left: 1.4rem;
  list-style: revert;
  color: var(--text-secondary);
  line-height: 1.9;
}

.news-content li {
  margin-bottom: var(--space-xs);
}

.news-content img {
  width: 100%;
  height: auto;
  margin: var(--space-lg) 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.news-content a {
  color: var(--accent-ink);
  border-bottom: 1px solid var(--accent-border);
}

.news-content blockquote {
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  border-left: 2px solid var(--accent-light);
  background: rgba(22, 22, 26, 0.028);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.news-content blockquote p {
  margin-bottom: 0;
  color: var(--text-primary);
}

.news-content table {
  width: 100%;
  margin: var(--space-lg) 0;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.news-content th,
.news-content td {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  text-align: left;
  color: var(--text-secondary);
}

.news-content th {
  color: var(--text-primary);
  background: rgba(22, 22, 26, 0.035);
  font-weight: 600;
}

.news-content pre {
  margin: var(--space-lg) 0;
  padding: var(--space-lg);
  overflow-x: auto;
  background: #2b2415;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.7;
}

.news-content code {
  font-size: 0.88em;
  color: var(--accent-ink);
}

.news-content pre code {
  color: var(--text-secondary);
}

.news-source {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: var(--space-md);
  word-break: break-all;
}

/* --- 上一篇 / 下一篇 --- */
.news-neighbors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.neighbor {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.neighbor:not(.neighbor-empty):hover {
  border-color: var(--accent-border);
  background: rgba(20, 32, 62, 0.8);
}

.neighbor-next {
  text-align: right;
}

.neighbor-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
  text-transform: uppercase;
}

.neighbor-title {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.neighbor-empty {
  background: transparent;
  border-style: dashed;
  opacity: 0.4;
}

/* --- 侧栏（详情页右侧/左侧目录） --- */
.news-toc {
  position: sticky;
  top: 96px;
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.news-toc[hidden] {
  display: none;
}

/* --- 面包屑与返回 --- */
.news-article-wrap {
	width:900px;
}

.news-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-xl);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.news-breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.news-back {
  display: flex;
  justify-content: center;
  margin-top: var(--space-2xl);
}

/* --- 首页新闻预览区 --- */
.home-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.home-news-more {
  display: flex;
  justify-content: center;
  margin-top: var(--space-2xl);
}

/* --- 响应式 --- */
@media (max-width: 1080px) {
  .news-grid,
  .home-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}@media (max-width: 768px) {
  .news-toolbar {
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-card);
    padding: var(--space-md);
  }

  .news-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.15rem;
  }

  .news-search {
    flex: 1 1 auto;
  }

  .news-neighbors {
    grid-template-columns: 1fr;
  }

  .neighbor-next {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .news-grid,
  .home-news-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================================
   ===== 收银台（充值支付）=====
   类名统一 .checkout- 前缀，浮层结构复用 .contact-modal 的质感
   ============================================================= */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.checkout-modal[hidden] {
  display: none;
}

.checkout-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 20, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.checkout-dialog {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: calc(100vh - 2 * var(--space-lg));
  overflow-y: auto;
  padding: var(--space-2xl);
  background: linear-gradient(180deg, #fdfaf1 0%, #ffffff 100%);
  border: 1.5px solid var(--accent-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-elevated);
}

.checkout-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.checkout-close:hover {
  color: var(--accent-ink);
  background: rgba(22, 22, 26, 0.04);
}

.checkout-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 400;
  margin-bottom: var(--space-xl);
}

/* --- 双列布局 --- */
.checkout-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--space-2xl);
}

.checkout-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

/* --- 商品卡 --- */
.checkout-goods {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1.5px solid var(--accent-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 1px rgba(224, 174, 60, 0.05);
}

.checkout-goods-check {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(224, 174, 60, 0.26);
}

.checkout-goods-info h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.checkout-goods-price {
  color: var(--accent-ink);
  font-size: 1rem;
}

/* 收银台里的划线原价 */
.checkout-goods-original {
  margin-right: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted, #8b8b94);
  text-decoration: line-through;
}

.checkout-goods-price strong {
  font-size: 1.7rem;
  font-weight: 700;
}

.checkout-goods-unit {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 0.3rem;
}

.checkout-goods-credit {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

/* --- 订单明细 --- */
.checkout-detail {
  padding: var(--space-md) var(--space-lg);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.checkout-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0.55rem 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.checkout-detail-row:last-child {
  border-bottom: none;
}

.checkout-detail-total {
  padding-top: var(--space-md);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.checkout-amount {
  color: var(--accent-ink);
  font-size: 1.5rem;
  font-weight: 700;
}

/* --- 支付方式 --- */
.checkout-pay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.checkout-method {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  padding: 0.8rem var(--space-md);
  text-align: left;
  font-family: inherit;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.checkout-method:hover:not(.disabled) {
  border-color: var(--accent-border);
}

.checkout-method.active {
  border-color: var(--accent-ink);
  background: var(--accent-light);
}

.checkout-method.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.checkout-method-icon {
  flex-shrink: 0;
  font-size: 1.3rem;
}

.checkout-method-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.checkout-method-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.checkout-method-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.checkout-method-radio {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 50%;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.checkout-method.active .checkout-method-radio {
  border-color: var(--accent-ink);
  background: radial-gradient(circle, var(--accent) 0 40%, transparent 45%);
}

/* --- 确认按钮 --- */
.checkout-confirm {
  width: 100%;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
}

.checkout-confirm:disabled {
  opacity: 0.6;
  cursor: wait;
}

.checkout-confirm-amount {
  font-weight: 700;
}

.checkout-tip {
  margin-top: var(--space-md);
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
}

.checkout-tip a {
  color: var(--accent-ink);
  border-bottom: 1px solid var(--accent-border);
}

/* --- 扫码视图 --- */
.checkout-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-lg) 0 var(--space-md);
}

.checkout-qr-amount {
  color: var(--accent-ink);
  font-size: 1.1rem;
}

.checkout-qr-amount strong {
  font-size: 2.2rem;
  font-weight: 700;
}

.checkout-qr-hint {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: var(--space-sm) 0 var(--space-lg);
}

.checkout-qr-frame {
  position: relative;
  padding: 14px;
  background: #f8f5ec;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 1.5px var(--accent-border), 0 14px 40px rgba(0, 0, 0, 0.4);
}

.checkout-qr-frame img {
  display: block;
}

/* 支付方式官方品牌图标（内联 SVG） */
.checkout-method-icon svg {
  display: block;
}
.checkout-method.disabled .checkout-method-icon svg {
  opacity: 0.55;
}

.checkout-qr-expired {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-sm);
}

/* hidden 属性必须能压过上面的 display:flex */
.checkout-qr-expired[hidden] {
  display: none;
}

.checkout-qr-expired p {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.checkout-countdown {
  margin-top: var(--space-md);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.checkout-countdown strong {
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}

.checkout-order-no {
  margin-top: var(--space-xs);
  font-size: 0.76rem;
  color: var(--text-muted);
  word-break: break-all;
}

.checkout-back-link {
  margin-top: var(--space-lg);
  padding: 0.3rem 0.6rem;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.checkout-back-link:hover {
  color: var(--accent-ink);
}

/* --- 成功 / 出错视图 --- */
.checkout-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-xl) 0 var(--space-lg);
}

.checkout-success-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(224, 174, 60, 0.13), 0 10px 30px rgba(224, 174, 60, 0.22);
  margin-bottom: var(--space-lg);
}

.checkout-error-icon {
  background: #e06a5a;
  box-shadow: 0 0 0 6px rgba(224, 106, 90, 0.12), 0 10px 30px rgba(224, 106, 90, 0.2);
}

.checkout-success-text {
  max-width: 380px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.checkout-success-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* --- 响应式 --- */
@media (max-width: 820px) {
  .checkout-dialog {
    padding: var(--space-xl) var(--space-md);
  }

  .checkout-cols {
    grid-template-columns: 1fr;
  }
}

/* =============================================================
 * 使用教程页（tutorial.html）
 * ============================================================= */
.tut-hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.tut-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin-top: var(--space-sm);
  letter-spacing: 0.01em;
}

.tut-hero-sub {
  margin-top: var(--space-md);
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

.tut-section {
  padding: var(--space-2xl) 0 var(--space-4xl);
}

.tut-list {
  display: grid;
  /* ⚠️ 必须写 min(320px, 100%)，不能直接写 320px。
     auto-fill + minmax(320px, 1fr) 在容器窄于 320px 时，
     轨道不会缩到容器宽度以下，而是硬撑到 320px 造成横向溢出。
     min() 让下限取「320px 和容器宽度」里较小的那个。 */
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: var(--space-lg);
}

.tut-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tut-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-border);
}

.tut-thumb {
  position: relative;
  background: #0b1224;
  border-bottom: 1px solid var(--border);
  /* aspect-ratio 由 JS 按每篇教程图片的实际比例注入 */
  aspect-ratio: 1843 / 909;
  overflow: hidden;
}

.tut-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

.tut-count {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 999px;
}

.tut-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  flex: 1;
}

.tut-body h3 {
  font-size: 1.15rem;
}

.tut-body p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  flex: 1;
}

.tut-body .btn {
  align-self: flex-start;
}

.tut-card.is-done .tut-count {
  background: rgba(120, 200, 150, 0.9);
}

/* =============================================================
 * 分步操作指引层（spotlight 聚光灯）
 * ============================================================= */
.tguide {
  position: fixed;
  inset: 0;
  z-index: 400;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.tguide.is-open {
  opacity: 1;
}

.tguide-mask {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

/* 舞台：承载截图与镂空，定位坐标系原点在它左上角 */
.tguide-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.2rem 1rem 1rem;
}

.tguide-shot {
  max-width: 100%;
  max-height: calc(100vh - 4.2rem);
  width: auto;
  height: auto;
  border-radius: 10px;
  /* 截图本身是浅色 UI，加一点边框与阴影与暗色页面区分 */
  border: 1px solid var(--border);
  box-shadow: var(--shadow-elevated);
}

/* 镂空框：box-shadow 大扩散形成遮罩，自身透明露出截图 */
.tguide-hole {
  position: absolute;
  border-radius: 10px;
  pointer-events: none;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 9999px rgba(6, 10, 22, 0.74);
  transition: left 0.32s ease, top 0.32s ease,
              width 0.32s ease, height 0.32s ease;
}

/* 提示面板 */
.tguide-panel {
  position: absolute;
  left: 50%;
  top: 1rem;
  transform: translateX(-50%);
  width: min(640px, calc(100vw - 2rem));
  background: var(--bg-card-solid);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-elevated);
  padding: var(--space-lg);
}

.tguide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.tguide-stepno {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-ink);
  letter-spacing: 0.06em;
}

.tguide-x {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.2rem;
  transition: color 0.2s ease;
}

.tguide-x:hover {
  color: var(--text-primary);
}

.tguide-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.tguide-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.tguide-dots {
  display: flex;
  gap: 0.4rem;
  margin: var(--space-lg) 0 var(--space-md);
}

.tguide-dot {
  width: 26px;
  height: 4px;
  border-radius: 2px;
  background: rgba(22, 22, 26, 0.13);
  transition: background-color 0.2s ease;
}

.tguide-dot.is-past {
  background: rgba(224, 174, 60, 0.4);
}

.tguide-dot.is-active {
  background: var(--accent);
}

.tguide-actions {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
}

.tguide-actions .btn {
  min-width: 108px;
}

.tguide-actions .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 移动端：面板放底部，截图上移 */
@media (max-width: 768px) {
  .tguide-stage {
    padding: 1rem 0.75rem 14.5rem;
  }

  .tguide-shot {
    max-height: 46vh;
  }

  .tguide-panel {
    left: 0.75rem;
    right: 0.75rem;
    top: auto;
    bottom: 0.75rem;
    transform: none;
    width: auto;
    max-height: 13.5rem;
    overflow-y: auto;
    padding: var(--space-md);
  }

  .tguide-title {
    font-size: 1.08rem;
  }

  .tguide-desc {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .tguide-dots {
    margin: var(--space-md) 0 var(--space-sm);
  }

  .tguide-actions .btn {
    flex: 1;
    min-width: 0;
  }
}

/* 无障碍：减少动效时不做过渡与位移动画 */
@media (prefers-reduced-motion: reduce) {
  .tguide,
  .tguide-hole {
    transition: none;
  }
}



/* =============================================================
 * 数据加载状态
 * -------------------------------------------------------------
 * 页面内容从后台接口异步拉取时，先显示占位骨架，避免内容突然跳动。
 * 用法：容器加 data-render="xxx"，js/page-data.js 自动加 is-loading 类
 * ============================================================= */
[data-render].is-loading {
  position: relative;
  min-height: 120px;
}

[data-render].is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background:
    linear-gradient(90deg,
      rgba(127, 119, 221, 0.06) 25%,
      rgba(127, 119, 221, 0.12) 37%,
      rgba(127, 119, 221, 0.06) 63%);
  background-size: 400% 100%;
  animation: ygs-skeleton 1.4s ease infinite;
}

@keyframes ygs-skeleton {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* 降级提示：接口不可用时可在控制台看到，不打扰用户 */
@media (prefers-reduced-motion: reduce) {
  [data-render].is-loading::after { animation: none; }
}

/* 案例图片条：接口渲染时用 */
.case-image-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: thin;
}

.case-image-strip img {
  flex: 0 0 auto;
  height: 160px;
  border-radius: 8px;
  object-fit: cover;
}

/* 划线原价的样式已并入上面的 .price-original / .price-original-row 规则 */


/* =============================================================
 * —— AI 对话框（js/ai-chat.js）——
 * 颜色全部取用 :root 里已有的设计 token，主题一改这里自动跟着变。
 * ============================================================= */

.ygs-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9000;
  font-family: var(--font-sans);
  line-height: 1.6;
}

/* ---------- 悬浮按钮 ---------- */
.ygs-chat-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 52px;
  padding: 0 1.25rem 0 1rem;
  color: #1a1408;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #f8e8b8 0%, #e8c46a 100%);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(224, 174, 60, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ygs-chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(224, 174, 60, 0.45);
}

.ygs-chat-fab:active { transform: translateY(0); }

/* 图标：一个简单的对话气泡，用纯 CSS 画，省一个图片请求 */
.ygs-chat-fab-icon {
  position: relative;
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 6px;
}

.ygs-chat-fab-icon::after {
  content: '';
  position: absolute;
  left: 4px;
  bottom: -5px;
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 0 0 0 6px;
  transform: skewY(-30deg);
}

/* 思考中：按钮轻微呼吸，暗示正在请求 */
.ygs-chat-fab.is-busy .ygs-chat-fab-icon {
  animation: ygs-chat-pulse 1.1s ease-in-out infinite;
}

@keyframes ygs-chat-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- 面板 ---------- */
.ygs-chat-panel {
  position: absolute;
  right: 0;
  bottom: 66px;
  display: flex;
  flex-direction: column;
  width: 390px;
  max-width: calc(100vw - 32px);
  height: min(600px, calc(100vh - 120px));
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: ygs-chat-in 0.22s ease;
}

.ygs-chat-panel[hidden] { display: none; }

@keyframes ygs-chat-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- 头部 ---------- */
.ygs-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  background: rgba(20, 32, 62, 0.72);
  border-bottom: 1px solid var(--border);
}

.ygs-chat-head-info {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.ygs-chat-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  color: #1a1408;
  font-size: 1.05rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f8e8b8, #e8c46a);
  border-radius: 50%;
}

.ygs-chat-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.ygs-chat-status {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.ygs-chat-head-actions {
  display: flex;
  gap: 0.25rem;
  flex: 0 0 auto;
}

.ygs-chat-icon-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.ygs-chat-icon-btn:hover {
  color: var(--accent-ink);
  background: var(--accent-light);
}

.ygs-chat-icon-btn svg { width: 18px; height: 18px; }

/* ---------- 消息列表 ---------- */
.ygs-chat-list {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(224, 174, 60, 0.26) transparent;
}

.ygs-chat-list::-webkit-scrollbar { width: 6px; }
.ygs-chat-list::-webkit-scrollbar-thumb {
  background: rgba(224, 174, 60, 0.24);
  border-radius: 999px;
}
.ygs-chat-list::-webkit-scrollbar-track { background: transparent; }

.ygs-msg {
  display: flex;
  max-width: 88%;
}

.ygs-msg--user { align-self: flex-end; justify-content: flex-end; }
.ygs-msg--bot,
.ygs-msg--error { align-self: flex-start; }

.ygs-bubble {
  padding: 0.7rem 0.9rem;
  font-size: 0.92rem;
  border-radius: 16px;
  /* 关键：模型输出不可信，长串英文/URL 必须能断行，否则会撑破面板 */
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ygs-bubble strong { color: var(--accent-ink); font-weight: 700; }
.ygs-bubble code {
  padding: 0.1em 0.35em;
  font-size: 0.88em;
  background: rgba(22, 22, 26, 0.07);
  border-radius: 5px;
}
.ygs-bubble em { color: var(--text-muted); font-style: normal; }

.ygs-msg--bot .ygs-bubble {
  color: var(--text-primary);
  background: #ffffff;
  border: 1px solid var(--border);
  border-bottom-left-radius: 5px;
}

.ygs-msg--user .ygs-bubble {
  color: #1a1408;
  font-weight: 500;
  background: linear-gradient(135deg, #f8e8b8, #e8c46a);
  border-bottom-right-radius: 5px;
}

.ygs-msg--error .ygs-bubble {
  color: #c62828;
  background: rgba(198, 40, 40, 0.09);
  border: 1px solid rgba(255, 120, 120, 0.32);
}

/* 思考中三点动画 */
.ygs-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 2px 0;
}

.ygs-dots i {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: ygs-dot 1.2s ease-in-out infinite;
}

.ygs-dots i:nth-child(2) { animation-delay: 0.16s; }
.ygs-dots i:nth-child(3) { animation-delay: 0.32s; }

@keyframes ygs-dot {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* ---------- 快捷问题 ---------- */
.ygs-chat-quick {
  display: flex;
  flex: 0 0 auto;
  gap: 0.4rem;
  padding: 0 1rem 0.6rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.ygs-chat-quick::-webkit-scrollbar { display: none; }

.ygs-chip {
  flex: 0 0 auto;
  padding: 0.34rem 0.75rem;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.78rem;
  background: #ffffff;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.ygs-chip:hover {
  color: var(--accent-ink);
  background: var(--accent-light);
}

/* ---------- 输入区 ---------- */
.ygs-chat-inputbar {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  flex: 0 0 auto;
  padding: 0.7rem 1rem 0.85rem;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--border);
}

.ygs-chat-input {
  flex: 1 1 auto;
  /* 用 field-sizing 优先，浏览器不支持时由 JS autoGrow 兜底 */
  min-height: 40px;
  max-height: 130px;
  padding: 0.55rem 0.8rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.5;
  background: #faf7ef;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  resize: none;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ygs-chat-input::placeholder { color: var(--text-muted); }

.ygs-chat-input:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.ygs-chat-input:disabled { opacity: 0.55; }

.ygs-chat-send {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #1a1408;
  background: linear-gradient(135deg, #f8e8b8, #e8c46a);
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.ygs-chat-send svg { width: 20px; height: 20px; }
.ygs-chat-send:hover:not(:disabled) { transform: translateY(-1px); }
.ygs-chat-send:disabled { opacity: 0.45; cursor: not-allowed; }

/* 面板打开时，body 加类避免下层内容跟着滚 */
body.ygs-chat-open { overflow: hidden; }

/* ---------- 移动端 ---------- */
@media (max-width: 640px) {
  .ygs-chat {
    right: 16px;
    bottom: 16px;
  }

  .ygs-chat-fab {
    height: 48px;
    padding: 0 1rem;
  }

  .ygs-chat-panel {
    /* 手机上直接铺满可用区域，观感比右下角小窗好得多 */
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    border: 0;
  }

  .ygs-chat-open .ygs-chat-fab { display: none; }

  .ygs-msg { max-width: 92%; }
}

/* ---------- 无障碍：偏好减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .ygs-chat-panel { animation: none; }
  .ygs-chat-fab,
  .ygs-chat-send { transition: none; }
  .ygs-dots i,
  .ygs-chat-fab.is-busy .ygs-chat-fab-icon { animation: none; }
}


/* ============================================================
   Shimmer Skin Layer · 组件语言来自 shimmer，主色取自 logo 奶油金
   ------------------------------------------------------------
   追加层，不改动上方任何原有规则，靠层叠覆盖。
   token 层已把暗金暗底换成亮底，此处补 shimmer 的「组件语言」：
   胶囊按钮 / 大圆角 / 悬浮抬升 / 磨砂顶栏 / 滚动入场。
   ============================================================ */

/* ---------- 1. 胶囊按钮（shimmer 最强的识别符号） ---------- */
.btn {
  border-radius: 999px;
  padding: 0.68rem 1.6rem;
  transition: transform .2s ease, box-shadow .2s ease,
              background-color .2s ease, background .2s ease,
              border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }

/* 金色填充上的字必须是深色 —— 这组关系就是 logo 本身 */
.btn-primary {
  background: linear-gradient(135deg, var(--hero-top) 0%, var(--hero-mid) 100%);
  background-color: var(--hero-mid);
  color: var(--on-accent);
  box-shadow: 0 10px 24px rgba(224, 174, 60, 0.32);
}
.btn-primary:hover {
  box-shadow: 0 16px 36px rgba(224, 174, 60, 0.42);
}

.btn-secondary {
  background: #fff;
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(60, 45, 10, 0.07);
}
.btn-secondary:hover {
  background: var(--bg-soft);
  border-color: var(--accent-border);
  box-shadow: 0 10px 26px rgba(60, 45, 10, 0.11);
}

/* ---------- 2. 卡片：大圆角 + 悬浮抬升 ---------- */
.promise-card,
.plan-card,
.faq-item,
.case-card,
.news-card,
.news-item,
.doc-card,
.tutorial-card,
.neighbor {
  border-radius: var(--radius-card);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.promise-card:hover,
.plan-card:hover,
.case-card:hover,
.news-card:hover,
.news-item:hover,
.doc-card:hover,
.tutorial-card:hover,
.neighbor:not(.neighbor-empty):hover {
  transform: translateY(-5px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-elevated);
}

/* 精选套餐卡：淡金底 + 金描边 */
.plan-card-featured {
  background: var(--accent-light);
  border: 1.5px solid var(--accent-border);
  box-shadow: var(--shadow-elevated);
}

/* ---------- 3. 首屏可读性 ---------- */
/* ⚠️ .studio-hero 是「叠在背景图上」的图层，不属于亮色页面区。
   token 里的 --text-primary 已变成深墨色，若不覆盖，
   首屏文字会变成深字压亮图，基本看不清。
   这里把首屏文字拉回浅色，并加一层渐变蒙版压暗中下部。 */
.studio-frame-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
      rgba(10, 8, 2, 0.40) 0%,
      rgba(10, 8, 2, 0.10) 26%,
      rgba(10, 8, 2, 0.30) 58%,
      rgba(10, 8, 2, 0.60) 88%,
      rgba(10, 8, 2, 0.72) 100%);
}
.studio-frame { z-index: 0; }
.studio-hero { z-index: 2; padding-top: 15rem;}

.studio-kicker-text,
.studio-subtitle,
.studio-tagline-text,
.studio-feature,
.studio-tag {
  color: rgba(255, 248, 226, 0.94);
}
.studio-subtitle {
  color: rgba(255, 246, 218, 0.92);
  text-shadow: 0 2px 14px rgba(8, 6, 2, 0.75);
}
.studio-tagline-text {
  color: rgba(255, 240, 196, 0.95);
  text-shadow: 0 2px 12px rgba(8, 6, 2, 0.8);
}
.studio-feature {
  color: rgba(255, 245, 214, 0.9);
  text-shadow: 0 2px 10px rgba(8, 6, 2, 0.8);
}
.studio-kicker-line {
  background: linear-gradient(90deg,
      transparent, rgba(255, 238, 190, 0.9), transparent);
}
.studio-tag {
  background: rgba(28, 22, 8, 0.34);
  border-color: rgba(255, 238, 190, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.studio-tag:hover {
  background: rgba(58, 44, 16, 0.5);
  border-color: rgba(246, 214, 140, 0.85);
}

/* ---------- 4. 顶栏：磨砂玻璃 ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(60, 45, 10, 0.03);
}

/* ---------- 5. eyebrow 改成 shimmer 的胶囊小标 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent-ink);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- 6. 滚动入场（渐进增强，不支持则静默跳过） ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .promise-card,
    .plan-card,
    .faq-item,
    .case-card,
    .news-card {
      animation: skin-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 34%;
    }
    @keyframes skin-rise {
      from { opacity: 0; transform: translateY(28px); }
      to   { opacity: 1; transform: none; }
    }
  }
}

/* ---------- 7. 选中态 / 焦点环 / 滚动条 ---------- */
::selection { background: rgba(224, 174, 60, 0.28); color: var(--text-primary); }
:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 6px;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(224, 174, 60, 0.42);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(200, 148, 42, 0.62); background-clip: content-box; }

/* ============================================================
   移动端：Shimmer 断点微调
   ============================================================ */
@media (max-width: 640px) {
  .btn { padding: 0.62rem 1.25rem; font-size: 0.9rem; }
  .btn-primary, .studio-btn { width: 100%; }
}

/* ============================================================
   四大能力 · 左图右文交替（首页 showcase）
   ------------------------------------------------------------
   布局：2 列 grid，偶数项用 order 把图换到右边，形成左右交替。
   浮现：默认「可见」，只有 JS 确认支持 IntersectionObserver 后
        才给根节点加 .showcase-reveal 把初始态设为透明。
        这样无 JS / 老浏览器 / 截图工具下内容都照常可读，不会白屏。
   ============================================================ */
.showcase-section {
  padding: var(--space-4xl) 0 var(--space-4xl);
  background: var(--bg-page);
  scroll-margin-top: 96px;
}

.showcase-head {
  max-width: 720px;
  margin: 0 auto var(--space-3xl);
  text-align: center;
}
.showcase-head h2 {
  margin-top: var(--space-md);
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.showcase-lead {
  margin-top: var(--space-md);
  font-size: 1.02rem;
  color: var(--text-secondary);
}

.showcase-list {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 7vw, 5.5rem);
}

/* ---------- 单条：左图右文 ---------- */
.showcase-item {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  /* 各场景有独立锚点（#scene-tryon 等），跳转时别被吸顶导航挡住标题 */
  scroll-margin-top: 96px;
}
/* 偶数项左右对调 —— 交替感就来自这一条 */
.showcase-item:nth-child(even) .showcase-media { order: 2; }

/* ---------- 文案 ---------- */
.showcase-body { max-width: 560px; }

.showcase-index {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-ink);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-light);
  margin-bottom: var(--space-md);
}

.showcase-title {
  font-size: clamp(1.5rem, 2.7vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: var(--space-sm);
}

.showcase-desc {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  padding-left: var(--space-md);
  border-left: 3px solid var(--accent);
}

.showcase-points {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: var(--space-xl);
}
.showcase-points li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.showcase-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.showcase-cta { margin-top: 0; }

/* ============================================================
   配图区 · 前后对比 + 下方轮播缩略图
   ------------------------------------------------------------
   结构参照 shimmer 的 compare/filmstrip 组件，但改成数据驱动：
   配对清单写在 data-pairs（JSON 字符串）里，缩略图由 JS 渲染。
   这样第二步接后台时，只需换掉 data-pairs 的内容，前端不用改。

   对比的实现是「擦除式」而不是两张并排图：
     底层铺满 after（修改后）
     上层 before-wrap 宽度受控，里头 img 固定成整个盒子的宽度，
     于是拖动分割线时露出的是同一张 after 图，不会被压扁。
   50% 时视觉上正好像左右各一张，和设计稿一致。
   ============================================================ */

/* 原来的单图样式不再适用，尺寸交给组件自己控制 */
.showcase-media {
  aspect-ratio: auto;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.showcase-media::after { display: none; }
.showcase-item:hover .showcase-media img { transform: none; }

/* ---------- 对比主体 ---------- */
.sc-compare {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  /* 原本用 3/4 竖版，608px 宽会撑到 811px 高，整段太瘦长、视觉很重。
     改成 4/3，横向比例更接近 shimmer 原设计的高度。 */
  aspect-ratio: 4 / 3;
  background: #f5f1e6;
  box-shadow: var(--shadow-card);
  user-select: none;
  touch-action: pan-y;          /* 竖向滚动照常，横向才拖分割线 */
  cursor: ew-resize;
}
.sc-compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* 上层：原图，只露出左边 width 那一条 */
.sc-before-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  width: 50%;
  z-index: 2;
}
.sc-before-wrap img {
  width: 100%;       /* JS 会改成盒子的实际像素宽，避免被压扁 */
  max-width: none;
}

/* ---------- 角标 ---------- */
.sc-tag {
  position: absolute;
  top: 14px;
  z-index: 5;
  font-size: 0.76rem;
  font-weight: 600;
  color: #fff;
  background: rgba(12, 8, 2, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 5px 12px;
  letter-spacing: 0.02em;
}
.sc-tag--before { left: 14px; }
.sc-tag--after { right: 14px; }

/* ---------- 分割线与圆形把手 ---------- */
.sc-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 4;
  width: 2px;
  background: #fff;
  transform: translateX(-1px);
  pointer-events: none;
}
.sc-handle i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .32);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #8a6a12;
  letter-spacing: 2px;
}

/* ---------- 底部说明 ---------- */
.sc-note {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 5;
  font-size: 0.78rem;
  color: #fff;
  background: rgba(12, 8, 2, 0.46);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 5px 14px;
  white-space: nowrap;
  max-width: 92%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* range 只做键盘/无障碍与程序控制，视觉上隐藏 */
.sc-compare input[type="range"] {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 6;
}

/* ---------- 单图模式（没有 before 时） ---------- */
.sc-compare.is-single .sc-before-wrap,
.sc-compare.is-single .sc-handle,
.sc-compare.is-single .sc-tag--before { display: none; }
.sc-compare.is-single { cursor: default; }
.sc-compare.is-single input[type="range"] { display: none; }

/* ---------- 下方缩略图轮播 ----------
   不要写成 flex:1 让缩略图平分宽度：
   竖版(3:4)缩略图只有 2~3 张时会被拉成大图，
   看起来像又一张主图，完全失去「缩略图条」的意义。
   固定小尺寸 + 横向可滚动，数量多也不会变形。 */
.sc-filmstrip {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.sc-filmstrip button {
  flex: 0 0 auto;
  width: 78px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #f5f1e6;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity .25s ease, border-color .25s ease, transform .25s ease;
}
.sc-filmstrip button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sc-filmstrip button:hover { opacity: .85; transform: translateY(-2px); }
.sc-filmstrip button.is-active {
  opacity: 1;
  border-color: var(--accent-strong);
  box-shadow: 0 6px 16px rgba(224, 174, 60, .3);
}
.sc-filmstrip button:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}

/* 只有 1 张时不显示缩略图条 */
.sc-filmstrip:empty { display: none; }

/* ============================================================
   窄屏
   ============================================================ */
@media (max-width: 900px) {
  .showcase-item {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .showcase-item:nth-child(even) .showcase-media { order: 0; }
  .showcase-body { max-width: none; }
  .sc-compare { aspect-ratio: 4 / 3; }
  .sc-filmstrip { gap: 8px; }
  .sc-note { font-size: 0.72rem; bottom: 12px; }
}
