/* ===== 首页专属样式 · MANBETX手机中文首页V2.0 ===== */
.page-home {
  overflow-x: clip;
}

/* ---------- 首屏场景 ---------- */
.page-home .home-hero {
  background: var(--c-primary);
  padding: 1.25rem 0 3.5rem;
  clip-path: polygon(0 0, 100% 0, 100% 98%, 0 100%);
}

.page-home .home-breadcrumb {
  padding: 0;
  margin-bottom: 1.5rem;
  font-size: .8rem;
  color: var(--c-muted);
}

.page-home .home-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: .5rem;
}

.page-home .home-hero__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

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

.page-home .home-hero__eyebrow {
  font-size: .8rem;
  color: var(--c-muted);
  border-left: 4px solid var(--c-accent);
  padding-left: .75rem;
  margin: 0 0 1.1rem;
  letter-spacing: .04em;
}

.page-home .home-hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 10vw, 5.5rem);
  line-height: .98;
  color: var(--c-light);
  letter-spacing: -.02em;
  margin: 0 0 1.25rem;
}

.page-home .home-hero__subtitle {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 500;
  color: var(--c-accent);
  letter-spacing: .08em;
  margin-top: .35em;
}

.page-home .home-hero__desc {
  color: var(--c-muted);
  max-width: 48ch;
  line-height: 1.75;
  margin: 0;
}

.page-home .home-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.page-home .hero-stat {
  border-left: 4px solid var(--c-accent);
  padding-left: .75rem;
}

.page-home .hero-stat__num {
  display: block;
  font-family: var(--font-num);
  font-size: 2rem;
  line-height: 1;
  color: var(--c-accent);
  font-weight: 700;
}

.page-home .hero-stat__label {
  display: block;
  font-size: .78rem;
  color: var(--c-muted);
  margin-top: .3rem;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}

.page-home .btn--accent {
  background: var(--c-accent);
  border: 2px solid var(--c-accent);
  color: #0a1930;
  font-weight: 700;
  padding: .6rem 1.2rem;
  text-decoration: none;
  display: inline-block;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}

.page-home .btn--accent:hover {
  background: transparent;
  color: var(--c-light);
  transform: translateY(-2px);
}

.page-home .btn--ghost {
  border: 2px solid rgba(245, 247, 250, .55);
  color: var(--c-light);
  padding: .6rem 1.2rem;
  text-decoration: none;
  display: inline-block;
  transition: border-color .15s ease, color .15s ease;
}

.page-home .btn--ghost:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

/* ---------- 首屏视觉 ---------- */
.page-home .home-hero__visual {
  position: relative;
}

.page-home .hero-visual__media {
  margin: 0;
  position: relative;
  z-index: 0;
}

.page-home .hero-visual__media img {
  width: 100%;
  height: auto;
  display: block;
  clip-path: polygon(6% 0, 100% 0, 100% 88%, 0 100%);
}

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

.page-home .pitch-rect,
.page-home .pitch-line {
  fill: none;
  stroke: rgba(245, 247, 250, .5);
  stroke-width: 2;
}

.page-home .pitch-diag {
  fill: none;
  stroke: var(--c-accent);
  stroke-width: 2;
  stroke-dasharray: 10 8;
  opacity: .55;
}

.page-home .hero-orb {
  position: absolute;
  bottom: -16px;
  right: -8px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--c-accent-soft), var(--c-accent));
  opacity: .8;
  z-index: 2;
}

/* ---------- 章节体系 ---------- */
.page-home .home-section {
  padding: 3rem 0;
}

.page-home .home-section--standings {
  background: var(--c-light);
}

.page-home .home-section--v3 {
  background: var(--c-primary);
  color: var(--c-light);
}

.page-home .home-section--register {
  background: var(--c-light);
}

.page-home .home-section--live {
  background: var(--c-primary);
  color: var(--c-light);
}

.page-home .home-section--journal {
  background: var(--c-light);
}

.page-home .home-section--cta {
  background: var(--c-light);
  padding-bottom: 4rem;
}

