/* ===== 首页专属样式 ===== */
.page-home {
  --home-glow-orange: rgba(255, 106, 0, 0.14);
  --home-glow-red: rgba(230, 57, 70, 0.12);
  --home-glow-blue: rgba(0, 180, 216, 0.1);
  --home-panel-radius: 14px;
  background: var(--cream);
}

/* ---------- 首屏：目录型内容地图 ---------- */
.page-home .home-hero {
  position: relative;
  padding: 34px 0 52px;
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(118deg, transparent 0 38px, rgba(255, 106, 0, 0.05) 38px 40px),
    radial-gradient(circle at 14% 88%, rgba(0, 180, 216, 0.08), transparent 30%);
}

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

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

.page-home .hero-copy {
  padding: 8px 0 0;
}

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

.page-home .hero-kicker-bar {
  width: 28px;
  height: 3px;
  background: var(--fox-orange);
  border-radius: 2px;
}

.page-home .hero-copy h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--deep-black);
  max-width: 720px;
}

.page-home .hero-lead {
  margin: 0;
  max-width: 660px;
  font-size: 15px;
  line-height: 1.72;
  color: #444;
}

.page-home .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-home .hero-figure {
  position: relative;
  margin: 0;
  background: var(--blue-black);
  border-radius: var(--home-panel-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

.page-home .hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

.page-home .hero-figure-tag {
  position: absolute;
  top: 18px;
  right: 0;
  z-index: 2;
  padding: 7px 14px 7px 18px;
  border-radius: 20px 0 0 20px;
  background: var(--fox-orange);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-home .hero-index {
  background: var(--deep-black);
  border-radius: var(--home-panel-radius);
  padding: 20px 18px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.page-home .hero-index-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--orange-light);
}

.page-home .mono-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
  text-transform: uppercase;
}

.page-home .hero-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .hero-index-item a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--moon-white);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.45;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s;
}

.page-home .hero-index-item a:hover,
.page-home .hero-index-item a:focus-visible {
  background: rgba(255, 106, 0, 0.14);
  border-color: var(--fox-orange);
  transform: translateX(4px);
}

.page-home .hero-index-num {
  flex: 0 0 26px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--fox-orange);
}

.page-home .hero-subscribe-card {
  position: relative;
  padding: 18px 20px;
  border-radius: var(--home-panel-radius);
  background: var(--moon-white);
  border: 1px solid var(--iron-gray);
  border-left: 5px solid var(--flame-red);
}

.page-home .hero-subscribe-text {
  margin: 10px 0 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--deep-black);
}

.page-home .hero-subscribe-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--flame-red);
  text-decoration: none;
}

.page-home .hero-subscribe-link:hover {
  color: var(--fox-orange);
}

/* ---------- V3更新记录：不绕路的4项改动 ---------- */
.page-home .home-changelog {
  position: relative;
  padding: 56px 0 60px;
  background: var(--deep-black);
  color: var(--moon-white);
  overflow: hidden;
}

.page-home .home-changelog::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(230, 57, 70, 0.14), transparent);
  pointer-events: none;
}

.page-home .changelog-head,
.page-home .leagues-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}

.page-home .section-tag {
  display: inline-block;
  margin: 0 0 8px;
  padding: 5px 12px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fox-orange);
  background: rgba(255, 106, 0, 0.08);
}

.page-home .home-changelog .section-tag {
  background: rgba(255, 106, 0, 0.16);
  color: var(--orange-light);
}

.page-home .section-more {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--esports-blue);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.page-home .section-more:hover {
  color: var(--fox-orange);
}

.page-home .home-changelog h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.16;
  color: var(--moon-white);
}

.page-home .changelog-intro {
  margin: 0 0 28px;
  max-width: 700px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.66);
}

.page-home .changelog-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

.page-home .timeline {
  position: relative;
  padding-left: 30px;
}

.page-home .timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--fox-orange), var(--flame-red));
}

.page-home .timeline-item {
  position: relative;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}

.page-home .timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 16px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--fox-orange);
  border: 3px solid var(--deep-black);
  box-shadow: 0 0 0 2px var(--fox-orange);
}

.page-home .timeline-item[open] {
  border-color: rgba(255, 106, 0, 0.5);
  background: rgba(255, 106, 0, 0.06);
}

.page-home .timeline-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.page-home .timeline-item summary::-webkit-details-marker {
  display: none;
}

.page-home .timeline-num {
  min-width: 26px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--fox-orange);
}

.page-home .timeline-title {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: var(--moon-white);
}

.page-home .timeline-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--fox-orange);
  border-bottom: 2px solid var(--fox-orange);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s var(--ease);
}

.page-home .timeline-item[open] .timeline-arrow {
  transform: rotate(225deg) translateY(-1px);
}

.page-home .timeline-body {
  padding: 0 16px 16px 56px;
  font-size: 14px;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.74);
}

