.page-home {
  background: var(--color-bg);
  color: var(--color-paper);
  overflow-x: hidden;
}

.page-home *,
.page-home *::before,
.page-home *::after {
  box-sizing: border-box;
}

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

.page-home a:focus-visible,
.page-home .btn:focus-visible,
.page-home .service-card:focus-visible,
.page-home .team-chip:focus-visible {
  outline: 3px solid var(--color-electric);
  outline-offset: 3px;
}

/* ===== Hero 封面区 ===== */
.page-home .home-hero {
  position: relative;
  padding: 64px 0 120px;
  background: linear-gradient(120deg, var(--color-bg-deep) 0%, var(--color-bg) 55%, rgba(139,92,246,0.16) 100%);
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(244,245,247,0.03) 14px 16px);
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -18%;
  width: 60%;
  height: 90%;
  background: linear-gradient(135deg, rgba(255,77,0,0.55), rgba(45,225,252,0.08));
  transform: skewX(-14deg);
  pointer-events: none;
  z-index: 0;
}

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

.page-home .hero-reel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-signal);
  border: 1px solid rgba(0,255,159,0.45);
  padding: 6px 14px;
  margin-bottom: 28px;
}

.page-home .hero-reel .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-signal);
  display: inline-block;
}

.page-home .hero-copy h1 {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  color: var(--color-paper);
}

.page-home .hero-lead {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(244,245,247,0.8);
  max-width: 540px;
  margin: 0 0 32px;
}

.page-home .hero-index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .hero-index a {
  display: inline-flex;
  align-items: center;
  background: rgba(13,16,23,0.75);
  border: 2px solid var(--color-muted);
  color: var(--color-paper);
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.925rem;
  text-decoration: none;
  transition: border-color .2s, background-color .2s, transform .2s, box-shadow .2s;
}

.page-home .hero-index a:hover,
.page-home .hero-index a:focus-visible {
  border-color: var(--color-flame);
  background: var(--color-flame);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.55);
  transform: translateY(-3px);
}

.page-home .hero-visual {
  position: relative;
  margin-top: 48px;
}

.page-home .hero-frame {
  border: 3px solid var(--color-paper);
  background: var(--color-surface);
  box-shadow: 14px 14px 0 var(--color-flame);
}

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

.page-home .hero-stat {
  position: absolute;
  right: 4px;
  bottom: -24px;
  background: var(--color-electric);
  color: var(--color-ink);
  border: 3px solid var(--color-ink);
  padding: 12px 18px;
  box-shadow: 8px 8px 0 var(--shadow);
  min-width: 150px;
}

.page-home .hero-stat .stat-value {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.page-home .hero-stat .stat-label {
  font-size: 0.8rem;
  font-weight: 600;
}

/* ===== 通用 section ===== */
.page-home .home-section {
  position: relative;
  padding: 72px 0;
  border-bottom: 1px solid var(--color-muted);
  overflow: hidden;
}

.page-home .section-kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-electric);
  margin-bottom: 10px;
}

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

.page-home .section-head h2 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  line-height: 1.18;
  margin: 0 0 16px;
  color: var(--color-paper);
  position: relative;
}

.page-home .section-head h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  background: var(--color-flame);
  margin-top: 10px;
}

.page-home .section-lead {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(244,245,247,0.76);
  margin: 0;
  max-width: 760px;
}

/* ===== 赛前首发 ===== */
.page-home .lineup-board {
  display: grid;
  gap: 28px;
}

.page-home .match-card {
  background: var(--color-surface);
  color: var(--color-ink);
  border: 3px solid var(--color-ink);
  box-shadow: 10px 10px 0 var(--shadow);
  padding: 24px;
  transition: transform .2s, box-shadow .2s;
}

.page-home .match-card:hover,
.page-home .match-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 15px 15px 0 var(--color-flame);
}

.page-home .match-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 20px;
}

.page-home .match-meta .tag {
  background: var(--color-purple);
  color: var(--color-paper);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  letter-spacing: 0.05em;
}

.page-home .match-time {
  font-weight: 600;
}

.page-home .match-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.page-home .team {
  flex: 1;
}

.page-home .team-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}

.page-home .team-formation {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-muted);
}

.page-home .match-score {
  text-align: center;
  padding: 0 4px;
}

.page-home .score-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
}

.page-home .score-note {
  font-size: 0.72rem;
  color: var(--color-muted);
}

.page-home .starting-lineup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 0 0 20px;
  padding: 18px 0 0;
  border-top: 1px dashed var(--color-muted);
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.page-home .starting-lineup li {
  position: relative;
  padding-left: 16px;
}

.page-home .starting-lineup i {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--color-flame);
}

.page-home .card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.page-home .card-foot .btn {
  font-family: var(--font-heading);
  font-weight: 700;
}

.page-home .live-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-ink);
  background: var(--color-signal);
  padding: 4px 10px;
  border: 2px solid var(--color-ink);
}

.page-home .live-label.pending {
  background: transparent;
  color: var(--color-muted);
  border: 2px dashed var(--color-muted);
}

