/* ========== 首页专属样式 ========== */
.page-home {
  --home-angle: 48px;
  --home-dark: #14213D;
  --home-green-dark: #0A5C2A;
  --home-green-bright: #16A34A;
  --home-orange: #FF5A1F;
  --home-orange-soft: #FFB36B;
  --home-mist: #F4F7F6;
  --home-card: #FFFFFF;
  --home-line: #34D399;
}

/* -------- 首屏：分屏叙事 + SVG 足球场 -------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(22, 163, 74, 0.35) 0%, transparent 60%),
    var(--home-dark);
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 96px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--home-angle)), 0 100%);
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

.page-home .home-context {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 5;
  max-width: calc(100vw - 48px);
}

.page-home .home-context ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.75);
  padding: 8px 14px;
  margin: 0;
  background: rgba(20, 33, 61, 0.6);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}

.page-home .home-context li {
  list-style: none;
  display: flex;
  align-items: center;
}

.page-home .home-context a {
  color: var(--home-line);
  text-decoration: none;
}

.page-home .home-context li + li::before {
  content: "/";
  margin: 0 6px 0 2px;
  color: rgba(255, 255, 255, 0.4);
}

.page-home .home-context [aria-current] {
  color: #fff;
}

.page-home .hero-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

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

.page-home .hero-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--home-line);
  padding: 8px 16px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.page-home .hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 20px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.page-home .hero-desc {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin: 0 0 28px;
}

.page-home .hero-search {
  display: flex;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius-pill);
  padding: 6px;
  backdrop-filter: blur(10px);
  margin-bottom: 20px;
}

.page-home .hero-search .search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: var(--text-sm);
  padding: 10px 16px;
}

.page-home .hero-search .search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.page-home .hero-search .search-btn {
  background: var(--home-orange);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.page-home .hero-search .search-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta);
}

.page-home .hero-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 36px;
  font-size: var(--text-sm);
}

.page-home .hero-quicklinks a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
  transition: color 0.2s, border-color 0.2s;
}

.page-home .hero-quicklinks a:hover {
  color: var(--home-line);
  border-color: var(--home-line);
}

.page-home .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .hero-stats .stat-item {
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--radius-card);
  backdrop-filter: blur(6px);
}

.page-home .hero-stats .stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--home-line);
  display: block;
}

.page-home .hero-stats .stat-label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.7);
  margin: 4px 0 0;
}

.page-home .hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-home .pitch-svg {
  width: 100%;
  max-width: 460px;
  height: auto;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.35));
}

.page-home .pitch-track {
  stroke-dashoffset: 24;
  animation: homeLineDash 3s linear infinite;
}

.page-home .pitch-track--2 {
  animation-duration: 4s;
  animation-direction: reverse;
}

@keyframes homeLineDash {
  to {
    stroke-dashoffset: 0;
  }
}

.page-home .pitch-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: homePulse 2.4s ease-in-out infinite;
}

.page-home .dot-a {
  animation-delay: 0s;
}

.page-home .dot-b {
  animation-delay: 0.5s;
}

.page-home .dot-c {
  animation-delay: 1s;
}

.page-home .dot-d {
  animation-delay: 1.5s;
}

@keyframes homePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.25);
  }
}

/* -------- 通用章节头（首页作用域） -------- */
.page-home .section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 24px;
  margin-bottom: 40px;
}

.page-home .section-head-left {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.page-home .section-index {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--home-orange);
}

.page-home .section-index--light {
  color: var(--home-orange-soft);
}

.page-home .section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--home-dark);
  margin: 0;
}

.page-home .section-title--light {
  color: #fff;
}

.page-home .section-desc {
  flex-basis: 100%;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
  margin: 0;
}

.page-home .section-more {
  margin-left: auto;
  font-size: var(--text-sm);
  color: var(--green-bright);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.page-home .section-more:hover {
  border-bottom-color: currentColor;
}

/* -------- 赛事快车 -------- */
.page-home .home-events {
  position: relative;
  background: var(--home-mist);
  padding: 96px 0 88px;
}

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

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

.page-home .event-card {
  position: relative;
  background: var(--home-card);
  border-radius: var(--radius-panel);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(20, 33, 61, 0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.page-home .event-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: var(--shadow-float);
}

.page-home .event-media {
  position: relative;
}

.page-home .event-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.page-home .event-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 33, 61, 0.6), transparent 60%);
}

.page-home .event-flag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.page-home .event-card-body {
  padding: 24px;
}

.page-home .event-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--home-dark);
  margin: 0 0 18px;
}

.page-home .event-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--home-dark);
  border-radius: var(--radius-card);
  padding: 14px 18px;
  margin-bottom: 14px;
}

.page-home .event-team {
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 500;
  flex: 1;
}

.page-home .event-team:last-child {
  text-align: right;
}

.page-home .score-num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--home-orange);
  white-space: nowrap;
}

.page-home .event-time {
  font-size: var(--text-xs);
  color: var(--muted);
  margin: 0 0 16px;
}

.page-home .event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .event-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.page-home .event-actions .btn-outline {
  border: 1px solid var(--home-green-bright);
  color: var(--home-green-bright);
  background: transparent;
}

.page-home .event-actions .btn-outline:hover {
  background: var(--home-green-bright);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.25);
}

.page-home .event-actions .btn-ghost {
  border: 1px solid transparent;
  color: var(--muted);
  background: rgba(20, 33, 61, 0.04);
}

.page-home .event-actions .btn-ghost:hover {
  color: var(--home-dark);
  transform: translateY(-2px);
}

