.page-home {
  --home-navy: #0A1F44;
  --home-lime: #39FF14;
  --home-orange: #FF4500;
  --home-red: #D84A2E;
  --home-cream: #F5F3EC;
  --home-ink: #1B1917;
  --home-muted: #7A7066;
  --home-line: #D0C7B5;
  --home-bone: #E7DFD3;
  --home-dark: #2C2925;
  --home-highlight: #F7C548;
  --home-steel: #355C7D;
  --home-mono: var(--font-mono);
  --home-head: var(--font-head);

  background: var(--home-cream);
  color: var(--home-ink);
  overflow-x: hidden;
}

.page-home [id] {
  scroll-margin-top: 120px;
}

.page-home .section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-family: var(--home-head);
  font-weight: 900;
  font-size: 24px;
  line-height: 1.2;
}

.page-home .section-title__idx {
  font-family: var(--home-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--home-red);
  border: 2px solid currentColor;
  padding: 2px 7px;
  line-height: 1.2;
}

.page-home .section-title__note {
  font-family: var(--home-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--home-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: auto;
}

/* ========== HERO ========== */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  background: var(--home-navy);
  color: #fff;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 38px), 0 100%);
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.page-home .home-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(10, 31, 68, 0.93) 15%, rgba(10, 31, 68, 0.6) 55%, rgba(10, 31, 68, 0.72) 100%);
}

.page-home .home-hero__track {
  position: absolute;
  left: 0;
  bottom: 24px;
  width: 100%;
  height: 120px;
  z-index: 0;
  fill: none;
  stroke: rgba(245, 243, 236, 0.3);
  stroke-width: 2;
  pointer-events: none;
}

.page-home .home-hero__inner {
  display: grid;
  gap: 28px;
  padding-top: 48px;
  padding-bottom: 88px;
  position: relative;
  z-index: 1;
}

.page-home .home-hero .breadcrumbs {
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  margin-bottom: 10px;
}

.page-home .home-hero .breadcrumbs a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.page-home .home-hero .breadcrumbs a:hover {
  color: #fff;
}

.page-home .home-hero__kicker {
  font-family: var(--home-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--home-highlight);
  margin: 0 0 8px;
}

.page-home .home-hero__title {
  margin: 0;
  font-family: var(--home-head);
  font-weight: 900;
  font-size: clamp(34px, 7vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
}

.page-home .home-hero__lead {
  margin: 18px 0 0;
  max-width: 58ch;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.8);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.page-home .home-hero__cta {
  position: relative;
}

.page-home .home-hero .btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.page-home .home-hero__cta[data-quick-link]::after {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 12px;
  white-space: nowrap;
  font-family: var(--home-mono);
  font-size: 12px;
  color: var(--home-cream);
  background: var(--home-ink);
  border: 1px solid var(--home-line);
  padding: 6px 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 6;
}

.page-home .home-hero__cta[data-quick-link]:hover::after,
.page-home .home-hero__cta[data-quick-link]:focus::after {
  content: "主队 58% · 客队 42%";
  opacity: 1;
}

.page-home .home-hero__panel {
  background: var(--home-cream);
  color: var(--home-ink);
  padding: 20px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  box-shadow: 12px 12px 0 rgba(245, 243, 236, 0.12);
}

.page-home .panel-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--home-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--home-muted);
  border-bottom: 1px solid var(--home-line);
  padding-bottom: 12px;
}

.page-home .panel-topline__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--home-highlight);
  animation: homePulse 1.4s infinite;
}

.page-home .panel-topline__live {
  margin-left: auto;
  color: var(--home-red);
  font-weight: 700;
}

.page-home .panel-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 12px;
  margin: 16px 0;
}

.page-home .panel-stat {
  border-bottom: 1px dashed var(--home-line);
  padding-block: 10px;
}

.page-home .panel-stat dt {
  font-size: 12px;
  color: var(--home-muted);
}

.page-home .panel-stat dd {
  margin: 4px 0 0;
  font-family: var(--home-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--home-navy);
}

.page-home .panel-foot {
  font-family: var(--home-mono);
  font-size: 12px;
  color: var(--home-muted);
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--home-line);
}

@keyframes homePulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(247, 197, 72, 0.5);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 6px rgba(247, 197, 72, 0);
  }
}

/* ========== QUICK ACCESS / DISTRIBUTION ========== */
.page-home .home-quick {
  padding-block: 64px 52px;
  position: relative;
}

