.page-home {
  --home-section: clamp(64px, 8vw, 128px);
  display: block;
}

/* ---------- 首屏：章节预览 ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 7vw, 92px) 0 clamp(56px, 8vw, 104px);
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.page-home .hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(0.85) contrast(1.05);
}

.page-home .hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(110% 80% at 82% 6%, rgba(34, 224, 214, 0.2), transparent 58%),
    radial-gradient(80% 60% at 4% 96%, rgba(255, 122, 47, 0.14), transparent 62%),
    linear-gradient(180deg, rgba(7, 11, 20, 0.62), rgba(7, 11, 20, 0.9) 58%, var(--bg) 100%);
}

.page-home .hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.page-home .hero h1 {
  max-width: 15em;
}

.page-home .lede {
  max-width: 42em;
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.8;
}

.page-home .hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px 22px;
  width: 100%;
  margin-top: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.page-home .stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .stat__num {
  font-family: var(--font-num);
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.page-home .stat__label {
  font-size: 14px;
  color: var(--ink-dim);
}

.page-home .hero__index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-top: 16px;
}

.page-home .idx {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(14, 21, 38, 0.55);
  text-decoration: none;
  font-size: 14px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.page-home .idx:hover {
  border-color: var(--mint);
  background: var(--panel-2);
  transform: translateY(-2px);
}

.page-home .idx:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.page-home .idx__n {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.page-home .idx__t {
  color: var(--ink-dim);
}

/* ---------- 章节节奏 ---------- */
.page-home .section {
  padding-block: var(--home-section);
}

.page-home .pane {
  background: var(--panel);
}

.page-home .h-section {
  max-width: 22em;
}

.page-home .body {
  max-width: 46em;
  margin-top: 14px;
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.8;
}

.page-home .note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.page-home .note a {
  color: var(--cyan);
}

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

/* ---------- 图框 ---------- */
.page-home .img-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel-2);
}

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

.page-home .img-frame--wide img {
  aspect-ratio: 3 / 2;
}

.page-home .img-frame--tall img {
  aspect-ratio: 3 / 4;
}

.page-home .img-frame__cap {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-dim);
  background: var(--panel);
  border-top: 1px solid var(--line);
}

/* ---------- 01 签表 ---------- */
.page-home .draw {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
}

.page-home .rounds {
  position: relative;
  list-style: none;
  margin: 24px 0 0;
  padding: 0 0 0 24px;
}

.page-home .rounds::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: var(--grad-cyan);
  opacity: 0.7;
}

.page-home .rounds__item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}

.page-home .rounds__item:last-child {
  border-bottom: 0;
}

.page-home .rounds__item::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 15px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
}

.page-home .rounds__n {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.page-home .rounds__name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.page-home .rounds__meta {
  font-size: 13px;
  color: var(--ink-dim);
}

/* ---------- 02 战绩 ---------- */
.page-home .form__grid {
  display: grid;
  gap: 30px;
  margin-top: 28px;
}

.page-home .rings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 18px 14px;
}

.page-home .ring-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.page-home .ring {
  --pct: 50;
  --ring-color: var(--cyan);
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 128px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) calc(var(--pct) * 1%), var(--line) 0);
}

.page-home .ring::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--panel);
  z-index: 0;
}

.page-home .ring__value {
  position: relative;
  z-index: 1;
  font-family: var(--font-num);
  font-size: clamp(20px, 3.4vw, 26px);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.page-home .ring__cap {
  font-size: 13px;
  color: var(--ink-dim);
  text-align: center;
}

.page-home .sheet {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.page-home .sheet caption {
  padding-bottom: 12px;
  text-align: left;
  font-size: 13px;
  color: var(--ink-dim);
}

.page-home .sheet th,
.page-home .sheet td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.page-home .sheet thead th {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.page-home .sheet thead th:first-child,
.page-home .sheet tbody th {
  text-align: left;
}

.page-home .sheet tbody th {
  font-family: var(--font-num);
  color: var(--cyan);
}

.page-home .sheet tbody td {
  font-family: var(--font-num);
  color: var(--ink);
}

.page-home .sheet tbody tr:hover {
  background: rgba(34, 224, 214, 0.05);
}

/* ---------- 03 点球 ---------- */
.page-home .penalty {
  display: grid;
  gap: clamp(26px, 4vw, 46px);
}

.page-home .spot {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-width: 460px;
}

.page-home .spot__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  border-left: 3px solid var(--amber);
  background: rgba(242, 178, 51, 0.07);
}

.page-home .spot__n {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.page-home .spot__who {
  font-size: 14px;
  color: var(--ink);
}

.page-home .spot__res {
  font-size: 13px;
  font-weight: 500;
}

.page-home .spot__res--in {
  color: var(--mint);
}

.page-home .spot__res--out {
  color: var(--muted);
}

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

/* ---------- 04 轮换时间轴 ---------- */
.page-home .timeline {
  list-style: none;
  margin: 26px 0 0;
  padding: 0 0 14px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(138px, 1fr);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.page-home .timeline__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 16px 16px;
  border-radius: var(--r-md);
  background: var(--panel-2);
  scroll-snap-align: start;
}

.page-home .timeline__item::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--grad-cyan);
}

.page-home .timeline__r {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}

.page-home .timeline__v {
  font-family: var(--font-num);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.page-home .timeline__k {
  font-size: 13px;
  color: var(--ink-dim);
}

/* ---------- 05 复盘 ---------- */
.page-home .band--review {
  background:
    linear-gradient(180deg, rgba(255, 74, 61, 0.09), transparent 62%),
    var(--panel);
}

.page-home .review {
  display: grid;
  gap: clamp(26px, 4vw, 46px);
}

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

.page-home .review__list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: var(--ink-dim);
}

.page-home .review__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
}

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

/* ---------- 06 版本 ---------- */
.page-home .version {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.page-home .version__badge {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, rgba(34, 224, 214, 0.16), rgba(14, 21, 38, 0.9) 68%);
}

.page-home .version__code {
  font-family: var(--font-num);
  font-size: clamp(42px, 8vw, 68px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page-home .version__sub {
  font-size: 13px;
  color: var(--ink-dim);
}

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

.page-home .version__list li {
  display: grid;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

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

.page-home .version__k {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.page-home .version__d {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-dim);
}

/* ---------- 07 服务与反馈 ---------- */
.page-home .help {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.page-home .help__item {
  display: grid;
  gap: 8px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel-2);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.page-home .help__item:hover {
  border-color: var(--mint);
  background: var(--panel);
  transform: translateY(-2px);
}

.page-home .help__item:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.page-home .help__item--amber {
  border-color: rgba(242, 178, 51, 0.45);
}

.page-home .help__item--amber:hover {
  border-color: var(--amber);
}

.page-home .help__k {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.page-home .help__d {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-dim);
}

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

@media (min-width: 880px) {
  .page-home .form__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 42px;
  }

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

  .page-home .version {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    align-items: start;
    gap: 36px;
  }
}

@media (min-width: 900px) {
  .page-home .draw {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: start;
  }

  .page-home .review {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
  }
}

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

@media (max-width: 420px) {
  .page-home .sheet th,
  .page-home .sheet td {
    padding: 9px 4px;
    font-size: 13px;
  }

  .page-home .rings {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .idx,
  .page-home .help__item {
    transition: none;
  }

  .page-home .idx:hover,
  .page-home .help__item:hover {
    transform: none;
  }
}
