/* ============================================
   rvcvoice.com — 高级感样式
   配色系统：深蓝墨色 + 青绿点缀
   ============================================ */

:root {
  --c-bg:        #f6f7f9;
  --c-surface:   #ffffff;
  --c-ink:       #1a1f2e;
  --c-ink-soft:  #4a5468;
  --c-muted:     #8a94a6;
  --c-line:      #e6e9ef;
  --c-brand:     #0f766e;
  --c-brand-2:   #14b8a6;
  --c-brand-dk:  #0b5d56;
  --c-code-bg:   #f1f3f7;
  --radius:      14px;
  --radius-sm:   9px;
  --shadow-sm:   0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --shadow-md:   0 4px 6px -1px rgba(16,24,40,.07), 0 2px 4px -1px rgba(16,24,40,.04);
  --shadow-lg:   0 18px 36px -10px rgba(15,118,110,.28);
  --maxw:        880px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

body, h1, h2, h3, p, a, ul, ol, li, code {
  margin: 0;
  padding: 0;
  text-decoration: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--c-bg);
  color: var(--c-ink);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  padding: 0;
}

/* ---------- 顶部：深色渐变 ---------- */
.site-header {
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 55%, #0f766e 100%);
  padding: 18px 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
}
/* 微妙光晕，增加层次不喧宾夺主 */
.site-header::before {
  content: "";
  position: absolute;
  top: -80px; right: 0;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(20,184,166,.30), transparent 62%);
  pointer-events: none;
}

.logo {
  float: none;
  font-size: 20px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: .3px;
  height: 38px;
  line-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  margin: 0;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.20);
}
.logo a { color: #fff; }

.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  color: rgba(255,255,255,.78);
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .18s, color .18s;
}
.nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav a.curr {
  color: #fff;
  font-weight: 600;
  background: rgba(255,255,255,.16);
}

/* ---------- 首屏 Hero（深色，延续 header 渐变） ---------- */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 55%, #0f766e 100%);
  color: #fff;
  padding: 44px 24px 52px;
  text-align: center;
  position: relative;
}
.hero h2 {
  color: #fff;
  font-size: 32px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: .2px;
}
.hero-desc {
  color: rgba(255,255,255,.82);
  font-size: 16px;
  max-width: 620px;
  margin: 0 auto 30px;
}

/* ---------- 下载按钮：主视觉 ---------- */
.download-box { margin: 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, var(--c-brand-2), var(--c-brand));
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .3px;
  padding: 16px 38px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s;
}
.btn::before {
  content: "↓";
  font-size: 18px;
  font-weight: 700;
}
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 22px 44px -10px rgba(15,118,110,.40);
  text-decoration: none;
}
.btn:active { transform: translateY(0); }

.meta {
  color: rgba(255,255,255,.62);
  font-size: 13px;
  margin-top: 14px;
  letter-spacing: .2px;
}

/* 备用镜像 */
.mirrors { margin-top: 22px; font-size: 14px; }
.mirrors-title { color: rgba(255,255,255,.55); margin-right: 4px; }
.mirrors a {
  color: rgba(255,255,255,.80);
  margin: 0 8px;
  padding: 5px 12px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.22);
  transition: background .18s;
}
.mirrors a:hover { background: rgba(255,255,255,.13); text-decoration: none; }

/* ---------- 内容卡片 ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.content {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px 32px;
  margin-top: 22px;
  transition: box-shadow .2s;
}
.content:hover { box-shadow: var(--shadow-md); }

h1 {
  font-size: 27px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-ink);
  margin-bottom: 18px;
  letter-spacing: .2px;
}
h2 {
  font-size: 21px;
  font-weight: 650;
  color: var(--c-ink);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-line);
  letter-spacing: .2px;
}
h3 {
  font-size: 17px;
  font-weight: 620;
  color: var(--c-brand-dk);
  margin: 22px 0 8px;
}

p { margin-bottom: 13px; color: var(--c-ink-soft); }
strong { color: var(--c-ink); font-weight: 620; }

ul, ol { padding-left: 22px; margin-bottom: 14px; }
li { margin-bottom: 7px; color: var(--c-ink-soft); }

/* 有序步骤：数字徽标，更精致 */
ol { list-style: none; padding-left: 0; counter-reset: step; }
ol li {
  counter-increment: step;
  position: relative;
  padding-left: 34px;
}
ol li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 3px;
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--c-brand-2), var(--c-brand));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
}

a { color: var(--c-brand); transition: color .15s; }
a:hover { color: var(--c-brand-dk); }

code {
  background: var(--c-code-bg);
  color: #b4536b;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-line);
  display: block;
}

/* FAQ 卡片稍作区分 */
.faq h3:first-of-type { margin-top: 4px; }

/* 相关页面链接 */
.related ul { list-style: none; padding-left: 0; display: grid; gap: 8px; }
.related li::before { content: "→"; color: var(--c-brand-2); margin-right: 8px; font-weight: 700; }
.related a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 8px;
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  font-size: 15px;
}
.related a:hover { background: #ccfbf1; text-decoration: none; }

/* ---------- 页脚 ---------- */
.site-footer {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding: 26px 20px 34px;
  text-align: center;
  color: var(--c-muted);
  font-size: 14px;
  border-top: 1px solid var(--c-line);
}
.site-footer a { color: var(--c-muted); }

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .site-header { padding: 14px 16px; }
  .logo { font-size: 17px; height: 34px; line-height: 34px; padding: 0 11px; }
  .nav a { font-size: 14px; padding: 7px 11px; }
  .hero { padding: 32px 18px 40px; }
  .hero h2 { font-size: 24px; }
  .hero-desc { font-size: 15px; }
  .btn { font-size: 16px; padding: 14px 26px; width: 100%; justify-content: center; }
  .content { padding: 22px 18px; border-radius: 12px; }
  h1 { font-size: 23px; }
  h2 { font-size: 19px; }
}

