/* ===== 首页作用域 ===== */
.page-home {
  --home-section-space: clamp(60px, 8vw, 96px);
  --home-card-clip: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  overflow-x: clip;
  background: var(--c-bg);
  color: var(--text-main);
}

.page-home img {
  max-width: 100%;
  height: auto;
}

.page-home .container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.page-home .section-head {
  margin-bottom: 32px;
}

.page-home .section-sub {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-orange);
  padding-left: 14px;
  border-left: 4px solid var(--c-orange);
  margin-bottom: 10px;
}

.page-home .section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.3px;
  margin: 0 0 10px;
  color: var(--text-main);
  text-transform: uppercase;
}

.page-home .section-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 560px;
  margin: 0;
}

/* ===== Hero 首屏视觉焦点 ===== */
.page-home .hero-area {
  position: relative;
  padding: 56px 0 72px;
  background: var(--c-bg);
}

.page-home .hero-area::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255, 255, 255, 0.02) 14px 28px),
    radial-gradient(circle at 82% 15%, rgba(255, 94, 24, 0.14) 0%, transparent 46%);
  pointer-events: none;
}

.page-home .hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.page-home .hero-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-orange);
  padding-left: 14px;
  border-left: 4px solid var(--c-orange);
  margin-bottom: 18px;
}

.page-home .hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(46px, 8vw, 76px);
  font-weight: 900;
  line-height: 0.93;
  letter-spacing: -0.8px;
  margin: 0 0 18px;
  color: var(--text-main);
  text-shadow: 4px 4px 0 rgba(255, 94, 24, 0.32);
  text-transform: uppercase;
}

.page-home .hero-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0 0 28px;
  max-width: 460px;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.page-home .hero-note {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  font-family: var(--font-mono);
}

.page-home .hero-panel {
  position: relative;
  min-height: 330px;
  background: var(--c-deep);
  clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 2px solid var(--c-gray);
  overflow: hidden;
}

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

.page-home .score-panel {
  position: relative;
  z-index: 2;
  margin: 18px;
  padding: 18px 16px 14px;
  background: rgba(10, 10, 10, 0.84);
  border-left: 4px solid var(--c-orange);
}

.page-home .score-panel-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.page-home .live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-red);
  flex-shrink: 0;
  animation: page-home-pulse 1.2s ease-in-out infinite;
}

@keyframes page-home-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(232, 48, 42, 0.55);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 7px rgba(232, 48, 42, 0);
  }
}

.page-home .live-text {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--c-red);
  font-weight: 700;
}

.page-home .score-round {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.page-home .score-panel-main {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.page-home .score-team {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  color: var(--text-main);
  white-space: nowrap;
}

.page-home .score-num {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--c-orange);
}

.page-home .score-colon {
  font-family: var(--font-mono);
  font-size: 30px;
  line-height: 1;
  color: var(--text-muted);
}

.page-home .score-panel-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.page-home .score-panel-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  padding-top: 8px;
}

/* ===== 核心功能速览 Bento ===== */
.page-home .feature-bento {
  padding: var(--home-section-space) 0;
  background: var(--c-bg);
}

.page-home .bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home .bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 20px;
  background: var(--c-deep);
  border: 2px solid var(--c-gray);
  clip-path: var(--home-card-clip);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.page-home .bento-card:hover {
  border-color: var(--c-orange);
  transform: translateY(-3px);
}

.page-home .bento-card-primary {
  background:
    linear-gradient(135deg, rgba(255, 94, 24, 0.12) 0%, transparent 45%),
    var(--c-deep);
}

.page-home .bento-card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--c-orange);
  background: rgba(255, 94, 24, 0.1);
  border: 1px solid rgba(255, 94, 24, 0.3);
}

.page-home .bento-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
  color: var(--text-main);
  letter-spacing: 0.2px;
}

.page-home .bento-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-body);
  margin: 0;
}

.page-home .bento-img {
  margin-block: 4px 8px;
  border: 1px solid var(--c-gray);
  background: var(--c-gray);
  overflow: hidden;
}

.page-home .bento-img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.page-home .bento-card:hover .bento-img img {
  transform: scale(1.03);
}

.page-home .bento-img-inline img {
  max-height: 180px;
  object-fit: cover;
}

.page-home .bento-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.page-home .bento-meta .data-number {
  font-size: 26px;
  font-weight: 700;
  color: var(--c-orange);
}

.page-home .bento-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-yellow);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.page-home .bento-link:hover {
  border-bottom-color: var(--c-yellow);
}

/* ===== 近期改版亮点 ===== */
.page-home .updates-timeline {
  padding: var(--home-section-space) 0;
  background:
    radial-gradient(circle at 12% 40%, rgba(255, 94, 24, 0.06), transparent 32%),
    var(--c-bg);
}

.page-home .timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.page-home .timeline-card {
  position: relative;
  padding: 24px 22px 24px 28px;
  background: linear-gradient(135deg, var(--c-deep) 0%, rgba(11, 26, 46, 0.88) 100%);
  border: 2px solid var(--c-gray);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  transition: border-color 0.25s;
}

