.page-home {
  --ph-pad: clamp(20px, 4vw, 48px);
  --ph-gap: 24px;
  color: var(--m6-text);
  background-color: var(--m6-bg);
}

/* ===== Hero 章节预览 ===== */
.ph-hero {
  position: relative;
  padding: var(--ph-pad) 0 64px;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--m6-bg);
  background-image:
    linear-gradient(rgba(229, 231, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 231, 235, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
}

.ph-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.5) 0%, rgba(10, 14, 26, 0.88) 100%);
  pointer-events: none;
}

.ph-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ph-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
}

.ph-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.ph-hero-title {
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--m6-heading);
  margin: 20px 0 12px;
}

.ph-hero-lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--m6-dim);
  max-width: 520px;
}

.ph-hero-chapters {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  border-top: 1px solid var(--m6-line);
}

.ph-hero-chapters li {
  border-bottom: 1px solid var(--m6-line);
}

.ph-hero-chapters a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 4px;
  text-decoration: none;
  color: var(--m6-text);
  font-size: 15px;
  transition: color 0.3s var(--m6-ease), padding-left 0.3s var(--m6-ease), background-color 0.3s var(--m6-ease);
}

.ph-hero-chapters a:hover {
  color: var(--m6-accent);
  padding-left: 12px;
  background-color: rgba(16, 185, 129, 0.06);
}

.ph-hero-chap-num {
  font-family: var(--m6-mono);
  font-size: 13px;
  color: var(--m6-accent);
}

.ph-hero .m6-breadcrumb {
  margin-bottom: 28px;
}

/* ===== 轮次面板 ===== */
.ph-rounds-panel {
  background: var(--m6-bg-card);
  border: 1px solid var(--m6-line);
  padding: clamp(20px, 4vw, 32px);
  position: relative;
}

.ph-rounds-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 18px;
  height: 18px;
  border-top: 2px solid var(--m6-accent);
  border-left: 2px solid var(--m6-accent);
}

.ph-rounds-head {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.ph-rounds-title {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--m6-heading);
  margin: 0;
  line-height: 1.3;
}

.ph-rounds-sub {
  font-size: 14px;
  line-height: 1.7;
  color: var(--m6-dim);
  margin: 0;
}

.ph-round-switch {
  position: relative;
}

.ph-round-input {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
}

.ph-round-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 42px;
  margin: 0 4px 8px 0;
  padding: 0 12px;
  border: 1px solid var(--m6-line);
  background: transparent;
  color: var(--m6-dim);
  font-family: var(--m6-mono);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s var(--m6-ease), border-color 0.2s var(--m6-ease), background-color 0.2s var(--m6-ease);
}

.ph-round-tab:hover {
  color: var(--m6-heading);
  border-color: var(--m6-line-strong);
}

.ph-round-input:focus-visible + .ph-round-tab {
  outline: 2px solid var(--m6-accent);
  outline-offset: 2px;
}

.ph-round-input:checked + .ph-round-tab {
  background: var(--m6-accent);
  border-color: var(--m6-accent);
  color: var(--m6-bg);
  font-weight: 800;
}

.ph-round-panels {
  margin-top: 12px;
}

.ph-round-panel {
  display: none;
  animation: ph-fade 0.35s var(--m6-ease);
}

.page-home #ph-round-30:checked ~ .ph-round-panels #ph-panel-30,
.page-home #ph-round-31:checked ~ .ph-round-panels #ph-panel-31,
.page-home #ph-round-32:checked ~ .ph-round-panels #ph-panel-32,
.page-home #ph-round-33:checked ~ .ph-round-panels #ph-panel-33,
.page-home #ph-round-34:checked ~ .ph-round-panels #ph-panel-34 {
  display: block;
}

@keyframes ph-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ph-round-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--m6-bg-2);
  border-left: 2px solid var(--m6-accent);
  margin-bottom: 12px;
}

.ph-round-num {
  font-family: var(--m6-mono);
  font-size: 26px;
  font-weight: 800;
  color: var(--m6-accent);
  line-height: 1;
}

.ph-round-label {
  font-size: 14px;
  color: var(--m6-text);
}

.ph-round-meta .m6-label {
  margin-left: auto;
}

.ph-match-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ph-match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--m6-line);
}

.ph-match:last-child {
  border-bottom: none;
}

.ph-match-team {
  font-size: 14px;
  color: var(--m6-text);
  min-width: 0;
}

.ph-match-team:first-child {
  text-align: left;
}

.ph-match-team:last-child {
  text-align: right;
}

