.page-home {
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow: hidden;
}

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

.page-home .section {
  position: relative;
  padding: 72px 0;
}

/* ===== Hero 首屏 ===== */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + 32px) 20px 56px;
  overflow: hidden;
  margin-bottom: 8px;
}

.page-home .home-hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(11, 15, 25, 0.16) 0%, rgba(11, 15, 25, 0.72) 46%, rgba(11, 15, 25, 0.96) 100%),
    var(--bg);
}

.page-home .home-hero__backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 28%, var(--accent-2), transparent),
    radial-gradient(2px 2px at 72% 18%, var(--accent), transparent),
    radial-gradient(1px 1px at 38% 62%, var(--text), transparent),
    radial-gradient(1.6px 1.6px at 88% 58%, var(--accent-2), transparent),
    radial-gradient(1.2px 1.2px at 20% 82%, var(--accent), transparent);
  animation: fb-home-particles 10s ease-in-out infinite alternate;
}

.page-home .home-hero__backdrop::after {
  content: "";
  position: absolute;
  right: -14%;
  top: 8%;
  width: 56%;
  height: 68%;
  background: linear-gradient(135deg, var(--jewel-indigo), rgba(255, 107, 53, 0.22));
  transform: skew(-9deg);
  border: 2px solid rgba(0, 194, 255, 0.22);
  opacity: 0.65;
}

@keyframes fb-home-particles {
  0% { transform: translate3d(0, 0, 0); opacity: 0.5; }
  100% { transform: translate3d(0, -18px, 0); opacity: 1; }
}

.page-home .home-hero__img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 38px;
  width: 100%;
}

.page-home .home-hero__tag {
  margin-bottom: 18px;
  box-shadow: var(--glow-accent);
}

.page-home .home-hero__title {
  font-family: var(--font-head);
  font-size: var(--display);
  line-height: 1.08;
  margin: 0 0 18px;
  transform: skew(-2deg);
  text-shadow: 0 0 42px rgba(255, 107, 53, 0.18);
}

.page-home .home-hero__lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 22px;
}

.page-home .home-hero__ribbon {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.page-home .home-hero__ribbon-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

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

.page-home .home-hero__stat {
  background: var(--surface);
  border: 2px solid var(--border);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.25);
  padding: 18px 10px;
  text-align: center;
  transform: skew(-2deg);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.page-home .home-hero__stat:hover {
  transform: skew(-2deg) translateY(-4px);
  box-shadow: 10px 10px 0 rgba(0, 194, 255, 0.2);
  border-color: rgba(0, 194, 255, 0.5);
}

.page-home .home-hero__num {
  display: block;
  font-family: var(--font-head);
  font-size: var(--h2);
  color: var(--accent);
  text-shadow: var(--glow-accent);
}

.page-home .home-hero__desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ===== 通用标题 ===== */
.page-home .home-heading {
  margin-bottom: 32px;
}

.page-home .home-heading__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.page-home .home-heading--center {
  text-align: center;
}

.page-home .home-heading--center .home-heading__kicker {
  justify-content: center;
}

.page-home .section-title {
  font-family: var(--font-head);
  font-size: var(--h2);
  transform: skew(-2deg);
  margin: 0 0 12px;
}

.page-home .home-heading__lead {
  color: var(--text-secondary);
  max-width: 720px;
}

.page-home .home-heading--center .home-heading__lead {
  margin-left: auto;
  margin-right: auto;
}

.page-home .skew-band {
  display: inline-block;
  background: var(--surface-alt);
  border-left: 3px solid var(--accent);
  padding: 4px 10px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  transform: skew(-4deg);
  color: var(--text-secondary);
}

/* ===== 球队库 Bento ===== */
.page-home .home-lib {
  background:
    radial-gradient(ellipse at 8% 12%, rgba(0, 194, 255, 0.06), transparent 42%),
    var(--bg);
}

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

.page-home .home-bento .panel,
.page-home .home-bento__cta {
  border-radius: var(--radius);
}

.page-home .home-bento__title {
  font-family: var(--font-head);
  font-size: var(--h3);
  margin: 0 0 14px;
  transform: skew(-2deg);
}

.page-home .home-bento__chart {
  padding: 24px 18px;
  overflow: hidden;
  box-shadow: var(--shadow), var(--glow-blue);
  border-top: 4px solid var(--accent-2);
}

.page-home .home-bento__chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.page-home .home-bento__legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.page-home .home-bento__legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.page-home .home-bento__legend-dot--off {
  background: var(--accent);
}

.page-home .home-bento__legend-dot--def {
  background: var(--accent-2);
}

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

.page-home .home-chart__grid {
  fill: none;
  stroke: var(--border);
  stroke-width: 1.2;
  stroke-dasharray: 4 6;
}

.page-home .home-chart__axis {
  stroke: var(--border);
  stroke-width: 1.2;
}

.page-home .home-chart__area--off {
  fill: rgba(255, 107, 53, 0.2);
  stroke: var(--accent);
  stroke-width: 2.4;
}

.page-home .home-chart__area--def {
  fill: rgba(0, 194, 255, 0.16);
  stroke: var(--accent-2);
  stroke-width: 2.4;
}

.page-home .home-chart__label {
  fill: var(--text-secondary);
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 600;
}

.page-home .home-bento__note {
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.page-home .home-bento__facts {
  padding: 24px 18px;
  box-shadow: var(--shadow);
}

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

.page-home .home-bento__list li {
  padding-left: 18px;
  position: relative;
  color: var(--text);
}

.page-home .home-bento__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
}

.page-home .home-bento__history {
  padding: 24px 18px;
  box-shadow: var(--shadow);
}

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

.page-home .home-timeline li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}

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

