/* ==========================================================================
   名道咨询 · 官网首页样式
   设计方向：以「测算底稿」为视觉隐喻 —— 分栏细线、label/value 对齐、
   右对齐的等宽数字。全站唯一视觉重音落在首屏「不给方向」那一行酒红。
   技术约束：纯静态、无外部依赖、8px 基准间距、断点 768 / 1024。
   ========================================================================== */

/* ---------- 1. 设计令牌（改配色只改这里） ---------- */
:root {
  /* 颜色：酒红为品牌主色（取自 Logo），深蓝灰为辅 */
  --wine:       #96261E;   /* 主色：按钮、落款、价格 */
  --wine-dark:  #7A1C15;   /* 主色压深：hover */
  --wine-mist:  #FDF8F7;   /* 主色极浅：选中态底色 */
  --navy:       #1E3A5F;   /* 辅色：标题、表头、次级层级 */
  --ink:        #1F2937;   /* 正文 */
  --muted:      #6B7280;   /* 次要文字 */
  --line:       #E5E7EB;   /* 边框与分隔线 */
  --line-soft:  #D8DDE3;   /* 占位块虚线 */
  --bg:         #FAFBFC;   /* 分区底色 */
  --paper:      #FFFFFF;   /* 卡片与页面底 */

  /* 字体：中文系统栈（切题优先），数字/英文走 system-ui */
  --font-cn:  -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-num: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* 尺寸：8px 基准 */
  --r: 8px;                                   /* 统一圆角 */
  --shadow: 0 1px 3px rgba(0, 0, 0, .06);     /* 极轻阴影 */
  --shadow-lift: 0 4px 12px rgba(31, 41, 55, .08);
  --content: 1248px;                          /* 含左右留白，内容实宽 1200 */
  --gutter: 24px;
  --nav-h: 72px;
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-cn);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; }

/* 用 hidden 属性控制显隐时，压过后面的 display:flex 一类声明 */
[hidden] { display: none !important; }

a { color: var(--navy); }

/* 键盘焦点始终可见 */
:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 2px;
  border-radius: 2px;
}

/* 屏幕阅读器专用文本 */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 内容区容器 */
.wrap {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* 锚点定位补偿吸顶导航 */
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* 滚动淡入（fade-up，300–420ms，ease-out）。
   原则：元素的「基础状态」一律是可见的，动画只负责好看，绝不承担
   「内容到底出不出现」的责任 —— 动画因任何原因不播放，页面照样完整可读。
   为此刻意不用 animation-fill-mode（both/forwards 会把元素锁在动画的某一帧上），
   动画播完即自动落回基础样式；script.js 还会在动画窗口后摘掉动画类兜底。
   首屏元素由样式表自己播（见下，不挂 .js-on）；视口外元素由 .is-in 触发，
   观察器带 80px 提前量。 */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 首屏入场：刻意不挂 .js-on —— 样式表一解析就播，不等脚本。
   否则会「先可见 → 脚本加 js-on → 突然变透明 → 再淡入」，肉眼看到一次闪烁。
   不带 animation-fill-mode，动画播完自动落回基础样式（可见）。 */
.reveal--eager { animation: fadeUp .42s ease-out; }

/* 视口外元素：进入视口时由脚本加 .is-in 播一次（is-in 只有脚本会加） */
.reveal.is-in { animation: fadeUp .3s ease-out; }

/* ---------- 3. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease-out, background-color .2s, border-color .2s, box-shadow .2s, color .2s;
}

.btn--primary {
  background: var(--wine);
  color: #fff;
  box-shadow: 0 1px 2px rgba(150, 38, 30, .24);
}
.btn--primary:hover {
  background: var(--wine-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(150, 38, 30, .22);
}

.btn--ghost {
  background: var(--paper);
  color: var(--navy);
  border-color: #D5D9DE;
}
.btn--ghost:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
}

/* ---------- 4. 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
/* multiply 让 Logo 的白底融进页面底色，不必抠图 */
.nav__logo { display: block; width: 44px; height: 44px; mix-blend-mode: multiply; }
.nav__name {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .04em;
}

.nav__panel {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 36px;
}

.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a {
  position: relative;
  display: inline-block;
  padding: 4px 0;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--wine);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease-out;
}
.nav__links a:hover { color: var(--wine); }
.nav__links a:hover::after { transform: scaleX(1); }

/* 当前页签：直接复用 hover 那条下划线，不另发明一套标记 */
.nav__links a.is-active { color: var(--wine); }
.nav__links a.is-active::after { transform: scaleX(1); }

/* 会员等级页没有首页那套脚本，当前页签靠标记属性认（脚本驱动的那套另算） */
.nav__links a[aria-current="page"] { color: var(--wine); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

.nav__cta { padding: 13px 20px; font-size: 14.5px; white-space: nowrap; }

/* 外链导航项（工具 → 数据看板）：文字后留一个细小的出场标记 */
.nav__ext-mark {
  margin-left: 3px;
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--muted);
  vertical-align: 1px;
}
.nav__ext:hover .nav__ext-mark { color: var(--wine); }