.ph-match-score {
  font-family: var(--m6-mono);
  font-size: 17px;
  color: var(--m6-heading);
  padding: 4px 12px;
  border: 1px solid var(--m6-line-strong);
  white-space: nowrap;
}

.ph-round-total {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--m6-line);
  color: var(--m6-dim);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.ph-round-total b {
  color: var(--m6-accent);
  font-family: var(--m6-mono);
  font-size: 15px;
}

.ph-rounds-foot {
  margin-top: 20px;
  text-align: right;
}

/* ===== 通用区块 ===== */
.ph-section {
  padding: clamp(48px, 8vw, 96px) 0;
}

.ph-section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 32px;
}

.ph-section-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  color: var(--m6-heading);
  margin: 0;
}

.ph-section-copy {
  font-size: 16px;
  line-height: 1.8;
  color: var(--m6-dim);
  max-width: 640px;
  margin: 0;
}

/* ===== 数据刷新状态 ===== */
.ph-status-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ph-gap);
}

.ph-status-card {
  position: relative;
  background: var(--m6-bg-card);
  border: 1px solid var(--m6-line);
  padding: 28px 24px 24px;
  transition: border-color 0.3s var(--m6-ease), transform 0.3s var(--m6-ease);
}

.ph-status-card:hover {
  border-color: var(--m6-line-strong);
  transform: translateY(-2px);
}

.ph-status-card::before {
  content: attr(data-index);
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--m6-mono);
  font-size: 13px;
  color: var(--m6-accent);
}

.ph-status-label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--m6-dim);
  margin-bottom: 10px;
}

.ph-status-num {
  display: block;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.2;
  color: var(--m6-heading);
  margin-bottom: 12px;
}

.ph-status-num i {
  font-style: normal;
  font-family: var(--m6-font);
  font-size: 0.45em;
  color: var(--m6-accent);
  margin-left: 6px;
}

.ph-status-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--m6-dim);
  margin: 0;
}

.ph-trust-line {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--m6-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--m6-dim);
  font-size: 14px;
}

.ph-trust-line b {
  color: var(--m6-heading);
  font-family: var(--m6-mono);
}

/* ===== 进失球分布 ===== */
.ph-distribution {
  background: var(--m6-bg-2);
}

.ph-distribution-card {
  position: relative;
  background: var(--m6-bg-card);
  border: 1px solid var(--m6-line);
  padding: 20px;
  overflow: hidden;
}

.ph-chart-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.ph-chart-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  filter: blur(2px);
}

.ph-chart {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  min-height: 260px;
}

.ph-chart-grid line {
  stroke: var(--m6-line);
  stroke-width: 1;
}

.ph-chart-labels text,
.ph-chart text {
  fill: var(--m6-dim);
  font-family: var(--m6-mono);
  font-size: 11px;
}

.ph-chart .ph-chart-axis-title {
  fill: var(--m6-text);
  font-size: 12px;
}

.ph-line-goals {
  fill: none;
  stroke: var(--m6-accent);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.ph-line-conceded {
  fill: none;
  stroke: var(--m6-orange);
  stroke-width: 2;
  stroke-dasharray: 5 4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.ph-chart-dots-goals circle {
  fill: var(--m6-accent);
}

.ph-chart-dots-conceded circle {
  fill: var(--m6-orange);
}

.ph-chart-legend {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  display: flex;
  gap: 16px;
  background: rgba(10, 14, 26, 0.72);
  border: 1px solid var(--m6-line);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--m6-text);
}

.ph-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ph-legend-item i {
  width: 10px;
  height: 10px;
  display: inline-block;
}

.ph-legend-goals i {
  background: var(--m6-accent);
}

.ph-legend-conceded i {
  background: var(--m6-orange);
}

.ph-distribution-foot {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  text-align: right;
  border-top: 1px solid var(--m6-line);
  padding-top: 14px;
}

/* ===== 安卓下载引导 ===== */
.ph-download {
  background:
    radial-gradient(circle at 82% 24%, var(--m6-accent-soft), transparent 42%),
    var(--m6-bg);
}

.ph-download-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.ph-download-copy .m6-kicker {
  margin-bottom: 12px;
}

.ph-download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.ph-version-tag {
  display: inline-block;
  border: 1px solid var(--m6-line-strong);
  background: var(--m6-accent-soft);
  color: var(--m6-heading);
  font-family: var(--m6-mono);
  font-size: 13px;
  padding: 6px 12px;
}

.ph-download-points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--m6-dim);
}

