.page-home {
  --home-title-size: clamp(3rem, 8vw, 6rem);
  --home-brand-size: clamp(0.8rem, 1.4vw, 1.05rem);
  --home-hero-pad: clamp(96px, 13vh, 140px) 0 clamp(64px, 8vh, 100px);
  --home-card-gap: clamp(16px, 2vw, 24px);
  color: var(--c-text);
  overflow-x: hidden;
}

.page-home .home-view-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* ————— Hero ————— */
.page-home .home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--c-bg);
  padding: var(--home-hero-pad);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.page-home .home-hero__media {
  position: absolute;
  inset: 0;
}

.page-home .home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: grayscale(0.15) contrast(1.25) saturate(1.1);
}

.page-home .home-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(13, 27, 42, 0.92) 18%, rgba(13, 27, 42, 0.72) 48%, rgba(230, 57, 70, 0.28) 82%),
    radial-gradient(circle at 82% 30%, rgba(29, 111, 242, 0.35) 0%, transparent 50%);
}

.page-home .home-hero__speed {
  position: absolute;
  z-index: 1;
  height: 2px;
  width: 42vw;
  background: linear-gradient(90deg, transparent, var(--c-green), transparent);
  transform: rotate(-12deg);
  opacity: 0.5;
  animation: homeSpeedRush 4.5s ease-in-out infinite alternate;
  pointer-events: none;
}

.page-home .home-hero__speed--one {
  top: 32%;
  right: -8%;
}

.page-home .home-hero__speed--two {
  top: 58%;
  right: 12%;
  width: 24vw;
  opacity: 0.25;
  animation-delay: 1.2s;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-home .home-hero__title {
  font-family: var(--font-ui);
  font-size: var(--home-title-size);
  font-weight: 900;
  font-style: italic;
  line-height: 0.96;
  letter-spacing: -0.02em;
  transform: skewX(-6deg);
  transform-origin: left bottom;
  margin: 0 0 20px;
  color: var(--c-text);
  max-width: 820px;
}

.page-home .home-hero__brand {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--home-brand-size);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  transform: skewX(6deg);
  color: var(--c-green);
  margin-bottom: 22px;
}

.page-home .home-hero__main {
  display: block;
}

.page-home .home-hero__accent {
  color: var(--c-red);
  position: relative;
  display: inline-block;
}

.page-home .home-hero__accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.1em;
  background: var(--c-green);
  transform: skewX(-4deg);
  z-index: -1;
}

.page-home .home-hero__lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.75;
  color: var(--c-silver);
  max-width: 560px;
  margin: 0 0 34px;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.page-home .home-hero__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--c-silver);
  opacity: 0.7;
  text-transform: uppercase;
  z-index: 2;
}

.page-home .home-hero__foot-line {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, var(--c-red), var(--c-green));
}

/* ————— 通用区块头部 ————— */
.page-home .home-section-head {
  margin-bottom: 32px;
  max-width: 720px;
}

.page-home .home-section-eyebrow {
  display: inline-block;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-green);
  margin: 0 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--c-green);
}

.page-home .home-section-subtitle {
  margin: 12px 0 0;
  color: var(--c-silver);
  font-size: 1rem;
  line-height: 1.75;
}

/* ————— 主客场入口 ————— */
.page-home .home-venues {
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.page-home .home-venues__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-card-gap);
}

.page-home .home-venue {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0;
  min-height: 300px;
  cursor: pointer;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
  text-decoration: none;
  color: var(--c-text);
  isolation: isolate;
  border: 3px solid transparent;
}

.page-home .home-venue--home {
  background:
    radial-gradient(circle at 84% 16%, rgba(255, 159, 28, 0.3) 0%, transparent 46%),
    linear-gradient(135deg, var(--c-red) 0%, #b52a38 100%);
}

.page-home .home-venue--away {
  background:
    radial-gradient(circle at 14% 82%, rgba(183, 227, 26, 0.22) 0%, transparent 46%),
    linear-gradient(135deg, var(--c-blue) 0%, #154ca8 100%);
}

.page-home .home-venue__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.page-home .home-venue__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  mix-blend-mode: screen;
  filter: saturate(1.25) contrast(1.15);
}

.page-home .home-venue__body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 300px;
  padding: 28px;
  z-index: 1;
  box-sizing: border-box;
}

