/* =============================================
   page-home — 米乐体育首页
   作用域：.page-home
   移动端优先 + 桌面媒体查询
   ============================================= */

/* ---------- 变量（仅在 page-home 内有效） ---------- */
.page-home {
  --ph-spacing-section: 4rem;
  --ph-hero-min-height: 90vh;
  --ph-title-size-mobile: 3.2rem;
  --ph-title-size-desktop: 6rem;
  --ph-tab-radius: 40px;
  --ph-decor-offset: 15%;
}

/* ---------- 首屏 · 对角色块 ---------- */
.page-home .hero-section {
  position: relative;
  min-height: var(--ph-hero-min-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--浅色背景, #FAFAF5);
}

/* 背景色块层 — 左右对角拼接 */
.page-home .hero-bg-layer {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52%;
  z-index: 0;
  pointer-events: none;
}

.page-home .hero-bg-left {
  left: 0;
  background: var(--天山蓝, #3A6B8F);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

.page-home .hero-bg-right {
  right: 0;
  background: var(--戈壁黄, #C8A96E);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}

/* 装饰斜线 */
.page-home .hero-decor {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    125deg,
    transparent,
    transparent 38px,
    rgba(255, 255, 255, 0.04) 38px,
    rgba(255, 255, 255, 0.04) 40px
  );
}

/* 内容层 */
.page-home .hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.page-home .hero-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.page-home .hero-title {
  font-family: var(--标题字体, 'Playfair Display', serif);
  font-size: var(--ph-title-size-mobile);
  font-weight: 900;
  line-height: 1.1;
  color: var(--雪白, #F5F5F0);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.page-home .hero-subtitle {
  font-family: var(--正文字体, 'Inter', sans-serif);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(245, 245, 240, 0.85);
  letter-spacing: 0.12em;
  margin: 0;
}

/* 右侧倒计时 + 按钮 + 图 */
.page-home .hero-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.page-home .countdown-widget {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.page-home .countdown-label {
  font-family: var(--正文字体, 'Inter', sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--天山蓝, #3A6B8F);
  background: rgba(245, 245, 240, 0.9);
  display: inline-block;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  align-self: flex-start;
}

.page-home .countdown-display {
  background: rgba(26, 26, 26, 0.75);
  backdrop-filter: blur(4px);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm, 8px);
  display: inline-block;
}

.page-home .countdown-digits {
  font-family: var(--数字字体, 'JetBrains Mono', monospace);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--赛博橙, #FF6B35);
  letter-spacing: 0.08em;
  line-height: 1;
}

/* 阵容下拉 */
.page-home .lineup-details {
  width: 100%;
  max-width: 280px;
}

.page-home .lineup-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
}

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

.page-home .lineup-list {
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  background: var(--雪白, #F5F5F0);
  border-radius: var(--radius-sm, 8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.page-home .lineup-item {
  font-family: var(--数字字体, 'JetBrains Mono', monospace);
  font-size: 0.85rem;
  color: var(--正文灰, #2C2C2C);
  padding: 0.3rem 0.5rem;
  border-left: 3px solid var(--赛博橙, #FF6B35);
  background: var(--浅色背景, #FAFAF5);
  border-radius: 2px;
}

/* 首屏配图 */
.page-home .hero-figure {
  margin: 0;
  width: 100%;
  max-width: 360px;
}

.page-home .hero-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm, 8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* ---------- 通用 section 标题 ---------- */
.page-home .section-title {
  font-family: var(--标题字体, 'Playfair Display', serif);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--正文灰, #2C2C2C);
  margin: 0 0 1.5rem;
  letter-spacing: 0.02em;
  position: relative;
  display: inline-block;
}

.page-home .section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--赛博橙, #FF6B35);
  margin-top: 0.4rem;
  border-radius: 4px;
}

/* ---------- 标签页区 ---------- */
.page-home .section-tabs {
  padding: var(--ph-spacing-section) 0;
  background: var(--浅色背景, #FAFAF5);
}

.page-home .tabs-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.page-home .tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 2px solid rgba(58, 107, 143, 0.15);
  padding-bottom: 0.75rem;
}

.page-home .tab-btn {
  font-family: var(--正文字体, 'Inter', sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1.4rem;
  border: none;
  border-radius: var(--ph-tab-radius);
  background: transparent;
  color: var(--正文灰, #2C2C2C);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.page-home .tab-btn:hover {
  background: rgba(58, 107, 143, 0.08);
}

.page-home .tab-btn.is-active {
  background: var(--天山蓝, #3A6B8F);
  color: var(--雪白, #F5F5F0);
  box-shadow: 0 2px 10px rgba(58, 107, 143, 0.3);
}

.page-home .tabs-content {
  min-height: 100px;
}

.page-home .tab-panel {
  display: none;
  padding: 0.75rem 0;
  font-family: var(--正文字体, 'Inter', sans-serif);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--正文灰, #2C2C2C);
}

.page-home .tab-panel.is-active {
  display: block;
}

.page-home .tab-panel p {
  margin: 0;
  max-width: 680px;
}

/* ---------- 高亮辅助 ---------- */
.page-home .highlight-green {
  color: var(--霓虹绿, #00E676);
  font-weight: 800;
  font-size: 1.2em;
}

.page-home .highlight-orange {
  color: var(--赛博橙, #FF6B35);
  font-weight: 800;
  font-size: 1.1em;
}

/* ---------- 临时查专区 ---------- */
.page-home .section-limited {
  padding: var(--ph-spacing-section) 0;
  background: var(--雪白, #F5F5F0);
}

.page-home .limited-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.page-home .limited-text {
  max-width: 520px;
}

.page-home .limited-lead {
  font-family: var(--正文字体, 'Inter', sans-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--正文灰, #2C2C2C);
  margin: 0 0 0.75rem;
}

.page-home .limited-desc {
  font-family: var(--正文字体, 'Inter', sans-serif);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--正文灰, #2C2C2C);
  margin: 0 0 1.5rem;
}

.page-home .limited-btn {
  display: inline-block;
}

.page-home .limited-figure {
  margin: 0;
  width: 100%;
  max-width: 200px;
}

.page-home .limited-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm, 8px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
}

/* ---------- 版本更新亮点 ---------- */
.page-home .section-update {
  padding: var(--ph-spacing-section) 0;
  background: var(--浅色背景, #FAFAF5);
}

.page-home .update-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}

.page-home .update-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.page-home .update-list li {
  font-family: var(--正文字体, 'Inter', sans-serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--正文灰, #2C2C2C);
  padding-left: 1.8rem;
  position: relative;
}

.page-home .update-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--天山蓝, #3A6B8F);
  font-weight: 700;
  font-size: 1.1rem;
}

.page-home .update-figure {
  margin: 0;
  width: 100%;
  max-width: 440px;
}

.page-home .update-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm, 8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ---------- 页脚上方氛围图 ---------- */
.page-home .section-atmosphere {
  line-height: 0;
  overflow: hidden;
}

.page-home .atmosphere-figure {
  margin: 0;
  width: 100%;
}

.page-home .atmosphere-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.75;
}

/* ---------- 响应式 · 桌面 (min-width: 768px) ---------- */
@media (min-width: 768px) {
  .page-home {
    --ph-hero-min-height: 85vh;
    --ph-title-size-mobile: 4.5rem;
    --ph-title-size-desktop: 6.5rem;
    --ph-spacing-section: 5rem;
  }

  /* 首屏两栏布局 */
  .page-home .hero-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
  }

  .page-home .hero-left {
    flex: 0 0 auto;
  }

  .page-home .hero-title {
    font-size: var(--ph-title-size-desktop);
    line-height: 1.05;
  }

  .page-home .hero-subtitle {
    font-size: 1.15rem;
  }

  .page-home .hero-right {
    flex: 0 0 42%;
    align-items: flex-end;
    text-align: right;
  }

  .page-home .countdown-widget {
    align-items: flex-end;
  }

  .page-home .countdown-label {
    align-self: flex-end;
  }

  .page-home .countdown-digits {
    font-size: 2.8rem;
  }

  .page-home .lineup-details {
    max-width: 260px;
  }

  .page-home .hero-figure {
    max-width: 400px;
  }

  /* 背景层桌面微调 */
  .page-home .hero-bg-left {
    width: 48%;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
  }

  .page-home .hero-bg-right {
    width: 52%;
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
  }

  /* 标签页 */
  .page-home .tabs-nav {
    gap: 0.75rem;
  }

  .page-home .tab-btn {
    font-size: 1rem;
    padding: 0.6rem 1.8rem;
  }

  /* 临时查专区 —— 并排 */
  .page-home .limited-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .page-home .limited-text {
    flex: 1 1 55%;
  }

  .page-home .limited-figure {
    flex: 0 0 220px;
  }

  /* 版本更新 —— 并排 */
  .page-home .update-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .page-home .update-text {
    flex: 1 1 55%;
  }

  .page-home .update-figure {
    flex: 0 0 380px;
  }

  .page-home .section-title {
    font-size: 2.2rem;
  }
}

/* ---------- 大桌面 (min-width: 1024px) ---------- */
@media (min-width: 1024px) {
  .page-home {
    --ph-title-size-desktop: 8rem;
    --ph-hero-min-height: 80vh;
  }

  .page-home .hero-right {
    flex-basis: 38%;
  }

  .page-home .countdown-digits {
    font-size: 3.2rem;
  }

  .page-home .hero-figure {
    max-width: 480px;
  }

  .page-home .limited-figure {
    flex-basis: 260px;
  }

  .page-home .update-figure {
    flex-basis: 440px;
  }
}