/* -------- 球队库改版亮点 -------- */
.page-home .home-library {
  background: var(--home-card);
  padding: 88px 0;
}

.page-home .library-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

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

.page-home .feature-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-panel);
  background: linear-gradient(135deg, rgba(244, 247, 246, 0.8), rgba(255, 255, 255, 1));
  border: 1px solid rgba(20, 33, 61, 0.06);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.page-home .feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, transparent 50%, rgba(22, 163, 74, 0.08) 50%);
  pointer-events: none;
}

.page-home .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.page-home .feature-num {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: rgba(22, 163, 74, 0.6);
  letter-spacing: 0.1em;
}

.page-home .feature-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--home-dark);
  margin: 10px 0 8px;
}

.page-home .feature-desc {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--slate);
  margin: 0;
}

.page-home .library-visual {
  position: relative;
}

.page-home .library-visual::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  border-radius: var(--radius-panel);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.18), rgba(255, 90, 31, 0.18));
  z-index: 0;
}

.page-home .library-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-float);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

/* -------- 更新日志精选 -------- */
.page-home .home-updates {
  position: relative;
  background: var(--home-dark);
  padding: 96px 0 88px;
  color: #fff;
}

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

.page-home .home-updates .section-title {
  color: #fff;
}

.page-home .home-updates .section-desc {
  color: rgba(255, 255, 255, 0.65);
}

.page-home .home-updates .section-more {
  color: var(--home-line);
}

.page-home .timeline-log {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.page-home .timeline-log::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--home-line), var(--home-orange));
}

.page-home .log-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 24px;
}

.page-home .log-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--home-dark);
  border: 4px solid var(--home-line);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12);
}

.page-home .log-item:last-child {
  margin-bottom: 0;
}

.page-home .log-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: var(--radius-card);
  padding: 24px;
  backdrop-filter: blur(8px);
  transition: background 0.3s, transform 0.3s var(--ease);
}

.page-home .log-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.page-home .log-tag {
  font-size: var(--text-xs);
}

.page-home .log-title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: #fff;
  margin: 10px 0 8px;
}

.page-home .log-summary {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 12px;
}

.page-home .log-link {
  font-size: var(--text-sm);
  color: var(--home-line);
  text-decoration: none;
  border-bottom: 1px dashed rgba(52, 211, 153, 0.4);
  transition: border-color 0.2s;
}

.page-home .log-link:hover {
  border-bottom-color: var(--home-line);
}

/* -------- 会员订阅 -------- */
.page-home .home-subscribe {
  position: relative;
  background: linear-gradient(135deg, var(--home-green-dark) 0%, var(--home-dark) 100%);
  padding: 96px 0 104px;
  overflow: hidden;
}

.page-home .home-subscribe::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.page-home .subscribe-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 28px;
  padding: 48px 28px;
  backdrop-filter: blur(10px);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}

.page-home .subscribe-copy {
  color: #fff;
}

.page-home .subscribe-desc {
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--text-md);
  line-height: 1.8;
  margin: 12px 0 24px;
}

.page-home .subscribe-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .subscribe-features .status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: var(--text-sm);
  color: #fff;
}

.page-home .subscribe-features .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--home-line);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
}

.page-home .subscribe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: var(--text-md);
  font-weight: 600;
  text-decoration: none;
  background: var(--home-orange);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-cta);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}

.page-home .subscribe-btn:hover {
  background: #FF6A2F;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 90, 31, 0.4);
}

.page-home .subscribe-note {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
  margin: 16px 0 0;
}

.page-home .subscribe-faq {
  display: inline-block;
  margin-top: 8px;
  color: var(--home-line);
  text-decoration: none;
  font-size: var(--text-sm);
  border-bottom: 1px dashed rgba(52, 211, 153, 0.4);
  transition: border-color 0.2s;
}

.page-home .subscribe-faq:hover {
  border-bottom-color: var(--home-line);
}

.page-home .subscribe-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 12 / 5;
  object-fit: cover;
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-float);
}

/* -------- 响应式增强 -------- */
@media (min-width: 640px) {
  .page-home .events-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .event-card--featured {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  .page-home .home-library {
    padding: 104px 0;
  }

  .page-home .library-content {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 56px;
  }

  .page-home .subscribe-panel {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 56px 48px;
    gap: 48px;
  }

  .page-home .subscribe-visual img {
    aspect-ratio: auto;
    max-height: 360px;
  }

  .page-home .timeline-log::before {
    left: 12px;
  }

  .page-home .log-item {
    padding-left: 52px;
  }

  .page-home .log-item::before {
    width: 24px;
    height: 24px;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero {
    padding-bottom: 112px;
  }

  .page-home .hero-inner {
    grid-template-columns: 1fr 0.9fr;
    gap: 64px;
  }

  .page-home .hero-stats .stat-item {
    padding: 22px;
  }

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

  .page-home .event-card--featured {
    grid-column: auto;
  }

  .page-home .section-head {
    flex-wrap: nowrap;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
  }

  .page-home .section-desc {
    flex-basis: auto;
    margin-left: 8px;
  }

  .page-home .section-more {
    margin-left: auto;
  }

  .page-home .pitch-svg {
    max-width: 500px;
  }
}

/* -------- 减少动态效果 -------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .pitch-dot,
  .page-home .pitch-track {
    animation: none;
  }

  .page-home .event-card:hover,
  .page-home .feature-card:hover,
  .page-home .log-card:hover {
    transform: none;
  }

  .page-home .hero-search .search-btn:hover,
  .page-home .subscribe-btn:hover {
    transform: none;
  }
}