.page-home .home-venue__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.22);
  margin-bottom: 14px;
}

.page-home .home-venue__name {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 900;
  font-style: italic;
  transform: skewX(-4deg);
  letter-spacing: 0.02em;
  margin: 0 0 10px;
}

.page-home .home-venue__desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(245, 240, 225, 0.86);
  margin: 0 0 16px;
  max-width: 34ch;
}

.page-home .home-venue__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.page-home .home-venue__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.page-home .home-venue:hover,
.page-home .home-venue:focus-visible {
  transform: translateY(-5px) rotate(-0.4deg);
  box-shadow: var(--shadow-float);
  outline: none;
}

.page-home .home-venue:hover .home-venue__cta,
.page-home .home-venue:focus-visible .home-venue__cta {
  background: rgba(0, 0, 0, 0.42);
}

#home-view-radio:checked ~ .home-venues .home-venue--home,
#away-view-radio:checked ~ .home-venues .home-venue--away {
  box-shadow: 0 0 0 3px var(--c-green), var(--shadow-float);
  transform: translateY(-5px);
}

/* ————— 进失球分布图 ————— */
.page-home .home-chart {
  background-color: var(--c-surface);
  position: relative;
  overflow: hidden;
}

.page-home .home-chart__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-card-gap);
  align-items: stretch;
}

.page-home .home-chart__panel {
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #172238;
  border: 1px solid rgba(197, 198, 199, 0.12);
}

.page-home .home-chart__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.page-home .home-chart__sample {
  font-family: var(--font-num);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--c-silver);
}

.page-home .home-chart__board {
  width: 100%;
}

.page-home .home-chart__svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(13, 27, 42, 0.5) 0%, rgba(13, 27, 42, 0.85) 100%);
  padding: 8px;
  box-sizing: border-box;
}

.page-home .home-chart__caption {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--c-silver);
  margin: 0;
}

.page-home .home-chart__aside {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-content: stretch;
}

.page-home .home-chart__stat {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 108px;
  box-sizing: border-box;
  background: var(--c-surface);
}

.page-home .home-chart__stat-num {
  font-family: var(--font-num);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  font-style: italic;
  letter-spacing: 0.01em;
}

.page-home .home-chart__stat-num span {
  font-size: 0.62em;
  font-weight: 600;
  margin-left: 2px;
  color: var(--c-silver);
}

.page-home .home-chart__stat-label {
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: var(--c-silver);
}

.page-home .home-chart__note {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--c-silver);
  margin: 6px 0 0;
}

.page-home .home-chart__aside .arrow-link {
  margin-top: 8px;
}

/* ————— 多端对比 ————— */
.page-home .home-platform {
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.page-home .home-platform__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-card-gap);
}

.page-home .home-platform__card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid rgba(197, 198, 199, 0.12);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

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

.page-home .home-platform__card--mobile {
  border-top: 4px solid var(--c-green);
}

.page-home .home-platform__card--desktop {
  border-top: 4px solid var(--c-blue);
}

.page-home .home-platform__visual {
  position: relative;
  aspect-ratio: 3 / 2;
  background: linear-gradient(145deg, #121e30, #1b263b);
}

.page-home .home-platform__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(1.05) contrast(1.1);
}

.page-home .home-platform__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.page-home .home-platform__name {
  font-size: 1.4rem;
  font-weight: 900;
  font-style: italic;
  transform: skewX(-4deg);
  margin: 0 0 12px;
  color: var(--c-text);
}

.page-home .home-platform__desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--c-silver);
  margin: 0 0 18px;
}

.page-home .home-platform__list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-home .home-platform__list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--c-text);
}

.page-home .home-platform__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  transform: rotate(45deg);
}

.page-home .home-platform__card--mobile .home-platform__list li::before {
  background: var(--c-green);
}

.page-home .home-platform__card--desktop .home-platform__list li::before {
  background: var(--c-blue);
}

/* ————— 热门球队速览 ————— */
.page-home .home-teams {
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: clamp(48px, 6vw, 80px);
  position: relative;
}

