/* ==========================================================================
   v6 改版样式（在所有页面里最后加载）
   1) 场景试听：圆形播放按钮 + 时长 + 底部入口
   2) 「一个工作台，四种做法」带预览插图的卡片
   3) 全站页脚：极简信息行 + 超大品牌字水印
   4) 页眉固定顶部
   5) 播放按钮统一去掉外发光
   ========================================================================== */

/* ---------------- 1. 场景试听 ---------------- */
.vf-scenes-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.vf-scenes-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(140deg, oklch(64% .19 322), oklch(58% .21 296));
  box-shadow: 0 10px 22px -14px oklch(58% .21 296 / .9);
}
.vf-clip-dur {
  color: var(--v-faint);
  font-variant-numeric: tabular-nums;
}
.vf-clip-play {
  display: grid;
  place-items: center;
  box-shadow: none !important;
}
.vf-clip-play.is-playing {
  color: oklch(99% 0 0);
  background: linear-gradient(140deg, oklch(64% .19 322), oklch(58% .21 296));
}
.vf-clip-play .vf-spin,
.vf-spin {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  animation: vfSpin .7s linear infinite;
}
@keyframes vfSpin { to { transform: rotate(360deg); } }
.vf-clip.is-playing {
  border-color: oklch(62% .16 315 / .55);
}
.vf-scenes-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--v-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.vf-scenes-link:hover { color: var(--v-accent); }

/* ---------------- 2. 四种做法 ---------------- */
.vf-modes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.vf-mode-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--v-border);
  border-radius: 22px;
  background: color-mix(in oklch, var(--v-surface) 92%, transparent);
  transition: border-color .2s, transform .2s;
}
.vf-mode-card:hover {
  border-color: color-mix(in oklch, var(--v-accent) 40%, var(--v-border));
  transform: translateY(-2px);
}
.vf-mode-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 168px;
  padding: 22px 22px 20px;
  background:
    radial-gradient(90% 120% at 20% 0%, color-mix(in oklch, oklch(62% .19 315) 16%, transparent), transparent 70%),
    color-mix(in oklch, var(--v-bg-deep, var(--v-bg)) 88%, transparent);
  border-bottom: 1px solid var(--v-border);
}
.vf-mp-text {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--v-ink);
  max-width: 30em;
}
.vf-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 30px;
  color: oklch(72% .16 312);
}
.vf-wave i {
  display: block;
  flex: 0 0 3px;
  width: 3px;
  border-radius: 2px;
  background: currentColor;
  opacity: .8;
}
.vf-wave-clone { color: oklch(70% .13 300); }
.vf-mp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 5px 11px;
  border: 1px solid var(--v-border);
  border-radius: 999px;
  background: var(--v-raised);
  color: var(--v-muted);
  font-size: 11.5px;
  font-weight: 600;
}
.vf-mp-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--v-border);
  border-radius: 12px;
  background: color-mix(in oklch, var(--v-raised) 70%, transparent);
}
.vf-mp-file-ico {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(140deg, oklch(64% .19 322), oklch(58% .21 296));
  flex: 0 0 auto;
}
.vf-mp-file-main { min-width: 0; flex: 1 1 auto; }
.vf-mp-file-main b { display: block; font-size: 12.5px; color: var(--v-ink); }
.vf-mp-file-main small { display: block; font-size: 11px; color: var(--v-faint); margin-top: 1px; }
.vf-mp-ok { color: oklch(72% .16 155); flex: 0 0 auto; }
.vf-mp-quote {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--v-border);
  border-radius: 12px;
  background: color-mix(in oklch, var(--v-raised) 70%, transparent);
  color: var(--v-ink);
  font-size: 12.5px;
  line-height: 1.7;
}
.vf-mp-quote svg { flex: 0 0 auto; margin-top: 3px; color: oklch(72% .16 312); }
.vf-mp-done {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  background: linear-gradient(100deg, oklch(66% .2 330), oklch(60% .21 300));
  box-shadow: 0 10px 22px -14px oklch(60% .21 300 / .9);
}
.vf-mp-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--v-muted);
}
.vf-mp-line em { font-style: normal; color: var(--v-ink); }
.vf-mp-role {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.vf-mp-role.r1 { background: oklch(56% .03 260); }
.vf-mp-role.r2 { background: oklch(52% .13 20); }
.vf-mp-role.r3 { background: oklch(52% .1 220); }
.vf-mode-body { padding: 18px 22px 22px; }
.vf-mode-body h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--v-ink); letter-spacing: -.01em; }
.vf-mode-body p { margin: 0; font-size: 13px; line-height: 1.75; color: var(--v-muted); }
.vf-mode-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--v-accent);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.vf-mode-link:hover { gap: 9px; }

