.page-home {
  --home-grid-line: rgba(201, 164, 74, 0.14);
  --home-mut: rgba(43, 42, 40, 0.68);
  background: var(--ivory);
}

.page-home h1,
.page-home h2,
.page-home h3 {
  font-family: var(--sans);
  color: var(--ink);
}

.page-home h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-home h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0.4rem 0 0.6rem;
}

.page-home h3 {
  font-size: 1.125rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.page-home .section-head {
  width: 100%;
  max-width: var(--w);
  margin: 0 auto 2.5rem;
  padding-inline: 1.25rem;
  box-sizing: border-box;
}

.page-home .section-head .idx {
  font-family: var(--mono);
  color: var(--gold);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
}

.page-home .section-sub {
  font-family: var(--serif);
  color: var(--home-mut);
  line-height: 1.65;
  max-width: 46em;
}

/* ===== Hero ===== */
.page-home .hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background:
    radial-gradient(900px 320px at 82% -12%, rgba(201, 164, 74, 0.2), transparent 70%),
    linear-gradient(135deg, var(--green) 0%, #113D2F 68%, var(--gray) 100%);
  color: var(--ivory);
  overflow: hidden;
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--home-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-grid-line) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

.page-home .hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 4.5rem) clamp(3rem, 7vw, 5.5rem);
}

.page-home .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 164, 74, 0.45);
  background: rgba(11, 61, 46, 0.5);
  padding: 0.45rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.page-home .hero-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 164, 74, 0.24);
}

.page-home .hero h1 {
  color: var(--ivory);
  max-width: 12em;
  margin-bottom: 1.25rem;
}

.page-home .hero-lead {
  font-family: var(--serif);
  color: rgba(245, 240, 230, 0.8);
  line-height: 1.75;
  font-size: 1.0625rem;
  max-width: 36em;
  margin-bottom: 2rem;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.page-home .hero-actions .btn-primary {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--carbon);
}

.page-home .hero-actions .btn-primary:hover {
  background: var(--glow);
  border-color: var(--glow);
}

.page-home .hero-actions .btn-ghost {
  background: rgba(11, 61, 46, 0.3);
  border: 1px solid rgba(245, 240, 230, 0.55);
  color: var(--ivory);
}

.page-home .hero-actions .btn-ghost:hover {
  background: rgba(245, 240, 230, 0.12);
  border-color: var(--ivory);
}

.page-home .hero-media {
  position: relative;
  min-height: 300px;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}

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

.page-home .hero-stamp {
  position: absolute;
  left: clamp(1rem, 4%, 2.5rem);
  bottom: 1.5rem;
  z-index: 2;
  background: var(--gold);
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

/* ===== 版本更新 ===== */
.page-home .version-section,
.page-home .quick-section {
  background: linear-gradient(120deg, rgba(201, 164, 74, 0.04), transparent 40%), var(--ivory);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.page-home .version-grid,
.page-home .quick-grid {
  width: 100%;
  max-width: var(--w);
  margin-inline: auto;
  padding-inline: 1.25rem;
  box-sizing: border-box;
}

.page-home .version-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.page-home .terminal {
  background: var(--carbon);
  border: 1px solid rgba(201, 164, 74, 0.4);
  border-radius: 14px;
  box-shadow: 0 28px 56px -22px rgba(11, 61, 46, 0.4);
  overflow: hidden;
}

.page-home .terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  background: rgba(245, 240, 230, 0.07);
  border-bottom: 1px solid rgba(201, 164, 74, 0.24);
}

.page-home .terminal-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
}

.page-home .terminal-dot:first-child {
  background: var(--clay);
}

.page-home .terminal-dot:nth-child(2) {
  background: var(--gold);
}

.page-home .terminal-dot:nth-child(3) {
  background: var(--gray);
}

.page-home .terminal-title {
  margin-left: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: rgba(245, 240, 230, 0.62);
  letter-spacing: 0.04em;
}

.page-home .terminal-body {
  padding: 1.5rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.9;
  color: rgba(245, 240, 230, 0.88);
}

