/* ============================================================
   首页专属样式 · 作用域 .page-home
   ============================================================ */

.page-home {
  --home-line: 1px solid var(--c-line);
  --home-soft: rgba(245, 242, 234, 0.76);
  --home-dim: rgba(245, 242, 234, 0.5);
  --home-gap: clamp(20px, 3.4vw, 44px);
}

/* ---------- 分屏首屏 ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 46px) 0 clamp(40px, 6vw, 76px);
  background:
    radial-gradient(115% 78% at 80% 6%, rgba(55, 242, 198, 0.12), transparent 62%),
    radial-gradient(90% 60% at 4% 90%, rgba(23, 164, 139, 0.14), transparent 66%),
    linear-gradient(180deg, var(--c-ink) 0%, #071C16 56%, var(--c-charcoal) 100%);
}

.page-home .hero-grid {
  display: grid;
  gap: var(--home-gap);
}

.page-home .hero-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.page-home .hero-context {
  margin: 0 0 4px;
}

.page-home .hero-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--c-cyan);
  text-transform: uppercase;
}

.page-home .hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 7.4vw, 82px);
  line-height: 1.03;
  letter-spacing: 0.01em;
  color: var(--c-cream);
  max-width: 15ch;
}

.page-home .hero-lede {
  margin: 0;
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--home-soft);
}

.page-home .hero-lede--sub {
  font-size: 14px;
  line-height: 1.85;
  color: var(--c-mist);
}

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

.page-home .hero-stats {
  list-style: none;
  margin: 10px 0 0;
  padding: 20px 0 0;
  border-top: var(--home-line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 16px;
}

.page-home .hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.page-home .hero-stat-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.1;
  color: var(--c-cyan);
}

.page-home .hero-stat-num .unit {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--c-mist);
  margin-left: 2px;
}

.page-home .hero-stat-key {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--c-mist);
}

/* 首屏右侧视觉 */
.page-home .hero-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: var(--home-line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #0C3A2E 0%, var(--c-charcoal) 72%);
}

.page-home .hero-visual img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.page-home .hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(242, 169, 59, 0.4), transparent 72%) 66% 26% / 210px 170px no-repeat,
    radial-gradient(closest-side, rgba(55, 242, 198, 0.34), transparent 72%) 28% 60% / 250px 210px no-repeat;
  mix-blend-mode: screen;
}

.page-home .hero-pitch {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.page-home .hero-ring {
  position: absolute;
  z-index: 3;
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(12px, 3vw, 28px);
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: conic-gradient(var(--c-cyan) 0 58%, rgba(245, 242, 234, 0.14) 58% 100%);
}

.page-home .hero-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: rgba(11, 15, 14, 0.88);
}

.page-home .ring-num,
.page-home .ring-key {
  position: relative;
  z-index: 1;
}

.page-home .ring-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 19px;
  color: var(--c-cyan);
  line-height: 1;
}

.page-home .ring-key {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--c-mist);
}

.page-home .hero-cap {
  position: absolute;
  z-index: 3;
  left: clamp(12px, 3vw, 24px);
  top: clamp(12px, 3vw, 24px);
  max-width: 18ch;
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.7;
  color: rgba(245, 242, 234, 0.72);
}

/* ---------- 01 梯队总览 ---------- */
.page-home .tier-layout {
  row-gap: clamp(26px, 4vw, 44px);
  align-items: start;
}

.page-home .tier-figure {
  min-width: 0;
}

.page-home .tier-figure .figure-media {
  border: var(--home-line);
}

.page-home .tier-figure .figure-cap {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--c-mist);
}

.page-home .tier-table-wrap {
  min-width: 0;
  overflow-x: auto;
}

.page-home .tier-table,
.page-home .recent-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.page-home .tier-table th,
.page-home .tier-table td,
.page-home .recent-table th,
.page-home .recent-table td {
  text-align: left;
  padding: 13px 10px;
  border-bottom: var(--home-line);
}

.page-home .tier-table thead th,
.page-home .recent-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-mist);
  border-bottom-color: var(--c-deep);
}

.page-home .tier-table tbody th,
.page-home .recent-table tbody th {
  font-weight: 400;
  color: var(--c-cream);
}