/* 汉堡按钮（移动端） */
.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-right: -10px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav__toggle-bars {
  position: relative;
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  transition: background-color .2s;
}
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px; height: 2px;
  background: var(--navy);
  transition: transform .2s ease-out;
}
.nav__toggle-bars::before { top: -7px; }
.nav__toggle-bars::after  { top: 7px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. Hero 首屏 ---------- */
.hero { padding: 88px 0 72px; }

.hero__h1 {
  max-width: 880px;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.32;
  letter-spacing: -.01em;
  color: var(--navy);
}

.hero__lede { display: block; }

/* 全站唯一的视觉重音：边界声明 */
.hero__turn {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  font-size: clamp(19px, 2.3vw, 26px);
  line-height: 1.5;
  color: var(--wine);
}
.hero__turn::before {
  content: "";
  flex: none;
  width: 32px; height: 2px;
  background: var(--wine);
}

.hero__sub {
  margin-top: 24px;
  font-size: 16px;
  color: var(--muted);
  letter-spacing: .02em;
}

/* ---------- 5·补. 首页四件事 ----------
   一条一行，标题在左、做法在右 —— 跟服务区 .svc__spec 的 label / value
   对齐是同一种语言。不铺卡片、不画底色：首屏的主角就是这四行字，
   别的都得安静。行间只留一条细线，是整站分隔的默认手法。 */
.msn { margin-top: 44px; border-top: 1px solid var(--line); }

.msn__item {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 10px 56px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.msn__t {
  display: block;              /* 首页用 h2，下面「接着去哪」用 span，两种都得站得住 */
  position: relative;
  padding-left: 38px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  color: var(--navy);
}
/* 那道酒红短横线跟 .hero__turn::before 是同一个零件，只是短一点 */
.msn__t::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(.75em - 1px);       /* 对齐首行文字的视觉中线 */
  width: 24px; height: 2px;
  background: var(--wine);
}

.msn__d {
  display: block;
  max-width: 60ch;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink);
}

/* 首页底部的「接着去哪」：整行可点，但不加底色不加边框 ——
   它跟上面四件事是同一张表，只是这几行通向别的页面。 */
.go-sec { padding: 0 0 88px; }
.msn--go { margin-top: 56px; }
.msn--go .msn__item { padding: 0; }
.msn__link {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) auto;
  gap: 10px 24px;
  align-items: center;
  padding: 24px 0;
  color: inherit;
  text-decoration: none;
}
/* 箭头是第三列，不是浮在上面的装饰 —— 免得它变成网格里的第三个孤儿 */
.msn__link::after {
  content: "→";
  font-family: var(--font-num);
  font-size: 16px;
  line-height: 1;
  color: var(--line-soft);
  transition: color .16s ease-out, transform .16s ease-out;
}
.msn__link .msn__t { transition: color .16s ease-out; }
.msn__link:hover .msn__t { color: var(--wine); }
.msn__link:hover::after { color: var(--wine); transform: translateX(4px); }

/* ---------- 6. 定位语 + 资格条 ----------
   定位语从首屏挪下来之后，这里读作「我是谁 · 我凭什么」。
   上面不再画 border-top：首屏到这一段是同一口气，不该被一条线切断。 */
.trust { background: var(--paper); }
.trust .wrap { padding-top: 40px; padding-bottom: 36px; }

.about { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.about__h {
  max-width: 20ch;
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.42;
  color: var(--navy);
}
/* 全站唯一的酒红重音仍然落在「不给方向」这一行上 */
.about__turn {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.5;
  color: var(--wine);
}
.about__turn::before {
  content: "";
  flex: none;
  width: 28px; height: 2px;
  background: var(--wine);
}
.about__sub {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: .02em;
}

.trust__list { display: flex; flex-wrap: wrap; }
.trust__list li {
  padding: 0 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  border-left: 1px solid var(--line);
}
.trust__list li:first-child { padding-left: 0; border-left: 0; }

.trust__note { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---------- 7. 通用区块外壳 ---------- */
.sec { padding: 88px 0; }
.sec--tint { background: var(--bg); }

.sec__hd { max-width: 760px; }
.sec__hd h2 {
  font-size: 30px;
  line-height: 1.35;
  letter-spacing: -.005em;
  color: var(--navy);
}
.sec__hd p { margin-top: 14px; font-size: 16px; color: var(--muted); }

.sec__foot { margin-top: 32px; }

/* ---------- 8. 服务内容总览 ---------- */
.svcs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 48px;
}
/* 左右分栏之间一条竖线，像底稿的两栏 */
.svc-col { padding-right: 48px; }
.svc-col + .svc-col {
  padding-right: 0;
  padding-left: 48px;
  border-left: 1px solid var(--line);
}

.svc-col__title { font-size: 19px; color: var(--navy); }
.svc-col__note { margin-top: 8px; font-size: 14px; color: var(--muted); }

.svc { padding: 24px 0; border-top: 1px solid var(--line); }
.svc-col__note + .svc { margin-top: 24px; }

.svc__hd { display: flex; align-items: baseline; gap: 12px; }
.svc__code {
  flex: none;
  min-width: 26px;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  color: var(--wine);
  letter-spacing: .06em;
}
.svc__hd h4 { font-size: 17px; line-height: 1.5; color: var(--navy); }

.svc__spec { margin: 12px 0 0; }
.svc__spec > div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 4px 0;
}
.svc__spec dt { font-size: 13px; line-height: 1.75; color: var(--muted); }
.svc__spec dd { margin: 0; font-size: 15px; line-height: 1.75; color: var(--ink); }