/* ---------- FAQ 增强 ---------- */
.faq h3 {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px dashed var(--c-line);
}
.faq h3:first-of-type {
  margin-top: 4px;
  padding-top: 0;
  border-top: none;
}
.faq ol { margin-top: 6px; }

/* "查看全部"引导链接 */
.faq-more {
  margin-top: 28px;
  text-align: center;
}
.faq-more a {
  display: inline-block;
  padding: 11px 26px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  font-weight: 600;
}
.faq-more a:hover {
  background: #ccfbf1;
  text-decoration: none;
}

/* faq.html 的 h2 问题标题（比首页 h3 更突出） */
.content > h2 {
  margin-top: 30px;
}
.content > h2:first-of-type {
  margin-top: 0;
}

/* ---------- 对比表格 ---------- */
.table-wrap {
  overflow-x: auto;          /* 手机端横向滚动，不错位 */
  margin: 16px 0 20px;
  -webkit-overflow-scrolling: touch;
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 720px;
}
table.compare th,
table.compare td {
  border: 1px solid var(--c-line);
  padding: 11px 13px;
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}
table.compare thead th {
  background: linear-gradient(135deg, var(--c-brand), var(--c-brand-dk));
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
table.compare tbody tr:nth-child(even) {
  background: #fafcfc;
}
table.compare tbody tr:hover {
  background: #f0fdfa;
}
table.compare td:first-child {
  white-space: nowrap;
  color: var(--c-ink);
}
table.compare code {
  font-size: 13px;
}

/* ---------- 音频流向流程图 ---------- */
.flow {
  background: var(--c-code-bg);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-brand-2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 14px 0 18px;
}
.flow code {
  background: none;
  padding: 0;
  color: var(--c-ink);
  font-size: 14px;
  line-height: 1.8;
  word-break: break-word;
}

/* ---------- 自检清单 ---------- */
ul.checklist {
  list-style: none;
  padding-left: 0;
}
ul.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}
ul.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c-brand-2);
  font-weight: 700;
  font-size: 16px;
}

/* ---------- 移动端表格提示 ---------- */
@media (max-width: 640px) {
  table.compare { font-size: 13px; min-width: 640px; }
  .table-wrap::after {
    content: "← 左右滑动查看完整表格 →";
    display: block;
    text-align: center;
    font-size: 12px;
    color: var(--c-muted);
    padding-top: 8px;
  }
}

/* ---------- 无障碍：尊重减少动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .btn:hover { transform: none; }
}

/* ---------- 面包屑导航 ---------- */
.breadcrumb {
  margin: 16px 2px 0;
  font-size: 13px;
  color: var(--c-muted);
}
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-brand); }
.breadcrumb .sep { margin: 0 7px; }
.breadcrumb .curr { color: var(--c-ink-soft); }

@media (max-width: 640px) {
  .breadcrumb { margin-top: 12px; font-size: 12px; }
}

/* ---------- 导航"更多"下拉 ---------- */
.nav-more { position: relative; }
.nav-more-btn {
  background: none;
  border: none;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,.78);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.nav-more-btn:hover,
.nav-more:focus-within .nav-more-btn { background: rgba(255,255,255,.12); color: #fff; }
.nav-more-btn .tri { font-size: 11px; margin-left: 4px; }
.nav-drop {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 132px;
  padding: 6px;
  background: #11302c;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(2,20,18,.38);
  z-index: 50;
}
/* 仅点击展开（.open 由 JS 切换）；不用 :hover/:focus-within，避免触屏粘滞常显 */
.nav-more.open .nav-drop { display: block; }
.nav-drop a {
  display: block;
  font-size: 14px;
  padding: 9px 14px;
  border-radius: 7px;
  white-space: nowrap;
  color: rgba(255,255,255,.82);
}
.nav-drop a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-drop a.curr { color: #fff; font-weight: 600; background: rgba(255,255,255,.14); }

/* 当前页在下拉内时，"更多"按钮也保持高亮 */
.nav-more-btn.drop-curr { color: #fff; font-weight: 600; background: rgba(255,255,255,.16); }

/* ---------- 窄屏导航：单行横滑，下拉两项平铺（置于文件末尾以覆盖基础规则） ---------- */
@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .logo { align-self: flex-start; }
  .nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;      /* Firefox 隐藏滚动条 */
    margin: 0 -16px;             /* 滑动区延伸至屏幕两缘 */
    padding: 0 16px 4px;
  }
  .nav::-webkit-scrollbar { display: none; }  /* Chrome/Safari 隐藏滚动条 */
  .nav a { font-size: 14px; padding: 7px 11px; white-space: nowrap; flex-shrink: 0; }
  /* 隐藏"更多"按钮，下拉两项直接平铺进导航行 */
  .nav-more {
    display: contents;           /* 按钮与菜单容器都不产生盒子 */
  }
  .nav-more-btn { display: none !important; }
  .nav-drop {
    display: contents;           /* 里面的两个 a 直接成为 .nav 的 flex 子项 */
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
  }
  .nav-drop a {
    display: inline-block;
    font-size: 14px;
    padding: 7px 11px;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* ---------- B站演示视频：16:9 响应式容器 ---------- */
.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;   /* 16:9 比例 */
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 14px 0 18px;
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}
