/* ===== 乐鱼CN 首页 · 专属样式 ===== */
.page-home {
  --home-gap: clamp(18px, 2.6vw, 28px);
  --home-hero-title: clamp(2.8rem, 7vw, 5.6rem);
  --home-card-pad: clamp(22px, 3vw, 32px);
}

/* ---------- 首屏英雄区 ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 0;
  background:
    radial-gradient(ellipse 70% 55% at 82% 18%, rgba(255, 107, 53, 0.16), transparent 70%),
    linear-gradient(135deg, #0a1a3f 0%, #071229 48%, #050a18 100%);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-gold), var(--c-accent));
  opacity: 0.8;
  z-index: 2;
}

.page-home .hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
  position: relative;
  z-index: 2;
}

.page-home .home-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  margin-bottom: 16px;
}

.page-home .home-breadcrumb a {
  color: var(--c-accent);
  text-decoration: none;
}

.page-home .home-breadcrumb a:hover {
  color: var(--c-gold);
}

.page-home .home-kicker {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gold);
  background: rgba(247, 183, 51, 0.1);
  border: 1px solid rgba(247, 183, 51, 0.28);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}

.page-home .hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  font-size: var(--home-hero-title);
  color: var(--c-text);
  margin: 0 0 22px;
}

.page-home .hero-title-sub {
  display: block;
  font-size: 0.62em;
  font-weight: 500;
  color: #f0f4ff;
  letter-spacing: 0.04em;
  margin-top: 0.08em;
}

.page-home .hero-title-sub::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-gold));
  border-radius: 2px;
}

.page-home .hero-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--c-muted);
  max-width: 600px;
  margin: 0 0 28px;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.page-home .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 620px;
}

.page-home .hero-stats .stat-card {
  padding: 16px 14px;
  border-left: 2px solid var(--c-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(90deg, rgba(255, 107, 53, 0.14), rgba(255, 255, 255, 0.04));
}

.page-home .hero-stats .stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--c-text);
  display: block;
  line-height: 1.2;
}

.page-home .hero-stats .stat-label {
  font-size: 0.74rem;
  color: var(--c-muted);
  display: block;
  margin-top: 2px;
}

.page-home .hero-media-wrap {
  position: relative;
}

.page-home .hero-media {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(2, 6, 18, 0.5);
  transform: rotate(1.2deg);
}

.page-home .hero-media img {
  filter: saturate(1.1) contrast(1.05);
}

.page-home .vertical-note,
.page-home .deco-speedlines {
  display: none;
}

.page-home .deco-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  left: -120px;
  bottom: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 183, 51, 0.12), transparent 65%);
  pointer-events: none;
  z-index: 1;
}

/* ---------- 核心功能 Bento 区 ---------- */
.page-home .home-features {
  background: linear-gradient(180deg, var(--c-dark), var(--c-primary));
}

.page-home .section-head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(26px, 4vw, 48px);
  max-width: 780px;
}

.page-home .section-head .section-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--c-accent);
  text-transform: uppercase;
}

.page-home .section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.12;
  color: var(--c-text);
  margin: 0;
}

.page-home .section-lead {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--c-muted);
  margin: 0;
}

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

.page-home .feature-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-home .feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 53, 0.5);
  box-shadow: 0 18px 40px rgba(2, 6, 18, 0.4);
}

.page-home .feature-body {
  padding: var(--home-card-pad);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.page-home .feature-body h3,
.page-home .feature-duel h3,
.page-home .feature-client h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.2;
  color: var(--c-text);
  margin: 0;
}

.page-home .feature-body p,
.page-home .feature-duel p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--c-muted);
  margin: 0;
}

.page-home .feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .feature-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin-top: auto;
  padding-top: 8px;
}

.page-home .feature-stats .stat-card {
  text-align: left;
  background: var(--c-glass);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.page-home .feature-stats .stat-value {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--c-accent);
  display: block;
}

.page-home .feature-stats .stat-label {
  font-size: 0.72rem;
  color: var(--c-muted);
  display: block;
  margin-top: 2px;
}

/* 轮次更新卡图片 */
.page-home .feature-update-media {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 180px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-home .feature-update-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 10, 24, 0.55) 100%);
  pointer-events: none;
}

.page-home .feature-update-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 约战比试卡 */
.page-home .feature-duel {
  padding: var(--home-card-pad);
  justify-content: flex-start;
  background:
    linear-gradient(145deg, rgba(247, 183, 51, 0.08), transparent 55%),
    var(--c-glass);
}

.page-home .feature-duel h3 {
  margin-top: 6px;
}

.page-home .duel-steps {
  display: grid;
  gap: 10px;
  margin: 8px 0 20px;
  width: 100%;
}

.page-home .duel-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--c-text);
}

.page-home .duel-step-num {
  font-family: var(--font-mono);
  color: var(--c-gold);
  font-size: 0.8rem;
  min-width: 26px;
}

.page-home .feature-duel .btn {
  margin-top: auto;
}

/* 客户端卡 */
.page-home .feature-client {
  padding: 0;
}

.page-home .client-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 26px 20px 0;
  background: linear-gradient(135deg, rgba(10, 26, 63, 0.5), var(--c-dark));
  overflow: hidden;
}

.page-home .client-visual::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.25), transparent 70%);
  pointer-events: none;
}

