.page-home {
  --home-rule: rgba(27, 21, 17, 0.18);
  --home-gap: clamp(18px, 3vw, 32px);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-home .section {
  position: relative;
  padding-block: clamp(48px, 8vw, 112px);
}

.page-home h1,
.page-home h2,
.page-home h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-home p {
  margin: 0;
}

.page-home .mono {
  font-family: var(--font-mono);
}

.page-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--pill);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.page-home .btn:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.page-home .image-frame {
  margin: 0;
}

.page-home .image-frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border: var(--border);
  border-radius: var(--radius);
}

.page-home .image-caption {
  margin-top: 10px;
  font-size: 0.78rem;
  line-height: 1.7;
  font-family: var(--font-mono);
  color: var(--moss);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  padding-block: clamp(28px, 5vw, 68px) clamp(48px, 8vw, 104px);
  overflow: hidden;
}

.page-home .hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.16;
  pointer-events: none;
}

.page-home .hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(245, 238, 223, 0.55), rgba(245, 238, 223, 0.95));
}

.page-home .hero-atmosphere img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

.page-home .hero-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
}

.page-home .hero-statement h1 {
  margin-top: 16px;
  font-size: clamp(2.05rem, 7.2vw, 3.85rem);
  line-height: 1.04;
  max-width: 15ch;
}

.page-home .accent-mark {
  color: var(--orange);
  box-shadow: inset 0 -0.14em 0 rgba(255, 107, 61, 0.28);
}

.page-home .hero-lede {
  margin-top: 20px;
  max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.85;
  color: rgba(27, 21, 17, 0.86);
}

.page-home .hero-note {
  margin-top: 16px;
  padding-left: 14px;
  border-left: 3px solid var(--orange);
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(27, 21, 17, 0.78);
  max-width: 44ch;
}

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

.page-home .hero-directory {
  padding: clamp(20px, 3vw, 30px);
  background: var(--green);
  color: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-accent);
}

.page-home .dir-title {
  font-size: clamp(1.15rem, 2.2vw, 1.42rem);
  color: var(--paper-white);
}

.page-home .league-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .league-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(245, 238, 223, 0.4);
  border-radius: var(--pill);
  color: var(--paper);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .league-list a:hover,
.page-home .league-list a:focus-visible {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--green);
}

.page-home .league-list a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.page-home .directory-meta {
  margin-top: 20px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--neon);
}

.page-home .directory-text {
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(245, 238, 223, 0.82);
}

/* ---------- 数据模块 ---------- */
.page-home .data-board {
  background: var(--paper);
}

.page-home .board-head {
  max-width: 700px;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.page-home .board-head h2 {
  margin-top: 10px;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.14;
}

.page-home .board-lede {
  margin-top: 14px;
  line-height: 1.85;
  color: rgba(27, 21, 17, 0.8);
}

.page-home .board-layout {
  display: grid;
  gap: var(--home-gap);
  align-items: start;
}

.page-home .board-figure img {
  aspect-ratio: 3 / 2;
}

.page-home .tabs {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.page-home .tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .tab {
  min-height: 44px;
  padding: 0 18px;
  border: var(--border);
  border-radius: var(--pill);
  background: var(--paper-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.page-home .tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--paper-white);
  box-shadow: 4px 4px 0 var(--orange);
}

.page-home .tab:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.page-home .tab-panel {
  padding: clamp(18px, 3vw, 28px);
  background: var(--paper-white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}

.page-home .tab-panel[hidden] {
  display: none;
}

.page-home .tab-panel + .tab-panel {
  margin-top: 18px;
}

.page-home .card-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.page-home .panel-index {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--moss);
}

.page-home .tab-panel h3 {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.3;
}

.page-home .panel-body {
  margin-top: 16px;
  display: grid;
  gap: 16px;
  justify-items: start;
}

.page-home .panel-body p {
  font-size: 0.96rem;
  line-height: 1.85;
  color: rgba(27, 21, 17, 0.84);
}

.page-home .gauge-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.page-home .gauge {
  width: 96px;
  height: 96px;
  flex: none;
}

.page-home .gauge-track {
  stroke: var(--slate);
  opacity: 0.35;
}

.page-home .gauge-value {
  stroke: var(--neon);
}

.page-home .gauge-labels {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--moss);
}

.page-home .gauge-labels span::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--neon);
}

.page-home .bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 92px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--ink);
  width: 100%;
  max-width: 320px;
}

.page-home .bar {
  flex: 1;
  background: var(--moss);
  border-radius: 2px 2px 0 0;
}

.page-home .bar-a { height: 38%; }
.page-home .bar-b { height: 62%; background: var(--neon); }
.page-home .bar-c { height: 48%; }
.page-home .bar-d { height: 80%; background: var(--orange); }
.page-home .bar-e { height: 56%; }
.page-home .bar-f { height: 30%; }

.page-home .tab-panel-dark {
  background: var(--green);
  box-shadow: 6px 6px 0 var(--neon);
}

.page-home .tab-panel-dark h3 {
  color: var(--paper-white);
}

.page-home .tab-panel-dark .panel-index {
  color: var(--neon);
}

.page-home .tab-panel-dark .panel-body p {
  color: rgba(245, 238, 223, 0.86);
}

.page-home .export-note {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--neon);
}

.page-home .field-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .field-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(81, 242, 207, 0.45);
  border-radius: var(--pill);
  font-size: 0.85rem;
  color: var(--paper-white);
}

.page-home .field-list .mono {
  font-size: 0.68rem;
  color: var(--neon);
}

.page-home .tab-panel-dark .btn-secondary {
  background: var(--neon);
  color: var(--green);
  border: 2px solid var(--ink);
}

