/* =========================================================
   首页专属 —— 浩瀚体育平台 · 主队追踪中心
   移动端优先，桌面端增强
   ========================================================= */
.page-home {
  --home-accent: rgba(57,255,20,.55);
  --home-warm: rgba(255,107,53,.5);
  --home-line: rgba(232,237,242,.15);
  --home-slice: linear-gradient(120deg, transparent 18%, rgba(57,255,20,.08) 18% 30%, transparent 30%, transparent 64%, rgba(255,107,53,.06) 64% 78%, transparent 78%);
  background: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
}

/* ---------- 页面内通用 ---------- */
.page-home .home-section-head {
  margin-bottom: 30px;
  max-width: 760px;
}
.page-home .home-section-title {
  margin: 10px 0 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  transform: skewX(-4deg);
  transform-origin: left center;
}
.page-home .home-section-desc {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 58ch;
}
.page-home .home-section-head--row {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: none;
}
.page-home .home-section-head-copy {
  max-width: 760px;
}

/* ---------- 顶部目录区 ---------- */
.page-home .home-index {
  position: relative;
  padding-top: clamp(108px, 15vw, 160px);
  padding-bottom: clamp(40px, 7vw, 76px);
}
.page-home .home-index::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--home-slice);
  pointer-events: none;
}
.page-home .home-index-inner {
  position: relative;
  display: grid;
  gap: 30px;
}
.page-home .home-title {
  margin: 14px 0 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -.03em;
  transform: skewX(-4deg);
  transform-origin: left center;
  text-wrap: balance;
}
.page-home .home-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 6px;
  margin-top: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--orange));
}
.page-home .home-lead {
  margin: 0;
  max-width: 62ch;
  color: var(--text-dim);
  font-size: 1.02rem;
  line-height: 1.8;
}
.page-home .home-toc {
  background: rgba(10,17,32,.68);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  padding: 20px 22px;
}
.page-home .home-toc-heading {
  margin: 0 0 10px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--green);
}
.page-home .home-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.page-home .home-toc-item + .home-toc-item {
  border-top: 1px solid var(--home-line);
}
.page-home .home-toc-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 4px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  transition: color .2s ease, padding-left .2s ease;
}
.page-home .home-toc-link:hover {
  color: var(--green);
  padding-left: 12px;
}
.page-home .home-toc-link:focus-visible {
  color: var(--green);
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}
.page-home .home-toc-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .82rem;
  color: var(--orange);
}

/* ---------- 主队追踪中心实时看板 ---------- */
.page-home .home-board {
  position: relative;
  border-top: 2px solid var(--border);
  background: linear-gradient(135deg, rgba(30,51,71,.55), rgba(10,17,32,.95)), var(--bg-deep);
}
.page-home .home-board::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent 42%, rgba(57,255,20,.06) 42% 50%, transparent 50%);
  pointer-events: none;
}
.page-home .home-board .container {
  position: relative;
  z-index: 1;
}
.page-home .board-bento {
  display: grid;
  gap: 20px;
}

/* 看板主舞台 */
.page-home .board-stage {
  position: relative;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-deep);
  box-shadow: var(--shadow-hard);
  padding: 14px;
  overflow: hidden;
}
.page-home .board-stage-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.page-home .board-rate {
  font-size: .82rem;
  color: var(--green);
}
.page-home .board-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .5;
  pointer-events: none;
  transition: opacity .3s ease;
}
.page-home .board-stage:hover .board-svg,
.page-home .board-stage:focus-within .board-svg {
  opacity: .8;
}
.page-home .board-visual-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(232,237,242,.2);
  border-radius: calc(var(--radius) - 4px);
  box-shadow: 0 0 32px rgba(57,255,20,.12);
  transition: filter .3s ease, box-shadow .3s ease;
}
.page-home .board-stage:hover .board-visual-img,
.page-home .board-stage:focus-within .board-visual-img {
  filter: brightness(1.08);
  box-shadow: 0 0 42px rgba(57,255,20,.2);
}
.page-home .board-legend {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 14px;
}
.page-home .board-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
  color: var(--text-dim);
}
.page-home .board-legend-item::before {
  content: "";
  width: 14px;
  height: 4px;
  border-radius: 999px;
  background: var(--green);
}
.page-home .board-legend-item--green::before {
  background: var(--green);
}
.page-home .board-legend-item--orange::before {
  background: var(--orange);
}
.page-home .board-legend-item--neutral::before {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--text-dim);
}

