.page-home {
  --home-paper-70: rgba(246, 239, 227, 0.72);
  --home-paper-45: rgba(246, 239, 227, 0.45);
  --home-gold-25: rgba(242, 200, 120, 0.25);
  --home-gold-45: rgba(242, 200, 120, 0.45);
  background: var(--paper);
  color: var(--deep);
  overflow-x: hidden;
}

.page-home h1,
.page-home h2,
.page-home h3 {
  font-family: var(--font-head);
  letter-spacing: 0.02em;
  line-height: 1.22;
  margin: 0;
}

.page-home h2 {
  font-size: clamp(25px, 4.4vw, 34px);
  font-weight: 800;
  color: var(--deep);
}

.page-home a:focus-visible,
.page-home button:focus-visible {
  outline: 2px solid var(--gold-line);
  outline-offset: 3px;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  background:
    radial-gradient(120% 82% at 84% 4%, rgba(224, 138, 30, 0.22), transparent 62%),
    var(--ink);
  color: var(--paper);
  padding: clamp(26px, 5vw, 56px) 0 clamp(46px, 7vw, 88px);
}

.page-home .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(30px, 4.4vw, 52px);
  align-items: center;
}

.page-home .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold-line);
}

.page-home .hero-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(224, 138, 30, 0.18);
}

.page-home .hero-title {
  font-size: clamp(31px, 7.2vw, 56px);
  font-weight: 800;
  color: var(--paper);
  margin: 0 0 20px;
  max-width: 15em;
}

.page-home .hero-title .hl {
  color: var(--gold);
}

.page-home .hero-lede {
  margin: 0;
  max-width: 33em;
  font-size: 16px;
  line-height: 1.8;
  color: var(--home-paper-70);
}

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

.page-home .hero-facts {
  list-style: none;
  margin: 28px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--home-gold-25);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  font-size: 14px;
  color: var(--home-paper-70);
}

.page-home .hero-facts li {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.page-home .hero-facts .num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
}

.page-home .hero-visual {
  position: relative;
}

.page-home .hero-frame {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--home-gold-45);
  box-shadow: 0 26px 60px rgba(11, 21, 18, 0.55);
}

.page-home .hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-home .card-tableau {
  position: absolute;
  left: 18px;
  bottom: 20px;
  width: 92px;
  height: 126px;
  pointer-events: none;
}

.page-home .card-tableau .face {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1px solid var(--gold-line);
  background: linear-gradient(158deg, #1e3a2e, #12241d 58%, #0b1512);
  box-shadow:
    inset 0 1px 0 rgba(242, 200, 120, 0.55),
    0 12px 24px rgba(11, 21, 18, 0.55);
}

.page-home .card-tableau .face--a {
  transform: rotate(-11deg) translate(-7px, 5px);
  opacity: 0.82;
}

.page-home .card-tableau .face--b {
  transform: rotate(3deg);
}

.page-home .card-tableau .face--b::after {
  content: "3.2";
  position: absolute;
  left: 11px;
  bottom: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold-line);
}

.page-home .card-tableau .face--c {
  transform: rotate(14deg) translate(9px, -5px);
  opacity: 0.68;
}

.page-home .hero-note {
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold-line);
  background: rgba(11, 21, 18, 0.72);
  border: 1px solid var(--home-gold-45);
  border-radius: 999px;
  padding: 11px 5px;
}

/* ---------- 章节通用 ---------- */
.page-home .chapter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.page-home .chapter-aside {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.page-home .chapter-aside .plate-num {
  font-family: var(--font-head);
  font-size: clamp(54px, 12vw, 88px);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: 0.02em;
  color: var(--gold);
  opacity: 0.2;
}

.page-home .chapter-annot {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--ink);
  opacity: 0.55;
}

.page-home .chapter-body .section-head {
  margin-bottom: 28px;
}

/* ---------- 时间线 ---------- */
.page-home .timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.page-home .timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-line), rgba(216, 205, 187, 0.4));
}

.page-home .timeline-item {
  position: relative;
  padding-left: 52px;
  padding-bottom: 28px;
}

.page-home .timeline-item:last-child {
  padding-bottom: 0;
}

.page-home .timeline-mark {
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--gold-line);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.page-home .timeline-item-body h3 {
  font-size: 19px;
  color: var(--deep);
  margin-bottom: 7px;
}

.page-home .timeline-item-body p {
  margin: 0 0 9px;
  max-width: 32em;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
}

/* ---------- 攻略索引板 ---------- */
.page-home .board {
  position: relative;
  background: var(--ink);
  color: var(--paper);
}

.page-home .board::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--rose) 48%, var(--cyan));
  opacity: 0.9;
}

.page-home .board-figure {
  margin: 0 0 clamp(28px, 4vw, 44px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--home-gold-25);
}

.page-home .board .eyebrow,
.page-home .returning .eyebrow {
  color: var(--gold-line);
}

