/* ==========================================================================
   蛋蛋不语 · 内页共享样式
   Hero / 年度榜单 / 音乐榜 / 安装步骤 / FAQ / 下载平台网格
   内页（02-08）共用，各页仅按需叠加自己的少量规则
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 内页 Hero
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-block: 84px 76px;
  overflow: hidden;
}

/* 顶部氛围光 */
.page-hero::before {
  content: "";
  position: absolute;
  top: -300px;
  right: -180px;
  width: 780px;
  height: 580px;
  background: radial-gradient(
    ellipse at center,
    rgba(185, 160, 255, 0.14) 0%,
    rgba(185, 160, 255, 0.04) 44%,
    transparent 72%
  );
  pointer-events: none;
}

.page-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 64px;
  align-items: center;
}

.page-hero__eyebrow {
  margin-bottom: 20px;
}

.page-hero__title {
  font-size: 44px;
  line-height: 1.32;
}

/* 语义断行：每个 span 独占一行 */
.hero__line {
  display: block;
}

.page-hero__lede {
  margin-top: 20px;
  max-width: 500px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-3);
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* 无视觉区的 Hero（下载 / 指南 / 品牌落地页）：用平台标记网格填补右侧空白。
   注意：这里不要再写 grid-template-columns。基础 .page-hero__grid 已经是
   「520px 1fr」，而带 .page-hero--compact 前缀的选择器特异性更高（0,2,0 > 0,1,0），
   会把 @media (max-width:1080px) 里的单列覆盖顶掉 —— 结果在手机上第一列仍固定 520px，
   文字被裁切、右侧标记网格整块跑到屏幕外。 */
.page-hero--compact .page-hero__grid {
  align-items: center;
}

.mark-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--accent);
  transition: border-color 0.22s var(--ease);
}

.mark:hover {
  border-color: var(--accent-line);
}

.mark svg {
  width: 24px;
  height: 24px;
}

.mark__name {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
}

/* Hero 视觉 */
.page-hero__visual {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  overflow: visible;
}

.page-hero__shot {
  width: 84%;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.page-hero__phone {
  position: absolute;
  right: 0;
  bottom: 8px;
  width: 176px;
  padding: 8px;
  background: #0e0e14;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.6);
}

.page-hero__phone img {
  width: 100%;
  border-radius: 18px;
}

/* 浮层标签（音乐 / 阅读页） */
.overlay-tag {
  position: absolute;
  padding: 16px 20px;
  background: rgba(18, 17, 24, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.overlay-tag__label {
  font-size: 12px;
  color: var(--text-4);
}

.overlay-tag__value {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-2);
}

.overlay-tag--tl {
  top: 24px;
  left: 24px;
}

.overlay-tag--br {
  right: 24px;
  bottom: 24px;
}

/* 氛围图版 Hero（音乐 / 阅读） */
.page-hero__atmos {
  position: relative;
  height: 520px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.page-hero__atmos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__atmos::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 8, 12, 0.1) 0%,
    rgba(8, 8, 12, 0.55) 100%
  );
}

.page-hero__atmos .overlay-tag {
  z-index: 2;
}

/* --------------------------------------------------------------------------
   2. 年度榜单（影视页）
   -------------------------------------------------------------------------- */
.rank-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.rank-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 204px;
  padding: 26px 24px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.22s var(--ease);
}

.rank-card:hover {
  border-color: var(--accent-line);
}

.rank-card__year {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.rank-card__year--muted {
  color: #8f89a0;
}

.rank-card__title {
  margin-top: 6px;
  font-size: 17px;
  color: var(--text-2);
}

.rank-card__desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: #9a94a9;
}

/* --------------------------------------------------------------------------
   3. 音乐榜单（音乐页）
   -------------------------------------------------------------------------- */
.chart {
  display: grid;
  gap: 12px;
}

.chart-item {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.22s var(--ease);
}

.chart-item:hover {
  border-color: var(--accent-line);
}

.chart-item__rank {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  flex-shrink: 0;
}