/* ---------------- 3. 页脚（对照 voicefinch） ---------------- */
.vf-gf {
  margin-top: 72px;
  border-top: 1px solid var(--v-border);
  padding: 22px 0 12px;
  overflow: hidden;
  background: transparent;
}
.vf-gf-inner {
  max-width: 1168px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 12.5px;
  color: var(--v-faint);
}
.vf-gf-inner p { margin: 0; }
.vf-gf-inner a {
  color: var(--v-faint);
  text-decoration: none;
  transition: color .18s;
}
.vf-gf-inner a:hover { color: var(--v-ink); }
.vf-gf-inner img { max-height: 20px; width: auto; vertical-align: middle; }
.vf-gf-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

/* ---------------- 4. 页眉固定 ---------------- */
#voicefinchNav {
  position: sticky;
  top: 0;
  z-index: 80;
}
/* 外层 header 仍然透明，底板只做在整条导航框上 */
.voice-header,
.voice-header.is-stuck {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
/* 整条导航的圆角底板（恢复）：深色胶囊 + 细描边 + 毛玻璃，滚动时内容从底板后面穿过 */
.voice-landing.voice-v5 .voice-header .voice-nav,
.voice-header .voice-nav {
  background: #150e23 !important;
  border: 1px solid #2a1f3d !important;
  border-radius: 40px !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
  box-shadow: 0 20px 46px -32px rgba(0, 0, 0, .95) !important;
}
.voice-landing.voice-v5.is-light .voice-header .voice-nav,
.voice-landing.is-light .voice-header .voice-nav {
  background: rgba(255, 255, 255, .92) !important;
  border-color: rgba(24, 12, 48, .10) !important;
  box-shadow: 0 18px 40px -30px rgba(40, 24, 80, .45) !important;
}
/* 下拉菜单贴在导航上，滚动时跟随（提升层级避免被内容盖住） */
.voice-header .nav-drop,
.voice-header .voice-mobile-nav { z-index: 90; }

/* ---------------- 5. 播放按钮统一去阴影 ---------------- */
.vf-clip-play,
.vf-clip-play:hover,
.vf-clip-play:focus-visible,
.vt-round-play,
.vt-round-play:hover,
.hero-play { box-shadow: none !important; }

/* 场景试听的小圆按钮：不要 2px 描边（小尺寸下看着像一圈阴影） */
.vf-clip-play,
.vf-clip-play:hover,
.vf-clip-play:focus,
.vf-clip-play:focus-visible {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* ---------------- 6. 窄屏 ---------------- */
@media (max-width: 860px) {
  .vf-modes-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .vf-mode-preview { min-height: 150px; padding: 18px; }
  .vf-gf { margin-top: 56px; }
  .vf-gf-inner { padding: 0 18px; }
}

/* ---------------- 7. 联系我们二维码浮窗 ---------------- */
.vf-qr-mask {
  position: fixed;
  inset: 0;
  z-index: 9996;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(10, 6, 18, .66);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: vfQrFade .18s ease;
}
@keyframes vfQrFade { from { opacity: 0; } to { opacity: 1; } }
.vf-qr-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  padding: 24px 22px 22px;
  border-radius: 22px;
  text-align: center;
  color: var(--v-ink);
  background: var(--v-surface);
  border: 1px solid var(--v-border);
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .85);
}
.vf-qr-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.vf-qr-card p { margin: 0 0 16px; font-size: 12.5px; line-height: 1.7; color: var(--v-muted); }
.vf-qr-img {
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  display: inline-block;
}
.vf-qr-img img { display: block; width: 220px; height: 220px; object-fit: contain; border-radius: 8px; }
.vf-qr-empty {
  padding: 40px 12px;
  border-radius: 16px;
  border: 1px dashed var(--v-border);
  color: var(--v-faint);
  font-size: 12.5px;
  line-height: 1.8;
}
.vf-qr-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--v-muted);
  background: var(--v-raised);
}
.vf-qr-close:hover { color: var(--v-ink); }

