/* ============================================================
   山迟汉服 · 官网 v2
   设计基准：Apple 式大留白排版 + iOS Liquid Glass 毛玻璃
   字体：全站仅思源黑体（Source Han Sans，本地子集可变字体）
   ============================================================ */

@font-face {
  font-family: 'Source Han Sans SC';
  src: url('../fonts/SourceHanSansSC-VF.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: 'Source Han Sans SC', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --paper: #ffffff;
  --paper-2: #f5f5f7;
  --paper-3: #fbfbfd;
  --line: rgba(0, 0, 0, .09);
  --line-soft: rgba(0, 0, 0, .055);
  --seal: #da421d;
  --seal-soft: rgba(218, 66, 29, .1);

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-pill: 999px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --spring: cubic-bezier(.16, 1, .3, 1);

  --nav-h: 60px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--seal); color: #fff; }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; border-radius: 6px; }

/* ---------- 布局 ---------- */
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.wrap-wide { width: min(1320px, calc(100% - 48px)); margin-inline: auto; }
.wrap-narrow { width: min(760px, calc(100% - 48px)); margin-inline: auto; }
.section { padding-block: clamp(88px, 12vw, 176px); }
.section--tight { padding-block: clamp(64px, 8vw, 112px); }
.bg-2 { background: var(--paper-2); }
.bg-dark { background: #101012; color: #f5f5f7; }
.bg-dark .muted, .bg-dark .lede { color: #a1a1a6; }

/* ---------- 文字 ---------- */
h1, h2, h3, h4 { font-family: var(--font); margin: 0; font-weight: 600; letter-spacing: -0.022em; line-height: 1.1; }

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--seal);
  margin: 0 0 20px;
}
.bg-dark .eyebrow { color: #ff6b45; }

.h-hero { font-size: clamp(38px, 6vw, 76px); letter-spacing: -0.03em; line-height: 1.1; font-weight: 600; }
.h1 { font-size: clamp(38px, 6vw, 76px); letter-spacing: -0.03em; }
.h2 { font-size: clamp(30px, 4.2vw, 54px); letter-spacing: -0.028em; }
.h3 { font-size: clamp(21px, 2.2vw, 28px); letter-spacing: -0.02em; }
.h4 { font-size: 19px; letter-spacing: -0.015em; }

.lede { font-size: clamp(18px, 1.9vw, 24px); line-height: 1.5; color: var(--muted); font-weight: 400; letter-spacing: -0.012em; }
.prose { font-size: 17px; line-height: 1.72; color: var(--ink-2); }
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.6; color: var(--muted); }
.tiny { font-size: 12px; line-height: 1.55; color: var(--muted-2); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

.section-head { max-width: 960px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head.center { margin-inline: auto; }
.section-head .lede { margin-top: 20px; }

/* ---------- 玻璃 ---------- */
.glass {
  background: rgba(255, 255, 255, .58);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(0, 0, 0, .05),
    0 24px 60px -24px rgba(0, 0, 0, .28);
}
.glass-dark {
  background: rgba(28, 28, 30, .52);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    0 24px 60px -24px rgba(0, 0, 0, .6);
}

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: min(1140px, calc(100% - 32px));
  transition: width .5s var(--spring), top .4s var(--ease);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  height: var(--nav-h);
  padding: 0 8px 0 18px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, .68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 8px 32px -12px rgba(0, 0, 0, .22);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.scrolled .nav-inner {
  background: rgba(255, 255, 255, .82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 12px 40px -14px rgba(0, 0, 0, .28);
}

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; flex: none; }
.brand img { width: 28px; height: 28px; border-radius: 50%; }
.brand span { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  position: relative;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav-link:hover { background: rgba(0, 0, 0, .05); color: var(--ink); }
.nav-link.is-active { color: var(--seal); }

.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink-2);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.icon-btn:hover { background: rgba(0, 0, 0, .06); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- 大菜单面板 ---------- */
.mega {
  position: fixed;
  top: calc(14px + var(--nav-h) + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-14px) scale(.985);
  width: min(1140px, calc(100% - 32px));
  z-index: 190;
  border-radius: var(--r-xl);
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .38s var(--ease), transform .5s var(--spring), visibility .38s;
}
.mega.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}
.mega-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; }
.mega-col h5 {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.mega-col a {
  display: block;
  padding: 7px 0;
  font-size: 15px;
  color: var(--ink-2);
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.mega-col a:hover { color: var(--seal); transform: translateX(3px); }
.mega-feature {
  grid-column: span 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  min-height: 190px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: #fff;
}
.mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mega-feature::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0) 65%);
}
.mega-feature div { position: relative; z-index: 1; }
.mega-feature b { display: block; font-size: 17px; font-weight: 600; }
.mega-feature small { font-size: 12.5px; opacity: .82; }

/* 移动端菜单 */
.nav-toggle { display: none; }
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 195;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  padding: 96px 28px 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
  overflow-y: auto;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 4px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu a span { font-size: 13px; color: var(--muted-2); font-weight: 400; }

/* ---------- Hero（图文分离，图像与文字不重叠） ---------- */
.hero {
  position: relative;
  background: var(--paper-2);
  color: var(--ink);
  padding-top: calc(var(--nav-h) + clamp(34px, 4.6vw, 64px));
  padding-bottom: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-bottom: clamp(32px, 4vw, 52px);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 12px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  margin-bottom: 26px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 4px 16px -8px rgba(0, 0, 0, .22);
  color: var(--ink-2);
}
.hero-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--seal); }
.hero h1 { color: var(--ink); }
.hero .h-hero { margin-bottom: 26px; }
.hero-sub {
  font-size: clamp(17px, 1.9vw, 22px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 30em;
  margin: 0 auto 40px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-figure {
  margin-top: auto;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 6;
  background: #e6e2dc;
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 28px;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform .3s var(--spring), background .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .55); }
.btn-outline { border: 1px solid var(--line); color: var(--ink); background: rgba(255, 255, 255, .6); }
.btn-outline:hover { background: #fff; box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .3); }

/* 机器友好的品牌定义段（AI 抓取核心摘要） */
.brand-fact {
  max-width: 46em;
  margin: 0 0 clamp(48px, 6vw, 72px);
  padding: 22px 26px;
  border-left: 3px solid var(--seal);
  background: var(--paper-2);
  border-radius: 0 14px 14px 0;
}
.brand-fact p {
  margin: 0;
  font-size: 16.5px;
  line-height: 2;
  color: var(--ink-2);
  letter-spacing: 0;
}

/* ---------- 数据条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.stat { background: var(--paper); padding: 34px 26px; }
.bg-2 .stat { background: var(--paper-2); }
.stat b { display: block; font-size: clamp(32px, 3.6vw, 46px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.stat b em { font-style: normal; font-size: .5em; font-weight: 500; letter-spacing: 0; margin-left: 3px; color: var(--ink-2); }
.stat > span { display: block; margin-top: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ---------- 卡片网格 ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  transition: transform .5s var(--spring), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35); }
.card-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card-media img { transform: scale(1.045); }
.card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.card-body .small { flex: 1; }
.card-body h3 { margin-bottom: 8px; }
.card-body .price { font-size: 15px; color: var(--ink-2); margin-bottom: 16px; }
.card-body .more { display: inline-flex; align-items: center; gap: 5px; font-size: 15px; color: var(--seal); font-weight: 500; }
.card-body .more::after { content: '›'; font-size: 19px; line-height: 1; transition: transform .3s var(--ease); }
.card-body .more:hover::after { transform: translateX(3px); }

/* 横向图文分屏 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.rev .split-media { order: 2; }
.split-media { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 1 / 1; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body .h2 { margin-bottom: 22px; }

/* ---------- 渠道列表 ---------- */
.channels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.channel {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 26px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .58);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 14px 40px -22px rgba(0, 0, 0, .28);
  transition: transform .4s var(--spring), box-shadow .4s var(--ease);
}
.channel:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 #fff, 0 22px 50px -24px rgba(0, 0, 0, .34); }
.channel-ico {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .22);
}
.channel-ico svg { width: 22px; height: 22px; }
.channel[target="_blank"]::after {
  content: '↗';
  margin-left: auto;
  font-size: 14px;
  color: var(--muted-2);
  transition: transform .3s var(--ease), color .3s var(--ease);
}
.channel[target="_blank"]:hover::after { color: var(--seal); transform: translate(2px, -2px); }
.channel-txt b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.channel-txt span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 3px; }