/* 看板侧边卡片 */
.page-home .board-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(30,51,71,.92), rgba(10,17,32,.96));
  box-shadow: var(--shadow-hard);
  padding: 22px 20px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.page-home .board-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--orange));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s ease;
}
.page-home .board-card:hover,
.page-home .board-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(57,255,20,.55);
  box-shadow: var(--shadow-green);
}
.page-home .board-card:hover::after,
.page-home .board-card:focus-within::after {
  transform: scaleX(1);
}
.page-home .board-card-label {
  margin: 0 0 10px;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--orange);
}
.page-home .board-card-text {
  flex: 1 0 auto;
  margin: 0 0 14px;
  font-size: .92rem;
  line-height: 1.65;
  color: var(--text-dim);
}
.page-home .board-card-foot {
  margin: 0;
}
.page-home .board-card-stat {
  margin: 0;
}

/* ---------- 本次更新亮点 ---------- */
.page-home .home-updates {
  border-top: 1px solid var(--home-line);
}
.page-home .updates-grid {
  display: grid;
  gap: 20px;
}
.page-home .update-card {
  display: flex;
  flex-direction: column;
  position: relative;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10,17,32,.66);
  padding: 24px 20px 20px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.page-home .update-card--orange {
  border-top: 5px solid var(--orange);
}
.page-home .update-card:not(.update-card--orange) {
  border-top: 5px solid var(--green);
}
.page-home .update-card:hover,
.page-home .update-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(57,255,20,.5);
  box-shadow: var(--shadow-hard);
}
.page-home .update-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  color: rgba(232,237,242,.16);
}
.page-home .update-card--orange .update-num {
  color: rgba(255,107,53,.42);
}
.page-home .update-title {
  margin: 16px 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.35;
  min-height: 2.8em;
}
.page-home .update-text {
  flex: 1 0 auto;
  margin: 0 0 16px;
  font-size: .92rem;
  line-height: 1.7;
  color: var(--text-dim);
}
.page-home .update-data {
  margin: 0;
}
.page-home .updates-figure {
  margin: 28px 0 0;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hard);
}
.page-home .updates-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- 赛事日历快速预览 ---------- */
.page-home .home-calendar {
  position: relative;
  overflow: hidden;
  border-top: 2px solid var(--border);
}
.page-home .home-calendar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10,17,32,.88), rgba(10,17,32,.52) 50%, rgba(10,17,32,.9));
  pointer-events: none;
}
.page-home .calendar-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-home .calendar-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .26;
}
.page-home .home-calendar .container {
  position: relative;
  z-index: 2;
}
.page-home .calendar-timeline {
  display: grid;
  gap: 20px;
}
.page-home .cal-item {
  position: relative;
  border: 2px solid rgba(232,237,242,.22);
  border-radius: var(--radius);
  background: rgba(10,17,32,.78);
  box-shadow: var(--shadow-hard);
  padding: 22px 20px 20px 46px;
  backdrop-filter: blur(4px);
}
.page-home .cal-item::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 24px;
  bottom: 24px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--green), var(--orange));
}
.page-home .cal-day {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  transform: skewX(-5deg);
  transform-origin: left center;
  color: var(--green);
}
.page-home .cal-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}
.page-home .cal-text {
  margin: 0 0 12px;
  font-size: .92rem;
  line-height: 1.65;
  color: var(--text-dim);
}
.page-home .cal-tags {
  margin: 0;
}