/* ---------------- 8. 首页价格套餐卡（后台积分套餐渲染） ---------------- */
.vpr-plans-wrap { margin-top: 28px; }
.vpr-plans-title { margin: 0 0 18px; text-align: center; font-size: 17px; font-weight: 700; color: var(--v-ink); }
.vf-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.vf-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 20px;
  border: 1px solid var(--v-border);
  border-radius: 20px;
  background: color-mix(in oklch, var(--v-surface) 94%, transparent);
  transition: border-color .2s, transform .2s;
}
.vf-plan:hover { border-color: color-mix(in oklch, var(--v-accent) 45%, var(--v-border)); transform: translateY(-2px); }
.vf-plan.is-hot {
  border-color: color-mix(in oklch, var(--v-accent) 55%, var(--v-border));
  box-shadow: 0 26px 60px -42px oklch(60% .2 300 / .9);
}
.vf-plan-flag {
  position: absolute;
  top: -10px;
  right: 16px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(100deg, oklch(64% .19 322), oklch(58% .21 296));
}
.vf-plan h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: var(--v-ink); }
.vf-plan-min { margin: 0 0 12px; font-size: 12px; color: var(--v-faint); }
.vf-plan-old { margin: 0; font-size: 12px; color: var(--v-faint); }
.vf-plan-old s { opacity: .85; }
.vf-plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 2px 0 4px; }
.vf-plan-price b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--v-ink); }
.vf-plan-price span { font-size: 12px; color: var(--v-faint); }
.vf-plan-price em {
  font-style: normal;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(100deg, oklch(66% .2 330), oklch(60% .21 300));
}
.vf-plan-new { margin: 0 0 6px; font-size: 12px; color: var(--v-muted); }
.vf-plan-desc { margin: 6px 0 14px; font-size: 12.5px; line-height: 1.75; color: var(--v-muted); }
.vf-plan-btn {
  display: block;
  height: 42px;
  line-height: 42px;
  text-align: center;
  border-radius: 12px;
  border: 1px solid var(--v-border);
  color: var(--v-ink);
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none;
  transition: background .18s, border-color .18s, color .18s;
}
.vf-plan-btn:hover { border-color: var(--v-accent); color: var(--v-accent); }
.vf-plan.is-hot .vf-plan-btn {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(100deg, oklch(64% .19 322), oklch(58% .21 296));
  box-shadow: 0 14px 30px -18px oklch(60% .21 300 / .95);
}
.vf-plan-feats { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--v-border); display: grid; gap: 9px; }
.vf-plan-feats li { display: flex; gap: 7px; font-size: 12.5px; line-height: 1.6; color: var(--v-muted); }
.vf-plan-feats svg { flex: 0 0 auto; margin-top: 3px; color: oklch(72% .14 300); }
.vpr-empty { text-align: center; color: var(--v-faint); font-size: 13px; padding: 30px 0; }
.vpr-intro-when b { font-variant-numeric: tabular-nums; color: var(--v-ink); }

@media (max-width: 940px) {
  .vf-plan-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------- 9. 音频生成页：提示文案 + 参考音频上传 ---------------- */
.ag-tip {
  margin: 10px 2px 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--v-faint);
}
.ag-tip b { color: var(--v-muted); font-weight: 600; }
.ag-ref {
  margin-top: 14px;
  padding: 12px 14px 14px;
  border: 1px solid var(--v-border);
  border-radius: 14px;
  background: color-mix(in oklch, var(--v-raised) 55%, transparent);
}
.ag-ref-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ag-ref-label { font-size: 12.5px; font-weight: 650; color: var(--v-ink); }
.ag-ref-head small { font-size: 11.5px; color: var(--v-faint); }
.ag-ref-list { display: flex; flex-wrap: wrap; gap: 10px; }
.ag-ref-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 260px;
  padding: 7px 9px;
  border: 1px solid var(--v-border);
  border-radius: 11px;
  background: var(--v-surface);
}
.ag-ref-play {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(140deg, oklch(64% .19 322), oklch(58% .21 296));
}
.ag-ref-play.is-on { filter: brightness(1.15); }
.ag-ref-main { min-width: 0; flex: 1 1 auto; }
.ag-ref-main b { display: block; font-size: 12px; font-weight: 600; color: var(--v-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-ref-main small { display: block; font-size: 10.5px; color: var(--v-faint); margin-top: 1px; }
.ag-ref-main small.ag-ref-err { color: #ff8a8a; }
.ag-ref-del {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--v-faint);
  background: transparent;
}
.ag-ref-del:hover { color: var(--v-ink); background: var(--v-raised); }
.ag-ref-add {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border: 1px dashed color-mix(in oklch, var(--v-accent) 45%, var(--v-border));
  border-radius: 11px;
  cursor: pointer;
  color: var(--v-muted);
  background: transparent;
  font-size: 12.5px;
  font-family: inherit;
  transition: border-color .18s, color .18s;
}
.ag-ref-add:hover { border-color: var(--v-accent); color: var(--v-accent); }
.ag-ref-plus { font-size: 15px; line-height: 1; }
.ag-ref-add small { color: var(--v-faint); font-size: 11px; }

/* 顶部工具条：换行时也靠右 */
.ag-head { flex-wrap: wrap; }
.ag-head-right { margin-left: auto; justify-content: flex-end; }
@media (max-width: 720px) {
  .ag-head-right { margin-left: 0; justify-content: flex-start; }
  .ag-ref-item { max-width: 100%; }
}

/* 浮窗内不要出现浏览器默认焦点环（对话框自身可聚焦） */
.vfx-card:focus,
.vfx-card:focus-visible { outline: none; }
