@charset "utf-8";

/* ============================================================
   热血江湖传 · 官方网站
   www.rxjhzgw.cn
   ------------------------------------------------------------
   01 变量与基础
   02 通用组件
   03 页头与导航
   04 首屏
   05 快速索引
   06 通用区块
   07 游戏介绍
   08 门派职业
   09 江湖玩法
   10 新手攻略
   11 常见问题
   12 下载区
   13 页脚
   14 响应式
   ============================================================ */

/* ---------- 01 变量与基础 ---------- */
:root {
  --paper: #f7f3ea;
  --paper-deep: #efeadb;
  --paper-soft: #fbf8f1;
  --line: #ded5c1;
  --line-soft: #e8e1d1;
  --ink: #1b1a18;
  --ink-soft: #3b3730;
  --ink-mute: #6b6558;
  --red: #a5301f;
  --red-deep: #852418;
  --gold: #8f7346;

  --serif: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC", "SimSun", "STZhongsong", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", Menlo, monospace;

  --wrap: 1180px;
  --gutter: 24px;
  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; }

::selection {
  background: var(--red);
  color: var(--paper-soft);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* 锚点定位时留出吸顶导航的高度 */
section[id],
.doc-sec[id],
.page-head,
.dl {
  scroll-margin-top: 88px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

/* ---------- 02 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .24s var(--ease),
              border-color .24s var(--ease),
              color .24s var(--ease);
}
.btn-ico {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1;
}
.btn--sm { padding: 11px 22px; font-size: 14px; }

.btn--red {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn--red:hover,
.btn--red:active { background: var(--red-deep); border-color: var(--red-deep); }

.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:hover,
.btn--ghost:active { background: var(--ink); color: var(--paper); }

.btn--paper {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.btn--paper:hover,
.btn--paper:active { background: #fff; border-color: #fff; }

.btn--line {
  background: transparent;
  border-color: #6d6558;
  color: var(--paper);
}
.btn--line:hover,
.btn--line:active { border-color: var(--paper); background: #2b2925; }

.tag {
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .06em;
  color: var(--ink-mute);
  white-space: nowrap;
}

/* JS 渐进增强：仅当脚本就绪时才隐藏待显现元素 */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js-ready [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- 03 页头与导航 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.header.is-scrolled {
  box-shadow: 0 10px 30px -22px rgba(27, 26, 24, .55);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}
.brand-logo {
  flex: none;
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 7px;
  background: #1a7ab5;
}
.brand-txt { display: flex; flex-direction: column; gap: 1px; }
.brand-txt strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.2;
}
.brand-txt small {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--ink-mute);
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}
.nav a {
  position: relative;
  padding: 6px 0;
  font-size: 15px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .24s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s var(--ease);
}
.nav a:hover { color: var(--red); }
.nav a:hover::after { transform: scaleX(1); }
.nav a.is-current { color: var(--red); }
.nav a.is-current::after { transform: scaleX(1); }

.header-act { flex: none; }

/* ---------- 04 首屏 ---------- */
.hero {
  position: relative;
  padding-top: 72px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .26em;
  color: var(--red);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  margin-right: 10px;
  background: var(--red);
  vertical-align: middle;
}

.hero h1 {
  margin-top: 26px;
  font-size: clamp(46px, 6.2vw, 84px);
  line-height: 1.04;
  letter-spacing: .1em;
}
.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero-sub {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(17px, 1.9vw, 21px);
  letter-spacing: .16em;
  color: var(--ink-soft);
}

.hero-lead {
  max-width: 34em;
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-mute);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-mute);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before {
  content: "";
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
}

/* 首屏轮播：5 张 750×1350 宣传图 */
.hero-show {
  width: 100%;
  max-width: 400px;
  justify-self: end;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}