/* ---------- 下载与帮助入口 ---------- */
.page-home .home-download {
  border-top: 1px solid var(--home-line);
}
.page-home .download-bento {
  display: grid;
  gap: 20px;
}
.page-home .dl-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(30,51,71,.95), rgba(10,17,32,.98));
  box-shadow: var(--shadow-hard);
  padding: 26px 22px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.page-home .dl-card:hover,
.page-home .dl-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-green);
}
.page-home .dl-card-label {
  margin: 0 0 8px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--green);
}
.page-home .dl-card--app .dl-card-label {
  color: var(--orange);
}
.page-home .dl-card-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  transform: skewX(-4deg);
  transform-origin: left center;
}
.page-home .dl-card-text {
  margin: 0 0 16px;
  font-size: .94rem;
  line-height: 1.7;
  color: var(--text-dim);
}
.page-home .dl-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.page-home .dl-list li {
  position: relative;
  padding-left: 24px;
  font-size: .92rem;
}
.page-home .dl-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--green);
}
.page-home .dl-card--app .dl-list li::before {
  background: var(--orange);
}
.page-home .dl-figure {
  margin: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hard);
}
.page-home .dl-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- 信任条与联系入口 ---------- */
.page-home .home-trust {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 34px 0 44px;
  border-top: 2px solid var(--border);
}
.page-home .home-trust-text {
  margin: 0;
  max-width: 70ch;
  color: var(--text-dim);
  line-height: 1.75;
}
.page-home .home-trust-text strong {
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 1.05em;
}
.page-home .home-trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

/* ---------- 键盘焦点 ---------- */
.page-home a:focus-visible,
.page-home button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

/* ---------- 中屏增强 ---------- */
@media (min-width: 680px) {
  .page-home .home-index-inner {
    grid-template-columns: 1.2fr .9fr;
    align-items: start;
    gap: 40px;
  }
  .page-home .home-toc {
    margin-top: 6px;
  }
  .page-home .home-section-head--row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
  }
  .page-home .updates-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-home .update-card:last-child {
    grid-column: 1 / -1;
  }
  .page-home .calendar-timeline {
    grid-template-columns: 1fr 1fr;
  }
  .page-home .cal-item:last-child {
    grid-column: 1 / -1;
  }
  .page-home .download-bento {
    grid-template-columns: 1fr 1fr;
  }
  .page-home .dl-figure {
    grid-column: 1 / -1;
  }
  .page-home .home-trust {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
  }
}

/* ---------- 大屏 Bento ---------- */
@media (min-width: 980px) {
  .page-home .home-board::after {
    content: "";
    position: absolute;
    top: 12%;
    right: -6%;
    width: 34%;
    height: 56%;
    background: radial-gradient(circle at 70% 30%, rgba(57,255,20,.14), transparent 60%);
    border: 2px solid rgba(57,255,20,.12);
    transform: rotate(-12deg);
    pointer-events: none;
  }
  .page-home .board-bento {
    grid-template-columns: 1.65fr 1fr;
    grid-template-areas:
      "stage injury"
      "stage points"
      "stage update";
    gap: 24px;
  }
  .page-home .board-stage {
    grid-area: stage;
  }
  .page-home .board-card--injury {
    grid-area: injury;
  }
  .page-home .board-card--points {
    grid-area: points;
  }
  .page-home .board-card--update {
    grid-area: update;
  }
  .page-home .updates-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-home .update-card:last-child {
    grid-column: auto;
  }
  .page-home .updates-figure {
    width: min(560px, 62%);
    margin-top: 32px;
  }
  .page-home .calendar-timeline {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-home .cal-item:last-child {
    grid-column: auto;
  }
  .page-home .download-bento {
    grid-template-columns: 1fr .95fr;
    grid-template-areas:
      "app help"
      "figure help";
    gap: 24px;
  }
  .page-home .dl-card--app {
    grid-area: app;
  }
  .page-home .dl-card--help {
    grid-area: help;
  }
  .page-home .dl-figure {
    grid-area: figure;
  }
}
