/* ============================================================
   首页 · 页面专属样式（全部限定在 .page-home 作用域内）
   ============================================================ */

.page-home {
  --home-gap: clamp(64px, 9vw, 132px);
  --home-rule: 1px solid var(--line);
  --home-gold-rule: 1px solid rgba(201, 162, 39, .5);
  background: var(--sand);
  overflow-x: hidden;
}

/* ---------- 首屏 ---------- */

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(36px, 6vw, 84px) clamp(48px, 8vw, 108px);
  background: linear-gradient(180deg, var(--sand) 0%, var(--sand) 68%, var(--paper) 100%);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .45;
  background-image: repeating-linear-gradient(90deg, rgba(217, 201, 166, .7) 0 1px, transparent 1px 72px);
}

.page-home .home-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 52px);
  align-items: stretch;
}

.page-home .home-hero-eyebrow {
  margin: 0 0 clamp(14px, 2vw, 22px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.page-home .home-hero h1 {
  margin: 0 0 clamp(16px, 2.4vw, 26px);
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(30px, 6.4vw, 56px);
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}

.page-home .home-hero-em {
  font-style: normal;
  background: linear-gradient(102deg, var(--gold-deep) 0%, var(--gold) 38%, #EBD37E 56%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .page-home .home-hero-em {
    color: var(--gold-deep);
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}

.page-home .home-hero-lede {
  margin: 0 0 clamp(22px, 3vw, 34px);
  max-width: 40em;
  font-size: 16px;
  line-height: 1.85;
  color: var(--graphite);
}

.page-home .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  margin: 0;
}

.page-home .home-hero-sub {
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.page-home .home-hero-sub:hover,
.page-home .home-hero-sub:focus-visible {
  color: var(--gold-deep);
  border-color: var(--gold-deep);
}

.page-home .home-hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  border: var(--home-rule);
  background: var(--ink-gold);
}

.page-home .home-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  filter: sepia(.2) contrast(1.05) saturate(.95);
}

.page-home .home-hero-lines {
  position: absolute;
  left: clamp(14px, 3vw, 36px);
  right: clamp(14px, 3vw, 36px);
  bottom: clamp(14px, 3vw, 32px);
  display: grid;
  gap: 1px;
  background: rgba(201, 162, 39, .35);
  border: 1px solid rgba(201, 162, 39, .5);
}

.page-home .home-hero-line {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 10px 14px;
  background: rgba(17, 17, 17, .82);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--paper);
}

.page-home .home-hero-line b {
  color: var(--gold);
  font-weight: 500;
}

/* ---------- 通用章节 ---------- */

.page-home .home-section {
  position: relative;
  padding-block: var(--home-gap);
}

.page-home .home-section--sand { background: var(--sand); }
.page-home .home-section--paper { background: var(--paper); }

.page-home .home-section--dark {
  background: linear-gradient(180deg, var(--ink-gold) 0%, #17120A 62%, var(--ink-gold) 100%);
  color: var(--paper);
}

.page-home .home-section--dark h2,
.page-home .home-section--dark h3 { color: var(--paper); }

.page-home .home-section--dark .eyebrow { color: var(--gold); }
.page-home .home-section--dark .section-head-note { color: #D8C9A8; }

/* ---------- 编号章节头（页面内重排） ---------- */

.page-home .section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(14px, 2.4vw, 28px);
  align-items: start;
  margin: 0 0 clamp(26px, 4vw, 46px);
}

.page-home .section-head-body h2 {
  margin: 6px 0 0;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(26px, 4.4vw, 42px);
  line-height: 1.22;
  letter-spacing: -.015em;
  color: var(--ink);
  text-wrap: balance;
}

.page-home .section-head-note {
  margin: 12px 0 0;
  max-width: 46em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--graphite);
}

/* ---------- 01 三组通道 ---------- */

.page-home .home-tablist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: var(--home-rule);
}

.page-home .home-tab {
  position: relative;
  display: grid;
  gap: 6px;
  padding: clamp(14px, 2.2vw, 22px) clamp(12px, 2vw, 22px);
  border: 0;
  background: var(--paper);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease);
}

.page-home .home-tab-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--gold-deep);
}

.page-home .home-tab-name {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(17px, 2.6vw, 24px);
  letter-spacing: -.01em;
  color: var(--ink);
}

