/* ========== 首页（page-home）专属样式 ========== */
.page-home {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.page-home h1,
.page-home h2,
.page-home h3,
.page-home h4 {
  font-family: var(--font-head);
  line-height: 1.22;
  margin: 0 0 0.45em;
}

.page-home h1 {
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: -0.02em;
}

.page-home h2 {
  font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
}

.page-home h3 {
  font-weight: 700;
  font-size: 1.05rem;
}

.page-home h4 {
  font-weight: 700;
  font-size: 1rem;
}

.page-home .container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 18px;
}

.page-home .btn-sm {
  padding: 0.4em 0.9em;
  font-size: 0.82rem;
}

.page-home .link-light {
  color: var(--highlight);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 209, 102, 0.45);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.page-home .link-dark {
  color: var(--cobalt);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(30, 90, 138, 0.3);
  transition: border-color 0.2s ease;
}

.page-home .link-dark:hover,
.page-home .link-light:hover {
  border-bottom-color: currentColor;
}

/* ---- 首屏 · 杂志封面 ---- */
.page-home .home-hero {
  position: relative;
  padding: 36px 0 30px;
  background: linear-gradient(180deg, var(--cream) 0%, #f2ecd9 100%);
}

.page-home .home-hero::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 75%;
  height: 5px;
  background: linear-gradient(90deg, var(--red-orange) 0%, var(--deep-blue) 100%);
}

.page-home .hero-layout {
  display: grid;
  gap: 30px;
}

.page-home .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--red-orange);
}

.page-home .hero-kicker::before {
  content: '';
  width: 34px;
  height: 3px;
  background: var(--red-orange);
}

.page-home .hero-lede {
  font-size: 1.04rem;
  line-height: 1.78;
  color: var(--muted-ink);
  margin-bottom: 20px;
  max-width: 46em;
}

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

.page-home .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.page-home .hero-meta .meta-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--deep-blue);
  border: 1px solid rgba(18, 58, 92, 0.28);
  background: rgba(255, 255, 255, 0.5);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

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

.page-home .hero-figure img {
  width: 100%;
  height: auto;
  border-radius: 24px 8px 24px 8px;
  box-shadow: var(--shadow-lift);
}

.page-home .hero-index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 16px 0 0;
  padding: 6px 12px;
  background: var(--deep-blue);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.page-home .hero-index-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 6px;
  color: var(--cream);
  border-bottom: 1px solid rgba(245, 240, 232, 0.14);
}

.page-home .hero-index-item:nth-last-child(1),
.page-home .hero-index-item:nth-last-child(2) {
  border-bottom: 0;
}

.page-home .hi-order {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--highlight);
  font-weight: 700;
}

.page-home .hi-text {
  font-size: 0.95rem;
  font-weight: 700;
}

/* ---- 焕新版公告 ---- */
.page-home .home-announce {
  padding: 28px 0;
}

.page-home .announce-band {
  background: var(--deep-blue);
  color: var(--cream);
  padding: 30px 22px 26px;
  border-radius: 24px 8px 24px 8px;
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 26px;
}

.page-home .announce-band::after {
  content: 'UPD';
  position: absolute;
  right: -8px;
  top: -8px;
  font-family: var(--font-mono);
  font-size: 5.6rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(245, 240, 232, 0.05);
  transform: rotate(-8deg);
  pointer-events: none;
}

.page-home .announce-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--highlight);
  background: rgba(255, 209, 102, 0.12);
  border: 1px solid rgba(255, 209, 102, 0.5);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.page-home .announce-band h2 {
  color: var(--cream);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.page-home .announce-copy {
  font-size: 0.98rem;
  line-height: 1.78;
  color: rgba(245, 240, 232, 0.88);
  margin-bottom: 14px;
  max-width: 58em;
}

.page-home .announce-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
}

.page-home .stat-cell {
  background: rgba(245, 240, 232, 0.08);
  border-radius: 6px;
  padding: 14px 8px;
  text-align: center;
  border-top: 2px solid var(--red-orange);
}

.page-home .stat-cell dt {
  font-size: 0.76rem;
  color: rgba(245, 240, 232, 0.7);
  margin-bottom: 4px;
}

.page-home .stat-cell dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--highlight);
  line-height: 1.15;
}

/* ---- 通用节标题 ---- */
.page-home .home-schedule,
.page-home .home-standings,
.page-home .home-export,
.page-home .home-calendar {
  padding: 42px 0 24px;
}

