/* ==========================================================================
   文案捕手 · 设计系统 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.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; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; 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; }

/* ---------- 按钮 ---------- */
.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; }
.card + .card { }

/* ---------- 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: 860px; 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;
}
@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: grid; grid-template-columns: 210px minmax(0, 1fr);
  gap: 12px; align-items: stretch; height: 356px;
}
.ai-tpl-nav {
  display: flex; flex-direction: column; min-width: 0;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); overflow: hidden;
}
.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 {
  flex: 1 1 auto; min-height: 0; overflow-y: scroll;
  padding: 5px 2px; display: flex; flex-direction: column; gap: 3px;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.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: block; width: 100%; text-align: left;
  border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 550; color: var(--ink-2);
  padding: 7px 10px; border-radius: 6px; line-height: 1.6;
  word-break: break-word; overflow-wrap: break-word;
  box-sizing: border-box; flex: 0 0 auto;
}
.ai-tpl-nav-hd { font-size: 12.5px; padding: 9px 12px; }
.ai-tpl-item:hover { background: var(--surface-3); color: var(--ink); }
.ai-tpl-item.on { background: var(--acc-soft); color: var(--acc); }
.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; }

/* ==========================================================================
   解析结果（视频解析页 / 历史重新解析）
   ========================================================================== */
.res-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px; align-items: stretch; max-width: 920px; margin: 22px auto 0;
}
.side-card { display: flex; flex-direction: column; padding: 16px 18px 14px; min-width: 0; }

/* 解析页：输入区与结果双卡同宽（920），输入框更舒展 */
.res-box { max-width: 920px; 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; }

/* 右列：作品信息卡 + 作者信息卡（上下两卡） */
.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; }
/* 视频播放按钮（中央悬浮） */
.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); }
/* 左卡底部操作按钮（一行均分） */
.acts-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.acts-row .btn { flex: 1 1 0; justify-content: center; padding: 9px 8px; font-size: 13px; min-width: 0; }
.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; }
.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; }
  .nav-links a .lbl-txt { }
  .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%; }
}