.page-home .timeline-link {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--esports-blue);
  text-decoration: none;
  transition: color 0.2s;
}

.page-home .timeline-link:hover {
  color: var(--orange-light);
}

.page-home .changelog-figure {
  margin: 0;
  border-radius: var(--home-panel-radius);
  overflow: hidden;
  background: var(--deep-brown-black);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-home .changelog-figure figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
}

/* ---------- 官方主页直连赛事规则说明 ---------- */
.page-home .home-rules {
  padding: 56px 0;
  background: var(--cream);
}

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

.page-home .home-rules h2,
.page-home .home-subscribe h2,
.page-home .home-contact h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.18;
  color: var(--deep-black);
}

.page-home .home-rules .rules-copy {
  max-width: 600px;
}

.page-home .rules-desc {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.72;
  color: #444;
}

.page-home .rules-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .rules-list li {
  padding: 10px 14px;
  border-left: 3px solid var(--fox-orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 106, 0, 0.06);
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.page-home .rules-panel {
  padding: 26px 24px;
  border-radius: var(--home-panel-radius);
  background: var(--blue-black);
  color: var(--moon-white);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.page-home .rules-panel-label {
  margin: 10px 0 18px;
  font-size: 19px;
  font-weight: 800;
  color: var(--moon-white);
}

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

.page-home .rules-panel-item {
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

.page-home .rules-panel-meta {
  margin: 20px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--esports-blue);
}

/* ---------- 移动端火狐体育联赛专题导航 ---------- */
.page-home .home-leagues {
  padding: 56px 0 60px;
  background: var(--deep-brown-black);
  color: var(--moon-white);
  overflow: hidden;
}

.page-home .home-leagues h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.18;
  color: var(--moon-white);
}

.page-home .home-leagues .section-tag {
  background: rgba(255, 106, 0, 0.16);
  color: var(--orange-light);
}

.page-home .leagues-desc {
  margin: 0 0 24px;
  max-width: 680px;
  font-size: 15px;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.7);
}

.page-home .league-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--fox-orange) rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.page-home .league-scroll::-webkit-scrollbar {
  height: 6px;
}

.page-home .league-scroll::-webkit-scrollbar-thumb {
  background: var(--fox-orange);
  border-radius: 3px;
}

.page-home .league-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.12);
}

.page-home .league-scroll-inner {
  display: flex;
  gap: 16px;
  padding: 0 var(--gutter) 8px;
  min-width: max-content;
}

.page-home .league-card {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  border-radius: var(--home-panel-radius);
  overflow: hidden;
  background: var(--cream);
  color: var(--deep-black);
  box-shadow: var(--shadow-sm);
}

.page-home .league-card img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.page-home .league-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 20px 20px;
}

.page-home .league-card-body h3 {
  margin: 2px 0 0;
  font-size: 21px;
  font-weight: 800;
}

.page-home .league-card-body p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.55;
  color: #555;
}

.page-home .league-card--champ {
  background: var(--deep-black);
  color: var(--moon-white);
}

.page-home .league-card--champ .league-card-body p {
  color: rgba(255, 255, 255, 0.7);
}

.page-home .league-card--cba {
  background: var(--moon-white);
}

.page-home .league-card--liga {
  background: #fff8f2;
}

/* ---------- 订阅球队入口 ---------- */
.page-home .home-subscribe {
  padding: 56px 0;
  background: linear-gradient(125deg, #fff 0%, var(--cream) 55%, #fbf3e8 100%);
}

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

.page-home .subscribe-desc,
.page-home .contact-desc {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.72;
  color: #444;
}

.page-home .subscribe-steps {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .subscribe-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--iron-gray);
  border-radius: var(--radius-sm);
  background: var(--moon-white);
  font-size: 15px;
  line-height: 1.5;
  color: #333;
}

.page-home .subscribe-steps li span {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--fox-orange);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.page-home .subscribe-board {
  padding: 26px 24px;
  border-radius: var(--home-panel-radius);
  background: var(--blue-black);
  color: var(--moon-white);
  border-left: 6px solid var(--esports-blue);
}

.page-home .subscribe-board-title {
  margin: 10px 0 6px;
  font-size: 18px;
  font-weight: 800;
}

.page-home .subscribe-board-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- 下载火狐体育V3 ---------- */
.page-home .home-download {
  position: relative;
  padding: 64px 0;
  background: var(--deep-black);
  color: var(--moon-white);
  overflow: hidden;
}

.page-home .home-download::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 106, 0, 0.18), transparent 36%),
    radial-gradient(circle at 82% 80%, rgba(230, 57, 70, 0.14), transparent 32%),
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(255, 255, 255, 0.03) 22px 24px);
}

.page-home .download-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.page-home .section-tag--center {
  display: block;
  text-align: center;
}

