.page-home {
  --home-gutter: 20px;
  --home-gutter-lg: 32px;
  position: relative;
  background: var(--bg-main);
  color: var(--ink);
  overflow-x: hidden;
}

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

.page-home .section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.page-home .section-head h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.page-home .section-desc {
  margin: 0;
  max-width: 640px;
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.7;
}

.page-home .btn-sm {
  align-self: flex-start;
  margin-top: 6px;
}

/* ---------- 首屏章节预览 ---------- */
.page-home .hero-section {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 28px;
  padding: 32px var(--home-gutter) 64px;
}

.page-home .hero-rail {
  display: none;
}

.page-home .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--green);
}

.page-home .hero-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--green);
}

.page-home .page-title {
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-size: clamp(42px, 9vw, 88px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.page-home .lead {
  max-width: 560px;
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-dim);
}

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

.page-home .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.page-home .hero-stats div {
  display: flex;
  flex-direction: column;
}

.page-home .hero-stats dt {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  color: var(--green);
  line-height: 1.1;
}

.page-home .hero-stats dd {
  margin: 0;
  font-size: 12px;
  color: var(--ink-faint);
}

.page-home .hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  color: var(--ink-dim);
  font-size: 13px;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.page-home .hero-scroll::after {
  content: "↓";
  font-family: var(--font-mono);
  color: var(--orange);
}

.page-home .hero-scroll:hover,
.page-home .hero-scroll:focus-visible {
  color: var(--green);
}

.page-home .hero-figure {
  margin: 0;
  position: relative;
}

.page-home .hero-figure img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: 0 28px 56px -20px var(--shadow);
}

.page-home .hero-figure figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
  text-align: right;
}

@media (min-width: 960px) {
  .page-home .hero-section {
    grid-template-columns: 72px minmax(0, 1fr) minmax(320px, 420px);
    gap: 40px;
    min-height: calc(100vh - var(--header-h));
    padding: 40px var(--home-gutter-lg) 80px;
    max-width: var(--container);
    margin: 0 auto;
  }

  .page-home .hero-rail {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-left: 14px;
    border-left: 1px solid var(--line);
  }

  .page-home .rail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--ink-faint);
    white-space: nowrap;
  }

  .page-home .rail-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--green);
  }

  .page-home .hero-kicker {
    margin-bottom: 24px;
  }

  .page-home .lead {
    font-size: 16px;
    margin-bottom: 36px;
  }

  .page-home .hero-figure img {
    transform: rotate(1deg);
  }
}

/* ---------- 赛事日历概览 ---------- */
.page-home .calendar-section {
  position: relative;
  padding: 64px var(--home-gutter);
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-main) 100%);
}

.page-home .calendar-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent 70%);
}

.page-home .calendar-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.page-home .cal-card {
  position: relative;
  flex: 0 0 220px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-home .cal-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 18px 18px 0;
  border-color: transparent var(--bg-main) transparent transparent;
}

.page-home .cal-card.is-focus {
  border-color: rgba(61, 220, 106, 0.4);
}

.page-home .cal-card:hover,
.page-home .cal-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 32px -16px var(--shadow);
}

.page-home .cal-day {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.page-home .cal-league {
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

.page-home .cal-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.page-home .cal-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.page-home .cal-time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-dim);
}

.page-home .cal-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  margin-top: 2px;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.page-home .cal-link::after {
  content: "→";
  font-family: var(--font-mono);
}

.page-home .calendar-band {
  position: relative;
  margin: 24px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.page-home .calendar-band img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.72) brightness(0.7);
}

.page-home .calendar-band figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 10px;
  background: rgba(6, 19, 29, 0.72);
  border-left: 2px solid var(--green);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 0.06em;
}

@media (min-width: 720px) {
  .page-home .calendar-band img {
    height: 240px;
  }
}

/* ---------- 如何开始 ---------- */
.page-home .start-section {
  padding: 64px var(--home-gutter);
}