/* 价格行：右对齐 + 等宽数字，是"做表"这门生意的信号 */
.svc__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.svc__price span { margin-right: auto; font-size: 13px; color: var(--muted); }
.svc__price b {
  font-family: var(--font-num);
  font-size: 19px;
  font-weight: 700;
  color: var(--wine);
  font-variant-numeric: tabular-nums;
}
.svc__price i { font-style: normal; font-size: 13px; color: var(--muted); }

/* 服务卡内的外链（P2 数据工具订阅 → 数据看板） */
.svc__link { margin-top: 14px; }
.svc__link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 1px;
  font-size: 14px;
  color: var(--wine);
  text-decoration: none;
  border-bottom: 1px solid rgba(150, 38, 30, .35);
  transition: border-color .2s ease-out;
}
.svc__link a::after { content: "↗"; font-family: var(--font-num); font-size: 12px; }
.svc__link a:hover { border-bottom-color: var(--wine); }

/* 服务卡里的积分提示（P4）：比价格那行再小一档，用虚线框跟价格区分开，
   免得被当成第二行价格。 */
.svc__pts {
  margin-top: 8px;
  padding: 6px 10px;
  border: 1px dashed var(--line-soft);
  border-radius: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* 付款入口：做成一条细线上的文字按钮，不给它实心底色 ——
   全站的实心酒红只留给主行动点，这里一排八个实心按钮会把页面压死。 */
.svc__pay { margin-top: 14px; }
.svc__pay-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: var(--paper);
  font: inherit;
  font-size: 13.5px;
  color: var(--wine);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s ease-out, background-color .18s ease-out;
}
.svc__pay-btn::before {
  content: "";
  width: 14px; height: 14px;
  /* 四角定位点，一眼能认出是二维码，不用放图标文件 */
  background:
    linear-gradient(var(--wine), var(--wine)) left   top    / 5px 5px no-repeat,
    linear-gradient(var(--wine), var(--wine)) right  top    / 5px 5px no-repeat,
    linear-gradient(var(--wine), var(--wine)) left   bottom / 5px 5px no-repeat,
    linear-gradient(var(--wine), var(--wine)) right  bottom / 5px 5px no-repeat;
}
.svc__pay-btn:hover { border-color: var(--wine); background: var(--wine-mist); }
.svc__pay-btn--talk { color: var(--navy); }
.svc__pay-btn--talk::before { display: none; }

.svc__guide {
  margin-top: 32px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--wine);
  border-radius: var(--r);
}
.svc__guide p { font-size: 15px; line-height: 1.75; color: var(--ink); }
.svc__guide .btn { margin-top: 16px; }

/* ---------- 9. 案例示意 ---------- */
.case {
  margin-top: 40px;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.case__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 48px;
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.case__meta > div { display: flex; align-items: baseline; gap: 12px; }
.case__meta dt { font-size: 13px; color: var(--muted); }
.case__meta dd {
  margin: 0;
  font-family: var(--font-num);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.case__body { max-width: 68ch; font-size: 16px; line-height: 1.85; color: var(--ink); }

.notice {
  margin-top: 16px;
  padding: 14px 20px;
  background: var(--wine-mist);
  border-radius: var(--r);
  font-size: 14px;
  line-height: 1.7;
  color: #70302B;
}

/* ---------- 10. 我不做什么（合规护城河） ---------- */
.refuse {
  padding: 48px 40px;
  background: var(--paper);
  border: 2px solid var(--navy);
  border-radius: var(--r);
}
.refuse__title { font-size: 24px; color: var(--navy); }

.refuse__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 28px;
}
.refuse__list li {
  padding: 20px 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  border-top: 1px solid var(--line);
}
.refuse__list li:nth-child(1),
.refuse__list li:nth-child(2) { border-top: 0; padding-top: 0; }
.refuse__list li:nth-child(1),
.refuse__list li:nth-child(3) { padding-right: 32px; }
.refuse__list li:nth-child(2),
.refuse__list li:nth-child(4) { padding-left: 32px; border-left: 1px solid var(--line); }

.refuse__foot {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- 11. 研究报告 ---------- */
.rep {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.rep__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease-out, border-color .2s, box-shadow .2s;
}
.rep__card:hover {
  transform: translateY(-2px);
  border-color: var(--line-soft);
  box-shadow: var(--shadow-lift);
}

/* 图片一律用纯色占位块，并标注尺寸 */
.rep__cover {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 640 / 280;
  background: #F4F6F8;
  border: 1px dashed var(--line-soft);
  border-radius: 6px;
}
.rep__cover span {
  font-family: var(--font-num);
  font-size: 12px;
  color: #9AA1AB;
  letter-spacing: .04em;
}

.rep__title { font-size: 17px; line-height: 1.6; color: var(--navy); transition: color .2s; }
.rep__card:hover .rep__title { color: var(--wine); }
.rep__meta { margin-top: auto; font-size: 13px; color: var(--muted); }

/* 样本报告领取条 */
.dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
  margin-top: 56px;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--wine);
  border-radius: var(--r);
}
.dl__txt h3 { font-size: 18px; line-height: 1.6; color: var(--navy); }
.dl__txt p { margin-top: 8px; font-size: 14px; color: var(--muted); }