.page-home .section-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.page-home .section-number {
  font-family: var(--font-num);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  line-height: 1;
  font-weight: 800;
  color: var(--c-accent);
  min-width: 1.2em;
}

.page-home .section-title {
  margin: .1rem 0 .25rem;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -.01em;
}

.page-home .section-kicker {
  margin: 0;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-soft);
}

.page-home .home-section--v3 .section-kicker,
.page-home .home-section--live .section-kicker {
  color: var(--c-accent);
}

.page-home .section-intro {
  max-width: 74ch;
  color: var(--c-soft);
  margin: 0 0 1.5rem;
  line-height: 1.75;
}

.page-home .home-section--v3 .section-intro,
.page-home .home-section--live .section-intro {
  color: var(--c-muted);
}

.page-home .text-link {
  color: var(--c-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color .15s ease;
}

.page-home .text-link:hover {
  color: var(--c-accent-soft);
}

.page-home .section-more {
  margin: 1.25rem 0 0;
  font-size: .88rem;
}

/* ---------- 01 主客场对照 ---------- */
.page-home .standings-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.page-home .stat-panel {
  background: var(--c-panel);
  padding: 1.25rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 0 100%);
}

.page-home .stat-toggle {
  position: relative;
}

.page-home .stat-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.page-home .stat-toggle__labels {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
}

.page-home .stat-toggle__labels label {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--c-line);
  color: var(--c-muted);
  padding: .45rem 1rem;
  cursor: pointer;
  font-size: .85rem;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.page-home .stat-toggle__labels label:hover {
  color: var(--c-light);
  border-color: var(--c-accent);
}

.page-home .stat-table--date {
  display: none;
}

.page-home #stat-date:checked ~ .stat-table--date {
  display: block;
}

.page-home #stat-date:checked ~ .stat-table--league {
  display: none;
}

.page-home #stat-league:checked ~ .stat-table--league {
  display: block;
}

.page-home #stat-league:checked ~ .stat-table--date {
  display: none;
}

.page-home #stat-league:checked ~ .stat-toggle__labels label[for="stat-league"],
.page-home #stat-date:checked ~ .stat-toggle__labels label[for="stat-date"] {
  background: var(--c-accent);
  color: #0a1930;
  border-color: var(--c-accent);
  font-weight: 700;
}

.page-home .stat-table__wrap {
  overflow-x: auto;
}

.page-home .stat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  min-width: 560px;
  color: var(--c-light);
}

.page-home .stat-table th {
  text-align: left;
  padding: .7rem .6rem;
  color: var(--c-muted);
  font-weight: 400;
  border-bottom: 1px solid var(--c-line);
  white-space: nowrap;
}

.page-home .stat-table td {
  padding: .72rem .6rem;
  border-bottom: 1px solid rgba(42, 61, 92, .55);
}

.page-home .stat-table tbody tr {
  transition: background .15s ease;
}

.page-home .stat-table tbody tr:hover {
  background: rgba(255, 107, 53, .09);
}

.page-home .stat-table .home-strong {
  color: var(--c-accent);
  font-weight: 700;
}

.page-home .stat-table .away-soft {
  color: var(--c-muted);
}

.page-home .stat-table .matchup-cell {
  position: relative;
}

.page-home .matchup-tip {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--c-accent);
  color: #0a1930;
  font-size: .72rem;
  font-weight: 600;
  padding: .4rem .6rem;
  border-radius: 2px;
  z-index: 6;
  white-space: nowrap;
}

.page-home .stat-side-media {
  margin: 0;
}

.page-home .stat-side-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--c-line);
}

.page-home .stat-side-media figcaption,
.page-home .v3-media figcaption,
.page-home .register-media figcaption {
  font-size: .78rem;
  color: var(--c-soft);
  margin-top: .5rem;
  line-height: 1.5;
}

/* ---------- SVG 条形图 ---------- */
.page-home .stat-bars {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 2rem;
}

.page-home .bar-label {
  font-family: var(--font-body);
  font-size: 13px;
  fill: var(--c-primary);
  font-weight: 600;
}

.page-home .bar-text {
  font-family: var(--font-num);
  font-size: 11px;
  fill: #0a1930;
  font-weight: 700;
}

