.page-home {
  --home-rail-w: 220px;
  --home-gap: 44px;
  --home-pad: 20px;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
}

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

.page-home .home-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "hero"
    "band1"
    "switch"
    "path"
    "band2"
    "help"
    "log";
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--home-pad) 48px;
}

/* ---------- 左侧导览轨道 ---------- */
.page-home .home-rail { display: none; }

/* ---------- 首屏 ---------- */
.page-home .home-hero { grid-area: hero; padding: 104px 0 56px; }

.page-home .home-context {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: .06em;
  color: rgba(36, 28, 21, .6);
}

.page-home .home-hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 29px;
  line-height: 1.22;
  letter-spacing: -.01em;
  color: var(--brown);
}

.page-home .home-lede {
  margin: 0;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(36, 28, 21, .84);
  max-width: 44em;
}

.page-home .hero-top { display: grid; gap: 24px; }

.page-home .hero-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  box-shadow: var(--shadow-1);
  background: var(--ink);
}

.page-home .hero-shot img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}

/* 入口状态块 */
.page-home .hero-status {
  margin-top: 28px;
  padding: 18px 20px 18px 22px;
  background: var(--ink);
  color: var(--cream);
  border-left: 4px solid var(--ember);
  border-radius: 3px;
  box-shadow: var(--shadow-ink);
}

.page-home .hero-status__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: .01em;
}

.page-home .hero-status__lag {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--mist);
}

.page-home .hero-status__note {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--mist);
  max-width: 42em;
}

/* 栏目目录 */
.page-home .hero-toc {
  margin-top: 32px;
  padding: 22px 20px 10px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  box-shadow: var(--shadow-1);
}

.page-home .hero-toc__head {
  margin: 0 0 4px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--ink);
}

.page-home .hero-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.page-home .hero-toc__item { border-bottom: 1px solid var(--line); }
.page-home .hero-toc__item:last-child { border-bottom: 0; }

.page-home .hero-toc__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 12px;
  align-items: baseline;
  padding: 12px 6px;
  text-decoration: none;
  color: inherit;
  border-radius: 2px;
  transition: background var(--dur-fast) var(--ease), transform var(--dur) var(--ease);
}

.page-home .hero-toc__link:hover,
.page-home .hero-toc__link:focus-visible {
  background: rgba(200, 149, 47, .12);
  transform: translateX(3px);
}

.page-home .hero-toc__no {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.page-home .hero-toc__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  color: var(--brown);
}

.page-home .hero-toc__desc {
  grid-column: 2;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(36, 28, 21, .7);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- 横向通栏 ---------- */
.page-home .home-band {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: var(--ink);
  color: var(--cream);
}

.page-home .home-band--glow {
  grid-area: band1;
  margin-bottom: 56px;
}

.page-home .home-band--glow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .38;
}

.page-home .home-band--glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(14, 27, 44, .95) 0%, rgba(14, 27, 44, .62) 60%, rgba(14, 27, 44, .3) 100%);
}

.page-home .home-band__inner {
  position: relative;
  z-index: 1;
  padding: 42px 22px;
}

.page-home .home-band__kicker {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--amber);
}

.page-home .home-band__line {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 21px;
  line-height: 1.4;
  color: var(--cream);
  max-width: 28em;
}

.page-home .home-band--statement {
  grid-area: band2;
  margin-bottom: 56px;
  border-left: 4px solid var(--amber);
  border-top: 1px solid var(--line-ink);
  border-bottom: 1px solid var(--line-ink);
  background: linear-gradient(92deg, var(--ink) 0%, var(--ink-2) 100%);
}

.page-home .home-band--statement .home-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 34px 22px;
}

.page-home .home-band--statement p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.4;
  color: var(--paper);
}

/* ---------- 通用小节头 ---------- */
.page-home .sec-head {
  margin: 0 0 26px;
  max-width: 46em;
}

.page-home .sec-kicker {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--seal);
}