.dl__row { display: flex; gap: 12px; }
.dl__row .input { flex: 1; min-width: 0; }
.dl__row .btn { flex: none; }

.ok {
  font-size: 14.5px;
  line-height: 1.75;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- 12. 表单控件 ---------- */
.input {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #D5D9DE;
  border-radius: 6px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input::placeholder { color: #9AA1AB; }
.input:hover { border-color: #B9C0C8; }
.input:focus {
  outline: none;
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(150, 38, 30, .12);
}
.input[aria-invalid="true"] { border-color: var(--wine); background: var(--wine-mist); }
textarea.input { resize: vertical; min-height: 140px; line-height: 1.75; }

.field { margin: 0 0 24px; padding: 0; border: 0; }
.field__label {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.optional { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--muted); }

.radios { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: var(--paper);
  border: 1px solid #D5D9DE;
  border-radius: var(--r);
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.radio:hover { border-color: #B9C0C8; }
.radio input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--wine); }
/* 两种写法并存：:has() 是新浏览器的选择，.is-checked 由 script.js 补，老浏览器也不会丢样式 */
.radio:has(input:checked),
.radio.is-checked { border-color: var(--wine); background: var(--wine-mist); }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  cursor: pointer;
}
.check input { flex: none; width: 17px; height: 17px; margin: 5px 0 0; accent-color: var(--wine); }

.hint {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.counter { flex: none; font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.counter.is-ok { color: var(--wine); font-weight: 600; }

.err { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--wine); }
.err:empty { display: none; }

/* ---------- 13. 需求表单区 ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 64px;
}

.contact__aside h2 { font-size: 30px; line-height: 1.35; color: var(--navy); }
.contact__lede { margin-top: 14px; font-size: 16px; color: var(--muted); }

.contact__before {
  margin-top: 32px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.contact__before h3 { font-size: 15px; color: var(--navy); }
.contact__before ul { margin-top: 12px; }
.contact__before li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
}
.contact__before li:last-child { margin-bottom: 0; }
.contact__before li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 5px; height: 5px;
  background: var(--wine);
  border-radius: 50%;
}

/* 企业微信二维码：不想填表就走这条。细线分隔，不做第二张白卡 */
.contact__qr {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.contact__qr-img {
  flex: none;
  width: 128px;
  height: 128px;
  padding: 7px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  object-fit: contain;
}
.contact__qr-txt h3 { font-size: 15px; color: var(--navy); }
.contact__qr-txt p { margin-top: 10px; font-size: 14px; line-height: 1.75; color: var(--muted); }

.form {
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.form__mail { font-size: 13px; color: var(--muted); }
.form__mail a { color: var(--navy); }

/* 提交失败的错误行：在 .form__foot 这个 flex 行里独占一行，
   否则它会挤到按钮右边，一行放不下时位置很随机。 */
.form__foot .err { flex: 1 0 100%; margin-top: 0; }

.form__ref {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.form__ref b { color: var(--navy); font-variant-numeric: tabular-nums; }

/* 蜜罐字段：移出视口、不占布局、也不进无障碍树。
   用 display:none 的话一部分脚本会直接跳过不填，反而失去识别作用。 */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__done {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--wine);
  border-radius: var(--r);
}
.form__done h3 { font-size: 20px; color: var(--navy); }
.form__done p { margin-top: 12px; font-size: 15.5px; line-height: 1.85; color: var(--ink); }

/* ---------- 14. 页脚 ---------- */
.footer {
  padding: 56px 0 40px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.footer__company { font-size: 17px; font-weight: 700; color: var(--navy); }
.footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}
.footer__contact a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line); }
.footer__contact a:hover { color: var(--wine); border-bottom-color: var(--wine); }

.footer__disclaimer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 88ch;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.footer__copy { margin-top: 16px; font-size: 12px; color: #9AA1AB; }

/* ---------- 15. 响应式：1024 断点 ---------- */
@media (max-width: 1024px) {
  .sec { padding: 72px 0; }
  .hero { padding: 64px 0 56px; }

  /* 服务两栏改为上下堆叠，去掉分栏竖线 */
  .svcs { grid-template-columns: 1fr; }
  .svc-col { padding-right: 0; }
  .svc-col + .svc-col {
    padding-left: 0;
    margin-top: 48px;
    padding-top: 40px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  /* 表单区改为单列，说明在前 */
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .contact__before { margin-top: 24px; }
  .contact__qr { gap: 16px; align-items: flex-start; }
  .contact__qr-img { width: 116px; height: 116px; }

  /* 四件事：两列并排在中屏还站得住，只是把中间的沟收窄 */
  .msn__item { gap: 10px 32px; }
  .msn__link { gap: 10px 24px; }
}

/* ---------- 16. 响应式：768 断点 ---------- */
@media (max-width: 767px) {
  :root { --gutter: 20px; }

  .sec { padding: 56px 0; }
  .hero { padding: 48px 0 40px; }

  /* 导航折叠为汉堡菜单 */
  .nav__toggle { display: inline-flex; }
  .nav__panel {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(31, 41, 55, .07);
  }
  .nav__panel.is-open { display: flex; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__links li { border-bottom: 1px solid var(--line); }
  .nav__links a { display: block; padding: 16px 0; font-size: 16px; }
  .nav__links a::after { display: none; }
  .nav__cta { margin-top: 20px; width: 100%; }

  /* 四件事：窄屏改成上下两行，标题在上、做法在下 */
  .msn { margin-top: 32px; }
  .msn__item { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .msn__t { padding-left: 30px; font-size: 18px; }
  .msn__t::before { width: 18px; }
  .msn__d { font-size: 15px; line-height: 1.78; }

  /* 「接着去哪」：标题与说明上下排，箭头留在右边一整列 */
  .msn--go { margin-top: 32px; }
  .msn__link { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 18px 0; }
  .msn__link .msn__t { grid-column: 1; grid-row: 1; }
  .msn__link .msn__d { grid-column: 1; grid-row: 2; }
  .msn__link::after { grid-column: 2; grid-row: 1 / span 2; }

  /* 定位语：字收一号，短横线跟着收 */
  .about { padding-bottom: 22px; }
  .about__h { max-width: none; }
  .about__turn { gap: 10px; }
  .about__turn::before { width: 22px; }

  .rep { grid-template-columns: 1fr; gap: 16px; }

  /* 信任条换行 */
  .trust__list li { padding: 4px 16px; font-size: 13.5px; }
  .trust__list li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .trust__list li:nth-child(1) { padding-top: 0; }

  /* 服务项：label/value 由两列变纵向 */
  .svc__spec > div { grid-template-columns: 1fr; gap: 0; padding: 6px 0; }
  .svc__spec dt { font-size: 12.5px; }
  .svc__price { flex-wrap: wrap; }

  /* 案例 */
  .case { padding: 24px; }
  .case__meta { gap: 12px 32px; }

  /* 我不做什么：四列网格变单列 */
  .refuse { padding: 32px 24px; }
  .refuse__title { font-size: 21px; }
  .refuse__list { grid-template-columns: 1fr; margin-top: 20px; }
  .refuse__list li {
    padding: 16px 0;
    font-size: 19px;
    border-top: 1px solid var(--line);
  }
  .refuse__list li:nth-child(1) { border-top: 0; padding-top: 0; }
  .refuse__list li:nth-child(2),
  .refuse__list li:nth-child(4) { padding-left: 0; border-left: 0; }
  .refuse__list li:nth-child(1),
  .refuse__list li:nth-child(3) { padding-right: 0; }

  /* 领取条与表单 */
  .dl { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .dl__row { flex-direction: column; }
  .dl__row .btn { width: 100%; }

  .form { padding: 24px; }
  .radios { grid-template-columns: 1fr; }
  .hint { flex-direction: column; gap: 4px; }
  .form__foot { flex-direction: column; align-items: stretch; gap: 16px; }
  .form__foot .btn { width: 100%; }

  .footer { padding: 40px 0 32px; }
  .footer__contact { flex-direction: column; gap: 8px; }
}

/* ---------- 17. 扫码付费弹窗 ---------- */
/* 形制上是一张「付款单」，不是通用模态框：窄、细线、金额用等宽大数字，
   与页面里 .svc__price 那一行的读法保持一致。 */
.pay {
  position: fixed;
  inset: 0;
  z-index: 110;                 /* 高于登录面板(100)，低于提示条(120) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pay__mask {
  position: absolute;
  inset: 0;
  background: rgba(31, 41, 55, .55);
  animation: payFade .18s ease-out;
}

.pay__card {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 28px 28px 24px;
  background: var(--paper);
  border-radius: var(--r);
  border-top: 3px solid var(--wine);
  box-shadow: 0 12px 40px rgba(31, 41, 55, .22);
  animation: payPop .22s ease-out;
}
.pay__x {
  position: absolute;
  top: 10px; right: 12px;
  width: 32px; height: 32px;
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--r);
}
.pay__x:hover { color: var(--ink); background: var(--bg); }

.pay__code {
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--wine);
}
.pay__title {
  margin-top: 4px;
  font-size: 19px;
  line-height: 1.45;
  color: var(--navy);
}

/* 档位：一行一档，label 左 / 金额右，选中态给酒红竖线与极浅底色 */
.pay__items { margin-top: 20px; border-bottom: 1px solid var(--line); }
.pay__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  width: 100%;
  padding: 12px 12px 12px 14px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .16s ease-out;
}
.pay__item:hover { background: var(--bg); }
.pay__item[aria-checked="true"] {
  background: var(--wine-mist);
  box-shadow: inset 3px 0 0 var(--wine);
}
.pay__item-label { font-size: 15px; color: var(--ink); }
.pay__item-amt {
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--wine);
}
.pay__item-note {
  grid-column: 1 / -1;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 积分抵减 ----------
   做成「输入一个数、立刻看到抵掉多少」的形式，而不是滑块：
   整站走的是测算底稿的路子，数字输入比一根拖条更贴合，也避开了
   range input 在各浏览器里那套不好收的默认样式。 */
.pay__pts {
  margin-top: 16px;
  padding: 14px 16px 12px;
  background: var(--wine-mist);
  border: 1px solid rgba(150, 38, 30, .16);
  border-radius: var(--r);
}
.pay__pts-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.pay__pts-t { font-size: 14px; font-weight: 700; color: var(--navy); }
.pay__pts-rate {
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--muted);
}
.pay__pts-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.pay__pts-lab { font-size: 13px; color: var(--muted); }
.pay__pts-in {
  width: 92px;
  padding: 6px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--paper);
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
  text-align: right;
}
.pay__pts-in:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 1px;
}
.pay__pts-unit { font-size: 13px; color: var(--muted); }
.pay__pts-eq { margin-left: auto; font-size: 13px; color: var(--muted); }
.pay__pts-eq b {
  font-family: var(--font-num);
  font-size: 17px;
  font-weight: 700;
  color: var(--wine);
}
.pay__pts-acts { display: flex; gap: 8px; margin-top: 10px; }
.pay__pts-quick {
  padding: 5px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--paper);
  font: inherit;
  font-size: 12.5px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .16s ease-out, color .16s ease-out;
}
.pay__pts-quick:hover { border-color: var(--wine); color: var(--wine); }
.pay__pts-quick:disabled { opacity: .45; cursor: not-allowed; }
.pay__pts-quick:disabled:hover { border-color: var(--line-soft); color: var(--ink); }
.pay__pts-note {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* 抵完之后的原价划线：压在金额正下方一行，不参与二维码的垂直流 ——
   免得多一行就把码顶下去。 */
.pay__cut {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
  font-family: var(--font-num);
  font-size: 13px;
}
.pay__cut s { color: var(--muted); }
.pay__cut em { font-style: normal; font-weight: 700; color: var(--wine); }

/* 金额 + 二维码 + 状态 */
.pay__slot {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  text-align: center;
}
.pay__amt { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.pay__amt span,
.pay__amt i { font-style: normal; font-size: 13px; color: var(--muted); }
.pay__amt b {
  font-family: var(--font-num);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--wine);
}

.pay__qr {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 212px;
  margin-top: 14px;
}
.pay__qr canvas { width: 200px; height: 200px; display: block; }
.pay__qr-hint { font-size: 13px; color: var(--muted); }
/* 正在生成：给一个跟二维码同尺寸的虚线框，别让布局跳一下 */
.pay__qr--wait::before {
  content: "";
  width: 200px; height: 200px;
  border: 1px dashed var(--line-soft);
  border-radius: 4px;
}

.pay__state { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.pay__state--err { color: var(--wine); }

.pay__foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.pay__foot a { color: var(--navy); }

@keyframes payFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes payPop {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* 窄屏：从底部升起（与桌面同一个动画时长，只是方向不同） */
@keyframes payUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 窄屏改成贴底的抽屉：上方留一点遮罩表示"这是浮层"，
   比居中一张小卡片好点，二维码也不用缩。
   这段必须写在 .pay 的基础样式之后 —— 媒体查询不提升特异性，靠顺序覆盖。 */
@media (max-width: 767px) {
  .pay { align-items: flex-end; padding: 0; }
  .pay__card {
    max-width: none;
    max-height: 92vh;
    border-radius: 12px 12px 0 0;
    padding: 24px 20px 20px;
    animation-name: payUp;
  }
  .pay__amt b { font-size: 32px; }
  .pay__foot { padding-bottom: 4px; }
}

/* ---------- 17·乙. 付款成功提示 ----------
   付完付款单关掉、结果单独弹一次，所以这是另一个窗口，不是同一张的两个状态。
   规矩也跟付款单相反：它是个通知，点遮罩就收，不必逼人找个按钮。
   一句话只办一件事 —— 这里只告诉人「钱到了、接下来干什么」。 */
.payok {
  position: fixed;
  inset: 0;
  z-index: 115;                 /* 高于付款单(110)、低于提示条(120) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.payok__mask {
  position: absolute;
  inset: 0;
  background: rgba(31, 41, 55, .5);
  animation: payFade .18s ease-out;
}

.payok__card {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 32px 28px 26px;
  background: var(--paper);
  border-radius: var(--r);
  border-top: 3px solid var(--wine);
  box-shadow: 0 12px 40px rgba(31, 41, 55, .22);
  text-align: center;
  animation: payPop .22s ease-out;
}

/* 对勾用酒红：这个语境里绿色是"跌"，观感是错的 */
.payok__mk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--wine-mist);
  color: var(--wine);
  font-size: 22px;
  line-height: 1;
}
.payok__title { margin-top: 16px; font-size: 20px; color: var(--navy); }

.payok__amt {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.payok__amt b {
  font-family: var(--font-num);
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--wine);
}
.payok__amt span { font-size: 13.5px; color: var(--muted); }

.payok__note {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}

.payok__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}
.payok__acts .btn { padding: 12px 20px; font-size: 14.5px; }

@media (max-width: 767px) {
  .payok { align-items: flex-end; padding: 0; }
  .payok__card {
    max-width: none;
    border-radius: 12px 12px 0 0;
    padding: 26px 20px 22px;
    animation-name: payUp;
  }
  .payok__acts { flex-direction: column; }
  .payok__acts .btn { width: 100%; }
}

/* ---------- 17·补. 工具页签 ----------
   它不是一个新窗口，也不是一个要滚到半山腰才看得见的 section，
   而是盖住「导航以下整个视口」的一层视图 —— 顶栏不动，
   点任何一个首页页签都能原路回去，这才是「主页中的一个页签」。

   之所以不塞进正常文档流：看板自带滚动，两套滚动混在一个页面里，
   长表格会永远滚不到底（外层没到底、内层已经到底）。
   ========================================================================== */

.toolview {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;                      /* 压在内容之上，让位给导航（50） */
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.toolview[hidden] { display: none; }

/* 工具打开时锁住背景滚动：否则滚轮会在看板内部和官网之间来回抢 */
body.toolmode { overflow: hidden; }

.toolview__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
  height: 52px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.toolview__id { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.toolview__code {
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
  background: var(--navy);
  padding: 3px 7px;
  border-radius: 4px;
}
.toolview__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 工具页下的子工具页签：期权扫描看板 / 价差对比。
   未登录、待订阅时整条藏起来（hidden + display:none 双保险，
   [hidden] 压不过 author 的 display:flex）。 */
.toolview__tabs { display: flex; gap: 4px; flex: none; }
.toolview__tabs[hidden] { display: none; }
.toolview__tabs button {
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .16s ease-out, color .16s ease-out, background .16s ease-out;
}
.toolview__tabs button:hover { color: var(--wine); }
.toolview__tabs button.is-active {
  color: var(--navy);
  font-weight: 700;
  background: var(--wine-mist);
  border-color: var(--line-soft);
}
@media (max-width: 900px) {
  .toolview__name { display: none; }
}
@media (max-width: 680px) {
  .toolview__tabs button { padding: 6px 10px; font-size: 12.5px; }
  .toolview__meta { display: none; }
}

.toolview__meta {
  margin: 0 0 0 auto;
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.toolview__meta b { color: var(--navy); font-weight: 700; }
/* 快到期才动用酒红：整站的酒红是主色担当，日常状态不抢它 */
.toolview__meta--soon b { color: var(--wine); }

.toolview__back {
  flex: none;
  padding: 7px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--paper);
  font: inherit;
  font-size: 13.5px;
  color: var(--navy);
  cursor: pointer;
  transition: border-color .16s ease-out, color .16s ease-out;
}
.toolview__back:hover { border-color: var(--wine); color: var(--wine); }

.toolview__body { flex: 1; min-height: 0; display: flex; }

/* 看板本体：给一层深色底 + 内描边，让它像一块嵌进来的仪表屏，
   而不是网页上破了个洞。iframe 内部自己是暗色主题，这个底能接得住边缘。 */
.toolview__frame {
  flex: 1;
  min-height: 0;
  width: 100%;
  border: 0;
  background: #0F1620;
}

/* 三种状态卡：文案走「下一步该干什么」的路子，不道歉、不含糊 */
.toolview__card {
  margin: auto;
  max-width: 460px;
  padding: 36px 32px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lift);
}
.toolview__card h2 { margin-top: 14px; font-size: 21px; color: var(--navy); }
.toolview__card p { margin-top: 12px; font-size: 14.5px; line-height: 1.75; color: var(--muted); }
.toolview__card .toolview__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}
.toolview__mk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--wine-mist);
  color: var(--wine);
  font-size: 18px;
}
/* 规则条：一行一条，label 左 / value 右，跟 .svc__spec 同一种对齐语言 */
.toolview__rule {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  text-align: left;
}
.toolview__rule dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; }
.toolview__rule dt { font-size: 13px; color: var(--muted); white-space: nowrap; }
.toolview__rule dd {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 767px) {
  .toolview__bar { height: 48px; gap: 10px; padding: 0 16px; }
  .toolview__meta { font-size: 12px; }
  .toolview__name { font-size: 14px; }
  .toolview__back { padding: 6px 11px; font-size: 13px; }
  .toolview__card { margin: 24px 16px; padding: 28px 22px; }
}

/* ---------- 18. 尊重系统的"减少动态效果"设置 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .btn:hover,
  .rep__card:hover { transform: none; }
}

/* ---------- 19. 打印时不做任何动效，保证纸质稿内容齐全 ---------- */
@media print {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .nav { position: static; }
  .pay { display: none !important; }    /* 付款弹窗不进纸质稿 */
  .payok { display: none !important; }  /* 成功提示同理 */
}

/* ==========================================================================
   20. 会员等级说明页（levels.html）
   独立页面，复用首页的导航与页脚，只有正文版式是这里新增的。
   表格在窄屏不缩字：改成横向滚动，手机上滑动看右半张表比看挤成一团的字好。
   ========================================================================== */

.doc { padding: 56px 0 24px; }
.doc__lead { max-width: 760px; }
.doc__kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--wine);
  font-weight: 700;
}
.doc__h1 {
  margin-top: 12px;
  font-size: 34px;
  line-height: 1.35;
  color: var(--navy);
}
.doc__sub { margin-top: 16px; font-size: 16.5px; color: var(--muted); }
.doc__meta { margin-top: 18px; font-size: 13px; color: #9AA1AB; }

.doc__sec { padding: 40px 0; border-top: 1px solid var(--line); }
.doc__sec:first-of-type { border-top: 0; }
.doc__sec h2 {
  font-size: 22px;
  color: var(--navy);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.doc__sec h2 span { font-size: 13px; font-weight: 400; color: #9AA1AB; }
.doc__sec h3 { margin-top: 28px; font-size: 17px; color: var(--navy); }
.doc__sec p { margin-top: 14px; color: var(--ink); }
.doc__note {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--wine-mist);
  border-left: 3px solid var(--wine);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 14.5px;
  color: var(--ink);
}
.doc__note b { color: var(--wine); }

/* 四张等级卡：一眼看清每级「怎么拿」和「会不会掉」 */
.doc-lv {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.doc-lv__card {
  padding: 20px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.doc-lv__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 700;
}
.doc-lv__card[data-level="S"] .doc-lv__tag { background: var(--wine); }
.doc-lv__name { margin-top: 12px; font-size: 16px; font-weight: 700; color: var(--navy); }
.doc-lv__body { margin-top: 8px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.doc-lv__body b { color: var(--ink); font-weight: 600; }

/* 表格：外层负责滚动，内层负责排版 */
.doc-tw {
  margin-top: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.doc-tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.doc-tbl th,
.doc-tbl td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.doc-tbl thead th {
  background: var(--bg);
  color: var(--navy);
  font-size: 13.5px;
  white-space: nowrap;
}
.doc-tbl tbody tr:last-child th,
.doc-tbl tbody tr:last-child td { border-bottom: 0; }
.doc-tbl td.n { font-family: var(--font-num); white-space: nowrap; }
.doc-tbl th[scope="row"] { font-weight: 700; color: var(--navy); white-space: nowrap; }
.doc-tbl .up { color: var(--wine); font-weight: 600; }    /* 升级：酒红 */
.doc-tbl .keep { color: #2F6F44; font-weight: 600; }      /* 保级：绿 */

/* 常见问题：不用 details 的默认三角，自己画一个更贴版式的 */
.doc-faq { margin-top: 20px; border-top: 1px solid var(--line); }
.doc-faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.doc-faq summary {
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.doc-faq summary::-webkit-details-marker { display: none; }
.doc-faq summary::before {
  content: "+";
  flex: none;
  width: 18px;
  color: var(--wine);
  font-weight: 700;
  font-family: var(--font-num);
}
.doc-faq details[open] summary::before { content: "−"; }
.doc-faq p { margin-top: 10px; padding-left: 28px; font-size: 14.5px; color: var(--muted); }

.doc__back { margin: 44px 0 88px; display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 1024px) {
  .doc-lv { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .doc { padding: 36px 0 16px; }
  .doc__h1 { font-size: 26px; }
  .doc__sec { padding: 32px 0; }
  .doc__sec h2 { font-size: 19px; }
  .doc-lv { grid-template-columns: 1fr; }
  .doc-faq p { padding-left: 0; }
  .doc__back { margin: 32px 0 64px; }
}