.page-home .home-download .section-tag {
  background: rgba(255, 106, 0, 0.16);
  color: var(--orange-light);
}

.page-home .home-download h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
  color: var(--moon-white);
}

.page-home .download-desc {
  margin: 0 auto;
  max-width: 600px;
  font-size: 15px;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.74);
}

.page-home .download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 26px 0 18px;
}

.page-home .download-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.54);
}

/* ---------- 联系入口与服务介绍 ---------- */
.page-home .home-contact {
  padding: 56px 0 64px;
  background: var(--cream);
}

.page-home .contact-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.page-home .contact-facts {
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
}

.page-home .contact-fact {
  padding: 12px 14px;
  border: 1px solid var(--iron-gray);
  border-radius: var(--radius-sm);
  background: var(--moon-white);
}

.page-home .contact-fact dt {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fox-orange);
}

.page-home .contact-fact dd {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--deep-black);
}

.page-home .contact-details {
  margin: 0 0 20px;
  border: 1px dashed var(--iron-gray);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.6);
}

.page-home .contact-details summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--deep-black);
}

.page-home .contact-details summary::-webkit-details-marker {
  display: none;
}

.page-home .contact-details summary::before {
  content: "+";
  margin-right: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--fox-orange);
}

.page-home .contact-details[open] summary::before {
  content: "–";
}

.page-home .contact-details-body {
  padding: 0 16px 16px;
  font-size: 14px;
  line-height: 1.68;
  color: #444;
}

.page-home .contact-details-body ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.page-home .contact-figure {
  margin: 0;
  border-radius: var(--home-panel-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.page-home .contact-figure figcaption {
  padding: 10px 4px 0;
  font-size: 13px;
  color: #666;
}

/* ---------- 动效与降级 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .page-home .hero-copy {
    animation: pageHomeRiseIn 0.55s var(--ease) both;
  }

  .page-home .hero-figure {
    animation: pageHomeRiseIn 0.55s var(--ease) 0.08s both;
  }

  .page-home .hero-index {
    animation: pageHomeRiseIn 0.55s var(--ease) 0.16s both;
  }

  .page-home .hero-subscribe-card {
    animation: pageHomeRiseIn 0.55s var(--ease) 0.24s both;
  }

  .page-home .hero-figure::before {
    content: "";
    position: absolute;
    top: 22%;
    right: 16%;
    z-index: 3;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--flame-red);
    opacity: 0.7;
    filter: blur(1px);
    pointer-events: none;
    animation: pageHomeFloatParticle 3s ease-in-out infinite;
  }
}

@keyframes pageHomeRiseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageHomeFloatParticle {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-18px) scale(0.55);
    opacity: 0.3;
  }
}

/* ---------- 响应式增强：平板 / 桌面 ---------- */
@media (min-width: 760px) {
  .page-home .hero-grid {
    grid-template-columns: 1fr 0.92fr;
    grid-template-areas:
      "copy figure"
      "index figure"
      "subscribe figure";
    column-gap: 28px;
    align-items: start;
  }

  .page-home .hero-copy {
    grid-area: copy;
  }

  .page-home .hero-figure {
    grid-area: figure;
    align-self: start;
  }

  .page-home .hero-index {
    grid-area: index;
  }

  .page-home .hero-subscribe-card {
    grid-area: subscribe;
  }

  .page-home .changelog-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 28px;
  }

  .page-home .changelog-figure {
    margin-top: 8px;
  }

  .page-home .rules-grid {
    grid-template-columns: 1fr 0.94fr;
    gap: 44px;
    align-items: center;
  }

  .page-home .subscribe-grid {
    grid-template-columns: 1.06fr 0.94fr;
    gap: 44px;
    align-items: center;
  }

  .page-home .contact-grid {
    grid-template-columns: 1fr 0.92fr;
    gap: 48px;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero {
    padding: 48px 0 72px;
  }

  .page-home .hero-copy h1 {
    max-width: 680px;
  }

  .page-home .hero-grid {
    column-gap: 36px;
  }

  .page-home .hero-lead {
    font-size: 16px;
  }

  .page-home .hero-cta .btn {
    padding-right: 26px;
    padding-left: 26px;
  }

  .page-home .league-card {
    flex-basis: 300px;
  }

  .page-home .league-card img {
    height: 200px;
  }

  .page-home .home-changelog,
  .page-home .home-rules,
  .page-home .home-subscribe,
  .page-home .home-contact {
    padding: 68px 0;
  }

  .page-home .home-leagues {
    padding: 68px 0 72px;
  }

  .page-home .home-download {
    padding: 76px 0;
  }

  .page-home .league-scroll-inner {
    padding-right: calc((100vw - var(--content-max)) / 2 + var(--gutter));
    padding-left: calc((100vw - var(--content-max)) / 2 + var(--gutter));
  }
}