.page-home .steps-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.page-home .step-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 24px 20px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .step-item:hover,
.page-home .step-item:focus-within {
  border-color: var(--line-strong);
}

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

.page-home .step-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.page-home .step-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-dim);
}

.page-home .start-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

@media (min-width: 820px) {
  .page-home .steps-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .page-home .step-item {
    grid-template-columns: 1fr;
    align-content: start;
    padding: 28px 24px;
  }

  .page-home .step-num {
    margin-bottom: 12px;
  }

  .page-home .step-item:nth-child(2) {
    transform: translateY(14px);
  }

  .page-home .step-item:nth-child(3) {
    transform: translateY(28px);
  }

  .page-home .start-cta {
    justify-content: center;
    margin-top: 40px;
  }
}

/* ---------- 客户端入口 ---------- */
.page-home .client-section {
  padding: 64px var(--home-gutter);
  background: var(--bg-deep);
}

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

.page-home .client-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 20px;
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-home .client-card:hover,
.page-home .client-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 32px -16px var(--shadow);
}

.page-home .client-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}

.page-home .client-card p {
  flex: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-dim);
}

.page-home .client-figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.page-home .client-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-home .client-figure figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 10px;
  background: rgba(6, 19, 29, 0.72);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 0.06em;
}

@media (min-width: 820px) {
  .page-home .client-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .page-home .client-figure {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---------- 近期热门集锦 ---------- */
.page-home .hot-section {
  padding: 64px var(--home-gutter);
}

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

.page-home .hot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-home .hot-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.page-home .hot-card:hover,
.page-home .hot-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 32px -16px var(--shadow);
}

.page-home .hot-card:hover::after,
.page-home .hot-card:focus-within::after {
  transform: scaleX(1);
}

.page-home .hot-card-main,
.page-home .hot-card:nth-child(4) {
  grid-column: span 2;
}

.page-home .hot-card-main img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.page-home .hot-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex: 1;
  padding: 16px 16px 18px;
}

.page-home .hot-league {
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}

.page-home .hot-body h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.page-home .hot-card .data-num {
  margin-top: auto;
  padding-top: 10px;
  font-size: 15px;
}

.page-home .hot-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-home .hot-btn:hover,
.page-home .hot-btn:focus-visible {
  background: var(--green);
  border-color: var(--green);
  color: var(--bg-deep);
}

@media (hover: hover) {
  .page-home .hot-btn {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  }

  .page-home .hot-card:hover .hot-btn,
  .page-home .hot-card:focus-within .hot-btn {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 700px) {
  .page-home .hot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .page-home .hot-card-main {
    grid-column: span 2;
    grid-row: span 2;
  }

  .page-home .hot-card-main img {
    flex: 1;
    min-height: 0;
    object-fit: cover;
  }
}

/* ---------- 订阅状态仪表板 ---------- */
.page-home .dash-section {
  padding: 64px var(--home-gutter);
  background: linear-gradient(180deg, var(--bg-main), var(--bg-deep) 130%);
}

.page-home .dash-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px 20px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px -24px var(--shadow);
  overflow: hidden;
}

.page-home .dash-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--orange));
}

.page-home .dash-alert {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: rgba(253, 176, 34, 0.06);
  border: 1px solid rgba(253, 176, 34, 0.18);
  border-radius: var(--radius);
}

.page-home .dash-alert p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-dim);
}

.page-home .dash-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .dash-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  background: var(--bg-panel-2);
  border-left: 2px solid var(--line-strong);
  border-radius: var(--radius);
}

.page-home .dash-label {
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}

.page-home .dash-num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--green);
  line-height: 1.2;
}

.page-home .dash-sub {
  font-size: 12px;
  color: var(--ink-dim);
}

@media (min-width: 760px) {
  .page-home .dash-panel {
    grid-template-columns: 320px 1fr;
    align-items: stretch;
    padding: 28px;
  }

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

@media (min-width: 1000px) {
  .page-home .dash-panel {
    max-width: 1080px;
    margin: 0 auto;
  }
}