.slides {
  position: relative;
  aspect-ratio: 750 / 1350;
  overflow: hidden;
  background: #14100e;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .75s var(--ease);
}
.slide.is-active { opacity: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.show-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.dots {
  display: flex;
  align-items: center;
  gap: 4px;
}
.dot {
  padding: 9px 3px;
  border: 0;
  background: none;
  line-height: 0;
  cursor: pointer;
}
.dot span {
  display: block;
  width: 14px;
  height: 2px;
  background: var(--line);
  transition: background-color .24s var(--ease);
}
.dot:hover span { background: var(--ink-mute); }
.dot.is-active span { background: var(--red); }

.show-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
}
.show-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .24s var(--ease),
              border-color .24s var(--ease),
              color .24s var(--ease);
}
.show-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.show-count {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}
.show-count b {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- 05 快速索引 ---------- */
.idx {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 66px;
  border-top: 1px solid var(--line);
}
.idx a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 22px 28px;
  border-right: 1px solid var(--line);
  text-decoration: none;
  transition: background-color .28s var(--ease);
}
.idx a:last-child { border-right: none; }
.idx a:hover { background: var(--paper-soft); }
.idx-no {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--red);
}
.idx-t {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: .08em;
}
.idx-d {
  font-size: 13px;
  color: var(--ink-mute);
}

/* ---------- 06 通用区块 ---------- */
.sec { padding: 84px 0; }
.sec--alt { background: var(--paper-deep); }

.sec-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 46px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.sec-no {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .2em;
  color: var(--red);
  padding-top: 8px;
}
.sec-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.3;
  letter-spacing: .06em;
}
.sec-head p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-mute);
}

/* ---------- 07 游戏介绍 ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 60px;
  align-items: start;
}
.intro-text p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-soft);
}
.intro-text .lead {
  font-size: 17px;
  line-height: 1.95;
  color: var(--ink);
}
.intro-text .intro-note {
  padding-left: 18px;
  border-left: 2px solid var(--line);
  font-size: 15px;
  color: var(--ink-mute);
}

.fact {
  border: 1px solid var(--line);
  background: var(--paper-soft);
}
.fact-head {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .2em;
  color: var(--ink-mute);
}
.fact dl { margin: 0; }
.fact .row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.fact .row:last-child { border-bottom: none; }
.fact dt {
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: .06em;
}
.fact dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

/* ---------- 08 门派职业 ---------- */
.jobs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--paper-soft);
}
.job {
  padding: 30px 22px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s var(--ease);
}
.job:hover { background: #fff; }
.job-no {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--red);
}
.job h3 {
  margin: 14px 0 10px;
  font-size: 24px;
  letter-spacing: .1em;
}
.job p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-mute);
}
.job .job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.jobs-foot {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-mute);
}
.jobs-foot::before {
  content: "※";
  margin-right: 6px;
  color: var(--gold);
}

/* ---------- 09 江湖玩法 ---------- */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 46px 172px minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .32s var(--ease);
}
.row:hover { padding-left: 8px; }
.row-no {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--red);
}
.row h3 {
  font-size: 20px;
  letter-spacing: .08em;
  font-weight: 600;
}
.row p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-mute);
}

/* ---------- 10 新手攻略 ---------- */
.guides {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.g-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px 24px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.g-card:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 24px 40px -34px rgba(27, 26, 24, .6);
}
.g-card .k {
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--gold);
}
.g-card h3 {
  font-size: 19px;
  line-height: 1.55;
  letter-spacing: .05em;
}
.g-card p {
  flex: 1;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-mute);
}
.g-card .more {
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--red);
}

/* ---------- 11 礼包兑换码 ---------- */
.packs {
  border-top: 1px solid var(--line);
}

.pack-head,
.pack {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 186px;
  gap: 22px;
  align-items: center;
}

.pack-head {
  padding: 11px 0 10px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--ink-mute);
}

.pack {
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color .24s var(--ease);
}
.pack:hover { background: var(--paper-soft); }

.pack-name {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: .08em;
  color: var(--ink);
}