.page-home .terminal-body p {
  margin: 0 0 0.6rem;
}

.page-home .term-prompt,
.page-home .term-arrow {
  color: var(--gold);
  margin-right: 0.5rem;
}

.page-home .term-ok {
  color: #7BB48B;
  margin-right: 0.5rem;
}

.page-home .ver-num {
  position: relative;
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  cursor: default;
}

.page-home .ver-badge {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  background: var(--gold);
  color: var(--carbon);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 3px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  pointer-events: none;
}

.page-home .ver-num:hover .ver-badge {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.page-home .phone-frame {
  max-width: 380px;
  margin-inline: auto;
  background: linear-gradient(145deg, rgba(245, 240, 230, 0.92), rgba(235, 228, 212, 0.75));
  border: 1px solid rgba(201, 164, 74, 0.55);
  border-radius: 22px;
  padding: 0.5rem;
  box-shadow: 0 20px 44px -18px rgba(18, 18, 18, 0.4);
  transform: rotate(1.5deg);
}

.page-home .phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
}

.page-home .phone-frame figcaption {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gray);
  padding-top: 0.7rem;
  letter-spacing: 0.04em;
}

/* ===== 数据台账 ===== */
.page-home .archive-section {
  background: linear-gradient(180deg, #F5F0E6 0%, #F0E9DB 100%);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.page-home .archive-wrap {
  position: relative;
  width: 100%;
  max-width: var(--w);
  margin-inline: auto;
  padding-inline: 1.25rem;
  box-sizing: border-box;
}

.page-home .data-flow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 160px;
  pointer-events: none;
  opacity: 0.85;
  z-index: 0;
}

.page-home .archive-stats {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.page-home .stat-card {
  background: var(--green);
  color: var(--ivory);
  border: 1px solid rgba(201, 164, 74, 0.35);
  border-radius: 10px;
  padding: 1.5rem 1.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 32px -16px rgba(11, 61, 46, 0.4);
}

.page-home .stat-card::after {
  content: "";
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(201, 164, 74, 0.08);
}

.page-home .stat-num {
  font-family: var(--mono);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 0.6rem;
}

.page-home .stat-label {
  font-family: var(--serif);
  font-size: 0.875rem;
  color: rgba(245, 240, 230, 0.74);
  line-height: 1.5;
  display: block;
  max-width: 18em;
}

.page-home .stat-card .hint {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: var(--carbon);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.6875rem;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
}

.page-home .stat-card:hover .hint {
  opacity: 1;
  transform: translateY(0);
}

.page-home .archive-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
}

.page-home .archive-filter {
  display: grid;
  gap: 1.25rem;
}

.page-home .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-home .filter-btn {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink);
  background: rgba(245, 240, 230, 0.6);
  border: 1px solid rgba(201, 164, 74, 0.55);
  padding: 0.5rem 0.95rem;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.page-home .filter-btn:hover {
  border-color: var(--gold);
  background: rgba(201, 164, 74, 0.12);
}

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

.page-home .region-grid {
  display: grid;
  gap: 1rem;
}

.page-home .region-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--ln);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 1.4rem 1.2rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-left-color 0.25s var(--ease);
}

.page-home .region-card[data-show="false"] {
  display: none;
}

.page-home .region-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -18px rgba(11, 61, 46, 0.3);
  border-left-color: var(--green);
}

.page-home .region-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--green);
  background: rgba(11, 61, 46, 0.08);
  border: 1px solid rgba(11, 61, 46, 0.16);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.page-home .region-card p {
  font-family: var(--serif);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(43, 42, 40, 0.78);
  margin: 0 0 1rem;
}

.page-home .region-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--clay);
  letter-spacing: 0.04em;
}

.page-home .archive-aside {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.page-home .archive-visual {
  background: rgba(245, 240, 230, 0.8);
  border: 1px solid rgba(201, 164, 74, 0.4);
  border-radius: 12px;
  padding: 0.5rem;
}

.page-home .archive-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.page-home .archive-visual figcaption {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--green);
  letter-spacing: 0.06em;
  padding: 0.65rem 0.25rem 0;
}