.page-home .sec-head h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 23px;
  line-height: 1.28;
  letter-spacing: -.01em;
  color: var(--brown);
}

.page-home .sec-lede {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(36, 28, 21, .8);
}

/* ---------- 入口与线路 ---------- */
.page-home .home-switch { grid-area: switch; padding-bottom: 56px; }
.page-home .switch-body { display: grid; gap: 26px; }

.page-home .switch-figure {
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  box-shadow: var(--shadow-1);
}

.page-home .switch-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .switch-figure figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.75;
  color: rgba(36, 28, 21, .68);
}

.page-home .switch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.page-home .switch-item {
  padding: 18px 20px 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 3px;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-home .switch-item:hover {
  transform: translateY(-2px);
  border-left-color: var(--ember);
  box-shadow: var(--shadow-2);
}

.page-home .switch-item h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  color: var(--brown);
}

.page-home .switch-item h3 .num {
  font-size: 13px;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.page-home .switch-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(36, 28, 21, .8);
}

/* ---------- 上手路径 ---------- */
.page-home .home-path { grid-area: path; padding-bottom: 56px; }
.page-home .path-layout { display: grid; gap: 26px; }

.page-home .path-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .path-step { border-bottom: 1px solid var(--line); }
.page-home .path-step:first-child { border-top: 1px solid var(--line-strong); }

.page-home .path-step summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 4px;
  cursor: pointer;
  list-style: none;
  transition: background var(--dur-fast) var(--ease);
}

.page-home .path-step summary::-webkit-details-marker { display: none; }

.page-home .path-step summary::after {
  content: "+";
  flex: 0 0 auto;
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  color: var(--mist);
}

.page-home .path-step details[open] summary::after {
  content: "−";
  color: var(--amber);
}

.page-home .path-step summary:hover { background: rgba(200, 149, 47, .1); }

.page-home .path-step summary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.page-home .path-step__no {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.page-home .path-step__title {
  flex: 1 1 auto;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  color: var(--brown);
}

.page-home .path-step__time {
  flex: 0 0 auto;
  font-size: 13px;
  white-space: nowrap;
  color: var(--celadon);
  font-variant-numeric: tabular-nums;
}

.page-home .path-step__body {
  margin: 0;
  padding: 0 8px 18px 34px;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(36, 28, 21, .78);
}

.page-home .path-shot {
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--ink-2);
  border-radius: 3px;
  box-shadow: var(--shadow-ink);
}

.page-home .path-shot img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .path-shot figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--line-ink);
  font-size: 13px;
  line-height: 1.75;
  color: var(--mist);
}

/* ---------- 客服与卡点 ---------- */
.page-home .home-help { grid-area: help; padding-bottom: 56px; }
.page-home .help-grid { display: grid; gap: 18px; }

.page-home .help-card {
  padding: 22px 20px 18px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  box-shadow: var(--shadow-1);
}

.page-home .help-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  color: var(--brown);
}

.page-home .help-card h3::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  background: var(--amber);
  transform: rotate(45deg);
}

.page-home .help-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .help-card li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 12px;
  align-items: baseline;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(36, 28, 21, .8);
}

.page-home .help-card li .num {
  font-size: 13px;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.page-home .help-card li strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  color: var(--brown);
}

.page-home .help-card__foot {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
}

.page-home .help-card__link {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--amber);
  padding-bottom: 2px;
}

.page-home .help-card__link:hover,
.page-home .help-card__link:focus-visible {
  color: var(--seal);
  border-bottom-color: var(--seal);
}

/* ---------- 记录查询 ---------- */
.page-home .home-log { grid-area: log; padding-bottom: 24px; }
.page-home .log-grid { display: grid; gap: 18px; }

.page-home .log-card {
  padding: 22px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: 3px;
  box-shadow: var(--shadow-1);
}

.page-home .log-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .02em;
  color: var(--ink);
}