.page-home .timeline-card:hover {
  border-color: var(--c-orange);
}

.page-home .timeline-card::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--c-orange), transparent);
}

.page-home .timeline-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-yellow);
  background: rgba(255, 212, 0, 0.08);
  border: 1px solid rgba(255, 212, 0, 0.3);
  padding: 4px 10px;
  margin-bottom: 14px;
}

.page-home .timeline-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--text-main);
}

.page-home .timeline-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-body);
  margin: 0;
}

.page-home .timeline-cta {
  text-align: center;
}

/* ===== 赛事专区索引 ===== */
.page-home .race-index {
  padding: var(--home-section-space) 0;
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-deep) 140%);
}

.page-home .tabs {
  margin-bottom: 14px;
}

.page-home .tabs-list {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c-gray);
}

.page-home .tab-btn {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 1px;
  padding: 8px 16px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s, background 0.2s;
}

.page-home .tab-btn:hover {
  color: var(--text-main);
}

.page-home .tab-btn[aria-selected="true"] {
  color: var(--text-main);
}

.page-home .tab-btn[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -11px;
  height: 4px;
  background: var(--c-orange);
}

.page-home .index-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.page-home .index-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
  background: var(--c-gray);
  clip-path: var(--home-card-clip);
  text-decoration: none;
  color: var(--text-main);
  transition: background 0.25s, transform 0.25s;
  overflow: hidden;
}

.page-home .index-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 94, 24, 0.55) 50%, transparent 60%);
  transform: translateX(-110%);
  transition: transform 0.35s ease;
  pointer-events: none;
}

.page-home .index-card:hover::after {
  transform: translateX(110%);
}

.page-home .index-card:hover {
  background: rgba(255, 94, 24, 0.14);
  transform: translateY(-4px);
}

.page-home .index-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--c-orange);
}

.page-home .index-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.page-home .index-count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.page-home .index-note {
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== 订阅提醒核心引导 ===== */
.page-home .subscribe-core {
  padding: var(--home-section-space) 0;
  background: var(--c-bg);
}

.page-home .subscribe-box {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  padding: 40px 24px;
  background:
    radial-gradient(circle at 82% 100%, rgba(255, 94, 24, 0.28), transparent 44%),
    var(--c-deep);
  border: 3px solid var(--c-orange);
}

.page-home .subscribe-box::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 54px;
  height: 54px;
  background: var(--c-orange);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  opacity: 0.5;
}

.page-home .subscribe-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  margin: 0 0 14px;
  color: var(--text-main);
}

.page-home .subscribe-copy p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0;
  max-width: 520px;
}

.page-home .subscribe-action {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.page-home .btn-xl {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 1px;
  padding: 18px 36px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.page-home .subscribe-panel {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  z-index: 20;
  width: min(320px, calc(100vw - 32px));
  background: var(--c-bg);
  border: 2px solid var(--c-orange);
  padding: 20px;
  box-shadow: var(--shadow-hard);
}

.page-home .subscribe-panel[data-open] {
  display: block;
}

.page-home .subscribe-panel-title {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-home .subscribe-panel-copy {
  display: block;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 16px;
}

/* ===== 数据信任带 ===== */
.page-home .data-trust {
  padding: var(--home-section-space) 0;
  background: var(--c-bg);
  border-top: 1px solid var(--c-gray);
}

.page-home .data-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.page-home .data-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 28px 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--c-gray);
  transition: border-color 0.25s;
}

.page-home .data-item:hover {
  border-color: var(--c-orange);
}

.page-home .data-item .data-number-lg {
  font-size: 40px;
  line-height: 1;
  color: var(--c-orange);
}

.page-home .data-label {
  font-size: 14px;
  color: var(--text-muted);
}

.page-home .data-trust-note {
  margin: 26px 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== 响应式增强 ===== */
@media (min-width: 600px) {
  .page-home .index-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .data-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .page-home .hero-inner {
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
  }

  .page-home .hero-panel {
    min-height: 380px;
  }

  .page-home .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .bento-card-lg {
    grid-column: span 2;
    grid-row: span 2;
  }

  .page-home .bento-card-wide {
    grid-column: span 3;
  }

  .page-home .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .page-home .subscribe-box {
    grid-template-columns: 1fr auto;
    padding: 48px 40px;
  }

  .page-home .subscribe-action {
    justify-content: flex-end;
  }

  .page-home .data-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-home .hero-area {
    padding: 84px 0 96px;
  }

  .page-home .hero-copy h1 {
    font-size: 84px;
  }

  .page-home .hero-panel {
    min-height: 440px;
  }

  .page-home .hero-desc {
    font-size: 19px;
  }

  .page-home .score-panel {
    margin: 24px;
    padding: 22px 20px 16px;
  }

  .page-home .index-card-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .page-home .index-card {
    padding: 20px 16px;
  }

  .page-home .timeline-card {
    padding: 28px 26px 28px 32px;
  }

  .page-home .timeline-card h3 {
    font-size: 21px;
  }

  .page-home .data-item .data-number-lg {
    font-size: 52px;
  }
}