/* ---------- 渠道二维码浮层 ---------- */
.channel.has-qr { position: relative; cursor: pointer; }
.qr-tag {
  margin-left: auto;
  flex: none;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted-2);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .04);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.channel.has-qr.hovering .qr-tag,
.channel.has-qr.open .qr-tag { color: var(--seal); background: var(--seal-soft); }

.qr-pop {
  position: absolute;
  left: 50%;
  width: 296px;
  padding: 14px;
  border-radius: 20px;
  bottom: calc(100% + 14px);
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 6px 14px;
  align-items: center;
  text-align: left;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .82);
  box-shadow: inset 0 1px 0 #fff, 0 26px 54px -22px rgba(0, 0, 0, .42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 30;
  transform: translate(-50%, 10px) scale(.96);
  transition: opacity .28s var(--ease), transform .42s var(--spring), visibility .28s;
}
.qr-pop[data-side="down"] { top: calc(100% + 14px); bottom: auto; }
.channel.has-qr.hovering .qr-pop,
.channel.has-qr:focus-visible .qr-pop,
.channel.has-qr.open .qr-pop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}
.qr-pop img { grid-row: span 3; width: 104px; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: #fff; }
.qr-pop strong { grid-column: 2; margin-top: 0; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.qr-hint { grid-column: 2; margin-top: 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
.qr-go {
  grid-column: 2;
  justify-self: start;
  display: inline-block;
  margin-top: 4px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--seal);
  background: var(--seal-soft);
  transition: background .25s var(--ease);
}
.qr-go:hover { background: rgba(218, 66, 29, .18); }
/* 双码（公众号 + 微博） */
.qr-pop--duo { width: 352px; grid-template-columns: 176px 1fr; }
.qr-duo { grid-row: span 3; display: flex; gap: 8px; }
.qr-duo figure { margin: 0; flex: 1; min-width: 0; text-align: center; }
.qr-pop .qr-duo img { grid-row: auto; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 10px; background: #fff; }
.qr-duo figcaption { margin-top: 4px; font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }

.editing .qr-pop { display: none; }

/* ---------- 价格表 ---------- */
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { text-align: left; padding: 22px 8px; border-bottom: 1px solid var(--line-soft); }
.price-table thead th { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); border-bottom: 1px solid var(--line); }
.price-table tbody th { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.price-table td { font-size: 16px; color: var(--ink-2); }
.price-table td b { font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }

/* ---------- 时间轴 ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 40px 34px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: '';
  position: absolute;
  left: -3.5px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--seal);
}
.bg-dark .timeline::before { background: rgba(255, 255, 255, .18); }
.bg-dark .timeline li::before { background: #101012; }
.timeline time { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; color: var(--seal); margin-bottom: 8px; }
.bg-dark .timeline time { color: #ff6b45; }
.timeline h4 { font-size: 18px; margin-bottom: 8px; letter-spacing: -0.015em; }
.timeline p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--muted); }
.bg-dark .timeline p { color: #a1a1a6; }

/* ---------- 意见建议 ---------- */
.feedback { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.feedback-form { padding: 32px; border-radius: var(--r-xl); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, .1);
  background: rgba(255, 255, 255, .72);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--seal);
  box-shadow: 0 0 0 4px var(--seal-soft);
}
.field textarea { min-height: 132px; line-height: 1.6; }
.form-note { font-size: 12.5px; color: var(--muted-2); margin-top: 14px; line-height: 1.6; }

/* 二级页面顶部留白（避开固定导航） */
.page-top { padding-top: calc(var(--nav-h) + clamp(36px, 5vw, 64px)); }

/* ---------- 常见问答 ---------- */
.qa-list { border-top: 1px solid var(--line); }
.qa-item { border-bottom: 1px solid var(--line); }
.qa-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color .25s var(--ease);
}
.qa-item summary::-webkit-details-marker { display: none; }
.qa-item summary:hover { color: var(--seal); }
.qa-q { flex: 1; min-width: 0; }
.qa-icon { flex: none; position: relative; width: 20px; height: 20px; }
.qa-icon::before, .qa-icon::after {
  content: '';
  position: absolute;
  background: var(--muted);
  transition: transform .3s var(--ease), opacity .3s var(--ease), background .25s;
}
.qa-icon::before { left: 9.25px; top: 3px; width: 1.5px; height: 14px; }
.qa-icon::after { left: 3px; top: 9.25px; width: 14px; height: 1.5px; }
.qa-item[open] .qa-icon::before { transform: rotate(90deg); opacity: 0; }
.qa-item[open] summary { color: var(--seal); }
.qa-item[open] .qa-icon::before, .qa-item[open] .qa-icon::after { background: var(--seal); }
.qa-a {
  padding: 0 4px 26px;
  max-width: 54em;
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink-2);
}
.qa-actions { display: none; margin-top: 14px; }
.editing .qa-actions { display: block; }
.qa-del {
  display: none;
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(0, 0, 0, .05);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.editing .qa-del { display: inline-block; }
.qa-del:hover { color: var(--seal); background: var(--seal-soft); }
.qa-foot { margin-top: 30px; }
.qa-add { display: none; }
.editing .qa-add { display: inline-flex; }
.editing .qa-item summary { cursor: text; }

/* ---------- 页脚 ---------- */
.footer { background: var(--paper-2); padding-block: 68px 40px; font-size: 13px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 50%; }
.footer-brand b { font-size: 16px; color: var(--ink); font-weight: 600; }
.footer h5 { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--ink); }
.footer-col a { display: block; padding: 6px 0; font-size: 13px; color: var(--muted); transition: color .25s var(--ease); }
.footer-col a:hover { color: var(--seal); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 12px; color: var(--muted-2); }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
/* ---------- 上标注释 ---------- */
sup { font-size: 0.65em; line-height: 0; vertical-align: super; color: var(--muted-2); }
.footnote-area { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.9; color: var(--muted-2); max-width: 56em; }
.footnote-area a { color: var(--muted-2); text-decoration: underline; text-underline-offset: 2px; }
.footnote-area a:hover { color: var(--seal); }