.page-home .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-signal);
  display: inline-block;
}

.page-home .btn-primary {
  background: var(--color-flame);
  color: var(--color-paper);
  border: 2px solid var(--color-ink);
  padding: 10px 16px;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--shadow);
  transition: box-shadow .2s, transform .2s;
}

.page-home .btn-primary:hover {
  box-shadow: 7px 7px 0 var(--color-ink);
  transform: translateY(-2px);
}

.page-home .btn-ghost {
  background: transparent;
  color: var(--color-ink);
  border: 2px solid var(--color-ink);
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color .2s, color .2s;
}

.page-home .btn-ghost:hover {
  background: var(--color-ink);
  color: var(--color-paper);
}

/* ===== 球队库 ===== */
.page-home .home-teams {
  background: linear-gradient(90deg, rgba(139,92,246,0.12) 0%, rgba(26,29,36,0) 60%);
}

.page-home .teams-layout {
  display: grid;
  gap: 36px;
}

.page-home .search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-surface);
  border: 3px solid var(--color-ink);
  box-shadow: 8px 8px 0 var(--shadow);
  padding: 14px 16px;
  color: var(--color-ink);
}

.page-home .search-icon {
  position: relative;
  width: 14px;
  height: 14px;
  border: 3px solid var(--color-ink);
  border-radius: 50%;
  flex-shrink: 0;
}

.page-home .search-icon::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 7px;
  height: 3px;
  background: var(--color-ink);
  transform: rotate(45deg);
}

.page-home .search-placeholder {
  flex: 1;
  font-family: var(--font-body);
  color: var(--color-muted);
  font-size: 1rem;
}

.page-home .search-btn {
  background: var(--color-flame);
  color: var(--color-paper);
  border: 2px solid var(--color-ink);
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 3px 3px 0 var(--shadow);
}

.page-home .hot-teams {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.page-home .team-chip {
  display: inline-block;
  background: var(--color-bg-deep);
  color: var(--color-paper);
  border: 2px solid var(--color-muted);
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color .2s, background-color .2s, color .2s, transform .2s;
}

.page-home .team-chip:hover,
.page-home .team-chip:focus-visible {
  border-color: var(--color-electric);
  background: var(--color-electric);
  color: var(--color-ink);
  transform: translateY(-2px);
}

.page-home .teams-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 26px;
  padding: 18px 20px;
  border-left: 3px solid var(--color-electric);
  background: rgba(45,225,252,0.08);
}

.page-home .teams-stats .stat-value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-electric);
  display: block;
  line-height: 1;
}

.page-home .teams-stats .stat-label {
  font-size: 0.85rem;
  color: rgba(244,245,247,0.75);
}

.page-home .teams-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid var(--color-paper);
  box-shadow: 14px 14px 0 var(--color-purple);
}

/* ===== 战报时间线 ===== */
.page-home .home-reports {
  background: linear-gradient(100deg, rgba(45,225,252,0.1) 0%, rgba(26,29,36,0) 55%);
}

.page-home .reports-layout {
  display: grid;
  gap: 36px;
}

.page-home .report-timeline {
  position: relative;
}

.page-home .report-item {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding-bottom: 26px;
}

.page-home .report-item::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 8px;
  bottom: 0;
  border-left: 3px solid var(--color-electric);
}

.page-home .report-item:last-child::before {
  display: none;
}

.page-home .report-time {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-electric);
  text-align: right;
  padding-top: 6px;
}

.page-home .report-card {
  background: var(--color-surface);
  color: var(--color-ink);
  border: 3px solid var(--color-ink);
  box-shadow: 7px 7px 0 var(--shadow);
  padding: 18px;
  transition: transform .2s, box-shadow .2s;
}

.page-home .report-card:hover,
.page-home .report-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 11px 11px 0 var(--color-flame);
}

.page-home .report-league {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-purple);
  margin-bottom: 6px;
}

.page-home .report-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--color-ink);
}

.page-home .report-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-muted);
  margin: 0 0 12px;
}

.page-home .reports-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid var(--color-ink);
  box-shadow: -12px 12px 0 var(--color-electric);
}

/* ===== 历史数据 ===== */
.page-home .home-history {
  background: linear-gradient(115deg, rgba(255,77,0,0.08) 0%, rgba(26,29,36,0) 45%);
}

.page-home .history-layout {
  display: grid;
  gap: 36px;
}

.page-home .history-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid var(--color-paper);
  box-shadow: 12px 12px 0 var(--color-purple);
}

.page-home .history-example {
  background: var(--color-bg-deep);
  border: 3px solid var(--color-flame);
  box-shadow: 10px 10px 0 var(--shadow);
  padding: 24px;
}

.page-home .example-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px dashed var(--color-muted);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.page-home .example-key {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-electric);
}

.page-home .example-input {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: rgba(45,225,252,0.12);
  border: 1px solid rgba(45,225,252,0.45);
  color: var(--color-paper);
  padding: 5px 12px;
}

.page-home .example-result {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
}