.page-home .home-tab[aria-pressed="true"] {
  background: var(--ink);
}

.page-home .home-tab[aria-pressed="true"] .home-tab-name { color: var(--paper); }
.page-home .home-tab[aria-pressed="true"] .home-tab-num { color: var(--gold); }

.page-home .home-tab[aria-pressed="true"]::before {
  content: "";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 7px;
  height: 7px;
  background: var(--brick);
}

.page-home .home-tab[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
}

.page-home .home-tabpanels {
  margin-top: 1px;
  border: var(--home-rule);
  border-top: 0;
  background: var(--paper);
}

.page-home .home-tab-panel {
  padding: clamp(22px, 3.4vw, 40px);
  border-top: 1px solid var(--gold);
}

.page-home .home-tab-lede {
  margin: 0 0 clamp(18px, 2.6vw, 28px);
  max-width: 44em;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
}

.page-home .home-tab-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
}

.page-home .home-tab-facts > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.page-home .home-tab-facts > div:last-child { border-bottom: 1px solid var(--line); }

.page-home .home-tab-facts dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--gold-deep);
}

.page-home .home-tab-facts dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--graphite);
}

.page-home .home-tab-facts a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

.page-home .home-tab-facts a:hover,
.page-home .home-tab-facts a:focus-visible { color: var(--gold-deep); }

/* ---------- 02 案例合集 ---------- */

.page-home .home-case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.page-home .home-case-copy .section-head { margin-bottom: clamp(18px, 2.6vw, 28px); }

.page-home .home-case-text {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--graphite);
}

.page-home .home-case-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  margin: clamp(20px, 3vw, 30px) 0 0;
}

.page-home .home-case-link {
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
}

.page-home .home-case-link:hover,
.page-home .home-case-link:focus-visible { color: var(--gold-deep); }

.page-home .home-case-figure {
  margin: 0;
  border: var(--home-rule);
  background: var(--paper);
}

.page-home .home-case-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: sepia(.16) contrast(1.03);
}

.page-home .home-case-figure figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.7;
  color: var(--graphite);
}

/* ---------- 03 下载专栏 ---------- */

.page-home .home-slab {
  margin: 0 0 1px;
  border: var(--home-rule);
  background: var(--ink-gold);
}

.page-home .home-slab img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 3;
  object-fit: cover;
  filter: sepia(.24) contrast(1.04);
}

.page-home .home-slab figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--gold);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.7;
  color: var(--graphite);
}

.page-home .home-ledger {
  border: var(--home-rule);
  border-top: 0;
}

.page-home .home-download-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  margin: clamp(22px, 3vw, 32px) 0 0;
}

.page-home .home-download-note {
  flex: 1 1 240px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--graphite);
}

/* ---------- 04 会员权益订阅 ---------- */

.page-home .home-rights {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: rgba(201, 162, 39, .3);
  border: 1px solid rgba(201, 162, 39, .42);
}

.page-home .home-right {
  position: relative;
  padding: clamp(22px, 3vw, 34px) clamp(18px, 2.6vw, 28px);
  background: var(--ink-gold);
}

.page-home .home-right-num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--gold);
}

.page-home .home-right h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(17px, 2.4vw, 21px);
  line-height: 1.4;
}

.page-home .home-right p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #DCCDAE;
}

.page-home .home-steps {
  margin-top: clamp(30px, 4vw, 48px);
  padding-top: clamp(22px, 3vw, 34px);
  border-top: 1px solid rgba(201, 162, 39, .35);
}

.page-home .home-steps-title {
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(17px, 2.6vw, 22px);
  color: var(--paper);
}

.page-home .home-step-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(201, 162, 39, .26);
  border: 1px solid rgba(201, 162, 39, .36);
}

.page-home .home-step-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 14px 18px;
  background: rgba(36, 29, 12, .92);
  font-size: 15px;
  line-height: 1.7;
  color: var(--paper);
}

.page-home .home-step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--gold);
}

.page-home .home-steps-link {
  margin: clamp(18px, 2.6vw, 26px) 0 0;
}

.page-home .home-steps-link a {
  font-size: 15px;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 162, 39, .6);
  padding-bottom: 3px;
}