.page-home .home-teams__tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.page-home .home-teams__tab {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(197, 198, 199, 0.38);
  background: transparent;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  color: var(--c-silver);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  user-select: none;
}

.page-home .home-teams__tab:hover {
  border-color: var(--c-green);
  color: var(--c-text);
}

#home-view-radio:checked ~ .home-teams .home-teams__tab--home {
  background: var(--c-red);
  border-color: var(--c-red);
  color: var(--c-text);
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.3);
}

#away-view-radio:checked ~ .home-teams .home-teams__tab--away {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: var(--c-text);
  box-shadow: 0 4px 14px rgba(29, 111, 242, 0.3);
}

.page-home .home-teams__panels {
  display: block;
}

.page-home .home-teams__panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-card-gap);
}

.page-home .home-teams__panel--away {
  display: none;
}

#home-view-radio:checked ~ .home-teams .home-teams__panel--home {
  display: grid;
}

#home-view-radio:checked ~ .home-teams .home-teams__panel--away,
#away-view-radio:checked ~ .home-teams .home-teams__panel--home {
  display: none;
}

#away-view-radio:checked ~ .home-teams .home-teams__panel--away {
  display: grid;
}

.page-home .home-team-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--c-surface);
  border: 1px solid rgba(197, 198, 199, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.page-home .home-team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.page-home .home-team-card--home {
  border-left: 4px solid var(--c-red);
}

.page-home .home-team-card--away {
  border-left: 4px solid var(--c-blue);
}

.page-home .home-team-card__name {
  font-size: 1.2rem;
  font-weight: 900;
  font-style: italic;
  transform: skewX(-3deg);
  margin: 2px 0 0;
}

.page-home .home-team-card__info {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--c-silver);
  margin: 0 0 6px;
}

.page-home .home-team-card .arrow-link {
  margin-top: auto;
}

/* ————— 最新动态 ————— */
.page-home .home-updates {
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: clamp(48px, 6vw, 80px);
  background:
    linear-gradient(180deg, transparent 0%, rgba(183, 227, 26, 0.04) 100%);
}

.page-home .home-updates__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .home-update {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--c-surface);
  border: 1px solid rgba(197, 198, 199, 0.1);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.page-home .home-update:hover {
  background: #202d44;
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
}

.page-home .home-update__body {
  min-width: 0;
}

.page-home .home-update__title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.4;
}

.page-home .home-update__text {
  font-size: 0.9rem;
  color: var(--c-silver);
  line-height: 1.6;
  margin: 0;
}

.page-home .home-updates__more {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* ————— 品牌横幅 ————— */
.page-home .home-story {
  position: relative;
  padding: clamp(64px, 9vw, 110px) 0;
  background:
    radial-gradient(circle at 85% 30%, rgba(29, 111, 242, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(230, 57, 70, 0.32) 0%, transparent 45%),
    var(--c-bg);
  overflow: hidden;
}

.page-home .home-story::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-red), var(--c-blue), var(--c-green));
}

.page-home .home-story__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.page-home .home-story__eyebrow {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-green);
  margin: 0;
}

.page-home .home-story__title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
  font-style: italic;
  transform: skewX(-4deg);
  line-height: 1.08;
  margin: 0;
}

.page-home .home-story__text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-silver);
  margin: 0 0 14px;
}

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

/* ————— 动效 ————— */
@keyframes homeSpeedRush {
  from {
    transform: translateX(0) rotate(-12deg);
  }
  to {
    transform: translateX(-36px) rotate(-12deg);
  }
}

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

  .page-home .home-venue,
  .page-home .home-platform__card,
  .page-home .home-team-card,
  .page-home .home-update {
    transition: none;
  }
}

/* ————— 响应式 ————— */
@media (min-width: 640px) {
  .page-home .home-venues__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (min-width: 992px) {
  .page-home .home-chart__grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.8fr);
  }

  .page-home .home-chart__aside {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto 1fr auto;
  }

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

  .page-home .home-update {
    grid-template-columns: 140px minmax(0, 1fr) auto;
  }
}

@media (min-width: 1280px) {
  .page-home .home-chart__svg {
    padding: 14px;
  }
}