.page-home .archive-note {
  font-family: var(--serif);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(43, 42, 40, 0.66);
  background: rgba(11, 61, 46, 0.04);
  border-left: 2px solid var(--gold);
  padding: 0.75rem 1rem;
  border-radius: 0 6px 6px 0;
  margin: 0;
}

.page-home .archive-timeline {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(11, 61, 46, 0.14);
  padding-top: 2.5rem;
}

.page-home .timeline-item {
  padding-left: 1rem;
  border-left: 2px solid var(--gold);
}

.page-home .tl-year {
  font-family: var(--mono);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--green);
  display: block;
}

.page-home .tl-note {
  font-family: var(--serif);
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(43, 42, 40, 0.72);
  display: block;
  margin-top: 0.3rem;
}

/* ===== 战报分类 ===== */
.page-home .report-section {
  position: relative;
  background: linear-gradient(160deg, rgba(11, 61, 46, 0.98), rgba(18, 18, 18, 0.96));
  color: var(--ivory);
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  clip-path: polygon(0 0, 100% 3%, 100% 97%, 0 100%);
}

.page-home .report-section::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  right: -120px;
  top: -120px;
  background: rgba(201, 164, 74, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.page-home .report-section .section-head {
  position: relative;
  z-index: 1;
}

.page-home .report-section .section-title {
  color: var(--ivory);
}

.page-home .report-section .section-sub {
  color: rgba(245, 240, 230, 0.68);
}

.page-home .report-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  width: 100%;
  max-width: var(--w);
  margin-inline: auto;
  padding-inline: 1.25rem;
  box-sizing: border-box;
  align-items: center;
}

.page-home .report-copy p {
  font-family: var(--serif);
  color: rgba(245, 240, 230, 0.84);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.page-home .report-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.page-home .report-list li {
  position: relative;
  padding-left: 1.5rem;
  font-family: var(--serif);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(245, 240, 230, 0.76);
}

.page-home .report-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-family: var(--mono);
}

.page-home .report-figure {
  background: rgba(245, 240, 230, 0.07);
  border: 1px solid rgba(201, 164, 74, 0.4);
  border-radius: 12px;
  padding: 0.5rem;
}

.page-home .report-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 2;
  object-fit: cover;
  border-radius: 8px;
}

.page-home .report-figure figcaption {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: rgba(245, 240, 230, 0.62);
  letter-spacing: 0.04em;
  padding: 0.65rem 0.25rem 0;
}

/* ===== 快速访问 ===== */
.page-home .quick-grid {
  display: grid;
  gap: 1.25rem;
}

.page-home .quick-card {
  display: block;
  background: rgba(245, 240, 230, 0.75);
  border: 1px solid rgba(201, 164, 74, 0.3);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-home .quick-card h3 {
  color: var(--green);
}

.page-home .quick-card p {
  font-family: var(--serif);
  font-size: 0.875rem;
  color: rgba(43, 42, 40, 0.72);
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.page-home .quick-go {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  transition: color 0.25s var(--ease);
}

.page-home .quick-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 164, 74, 0.7);
  box-shadow: 0 20px 40px -20px rgba(11, 61, 46, 0.3);
}

.page-home .quick-card:hover .quick-go {
  color: var(--green);
}

/* ===== 响应式增强 ===== */
@media (min-width: 760px) {
  .page-home .archive-stats {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .page-home .archive-timeline {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .timeline-item {
    padding-left: 0;
    padding-top: 1rem;
    border-left: 0;
    border-top: 2px solid var(--gold);
  }

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

@media (min-width: 960px) {
  .page-home .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: 720px;
  }

  .page-home .hero-copy {
    align-self: center;
    justify-self: end;
    max-width: 680px;
    padding: clamp(3rem, 5vw, 4.5rem);
  }

  .page-home .hero-media {
    min-height: 720px;
    clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  }

  .page-home .hero-media img {
    min-height: 720px;
  }

  .page-home .version-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }

  .page-home .archive-body {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: start;
  }

  .page-home .report-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
  }

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