.page-home .home-steps-link a:hover,
.page-home .home-steps-link a:focus-visible { color: #EBD37E; }

/* ---------- 05 客服通道 ---------- */

.page-home .home-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.page-home .home-support-figure {
  margin: 0;
  border: var(--home-rule);
  background: var(--ink-gold);
}

.page-home .home-support-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: sepia(.22) contrast(1.05);
}

.page-home .home-support-copy .section-head { margin-bottom: clamp(18px, 2.6vw, 28px); }

.page-home .home-support-text {
  margin: 0 0 clamp(20px, 3vw, 28px);
  font-size: 16px;
  line-height: 1.85;
  color: var(--graphite);
}

.page-home .home-channel-list {
  display: grid;
  gap: 0;
  margin: 0 0 clamp(20px, 3vw, 28px);
  padding: 0;
  list-style: none;
  border-top: var(--home-rule);
}

.page-home .home-channel-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: var(--home-rule);
}

.page-home .home-channel-label {
  flex: 0 0 auto;
  min-width: 5em;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--gold-deep);
}

.page-home .home-channel-value {
  flex: 1 1 180px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  word-break: break-word;
}

.page-home .home-support-tip {
  margin: 0 0 clamp(18px, 2.6vw, 26px);
  padding: 16px 18px;
  border-left: 3px solid var(--brick);
  background: var(--sand);
  font-size: 14px;
  line-height: 1.8;
  color: var(--graphite);
}

.page-home .home-support-actions { margin: 0; }

/* ---------- 06 回访常问 ---------- */

.page-home .home-qlist {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border: var(--home-rule);
}

.page-home .home-q {
  padding: clamp(22px, 3vw, 34px);
  background: var(--paper);
  border-top: 1px solid var(--gold);
}

.page-home .home-q h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(17px, 2.4vw, 21px);
  line-height: 1.45;
  color: var(--ink);
}

.page-home .home-q p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--graphite);
}

.page-home .home-qmore {
  margin: clamp(24px, 3.4vw, 36px) 0 0;
}

/* ---------- 回到顶部 ---------- */

.page-home .home-totop {
  position: fixed;
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(14px, 3vw, 34px);
  z-index: 20;
  padding: 10px 16px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: rgba(17, 17, 17, .88);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--gold);
  text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.page-home .home-totop:hover,
.page-home .home-totop:focus-visible {
  background: var(--gold);
  color: var(--ink);
}

/* ---------- 平板 ---------- */

@media (min-width: 760px) {
  .page-home .home-tab-facts > div {
    grid-template-columns: 8em minmax(0, 1fr);
    gap: 18px;
    align-items: baseline;
  }

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

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

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

  .page-home .home-qlist .home-q { border-top: 0; border-left: 1px solid var(--gold); }

  .page-home .home-qlist .home-q:first-child { border-left: 0; }
}

/* ---------- 桌面 ---------- */

@media (min-width: 1000px) {
  .page-home .home-hero-grid {
    grid-template-columns: minmax(0, 53fr) minmax(0, 47fr);
    gap: clamp(36px, 4.4vw, 72px);
  }

  .page-home .home-hero-copy {
    padding-right: clamp(28px, 3.4vw, 56px);
    border-right: 1px solid var(--gold);
  }

  .page-home .home-hero-visual { min-height: 420px; }
  .page-home .home-hero-img { min-height: 420px; }

  .page-home .home-case-grid {
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
    gap: clamp(40px, 5vw, 76px);
  }

  .page-home .home-case-figure { margin-top: clamp(20px, 3vw, 46px); }

  .page-home .home-support-grid {
    grid-template-columns: minmax(0, 34fr) minmax(0, 66fr);
    gap: clamp(40px, 5vw, 78px);
  }

  .page-home .home-support-copy { padding-top: clamp(10px, 2vw, 28px); }

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

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

/* ---------- 大屏收口 ---------- */

@media (min-width: 1320px) {
  .page-home .home-hero { padding-block: clamp(48px, 5vw, 96px) clamp(72px, 7vw, 128px); }
}

/* ---------- 动效降级 ---------- */

@media (prefers-reduced-motion: reduce) {
  .page-home .home-tab,
  .page-home .home-totop,
  .page-home .home-hero-sub {
    transition: none;
  }
}
</main>