.page-home .bar-home {
  fill: var(--c-accent);
}

.page-home .bar-away {
  fill: var(--c-soft);
  opacity: .9;
}

/* ---------- 02 V3 变更 ---------- */
.page-home .v3-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.page-home .change-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.page-home .change-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--c-line);
  transition: border-color .15s ease, background .15s ease;
}

.page-home .change-item:hover {
  border-color: var(--c-accent);
  background: rgba(255, 107, 53, .06);
}

.page-home .change-item__num {
  font-family: var(--font-num);
  color: var(--c-accent);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.4;
}

.page-home .change-item h3 {
  margin: 0 0 .25rem;
  font-size: 1rem;
  color: var(--c-light);
}

.page-home .change-item p {
  margin: 0;
  font-size: .86rem;
  color: var(--c-muted);
  line-height: 1.6;
}

.page-home .v3-more {
  margin: 1.25rem 0 0;
  font-size: .86rem;
  color: var(--c-muted);
}

.page-home .v3-media {
  margin: 0;
}

.page-home .v3-media img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--c-line);
}

/* ---------- 03 注册对比 ---------- */
.page-home .register-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.page-home .reg-compare {
  display: grid;
  gap: 1.25rem;
}

.page-home .reg-version {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--c-line);
  box-shadow: 0 10px 24px rgba(10, 25, 48, .05);
}

.page-home .reg-version--new {
  background: var(--c-primary);
  border: 0;
}

.page-home .reg-version__head {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.page-home .reg-version__head h3 {
  margin: 0;
  font-size: 1.1rem;
}

.page-home .reg-version--new .reg-version__head h3 {
  color: var(--c-light);
}

.page-home .reg-steps {
  list-style: none;
  margin: 0 0 0 .5rem;
  padding: 0 0 0 1.5rem;
  border-left: 2px dashed var(--c-line);
  display: grid;
  gap: 1.5rem;
}

.page-home .reg-step {
  position: relative;
}

.page-home .reg-step::before {
  content: "";
  position: absolute;
  left: -1.82rem;
  top: .2em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-soft);
}

.page-home .reg-step__num {
  display: block;
  font-family: var(--font-num);
  font-size: .8rem;
  color: var(--c-accent);
  font-weight: 700;
}

.page-home .reg-step__text {
  display: block;
  color: var(--c-primary);
  font-weight: 600;
  font-size: .95rem;
}

.page-home .reg-version--new .reg-steps {
  border-left-color: var(--c-accent);
}

.page-home .reg-version--new .reg-step::before {
  background: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, .18);
}

.page-home .reg-version--new .reg-step__text {
  color: var(--c-light);
}

.page-home details.reg-note {
  margin-top: 1.25rem;
}

.page-home details.reg-note summary {
  cursor: pointer;
  color: var(--c-accent);
  font-size: .82rem;
  font-weight: 600;
}

.page-home details.reg-note p {
  margin: .5rem 0 0;
  font-size: .82rem;
  color: var(--c-soft);
}

.page-home .reg-version--new details.reg-note p {
  color: var(--c-muted);
}

.page-home .register-media {
  margin: 0;
}

.page-home .register-media img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--c-line);
}

/* ---------- 04 实时数据 ---------- */
.page-home .live-grid {
  display: grid;
  gap: 2.5rem;
}

.page-home .sport-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}

.page-home .sport-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--c-line);
  color: var(--c-light);
  font-weight: 600;
  font-size: .9rem;
  transition: border-color .15s ease, background .15s ease;
}

.page-home .sport-list li:hover {
  border-color: var(--c-accent);
  background: rgba(255, 107, 53, .07);
}

.page-home .sport-list .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  display: inline-block;
  flex: 0 0 auto;
}

.page-home .live-more {
  font-size: .8rem;
  color: var(--c-muted);
  margin: .8rem 0 0;
}

.page-home .live-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.page-home .live-metric {
  background: var(--c-panel);
  padding: 1rem;
  border-left: 4px solid var(--c-accent);
}

.page-home .live-metric__num {
  display: block;
  font-family: var(--font-num);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1.1;
}