.page-home .home-quick::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 4px;
  background: linear-gradient(90deg, var(--home-red), var(--home-orange));
}

.page-home .home-quick__grid {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}

.page-home .home-quick__frame {
  position: relative;
  border: 1px solid var(--home-line);
  background: var(--home-bone);
  padding: 12px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

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

.page-home .home-quick__frame::after {
  content: "DISTRIBUTION";
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--home-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--home-red);
  background: rgba(255, 255, 255, 0.88);
  padding: 4px 8px;
}

.page-home .home-quick__title {
  margin: 0 0 12px;
  font-family: var(--home-head);
  font-weight: 900;
  font-size: 28px;
  line-height: 1.2;
}

.page-home .home-quick__lead {
  font-size: 16px;
  line-height: 1.85;
  max-width: 54ch;
  margin: 0;
  color: var(--home-muted);
}

.page-home .home-quick__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.page-home .home-quick__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--home-ink);
  color: var(--home-cream);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: background 0.2s;
}

.page-home .home-quick__link:hover,
.page-home .home-quick__link:focus {
  background: var(--home-red);
  outline: none;
}

/* ========== CATEGORIES ========== */
.page-home .home-cats {
  padding-block: 48px 20px;
  background: var(--home-bone);
  scroll-margin-top: 100px;
}

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

.page-home .home-cats__intro {
  max-width: 66ch;
  color: var(--home-muted);
  margin: 14px 0 28px;
  line-height: 1.8;
}

.page-home .home-cats__slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 12px clamp(20px, 4vw, 48px) 32px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--home-red) transparent;
  scrollbar-width: thin;
  cursor: grab;
}

.page-home .cat-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px 12px 16px;
  background: var(--home-cream);
  border: 1px solid var(--home-line);
  font-family: var(--home-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--home-ink);
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.page-home .cat-chip__idx {
  font-family: var(--home-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--home-red);
}

.page-home .cat-chip:hover,
.page-home .cat-chip:focus {
  background: var(--home-ink);
  border-color: var(--home-ink);
  color: #fff;
  outline: none;
}

.page-home .cat-chip:hover .cat-chip__idx,
.page-home .cat-chip:focus .cat-chip__idx {
  color: var(--home-highlight);
}

/* ========== LIVE REPORTS ========== */
.page-home .home-live {
  position: relative;
  padding-block: 64px 56px;
  scroll-margin-top: 100px;
}

.page-home .home-live::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--home-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-line) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.35;
  pointer-events: none;
}

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

.page-home .home-live__grid {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}

.page-home .home-live__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 3px solid var(--home-ink);
}

.page-home .live-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--home-line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px 12px;
  transition: background 0.2s;
}

.page-home .live-item__tag {
  font-family: var(--home-mono);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--home-steel);
  padding: 4px 8px;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

.page-home .live-item__teams {
  font-family: var(--home-mono);
  font-weight: 700;
  font-size: 17px;
  color: var(--home-ink);
}

.page-home .live-item__status {
  font-family: var(--home-mono);
  font-size: 12px;
  color: var(--home-muted);
  border: 1px solid var(--home-line);
  padding: 3px 6px;
}

.page-home .live-item__desc {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.6;
}

.page-home .live-item:hover {
  background: rgba(231, 223, 211, 0.5);
}

.page-home .home-schedule {
  background: #fff;
  border: 1px solid var(--home-line);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  padding: 18px;
  box-shadow: 8px 8px 0 rgba(28, 25, 23, 0.06);
}

.page-home .home-schedule__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-family: var(--home-head);
  font-weight: 700;
  font-size: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--home-line);
}

.page-home .home-schedule__more {
  font-family: var(--home-mono);
  font-size: 13px;
  color: var(--home-red);
  text-decoration: none;
}

.page-home .home-schedule__more:hover {
  text-decoration: underline;
}

.page-home .home-schedule__scroll {
  overflow-x: auto;
}

.page-home .home-schedule__table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--home-mono);
  font-size: 13px;
  min-width: 320px;
}

.page-home .home-schedule__table th {
  text-align: left;
  padding: 10px 6px;
  font-size: 12px;
  color: var(--home-muted);
  border-bottom: 1px solid var(--home-line);
  white-space: nowrap;
}

.page-home .home-schedule__table td {
  padding: 10px 6px;
  border-bottom: 1px dotted var(--home-line);
  white-space: nowrap;
}

