/* ========== 首页专属样式 ========== */
.page-home {
  overflow-x: hidden;
}

/* --- 框景首屏 --- */
.page-home .hero-calendar {
  position: relative;
  background: var(--clr-blue);
  overflow: hidden;
  border-bottom: 8px solid var(--clr-obsidian);
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  display: block;
}

.page-home .hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(30, 91, 138, 0.94) 0%, rgba(30, 91, 138, 0.78) 40%, rgba(247, 248, 250, 0.18) 100%);
}

.page-home .hero-mountains {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 180px;
  z-index: 1;
}

.page-home .hero-inner {
  position: relative;
  z-index: 2;
  padding: 32px 20px 64px;
}

.page-home .hero-calendar .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .hero-calendar .breadcrumb li {
  font-size: 13px;
  color: rgba(247, 248, 250, 0.8);
}

.page-home .hero-calendar .breadcrumb a {
  color: var(--clr-white);
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 248, 250, 0.5);
}

.page-home .hero-calendar .breadcrumb a:hover {
  color: var(--clr-gold);
  border-color: var(--clr-gold);
}

.page-home .hero-calendar .breadcrumb [aria-current="page"] {
  color: var(--clr-gold);
  font-weight: 700;
}

.page-home .hero-calendar .breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
}

.page-home .hero-split {
  display: grid;
  gap: 28px;
}

.page-home .hero-frame {
  position: relative;
  background: rgba(247, 248, 250, 0.96);
  border: 4px solid var(--clr-blue);
  box-shadow: 10px 10px 0 rgba(10, 26, 43, 0.35);
  padding: 0;
}

.page-home .hero-frame::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--clr-gold) 0 4px, transparent 4px 14px);
  opacity: 0.55;
  z-index: 2;
}

.page-home .tibet-trim {
  display: flex;
  height: 8px;
  background: var(--clr-obsidian);
}

.page-home .tibet-trim i {
  flex: 1;
  display: block;
}

.page-home .tibet-trim i:nth-child(1) {
  background: var(--clr-gold);
}

.page-home .tibet-trim i:nth-child(2) {
  background: var(--clr-red);
}

.page-home .tibet-trim i:nth-child(3) {
  background: var(--clr-blue);
}

.page-home .frame-mark {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--clr-red);
  border-style: solid;
  z-index: 3;
}

.page-home .frame-mark-tl {
  top: -6px;
  left: -6px;
  border-width: 4px 0 0 4px;
}

.page-home .frame-mark-tr {
  top: -6px;
  right: -6px;
  border-width: 4px 4px 0 0;
}

.page-home .frame-mark-bl {
  bottom: -6px;
  left: -6px;
  border-width: 0 0 4px 4px;
}

.page-home .frame-mark-br {
  bottom: -6px;
  right: -6px;
  border-width: 0 4px 4px 0;
}

.page-home .hero-frame-inner {
  padding: 28px 24px 32px;
}

.page-home .hero-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--clr-red);
  background: var(--clr-paper);
  border: 1px solid var(--clr-red);
  padding: 4px 12px;
  margin-bottom: 16px;
}

.page-home .hero-frame h1 {
  font-family: var(--font-title);
  font-size: 44px;
  line-height: 1.15;
  font-weight: 900;
  color: var(--clr-ink);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.page-home .hero-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--clr-ink);
  margin: 0 0 24px;
  max-width: 42em;
}

.page-home .hero-feature-match {
  margin-bottom: 20px;
  padding: 18px;
  background: linear-gradient(135deg, var(--clr-ink) 0%, #1a2f45 100%);
  color: var(--clr-white);
  border-left: 6px solid var(--clr-red);
  box-shadow: 4px 4px 0 rgba(10, 26, 43, 0.18);
}

.page-home .hfm-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.page-home .hfm-time {
  font-size: 13px;
  font-weight: 700;
  color: var(--clr-gold);
}

.page-home .hfm-title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}

.page-home .hfm-title em {
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  color: var(--clr-red);
  background: var(--clr-white);
  padding: 2px 10px;
  border-radius: 2px;
  margin: 0 6px;
  vertical-align: middle;
}

