/* ============================================================
   汽水音乐 SEO 站 · 增量样式（在 site.css 复刻基线之上追加）
   只允许新增组件，不改原站已有类名的视觉
   色板（取自原站真实计算值）：
     背景 #0f0f1a ｜ 主色 #00d4ff ｜ 渐变 #00d4ff → #7b2ffc
     文字 #ffffff ｜ 次级 rgba(255,255,255,.6) ｜ 弱化 rgba(255,255,255,.4)
     描边 rgba(255,255,255,.06) ｜ 卡片 rgba(255,255,255,.04)
   ============================================================ */

/* ---------- 无障碍：跳转到主内容 ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: #00d4ff;
  color: #08111c;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  font-weight: 700;
  font-size: 14px;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid #00d4ff;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 头部：当前页高亮 + 移动端抽屉 ---------- */
.header-nav a.active {
  color: #ffffff;
}

.header-nav a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-drawer {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-drawer a {
  padding: 11px 4px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-drawer a:last-child {
  border-bottom: none;
}

.nav-drawer a.active {
  color: #00d4ff;
}

.header.is-open .nav-drawer {
  display: flex;
}

/* ---------- 二级页 Hero ---------- */
.subhero {
  padding: 56px 0 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.subhero h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  max-width: 900px;
}

.subhero h1 .highlight,
.subhero .highlight {
  background: linear-gradient(135deg, #00d4ff, #7b2ffc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subhero p {
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.62);
  max-width: 820px;
}

.subhero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.subhero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding: 18px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #00d4ff;
}

.breadcrumb .sep {
  color: rgba(255, 255, 255, 0.2);
}

.breadcrumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- 下载按钮平台变体 ---------- */
.btn-download .btn-sub {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.7;
  display: block;
  line-height: 1.2;
}

.btn-download .btn-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

/* ---------- 规格 / 对照表 ---------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  margin: 8px 0 4px;
  -webkit-overflow-scrolling: touch;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}

.spec-table caption {
  caption-side: top;
  text-align: left;
  padding: 14px 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.spec-table th,
.spec-table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
  line-height: 1.65;
}

.spec-table th {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  white-space: nowrap;
}

.spec-table td {
  color: rgba(255, 255, 255, 0.6);
}

.spec-table tr:last-child td {
  border-bottom: none;
}

/* ---------- 步骤条（教程页） ---------- */
.steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 4px 0 8px;
}

.step {
  position: relative;
  padding: 20px 22px 20px 66px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 19px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #08111c;
  background: linear-gradient(135deg, #00d4ff, #7b2ffc);
}

.step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.58);
}

/* ---------- 提示块 ---------- */
.callout {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.66);
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.2);
  margin: 6px 0;
}

.callout strong {
  color: #00d4ff;
}

.callout.warn {
  background: rgba(123, 47, 252, 0.09);
  border-color: rgba(123, 47, 252, 0.28);
}

.callout.warn strong {
  color: #b388ff;
}

/* ---------- 目录（长文） ---------- */
.toc {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 6px 0 10px;
}

.toc-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 10px;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.toc a:hover {
  color: #00d4ff;
}

/* ---------- 列表卡摘要：固定两行，保证卡片等高（与原站节奏一致） ---------- */
.blog-card p,
.news-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 列表页筛选 / 分页 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 0 22px;
}

.filter-chip {
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: 0.25s;
}

.filter-chip:hover {
  color: #fff;
  border-color: rgba(0, 212, 255, 0.4);
}

.filter-chip.is-active {
  color: #08111c;
  font-weight: 600;
  border-color: transparent;
  background: linear-gradient(135deg, #00d4ff, #7b2ffc);
}

.page-hero {
  padding: 52px 0 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-hero h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
}

.page-hero p {
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.6);
  max-width: 840px;
}

/* ---------- 相关内容 / 站内推荐 ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: 0.3s;
}

.related-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.25);
}

.related-card .kicker {
  font-size: 12px;
  color: #00d4ff;
  letter-spacing: 0.04em;
}

.related-card h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.related-card p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- 结尾 CTA 带 ---------- */
.cta-band {
  margin: 10px 0 50px;
  padding: 38px 32px;
  border-radius: 18px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(0, 212, 255, 0.16), transparent 55%),
    radial-gradient(120% 140% at 100% 0%, rgba(123, 47, 252, 0.18), transparent 55%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.cta-band h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-band p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.58);
  max-width: 620px;
}

.cta-band .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 文章正文补充（表格 / 代码 / 脚注） ---------- */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 6px 0 10px;
}

.article-content th,
.article-content td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.7;
}

.article-content th {
  background: rgba(255, 255, 255, 0.04);
}

.article-content td {
  color: rgba(255, 255, 255, 0.65);
}

.article-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 212, 255, 0.1);
  color: #9fe8ff;
}

.article-content .note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.8;
  padding-top: 4px;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  padding-top: 22px;
  margin-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- 更新时间戳 / 站点声明 ---------- */
.footer-note {
  font-size: 12px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.32);
  max-width: 900px;
  padding-top: 6px;
}

.footer-note a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 15, 26, 0.86);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  transition: 0.25s;
}

.back-top.is-visible {
  display: flex;
}

.back-top:hover {
  color: #00d4ff;
  border-color: rgba(0, 212, 255, 0.5);
}

/* ---------- 首页追加：全平台下载入口 ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.platform-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: 0.3s;
}

.platform-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
}

.platform-card .pf-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
}

.platform-card .pf-head img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.platform-card p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  flex: 1;
}

.platform-card .pf-link {
  font-size: 13px;
  color: #00d4ff;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .platform-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 968px) {
  .subhero h1,
  .page-hero h1 {
    font-size: 32px;
  }

  .related-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* 原站在 968 以下直接隐藏全部导航链接，这里改成抽屉菜单，保证移动端可达性 */
  .nav-toggle {
    display: inline-flex;
  }

  .header-nav a:not(.btn-download-header) {
    display: none;
  }

  /* 移动端头部排成一行：Logo | 立即下载 | 汉堡，避免 CTA 被挤到第二行 */
  .header {
    gap: 8px;
  }

  .header-logo {
    height: 30px;
  }

  .header-brand {
    font-size: 17px;
  }

  .header-nav {
    order: 2;
    margin-left: auto;
    flex-wrap: nowrap;
    gap: 0;
  }

  .btn-download-header {
    padding: 9px 16px;
    font-size: 13px;
    white-space: nowrap;
  }

  .nav-toggle {
    order: 3;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
  }

  /* 抽屉排在整行之后，不能盖到 Logo 行上面 */
  .nav-drawer {
    order: 4;
    flex-basis: 100%;
  }

  .nav-drawer a {
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  /* Logo 图里已含「汽水音乐」字样，小屏隐藏重复的品牌文字，腾出宽度给 CTA 与汉堡 */
  .header-brand {
    display: none;
  }

  .subhero {
    padding: 36px 0 26px;
  }

  .subhero h1,
  .page-hero h1 {
    font-size: 26px;
  }

  .subhero p,
  .page-hero p {
    font-size: 14px;
  }

  .related-grid,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 26px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band h2 {
    font-size: 20px;
  }

  .step {
    padding: 18px 18px 18px 58px;
  }

  .back-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .header,
  .back-top,
  .cta-band,
  .footer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }
}