.page-home .result-team,
.page-home .result-opponent {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-paper);
}

.page-home .result-opponent {
  text-align: right;
}

.page-home .result-score {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-flame);
}

.page-home .result-meta {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-muted);
  padding-top: 10px;
  margin-top: 4px;
}

.page-home .history-example p {
  color: rgba(244,245,247,0.78);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 20px;
}

.page-home .btn-secondary {
  background: var(--color-electric);
  color: var(--color-ink);
  border: 2px solid var(--color-ink);
  padding: 10px 18px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  box-shadow: 4px 4px 0 var(--shadow);
  transition: box-shadow .2s, transform .2s;
}

.page-home .btn-secondary:hover {
  box-shadow: 7px 7px 0 var(--color-ink);
  transform: translateY(-2px);
}

/* ===== 旧版网页 ===== */
.page-home .home-legacy {
  background: linear-gradient(100deg, rgba(139,92,246,0.14) 0%, rgba(26,29,36,0) 70%);
}

.page-home .legacy-frame {
  margin-top: 40px;
}

.page-home .legacy-browser {
  background: var(--color-surface);
  color: var(--color-ink);
  border: 3px solid var(--color-ink);
  box-shadow: 12px 12px 0 var(--shadow);
}

.page-home .browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--color-ink);
}

.page-home .browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-muted);
}

.page-home .browser-dot:nth-child(1) {
  background: var(--color-flame);
}

.page-home .browser-dot:nth-child(2) {
  background: var(--color-electric);
}

.page-home .browser-dot:nth-child(3) {
  background: var(--color-signal);
}

.page-home .browser-url {
  margin-left: auto;
  padding: 4px 12px;
  background: var(--color-bg);
  color: var(--color-paper);
  border: 1px solid var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.page-home .legacy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 12px 16px;
  background: var(--color-bg);
  color: var(--color-paper);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 3px solid var(--color-ink);
}

.page-home .legacy-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 12px;
  min-height: 280px;
}

.page-home .legacy-side,
.page-home .legacy-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 2px dashed var(--color-muted);
  color: var(--color-muted);
  font-size: 0.9rem;
  font-family: var(--font-heading);
}

.page-home .legacy-main {
  border-style: solid;
  border-color: var(--color-electric);
  background: rgba(45,225,252,0.06);
  flex-direction: column;
  gap: 12px;
  color: var(--color-ink);
  min-height: 180px;
}

.page-home .legacy-score {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
}

.page-home .legacy-status {
  font-family: var(--font-mono);
  background: var(--color-flame);
  color: var(--color-paper);
  padding: 2px 8px;
}

.page-home .legacy-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--color-bg-deep);
  border-left: 4px solid var(--color-flame);
}

.page-home .legacy-note p {
  margin: 0;
  color: rgba(244,245,247,0.85);
  line-height: 1.6;
  max-width: 580px;
  font-size: 0.95rem;
}

.page-home .legacy-note .btn-ghost {
  color: var(--color-paper);
  border-color: var(--color-paper);
}

.page-home .legacy-note .btn-ghost:hover {
  background: var(--color-paper);
  color: var(--color-ink);
}

/* ===== 服务介绍 ===== */
.page-home .home-service {
  border-bottom: 0;
  background: var(--color-bg-deep);
}

.page-home .home-service::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--color-flame), var(--color-electric), var(--color-purple));
}

.page-home .service-grid {
  display: grid;
  gap: 22px;
}

.page-home .service-card {
  display: block;
  background: var(--color-surface);
  color: var(--color-ink);
  border: 3px solid var(--color-ink);
  box-shadow: 10px 10px 0 var(--shadow);
  padding: 26px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background-color .2s;
}

.page-home .service-card:hover,
.page-home .service-card:focus-visible {
  transform: translate(-4px, -4px);
  box-shadow: 16px 16px 0 var(--color-flame);
  background: var(--color-paper);
}

.page-home .service-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-flame);
}

.page-home .service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin: 8px 0 10px;
}

.page-home .service-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.page-home .link-more {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-flame);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== 响应式 ===== */
@media (min-width: 720px) {
  .page-home .home-hero {
    padding: 80px 0 140px;
  }

  .page-home .hero-copy h1 {
    font-size: 3.5rem;
  }

  .page-home .section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
  }

  .page-home .section-head .section-lead {
    max-width: 560px;
    text-align: right;
  }

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

  .page-home .legacy-content {
    grid-template-columns: 120px 1fr 120px;
  }
}

@media (min-width: 960px) {
  .page-home .hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
    min-height: 560px;
  }

  .page-home .hero-visual {
    margin-top: 0;
  }

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

  .page-home .lineup-board .match-card:nth-child(even) {
    margin-top: 24px;
  }

  .page-home .teams-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
  }

  .page-home .reports-layout {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: start;
  }

  .page-home .history-layout {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }

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

  .page-home .service-card:nth-child(even) {
    margin-top: 28px;
  }
}

@media (min-width: 1200px) {
  .page-home .service-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