.page-home .home-sec-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-top: 22px;
  border-top: 3px solid var(--ink);
}

.page-home .home-sec-head h2 {
  margin: 0;
}

.page-home .home-sec-index {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--red-orange);
  border: 2px solid var(--red-orange);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

/* ---- 本轮赛程与复盘 ---- */
.page-home .schedule-wrap {
  display: grid;
  gap: 30px;
}

.page-home .league-panel {
  background: var(--surface);
  padding: 20px 18px;
  border-radius: 12px;
  border-left: 6px solid var(--red-orange);
}

.page-home .league-panel h3 {
  margin-bottom: 12px;
}

.page-home .league-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.page-home .league-tags .tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(245, 240, 232, 0.92);
  color: var(--deep-blue);
  border: 1px solid rgba(18, 58, 92, 0.2);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.page-home .league-tags .tag-active {
  background: var(--red-orange);
  color: var(--cream);
  border-color: var(--red-orange);
  box-shadow: 0 4px 10px rgba(232, 93, 38, 0.24);
}

.page-home .league-tags .tag:hover {
  transform: translateY(-2px);
}

.page-home .league-note {
  font-size: 0.9rem;
  color: var(--muted-ink);
  margin-bottom: 14px;
}

.page-home .league-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  background: rgba(232, 93, 38, 0.12);
  color: var(--red-orange);
  padding: 8px 10px;
  border-radius: 6px;
}

.page-home .alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-orange);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}

.page-home .schedule-main img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
}

.page-home .review-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px dashed var(--muted-ink);
}

.page-home .review-head h3 {
  margin: 0;
}

.page-home .review-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .review-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(31, 27, 22, 0.1);
}

.page-home .review-list li:last-child {
  border-bottom: 0;
}

.page-home .review-round {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--red-orange);
  border: 1px solid var(--red-orange);
  border-radius: 4px;
  padding: 5px 8px;
  white-space: nowrap;
  height: max-content;
}

.page-home .review-body h4 {
  margin-bottom: 4px;
  line-height: 1.4;
}

.page-home .review-body p {
  font-size: 0.9rem;
  color: var(--muted-ink);
  margin-bottom: 8px;
}

.page-home .review-list li .btn {
  grid-column: 2;
  justify-self: start;
}

/* ---- 积分榜回溯 ---- */
.page-home .standings-grid {
  display: grid;
  gap: 28px;
}

.page-home .standings-panel {
  background: var(--deep-blue);
  color: var(--cream);
  border-radius: 16px 6px 16px 6px;
  padding: 20px 18px;
  box-shadow: 0 8px 24px rgba(18, 58, 92, 0.3);
}

.page-home .standings-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.18);
}

.page-home .data-league {
  font-weight: 700;
}

.page-home .data-badge {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--deep-blue);
  background: var(--highlight);
  padding: 3px 10px;
  border-radius: 999px;
}

.page-home .standings-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.page-home .standings-list li {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(245, 240, 232, 0.12);
}

.page-home .standings-list li:last-child {
  border-bottom: 0;
}

.page-home .pos {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.6);
}

.page-home .club {
  font-weight: 700;
}

.page-home .pt {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--highlight);
}

.page-home .data-note {
  font-size: 0.86rem;
  color: rgba(245, 240, 232, 0.75);
  margin-bottom: 14px;
}

.page-home .standings-chart img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin-bottom: 14px;
}

.page-home .season-switch {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.page-home .season-btn {
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid var(--deep-blue);
  color: var(--deep-blue);
  border-radius: 999px;
  padding: 5px 14px;
  background: transparent;
  cursor: default;
}

.page-home .season-active {
  background: var(--deep-blue);
  color: var(--cream);
}

.page-home .season-note {
  font-size: 0.88rem;
  color: var(--muted-ink);
}

/* ---- 数据导出功能 ---- */
.page-home .export-grid {
  display: grid;
  gap: 26px;
}

.page-home .export-intro {
  font-size: 1rem;
  color: var(--muted-ink);
  margin-bottom: 20px;
}

.page-home .export-steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.page-home .export-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(31, 27, 22, 0.16);
}

.page-home .step-num {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red-orange);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 4px 50% 4px 50%;
}

.page-home .export-figure img {
  width: 100%;
  height: auto;
  border-radius: 16px 6px 16px 6px;
}

