/* ==========================================================================
   文案提取 · 设计系统 v2（浅色编辑器风）
   暖白底 / 墨色文字 / 克制靛蓝 / 微暖描边 / 线性图标
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* 色板 */
  --bg: #f6f6f3;
  --surface: #ffffff;
  --surface-2: #fbfbf8;
  --surface-3: #f1f1ec;
  --ink: #1c1d1a;
  --ink-2: #4b4c46;
  --ink-3: #83847b;
  --ink-4: #b0b1a7;
  --line: #e5e4dd;
  --line-strong: #d3d2c9;

  /* 主强调：沉稳靛蓝 */
  --acc: #3d4fc0;
  --acc-hi: #33459f;
  --acc-soft: #eaeefb;
  --acc-softer: #f4f6fd;
  --acc-line: #cdd6f0;

  /* 语义色（沉稳） */
  --ok: #2e7d57;
  --ok-soft: #e6f2ec;
  --danger: #b6443a;
  --danger-soft: #f9eae8;
  --warn: #a06a12;
  --warn-soft: #faf1e0;

  /* 深色媒体舞台 */
  --stage: #14151a;
  --stage-2: #1e2027;

  /* 圆角/阴影（低饱和细阴影，避免模板感） */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --shadow-xs: 0 1px 2px rgba(24, 24, 20, 0.04);
  --shadow: 0 1px 2px rgba(24, 24, 20, 0.04), 0 6px 20px rgba(24, 24, 20, 0.05);
  --shadow-lg: 0 2px 6px rgba(24, 24, 20, 0.05), 0 18px 44px rgba(24, 24, 20, 0.09);

  /* 字体 */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(61, 79, 192, 0.16); }
img { max-width: 100%; }
a { color: var(--acc); text-decoration: none; }
a:hover { color: var(--acc-hi); }
b, strong { font-weight: 650; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.container.ct2 { max-width: 850px; }
.container.wide { max-width: 1360px; }

/* 线性图标（内联 SVG，stroke 继承 currentColor） */
.ic { width: 16px; height: 16px; flex: none; vertical-align: -2.5px; }
.ic-lg { width: 20px; height: 20px; }
.ic-xl { width: 24px; height: 24px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: var(--r-sm);
  border: 1px solid transparent; background: transparent; color: var(--ink-3);
  cursor: pointer; transition: 0.15s; flex: none;
}
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 22px; height: 60px; }
.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 17.5px; font-weight: 750; color: var(--ink); letter-spacing: -0.01em;
}
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 30px; height: 30px; flex: none; border-radius: 8px;
  background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.logo-mark .ic { width: 16px; height: 16px; }