/* ---------- 版本时间线 ---------- */
.page-home .timeline-section {
  background: var(--green);
  color: var(--paper);
  overflow: hidden;
}

.page-home .timeline-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}

.page-home .timeline-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 42, 36, 0.96) 0%, rgba(8, 42, 36, 0.76) 58%, rgba(8, 42, 36, 0.34) 100%);
}

.page-home .timeline-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .timeline-inner {
  position: relative;
  z-index: 1;
}

.page-home .timeline-head {
  max-width: 620px;
}

.page-home .timeline-head .eyebrow {
  color: var(--neon);
}

.page-home .timeline-head h2 {
  margin-top: 10px;
  font-size: clamp(1.55rem, 3.4vw, 2.4rem);
  line-height: 1.16;
  color: var(--paper-white);
}

.page-home .timeline-head p {
  margin-top: 14px;
  line-height: 1.85;
  color: rgba(245, 238, 223, 0.82);
}

.page-home .timeline {
  list-style: none;
  margin: clamp(24px, 4vw, 42px) 0 0;
  padding: 0;
  border-top: 1px solid rgba(245, 238, 223, 0.25);
}

.page-home .timeline li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(245, 238, 223, 0.18);
}

.page-home .timeline-mark {
  padding-top: 3px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--neon);
}

.page-home .timeline h3 {
  font-size: 1.02rem;
  line-height: 1.4;
  color: var(--paper-white);
}

.page-home .timeline p {
  margin-top: 8px;
  font-size: 0.93rem;
  line-height: 1.8;
  color: rgba(245, 238, 223, 0.8);
}

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

.page-home .timeline-actions .btn-primary {
  background: var(--neon);
  color: var(--green);
  border: 2px solid var(--ink);
}

.page-home .timeline-actions .btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 2px solid rgba(245, 238, 223, 0.5);
}

.page-home .timeline-actions .btn-ghost:hover,
.page-home .timeline-actions .btn-ghost:focus-visible {
  border-color: var(--neon);
  color: var(--neon);
}

/* ---------- 移动端场景 ---------- */
.page-home .commute {
  background: var(--paper);
}

.page-home .commute-grid {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.page-home .commute-copy h2 {
  margin-top: 10px;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1.14;
}

.page-home .commute-copy > p {
  margin-top: 14px;
  line-height: 1.85;
  color: rgba(27, 21, 17, 0.82);
  max-width: 52ch;
}

.page-home .step-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .step-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--home-rule);
}

.page-home .step-list .mono {
  padding-top: 3px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--orange);
}

.page-home .step-list h3 {
  font-size: 1rem;
  line-height: 1.4;
}

.page-home .step-list p {
  margin-top: 6px;
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(27, 21, 17, 0.8);
}

.page-home .commute-copy .btn {
  margin-top: 24px;
}

.page-home .commute-figure img {
  aspect-ratio: 3 / 4;
}

/* ---------- 服务与联系 ---------- */
.page-home .contact-strip {
  padding-block: clamp(44px, 7vw, 92px);
  background: var(--paper);
}

.page-home .contact-grid {
  display: grid;
  gap: 24px;
  padding: clamp(20px, 3.5vw, 40px);
  background: var(--paper-white);
  border: var(--border);
  border-left: 8px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}

.page-home .contact-copy h2 {
  margin-top: 10px;
  font-size: clamp(1.45rem, 3.2vw, 2.05rem);
  line-height: 1.18;
}

.page-home .contact-copy > p {
  margin-top: 14px;
  line-height: 1.85;
  color: rgba(27, 21, 17, 0.82);
  max-width: 56ch;
}

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

.page-home .contact-item {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--home-rule);
}

.page-home .contact-label {
  min-width: 88px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--moss);
}

.page-home .contact-value {
  font-size: 0.95rem;
  line-height: 1.6;
  word-break: break-word;
}

.page-home .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

/* ---------- 桌面布局 ---------- */
@media (min-width: 900px) {
  .page-home .hero-atmosphere {
    inset-block: -40px;
    inset-inline-start: 54%;
    inset-inline-end: -8%;
    height: calc(100% + 80px);
    opacity: 0.95;
    clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
  }

  .page-home .hero-atmosphere::after {
    background: linear-gradient(100deg, rgba(8, 42, 36, 0.94), rgba(8, 42, 36, 0.42) 46%, rgba(8, 42, 36, 0.08));
  }

  .page-home .hero-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--home-gap);
  }

  .page-home .hero-statement {
    grid-column: 1 / span 7;
    padding-top: 12px;
  }

  .page-home .hero-directory {
    grid-column: 8 / span 5;
  }

  .page-home .board-layout {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--home-gap);
  }

  .page-home .board-figure {
    grid-column: 1 / span 4;
  }

  .page-home .tabs {
    grid-column: 5 / span 8;
  }

  .page-home .timeline li {
    grid-template-columns: 120px minmax(0, 1fr) 1.1fr;
    column-gap: 24px;
    align-items: start;
  }

  .page-home .timeline li p {
    margin-top: 0;
  }

  .page-home .commute-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--home-gap);
    align-items: center;
  }

  .page-home .commute-copy {
    grid-column: 1 / span 7;
  }

  .page-home .commute-figure {
    grid-column: 9 / span 4;
  }

  .page-home .contact-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    column-gap: 40px;
    align-items: center;
  }
}

@media (min-width: 1200px) {
  .page-home .board-figure {
    grid-column: 1 / span 4;
  }

  .page-home .tabs {
    grid-column: 6 / span 7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .btn,
  .page-home .tab,
  .page-home .league-list a {
    transition: none;
  }
}