.page-home .export-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted-ink);
  background: var(--surface);
  padding: 12px 14px;
  border-radius: 8px;
  border-left: 4px solid var(--deep-blue);
}

/* ---- 内容更新日历 ---- */
.page-home .calendar-timeline {
  position: relative;
  padding: 4px 0 8px;
}

.page-home .calendar-timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--red-orange), var(--deep-blue));
}

.page-home .calendar-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 40px;
}

.page-home .calendar-item {
  position: relative;
  margin-bottom: 22px;
  padding: 14px 14px 12px 18px;
  background: var(--surface);
  border-radius: 8px;
}

.page-home .calendar-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--red-orange);
}

.page-home .calendar-item.item-red {
  border-left: 4px solid var(--red-orange);
}

.page-home .calendar-item h3 {
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.page-home .calendar-item p {
  font-size: 0.9rem;
  color: var(--muted-ink);
  margin-bottom: 0;
  line-height: 1.65;
}

.page-home .cal-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--deep-blue);
  background: var(--highlight);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 8px;
}

.page-home .cal-badge-red {
  background: var(--red-orange);
  color: var(--cream);
}

.page-home .calendar-footer-note {
  margin-top: 20px;
  padding: 0 12px;
  font-size: 0.92rem;
  color: var(--muted-ink);
  border-left: 4px solid var(--cobalt);
}

/* ---- 收尾区块 ---- */
.page-home .home-closing {
  margin-top: 24px;
  padding: 0 0 56px;
}

.page-home .home-closing::before {
  content: '';
  display: block;
  height: 4px;
  margin-bottom: 28px;
  background: repeating-linear-gradient(
    90deg,
    var(--red-orange) 0 18px,
    transparent 18px 26px,
    var(--deep-blue) 26px 44px,
    transparent 44px 52px
  );
  opacity: 0.5;
}

.page-home .closing-block {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  padding: 36px 22px;
  border-radius: 6px 24px 6px 24px;
  overflow: hidden;
}

.page-home .closing-block::after {
  content: 'YIBEI';
  position: absolute;
  right: -12px;
  bottom: -20px;
  font-family: var(--font-mono);
  font-size: 6rem;
  font-weight: 700;
  color: rgba(245, 240, 232, 0.06);
  pointer-events: none;
}

.page-home .closing-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--highlight);
  margin-bottom: 8px;
}

.page-home .closing-block h2 {
  color: var(--cream);
  margin-bottom: 12px;
}

.page-home .closing-copy {
  max-width: 42em;
  color: rgba(245, 240, 232, 0.82);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

.page-home .closing-block .btn-outline {
  border-color: rgba(245, 240, 232, 0.7);
  color: var(--cream);
}

.page-home .closing-block .btn-outline:hover {
  border-color: var(--highlight);
  color: var(--highlight);
}

@media (prefers-reduced-motion: reduce) {
  .page-home .alert-dot {
    animation: none;
  }
}

/* ---- 平板及以上 ---- */
@media (min-width: 768px) {
  .page-home .container {
    padding: 0 28px;
  }

  .page-home .hero-layout {
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 40px;
  }

  .page-home .announce-band {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    padding: 34px 36px;
    gap: 28px;
  }

  .page-home .announce-stats {
    grid-template-columns: 1fr;
  }

  .page-home .stat-cell {
    text-align: left;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }

  .page-home .stat-cell dt {
    margin: 0;
  }

  .page-home .schedule-wrap {
    grid-template-columns: 260px 1fr;
    align-items: start;
  }

  .page-home .standings-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .page-home .export-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .page-home .calendar-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding-left: 0;
  }

  .page-home .calendar-timeline::before {
    display: none;
  }

  .page-home .calendar-item {
    margin-bottom: 0;
  }

  .page-home .calendar-item::before {
    left: auto;
    right: 14px;
    top: -6px;
  }
}

/* ---- 桌面 ---- */
@media (min-width: 1024px) {
  .page-home .home-hero {
    padding: 60px 0 48px;
  }

  .page-home .hero-kicker {
    font-size: 0.92rem;
  }

  .page-home .hero-index {
    width: calc(100% - 20px);
    margin-left: 20px;
  }

  .page-home .announce-band h2 {
    font-size: 2rem;
  }

  .page-home .announce-stats {
    gap: 14px;
  }

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

  .page-home .closing-block {
    padding: 48px 40px;
  }
}