.logo-sub { color: var(--ink-3); font-weight: 600; font-size: 14.5px; }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 7px 11px; border-radius: 7px;
  color: var(--ink-2); font-size: 14.5px; font-weight: 550;
  transition: 0.15s; white-space: nowrap;
}
.nav-links a .ic { width: 15px; height: 15px; color: var(--ink-3); }
.nav-links a:hover { background: var(--surface-3); color: var(--ink); }
.nav-links a.on { color: var(--acc); background: var(--acc-soft); }
.nav-links a.on .ic { color: var(--acc); }
.nav-user { display: flex; align-items: center; gap: 8px; }
.nav-user a, .nav-user button { font-size: 14px; }
/* 未登录：顶部右侧一个低调的「登录」小按钮（纯文字、细描边，不喧宾夺主） */
.nav-login {
  padding: 5px 12px; font-size: 13px; border-radius: 6px;
  background: var(--surface); color: var(--acc);
  border: 1px solid var(--acc-line); box-shadow: none;
}
.nav-login:hover { background: var(--acc-soft); color: var(--acc-hi); border-color: var(--acc); }
/* 顶部导航去图标后纯文字：收紧水平内边距，给更多菜单项留出横向空间 */
.nav-links a { padding: 6px 10px; }
/* 登录态：个人中心胶囊入口（历史/管理/退出已收纳进个人中心左侧菜单） */
.nav-me {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 3px 12px 3px 4px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow-xs); transition: 0.15s;
}
.nav-me:hover { border-color: var(--acc-line); background: var(--acc-softer); box-shadow: var(--shadow); }
.nav-me .nav-me-av {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--acc), #6d80e6); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12.5px;
}
.nav-me .nav-me-name {
  color: var(--ink); font-weight: 600; font-size: 13.5px;
  max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 窄屏逐级精简导航文字，避免按钮换行挤爆导航条 */
@media (max-width: 900px) { .hide-sm { display: none; } }
@media (max-width: 560px) { .nav-me { padding-right: 8px; } }

/* 今日剩余次数胶囊（计费额度显性化；管理员/不限时不显示） */
.nav-quota {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 999px; cursor: pointer;
  font-size: 12.5px; font-weight: 600; color: var(--acc);
  background: var(--acc-soft); border: 1px solid var(--acc-line);
  transition: 0.15s; white-space: nowrap;
}
.nav-quota .ic { width: 13px; height: 13px; }
.nav-quota b { font-weight: 800; }
.nav-quota:hover { background: var(--acc-softer); box-shadow: var(--shadow); }
.nav-quota.zero { color: var(--danger); background: #f9ecea; border-color: #ecd2ce; }

/* AI 创作主按钮：通栏渐变大按钮 + 呼吸光晕引导（首次生成后停止呼吸） */
.gen-cta {
  width: 100%; padding: 13px 22px; font-size: 15.5px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, var(--acc) 0%, #6d5ae0 100%);
  border: 0; border-radius: var(--r-sm);
  box-shadow: 0 6px 18px rgba(61, 79, 192, 0.32);
}
.gen-cta:hover { background: linear-gradient(135deg, var(--acc-hi) 0%, #5c49d1 100%); box-shadow: 0 8px 24px rgba(61, 79, 192, 0.42); transform: translateY(-1px); }
.gen-cta:disabled { opacity: 0.65; transform: none; }
.gen-cta.pulse { animation: genPulse 2.2s ease-in-out infinite; }
@keyframes genPulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(61, 79, 192, 0.30); }
  50% { box-shadow: 0 6px 30px rgba(109, 90, 224, 0.62); }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; cursor: pointer;
  font-family: inherit; font-size: 14.5px; font-weight: 600;
  padding: 9px 18px; border-radius: var(--r-sm);
  transition: all 0.16s ease; white-space: nowrap; line-height: 1.4;
  background: var(--acc); color: #fff;
  box-shadow: 0 1px 2px rgba(25, 25, 20, 0.12);
}
.btn:hover { background: var(--acc-hi); color: #fff; }
.btn.ghost:hover { border-color: var(--acc); color: var(--acc); background: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.is-off { opacity: 0.5; pointer-events: none; }
.btn.ghost { background: var(--surface); color: var(--ink-2); border-color: var(--line-strong); box-shadow: none; }
.btn.ghost:hover { border-color: var(--acc); color: var(--acc); background: #fff; }
.btn.soft { background: var(--acc-soft); color: var(--acc); box-shadow: none; }
.btn.soft:hover { background: var(--acc-line); color: var(--acc-hi); }
.btn.dark { background: var(--ink); color: #fff; box-shadow: none; }
.btn.dark:hover { background: #000; }
.btn.danger { background: var(--danger-soft); color: var(--danger); box-shadow: none; }
.btn.danger:hover { background: #f3d8d4; color: var(--danger); }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 6px; gap: 5px; }
.btn.lg { padding: 12px 26px; font-size: 15.5px; border-radius: 8px; }
.btn.block { width: 100%; }

/* ---------- 输入 ---------- */
.input {
  width: 100%; padding: 10px 14px; font-size: 14.5px; font-family: inherit; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); outline: none; transition: 0.16s;
}
.input::placeholder { color: var(--ink-4); }
.input:hover { border-color: #b8b8ad; }
.input:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(61, 79, 192, 0.13); background: #fff; }
select.input { cursor: pointer; padding-right: 30px; }
textarea.input { line-height: 1.7; }
.input.saved { border-color: #a9cfbb; background: #f3faf6; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-xs);
}
.card-pad { padding: 22px 24px; }

/* ---------- Toast ---------- */
#toastBox {
  position: fixed; top: 72px; right: 18px; z-index: 999;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
}
.toast {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  border-radius: 8px; padding: 10px 16px; font-size: 13.5px;
  max-width: 340px; animation: slideIn 0.2s ease;
  display: flex; gap: 8px; align-items: center;
}
.toast::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); flex: none; }
.toast.ok::before { background: var(--ok); }
.toast.err::before { background: var(--danger); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- 提示条 / 加载 ---------- */
.banner {
  display: flex; gap: 9px; align-items: flex-start;
  background: var(--warn-soft); border: 1px solid #ecd9b2; color: #7c5514;
  border-radius: var(--r-sm); padding: 10px 14px; font-size: 13.5px;
  line-height: 1.6; margin: 12px 0;
}
.banner .ic { margin-top: 2px; color: var(--warn); }
.banner.info { background: var(--acc-softer); border-color: var(--acc-line); color: #3a468f; }
.banner.info .ic { color: var(--acc); }
.banner.err { background: var(--danger-soft); border-color: #ebc9c4; color: #8c342c; }
.banner.err .ic { color: var(--danger); }
.loading { text-align: center; padding: 30px 0; color: var(--ink-3); font-size: 13.5px; }
.spinner {
  width: 26px; height: 26px; margin: 0 auto 12px; border-radius: 50%;
  border: 2.5px solid var(--line-strong); border-top-color: var(--acc);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 56px 20px; color: var(--ink-3); font-size: 14px; }
.empty .ic { width: 34px; height: 34px; color: var(--ink-4); margin-bottom: 10px; }
.tip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-3); border: 1px solid transparent;
  color: var(--ink-3); border-radius: 5px; padding: 3px 9px;
  font-size: 12.5px; font-weight: 500;
}
.tip b { color: var(--ink); font-weight: 650; }

/* ---------- 徽标 chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 4px 12px; font-size: 12.5px;
  color: var(--ink-3); font-weight: 550;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); }
.chip.on { color: var(--ok); border-color: #bfe0cf; background: var(--ok-soft); }
.chip.on .dot { background: var(--ok); }
.chip.warn { color: var(--warn); border-color: #ecd9b2; background: var(--warn-soft); }
.chip.warn .dot { background: var(--warn); }

/* ---------- 标签 pill ---------- */
.tag-pill {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); border-radius: 5px;
  padding: 2px 9px; font-size: 12.5px; line-height: 1.4; cursor: pointer;
  transition: 0.14s; white-space: nowrap;
}
.tag-pill:hover { border-color: var(--acc); color: var(--acc); background: var(--acc-softer); }

/* ---------- Hero（首页） ---------- */
.hero { padding: 86px 0 46px; text-align: center; position: relative; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--acc); background: var(--acc-soft);
  border: 1px solid var(--acc-line); border-radius: 999px;
  padding: 5px 14px; margin-bottom: 22px; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 56px); font-weight: 780;
  letter-spacing: -0.025em; line-height: 1.16; margin: 0 auto 18px;
  max-width: 860px;
}
.hero h1 .thin { font-weight: 400; color: var(--ink-3); }
.hero p.sub {
  font-size: 16.5px; color: var(--ink-3); max-width: 620px;
  margin: 0 auto 30px; line-height: 1.8;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 区块（首页） ---------- */
.section { padding: 62px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-head .k { font-size: 12.5px; font-weight: 650; letter-spacing: 0.1em; color: var(--ink-4); text-transform: uppercase; margin-bottom: 10px; }
.section-head h2 { font-size: 30px; letter-spacing: -0.02em; margin-bottom: 10px; }
.section-head p { color: var(--ink-3); margin: 0; font-size: 15px; }

.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.feat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px; transition: 0.18s; position: relative;
}
.feat:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.feat .ico {
  width: 40px; height: 40px; border-radius: 9px; margin-bottom: 16px;
  background: var(--surface-3); color: var(--ink); display: inline-flex;
  align-items: center; justify-content: center;
}
.feat:hover .ico { background: var(--acc); color: #fff; }
.feat h3 { font-size: 16.5px; margin-bottom: 6px; }
.feat p { margin: 0; color: var(--ink-3); font-size: 13.8px; line-height: 1.75; }
.feat a.go { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; font-size: 13.5px; font-weight: 600; }
.feat a.go .ic { width: 14px; height: 14px; transition: transform 0.16s; }
.feat:hover a.go .ic { transform: translateX(3px); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; counter-reset: st; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px 22px 22px;
}
.step .no {
  counter-increment: st;
  font-size: 12.5px; font-weight: 700; color: var(--acc);
  background: var(--acc-soft); border-radius: 6px;
  width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step h3 { font-size: 15.5px; margin-bottom: 5px; }
.step p { margin: 0; color: var(--ink-3); font-size: 13.5px; line-height: 1.7; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 80px; background: #fff; }
.footer-in { padding: 40px 0 34px; }
.footer .fl { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.footer a { color: var(--ink-3); font-size: 13.5px; }
.footer a:hover { color: var(--acc); }
.footer p { color: var(--ink-4); font-size: 12.5px; text-align: center; margin: 2px 0; }

/* ---------- 内页 Hero（工具页顶栏） ---------- */
.page-head { padding: 52px 0 26px; text-align: center; }
.page-head h1 { font-size: 30px; letter-spacing: -0.02em; margin-bottom: 8px; }
.page-head p { color: var(--ink-3); margin: 0; font-size: 15px; }

/* ==========================================================================
   工具页通用（解析 / 文案提取 / AI 创作）
   ========================================================================== */
.tool-box { max-width: 1500px; margin: 0 auto 70px; }
.link-card { max-width: 800px; margin: 0 auto; }
.tool-box .card { box-shadow: var(--shadow); }

/* 粘贴链接输入行 */
.link-row { display: flex; gap: 10px; align-items: stretch; }
.link-row .input { flex: 1; min-width: 0; }
.link-row .input.mono { font-family: var(--mono); font-size: 13.5px; }

/* 页签（文案提取的 链接/本地 模式） */
.tabs {
  display: inline-flex; background: var(--surface-3); border-radius: 9px; padding: 3px; gap: 2px;
}
.tab {
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 13.8px; font-weight: 600; color: var(--ink-3);
  padding: 7px 18px; border-radius: 7px; transition: 0.15s;
}
.tab:hover { color: var(--ink); }
.tab.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs), 0 0 0 1px var(--line); }
.tab .ic { color: currentColor; }

/* 模式模板小标签 */
.mode-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 14px; }
.mode-tab {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  border-radius: 7px; padding: 6px 14px; font-size: 13.5px; cursor: pointer;
  transition: 0.14s; font-family: inherit; font-weight: 550;
}
.mode-tab:hover { border-color: var(--acc); color: var(--acc); }
.mode-tab.on { background: var(--acc); border-color: var(--acc); color: #fff; }

.opt-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.out-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; align-items: center; }

/* 输出结果文本 */
.out-block { padding: 22px 24px; }
.out-block + .out-block { margin-top: 16px; }
.tool-box .card + .card { margin-top: 16px; }
.out-block > h3, .card-hd h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; margin: 0 0 4px; color: var(--ink);
}
.hint { color: var(--ink-3); font-size: 12.8px; margin: 0 0 14px; }
.out-text {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 16px 18px; white-space: pre-wrap;
  font-size: 14.5px; line-height: 1.9; word-break: break-word;
}
.out-text.scroll { max-height: 340px; overflow-y: auto; }

/* AI 创作页：左右双栏（等宽；结果卡固定高=左栏，长文卡内滚动） */
.ai-split {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px; align-items: stretch; max-width: 1060px; margin: 0 auto 48px;
}
.ai-left { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ai-left .out-block { padding: 12px 14px; }
.ai-left .out-block + .out-block { margin-top: 0; } /* 间距交给 ai-left gap */
.block-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
/* 卡片标题（左卡「原始文案/模板/提示词」与右卡「创作结果」同一样式） */
.block-hd h3, .ar-hd h3 {
  display: flex; align-items: center; gap: 8px;
  margin: 0; color: var(--ink); font-weight: 700; letter-spacing: -0.01em;
}
.ai-right { display: flex; flex-direction: column; padding: 20px 22px; min-width: 0; overflow: hidden; min-height: 360px; }
.ar-hd { display: flex; align-items: center; gap: 8px; padding-bottom: 13px; border-bottom: 1px solid var(--line); flex: none; }
.ar-body { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; }
.ai-idle { margin: auto; text-align: center; color: var(--ink-4); max-width: 330px; padding: 30px 10px; }
.ai-idle p { color: var(--ink-3); font-size: 13.5px; margin: 12px auto 0; line-height: 1.8; }
.ai-right .loading { align-self: center; margin: auto 0; }
.ai-right .out-text {
  flex: 1; border: 0; border-radius: 0; padding: 16px 2px 6px;
  background: transparent; font-size: 14.5px;
  overflow-y: auto; min-height: 0; scrollbar-width: thin;
}
/* AI 创作结果富文本排版（Markdown 转 HTML 渲染，无 # * 符号） */
.out-text.rich { white-space: normal; }
.out-text.rich h2, .out-text.rich h3, .out-text.rich h4 {
  margin: 14px 0 6px; line-height: 1.5; color: var(--ink); font-weight: 700;
}
.out-text.rich h2 { font-size: 17px; }
.out-text.rich h3 { font-size: 15.5px; }
.out-text.rich h4 { font-size: 14.5px; }
.out-text.rich h2:first-child, .out-text.rich h3:first-child { margin-top: 0; }
.out-text.rich p { margin: 0 0 10px; }
.out-text.rich ul, .out-text.rich ol { margin: 0 0 10px; padding-left: 22px; }
.out-text.rich li { margin: 0 0 4px; }
.out-text.rich strong { font-weight: 700; color: var(--ink); }
.out-text.rich code {
  background: var(--surface-3); border-radius: 4px; padding: 1px 5px; font-size: 13px;
}
.out-text.rich a { color: var(--acc); }
.out-text.rich > :last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .ai-split { grid-template-columns: 1fr; }
  .ai-right { min-height: 320px; }
}

/* 音频/文件预览卡（文案提取页） */
.src-audio { margin-top: 14px; padding: 12px 14px 14px; }
.src-audio .src-hd {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-size: 13px; font-weight: 700; color: var(--ink-2);
}
.src-audio .src-hd .ic { color: var(--acc); }
.src-audio .src-hd .tip { font-weight: 500; }
.src-audio audio, .src-audio video { width: 100%; display: block; }
.src-audio video { max-height: 300px; background: #000; border-radius: 10px; }
.file-sep-wrap { display: inline-flex; }

/* AI 创作页 · 模板卡内嵌模板管理（左列表 + 右编辑） */
#btnTplEdit.on { background: var(--acc); border-color: var(--acc); color: #fff; }
#btnTplEdit.on .ic { color: #fff; }
.btn.danger-text { color: var(--danger); }
.btn.danger-text:hover { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.btn.danger-text:disabled { color: var(--ink-4); }
.ai-tpl-pane {
  /* 竖排：上面提示词模板列表（限高内滚动），下面提示词编辑区 */
  display: flex; flex-direction: column; gap: 12px; align-items: stretch;
}
.ai-tpl-nav {
  display: flex; flex-direction: column; min-width: 0;
  flex: 0 0 auto;
}
.ai-tpl-nav-hd {
  display: flex; align-items: center; gap: 6px; flex: none;
  padding: 8px 11px; border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 700; color: var(--ink-3);
}
.ai-tpl-nav-hd b { color: var(--ink-2); font-size: 12.5px; }
/* 模板名横排块状分布：选中块颜色加重（实心主题色），下方显示对应提示词 */
.ai-tpl-items {
  display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px;
  padding: 2px 0 0;
}
.ai-tpl-items::-webkit-scrollbar { width: 7px; }
.ai-tpl-items::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
.ai-tpl-items::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }
.ai-tpl-items::-webkit-scrollbar-track { background: transparent; }
.ai-tpl-item {
  display: inline-flex; align-items: center; width: auto; text-align: center;
  border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 550; color: var(--ink-2);
  padding: 6px 14px; border-radius: 4px; line-height: 1.5;
  white-space: nowrap; box-sizing: border-box; flex: 0 0 auto;
  transition: background .15s, border-color .15s, color .15s;
}
.ai-tpl-nav-hd { font-size: 12.5px; padding: 9px 12px; }
.ai-tpl-item:hover { border-color: var(--acc); color: var(--acc); }
.ai-tpl-item.on { background: var(--acc); border-color: var(--acc); color: #fff; font-weight: 650; }
.ai-tpl-item.on:hover { color: #fff; }
.ai-tpl-editor { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
  .ai-tpl-editor #tplName { font-weight: 600; }
/* 编辑/新增状态：提示词框统一高度 = 原编辑态高度(约271px)的 3/4 */
.ai-tpl-editor .ai-tpl-ta.compact { flex: 0 0 auto; height: 203px; min-height: 203px; }
.ai-tpl-ops { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex: none; }
.ai-tpl-ops .btn { padding: 4px 8px; font-size: 12.5px; white-space: nowrap; flex: 0 0 auto; border-radius: 6px; }
.ai-tpl-ops .btn .ic { width: 13px; height: 13px; }
.tpl-msgline { flex: 0 0 auto; min-height: 0; margin: 2px 0 0; line-height: 1.5; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-msgline:empty { display: none; }
.ai-tpl-editor input:disabled, .ai-tpl-editor textarea[readonly] {
  color: var(--ink-3); background: var(--surface-2); cursor: default;
}
.ai-tpl-ta { flex: 1 1 auto; min-height: 0; resize: none; line-height: 1.65; font-size: 13px; font-family: inherit; overflow-y: auto; }
@media (max-width: 760px) {
  .ai-tpl-pane { grid-template-columns: 1fr; height: auto; }
  .ai-tpl-nav { max-height: 190px; }
  .ai-tpl-ta { min-height: 150px; resize: vertical; }
}

/* 上传拖放区 */
.drop-zone {
  border: 1.5px dashed var(--line-strong); border-radius: var(--r);
  padding: 46px 24px; text-align: center; cursor: pointer; transition: 0.16s;
  background: var(--surface-2);
}
.drop-zone:hover, .drop-zone.over { border-color: var(--acc); background: var(--acc-softer); }
.drop-zone .ic-xl { width: 34px; height: 34px; color: var(--ink-4); margin-bottom: 10px; }
.drop-zone b { display: block; font-size: 15px; margin-bottom: 4px; }
.drop-zone p { color: var(--ink-3); font-size: 13px; margin: 0; }

/* 文案提取-本地文件：框内预览（选择后替换拖放区内容） */
.drop-zone.big { padding: 5px; }
.df-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 2px; }
.df-row .ic { width: 19px; height: 19px; color: var(--acc); flex: none; }
.df-name { font-size: 15px; font-weight: 650; color: var(--ink-2); max-width: min(70%, 460px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.df-del { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--ink-3); cursor: pointer; padding: 0; flex: none; line-height: 1; }
.df-del svg { width: 15px; height: 15px; }
.df-del:hover { color: #e5484d; background: rgba(229, 72, 77, .1); }
.df-player { position: relative; margin: 14px auto 0; max-width: 680px; background: #000; border-radius: 12px; overflow: hidden; }
.df-player.audio-box { background: transparent; max-width: 520px; }
.df-player video { width: 100%; display: block; max-height: 300px; background: #000; }
.df-player audio { width: 100%; display: block; }
.df-play { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; cursor: pointer; background: rgba(10, 10, 14, .16); transition: .15s; }
.df-play:hover { background: rgba(10, 10, 14, .28); }
.df-play .pb { width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .94); display: flex; align-items: center; justify-content: center; color: #101014; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.df-play .pb svg { width: 24px; height: 24px; }
.df-fileacts { display: flex; gap: 10px; justify-content: center; margin: 16px 0 2px; flex-wrap: wrap; }
.df-fileacts .btn { min-width: 132px; }

/* 图片转文字：框内图片预览 */
.ocr-imgbox { margin-top: 12px; display: flex; justify-content: center; }
.ocr-imgbox img { max-height: 320px; max-width: 100%; border-radius: 10px; border: 1px solid var(--line); background: #fff; box-shadow: 0 2px 10px rgba(20, 20, 30, .06); }

/* 文件提取 / 图片提取：左右双栏 —— 两框等宽等高、固定 500px、内部滚动，底部留空不与页脚贴边 */
.duo { display: grid; grid-template-columns: repeat(2, 500px); gap: 16px; height: 500px; margin: 0 auto; justify-content: center; align-items: stretch; }
.duo > .duo-l, .duo > .duo-r { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.duo > .duo-l > .card { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 16px; }
.duo > .duo-l > .card > .drop-zone { flex: 1; min-height: 0; overflow: hidden; }
.duo > .duo-r > .script-box { flex: 1; min-height: 0; margin-top: 0; }       /* 顶部与左卡同一水平 */
.duo .script-box .sb-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
/* 卡顶标题行：文件名 + 删除钮（在预览框外侧上方） */
.f-title { display: flex; align-items: center; gap: 8px; padding: 0 2px 10px; margin-bottom: 12px; border-bottom: 1px dashed var(--line); }
.f-title .ic { width: 18px; height: 18px; color: var(--acc); flex: none; }
.f-title .df-name { font-size: 15px; font-weight: 650; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-title .df-del { margin-left: auto; }
/* 空闲引导：无论初始还是删除文件后都严格居中 */
.drop-zone.big { display: flex; flex-direction: column; }
.drop-zone.big > #dfIdle, .drop-zone.big > #ocrIdlePick { margin: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 0; }
.drop-zone .df-idle-acts { justify-content: center; }
.drop-zone .ic-xl { margin-bottom: 12px; }
/* 已选预览：占满预览区，内容严格居中 —— 上下/左右到边框等距（视频等比 contain 铺满） */
.drop-zone.big > #dfBox, .drop-zone.big > #ocrSel { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.drop-zone.big .df-player { flex: 1; align-self: stretch; min-height: 0; margin: 0; width: 100%; max-width: none; display: flex; align-items: center; justify-content: center; }
.drop-zone.big .df-player.audio-box { background: transparent; max-width: none; }
.drop-zone.big .df-player video { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; background: #000; }
.drop-zone.big .df-player audio { width: min(100%, 560px); margin: auto; }
.drop-zone.big .ocr-imgbox { flex: 1; min-height: 0; margin: 0; align-items: center; }
.drop-zone.big .ocr-imgbox img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 1100px) {
  .duo { grid-template-columns: minmax(0, 500px); height: auto; gap: 12px; justify-content: center; }
  .duo > .duo-l { overflow: visible; }
  .duo > .duo-r > .script-box { min-height: 430px; }
}

/* 链接提取页：输入卡、音频预览卡、口播文稿区统一 800px 宽居中
   （父级 #viewLink 是 flex column，flex 子项必须显式 width，margin:auto 才不塌成 fit-content） */
.lk-page .link-card, .lk-page .src-audio, .lk-page .lk-sb {
  width: 100%; max-width: 800px; margin-left: auto; margin-right: auto;
}
/* 工具区容器与页头同宽（.tool-box 的 1500 只留给音视频/图文页） */
.container.lk-page { max-width: 1120px; }

/* 底部吸底：内容不足一屏时页脚仍贴视口底部 */
body { display: flex; flex-direction: column; min-height: 100vh; }
.footer { margin-top: auto; }
/* body 为 flex column：带 margin:auto 的子项不会交叉轴拉伸（宽度塌成 fit-content），
   显式补 width:100% 让 max-width + margin:auto 正常居中 */
body > .container, body > .prof-wrap { width: 100%; }

/* 链接提取页：文案输出框固定宽高（与输入区同宽），文字过多时框内滚动、不拉长页面 */
.lk-sb { height: 520px; min-height: 520px; }
.lk-sb .sb-body { min-height: 0; overflow: hidden; }
.lk-sb .out-text { overflow-y: auto; min-height: 0; flex: 1 1 auto; align-self: stretch; }

/* ==========================================================================
   解析结果（视频解析页 / 历史重新解析）
   ========================================================================== */
.res-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px; align-items: stretch; margin: 22px auto 70px;
}
.side-card { display: flex; flex-direction: column; padding: 16px 18px 14px; min-width: 0; }

/* 解析页：输入区与结果双卡同宽（800），输入框更舒展 */
.res-box { max-width: 850px; margin: 0 auto; }
.res-box .card { padding: 16px 20px; }
.res-box .link-row { gap: 10px; }
.res-box .link-row .input { font-size: 14.5px; padding: 11px 15px; }
.res-box .link-row .btn { padding: 11px 22px; font-size: 14.5px; }
.btn.is-busy { opacity: 0.75; pointer-events: none; }

/* 解析结果示意（解析前空态）：帮助用户一眼看懂能拿到什么 */
.parse-preview {
  margin-top: 16px; border: 1px dashed var(--acc-line); border-radius: 14px;
  background: linear-gradient(180deg, var(--acc-softer), var(--surface));
  padding: 14px 16px 12px;
}
.pp-cap {
  display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700;
  color: var(--acc); margin-bottom: 12px;
}
.pp-cap .ic { width: 15px; height: 15px; }
.pp-inner {
  display: grid; grid-template-columns: 172px 1fr; gap: 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 11px; padding: 14px; align-items: stretch;
}
.pp-media { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pp-thumb {
  aspect-ratio: 9 / 13; border-radius: 9px; background: linear-gradient(160deg, #d7def7, #aeb9ee 60%, #9aa7e8);
  color: rgba(28, 29, 26, 0.5); display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.pp-thumb svg { width: 44px; height: 44px; opacity: .55; }
.pp-thumb::after { content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.28) 1px, transparent 1.2px);
  background-size: 14px 14px; }
.pp-dur {
  position: absolute; right: 6px; bottom: 6px; z-index: 2;
  background: rgba(10,10,12,.62); color: #fff; font-size: 11px; font-variant-numeric: tabular-nums;
  padding: 1px 6px; border-radius: 6px;
}
.pp-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-actions span {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; padding: 3px 8px;
}
.pp-actions .ic { width: 13px; height: 13px; color: var(--acc); }
.pp-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; justify-content: center; }
.pp-title { font-size: 14.5px; font-weight: 750; color: var(--ink); line-height: 1.45; }
.pp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-tags span { font-size: 12px; color: var(--acc); background: var(--acc-soft); border-radius: 6px; padding: 1px 8px; }
.pp-desc {
  font-size: 13px; color: var(--ink-2); line-height: 1.65;
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; -webkit-line-clamp: 2;
}
.pp-stats { display: flex; gap: 14px; margin-top: 2px; }
.pp-stats span { font-size: 12.5px; color: var(--ink-3); }
.pp-stats b { font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
.pp-author { display: flex; align-items: center; gap: 9px; margin-top: 2px; font-size: 12.8px; color: var(--ink-3); }
.pp-av {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--acc), #6d80e6); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.pp-author b { color: var(--ink); font-weight: 700; }
.pp-tip { margin-top: 10px; text-align: center; font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 560px) { .pp-inner { grid-template-columns: 1fr; } .pp-media { flex-direction: row; align-items: center; } .pp-thumb { width: 84px; aspect-ratio: 9/13; flex: none; } }

/* 解析前引导（作品解析页初始态，替代以往孤立的黑框占位） */
.parse-guide {
  margin-top: 18px; padding: 20px 22px 18px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, #ffffff, var(--surface-2));
  box-shadow: var(--shadow-xs);
}
.pg-hero { text-align: center; margin-bottom: 18px; }
.pg-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--acc);
  background: var(--acc-soft); border: 1px solid var(--acc-line);
  border-radius: 999px; padding: 3px 12px; margin-bottom: 12px;
}
.pg-badge .ic { width: 14px; height: 14px; }
.pg-hero h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); }
.pg-sub { margin: 0 auto; max-width: 520px; font-size: 13.5px; color: var(--ink-3); line-height: 1.7; }

.pg-mock {
  display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center;
  background: linear-gradient(135deg, var(--acc-softer), var(--surface));
  border: 1px solid var(--acc-line); border-radius: 12px; padding: 16px 18px;
}
.pg-mock-media { position: relative; width: 104px; margin: 0 auto; }
.pg-mock-bg { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 18px rgba(61,79,192,.30)); border-radius: 12px; }
.pg-play {
  position: absolute; inset: 0; margin: auto;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.95); color: #3d4fc0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.22);
}
.pg-play .ic { width: 15px; height: 15px; margin-left: 2px; }
.pg-gains { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.pg-gains li { display: flex; align-items: center; gap: 11px; min-width: 0; }
.pg-gain-ic {
  flex: none; width: 28px; height: 28px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--acc-line); color: var(--acc);
  font-size: 11px; font-weight: 750; display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.pg-gains li b { display: block; font-size: 13.5px; color: var(--ink); font-weight: 700; }
.pg-gains li em { display: block; font-size: 12px; color: var(--ink-3); font-style: normal; margin-top: 1px; }

.pg-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-strong);
}
.pg-step { display: flex; align-items: center; gap: 9px; min-width: 0; }
.pg-n {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--acc); color: #fff; font-size: 12.5px; font-weight: 750;
  display: flex; align-items: center; justify-content: center;
}
.pg-step b { display: block; font-size: 13px; color: var(--ink); font-weight: 700; }
.pg-step em { display: block; font-size: 12px; color: var(--ink-3); font-style: normal; margin-top: 1px; }

@media (max-width: 700px) {
  .pg-mock { grid-template-columns: 1fr; text-align: center; }
  .pg-gains { grid-template-columns: 1fr; }
  .pg-steps { grid-template-columns: 1fr; gap: 8px; }
  .pg-step { justify-content: flex-start; }
}

/* 右列：作品信息卡 + 作者信息卡（上下两卡） */
.rcol2 { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rcol2 .sub-card { display: none; flex-direction: column; padding: 14px 16px 13px; min-width: 0; }
.rcol2 .sub-card.grow { flex: 1 1 auto; min-height: 0; }
.sub-hd {
  display: flex; align-items: center; gap: 7px; flex: none;
  font-size: 13.5px; font-weight: 750; color: var(--ink);
  padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid var(--line);
}
.sub-hd .ic { width: 15px; height: 15px; color: var(--acc); }
.sub-card .f-val { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; -webkit-line-clamp: 2; }
.sub-card .f-val.tags { display: block; }
/* 时间信息行 */
.w-meta { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 10px 0 0; font-size: 12.4px; color: var(--ink-3); }
/* 互动数据：紧凑小胶囊，作为作品信息卡最底一行 */
.w-stats {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--line);
}
.w-stat {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px;
  padding: 2px 9px; font-size: 12px; color: var(--ink-3);
}
.w-stat b { font-size: 13px; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
.w-stat span { font-size: 12px; color: var(--ink-4); }

/* 作品链接：单行隐藏、点击复制 */
.f-val.link-1 { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 左列 · 媒体预览 */
.media-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 700; color: var(--ink-2); flex: none;
}
.media-title .ic { color: var(--acc); }
.p-prev {
  margin-top: 12px; width: 100%; height: clamp(210px, 40vh, 340px); flex: none;
  background: var(--stage); border-radius: 12px; overflow: hidden;
  position: relative; display: flex; align-items: center; justify-content: center;
  border: 1px solid #000;
}
.p-prev video, .p-prev img.main { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
/* 解析预览：尚未解析时的空状态插画（深色舞台内） */
.p-idle { text-align: center; padding: 14px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; }
.p-idle .es-art-dark { width: 196px; margin: 0 auto 6px; }
.p-idle h4.es-title { color: #e9e9ec; }
.p-idle p { color: rgba(255, 255, 255, 0.46); font-size: 13px; max-width: 320px; margin: 6px auto 0; line-height: 1.75; }
/* 视频播放按钮（中央悬浮） */
.play-overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  background: rgba(12, 12, 16, 0.10); cursor: pointer;
}
.play-overlay .pb {
  width: 66px; height: 66px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.94); color: #16161c;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35); transition: transform 0.15s ease;
}
.play-overlay .pb svg { width: 26px; height: 26px; margin-left: 3px; }
.play-overlay:hover .pb { transform: scale(1.07); }
/* 左卡底部操作按钮：2×2 网格，次要操作统一白底描边、悬停点亮，主操作（提取文案）实心主题色 */
.acts-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.acts-row .btn {
  width: 100%; padding: 10px 8px; font-size: 13.5px; border-radius: 10px;
  background: var(--surface); color: var(--ink-2); border-color: var(--line-strong);
  box-shadow: none; transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.acts-row .btn .ic { color: var(--acc); opacity: .8; transition: inherit; }
.acts-row .btn:hover { border-color: var(--acc); color: var(--acc); background: var(--acc-soft); transform: translateY(-1px); }
.acts-row .btn:hover .ic { opacity: 1; }
.acts-row .btn.act-primary { background: var(--acc); color: #fff; border-color: var(--acc); }
.acts-row .btn.act-primary .ic { color: #fff; opacity: 1; }
.acts-row .btn.act-primary:hover { background: var(--acc-hi); border-color: var(--acc-hi); color: #fff; box-shadow: 0 4px 14px rgba(61, 79, 192, .30); }
.acts-row .btn:only-child { grid-column: 1 / -1; }
.media-ph.big {
  color: rgba(255, 255, 255, 0.28); text-align: center; line-height: 1.7;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.media-ph.big .ic { width: 44px; height: 44px; color: rgba(255,255,255,0.32); }
.media-ph.big small { font-size: 13px; color: rgba(255, 255, 255, 0.42); }

/* 音频卡 / 封面卡（左列底部，紧凑） */
.p-audio { margin-top: 12px; border-top: 1px dashed var(--line); padding: 10px 0 0; display: flex; flex-direction: column; gap: 0; }
.p-audio .audio-cap { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.p-audio .audio-cap .ic { color: var(--acc); }
.p-audio .audio-meta { font-size: 12.5px; color: var(--ink-3); margin: 3px 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-audio audio { width: 100%; height: 34px; display: block; }
/* 图集（预览框内深色画廊） */
.gal-box { width: 100%; height: 100%; display: flex; flex-direction: column; background: #000; position: relative; }
.gal-stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; }
.gal-stage img.main { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
.gal-count {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  background: rgba(10, 10, 12, 0.6); color: #ddd; font-size: 12.5px;
  padding: 3px 12px; border-radius: 999px; z-index: 3; font-variant-numeric: tabular-nums;
}
.gal-arr {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 52px; border: 0; border-radius: 9px;
  background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 26px;
  cursor: pointer; z-index: 3; transition: 0.15s; line-height: 1;
}
.gal-arr:hover { background: rgba(255, 255, 255, 0.24); }
.gal-prev { left: 10px; } .gal-next { right: 10px; }
.gal-thumbs {
  height: 64px; flex: none; display: flex; gap: 6px; overflow-x: auto;
  padding: 7px 10px; border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 12, 15, 0.78); align-items: center;
}
.gal-thumbs::-webkit-scrollbar { height: 4px; }
.gal-thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 4px; }
.gal-thumbs img { height: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 5px; cursor: pointer; flex: none; }
.gal-thumbs img.on { outline: 2px solid var(--acc); outline-offset: -1px; }

/* 口播文稿工作台（文案提取页通用） */
.script-box {
  display: flex; flex-direction: column; min-height: 110px;
  margin-top: 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-2); overflow: hidden;
}
.sb-bar {
  display: flex; align-items: center; gap: 8px; flex: none;
  padding: 7px 10px; background: #fff; border-bottom: 1px solid var(--line);
}
.sb-bar .sb-name {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--ink);
}
.sb-bar .sb-name .ic { color: var(--acc); }
.sb-meta {
  margin-left: auto; display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sb-body { flex: 1 1 auto; min-height: 0; display: flex; position: relative; }
.sb-idle { margin: auto; text-align: center; padding: 16px 16px; }
.sb-idle { color: var(--ink-4); max-width: 360px; }
.sb-idle p { color: var(--ink-3); font-size: 13px; margin: 10px auto 0; line-height: 1.8; }
.sb-body .loading { align-self: center; width: 100%; padding: 24px 0; }
.sb-body .out-text {
  flex: 1 1 auto; min-height: 100%; border: 0; border-radius: 0;
  overflow-y: auto; font-size: 14px; line-height: 1.85; padding: 12px 14px;
}
.sb-body .sb-empty { margin: auto; color: var(--ink-4); font-size: 13px; padding: 20px; text-align: center; }
.au-row { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--surface-3); color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; object-fit: cover;
}
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 12px 0 0; font-size: 12.8px; color: var(--ink-3); }
.meta-line b { color: var(--ink); font-weight: 650; }
.m-copy { cursor: pointer; border-bottom: 1px dashed var(--line-strong); }
.m-copy:hover { color: var(--acc); border-color: var(--acc); }
.m-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); display: inline-block; flex: none; }
.f-row { display: flex; gap: 10px; margin-top: 9px; align-items: flex-start; }
.f-lbl {
  flex: none; width: 40px; padding-top: 1px;
  color: var(--ink-4); font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
}
.f-cell { flex: 1; min-width: 0; }
.f-val.t1 { font-weight: 650; color: var(--ink); }
.f-val.d1 {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 12px; cursor: pointer; max-height: none;
}
.f-val.tags { display: block; }
.f-val.tags .tags-line { display: flex; flex-wrap: wrap; gap: 6px; max-height: 60px; overflow: hidden; }
.f-val.empty { color: var(--ink-4); }
[data-copy] { cursor: pointer; }
[data-copy]:hover { color: var(--acc); }
.au-row .nm { font-weight: 700; font-size: 15.5px; color: var(--ink); cursor: pointer; letter-spacing: -0.01em; }
/* 提示复制：轻量浮层 */
.mini-copy-tip { font-size: 12px; color: var(--acc); }

/* 灯箱 */
.lb {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(14, 14, 17, 0.9); display: flex;
  align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.lb-fig { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lb-fig img { max-width: 92vw; max-height: 80vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lb-fig figcaption { color: #c9c9ce; font-size: 13px; margin-top: 12px; font-variant-numeric: tabular-nums; }
.lb-x {
  position: absolute; top: 16px; right: 18px; width: 38px; height: 38px;
  border-radius: 50%; border: 0; background: rgba(255,255,255,0.1); color: #fff;
  font-size: 16px; cursor: pointer; transition: 0.15s; display: inline-flex;
  align-items: center; justify-content: center;
}
.lb-x:hover { background: rgba(255,255,255,0.22); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 34px; color: #fff; background: rgba(255,255,255,0.08);
  border: 0; width: 48px; height: 76px; border-radius: 10px; cursor: pointer; transition: 0.15s;
}
.lb-nav:hover { background: rgba(255,255,255,0.2); }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-dl { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); }

/* ==========================================================================
   登录 / 注册
   ========================================================================== */
.auth-wrap { max-width: 430px; margin: 70px auto 60px; }
.auth-card { padding: 34px 34px 30px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 23px; margin: 0 0 6px; }
.auth-card .sub { color: var(--ink-3); font-size: 13.8px; margin: 0 0 24px; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 22px; gap: 4px; }
.auth-tabs button {
  border: 0; background: none; cursor: pointer; font-family: inherit;
  font-size: 14.5px; font-weight: 600; color: var(--ink-3);
  padding: 10px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent;
}
.auth-tabs button.on { color: var(--acc); border-bottom-color: var(--acc); }
.field { margin-bottom: 16px; }
.field .label { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; display: block; font-weight: 600; }
.code-row { display: flex; gap: 10px; }
.code-row .input { flex: 1; }
.code-btn { width: 138px; flex: none; padding: 0 12px; font-size: 13px; }
.auth-tip { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 18px; }

/* ==========================================================================
   历史记录
   ========================================================================== */
.hist-item {
  display: flex; gap: 14px; align-items: center; padding: 14px 18px;
}
.hist-item + .hist-item { border-top: 1px solid var(--line); }
.hist-thumb {
  width: 52px; height: 68px; border-radius: 8px; object-fit: cover; flex: none;
  background: var(--surface-3); display: inline-flex; align-items: center;
  justify-content: center; color: var(--ink-3);
}
.hist-body { flex: 1; min-width: 0; }
.hist-desc { font-size: 14.2px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.act-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ==========================================================================
   文章
   ========================================================================== */
.art-list-item { display: block; padding: 22px 24px; transition: 0.16s; }
.art-list-item:hover { box-shadow: var(--shadow); transform: translateY(-1px); border-color: var(--line-strong); }
.art-list-item h3 { font-size: 16.5px; color: var(--ink); margin: 0 0 6px; }
.art-list-item p { margin: 0; color: var(--ink-3); font-size: 13.8px; line-height: 1.75;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.art-meta { font-size: 12.3px; color: var(--ink-3); margin-top: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.article-wrap { max-width: 780px; margin: 0 auto; }
/* 自定义页：与 FAQ 页一致的页头（H1+描述居中）+ 正文卡片 */
.page-body-ready .page-head { padding: 44px 22px 20px; }
.page-body-ready .page-main { padding: 0 22px 60px; }
.article-body { padding: 40px 46px; }
.article-body h1 { font-size: 27px; letter-spacing: -0.02em; margin: 0 0 6px; }
.article-body .m { color: var(--ink-3); font-size: 13px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.article-body h2 { font-size: 19.5px; margin: 28px 0 10px; }
.article-body h3 { font-size: 16.5px; margin: 22px 0 8px; }
.article-body p { margin: 0 0 14px; color: var(--ink-2); line-height: 1.9; }
.article-body li { margin: 5px 0; color: var(--ink-2); line-height: 1.85; }
.article-body code { background: var(--surface-3); padding: 2px 6px; border-radius: 5px; font-size: 13px; font-family: var(--mono); }
.article-body pre { background: var(--stage); color: #d7d7dc; padding: 16px; border-radius: 8px; overflow-x: auto; }
.article-body pre code { background: none; color: inherit; padding: 0; }
.article-body blockquote { margin: 16px 0; padding: 4px 18px; border-left: 3px solid var(--acc-line); color: var(--ink-3); }
.article-body img { border-radius: 8px; }

/* ==========================================================================
   后台（admin.html）
   ========================================================================== */
.admin-shell { display: flex; gap: 20px; align-items: flex-start; max-width: 1240px; margin: 22px auto 60px; padding: 0 22px; }
.aside {
  width: 208px; flex-shrink: 0; position: sticky; top: 80px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); padding: 10px; box-shadow: var(--shadow-xs);
}
.aside .g-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-4); padding: 12px 10px 5px;
}
.aside .g-title:first-child { padding-top: 6px; }
.aside .it {
  display: flex; align-items: center; gap: 9px; width: 100%;
  border: 0; background: none; cursor: pointer; text-align: left;
  font-size: 13.5px; font-family: inherit; font-weight: 550; color: var(--ink-2);
  padding: 7px 10px; border-radius: 7px; margin: 1px 0; transition: 0.13s;
}
.aside .it .ic { width: 15px; height: 15px; color: var(--ink-4); }
.aside .it:hover { background: var(--surface-3); color: var(--ink); }
.aside .it:hover .ic { color: var(--ink-3); }
.aside .it.on { background: var(--acc); color: #fff; }
.aside .it.on .ic { color: #fff; }
.aside .foot { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.aside .foot .btn { width: 100%; justify-content: flex-start; }
.main { flex: 1; min-width: 0; }
/* 后台二级菜单：内容区顶部 Tab（一级菜单分组后展示） */
.sub-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.sub-tab {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  border-radius: 7px; padding: 6px 14px; font-size: 13.5px; font-family: inherit;
  font-weight: 550; cursor: pointer; transition: 0.14s;
}
.sub-tab .ic { width: 14px; height: 14px; color: var(--ink-4); }
.sub-tab:hover { border-color: var(--acc); color: var(--acc); }
.sub-tab:hover .ic { color: var(--acc); }
.sub-tab.on { background: var(--acc); border-color: var(--acc); color: #fff; }
.sub-tab.on .ic { color: #fff; }
.panel { display: none; }
.panel.on { display: block; animation: fadeUp 0.22s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(5px); } }
.panel > .ph { padding: 22px 24px; }
.panel h2 { font-size: 18px; margin: 0 0 4px; }
.panel .psub { color: var(--ink-3); font-size: 13px; margin: 0 0 18px; }
.row-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.row-actions.left { justify-content: flex-start; border-top: 0; padding-top: 0; margin-top: 10px; }
.msg { flex: 1; font-size: 13px; color: var(--ink-3); min-height: 18px; }
.msg.ok { color: var(--ok); font-weight: 600; }
.msg.err { color: var(--danger); }

/* 统计卡片 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 16px 15px;
}
.stat-card .num { font-size: 28px; font-weight: 780; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat-card .num em { font-style: normal; font-size: 13px; color: var(--ink-4); font-weight: 600; }
.stat-card .lbl { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }

/* 配置表单（接口密钥等） */
.cfg-row { display: grid; grid-template-columns: 220px 1fr; gap: 8px 18px; align-items: center; margin-bottom: 13px; }
.cfg-row .lbl { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.cfg-row .lbl small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12px; margin-top: 1px; }
.cfg-row .input { font-family: var(--mono); font-size: 13px; }
.cfg-row select.input { font-family: inherit; }
.cfg-row textarea.input { font-family: var(--mono); font-size: 13px; }
.test-row { display: flex; gap: 10px; align-items: center; margin-top: 2px; }
.test-row .input { flex: 1; }
.test-msg { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); }
.test-msg.ok { color: var(--ok); }
.test-msg.err { color: var(--danger); }
details.adv { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 12px; }
details.adv summary { cursor: pointer; color: var(--ink-3); font-size: 13px; user-select: none; padding: 3px 0; display: inline-flex; gap: 6px; align-items: center; }
details.adv summary:hover { color: var(--acc); }
details.adv .adv-inner { margin-top: 12px; }

/* 列表行（菜单/分类等后台可编辑行） */
.edit-row {
  display: flex; gap: 8px; align-items: center; padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.edit-row .k { width: 120px; flex: none; font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edit-row .v { flex: 1; min-width: 0; color: var(--ink-3); font-size: 13px; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edit-row .input { padding: 6px 10px; font-size: 13px; }
.edit-row .input.mid { max-width: 150px; }
.edit-row .input.slim { max-width: 90px; }

/* 提示词管理：左右双栏（左=模板标题列表，右=编辑区） */
.tpl-split {
  display: grid; grid-template-columns: 264px minmax(0, 1fr);
  gap: 16px; align-items: stretch; min-height: 420px;
}
.tpl-nav {
  display: flex; flex-direction: column; min-width: 0;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); overflow: hidden;
}
.tpl-nav-hd {
  display: flex; align-items: center; gap: 8px; flex: none;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
  font-size: 13.5px; font-weight: 700; color: var(--ink);
}
.tpl-nav-hd .tip { font-weight: 500; }
.tpl-nav-hd .btn { margin-left: auto; padding: 5px 10px; font-size: 12.8px; }
.tpl-list { flex: 1; overflow-y: auto; padding: 6px; min-height: 0; display: flex; flex-direction: column; gap: 2px; }
.tpl-list .empty { padding: 26px 10px; text-align: center; color: var(--ink-4); font-size: 13px; }
.tpl-it {
  display: flex; align-items: center; gap: 8px; width: 100%;
  border: 0; background: none; cursor: pointer; text-align: left;
  font-size: 13.6px; font-family: inherit; font-weight: 550; color: var(--ink-2);
  padding: 9px 11px; border-radius: 7px; transition: 0.13s;
}
.tpl-it .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-it:hover { background: var(--surface-3); color: var(--ink); }
.tpl-it.on { background: var(--acc-soft); color: var(--acc); }
.tpl-edit {
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); padding: 14px 16px 16px;
}
.tpl-edit .tpl-edit-hd { display: flex; align-items: center; gap: 10px; }
.tpl-edit .tpl-edit-hd .input { flex: 1; font-weight: 600; }
.tpl-lbl { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.tpl-ta { flex: 1; min-height: 230px; resize: none; line-height: 1.75; font-size: 13.5px; }
.tpl-edit .row-actions { margin-top: 4px; }
.tpl-dirty { color: var(--warn); font-size: 12px; font-weight: 600; white-space: nowrap; }
.tpl-draft-hint { color: var(--ink-4); font-size: 12.5px; }
@media (max-width: 900px) {
  .tpl-split { grid-template-columns: 1fr; min-height: 0; }
  .tpl-nav { max-height: 260px; }
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1020px) {
  .res-split { grid-template-columns: 1fr; max-width: 560px; }
  .rcol2 .sub-card.grow { flex: 0 0 auto; }
}
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .admin-shell { flex-direction: column; }
  .aside { width: 100%; position: static; display: flex; flex-wrap: wrap; gap: 2px; }
  .aside .g-title { display: none; }
  .aside .it { width: auto; flex: 1 0 calc(50% - 4px); justify-content: flex-start; }
  .aside .foot { width: 100%; }
  .nav { gap: 12px; }
  .nav-links { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -8px; padding: 0 8px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding: 7px 9px; font-size: 13.5px; }
  .logo { font-size: 16px; }
  .hero { padding-top: 56px; }
  .link-row { flex-direction: column; }
  .code-row { flex-direction: column; }
  .code-btn { width: 100%; padding: 11px; }
  .link-row .btn { width: 100%; }
  .cfg-row { grid-template-columns: 1fr; gap: 5px; }
  .test-row { flex-direction: column; align-items: stretch; }
  .article-body { padding: 26px 22px; }
  .out-block { padding: 18px 18px; }
  .auth-wrap { margin: 40px auto; padding: 0 16px; }
  .auth-card { padding: 26px 22px; }
  .edit-row { flex-wrap: wrap; }
  .edit-row .k { width: 100%; }
}

/* ==========================================================================
   UI 一致性 & 易用性微调（不改动设计语言，仅补齐断点、焦点与动效降级）
   ========================================================================== */

/* 键盘可达性：统一焦点环（鼠标点击不触发，不影响现有视觉） */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* 尊重系统"减少动态效果"设置 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* 小屏（≤480px）细节：收紧留白、放开固定高度、避免按钮挤在一行 */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .hero { padding: 48px 0 34px; }
  .card-pad, .out-block { padding: 18px 16px; }
  .article-body { padding: 20px 16px; }
  .auth-card { padding: 22px 16px; }
  .drop-zone { padding: 30px 16px; }

  /* 桌面端为对齐左右两栏写死的固定高度，在小屏会撑出大片空白 → 改为自适应 */
  .lk-sb { height: auto; min-height: 320px; }

  /* 窄屏按钮换行而不是压缩文字 */
  .row-actions, .ai-tpl-ops { flex-wrap: wrap; }
  .link-row .btn, .code-btn { width: 100%; }
  .w-stats { gap: 14px; }
  /* 提示条：窄屏改为左右撑满，避免长文案被裁到 340px 里换行错位 */
  #toastBox { left: 14px; right: 14px; align-items: stretch; }
  .toast { max-width: none; }
}

/* --------------------------------------------------------------------------
   链接提取页：口播文稿框固定 500px（提取前/提取后都一样高，长文在框内滚动）
   -------------------------------------------------------------------------- */
.lk-page { display: flex; flex-direction: column; flex: none; min-height: 570px; }
.lk-page > #bannerArea { flex: none; }
.lk-page .link-card { flex: none; }
.lk-page > #viewLink { flex: 1 1 auto; display: flex; flex-direction: column; }
.lk-page .src-audio { flex: none; }
.lk-page .lk-sb { flex: none; height: 450px; min-height: 450px; }
.lk-page .lk-sb .sb-body { min-height: 0; }

@media (max-width: 900px) {
  .lk-page { min-height: 570px; }
  .lk-page .lk-sb { height: 450px; min-height: 450px; }
}

/* ============ 个人中心 v3（2026-09-07：大气卡片风 + 左侧固定菜单） ============ */
.prof-wrap {
  display: grid; grid-template-columns: 304px minmax(0, 1fr);
  gap: 22px; align-items: start;
  max-width: 1220px; margin: 30px auto 64px; padding: 0 22px;
}
.prof-aside {
  position: sticky; top: 84px; padding: 0;
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
}
.prof-cover {
  position: relative; height: 106px;
  background:
    radial-gradient(130px 74px at 88% -10%, rgba(255, 255, 255, 0.8), transparent 70%),
    linear-gradient(135deg, #e6ebfb 0%, #f1f0fb 52%, #f9efdd 100%);
  border-bottom: 1px solid var(--line);
}
.prof-av {
  position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%);
  width: 72px; height: 72px; border-radius: 50%;
  border: 4px solid var(--surface);
  background: linear-gradient(135deg, var(--acc), #6d80e6); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 27px; font-weight: 800;
  box-shadow: 0 8px 20px rgba(61, 79, 192, 0.3);
}
.prof-aside-in { padding: 42px 16px 16px; }
.prof-aside-head { text-align: center; padding: 0 8px 13px; border-bottom: 1px dashed var(--line); }
.prof-name { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 17.5px; font-weight: 800; letter-spacing: -0.01em; }
.prof-mail { color: var(--ink-3); font-size: 12.5px; margin-top: 3px; word-break: break-all; }
.prof-joined { margin-top: 9px; font-size: 12px; color: var(--ink-4); }
.role-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; line-height: 1;
  padding: 4px 9px; border-radius: 999px; flex: none;
  color: var(--ink-3); background: var(--surface-3);
}
.role-chip.adm { color: var(--acc); background: var(--acc-soft); }
.prof-menu { display: flex; flex-direction: column; gap: 3px; padding: 12px 0 6px; }
.prof-menu .it {
  display: flex; align-items: center; gap: 11px; width: 100%;
  border: 0; background: none; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2);
  padding: 10px 13px; border-radius: 9px; transition: 0.15s;
}
.prof-menu .it .ic { width: 17px; height: 17px; color: var(--ink-4); transition: 0.15s; }
.prof-menu .it:hover { background: var(--surface-3); color: var(--ink); }
.prof-menu .it:hover .ic { color: var(--ink-3); }
.prof-menu .it.on {
  background: linear-gradient(90deg, var(--acc), #5a6cd8); color: #fff;
  box-shadow: 0 4px 14px rgba(61, 79, 192, 0.24);
}
.prof-menu .it.on .ic { color: #fff; }
.prof-menu .it.danger { color: var(--danger); }
.prof-menu .it.danger .ic { color: var(--danger); }
.prof-menu .it.danger:hover { background: var(--danger-soft); color: var(--danger); }
.prof-sep { height: 1px; background: var(--line); margin: 8px 12px; }
.prof-aside-foot { border-top: 1px dashed var(--line); padding: 12px 8px 0; display: flex; justify-content: center; }

/* 右栏：功能区 纵向卡片流 */
.prof-main { min-width: 0; }
.prof-pane { display: none; flex-direction: column; gap: 18px; animation: fadeUp 0.24s ease; }
.prof-pane.on { display: flex; }
.prof-main #views { display: flex; flex-direction: column; gap: 18px; }
.prof-main #views .panel { box-shadow: var(--shadow); }
.prof-main #subTabs { margin: 0; }

/* 账号总览 hero 卡 */
.hero-card { border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.hero-top { display: flex; align-items: center; gap: 18px; padding: 24px 26px; flex-wrap: wrap; }
.hero-av {
  width: 62px; height: 62px; border-radius: 16px; flex: none;
  background: linear-gradient(135deg, var(--acc), #6d80e6); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; box-shadow: 0 6px 16px rgba(61, 79, 192, 0.24);
}
.hero-who { min-width: 0; }
.hero-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-name { font-size: 21px; font-weight: 800; letter-spacing: -0.015em; }
.hero-mail { color: var(--ink-3); font-size: 13px; margin-top: 2px; word-break: break-all; }
.hero-acts { margin-left: auto; display: flex; gap: 9px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px dashed var(--line); background: var(--surface-2); }
.hero-stats .hs { padding: 14px 10px; text-align: center; }
.hero-stats .hs + .hs { border-left: 1px dashed var(--line); }
.hero-stats b { display: block; font-size: 19px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; line-height: 1.25; }
.hero-stats span { font-size: 12px; color: var(--ink-3); }

/* 只读资料网格 */
.info-view { border-radius: 16px; box-shadow: var(--shadow); }
.sec-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 16px; flex-wrap: wrap; }
.sec-head h3 { margin: 0; font-size: 15.5px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.kv-i { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; min-width: 0; }
.kv-i .k { font-size: 11.5px; letter-spacing: 0.04em; color: var(--ink-4); font-weight: 600; }
.kv-i .v { font-size: 14px; font-weight: 650; color: var(--ink); margin-top: 3px; word-break: break-all; }
.kv-i .n { font-size: 11.5px; color: var(--ink-4); margin-top: 3px; }

/* 展开式编辑卡（点击「修改资料 / 修改密码」后才出现） */
.edit-box { border-left: 3px solid var(--acc); border-radius: 14px; box-shadow: var(--shadow); }
.edit-box[hidden] { display: none; }

@media (max-width: 980px) {
  .prof-wrap { grid-template-columns: 258px minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 820px) {
  .prof-wrap { grid-template-columns: 1fr; margin-top: 16px; }
  .prof-aside { position: static; }
  .prof-cover { height: 64px; }
  .prof-av { width: 58px; height: 58px; bottom: -26px; font-size: 22px; border-width: 3px; }
  .prof-aside-in { padding: 38px 14px 12px; }
  .prof-menu { flex-direction: row; flex-wrap: wrap; gap: 6px; justify-content: center; padding-top: 8px; }
  .prof-menu .it { width: auto; padding: 8px 13px; }
  .prof-sep { display: none; }
  .prof-aside-foot { display: none; }
}
@media (max-width: 560px) {
  .hero-top { padding: 18px 16px; }
  .hero-acts { margin-left: 0; width: 100%; }
  .hero-stats b { font-size: 17px; }
  .kv { grid-template-columns: 1fr; }
  .card-pad { padding: 18px 16px; }
}

/* ============ 功能配置：分引擎独立设置块（语音识别 / AI 创作） ============ */
.eng-block {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px 12px; margin-top: 14px;
  background: var(--surface-2);
}
.eng-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.eng-hd b { font-size: 15px; color: var(--ink); }
.eng-ok { font-size: 12px; font-weight: 650; color: #0f6e56; }
.eng-no { font-size: 12px; font-weight: 600; color: var(--ink-4); }
.eng-block .row-actions { margin-top: 10px; }

/* 提示词管理（后台模板配置）：左标题列表 / 右提示词编辑 */
.tpl-mgr-pane {
  display: grid; grid-template-columns: 240px minmax(0, 1fr);
  gap: 14px; align-items: stretch; height: 440px;
}
.tpl-mgr-pane .ai-tpl-nav {
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-2); overflow: hidden;
  display: flex; flex-direction: column; min-height: 0;
}
.tpl-mgr-pane .ai-tpl-nav-hd { background: var(--surface-2); flex: none; }
.tpl-mgr-pane .ai-tpl-items {
  flex-direction: column; flex-wrap: nowrap;
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  padding: 8px 10px; gap: 6px;
}
.tpl-mgr-pane .ai-tpl-item {
  width: 100%; text-align: left; justify-content: flex-start;
  border-radius: 7px; padding: 8px 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tpl-mgr-pane .ai-tpl-editor {
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-2); padding: 12px;
}
@media (max-width: 860px) {
  .tpl-mgr-pane { grid-template-columns: 1fr; height: auto; }
  .tpl-mgr-pane .ai-tpl-items { max-height: 200px; }
  .tpl-mgr-pane .ai-tpl-ta { min-height: 180px; }
}

/* ==========================================================================
   首页重构 v2（Hero 演示 + 数据条 + 会员 + FAQ + CTA）
   ========================================================================== */
/* Hero 背景柔和光斑 */
.hero { overflow: hidden; }
.hero-bg {
  position: absolute; inset: -30% -20% auto -20%; height: 130%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(560px 320px at 18% 8%, rgba(109, 90, 224, 0.08), transparent 60%),
    radial-gradient(520px 300px at 82% 12%, rgba(61, 79, 192, 0.10), transparent 60%),
    radial-gradient(700px 360px at 50% 100%, rgba(109, 90, 224, 0.05), transparent 65%);
}
.hero > * { position: relative; z-index: 1; }

/* Hero 信任点 */
.hero-trust { display: flex; justify-content: center; gap: 8px 20px; flex-wrap: wrap; margin-top: 26px; margin-bottom: 4px; }
.hero-trust-it { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 13.5px; font-weight: 550; }
.hero-trust-it .ic { width: 15px; height: 15px; color: var(--ok); }

/* 粘链接演示条 */
.hero-demo {
  max-width: 720px; margin: 42px auto 0; text-align: left;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-lg);
}
.hero-demo-bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.hdb-dot { width: 9px; height: 9px; border-radius: 50%; background: #e5e0d3; flex: none; }
.hdb-dot:nth-child(2) { background: #d8d2c0; }
.hdb-link {
  flex: 1; min-width: 0; margin: 0 6px; font-family: var(--mono); font-size: 12.5px;
  color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #fff;
  border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px;
}
.hdb-link b { color: var(--ink-2); font-weight: 600; }
.hdb-btn {
  font-size: 12px; font-weight: 700; color: #fff; background: var(--acc);
  border-radius: 6px; padding: 4px 12px; flex: none;
}
.hero-demo-out { padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; }
.hdo-line {
  display: flex; align-items: center; gap: 9px; height: 30px;
  background: linear-gradient(90deg, var(--acc-softer), transparent);
  border-radius: 8px; padding: 0 10px; font-size: 12.8px; color: var(--ink-2);
  position: relative; overflow: hidden;
}
.hdo-line::after { /* 打字光标扫动 */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  width: 40%; animation: hdoSweep 2.6s ease-in-out infinite;
}
@keyframes hdoSweep { 0% { left: -40%; } 100% { left: 120%; } }
.hdo-tag {
  flex: none; font-size: 11px; font-weight: 700; color: var(--acc);
  background: var(--acc-soft); border: 1px solid var(--acc-line); border-radius: 5px; padding: 1px 7px;
}

/* 实时数据条 */
.stats-band { background: var(--ink); color: #fff; padding: 26px 0; }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { color: rgba(255,255,255,0.6); font-size: 13px; }

/* 会员区块 */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 860px; margin: 0 auto; }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 26px 24px; display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.plan.hot { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc), var(--shadow-lg); }
.plan-tag {
  align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em;
  color: var(--ink-3); background: var(--surface-3); border-radius: 6px; padding: 3px 9px;
  margin-bottom: 12px; text-transform: uppercase;
}
.plan-tag.hot { color: #fff; background: linear-gradient(135deg, var(--acc), #6d5ae0); }
.plan h3 { font-size: 18px; margin-bottom: 6px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 16px; }
.plan-price b { font-size: 30px; font-weight: 800; color: var(--acc); letter-spacing: -0.02em; }
.plan.hot .plan-price b { font-size: 22px; }
.plan-price span { color: var(--ink-3); font-size: 13px; }
.plan-feat { list-style: none; margin: 0 0 20px; padding: 0; flex: 1; }
.plan-feat li { position: relative; padding-left: 24px; margin-bottom: 9px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.plan-feat li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 15px; height: 15px;
  background: var(--ok-soft); border-radius: 4px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
  background-color: var(--ok);
}
.plan .btn { justify-content: center; width: 100%; }
.plan-note { text-align: center; color: var(--ink-4); font-size: 12px; margin-top: 9px; }

/* FAQ */
.container.narrow { max-width: 760px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-it { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 18px; }
.faq-it summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px;
  font-weight: 650; font-size: 15px; padding: 15px 0; user-select: none;
}
.faq-it summary::-webkit-details-marker { display: none; }
.faq-it summary::after {
  content: '+'; margin-left: auto; font-size: 20px; font-weight: 500; color: var(--acc); transition: transform 0.2s;
}
.faq-it[open] summary::after { transform: rotate(45deg); }
.faq-it p { margin: 0 0 15px; color: var(--ink-3); font-size: 14px; line-height: 1.75; }

/* CTA 收尾 */
.cta-card {
  background: linear-gradient(135deg, var(--acc), #5c49d1); color: #fff; border-radius: var(--r-lg);
  text-align: center; padding: 52px 30px;
}
.cta-card h2 { color: #fff; font-size: 30px; letter-spacing: -0.02em; margin-bottom: 12px; }
.cta-card p { color: rgba(255,255,255,0.85); font-size: 15.5px; max-width: 520px; margin: 0 auto 26px; }
.cta-card .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.cta-card .btn.ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }

@media (max-width: 720px) {
  .stats-in { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .plans { grid-template-columns: 1fr; }
  .stat b { font-size: 23px; }
}

/* ===== 服务端注入的页尾 SEO 正文区（弱化、紧凑，贴近页脚，不抢视觉） ===== */
.seo-copy {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 22px 0;
  text-align: center;
}
.seo-copy h2 {
  font-size: 13.5px; font-weight: 650; color: var(--ink-3);
  letter-spacing: 0.02em; margin: 0 0 10px;
}
.seo-copy p {
  color: var(--ink-4); font-size: 12.5px; line-height: 1.75;
  margin: 0 auto 8px; max-width: 720px;
}
.seo-copy p strong { color: var(--ink-3); font-weight: 600; }
.seo-copy a { color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--line); }
.seo-copy a:hover { color: var(--acc); }
@media (max-width: 900px) { .seo-copy { padding: 26px 22px 0; } }
@media (max-width: 560px) { .seo-copy { padding: 22px 18px 0; } }

/* ===== 空状态插画（工具页文稿工作台 idle） ===== */
.es-art { width: 210px; height: auto; display: block; margin: 0 auto 4px; }
.es-title { font-size: 15px; font-weight: 750; color: var(--ink); margin: 6px auto 0; }
.sb-idle h4.es-title, .duo .sb-idle h4.es-title { color: var(--ink-2); }
.sb-idle .es-title + p { margin: 8px auto 0; max-width: 340px; }
@media (max-width: 560px) { .es-art { width: 170px; } }

/* ===== 内容管理（后台：文章/页面/分类/标签 列表与编辑器） ===== */
.c-row { display: flex; gap: 12px; align-items: flex-start; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.c-row-main { flex: 1; min-width: 0; }
.c-row-main b { font-size: 14.5px; color: var(--ink); }
.c-row-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 4px; }
.c-row-ops { display: flex; gap: 6px; align-items: center; flex: none; }
/* "所有文章"顶部工具栏：统计 + 分类筛选下拉 */
.clist-tool { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.cl-stat { font-size: 13px; color: var(--muted); }
.cl-stat b { color: var(--acc); font-weight: 650; }
.c-badge { font-size: 11.5px; font-weight: 600; padding: 1.5px 8px; border-radius: 999px; }
.c-badge.pub { background: #e7f6ef; color: #0f6e56; }
.c-badge.draft { background: #f2f1ec; color: #8a8b82; }
.c-badge.cat { background: var(--acc-soft); color: var(--acc); }
.c-date { color: var(--ink-4); font-size: 12.5px; }
.c-slug { color: var(--ink-3); font-size: 12.5px; font-family: var(--mono); }
.c-sum { color: var(--ink-3); font-size: 13px; margin-top: 5px; line-height: 1.6; }
.content-edit { animation: fadeUp 0.2s ease; }
.content-edit textarea.input { font-family: var(--mono); line-height: 1.7; }
.chk { color: var(--ink-2); }
.chk input { accent-color: var(--acc); }

/* ==========================================================================
   文章区（列表 + 详情）+ 独立页  (2026-09)
   ========================================================================== */

/* ---- 面包屑导航（列表 / 分类 / 详情共用） ---- */
.crumb-bar { max-width: 1160px; margin: 24px auto 0; padding: 0 22px; }
.crumb-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.8px; color: var(--ink-3); }
.crumb-list a { color: var(--ink-3); text-decoration: none; transition: color .13s; }
.crumb-list a:hover { color: var(--acc); }
.crumb-list .sep { color: var(--line-strong); padding: 0 3px; user-select: none; }
.crumb-list .cur { color: var(--ink); font-weight: 600; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- 文章列表页头 + 分类筛选条 ---- */
.articles-head { padding: 20px 22px 22px; }
.articles-head h1 { font-size: 32px; margin-bottom: 8px; }
.articles-head p { font-size: 15.5px; }

.chips-row-wrap { max-width: 1160px; margin: 0 auto 26px; padding: 0 22px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-row .tute-cat {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
  text-decoration: none; transition: 0.14s;
}
.chips-row .tute-cat em { font-style: normal; font-size: 12px; color: var(--ink-3); background: var(--surface-3); padding: 1px 8px; border-radius: 999px; }
.chips-row .tute-cat:hover { border-color: var(--acc-line); color: var(--acc); }
.chips-row .tute-cat:hover em { color: var(--acc); }
.chips-row .tute-cat.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips-row .tute-cat.on em { color: rgba(255,255,255,.75); background: rgba(255,255,255,.12); }

/* 文章列表：左侧简介卡列表 + 右侧创作工具侧边栏（与文章详情页一致） */
.blog-layout { max-width: 1160px; margin: 0 auto 56px; padding: 0 22px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.article-layout { max-width: 1160px; margin: 0 auto 44px; padding: 0 22px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; padding-top: 28px; }
.blog-main { min-width: 0; }
.article-main { min-width: 0; }

.blog-list { display: flex; flex-direction: column; gap: 14px; }
.art-card {
  position: relative;
  display: block; box-sizing: border-box;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-xs);
  padding: 16px 22px 14px; min-width: 0;
  text-decoration: none; color: inherit; transition: 0.16s;
  overflow: hidden;
}
.art-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--acc-line); }
.art-card h3 { font-size: 17px; line-height: 1.45; margin: 0 0 6px; letter-spacing: -0.01em; color: var(--ink); transition: 0.14s; font-weight: 700; }
.art-card h3 a { color: inherit; text-decoration: none; }
.art-card:hover h3 { color: var(--acc); }
.art-card-cover { position: absolute; inset: 0; z-index: 1; }
.art-card > h3,
.art-card > .art-card-sum,
.art-card > .art-card-meta { position: relative; z-index: 0; }
.art-card-sum { margin: 0 0 10px; color: var(--ink-3); font-size: 13.4px; line-height: 1.7; }
.art-card-meta { display: flex; align-items: center; gap: 12px; color: var(--ink-4); font-size: 12.5px; flex-wrap: wrap; }
.art-card-meta .art-card-date { color: var(--ink-3); }

/* ---- 文章详情页：正文卡片下方的 上/下一篇 + 相关推荐 ---- */
.art-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.art-nav a.an {
  display: flex; flex-direction: column; gap: 6px; padding: 13px 16px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  text-decoration: none; transition: .15s;
}
.art-nav a.an:hover { border-color: var(--acc-line); box-shadow: var(--shadow-xs); }
.art-nav a.an.is-next { text-align: right; }
.art-nav a.an .an-lbl { font-size: 12px; color: var(--ink-4); display: flex; align-items: center; gap: 6px; }
.art-nav a.an.is-next .an-lbl { justify-content: flex-end; }
.art-nav a.an .an-t { font-size: 14.5px; color: var(--ink-2); font-weight: 600; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-nav a.an:hover .an-t { color: var(--acc); }
.art-nav .an-void { visibility: hidden; }
.art-related { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.art-related .r-hd { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 16px; letter-spacing: -.01em; color: var(--ink); }
.art-related .r-sub { margin: 0 0 14px; font-size: 12.5px; color: var(--ink-4); }
.art-related .r-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.art-related a.rl {
  display: flex; flex-direction: column; gap: 6px; padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  text-decoration: none; transition: .15s;
}
.art-related a.rl:hover { border-color: var(--acc-line); box-shadow: var(--shadow-xs); }
.art-related a.rl .rl-t { font-size: 13.6px; font-weight: 600; color: var(--ink-2); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-related a.rl:hover .rl-t { color: var(--acc); }
.art-related a.rl .rl-date { font-size: 12px; color: var(--ink-4); }

.blog-pager-wrap { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.art-pager { display: flex; align-items: center; justify-content: center; gap: 18px; }
.art-pager .pg {
  padding: 8px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink-2);
  text-decoration: none; transition: .15s;
}
.art-pager .pg:hover { border-color: var(--acc-line); color: var(--acc); box-shadow: var(--shadow-xs); }
.art-pager .pg.is-void { opacity: .35; pointer-events: none; }
.art-pager .pg-count { font-size: 12.8px; color: var(--ink-4); white-space: nowrap; }

/* ---- 侧边栏：创作工具导航 / 帮助卡片（文章详情页用） ---- */
.blog-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.side-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 16px 12px; box-shadow: var(--shadow-xs);
}
.side-hd { font-size: 13.5px; font-weight: 750; color: var(--ink); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 6px; border-radius: 8px; color: var(--ink-2);
  text-decoration: none; font-size: 14px; transition: 0.13s; border-bottom: 1px dashed var(--line);
}
.side-link:last-of-type { border-bottom: 0; }
.side-link:hover { background: var(--acc-soft); color: var(--acc); }
.side-link .side-ico { color: var(--acc); font-size: 13px; width: 18px; text-align: center; flex: none; }
.side-link em { font-style: normal; color: var(--ink-4); font-size: 11.5px; margin-left: auto; }
.side-help p { margin: 0; color: var(--ink-3); font-size: 13px; line-height: 1.65; }
.side-help a { color: var(--acc); }

/* ---- 常见问题页 ---- */
.faq-main { max-width: 820px; padding: 8px 0 60px; }
.faq-grid { display: flex; flex-direction: column; gap: 10px; }
.faq-foot { text-align: center; margin-top: 26px; color: var(--ink-3); font-size: 13.5px; }
.faq-foot a { color: var(--acc); }

/* ---- 文章 / 独立页正文区 ---- */
.article-wrap { padding-top: 6px; padding-bottom: 40px; }
.article-back { text-align: left; margin: 8px 0 18px; }
.article-body { position: relative; padding-top: 10px; }
.article-body .crumb-cat { color: var(--acc); font-weight: 650; text-decoration: none; font-size: 13px; }
.article-body .crumb-cat:hover { text-decoration: underline; }
.article-body .dot-sep { color: var(--line-strong); padding: 0 4px; }
.article-body .m { font-size: 13px; color: var(--ink-4); margin-bottom: 18px; }
.article-body .art-view { color: var(--ink-3); }
.article-body h1 { font-size: 28px; line-height: 1.35; letter-spacing: -0.015em; }
.article-body p { color: var(--ink-2); }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 14px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.article-body th { background: var(--surface-3); font-weight: 650; }
.article-body a { text-decoration: underline; text-underline-offset: 2px; }
.article-body a.anchor, .article-body a.no-line { text-decoration: none; }

@media (max-width: 900px) {
  .blog-layout, .article-layout { grid-template-columns: 1fr; gap: 20px; }
  .blog-side, .blog-side { position: static; order: 2; }
  .articles-head h1 { font-size: 26px; }
}
@media (max-width: 560px) {
  .article-body h1 { font-size: 23px; }
  .chips-row-wrap { padding: 0 16px; }
  .blog-layout, .article-layout { padding: 0 16px; }
  .crumb-bar { padding: 0 16px; margin-top: 18px; }
  .crumb-list .cur { max-width: 180px; }
  .art-nav { grid-template-columns: 1fr; }
  .art-related .r-grid { grid-template-columns: 1fr; }
}


/* ===== 后台：菜单设置（WordPress 式双栏） ===== */
.menu-sel { display: flex; align-items: center; gap: 8px; margin: 2px 0 14px; }
.menu-sel .btn { display: inline-flex; align-items: center; gap: 6px; }
.menu-sel .msg { flex: 1; }
.menu-cfg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.menu-cfg-cur, .menu-cfg-pal {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 16px 18px;
}
.menu-cfg-hd {
  display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700;
  color: var(--ink); margin-bottom: 12px;
}
.menu-cfg-hd em { font-style: normal; font-weight: 600; font-size: 12px; color: var(--ink-4); }
.mc-rows { display: flex; flex-direction: column; gap: 6px; min-height: 60px; }
.mc-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
}
.mc-row-info { flex: 1; min-width: 0; }
.mc-type {
  display: inline-block; font-size: 10.5px; font-weight: 650; color: var(--acc);
  background: var(--acc-soft); padding: 1px 6px; border-radius: 4px; margin-right: 6px; vertical-align: 1px;
}
.mc-row-label { font-size: 13.5px; color: var(--ink); }
.mc-row-href { display: block; color: var(--ink-4); font-size: 12px; font-family: var(--mono); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-row-ops { display: flex; gap: 4px; flex: none; }
.mc-row-ops .btn { padding: 3px 7px; }
.mc-row-ops .ic { width: 14px; height: 14px; }
.menu-src-tabs { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.mc-tab {
  padding: 5px 11px; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink-2); border-radius: 999px; font-size: 12.5px; cursor: pointer; transition: 0.14s;
}
.mc-tab:hover { border-color: var(--acc); color: var(--acc); }
.mc-tab.on { background: var(--acc); border-color: var(--acc); color: #fff; }
.mc-pane { display: flex; flex-direction: column; gap: 6px; max-height: 400px; overflow-y: auto; padding-right: 2px; }
.mc-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
}
.mc-it-main { flex: 1; min-width: 0; }
.mc-it-main b { font-size: 13px; color: var(--ink); font-weight: 600; display: block; }
.mc-it-href { color: var(--ink-4); font-size: 11.5px; font-family: var(--mono); }
.mc-empty { color: var(--ink-4); font-size: 13px; padding: 14px 4px; text-align: center; }
@media (max-width: 860px) {
  .menu-cfg-layout { grid-template-columns: 1fr; }
}

/* ===== WordPress 经典式正文编辑器（后台发布文章 / 页面） ===== */
.wp-ed {
  border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden;
  background: var(--surface); width: 100%;
}
.wp-tabs { display: flex; gap: 0; background: var(--surface-3); border-bottom: 1px solid var(--line); padding: 0 6px; }
.wp-tab {
  border: 0; background: transparent; padding: 8px 16px; font-size: 13px;
  color: var(--ink-3); cursor: pointer; position: relative; font-weight: 600;
}
.wp-tab.on { color: var(--acc); }
.wp-tab.on::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; background: var(--acc); border-radius: 2px; }
.wp-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
  padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--surface);
}
.wp-btn {
  border: 1px solid transparent; background: transparent; color: var(--ink-2);
  min-width: 30px; height: 28px; padding: 0 6px; font-size: 13px; line-height: 1;
  border-radius: 6px; cursor: pointer; font-family: inherit;
}
.wp-btn:hover { background: var(--surface-3); border-color: var(--line); color: var(--acc); }
.wp-sep { width: 1px; height: 18px; background: var(--line); margin: 0 5px; display: inline-block; }
.wp-body {
  min-height: 240px; padding: 12px 14px; outline: none;
  font-size: 14px; line-height: 1.7; color: var(--ink);
}
.wp-body:focus { box-shadow: inset 0 0 0 2px var(--acc-line); }
.wp-body h2, .wp-body h3 { margin: 12px 0 6px; line-height: 1.4; }
.wp-body blockquote {
  margin: 8px 0; padding: 6px 14px; border-left: 3px solid var(--acc-line);
  color: var(--ink-3); background: var(--surface-3); border-radius: 0 6px 6px 0;
}
.wp-body pre {
  background: #1c1d1a; color: #e6e6e3; padding: 10px 12px; border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; overflow: auto;
}
.wp-body a { color: var(--acc); }
.wp-html {
  width: 100%; border: 0; resize: vertical; padding: 12px 14px; outline: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.6; color: var(--ink);
  background: var(--surface); box-sizing: border-box; min-height: 240px;
}
.wp-html:focus { box-shadow: inset 0 0 0 2px var(--acc-line); }

/* ===== 权限设置：等级×功能额度矩阵 ===== */
.perm-table-wrap { overflow-x: auto; }
.perm-table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 13px; }
.perm-table th, .perm-table td { border: 1px solid var(--line, rgba(128,128,128,.25)); padding: 8px 10px; text-align: center; vertical-align: middle; }
.perm-table thead th { background: rgba(128,128,128,.08); color: var(--ink); font-weight: 600; }
.perm-table th.perm-col { font-weight: 600; white-space: nowrap; }
.perm-badge { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 10px; background: var(--acc-soft, rgba(80,120,255,.15)); color: var(--acc, #4168ff); font-size: 11px; font-weight: 600; }
.perm-feat { text-align: left !important; white-space: nowrap; background: rgba(128,128,128,.04); }
.perm-feat b { color: var(--ink); }
.perm-unit { display: block; color: var(--muted, #8a8a8a); font-size: 11.5px; font-weight: 400; }
.perm-cell { background: var(--surface); }
.perm-line { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 3px 0; }
.perm-line .pk { color: var(--muted, #8a8a8a); font-size: 12px; width: 34px; text-align: right; flex: none; }
.perm-in { width: 78px; text-align: center; padding: 5px 4px !important; }
.perm-table td.paid .perm-in { border-color: var(--acc-line, rgba(80,120,255,.4)); }

/* ===== 个人中心：剩余用量 ===== */
.quota-list { display: flex; flex-direction: column; margin-top: 4px; }
.quota-row { display: flex; align-items: center; gap: 14px; padding: 9px 2px; border-bottom: 1px solid var(--line, rgba(128,128,128,.14)); }
.quota-row:last-child { border-bottom: 0; }
.quota-row .q-name { width: 88px; flex: none; font-weight: 600; color: var(--ink); }
.quota-row .q-cells { display: flex; gap: 20px; flex-wrap: wrap; }
.quota-row .q-cell { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: baseline; gap: 5px; }
.quota-row .q-cell i { font-style: normal; }
.quota-row .q-cell b { color: var(--ink); font-weight: 600; }
