.page-home {
  --home-panel-line: rgba(47, 243, 208, 0.10);
}

/* ===== 首屏 ===== */
.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.75rem, 5vw, 4rem) 0 clamp(2.5rem, 6vw, 5rem);
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.page-home .hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

.page-home .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 82% 16%, rgba(47, 243, 208, 0.16), transparent 68%),
    radial-gradient(60% 50% at 6% 94%, rgba(231, 66, 63, 0.10), transparent 70%),
    linear-gradient(180deg, rgba(14, 18, 17, 0.52), var(--ink) 88%);
}

.page-home .hero-inner {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}

.page-home .hero-context {
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-home .hero h1 {
  margin: 0;
  max-width: 15em;
  font-size: clamp(1.95rem, 4.6vw, 3.4rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--mist);
}

.page-home .hero-lead {
  margin: 1.1rem 0 0;
  max-width: 42em;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--mist-dim);
}

/* 入口矩阵 */
.page-home .entry-grid {
  list-style: none;
  margin: clamp(1.6rem, 3vw, 2.25rem) 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.page-home .entry-card {
  min-width: 0;
}

.page-home .entry-link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: 100%;
  padding: 1.1rem 1.2rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass-soft);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--mist);
  text-decoration: none;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}

.page-home .entry-link::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: var(--cyan);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.page-home .entry-link:hover,
.page-home .entry-link:focus-visible {
  border-color: rgba(47, 243, 208, 0.45);
  background: rgba(29, 46, 42, 0.84);
  transform: translateY(-3px);
}

.page-home .entry-link:hover::before,
.page-home .entry-link:focus-visible::before {
  opacity: 1;
}

.page-home .entry-index {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--mist-faint);
}

.page-home .entry-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-home .entry-desc {
  font-size: 0.875rem;
  line-height: 1.62;
  color: var(--mist-dim);
}

.page-home .entry-go {
  margin-top: auto;
  padding-top: 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

/* 首屏悬浮面板 */
.page-home .hero-panel {
  display: flex;
  flex-direction: column;
  padding: clamp(1.1rem, 2.4vw, 1.5rem);
  border-radius: var(--radius);
}

.page-home .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.page-home .panel-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--mist);
}

.page-home .panel-state {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--mist-dim);
}

.page-home .donut-wrap {
  position: relative;
  width: min(100%, 240px);
  margin: 1.1rem auto 0.9rem;
}

.page-home .donut {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .donut circle {
  fill: none;
  stroke-width: 14;
}

.page-home .donut-track {
  stroke: var(--line);
}

.page-home .donut-arc {
  stroke-linecap: butt;
}

.page-home .donut-arc--home {
  stroke: var(--cyan);
}

.page-home .donut-arc--away {
  stroke: var(--moss);
}

.page-home .donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  pointer-events: none;
}

.page-home .donut-value {
  font-size: clamp(1.6rem, 4vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--mist);
}

.page-home .donut-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--mist-faint);
}

.page-home .donut-legend {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-size: 0.82rem;
  color: var(--mist-dim);
}

.page-home .donut-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.page-home .donut-legend b {
  color: var(--mist);
  font-weight: 600;
}

.page-home .lg-dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}

.page-home .lg-dot--home {
  background: var(--cyan);
}

.page-home .lg-dot--away {
  background: var(--moss);
}

.page-home .panel-foot {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--mist-faint);
}

.page-home .hero-panel .btn {
  align-self: flex-start;
}

/* ===== 控球率 ===== */
.page-home .split {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.page-home .split-body {
  min-width: 0;
}

.page-home .split-note {
  margin: 1.1rem 0 1.35rem;
  color: var(--mist-dim);
  font-size: 0.925rem;
  line-height: 1.75;
}

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

/* ===== 红黄牌时间轴 ===== */
.page-home .section--panel {
  background: linear-gradient(180deg, transparent, rgba(11, 31, 26, 0.62) 16%, rgba(11, 31, 26, 0.62) 84%, transparent);
}

.page-home .timeline {
  list-style: none;
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  padding: 0;
  display: grid;
  gap: 0;
}

.page-home .tl-node {
  position: relative;
  display: grid;
  gap: 0.18rem;
  padding: 0 0 1.5rem 1.9rem;
  border-left: 2px solid var(--line);
}

.page-home .tl-node:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.page-home .tl-node::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(245, 197, 66, 0.13);
}