.page-home .home-timeline strong {
  font-family: var(--font-head);
  color: var(--accent-2);
  min-width: 50px;
}

.page-home .home-bento__visual {
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.page-home .home-bento__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

.page-home .home-bento__cta {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(0, 194, 255, 0.08)),
    var(--surface);
  border: 2px solid var(--border);
  padding: 28px 24px;
  box-shadow: 10px 10px 0 rgba(255, 107, 53, 0.16);
  transform: skew(-1deg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-home .home-bento__cta:hover {
  transform: skew(-1deg) translateY(-4px);
  box-shadow: 14px 14px 0 rgba(0, 194, 255, 0.18);
}

.page-home .home-bento__cta-title {
  font-family: var(--font-head);
  font-size: var(--h3);
  margin: 0 0 8px;
  transform: skew(-2deg);
}

.page-home .home-bento__cta-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

/* ===== 联赛导航 ===== */
.page-home .home-leagues {
  background: linear-gradient(180deg, var(--bg), var(--surface) 140%);
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  padding: 72px 0;
  position: relative;
}

.page-home .home-leagues::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.page-home .home-leagues__track {
  display: flex;
  gap: 10px;
  padding: 8px 4px 18px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) var(--surface);
}

.page-home .home-leagues__tab {
  flex: 0 0 auto;
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-head);
  font-size: 0.9rem;
  padding: 10px 18px;
  transform: skew(-2deg);
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.page-home .home-leagues__tab.is-active,
.page-home .home-leagues__tab:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--glow-accent);
}