.page-home .home-schedule__table tr:last-child td {
  border-bottom: 0;
}

.page-home .home-schedule__table tr:hover td {
  background: rgba(247, 197, 72, 0.2);
}

.page-home .home-live__preview {
  margin-top: 24px;
}

.page-home .home-live__phone {
  max-width: 250px;
  margin: 0 auto;
  border: 1px solid var(--home-line);
  padding: 10px;
  background: var(--home-bone);
  transform: rotate(-1.5deg);
  box-shadow: 10px 10px 0 rgba(28, 25, 23, 0.08);
}

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

.page-home .home-live__note {
  text-align: center;
  font-size: 13px;
  color: var(--home-muted);
  margin: 14px auto 0;
  max-width: 32ch;
  line-height: 1.6;
}

/* ========== LOYAL CUSTOMER ========== */
.page-home .home-loyal {
  background: var(--home-dark);
  color: var(--home-cream);
  padding-block: 64px;
  position: relative;
  overflow: hidden;
}

.page-home .home-loyal::before {
  content: "VETERAN";
  position: absolute;
  right: -20px;
  top: 8px;
  font-family: var(--home-mono);
  font-size: 76px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.04);
  letter-spacing: 0.05em;
  white-space: nowrap;
  line-height: 1;
}

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

.page-home .home-loyal .section-title {
  color: var(--home-cream);
}

.page-home .home-loyal .section-title__note {
  color: rgba(255, 255, 255, 0.55);
}

.page-home .home-loyal__grid {
  display: grid;
  gap: 32px;
  margin-top: 30px;
}

.page-home .home-loyal__lead {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 14px;
}

.page-home .home-loyal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-home .home-loyal .btn {
  background: var(--home-red);
  border-color: var(--home-red);
  color: #fff;
}

.page-home .home-loyal .btn--ghost {
  background: transparent;
  color: var(--home-cream);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.page-home .home-loyal .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ========== SITEMAP ========== */
.page-home .home-sitemap {
  padding-block: 64px 48px;
  background: var(--home-bone);
}

.page-home .home-sitemap__list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-home .home-sitemap__list a {
  display: block;
  background: var(--home-cream);
  border: 1px solid var(--home-line);
  color: var(--home-ink);
  padding: 18px;
  text-decoration: none;
  font-family: var(--home-head);
  font-weight: 700;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background 0.2s, color 0.2s;
}

.page-home .home-sitemap__list span {
  display: block;
  font-family: var(--home-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--home-muted);
  margin-top: 4px;
}

.page-home .home-sitemap__list a:hover,
.page-home .home-sitemap__list a:focus {
  background: var(--home-ink);
  color: var(--home-cream);
  outline: none;
}

.page-home .home-sitemap__list a:hover span,
.page-home .home-sitemap__list a:focus span {
  color: rgba(255, 255, 255, 0.65);
}

/* ========== WAVE ========== */
.page-home .home-wave {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: var(--home-bone);
}

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

/* ========== TABLET ========== */
@media (min-width: 640px) {
  .page-home .home-sitemap__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .home-live__preview {
    display: grid;
    grid-template-columns: 250px 1fr;
    align-items: center;
    gap: 24px;
  }

  .page-home .home-live__note {
    margin: 0;
    text-align: left;
  }
}

/* ========== DESKTOP ========== */
@media (min-width: 900px) {
  .page-home [id] {
    scroll-margin-top: 140px;
  }

  .page-home .section-title {
    font-size: 32px;
  }

  .page-home .home-hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 48px;
    padding-top: 72px;
    padding-bottom: 112px;
  }

  .page-home .home-hero__actions {
    margin-top: 34px;
  }

  .page-home .home-quick__grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 44px;
    margin-top: 32px;
  }

  .page-home .home-cats__slider {
    padding-inline: max(48px, calc((100vw - 1200px) / 2 + 48px));
  }

  .page-home .home-live__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 44px;
    margin-top: 32px;
  }

  .page-home .home-live__preview {
    display: block;
  }

  .page-home .home-live__phone {
    margin: 28px auto 0;
  }

  .page-home .home-live__note {
    margin: 16px auto 0;
    text-align: center;
  }

  .page-home .home-loyal__grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 44px;
  }

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

@media (min-width: 1280px) {
  .page-home .home-cats__slider {
    padding-bottom: 40px;
  }
}