.page-home .log-card__figure {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.page-home .log-card__unit {
  margin-left: 4px;
  font-size: 16px;
  color: var(--brown);
}

.page-home .log-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(36, 28, 21, .78);
}

.page-home .log-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .log-card li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(36, 28, 21, .8);
}

.page-home .log-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 8px;
  height: 1px;
  background: var(--amber);
}

.page-home .log-foot { margin: 26px 0 0; }

/* ---------- 平板 ---------- */
@media (min-width: 640px) {
  .page-home { --home-pad: 28px; }

  .page-home .home-hero h1 { font-size: 36px; }

  .page-home .hero-shot img { height: 260px; }

  .page-home .hero-toc__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 30px;
  }

  .page-home .hero-toc__item:nth-last-child(-n+2) { border-bottom: 0; }

  .page-home .home-band__inner { padding: 52px 36px; }
  .page-home .home-band__line { font-size: 26px; }
  .page-home .home-band--statement .home-band__inner { padding: 40px 36px; }
  .page-home .home-band--statement p { font-size: 26px; }

  .page-home .sec-head h2 { font-size: 30px; }
  .page-home .sec-lede { font-size: 16px; }

  .page-home .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .page-home .log-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}

/* ---------- 桌面：左轨 + 右栏 ---------- */
@media (min-width: 1040px) {
  .page-home { --home-gap: 48px; }

  .page-home .home-shell {
    grid-template-columns: var(--home-rail-w) minmax(0, 1fr);
    column-gap: var(--home-gap);
    grid-template-areas:
      "rail hero"
      "rail band1"
      "rail switch"
      "rail path"
      "rail band2"
      "rail help"
      "rail log";
    max-width: var(--w-wide);
    padding: 0 36px 72px;
  }

  .page-home .home-rail {
    grid-area: rail;
    display: block;
    align-self: start;
    position: sticky;
    top: 96px;
    z-index: 2;
    padding-top: 132px;
  }

  .page-home .home-rail__kicker {
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ink);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .16em;
    color: var(--seal);
  }

  .page-home .home-rail__list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .page-home .home-rail__item { border-bottom: 1px dashed var(--line); }

  .page-home .home-rail__link {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 2px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--brown);
    text-decoration: none;
    transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
  }

  .page-home .home-rail__link:hover,
  .page-home .home-rail__link:focus-visible {
    color: var(--amber);
    transform: translateX(3px);
  }

  .page-home .home-rail__no {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 12px;
    color: var(--amber);
    font-variant-numeric: tabular-nums;
  }

  .page-home .home-rail__state {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 20px 0 0;
    padding-left: 2px;
    font-size: 12px;
    line-height: 1.7;
    color: rgba(36, 28, 21, .62);
  }

  .page-home .home-hero { padding-top: 140px; }

  .page-home .hero-top {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    column-gap: 36px;
    align-items: end;
  }

  .page-home .home-hero h1 { font-size: 42px; }
  .page-home .hero-shot img { height: 288px; }

  .page-home .hero-status { padding: 20px 24px 20px 26px; }

  .page-home .hero-toc { padding: 26px 26px 12px; }
  .page-home .hero-toc__link { padding: 13px 10px; }

  .page-home .home-band__inner { padding: 60px 52px; }
  .page-home .home-band__line { font-size: 30px; }
  .page-home .home-band--statement .home-band__inner { padding: 44px 52px; }

  .page-home .switch-body {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    column-gap: 40px;
    align-items: start;
  }

  .page-home .path-layout {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
    column-gap: 44px;
    align-items: start;
  }

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

@media (min-width: 1280px) {
  .page-home .home-hero h1 { font-size: 44px; }
  .page-home .home-band__line { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-toc__link,
  .page-home .switch-item,
  .page-home .home-rail__link,
  .page-home .path-step summary {
    transition: none;
  }
  .page-home .hero-toc__link:hover,
  .page-home .switch-item:hover,
  .page-home .home-rail__link:hover {
    transform: none;
  }
}
</main>