.page-home .tier-table tbody td,
.page-home .recent-table tbody td {
  color: var(--home-soft);
  font-size: 14px;
}

.page-home .tier-name {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.page-home .tier-table .num,
.page-home .recent-table .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--c-cream);
}

.page-home .tier-table tbody tr:hover,
.page-home .recent-table tbody tr:hover {
  background: rgba(55, 242, 198, 0.06);
}

.page-home .tier-note,
.page-home .recent-note,
.page-home .paths-note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--c-mist);
  max-width: 62ch;
}

.page-home .tier-details {
  margin-top: 22px;
  border-top: var(--home-line);
}

.page-home .tier-detail summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 2px;
  border-bottom: var(--home-line);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--c-cream);
}

.page-home .tier-detail summary::-webkit-details-marker {
  display: none;
}

.page-home .tier-detail summary::after {
  content: "＋";
  font-family: var(--font-mono);
  color: var(--c-cyan);
  font-size: 14px;
}

.page-home .tier-detail[open] summary::after {
  content: "－";
}

.page-home .tier-detail summary:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 2px;
}

.page-home .tier-detail p {
  margin: 12px 2px 18px;
  max-width: 60ch;
  font-size: 14px;
  line-height: 1.85;
  color: var(--home-soft);
}

/* ---------- 02 数据规模 ---------- */
.page-home .scale {
  background: linear-gradient(180deg, var(--c-charcoal) 0%, #0A1512 100%);
}

.page-home .scale-grid {
  display: grid;
  gap: 0;
  border-top: var(--home-line);
  border-left: var(--home-line);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.page-home .scale-item {
  padding: clamp(20px, 3vw, 32px);
  border-right: var(--home-line);
  border-bottom: var(--home-line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 200ms var(--ease), transform 200ms var(--ease);
}

.page-home .scale-item:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px var(--c-cyan);
}

.page-home .scale-item .stat-value {
  font-size: clamp(30px, 4.4vw, 48px);
  color: var(--c-cyan);
}

.page-home .scale-item .stat-label {
  font-size: 14px;
  color: var(--c-cream);
  letter-spacing: 0.04em;
}

.page-home .scale-item .stat-note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--c-mist);
}

.page-home .note {
  margin-top: 24px;
}

/* ---------- 03 近期战绩 ---------- */
.page-home .round-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: var(--home-line);
  border-bottom: var(--home-line);
}

.page-home .round-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-mist);
}

.page-home .round-more {
  font-size: 13px;
  color: var(--c-cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  margin-left: auto;
  transition: border-color 180ms var(--ease);
}

.page-home .round-more:hover {
  border-bottom-color: var(--c-cyan);
}

.page-home .round-more:focus-visible,
.page-home .path-item a:focus-visible,
.page-home .review-more a:focus-visible,
.page-home .paths-note a:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 3px;
}

.page-home .recent-wrap {
  margin-top: 4px;
  overflow-x: auto;
}

.page-home .recent-table {
  margin-top: 18px;
}

.page-home .recent-table tbody tr:last-child td,
.page-home .recent-table tbody tr:last-child th {
  border-bottom: none;
}

/* ---------- 04 复盘流程 ---------- */
.page-home .review {
  background:
    linear-gradient(180deg, rgba(15, 84, 72, 0.22) 0%, rgba(10, 42, 32, 0) 55%),
    var(--c-ink);
}

.page-home .review-body {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
}

.page-home .steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.page-home .step {
  position: relative;
  padding: 0 0 26px 58px;
  border-left: 1px solid var(--c-deep);
  margin-left: 20px;
}

.page-home .step:last-child {
  padding-bottom: 4px;
  border-left-color: transparent;
}

.page-home .step-num {
  position: absolute;
  left: -21px;
  top: -2px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-charcoal);
  border: 1px solid var(--c-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--c-cyan);
}

.page-home .step-title {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.03em;
  color: var(--c-cream);
}

.page-home .step-text {
  margin: 0;
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.85;
  color: var(--home-soft);
}

.page-home .review-figure {
  margin: 0;
}

.page-home .review-figure .figure-media {
  border: var(--home-line);
}

