/* ==========================================================================
   蛋蛋不语 · 共享组件层
   导航 / 页脚 / 按钮 / 特性卡 / CTA / 语录
   所有内页复用，单页不引入框架
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 顶栏
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 16, 0.82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: var(--header-h);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo__mark {
  width: 34px;
  height: 34px;
  color: var(--accent);
  flex-shrink: 0;
}

.logo__mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.logo__text {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f5f3f9;
  white-space: nowrap;
}

/* 主导航 */
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  position: relative;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-4);
  transition: color 0.18s var(--ease);
}

.nav__link:hover {
  color: var(--text-2);
}

.nav__link[aria-current="page"] {
  color: var(--accent);
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* 汉堡按钮：仅移动端 */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  color: var(--text-2);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* --------------------------------------------------------------------------
   2. 按钮
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* 主按钮：紫色实心 */
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  background: var(--accent-soft);
}

/* 次按钮：描边 */
.btn--ghost {
  border: 1px solid var(--line);
  background: var(--raised);
  color: #d9d4e4;
}

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

/* 小尺寸（卡片内） */
.btn--sm {
  min-height: 39px;
  padding: 0 18px;
  font-size: 13px;
}

/* 文字链接按钮 */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  transition: opacity 0.18s var(--ease);
}

.link-arrow:hover {
  opacity: 0.75;
}

.link-arrow svg {
  width: 13px;
  height: 13px;
}

/* --------------------------------------------------------------------------
   3. 卡片通用
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.card:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
}

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

.card__desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: #9a94a9;
}

/* 序号标记 */
.card__num {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* 图标框 */
.icon-box {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(185, 160, 255, 0.1);
  color: var(--accent);
}

.icon-box svg {
  width: 22px;
  height: 22px;
}

/* --------------------------------------------------------------------------
   4. 特性卡（影视/直播/音乐/阅读页共用）
   -------------------------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

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

.feature__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  color: var(--accent);
}

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

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

.feature__desc {
  font-size: 14px;
  line-height: 1.78;
  color: #9a94a9;
}

.feature__caption {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--text-5);
}

/* --------------------------------------------------------------------------
   5. 统计卡（片库页）
   -------------------------------------------------------------------------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

.stat__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-glow);
  font-size: 12px;
  color: var(--accent);
}

.stat__badge--muted {
  background: rgba(138, 133, 151, 0.12);
  color: var(--text-4);
}

.stat__title {
  font-size: 21px;
  color: var(--text-2);
}

.stat__desc {
  font-size: 14px;
  line-height: 1.78;
  color: #9a94a9;
}

/* --------------------------------------------------------------------------
   6. 列表项（直播场景 / 音乐榜）
   -------------------------------------------------------------------------- */
.rank-item {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.22s var(--ease);
}

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

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

.rank-item__rank--muted {
  color: var(--text-4);
}

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

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

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

.rank-list {
  display: grid;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   7. 底部 CTA 带
   -------------------------------------------------------------------------- */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 46px 52px;
  background: linear-gradient(120deg, var(--raised) 0%, var(--surface) 62%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.cta__title {
  font-size: 28px;
  color: var(--text-2);
}

.cta__desc {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: #9a94a9;
}

.cta__actions {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   8. 页脚
   -------------------------------------------------------------------------- */
.footer {
  margin-top: 96px;
  padding: 64px 0 28px;
  border-top: 1px solid var(--line-soft);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* 页脚沿用较小的标识尺寸，与顶栏区分 */
.footer__brand .logo__mark {
  width: 28px;
  height: 28px;
}

.footer__brand-text {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: #e8e4f0;
}

.footer__tagline {
  margin-top: 16px;
  max-width: 340px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-4);
  white-space: pre-line;
}

.footer__col-title {
  margin-bottom: 16px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-5);
}

.footer__links {
  display: grid;
  gap: 11px;
}

.footer__links a {
  font-size: 14px;
  color: #b9b3c6;
  transition: color 0.18s var(--ease);
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--text-5);
}

/* --------------------------------------------------------------------------
   9. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  /* 汉堡菜单接管 */
  .nav-toggle {
    display: grid;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: #0b0b10;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease),
      visibility 0.2s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__link {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 15px;
  }

  .nav__link[aria-current="page"]::after {
    display: none;
  }

  .header__actions .btn {
    display: none;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    padding: 34px 30px;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 680px) {
  .features,
  .features--2 {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .rank-item {
    gap: 16px;
    padding: 18px 20px;
  }
}