.beian-link { color: var(--muted-2); transition: color .25s var(--ease); }
.beian-link:hover { color: var(--seal); }

/* ---------- 滚动出现 ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--spring); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   编辑模式
   ============================================================ */
.edit-bar {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: var(--r-pill);
}
.editing .edit-bar { display: flex; }
.edit-bar button {
  height: 38px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 500;
  background: rgba(0, 0, 0, .06);
  transition: background .25s var(--ease);
}
.edit-bar button:hover { background: rgba(0, 0, 0, .12); }
.edit-bar button.primary { background: var(--seal); color: #fff; }
.edit-bar button.primary:hover { background: #c03818; }
.edit-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--seal); margin: 0 6px 0 10px; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

[data-k] { transition: box-shadow .2s var(--ease), background .2s var(--ease); }
.editing [data-k] { cursor: text; border-radius: 6px; }
.editing [data-k]:hover { box-shadow: 0 0 0 2px rgba(218, 66, 29, .35); background: rgba(218, 66, 29, .04); }
.editing [data-k]:focus { outline: none; box-shadow: 0 0 0 2px var(--seal); background: rgba(255, 255, 255, .9); }
.editing [data-k][contenteditable="true"]:empty::before { content: '点击输入'; opacity: .35; }

/* 首屏图文分离后，图文各自独立，无需特殊穿透处理 */
.editing .channel { pointer-events: none; }
.editing .channel [data-k] { pointer-events: auto; }


.editing [data-k][data-type="img"] { cursor: pointer; position: relative; }
.editing [data-k][data-type="img"]:hover { outline: 2px dashed var(--seal); outline-offset: -2px; }
.img-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: none;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, .72);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.editing .img-holder:hover .img-hint { display: flex; }
.img-holder { position: relative; display: contents; }