.pack-items {
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.code-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  text-align: left;
  cursor: pointer;
  transition: border-color .24s var(--ease), background-color .24s var(--ease);
}
.code-btn:hover {
  border-color: var(--ink);
  background: var(--paper);
}
.code-txt {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--ink);
}
.code-hint {
  flex: none;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink-mute);
  transition: color .24s var(--ease);
}
.code-btn:hover .code-hint { color: var(--red); }
.code-btn.is-done {
  border-color: var(--red);
  background: var(--paper);
}
.code-btn.is-done .code-hint { color: var(--red); }

.packs-note {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-mute);
}

/* ---------- 12 常见问题 ---------- */
.faq {
  max-width: 880px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .04em;
  color: var(--ink);
  transition: color .24s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red); }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1;
  color: var(--red);
  transition: transform .24s var(--ease);
}
.faq details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}
.faq details p {
  margin-top: 14px;
  max-width: 44em;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-soft);
}

/* ---------- 13 下载区 ---------- */
.dl {
  padding: 74px 0;
  background: var(--ink);
  color: var(--paper);
}
.dl-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 56px;
  align-items: center;
}
.dl h2 {
  margin-top: 14px;
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: .08em;
  color: var(--paper);
  line-height: 1.25;
}
.sec-no--light {
  display: block;
  padding-top: 0;
  color: #b98b63;
}
.dl-copy p {
  max-width: 32em;
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.95;
  color: #b8b2a4;
}

.dl-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.dl-btns .btn { flex: 1 1 190px; }
.dl-note {
  margin-top: 22px;
  font-size: 13px;
  line-height: 1.9;
  color: #948e80;
}

/* ---------- 14 页脚 ---------- */
.footer {
  padding: 64px 0 40px;
  background: #141311;
  color: #a49e90;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.1fr);
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid #2c2a25;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .16em;
  color: var(--paper);
}
.footer-slogan {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: .12em;
  color: #7d776a;
}
.footer-desc {
  margin-top: 18px;
  max-width: 30em;
  font-size: 13px;
  line-height: 1.9;
}

.footer-nav h3 {
  margin-bottom: 16px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .16em;
  color: #7d776a;
}
.footer-nav li { margin-bottom: 9px; }
.footer-nav a {
  font-size: 14px;
  color: #a49e90;
  text-decoration: none;
  transition: color .24s var(--ease);
}
.footer-nav a:hover { color: var(--paper); }

.age-tip {
  font-size: 13px;
  line-height: 1.9;
}
.age-tip span {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 6px;
  border: 1px solid #4a463d;
  font-family: var(--serif);
  font-size: 13px;
  color: #c9bfa9;
}

.health {
  margin-top: 30px;
  padding: 20px 24px;
  border: 1px solid #2c2a25;
  background: #191814;
}
.health-title {
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: .18em;
  color: #c9bfa9;
}
.health p:last-child {
  font-size: 13px;
  line-height: 1.9;
  color: #8c8678;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 26px;
  font-size: 12px;
  line-height: 1.8;
  color: #787266;
}
.footer-law { color: #5f5a50; }

/* ---------- 15 内容页（攻略） ---------- */
.page-head {
  padding: 56px 0 42px;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-mute);
}
.breadcrumb a {
  color: var(--ink-mute);
  text-decoration: none;
  transition: color .24s var(--ease);
}
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span[aria-hidden] { color: var(--gold); }

.page-head h1 {
  margin-top: 20px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: .1em;
}
.page-lead {
  max-width: 40em;
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-soft);
}
.page-meta {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink-mute);
}

.doc-grid {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 84px;
}

.toc {
  position: sticky;
  top: 96px;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}
.toc-title {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--ink-mute);
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc li { border-bottom: 1px solid var(--line-soft); }
.toc li a {
  display: block;
  padding: 11px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .24s var(--ease);
}
.toc li a:hover { color: var(--red); }
.toc-cta {
  margin-top: 22px;
  font-size: 13px;
}
.toc-cta a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.doc { max-width: 768px; }
.doc-sec { margin-bottom: 56px; }
.doc-sec h2 {
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.45;
  letter-spacing: .05em;
}
.doc-sec h2 span {
  margin-right: 12px;
  font-size: 15px;
  letter-spacing: .2em;
  color: var(--red);
  vertical-align: 2px;
}
.doc-sec h3 {
  margin: 30px 0 12px;
  font-size: 18px;
  letter-spacing: .06em;
}
.doc-sec p {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 2;
  color: var(--ink-soft);
}
.doc-sec strong {
  font-weight: 600;
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--line);
}