.ph-download-points li {
  position: relative;
  padding-left: 18px;
}

.ph-download-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  background: var(--m6-accent);
}

.ph-download-visual {
  display: flex;
  justify-content: center;
}

.ph-download-visual img {
  width: clamp(160px, 40vw, 200px);
  height: auto;
  background: var(--m6-bg-2);
  border: 1px solid var(--m6-line-strong);
  padding: 10px;
  filter: drop-shadow(0 0 22px var(--m6-accent-soft));
}

/* ===== 底部模块（专栏/品牌/帮助） ===== */
.ph-lower {
  background: var(--m6-bg);
  padding-top: 0;
}

.ph-lower-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ph-gap);
}

.ph-card {
  background: var(--m6-bg-card);
  border: 1px solid var(--m6-line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border-color 0.3s var(--m6-ease);
}

.ph-card:hover {
  border-color: var(--m6-line-strong);
}

.ph-lower-title {
  font-size: clamp(24px, 3vw, 30px);
  color: var(--m6-heading);
  margin: 8px 0 10px;
}

.ph-lower-sub {
  font-size: 14px;
  line-height: 1.7;
  color: var(--m6-dim);
  margin: 0 0 8px;
}

/* 专栏 */
.ph-news-figure {
  width: 100%;
  margin-bottom: 20px;
}

.ph-news-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--m6-line);
  display: block;
}

.ph-news-body {
  width: 100%;
}

.ph-news-list {
  list-style: none;
  margin: 16px 0 20px;
  padding: 0;
  border-top: 1px solid var(--m6-line);
  width: 100%;
}

.ph-news-item {
  border-bottom: 1px solid var(--m6-line);
}

.ph-news-item a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0;
  text-decoration: none;
  color: var(--m6-text);
}

.ph-news-item a:hover .ph-news-title {
  color: var(--m6-accent);
}

.ph-news-title {
  font-size: 15px;
  line-height: 1.5;
  transition: color 0.2s var(--m6-ease);
}

.ph-news-cat {
  align-self: flex-start;
  font-size: 12px;
  color: var(--m6-blue);
  border: 1px solid var(--m6-line-blue);
  padding: 2px 8px;
}

/* 品牌时间线 */
.ph-timeline {
  list-style: none;
  margin: 20px 0 24px;
  padding: 0;
  border-left: 1px solid var(--m6-line-strong);
  width: 100%;
}

.ph-timeline li {
  position: relative;
  padding: 0 0 16px 20px;
  font-size: 14px;
  color: var(--m6-text);
}

.ph-timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  background: var(--m6-accent);
}

.ph-timeline-year {
  font-family: var(--m6-mono);
  color: var(--m6-heading);
  font-weight: 700;
  margin-right: 12px;
}

/* 帮助 FAQ */
.ph-card .m6-arrowlink {
  margin-top: auto;
}

.ph-help-card {
  padding-bottom: 28px;
}

.ph-faq {
  border-bottom: 1px solid var(--m6-line);
  width: 100%;
}

.ph-faq summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 16px 40px 16px 0;
  color: var(--m6-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  transition: color 0.2s var(--m6-ease);
}

.ph-faq summary::-webkit-details-marker {
  display: none;
}

.ph-faq summary:hover {
  color: var(--m6-accent);
}

.ph-faq summary::after {
  content: "＋";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--m6-dim);
  font-family: var(--m6-mono);
  font-size: 16px;
}

.ph-faq[open] summary {
  color: var(--m6-accent);
}

.ph-faq[open] summary::after {
  content: "－";
  color: var(--m6-accent);
}

.ph-faq-answer {
  padding: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--m6-dim);
}

/* ===== 响应式 ===== */
@media (min-width: 768px) {
  .ph-status-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ph-lower-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ph-card:first-child {
    grid-column: 1 / -1;
  }

  .ph-download-card {
    grid-template-columns: 1fr 200px;
  }
}

@media (min-width: 1024px) {
  .ph-hero-grid {
    grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.2fr);
    gap: 64px;
    align-items: start;
  }

  .ph-lower-grid {
    grid-template-columns: 1.1fr 0.9fr 1fr;
  }

  .ph-card:first-child {
    grid-column: auto;
  }

  .ph-status-card {
    padding: 32px 28px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .ph-round-panel {
    animation: none;
  }

  .page-home .ph-status-card,
  .page-home .ph-hero-chapters a,
  .page-home .ph-round-tab {
    transition: none;
  }

  .page-home [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