/* 图片替换后的确认反馈 */
@keyframes sz-flash {
  0% { filter: brightness(1.4) saturate(1.3); }
  100% { filter: none; }
}
img.just-updated { animation: sz-flash .85s var(--ease); }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .nav { width: calc(100% - 24px); }
  .nav-link { padding: 9px 11px; font-size: 13.5px; }
  .mega-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .channel.has-qr {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .qr-pop {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    bottom: auto !important;
    right: auto !important;
    transform: translate(-50%, -50%) scale(.96);
    width: min(280px, 82vw);
    height: auto;
    display: block;
    grid-template-columns: none;
    text-align: center;
    padding: 18px;
  }
  .qr-pop img { width: 100%; height: auto; min-height: 200px; aspect-ratio: 1 / 1; margin-inline: auto; grid-row: auto; grid-column: auto; }
  .qr-pop strong, .qr-hint, .qr-go { grid-column: auto; }
  .qr-pop--duo { width: min(300px, 86vw); }
  .qr-duo { width: 100%; }
  .qr-pop strong { margin-top: 14px; }
  .qr-go { margin-top: 12px; }
  .qr-pop[data-side="up"], .qr-pop[data-side="down"] { top: 50%; bottom: auto; }
  .channel.has-qr.open .qr-pop { transform: translate(-50%, -50%) scale(1); }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .mega { display: none; }
  .cards { grid-template-columns: 1fr; gap: 18px; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.rev .split-media { order: 0; }
  .feedback { grid-template-columns: 1fr; }
  .channels { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 36px); }
  .hero-figure { aspect-ratio: 3 / 4; border-radius: 24px 24px 0 0; }
}

@media (hover: none) {
  .channel.has-qr.hovering .qr-pop { opacity: 0; visibility: hidden; pointer-events: none; }
  .channel.has-qr.open .qr-pop { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .scroll-hint { display: none; }
  .wrap, .wrap-wide, .wrap-narrow { width: calc(100% - 36px); }
  .nav { top: 10px; }
  .nav-inner { height: 54px; padding: 0 6px 0 14px; }
  .btn { height: 46px; padding: 0 22px; font-size: 15px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 18px; }
  .card-body { padding: 22px; }
  .feedback-form { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: 1fr; }
  .edit-bar { right: 12px; bottom: 12px; left: 12px; justify-content: center; }
}

@media print {
  .nav, .mega, .mobile-menu, .edit-bar, .scroll-hint { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  body { font-size: 11pt; }
}