.page-home .client-phone {
  width: min(150px, 60%);
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 36px rgba(2, 6, 18, 0.4);
  position: relative;
  z-index: 1;
}

.page-home .client-phone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .feature-client .feature-body {
  padding-top: 18px;
}

.page-home .feature-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: grid;
  gap: 8px;
  width: 100%;
}

.page-home .feature-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--c-text);
}

.page-home .feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--c-accent);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.page-home .feature-client .btn {
  margin-top: 14px;
}

/* 索引卡 */
.page-home .feature-index {
  padding: 0;
}

.page-home .index-axes {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

.page-home .index-axis {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 8px 8px 0;
}

.page-home .index-axis-icon {
  width: 14px;
  height: 14px;
  border: 2px solid var(--c-accent);
  border-radius: 3px;
  transform: rotate(45deg);
  background: rgba(255, 107, 53, 0.2);
}

.page-home .index-axis-label {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--c-text);
  letter-spacing: 0.06em;
}

.page-home .index-axis-detail {
  font-size: 0.85rem;
  color: var(--c-muted);
  text-align: right;
}

.page-home .feature-index .feature-body .btn {
  margin-top: 12px;
}

.page-home .feature-index-media {
  position: relative;
  aspect-ratio: 21 / 9;
  min-height: 160px;
  overflow: hidden;
}

.page-home .feature-index-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- 热门赛事速览 ---------- */
.page-home .home-matches {
  position: relative;
  background: var(--c-dark);
}

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

.page-home .match-card {
  padding: var(--home-card-pad);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  background: var(--c-glass);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-home .match-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 107, 53, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.page-home .match-card:hover {
  transform: translateY(-4px);
  background: var(--c-glass-strong);
}

.page-home .match-card:hover::before {
  opacity: 1;
}

.page-home .match-league,
.page-home .match-teams,
.page-home .match-meta {
  position: relative;
  z-index: 1;
}

.page-home .match-league {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.page-home .match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  font-family: var(--font-display);
}

.page-home .match-team {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.2;
}

.page-home .match-team:first-child {
  text-align: left;
}

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

.page-home .match-score {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--c-accent);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.page-home .match-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.page-home .match-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
  font-size: 0.86rem;
  color: var(--c-muted);
}

/* ---------- 资质与信任 ---------- */
.page-home .home-trust {
  background: linear-gradient(180deg, var(--c-primary) 0%, var(--c-dark) 100%);
}

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

.page-home .trust-card {
  padding: var(--home-card-pad);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  justify-content: center;
}

.page-home .trust-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--c-text);
  margin: 0;
}

.page-home .trust-card p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--c-muted);
  margin: 0;
}

.page-home .trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.page-home .trust-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

/* ---------- 桌面端增强 ---------- */
@media (min-width: 768px) {
  .page-home .hero-layout {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: clamp(28px, 5vw, 64px);
  }

  .page-home .vertical-note {
    display: block;
    position: absolute;
    right: 6px;
    bottom: 8px;
    transform: translateY(-6px) rotate(90deg);
    transform-origin: right bottom;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-gold);
    white-space: nowrap;
    z-index: 3;
  }

  .page-home .deco-speedlines {
    display: block;
    position: absolute;
    right: -40px;
    top: 12%;
    width: 360px;
    height: 640px;
    opacity: 0.22;
    background: repeating-linear-gradient(
      -65deg,
      transparent 0,
      transparent 18px,
      rgba(255, 255, 255, 0.1) 18px,
      rgba(255, 255, 255, 0.1) 19px
    );
    pointer-events: none;
    z-index: 1;
  }

  .page-home .home-feature-grid,
  .page-home .match-grid,
  .page-home .home-trust-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .page-home .span-4 {
    grid-column: span 4;
  }

  .page-home .span-6 {
    grid-column: span 6;
  }

  .page-home .span-8 {
    grid-column: span 8;
  }

  .page-home .span-12 {
    grid-column: span 12;
  }

  /* 轮次更新：横向布局 */
  .page-home .feature-update {
    flex-direction: row;
  }

  .page-home .feature-update-media {
    flex: 0 0 42%;
    aspect-ratio: auto;
    min-height: 100%;
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
  }

  .page-home .feature-update .feature-body {
    flex: 1;
  }

  /* 索引：横向布局 */
  .page-home .feature-index {
    flex-direction: row;
  }

  .page-home .feature-index .feature-body {
    flex: 1;
  }

  .page-home .feature-index-media {
    flex: 0 0 40%;
    aspect-ratio: auto;
    min-height: 100%;
  }

  .page-home .feature-index-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 10, 24, 0.45), transparent 40%);
    z-index: 1;
    pointer-events: none;
  }

  /* 匹配卡片高度统一 */
  .page-home .match-card {
    min-height: 230px;
  }

  .page-home .match-team {
    font-size: 1.5rem;
  }
}

/* ---------- 大屏细节优化 ---------- */
@media (min-width: 1280px) {
  .page-home .hero-copy {
    padding-right: 16px;
  }

  .page-home .hero-stats {
    gap: 14px;
  }

  .page-home .feature-stats {
    gap: 14px;
  }

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

  .page-home .index-axis {
    grid-template-columns: 1fr;
    gap: 8px;
    border-left: 3px solid var(--c-accent);
    border-radius: 10px;
    padding: 16px;
  }

  .page-home .index-axis-detail {
    text-align: left;
  }
}
