/* ========== 声成 VoxDone · nanfu 风格：纯黑底 + 浅灰卡片 + 红色点缀 ========== */
:root {
  --brand: #E60008;
  --brand-2: #ff2b33;
  --brand-grad: linear-gradient(135deg, #E60008, #ff2b33);
  --bg: #000000;
  --bg-2: #0a0a0c;
  --bg-3: #111114;
  --card: #EFFEFE;
  --card-2: #dfeaea;
  --text: #0a0a0a;
  --text-2: #7d858c;
  --border: #d9e4e4;
  --ok: #16a34a;
  --warn: #d97706;
  --err: #E60008;
  --radius: 13px;
  --shadow: 0 2px 14px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 880px; margin: 0 auto;
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { font-size: 17px; font-weight: 700; }
.brand b { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.container { max-width: 880px; margin: 0 auto; padding: 16px 14px 24px; }
.view { animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.hero { text-align: center; padding: 14px 6px 18px; }
.hero h1 {
  margin: 0 0 6px; font-size: 25px;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { margin: 0; color: var(--text-2); font-size: 14px; }

/* ---------- 上传区 ---------- */
.dropzone {
  background: var(--card); border: 2px dashed #b8c8c8; border-radius: var(--radius);
  padding: 30px 18px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s, transform .05s;
}
.dropzone:hover, .dropzone:focus { border-color: var(--brand); background: #fff; outline: none; }
.dropzone.drag { border-color: var(--brand); background: rgba(230, 0, 8, .06); }
.dropzone:active { transform: scale(.995); }
.dz-icon { font-size: 38px; }
.dz-title { font-weight: 600; margin-top: 6px; }
.dz-sub { color: var(--text-2); font-size: 12.5px; margin-top: 4px; }

.file-meta {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: none;
  border-radius: var(--radius); padding: 12px 14px; margin-top: 10px;
}
.fm-icon { font-size: 24px; }
.fm-info { flex: 1; min-width: 0; }
.fm-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-size { color: var(--text-2); font-size: 12.5px; }

.section-title { font-size: 16px; margin: 20px 2px 10px; color: #fff; }

/* ---------- 模板卡片（nanfu 大卡风格） ---------- */
.preset-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.preset-card {
  background: var(--card); border: 2px solid transparent; border-radius: var(--radius);
  padding: 13px 14px; cursor: pointer; text-align: left;
  font: inherit; color: inherit;
  transition: border-color .15s, background .15s, transform .25s ease;
}
.preset-card:hover { transform: translateY(-3px); }
.preset-card .pc-label { font-weight: 700; font-size: 14.5px; }
.preset-card .pc-desc {
  color: var(--text-2); font-size: 12px; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.preset-card.active { border-color: var(--brand); background: #fff; }
.preset-card.active .pc-label { color: var(--brand); }
.preset-desc { color: var(--text-2); font-size: 12.5px; margin: 8px 4px 0; min-height: 18px; }

/* ---------- 高级选项 ---------- */
.adv { margin-top: 14px; background: var(--card); border: none; border-radius: var(--radius); }
.adv summary { padding: 11px 14px; cursor: pointer; font-weight: 600; font-size: 14px; }
.adv-body { padding: 2px 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: var(--text-2); }
.field select {
  padding: 9px 10px; border: 1px solid var(--border); border-radius: 7px;
  font-size: 15px; background: #fff; color: var(--text);
}
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); }
.check input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--brand); }
.adv-tip { font-size: 12.5px; color: var(--warn); }

/* ---------- 按钮（nanfu 风格：红底黑字、方正圆角） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 7px;
  padding: 10px 16px; font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none; color: var(--text);
  background: var(--card-2); transition: filter .12s, opacity .12s, transform .08s, background .12s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  background: var(--brand); color: #000;
  box-shadow: 0 4px 18px rgba(230, 0, 8, .35);
  border-color: transparent;
}
.btn-primary:hover { filter: brightness(1.12); }
.btn-primary:disabled { box-shadow: none; }
.btn-ghost { background: transparent; color: #aab2b8; }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.06); }
.btn-outline { background: var(--card); border-color: transparent; color: var(--text); }
.btn-outline:hover { background: #fff; }
.btn-sm { padding: 7px 11px; font-size: 13px; border-radius: 6px; }
.btn-block { width: 100%; }

.btn-block#btn-start { margin-top: 16px; padding: 13px; font-size: 16px; }
.privacy-hint { text-align: center; color: var(--text-2); font-size: 12px; margin: 12px 8px 0; }

/* ---------- 进度 ---------- */
.card {
  background: var(--card); border: none;
  border-radius: var(--radius); padding: 14px;
}
.progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.progress-stage { font-weight: 700; font-size: 15px; }
.progress-percent { font-variant-numeric: tabular-nums; color: var(--brand); font-weight: 700; }
.progress-track { height: 9px; border-radius: 99px; background: var(--card-2); margin: 10px 0 6px; overflow: hidden; }
.progress-bar {
  height: 100%; border-radius: 99px; background: var(--brand);
  transition: width .4s ease;
}
.progress-file { color: var(--text-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log-panel { margin-top: 10px; }
.log-panel summary { font-size: 13px; color: var(--text-2); cursor: pointer; }
.logs {
  background: #08080a; color: #c8cce0; border-radius: 10px;
  padding: 10px 12px; font-size: 12px; line-height: 1.55;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  max-height: 230px; overflow-y: auto; white-space: pre-wrap; word-break: break-all;
  margin: 8px 0 0;
}
#btn-retry { margin-top: 12px; }

/* ---------- 结果 tabs ---------- */
.tabs {
  display: flex; gap: 4px; position: sticky; top: 52px; z-index: 40;
  background: var(--bg); padding: 8px 0; margin: -4px 0 10px;
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 auto; border: none; background: var(--card-2); color: var(--text);
  padding: 9px 14px; border-radius: 7px; font-size: 13.5px; font-weight: 700;
  cursor: pointer; white-space: nowrap; font-family: inherit;
  transition: background .15s, color .15s;
}
.tab.active { background: var(--brand); color: #000; box-shadow: 0 4px 14px rgba(230, 0, 8, .3); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadein .2s ease; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.export-group, .edit-group, .edit-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 成稿 markdown ---------- */
.draft-md { font-size: 15px; }
.draft-md h1, .draft-md h2, .draft-md h3 { line-height: 1.35; margin: 18px 0 8px; }
.draft-md h1 { font-size: 20px; } .draft-md h2 { font-size: 18px; } .draft-md h3 { font-size: 16px; }
.draft-md p { margin: 8px 0; }
.draft-md ul, .draft-md ol { padding-left: 22px; margin: 8px 0; }
.draft-md li { margin: 4px 0; }
.draft-md blockquote { margin: 8px 0; padding: 4px 12px; border-left: 3px solid var(--brand); color: var(--text-2); background: rgba(230, 0, 8, .06); border-radius: 0 8px 8px 0; }
.draft-md table { border-collapse: collapse; width: 100%; font-size: 13.5px; display: block; overflow-x: auto; }
.draft-md th, .draft-md td { border: 1px solid var(--border); padding: 6px 9px; text-align: left; }
.draft-md th { background: var(--card-2); }
.draft-md code { background: var(--card-2); padding: 1px 5px; border-radius: 5px; font-size: 13px; }
.draft-md hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

.src-btn {
  display: inline-flex; align-items: center; gap: 3px;
  border: 1px solid rgba(230, 0, 8, .3); background: rgba(230, 0, 8, .1); color: var(--brand);
  border-radius: 99px; padding: 2px 10px; font-size: 12px; font-weight: 600;
  cursor: pointer; margin: 2px 4px 2px 0; font-family: inherit;
}
.src-btn:active { transform: scale(.95); }
.src-caption { color: var(--text-2); font-size: 12.5px; margin: 10px 4px; }

.draft-editor { width: 100%; min-height: 55vh; border: 1px solid var(--border); border-radius: 8px; padding: 12px; font-size: 13.5px; line-height: 1.6; font-family: ui-monospace, Consolas, monospace; resize: vertical; background: #fff; color: var(--text); }
.edit-actions { margin-top: 10px; }

.warn {
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  border-radius: 12px; padding: 10px 13px; font-size: 13.5px; margin-bottom: 10px;
}

/* ---------- 音频对照 ---------- */
.sync-card { padding: 0; overflow: hidden; }
#sync-audio { width: 100%; display: block; position: sticky; top: 97px; z-index: 10; background: #fff; }
.seg-list { max-height: 62vh; overflow-y: auto; }
.seg {
  display: flex; gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid var(--border); cursor: pointer;
  transition: background .12s;
}
.seg:active { background: rgba(0, 0, 0, .05); }
.seg.active { background: rgba(230, 0, 8, .08); }
.seg.flash { animation: flash 1.2s ease; }
@keyframes flash { 0% { background: rgba(230, 0, 8, .22); } 100% { background: rgba(230, 0, 8, .08); } }
.seg-time {
  flex: 0 0 auto; font-size: 11.5px; color: var(--brand);
  font-variant-numeric: tabular-nums; font-family: ui-monospace, Consolas, monospace;
  padding-top: 2px;
}
.seg-speaker {
  display: inline-block; font-size: 11px; font-weight: 700; color: #000;
  background: #ffd6d8; border-radius: 6px; padding: 0 7px; margin-right: 7px;
}
.seg-speaker[data-spk="S01"] { background: #ffb3b6; }
.seg-speaker[data-spk="S02"] { background: #c7f0d8; }
.seg-speaker[data-spk="S03"] { background: #cde8ff; }
.seg-speaker[data-spk="S04"] { background: #ffe9b8; }
.seg-speaker[data-spk="S05"] { background: #e2d5ff; }
.seg-speaker[data-spk="S06"] { background: #b8e6ff; }
.seg-text { font-size: 14.5px; }

/* ---------- 文本视图 ---------- */
.mono-view {
  white-space: pre-wrap; word-break: break-word;
  font-size: 13.5px; line-height: 1.7; font-family: inherit;
  max-height: none; margin: 0;
}

/* ---------- toast / footer ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(31,36,48,.92); color: #fff; padding: 9px 18px;
  border-radius: 99px; font-size: 13.5px; z-index: 100;
  animation: fadein .2s ease;
}
.footer { text-align: center; color: #9aa0b2; font-size: 11.5px; padding: 18px 16px 0; }

.loading-hint { color: var(--text-2); font-size: 13.5px; grid-column: 1/-1; text-align: center; padding: 14px; }

/* ---------- 导航栏 ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  animation: nav-drop .5s ease backwards;
}
.navbar-inner {
  max-width: 1080px; margin: 0 auto;
  padding: 0 16px; height: 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.navbar .brand {
  font-size: 16px; font-weight: 700; text-decoration: none; color: #fff;
  white-space: nowrap;
}
.navbar .brand b { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  text-decoration: none; color: rgba(255, 255, 255, .65); font-size: 14px; font-weight: 500;
  padding: 6px 12px; border-radius: 8px; transition: background .12s, color .12s;
}
.nav-links a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-user { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.nav-user .nu-name { font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.nav-user .nu-quit { border: none; background: none; cursor: pointer; color: rgba(255, 255, 255, .5); font-size: 13px; padding: 4px 6px; border-radius: 6px; }
.nav-user .nu-quit:hover { color: var(--brand); }

/* 配额进度条 */
.quota-bar { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, .6); }
.quota-track { width: 50px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.quota-fill { height: 100%; border-radius: 99px; background: var(--brand); transition: width .3s; }

/* ---------- 首页容器 ---------- */
.landing-container { max-width: 1080px; margin: 0 auto; padding: 0 16px 30px; }

/* ---------- Hero 区 ---------- */
.hero-section {
  text-align: center;
  padding: 72px 16px 56px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(230, 0, 8, .18) 0%, transparent 70%),
              linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-radius: 0 0 32px 32px;
  margin-bottom: 40px;
}
.hero-section::before {
  content: "";
  position: absolute; top: -80px; left: 50%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(230, 0, 8, .25) 0%, transparent 60%);
  transform: translateX(-50%);
  pointer-events: none;
  filter: blur(40px);
}
.hero-title {
  margin: 0 0 14px; font-size: 36px; font-weight: 900; letter-spacing: -0.5px;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative; z-index: 1;
}
.hero-sub { margin: 0 auto 28px; color: var(--text-2); font-size: 15px; max-width: 480px; line-height: 1.7; position: relative; z-index: 1; }
.hero-cta { font-size: 16px; padding: 14px 36px; position: relative; z-index: 1; }
.hero-tip { color: var(--text-2); font-size: 12.5px; margin: 16px 0 0; position: relative; z-index: 1; }

/* ---------- 功能卡片（nanfu 大卡：无边框、hover 上浮） ---------- */
.features {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  margin-bottom: 40px;
}
.feature-card {
  background: var(--card); border: none; border-radius: var(--radius);
  padding: 26px 18px; text-align: center;
  transition: transform .3s ease, background .3s ease;
}
.feature-card:hover { transform: translateY(-4px); background: #fff; }
.feature-icon { font-size: 32px; margin-bottom: 10px; }
.feature-card h3 { margin: 0 0 6px; font-size: 16px; }
.feature-card p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.6; }

/* ---------- 模板展示 ---------- */
.templates {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px;
  margin-bottom: 40px;
}
.template-card {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: var(--card); border: none; border-radius: var(--radius);
  padding: 18px 10px; text-align: center;
  transition: transform .3s ease, background .3s ease;
}
.template-card:hover { transform: translateY(-3px); background: #fff; }
.tc-icon { font-size: 24px; }
.tc-name { font-weight: 700; font-size: 14px; }
.tc-desc { color: var(--text-2); font-size: 11.5px; }

/* ---------- 定价 ---------- */
.pricing { display: grid; grid-template-columns: 1fr; gap: 11px; margin-bottom: 40px; }
.price-card {
  background: var(--card); border: 2px solid transparent; border-radius: var(--radius);
  padding: 26px 20px; text-align: center;
  transition: transform .3s ease;
}
.price-card:hover { transform: translateY(-4px); }
.price-free { border-color: var(--brand); }
.price-pro { opacity: .8; }
.price-label { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.price-amount { font-size: 30px; font-weight: 900; color: var(--brand); margin-bottom: 16px; }
.price-amount span { font-size: 15px; font-weight: 400; color: var(--text-2); }
.price-pro .price-amount { font-size: 18px; color: var(--text-2); }
.price-features { list-style: none; padding: 0; margin: 0 0 18px; text-align: left; }
.price-features li { padding: 5px 0; font-size: 14px; color: var(--text); }

/* ---------- 底部 CTA ---------- */
.bottom-cta {
  text-align: center; padding: 40px 16px 20px;
}
.bottom-cta h2 { font-size: 24px; margin: 0 0 18px; color: #fff; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 16px;
  background: #000;
}
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px; color: #7d858c;
}
.footer-inner a { color: #7d858c; text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }

/* ---------- 登录/注册（nanfu 风格深色科技风） ---------- */
#view-login { padding: 0 !important; max-width: none !important; }
.auth-wrapper {
  min-height: calc(100vh - 52px);
  display: flex;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
/* 左侧品牌视觉区 */
.auth-brand {
  display: none;
  background: linear-gradient(135deg, #1a0002 0%, #0d0d0f 50%, #1a0002 100%);
  position: relative;
  overflow: hidden;
  padding: 60px 56px;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
}
.auth-brand::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(230, 0, 8, .35) 0%, transparent 55%);
  transform: translate(-50%, -50%);
  filter: blur(60px);
  animation: pulse-glow 4s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: .72; transform: translate(-50%, -50%) scale(1.1); }
}
.auth-brand::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}
.auth-brand-logo {
  position: relative; z-index: 1;
  font-size: 20px; font-weight: 800; color: #fff;
}
.auth-brand-logo b { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-brand-content { position: relative; z-index: 1; }
.auth-brand-slogan {
  font-size: 56px; font-weight: 900; line-height: 1.05; letter-spacing: -1px;
  color: #fff; margin: 0 0 16px;
}
.auth-brand-slogan span { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-brand-desc { color: #9aa2ab; font-size: 15px; line-height: 1.7; max-width: 420px; margin: 0; }
.auth-brand-stats { display: flex; gap: 32px; position: relative; z-index: 1; }
.auth-brand-stat-num { font-size: 32px; font-weight: 900; color: var(--brand); }
.auth-brand-stat-label { font-size: 12px; color: #9aa2ab; text-transform: uppercase; letter-spacing: 1px; }

/* 右侧表单区 */
.auth-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: var(--bg);
  position: relative;
}
.auth-side::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .1), transparent);
}

.auth-card {
  width: 100%; max-width: 420px;
  background: rgba(16, 16, 18, .72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(230, 0, 8, .15);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5),
              0 0 0 1px rgba(230, 0, 8, .05);
  position: relative;
}
.auth-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  border-radius: 20px 20px 0 0;
}
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-title {
  font-size: 28px; font-weight: 900; color: #fff; margin: 0 0 6px;
  letter-spacing: -0.5px;
}
.auth-subtitle { color: #98a2ab; font-size: 14px; margin: 0; }

.auth-tabs {
  display: flex; gap: 4px; margin-bottom: 24px;
  background: rgba(255, 255, 255, .04);
  border-radius: 12px; padding: 4px;
  border: 1px solid rgba(255, 255, 255, .08);
}
.auth-tab {
  flex: 1; border: none; background: none; padding: 10px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .55); cursor: pointer; font-family: inherit;
  transition: all .15s;
}
.auth-tab.active {
  background: var(--brand); color: #000;
  box-shadow: 0 4px 16px rgba(230, 0, 8, .3);
}
.auth-form { display: flex; flex-direction: column; gap: 16px; }
/* 修复：display:flex 会覆盖 HTML hidden 属性，必须显式还原 */
.auth-field[hidden] { display: none; }
.auth-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, .55); font-weight: 500; }
.auth-field input {
  padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px;
  font-size: 15px; background: rgba(255, 255, 255, .04);
  color: #fff; font-family: inherit;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.auth-field input::placeholder { color: #6b6b76; }
.auth-field input:focus {
  outline: none; border-color: var(--brand);
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 0 0 3px rgba(230, 0, 8, .15);
}
.pw-hint { color: rgba(255, 255, 255, .4); font-weight: 400; font-size: 11.5px; }

/* 全局修复：任何 display 值都会覆盖 HTML hidden 属性，这里强制还原 */
[hidden] { display: none !important; }

/* ---------- 管理员后台 ---------- */
.admin-tabs { display: flex; gap: 8px; margin: 14px 0 16px; }
.admin-tab {
  border: 1px solid var(--border); background: var(--card); color: var(--text-2);
  padding: 8px 18px; border-radius: 99px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all .15s;
}
.admin-tab.active { background: var(--brand-grad); color: #fff; border-color: transparent; }
.admin-panel { display: none; }
.admin-panel.active { display: block; animation: fadein .2s ease; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 11px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 14px; box-shadow: var(--shadow);
}
.stat-val { font-size: 24px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-label { color: var(--text-2); font-size: 12.5px; margin-top: 4px; }

.admin-scroll { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-table {
  width: 100%; border-collapse: collapse; background: var(--card);
  font-size: 13px; min-width: 640px;
}
.admin-table th {
  text-align: left; padding: 11px 12px; color: var(--text-2); font-weight: 600;
  background: #eef0f6; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text); }
.admin-table tbody tr:hover { background: #f8f9fd; }
.admin-table tr:last-child td { border-bottom: none; }
.td-email { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-file { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-admin {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px;
  background: var(--brand-grad); color: #fff; font-size: 10.5px; font-weight: 600; vertical-align: 1px;
}
.tag-status { font-size: 12px; font-weight: 600; }
.st-done { color: var(--ok); }
.st-error { color: var(--err); }
.st-running, .st-queued { color: var(--warn); }

/* 忘记密码 / 返回登录 链接行 */
.auth-alt-row { display: flex; justify-content: flex-end; margin: -6px 0 0; }
.auth-alt-link { color: rgba(255, 255, 255, .5); font-size: 12.5px; text-decoration: none; transition: color .15s; }
.auth-alt-link:hover { color: var(--brand); }

/* 验证码输入行：输入框 + 发送按钮 */
.code-row { display: flex; gap: 8px; }
.code-row input {
  flex: 1; min-width: 0;
  padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px;
  font-size: 16px; letter-spacing: 4px; background: rgba(255, 255, 255, .04);
  color: #fff; font-family: inherit;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.code-row input:focus {
  outline: none; border-color: var(--brand);
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 0 0 3px rgba(230, 0, 8, .15);
}
.code-row .btn { white-space: nowrap; padding: 8px 12px; flex-shrink: 0; }
.auth-error {
  background: rgba(230, 0, 8, .12); border: 1px solid rgba(230, 0, 8, .3);
  color: #ff6b72; border-radius: 10px; padding: 10px 12px; font-size: 13px;
}
.auth-note { text-align: center; color: rgba(255, 255, 255, .45); font-size: 12px; margin: 16px 0 0; }

/* 桌面端显示左侧品牌区 */
@media (min-width: 768px) {
  .auth-brand { display: flex; }
  .auth-side { padding: 48px; }
}
/* 移动端全屏 */
@media (max-width: 767px) {
  .auth-wrapper { flex-direction: column; }
  .auth-side { padding: 24px 16px; }
  .auth-card { padding: 28px 20px; }
  .auth-side::before { display: none; }
}

/* ---------- 历史记录 ---------- */
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 2px solid transparent; border-radius: var(--radius);
  padding: 13px 15px; cursor: pointer;
  transition: border-color .15s, transform .25s ease;
}
.history-item:hover { border-color: var(--brand); transform: translateY(-2px); }
.history-item .hi-icon { font-size: 22px; }
.history-item .hi-info { flex: 1; min-width: 0; }
.history-item .hi-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-item .hi-meta { color: var(--text-2); font-size: 12px; }
.history-item .hi-status { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.hi-status.done { background: #dcfce7; color: #166534; }
.hi-status.error { background: #fef2f2; color: #991b1b; }
.hi-status.running, .hi-status.queued { background: #fef9c3; color: #854d0e; }
.history-empty { text-align: center; color: var(--text-2); padding: 40px 16px; font-size: 14px; }

/* ---------- 工具页标题居中 ---------- */
.section-title.center { text-align: center; margin: 30px 0 16px; }

/* ==================================================
   入场动画（进入网址 / 切换视图时播放）
   ================================================== */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes glow-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* 首页 Hero：标题→副标题→按钮→提示 依次上滑 */
.hero-title    { animation: rise-in .7s cubic-bezier(.22,.61,.36,1) .1s backwards; }
.hero-sub      { animation: rise-in .7s cubic-bezier(.22,.61,.36,1) .25s backwards; }
.hero-cta      { animation: rise-in .7s cubic-bezier(.22,.61,.36,1) .4s backwards; }
.hero-tip      { animation: glow-in .8s ease .6s backwards; }
.hero-section::before { animation: glow-in 1.6s ease backwards; }

/* 首页功能卡：依次上滑 */
.features .feature-card { animation: rise-in .6s cubic-bezier(.22,.61,.36,1) backwards; }
.features .feature-card:nth-child(1) { animation-delay: .15s; }
.features .feature-card:nth-child(2) { animation-delay: .25s; }
.features .feature-card:nth-child(3) { animation-delay: .35s; }
.features .feature-card:nth-child(4) { animation-delay: .45s; }

/* 首页模板网格：波浪式入场 */
.templates .template-card { animation: rise-in .55s cubic-bezier(.22,.61,.36,1) backwards; }
.templates .template-card:nth-child(1)  { animation-delay: .1s; }
.templates .template-card:nth-child(2)  { animation-delay: .15s; }
.templates .template-card:nth-child(3)  { animation-delay: .2s; }
.templates .template-card:nth-child(4)  { animation-delay: .25s; }
.templates .template-card:nth-child(5)  { animation-delay: .3s; }
.templates .template-card:nth-child(6)  { animation-delay: .35s; }
.templates .template-card:nth-child(7)  { animation-delay: .4s; }
.templates .template-card:nth-child(8)  { animation-delay: .45s; }
.templates .template-card:nth-child(9)  { animation-delay: .5s; }
.templates .template-card:nth-child(10) { animation-delay: .55s; }

/* 定价卡 */
.price-card { animation: rise-in .6s cubic-bezier(.22,.61,.36,1) .2s backwards; }
.pricing .price-card:nth-child(2) { animation-delay: .32s; }
.bottom-cta { animation: rise-in .7s ease .3s backwards; }

/* 工具页：上传区 + 标题依次入场 */
#view-upload .hero    { animation: rise-in .6s cubic-bezier(.22,.61,.36,1) .05s backwards; }
#view-upload .dropzone{ animation: rise-in .6s cubic-bezier(.22,.61,.36,1) .15s backwards; }
#view-upload .section-title { animation: rise-in .6s cubic-bezier(.22,.61,.36,1) .25s backwards; }
#view-upload .preset-grid { animation: rise-in .6s cubic-bezier(.22,.61,.36,1) .3s backwards; }
#view-upload .adv, #view-upload #btn-start { animation: rise-in .6s cubic-bezier(.22,.61,.36,1) .4s backwards; }

/* 历史页 */
#view-history .section-title { animation: rise-in .6s cubic-bezier(.22,.61,.36,1) .05s backwards; }
#view-history .history-list  { animation: rise-in .6s cubic-bezier(.22,.61,.36,1) .15s backwards; }

/* 登录页：品牌区文字逐行上滑 + 表单卡片缩放浮现 */
.auth-brand-logo    { animation: rise-in .6s cubic-bezier(.22,.61,.36,1) .05s backwards; }
.auth-brand-slogan  { animation: rise-in .8s cubic-bezier(.22,.61,.36,1) .2s backwards; }
.auth-brand-desc    { animation: rise-in .8s cubic-bezier(.22,.61,.36,1) .4s backwards; }
.auth-brand-stats   { animation: rise-in .8s cubic-bezier(.22,.61,.36,1) .55s backwards; }
.auth-brand::before { animation: glow-in 1.8s ease backwards, pulse-glow 4s ease-in-out 1.8s infinite; }
.auth-card          { animation: scale-in .7s cubic-bezier(.22,.61,.36,1) .3s backwards; }
.auth-header        { animation: rise-in .6s ease .45s backwards; }
.auth-tabs          { animation: rise-in .6s ease .55s backwards; }
.auth-form          { animation: rise-in .6s ease .65s backwards; }
.auth-note          { animation: glow-in .8s ease .8s backwards; }

/* 系统开启「减少动画」时：跳过所有入场动画，直接显示最终状态 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- 桌面端 ---------- */
@media (min-width: 680px) {
  body { font-size: 15.5px; }
  .container { padding: 22px 20px 30px; }
  .hero h1 { font-size: 30px; }
  .preset-grid { grid-template-columns: repeat(3, 1fr); gap: 11px; }
  .preset-card .pc-desc { -webkit-line-clamp: 2; }
  .tabs { position: static; }
  #sync-audio { position: static; }
  .seg-list { max-height: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .templates { grid-template-columns: repeat(3, 1fr); }
  .pricing { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin-left: auto; margin-right: auto; }
  .hero-title { font-size: 44px; }
}
@media (min-width: 900px) {
  .preset-grid { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(4, 1fr); }
  .templates { grid-template-columns: repeat(5, 1fr); }
}