.dot-list li,
.num-list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-soft);
}
.dot-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .82em;
  width: 4px;
  height: 4px;
  background: var(--red);
}
.num-list {
  counter-reset: list-num;
  list-style: none;
  margin: 0;
  padding: 0;
}
.num-list li { padding-left: 26px; counter-increment: list-num; }
.num-list li::before {
  content: counter(list-num) ".";
  position: absolute;
  left: 0;
  font-family: var(--serif);
  color: var(--red);
}

.table-wrap {
  margin: 24px 0 10px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}
caption {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--ink-mute);
}
th,
td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  font-size: 14px;
  line-height: 1.7;
}
thead th {
  background: var(--paper-deep);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: .08em;
  white-space: nowrap;
}
tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
tbody td { color: var(--ink-mute); }
tbody tr:last-child th,
tbody tr:last-child td { border-bottom: none; }

.doc-sec .tip {
  padding: 16px 20px;
  border-left: 2px solid var(--red);
  background: var(--paper-soft);
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.qa dt {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
}
.qa dd {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-mute);
}

.doc-end {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--ink-mute);
}
.doc-back {
  margin-top: 16px;
  font-size: 14px;
}
.doc-back a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

/* ---------- 16 响应式 ---------- */
@media (max-width: 1080px) {
  .hero-grid { gap: 40px; }
  .jobs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intro-grid { gap: 40px; }
  .nav { gap: 22px; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .header-inner { min-height: 66px; }
  .hero { padding-top: 54px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }
  .hero-show {
    width: 100%;
    max-width: 420px;
    justify-self: center;
  }
  .idx { grid-template-columns: repeat(2, 1fr); margin-top: 54px; }
  .idx a:nth-child(2n) { border-right: none; }
  .idx a:nth-child(1),
  .idx a:nth-child(2) { border-bottom: 1px solid var(--line); }
  .intro-grid,
  .dl-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .sec { padding: 68px 0; }
  .sec-head { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; margin-bottom: 36px; }
  .row { grid-template-columns: 36px minmax(0, 1fr); gap: 10px 16px; }
  .row p { grid-column: 2; }
  .row h3 { font-size: 18px; }
  .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pack-head,
  .pack { grid-template-columns: 92px minmax(0, 1fr) 176px; gap: 18px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }

  /* 内容页 */
  .page-head { padding: 40px 0 32px; }
  .doc-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding-top: 34px;
    padding-bottom: 62px;
  }
  .toc {
    position: static;
    padding: 18px 20px 20px;
    border: 1px solid var(--line);
    border-top: 2px solid var(--ink);
    background: var(--paper-soft);
  }
  .doc { max-width: 100%; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 15px; }

  .header-inner { min-height: 60px; gap: 12px; }
  .brand-logo { width: 34px; height: 34px; }
  .brand-txt strong { font-size: 17px; letter-spacing: .08em; }
  .brand-txt small { display: none; }
  .header-act .btn { padding: 9px 16px; font-size: 13px; }

  .hero { padding-top: 40px; }
  .hero h1 {
    margin-top: 20px;
    font-size: clamp(38px, 12.4vw, 56px);
    letter-spacing: .06em;
  }
  .hero-sub { margin-top: 16px; font-size: 16px; letter-spacing: .12em; }
  .hero-lead { margin-top: 16px; font-size: 15px; line-height: 1.9; }
  .hero-actions { margin-top: 28px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-meta { margin-top: 18px; gap: 6px 12px; font-size: 12px; }
  .hero-show { max-width: 100%; }
  .show-bar { padding: 8px 10px 8px 12px; }

  .idx { margin-top: 44px; }
  .idx a { padding: 20px 16px 22px; }
  .idx-t { font-size: 16px; }
  .idx-d { font-size: 12px; }

  .sec { padding: 54px 0; }
  .sec-head h2 { font-size: 24px; letter-spacing: .04em; }
  .sec-head p { font-size: 14px; margin-top: 8px; }
  .sec-head { margin-bottom: 28px; padding-bottom: 16px; }

  .intro-text p { font-size: 15px; line-height: 1.9; margin-bottom: 16px; }
  .intro-text .lead { font-size: 16px; }
  .fact .row { grid-template-columns: 76px minmax(0, 1fr); padding: 12px 18px; }
  .fact-head { padding: 14px 18px; }

  .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job { padding: 22px 16px 20px; }
  .job h3 { font-size: 20px; margin: 10px 0 8px; }
  .job p { font-size: 13px; line-height: 1.8; }
  .job:last-child { grid-column: span 2; }
  .jobs-foot { font-size: 13px; }

  .row { padding: 20px 0; }
  .row p { font-size: 14px; }

  .guides { grid-template-columns: minmax(0, 1fr); gap: 14px; }

  .pack-head { display: none; }
  .pack {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 16px;
    row-gap: 9px;
    padding: 16px 0;
  }
  .pack-name { font-size: 15px; }
  .pack-items { grid-column: 1 / -1; }
  .pack-code { grid-column: 2; grid-row: 1; }
  .code-btn { padding: 6px 8px; }
  .code-txt { font-size: 12px; letter-spacing: .08em; }
  .packs-note { font-size: 11px; }
  .g-card { padding: 22px 20px 20px; }
  .g-card h3 { font-size: 18px; }

  .faq summary { font-size: 16px; }
  .faq details p { font-size: 14px; }

  .dl { padding: 54px 0 58px; }
  .dl h2 { font-size: 26px; }
  .dl-copy p { font-size: 14px; }
  .dl-btns { gap: 12px; }
  .dl-btns .btn { flex: 1 1 100%; }

  .footer { padding: 44px 0 32px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 32px; }
  .footer-bottom { font-size: 11px; }
  .health { padding: 16px 18px; }

  /* 内容页 */
  .page-head { padding: 30px 0 26px; }
  .page-head h1 { margin-top: 14px; font-size: 28px; }
  .page-lead { font-size: 14px; margin-top: 12px; line-height: 1.9; }
  .doc-sec { margin-bottom: 42px; }
  .doc-sec h2 { font-size: 21px; margin-bottom: 18px; }
  .doc-sec h3 { font-size: 17px; margin-top: 24px; }
  .doc-sec p,
  .dot-list li,
  .num-list li,
  .qa dd { font-size: 14px; line-height: 1.9; }
  .table-wrap { margin-left: -4px; margin-right: -4px; }
  table { min-width: 460px; }
  th,
  td { padding: 11px 14px; font-size: 13px; }
  caption { padding: 12px 14px; }
}

@media (max-width: 480px) {
  .jobs { grid-template-columns: minmax(0, 1fr); }
  .job { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: start; }
  .job:hover { background: transparent; }
  .job-no { padding-top: 6px; }
  .job h3 { margin-top: 0; }
  .job p { grid-column: 2; }
  .job .job-tags { grid-column: 2; margin-top: 12px; }
  .job:last-child { grid-column: auto; }
}

@media (max-width: 380px) {
  .idx { grid-template-columns: minmax(0, 1fr); }
  .idx a { border-right: none; border-bottom: 1px solid var(--line); }
  .idx a:last-child { border-bottom: none; }
  .jobs { grid-template-columns: minmax(0, 1fr); }
  .job:last-child { grid-column: auto; }
}

/* 高对比 / 减少动画 */
@media (prefers-reduced-motion: reduce) {
  .g-card:hover { transform: none; }
  .row:hover { padding-left: 0; }
}