.page-home .home-leagues__features {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.page-home .home-leagues__feature {
  padding: 24px 20px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-home .home-leagues__feature:hover {
  transform: translateY(-4px);
  box-shadow: 12px 12px 0 rgba(0, 194, 255, 0.12);
}

.page-home .home-leagues__feature h3 {
  font-family: var(--font-head);
  font-size: var(--h3);
  margin: 0 0 8px;
  transform: skew(-2deg);
  color: var(--accent-2);
}

.page-home .home-leagues__feature p {
  margin: 0;
  color: var(--text-secondary);
}

/* ===== 小屏端 ===== */
.page-home .home-mobile {
  background:
    radial-gradient(ellipse at 82% 20%, rgba(0, 194, 255, 0.07), transparent 48%),
    var(--bg);
}

.page-home .home-mobile__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.page-home .home-mobile__media {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.page-home .home-mobile__halo {
  position: absolute;
  inset: 8% 0;
  background: radial-gradient(ellipse at center, rgba(0, 194, 255, 0.16), transparent 68%);
  pointer-events: none;
  animation: fb-home-breathe 4s ease-in-out infinite;
}

@keyframes fb-home-breathe {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 1; }
}

.page-home .home-mobile__phone {
  width: min(280px, 72%);
  border-radius: 28px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 194, 255, 0.12);
  position: relative;
  z-index: 1;
}

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

.page-home .home-mobile__item {
  background: var(--surface-alt);
  border: 2px solid var(--border);
  padding: 14px 12px;
  text-align: center;
  font-weight: 600;
  transform: skew(-2deg);
  box-shadow: 0 0 16px rgba(0, 194, 255, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.page-home .home-mobile__item:hover {
  border-color: var(--accent);
  box-shadow: var(--glow-accent);
}

/* ===== 内容目录 ===== */
.page-home .home-catalog {
  background: linear-gradient(180deg, var(--surface), var(--bg) 160%);
}

.page-home .home-catalog__grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.page-home .home-catalog__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.page-home .home-catalog__stat {
  background: var(--surface);
  border: 2px solid var(--border);
  padding: 20px 12px;
  text-align: center;
  box-shadow: var(--shadow);
}

.page-home .home-catalog__stat .stat__value {
  color: var(--accent-2);
  text-shadow: var(--glow-blue);
  display: block;
  font-family: var(--font-head);
  font-size: var(--h3);
}

.page-home .home-catalog__stat .stat__label {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.page-home .home-catalog__visual img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===== 问题反馈中心 ===== */
.page-home .home-feedback {
  padding-top: 8px;
}

.page-home .home-feedback__panel {
  display: grid;
  gap: 28px;
  padding: 28px 22px;
  box-shadow: var(--shadow), 14px 14px 0 rgba(91, 26, 42, 0.4);
}

.page-home .home-feedback__types {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 18px 0;
}

.page-home .home-feedback__types li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 8px 14px;
  font-weight: 600;
  font-size: 0.9rem;
}

.page-home .home-feedback__note {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

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

.page-home .home-feedback__drawer {
  background: var(--bg);
  border: 2px solid var(--border);
  box-shadow: 16px 16px 0 var(--jewel-burgundy);
  padding: 20px 16px;
  width: min(360px, 100%);
  transform: skew(-1deg);
}

.page-home .home-feedback__drawer-title {
  display: block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.page-home .home-feedback__drawer-stage {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--border);
}

.page-home .home-feedback__drawer-stage:last-child {
  border-bottom: 0;
}

.page-home .home-feedback__drawer-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-2);
  border-radius: 50%;
  flex: 0 0 8px;
  box-shadow: 0 0 12px rgba(0, 194, 255, 0.6);
}

/* ===== 平板 ===== */
@media (min-width: 640px) {
  .page-home .home-mobile__list {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .page-home .home-bento__chart {
    grid-column: span 2;
  }

  .page-home .home-bento__visual {
    grid-column: span 1;
  }

  .page-home .home-bento__cta {
    grid-column: span 1;
  }

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

  .page-home .home-feedback__panel {
    padding: 36px 30px;
  }
}

/* ===== 桌面 ===== */
@media (min-width: 1024px) {
  .page-home .section {
    padding: 88px 0;
  }

  .page-home .home-hero__inner {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 48px;
    align-items: center;
  }

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

  .page-home .home-bento {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-flow: dense;
    gap: 24px;
  }

  .page-home .home-bento__chart {
    grid-column: 1 / 9;
    grid-row: 1 / 3;
    padding: 28px 24px;
  }

  .page-home .home-bento__facts {
    grid-column: 9 / 13;
  }

  .page-home .home-bento__history {
    grid-column: 9 / 13;
  }

  .page-home .home-bento__visual {
    grid-column: 1 / 6;
    grid-row: 3 / 5;
  }

  .page-home .home-bento__cta {
    grid-column: 6 / 13;
    grid-row: 3 / 4;
    padding: 32px 28px;
  }

  .page-home .home-bento__visual img {
    min-height: 100%;
  }

  .page-home .home-mobile__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
  }

  .page-home .home-mobile__phone {
    width: min(360px, 90%);
  }

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

  .page-home .home-catalog__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }

  .page-home .home-catalog__visual img {
    max-height: 100%;
  }

  .page-home .home-feedback__panel {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    padding: 48px 44px;
  }

  .page-home .home-feedback__preview {
    justify-content: flex-end;
  }
}