.page-home .hfm-venue {
  font-size: 12px;
  color: rgba(247, 248, 250, 0.82);
  margin: 0;
}

.page-home .hero-match-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  border-top: 1px solid var(--clr-gray);
}

.page-home .hero-match-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--clr-gray);
  font-size: 14px;
}

.page-home .hero-match-list .tag {
  flex-shrink: 0;
  background: var(--clr-paper);
  color: var(--clr-blue);
  border: 1px solid var(--clr-blue);
}

.page-home .hm-time {
  color: var(--clr-red);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.page-home .hero-match-list strong {
  color: var(--clr-ink);
  font-weight: 600;
}

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

.page-home .hero-aside {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-self: start;
}

.page-home .hero-aside-stat {
  position: relative;
  background: var(--clr-obsidian);
  color: var(--clr-white);
  border: 2px solid var(--clr-gold);
  padding: 18px 8px;
  text-align: center;
  font-family: var(--font-title);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 5px 5px 0 rgba(201, 168, 106, 0.35);
}

.page-home .hero-aside-stat::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(201, 168, 106, 0.5);
  pointer-events: none;
}

.page-home .stat-unit {
  font-size: 14px;
  font-weight: 700;
  color: var(--clr-gold);
  margin-left: 2px;
  font-family: var(--font-body);
}

.page-home .hero-aside-stat .stat-label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--clr-gold);
  margin-top: 6px;
}

.page-home .hero-brand-link {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--clr-white);
  background: var(--clr-red);
  border: 2px solid var(--clr-obsidian);
  box-shadow: 4px 4px 0 rgba(10, 26, 43, 0.3);
  padding: 12px 18px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-home .hero-brand-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(10, 26, 43, 0.38);
}

/* --- 滚动名单条 --- */
.page-home .hero-ticker {
  position: relative;
  z-index: 2;
  background: var(--clr-obsidian);
  color: var(--clr-white);
  border-top: 4px solid var(--clr-red);
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
}

.page-home .ticker-inner {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  animation: heroTicker 28s linear infinite;
  will-change: transform;
}

.page-home .ticker-inner span {
  margin-right: 40px;
}

.page-home .ticker-inner span::before {
  content: "◆ ";
  color: var(--clr-gold);
}

@keyframes heroTicker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* --- 联赛日程清单 --- */
.page-home .league-section {
  background: var(--clr-white);
  padding: 56px 0;
}

.page-home .section-heading-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.page-home .section-heading h2 {
  font-family: var(--font-title);
  font-size: 34px;
  font-weight: 900;
  color: var(--clr-ink);
  margin: 0 0 8px;
  border-left: 6px solid var(--clr-red);
  padding-left: 16px;
}

.page-home .section-heading p {
  color: #4a5868;
  font-size: 14px;
  margin: 0;
}

.page-home .league-visual {
  margin: 0;
  background: var(--clr-paper);
  border: 2px solid var(--clr-ink);
  box-shadow: 6px 6px 0 rgba(10, 26, 43, 0.14);
  padding: 10px;
  max-width: 220px;
}

.page-home .league-visual img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--clr-gray);
}

.page-home .league-visual figcaption {
  font-size: 12px;
  font-weight: 700;
  color: var(--clr-blue);
  padding: 10px 2px 2px;
  text-align: center;
}

.page-home .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.page-home .filter-btn {
  border: 2px solid var(--clr-ink);
  background: var(--clr-white);
  color: var(--clr-ink);
  padding: 8px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(10, 26, 43, 0.12);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.page-home .filter-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(10, 26, 43, 0.18);
}

.page-home .filter-btn.is-active {
  background: var(--clr-red);
  color: var(--clr-white);
  border-color: var(--clr-red);
}

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

.page-home .league-card {
  background: var(--clr-white);
  border: 2px solid var(--clr-ink);
  box-shadow: 6px 6px 0 rgba(10, 26, 43, 0.14);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-home .league-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 rgba(10, 26, 43, 0.2);
}

.page-home .league-card[data-hidden] {
  display: none;
}

.page-home .league-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.page-home .league-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--clr-blue);
  color: var(--clr-white);
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 900;
  border: 2px solid var(--clr-ink);
  box-shadow: 3px 3px 0 rgba(10, 26, 43, 0.2);
  position: relative;
}