.page-home .board h2,
.page-home .returning h2 {
  color: var(--paper);
}

.page-home .board .lede,
.page-home .returning .lede {
  color: var(--home-paper-70);
  max-width: 34em;
  margin-bottom: 0;
}

.page-home .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 20px;
}

.page-home .filter-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--home-gold-45);
  border-radius: 999px;
  padding: 7px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--paper);
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.page-home .filter-btn:hover {
  background: rgba(242, 200, 120, 0.12);
}

.page-home .filter-btn[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--deep);
  font-weight: 700;
}

.page-home .board-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.page-home .board-card {
  padding: 18px 18px 16px;
}

.page-home .board-card[hidden] {
  display: none;
}

.page-home .board-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 11px;
  border-bottom: 1px dashed var(--edge);
}

.page-home .board-card-head h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--deep);
}

.page-home .board-card .count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  background: var(--tag);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}

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

.page-home .board-list li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}

.page-home .board-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 2px;
  background: var(--cyan);
}

.page-home .filter-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px 0;
  font-size: 14px;
  color: var(--home-paper-70);
}

/* ---------- 三条入口 ---------- */
.page-home .entries {
  background: var(--paper);
}

.page-home .entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.page-home .entry {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.page-home .entry .media {
  margin: 0;
  border-radius: 0;
}

.page-home .entry-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 20px 20px 22px;
}

.page-home .entry-body h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--deep);
}

.page-home .entry-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-2);
}

.page-home .entry-tip {
  font-size: 13px;
  line-height: 1.6;
  color: var(--deep);
  background: var(--tag);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 8px 11px;
}

.page-home .entry-body .link-arrow {
  margin-top: auto;
  padding-top: 4px;
  align-self: flex-start;
}

.page-home .entry--other .entry-body h3 {
  color: var(--paper);
}

.page-home .entry--other .entry-body p {
  color: var(--home-paper-70);
}

.page-home .entry--other .entry-tip {
  color: var(--paper);
  background: rgba(246, 239, 227, 0.1);
  border-left-color: var(--gold-line);
}

.page-home .entry--other .link-arrow {
  color: var(--gold-line);
}

/* ---------- 回访通道 ---------- */
.page-home .returning {
  background: var(--ink);
  color: var(--paper);
}

.page-home .return-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

.page-home .return-copy .section-head {
  margin-bottom: 0;
}

.page-home .return-copy .copy-version {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 8px 16px 8px 9px;
  background: transparent;
  border: 1px dashed var(--home-gold-45);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--paper);
  cursor: pointer;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease);
}

.page-home .return-copy .copy-version:hover {
  background: rgba(242, 200, 120, 0.1);
  border-color: var(--gold-line);
}

.page-home .return-copy .copy-version .ver {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--deep);
  background: var(--gold);
  border-radius: 999px;
  padding: 3px 10px;
}

.page-home .contact-panel {
  background: var(--ink-2);
  border: 1px solid var(--home-gold-25);
  border-radius: 16px;
  padding: 22px 22px 24px;
}

.page-home .contact-panel h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--paper);
  margin-bottom: 16px;
}

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

.page-home .contact-list li {
  display: grid;
  gap: 3px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(242, 200, 120, 0.16);
}

.page-home .contact-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-home .contact-list .k {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold-line);
}

.page-home .contact-list .v {
  font-size: 15px;
  line-height: 1.65;
  color: var(--paper);
  word-break: break-word;
}

.page-home .contact-list .v--mono {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.page-home .quick-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.page-home .quick-row a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--home-gold-25);
  border-radius: 10px;
  font-size: 14px;
  color: var(--paper);
  text-decoration: none;
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease), transform 0.22s var(--ease);
}

.page-home .quick-row a::after {
  content: "→";
  color: var(--gold-line);
  font-family: var(--font-mono);
}

.page-home .quick-row a:hover {
  border-color: var(--gold-line);
  background: rgba(242, 200, 120, 0.08);
  transform: translateY(-2px);
}

/* ---------- 断点 ---------- */
@media (min-width: 620px) {
  .page-home .board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .page-home .quick-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .hero-facts {
    gap: 12px 34px;
  }
}

@media (min-width: 880px) {
  .page-home .entry-grid {
    grid-template-columns: 5fr 4fr 3fr;
    gap: 18px;
  }

  .page-home .return-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 44px;
    align-items: start;
  }
}

@media (min-width: 900px) {
  .page-home .chapter-grid {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 44px;
  }

  .page-home .chapter-aside {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .page-home .chapter-annot {
    writing-mode: vertical-rl;
    letter-spacing: 0.32em;
  }
}

@media (min-width: 920px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  }

  .page-home .card-tableau {
    width: 118px;
    height: 162px;
    left: 22px;
    bottom: 24px;
  }
}

@media (min-width: 1000px) {
  .page-home .board-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}