.chart-item__rank--muted {
  color: #8f89a0;
}

.chart-item__body {
  flex: 1;
  min-width: 0;
}

.chart-item__song {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--text-2);
}

.chart-item__artist {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--text-4);
}

/* --------------------------------------------------------------------------
   4. 安装步骤（指南页）
   -------------------------------------------------------------------------- */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-4);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
    background 0.18s var(--ease);
}

.tab:hover {
  color: var(--text-2);
  border-color: var(--accent-line);
}

.tab[aria-selected="true"] {
  background: var(--accent-glow);
  border-color: var(--accent-line);
  color: var(--accent);
}

.tab svg {
  width: 17px;
  height: 17px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 199px;
  padding: 26px 24px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step__num {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.step__title {
  font-size: 18px;
  line-height: 1.4;
  color: var(--text-2);
}

.step__desc {
  font-size: 13.5px;
  line-height: 1.75;
  color: #9a94a9;
}

/* Tab 面板切换 */
.panel[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   5. FAQ（指南页）
   -------------------------------------------------------------------------- */
.faq {
  display: grid;
  gap: 12px;
}

.faq__item {
  padding: 24px 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.faq__q {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: #f2f0f7;
}

.faq__q svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 6px;
  color: var(--accent);
  transition: transform 0.22s var(--ease);
}

.faq__item[open] .faq__q svg {
  transform: rotate(45deg);
}

.faq__a {
  margin-top: 12px;
  padding-left: 28px;
  font-size: 14px;
  line-height: 1.8;
  color: #9a94a9;
}

.faq__item[open] .faq__a {
  animation: faqIn 0.26s var(--ease);
}

@keyframes faqIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   6. 下载页（07）
   -------------------------------------------------------------------------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.dl-platform {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 301px;
  padding: 28px 24px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.22s var(--ease);
}

.dl-platform:hover {
  border-color: var(--accent-line);
}

.dl-platform__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dl-platform__icon {
  color: var(--accent);
}

.dl-platform__icon svg {
  width: 26px;
  height: 26px;
}

.dl-platform__tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-4);
}

.dl-platform__name {
  font-size: 22px;
  color: var(--text-2);
}

.dl-platform__desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: #9a94a9;
}

.dl-platform__cta {
  margin-top: auto;
}

.dl-platform__meta {
  font-size: 13px;
  color: var(--text-4);
}

.dl-platform__guide {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

/* 资源 + 使用须知 */
.resources {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.resource {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 30px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.resource__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.resource__icon {
  color: var(--accent);
}

.resource__icon svg {
  width: 26px;
  height: 26px;
}

.resource__tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-4);
}

.resource__title {
  font-size: 24px;
  line-height: 1.4;
  color: var(--text-2);
}

.resource__desc {
  font-size: 14.5px;
  line-height: 1.8;
  color: #9a94a9;
}

.resource__caption {
  font-size: 12.5px;
  color: var(--text-5);
}

.resource__cta {
  margin-top: 6px;
  align-self: flex-start;
}

/* --------------------------------------------------------------------------
   7. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .page-hero__grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .page-hero__visual,
  .page-hero__atmos {
    height: auto;
    max-width: 720px;
    aspect-ratio: 16 / 10;
  }

  .rank-cards,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 680px) {
  .page-hero {
    padding-block: 52px 56px;
  }

  .page-hero__title {
    font-size: 30px;
  }

  .page-hero__lede {
    font-size: 15px;
  }

  .page-hero__phone {
    width: 132px;
    bottom: -12px;
  }

  .rank-cards,
  .steps,
  .download-grid,
  .resources {
    grid-template-columns: 1fr;
  }

  /* 设备标记：桌面 4 列在 390px 下每格不到 90px，「资源合集」这种四字标签会挤成一团。
     改 2 列，每格约 165px，标签能完整放下。 */
  .mark-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 360px;
  }

  .dl-platform,
  .step,
  .rank-card {
    min-height: 0;
  }

  .tabs {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    flex-shrink: 0;
  }
}