.page-home .league-badge::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(247, 248, 250, 0.4);
}

.page-home .league-badge-basket {
  background: var(--clr-red);
}

.page-home .league-badge-other {
  background: var(--clr-obsidian);
}

.page-home .league-card-head h3 {
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 800;
  color: var(--clr-ink);
  margin: 0 0 2px;
}

.page-home .league-card-head p {
  font-size: 12px;
  color: var(--clr-blue);
  font-weight: 600;
  margin: 0;
}

.page-home .league-match-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  border-top: 1px solid var(--clr-gray);
}

.page-home .league-match-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--clr-gray);
}

.page-home .league-match-list .match-time {
  flex-shrink: 0;
  color: var(--clr-red);
  font-weight: 700;
  font-size: 13px;
  min-width: 72px;
}

.page-home .league-card .btn {
  width: 100%;
  justify-content: center;
}

/* --- 分联赛清单下载 --- */
.page-home .download-guide {
  background: var(--clr-paper);
  border-top: 6px solid var(--clr-gold);
  border-bottom: 6px solid var(--clr-blue);
  padding: 56px 0;
}

.page-home .download-head h2 {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 900;
  color: var(--clr-ink);
  margin: 0 0 8px;
}

.page-home .download-head p {
  max-width: 42em;
  line-height: 1.7;
}

.page-home .download-head a {
  color: var(--clr-blue);
  font-weight: 700;
}

.page-home .league-tag-cloud {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 28px 0;
}

.page-home .league-tag-cloud li {
  background: var(--clr-white);
  border: 2px solid var(--clr-blue);
  color: var(--clr-ink);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  box-shadow: 3px 3px 0 rgba(30, 91, 138, 0.18);
}

.page-home .download-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.page-home .download-actions .btn {
  min-width: 160px;
  justify-content: center;
}

.page-home .download-tip {
  font-size: 13px;
  color: #4a5868;
  margin: 0;
}

/* --- 射手榜与分析 --- */
.page-home .stats-analysis {
  background: var(--clr-white);
  padding: 56px 0;
}

.page-home .analysis-grid {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.page-home .scorer-panel {
  border: 2px solid var(--clr-ink);
  box-shadow: 6px 6px 0 rgba(10, 26, 43, 0.14);
  background: var(--clr-white);
}

.page-home .scorer-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--clr-blue);
  color: var(--clr-white);
  border-bottom: 3px solid var(--clr-obsidian);
}

.page-home .scorer-panel-header h3 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.page-home .scorer-round {
  font-size: 12px;
  font-weight: 700;
  color: var(--clr-gold);
  background: rgba(10, 26, 43, 0.35);
  padding: 4px 10px;
  white-space: nowrap;
}

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

.page-home .scorer-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--clr-gray);
  font-size: 14px;
}

.page-home .scorer-list li:last-child {
  border-bottom: none;
}

.page-home .scorer-rank {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 900;
  color: var(--clr-gold);
  text-align: center;
}

.page-home .scorer-player {
  font-weight: 700;
  color: var(--clr-ink);
}

.page-home .scorer-team {
  color: #4a5868;
  font-size: 13px;
  text-align: right;
}

.page-home .scorer-goals {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 900;
  color: var(--clr-red);
  min-width: 36px;
  text-align: right;
}

.page-home .analysis-panel {
  position: relative;
  background: var(--clr-ink);
  color: var(--clr-white);
  padding: 26px 24px;
  border-left: 6px solid var(--clr-red);
  box-shadow: 6px 6px 0 rgba(10, 26, 43, 0.16);
}

.page-home .analysis-panel h3 {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 16px;
}

.page-home .analysis-figure {
  margin: 0 0 18px;
}

.page-home .analysis-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid var(--clr-gold);
}

.page-home .analysis-lead {
  font-size: 15px;
  font-weight: 700;
  color: var(--clr-gold);
  margin: 0 0 12px;
}

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

.page-home .analysis-points li {
  position: relative;
  padding: 7px 0 7px 18px;
  font-size: 14px;
  line-height: 1.6;
  border-bottom: 1px dashed rgba(247, 248, 250, 0.18);
}