.page-home .tl-node--red::before {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(231, 66, 63, 0.15);
}

.page-home .tl-time {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.page-home .tl-meta {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--mist-faint);
}

.page-home .tl-text {
  font-size: 0.925rem;
  color: var(--mist-dim);
  line-height: 1.6;
}

.page-home .cards-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(1.25rem, 3vw, 1.9rem);
}

.page-home .cards-cta p {
  margin: 0;
  max-width: 46em;
  color: var(--mist-dim);
  line-height: 1.75;
}

/* ===== 导出 ===== */
.page-home .export-grid {
  display: grid;
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
}

.page-home .export-steps {
  min-width: 0;
}

.page-home .step {
  position: relative;
  padding: 1.25rem 1.3rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.page-home .step + .step {
  margin-top: 0.9rem;
}

.page-home .step + .step::before {
  content: "";
  position: absolute;
  top: -0.9rem;
  left: 2rem;
  width: 2px;
  height: 0.9rem;
  background: linear-gradient(180deg, var(--cyan), transparent);
}

.page-home .step-num {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-home .step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--mist);
}

.page-home .step p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--mist-dim);
}

.page-home .export-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

/* ===== 分类标签 ===== */
.page-home .chip-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.6rem;
  padding: 0;
}

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

.page-home .combo-list li {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.page-home .combo {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.page-home .combo-out {
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--mist-dim);
}

/* ===== 路径连续性 ===== */
.page-home .continuity {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--radius);
}

.page-home .continuity-head {
  max-width: 52em;
}

.page-home .continuity-head p {
  margin: 0.85rem 0 0;
  color: var(--mist-dim);
  line-height: 1.78;
}

.page-home .stat-grid {
  list-style: none;
  margin: clamp(1.5rem, 3vw, 2rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.page-home .stat-grid .stat {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(11, 31, 26, 0.62);
}

.page-home .stat-grid .stat__label {
  display: block;
  margin-top: 0.32rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--mist-faint);
}

.page-home .next-links {
  list-style: none;
  margin: clamp(1.5rem, 3vw, 2rem) 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.page-home .next-links a {
  display: block;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--mist-dim);
  font-size: 0.875rem;
  line-height: 1.65;
  text-decoration: none;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.page-home .next-links a:hover,
.page-home .next-links a:focus-visible {
  border-color: var(--cyan);
  color: var(--mist);
}

/* ===== 动效 ===== */
@media (prefers-reduced-motion: no-preference) {
  .page-home .donut-arc--home {
    animation: home-arc-draw 1.2s var(--ease) 0.15s both;
  }

  .page-home .donut-arc--away {
    animation: home-arc-fade 0.9s var(--ease) 0.8s both;
  }

  @keyframes home-arc-draw {
    from { stroke-dashoffset: 277; }
    to { stroke-dashoffset: 0; }
  }

  @keyframes home-arc-fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

/* ===== 响应式 ===== */
@media (min-width: 620px) {
  .page-home .entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .page-home .combo-list li {
    grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
    align-items: baseline;
    gap: 1.5rem;
  }

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

  .page-home .next-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .page-home .timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.25rem;
  }

  .page-home .tl-node {
    padding: 1.8rem 0 0;
    border-left: 0;
    border-top: 2px solid var(--line);
  }

  .page-home .tl-node:last-child {
    border-left-color: var(--line);
    border-top-color: var(--line);
    padding-bottom: 0;
  }

  .page-home .tl-node::before {
    left: 0;
    top: -9px;
  }
}

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

@media (min-width: 960px) {
  .page-home .export-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .page-home .hero-inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.8fr);
    align-items: start;
  }

  .page-home .hero-panel {
    position: sticky;
    top: 1.5rem;
  }
}

@media (max-width: 480px) {
  .page-home .entry-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-home .cards-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .donut-arc,
  .page-home .entry-link,
  .page-home .next-links a {
    animation: none !important;
    transition: none !important;
  }
}