.page-home .review-figure .figure-cap {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--c-mist);
}

.page-home .review-more {
  margin: 28px 0 0;
  font-size: 13px;
  line-height: 1.85;
  color: var(--c-mist);
  max-width: 64ch;
}

.page-home .review-more a,
.page-home .paths-note a {
  color: var(--c-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(55, 242, 198, 0.4);
}

.page-home .review-more a:hover,
.page-home .paths-note a:hover {
  border-bottom-color: var(--c-cyan);
}

/* ---------- 05 更新节奏 ---------- */
.page-home .cadence {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--home-line);
}

.page-home .cadence-row {
  display: grid;
  gap: 6px;
  padding: 20px 4px;
  border-bottom: var(--home-line);
  border-left: 3px solid transparent;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}

.page-home .cadence-row:hover {
  border-left-color: var(--c-cyan);
  background: rgba(55, 242, 198, 0.05);
}

.page-home .cadence-time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--c-amber);
  text-transform: uppercase;
}

.page-home .cadence-what {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.03em;
  color: var(--c-cream);
}

.page-home .cadence-how {
  font-size: 13px;
  line-height: 1.8;
  color: var(--c-mist);
  max-width: 58ch;
}

/* ---------- 06 场景入口 ---------- */
.page-home .paths {
  background: linear-gradient(180deg, var(--c-charcoal) 0%, #081713 100%);
}

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

.page-home .path-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--home-line);
}

.page-home .path-item {
  border-bottom: var(--home-line);
}

.page-home .path-item a {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "role arrow"
    "goal goal";
  gap: 6px 14px;
  padding: 20px 4px;
  text-decoration: none;
  transition: background-color 180ms var(--ease);
}

.page-home .path-item a:hover {
  background: rgba(55, 242, 198, 0.06);
}

.page-home .path-role {
  grid-area: role;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.03em;
  color: var(--c-cream);
}

.page-home .path-goal {
  grid-area: goal;
  font-size: 13px;
  line-height: 1.8;
  color: var(--c-mist);
  max-width: 52ch;
}

.page-home .path-arrow {
  grid-area: arrow;
  font-family: var(--font-mono);
  color: var(--c-cyan);
  font-size: 16px;
  transition: transform 180ms var(--ease);
}

.page-home .path-item a:hover .path-arrow {
  transform: translateX(4px);
}

.page-home .paths-figure {
  margin: 0;
}

.page-home .paths-figure .figure-media {
  border: var(--home-line);
}

.page-home .paths-figure .figure-cap {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--c-mist);
}

/* ---------- 断点 ---------- */
@media (min-width: 640px) {
  .page-home .hero-visual {
    aspect-ratio: 5 / 4;
  }

  .page-home .cadence-row {
    grid-template-columns: 150px 200px 1fr;
    align-items: baseline;
    gap: 20px;
  }
}

@media (min-width: 900px) {
  .page-home .step {
    padding-left: 66px;
  }

  .page-home .steps {
    display: grid;
    gap: 0;
  }

  .page-home .review-body {
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
  }

  .page-home .paths-body {
    grid-template-columns: 1.2fr 1fr;
  }

  .page-home .path-item a {
    grid-template-columns: 220px 1fr auto;
    grid-template-areas: "role goal arrow";
    align-items: baseline;
    gap: 8px 20px;
  }
}

@media (min-width: 1024px) {
  .page-home .hero-grid {
    grid-template-columns: 5fr 7fr;
    gap: clamp(32px, 4vw, 72px);
    align-items: stretch;
  }

  .page-home .hero-visual {
    aspect-ratio: auto;
    min-height: 560px;
  }

  .page-home .hero-copy {
    justify-content: center;
    padding-bottom: 8px;
  }
}

@media (max-width: 639px) {
  .page-home .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .hero-title {
    max-width: none;
  }

  .page-home .round-more {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .scale-item,
  .page-home .cadence-row,
  .page-home .path-item a,
  .page-home .path-arrow {
    transition: none;
  }

  .page-home .scale-item:hover {
    transform: none;
  }

  .page-home .path-item a:hover .path-arrow {
    transform: none;
  }
}