.page-home .live-metric__label {
  display: block;
  font-size: .78rem;
  color: var(--c-muted);
  margin-top: .3rem;
}

.page-home .quality-path__title {
  color: var(--c-light);
  font-weight: 700;
  margin: 0 0 .75rem;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-home .quality-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .6rem;
}

.page-home .quality-step {
  display: flex;
  gap: .6rem;
  align-items: center;
  background: rgba(255, 255, 255, .04);
  padding: .6rem .8rem;
  border: 1px solid var(--c-line);
  color: var(--c-muted);
  font-size: .85rem;
  transition: border-color .15s ease;
}

.page-home .quality-step:hover {
  border-color: var(--c-accent);
}

.page-home .quality-step span {
  font-family: var(--font-num);
  color: var(--c-accent);
  font-weight: 700;
}

.page-home .trust-statement {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--c-accent);
  background: rgba(255, 255, 255, .04);
  color: var(--c-muted);
  font-size: .8rem;
  line-height: 1.7;
}

/* ---------- 05 品牌动态 ---------- */
.page-home .journal-list {
  display: grid;
  gap: 1rem;
}

.page-home .journal-item {
  background: #fff;
  border-left: 4px solid var(--c-accent);
  box-shadow: 0 8px 18px rgba(10, 25, 48, .06);
  padding: 1.25rem;
  transition: transform .15s ease, box-shadow .15s ease;
}

.page-home .journal-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(10, 25, 48, .1);
}

.page-home .journal-item h3 {
  margin: .5rem 0 .35rem;
  font-size: 1rem;
  line-height: 1.4;
}

.page-home .journal-item h3 a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color .15s ease;
}

.page-home .journal-item h3 a:hover {
  color: var(--c-accent);
}

.page-home .journal-item p {
  margin: 0;
  font-size: .84rem;
  color: var(--c-soft);
}

.page-home .journal-footer {
  margin-top: 1.5rem;
  text-align: center;
}

.page-home .journal-footer .btn--outline {
  border: 2px solid var(--c-primary);
  color: var(--c-primary);
  padding: .6rem 1.4rem;
  text-decoration: none;
  display: inline-block;
  transition: background .15s ease, color .15s ease;
}

.page-home .journal-footer .btn--outline:hover {
  background: var(--c-primary);
  color: var(--c-light);
}

/* ---------- 底部 CTA ---------- */
.page-home .home-cta {
  position: relative;
  background: var(--c-primary);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), 0 100%);
  padding: 2.25rem 1.5rem;
  overflow: hidden;
}

.page-home .home-cta__title {
  color: var(--c-light);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  margin: 0 0 .5rem;
}

.page-home .home-cta p {
  color: var(--c-muted);
  max-width: 56ch;
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

.page-home .home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.page-home .home-cta .btn--ghost {
  border-color: rgba(245, 247, 250, .5);
}

.page-home .home-cta__orb {
  position: absolute;
  right: -30px;
  top: -30px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--c-accent-soft), var(--c-accent));
  opacity: .25;
}

/* ---------- 响应式增强 ---------- */
@media (min-width: 768px) {
  .page-home .home-hero {
    padding: 2.5rem 0 5rem;
  }

  .page-home .home-hero__inner {
    grid-template-columns: 1.08fr .92fr;
    gap: 3rem;
  }

  .page-home .home-section {
    padding: 4.5rem 0;
  }

  .page-home .section-head {
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .page-home .standings-grid {
    grid-template-columns: 1.15fr .85fr;
  }

  .page-home .v3-grid {
    grid-template-columns: 1.1fr .9fr;
  }

  .page-home .register-grid {
    grid-template-columns: 1.35fr .65fr;
  }

  .page-home .reg-compare {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .live-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .sport-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .journal-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .stat-panel {
    padding: 1.75rem;
  }

  .page-home .home-cta {
    padding: 2.75rem 2rem;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero__title {
    font-size: clamp(4rem, 6vw, 6rem);
  }

  .page-home .change-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (hover: hover) and (min-width: 768px) {
  .page-home .stat-row:hover .matchup-tip {
    display: block;
  }
}