.page-home .analysis-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 8px;
  background: var(--clr-red);
  transform: rotate(45deg);
}

.page-home .analysis-panel .btn {
  margin-top: 4px;
}

/* --- 最新动态 --- */
.page-home .news-section {
  background: var(--clr-blue);
  color: var(--clr-white);
  padding: 56px 0;
  border-top: 8px solid var(--clr-obsidian);
}

.page-home .news-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.page-home .news-section .section-heading h2 {
  color: var(--clr-white);
}

.page-home .news-section .section-heading p {
  color: rgba(247, 248, 250, 0.8);
}

.page-home .news-more {
  color: var(--clr-gold);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--clr-gold);
  padding-bottom: 4px;
}

.page-home .news-more:hover {
  color: var(--clr-white);
  border-color: var(--clr-white);
}

.page-home .news-grid {
  display: grid;
  gap: 20px;
}

.page-home .news-card {
  background: var(--clr-white);
  color: var(--clr-ink);
  border: 2px solid var(--clr-obsidian);
  box-shadow: 6px 6px 0 rgba(10, 26, 43, 0.25);
  overflow: hidden;
}

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

.page-home .news-body {
  padding: 18px;
}

.page-home .news-tag {
  display: inline-block;
  background: var(--clr-red);
  color: var(--clr-white);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  margin-bottom: 10px;
}

.page-home .news-card h3 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 8px;
}

.page-home .news-card p {
  font-size: 13px;
  line-height: 1.65;
  color: #4a5868;
  margin: 0 0 12px;
}

.page-home .news-card a {
  color: var(--clr-blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--clr-blue);
  padding-bottom: 2px;
}

.page-home .news-card a:hover {
  color: var(--clr-red);
  border-color: var(--clr-red);
}

.page-home .news-card-plain {
  position: relative;
  background: linear-gradient(135deg, var(--clr-white) 0%, #edf2f6 100%);
}

.page-home .news-index {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--font-title);
  font-size: 40px;
  font-weight: 900;
  color: rgba(30, 91, 138, 0.18);
  line-height: 1;
}

/* --- 帮助条 --- */
.page-home .help-strip {
  background: var(--clr-obsidian);
  color: var(--clr-white);
  padding: 36px 0;
  border-top: 4px solid var(--clr-gold);
}

.page-home .help-strip-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.page-home .help-strip p {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.page-home .help-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.page-home .help-actions .btn {
  min-width: 140px;
  justify-content: center;
}

/* --- 平板增强 --- */
@media (min-width: 768px) {
  .page-home .hero-inner,
  .page-home .league-section .container,
  .page-home .download-guide .container,
  .page-home .stats-analysis .container,
  .page-home .news-section .container,
  .page-home .help-strip .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
  }

  .page-home .hero-split {
    gap: 32px;
  }

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

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

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

  .page-home .news-card-image {
    grid-column: span 2;
  }

  .page-home .help-strip-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* --- 桌面增强 --- */
@media (min-width: 1024px) {
  .page-home .hero-calendar {
    min-height: 620px;
  }

  .page-home .hero-inner {
    padding-top: 44px;
    padding-bottom: 76px;
  }

  .page-home .hero-split {
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: stretch;
  }

  .page-home .hero-aside {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, auto) 1fr;
    gap: 14px;
  }

  .page-home .hero-aside-stat {
    font-size: 42px;
    padding: 20px 12px;
  }

  .page-home .stat-unit {
    font-size: 16px;
  }

  .page-home .hero-brand-link {
    align-self: end;
  }

  .page-home .hero-bg-overlay {
    background: linear-gradient(115deg, rgba(30, 91, 138, 0.92) 0%, rgba(30, 91, 138, 0.66) 45%, rgba(247, 248, 250, 0.22) 100%);
  }

  .page-home .league-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
  }

  .page-home .league-card:nth-child(1),
  .page-home .league-card:nth-child(4),
  .page-home .league-card:nth-child(6) {
    grid-column: span 2;
  }

  .page-home .section-heading-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .page-home .league-visual {
    flex-shrink: 0;
  }

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

  .page-home .news-card-image {
    grid-column: span 2;
  }
}
