:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-2: #f5f1e9;
  --ink: #2f2c2a;
  --ink-soft: #5d5750;
  --muted: #8d857a;
  --line: #e7e0d5;
  --line-soft: #efe9df;
  --accent: #c47c6b;
  --accent-soft: #f7e8e3;
  --sage: #7fa88f;
  --sage-soft: #eaf2ec;
  --blue: #7c9bb8;
  --blue-soft: #e9f0f7;
  --lilac: #9a8fb8;
  --lilac-soft: #f0ecf7;
  --sand: #d8c6a5;
  --sand-soft: #f6f0e4;
  --danger: #b4544a;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(47, 44, 42, 0.05);
  --shadow: 0 2px 4px rgba(47, 44, 42, 0.04), 0 10px 28px rgba(47, 44, 42, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
}

.paw-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23e9e0d2'%3E%3Cellipse cx='50' cy='64' rx='20' ry='16'/%3E%3Ccircle cx='26' cy='42' r='8'/%3E%3Ccircle cx='42' cy='29' r='8'/%3E%3Ccircle cx='58' cy='29' r='8'/%3E%3Ccircle cx='74' cy='42' r='8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 260px 260px;
  opacity: 0.22;
  pointer-events: none;
}

[hidden] { display: none !important; }

/* ---------- 布局 ---------- */
.app-shell { display: flex; align-items: flex-start; min-height: 100vh; }

.sidebar {
  position: sticky;
  top: 0;
  z-index: 25;
  flex: none;
  width: 236px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px 18px 20px;
  background: #f4efe7;
  border-right: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  background: var(--sand-soft);
  border-radius: 13px;
  font-size: 19px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 18px; letter-spacing: 2px; }
.brand-text em { font-style: normal; font-size: 10.5px; color: var(--muted); letter-spacing: 0.4px; }

.side-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  transition: 0.15s;
}
.nav-item .ni-ico { font-size: 15px; opacity: 0.85; }
.nav-item:hover { background: rgba(255, 255, 255, 0.7); color: var(--ink); }
.nav-item.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.side-section { display: flex; flex-direction: column; gap: 1px; }
.side-title {
  font-size: 10.5px; letter-spacing: 1.6px; color: var(--muted);
  font-weight: 600; padding: 0 10px 7px;
}
.side-link {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 12.5px;
}
.side-link:hover { background: rgba(255, 255, 255, 0.75); color: var(--ink); }
.side-link .dot { width: 6px; height: 6px; border-radius: 50%; flex: none; opacity: 0.9; }
.dot.sky { background: var(--blue); }
.dot.coral { background: var(--accent); }
.dot.mint { background: var(--sage); }
.dot.lilac { background: var(--lilac); }
.dot.sun { background: var(--sand); }

.side-footer { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.llm-status {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink-soft);
  font-size: 11.5px;
}
.llm-status .ls-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sand); flex: none; }
.llm-status.ok .ls-dot { background: var(--sage); }
.llm-status.bad .ls-dot { background: var(--danger); }

.side-dev {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.side-dev:hover { background: var(--surface-2); }

main { flex: 1; min-width: 0; width: 100%; max-width: 1120px; margin: 0 auto; padding: 32px 36px 90px; }

/* ---------- 通用 ---------- */
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 600; }
h1 { font-size: 30px; letter-spacing: 0.3px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
p { margin: 0; }
a { color: var(--accent); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.card.acc-sky { --acc: var(--blue); background: linear-gradient(180deg, #f8fbfe 0%, #fff 90px); }
.card.acc-coral { --acc: var(--accent); background: linear-gradient(180deg, #fdf8f5 0%, #fff 90px); }
.card.acc-mint { --acc: var(--sage); background: linear-gradient(180deg, #f8fcf9 0%, #fff 90px); }
.card.acc-lilac { --acc: var(--lilac); background: linear-gradient(180deg, #faf8fd 0%, #fff 90px); }
.card[class*="acc-"] { border-left: 3px solid var(--acc); }

.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 16px;
}
.card-head h2 { display: flex; align-items: center; }
.step {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; margin-right: 10px;
  border-radius: 9px;
  background: var(--acc, var(--sand));
  color: #fff;
  font-size: 13px; font-weight: 600;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px;
  font: inherit; font-weight: 600; font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: 0.15s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: #fff; border-color: transparent; }
.btn.primary:hover { background: #b9705f; }
.btn.mint { background: var(--sage); color: #fff; border-color: transparent; }
.btn.mint:hover { background: #6f9a80; }
.btn.ghost { background: #fff; }
.btn.small { padding: 6px 12px; font-size: 12.5px; border-radius: 9px; }
.btn.block { width: 100%; }

.icon-btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
  font-size: 14px; cursor: pointer; color: var(--ink-soft);
}
.icon-btn:hover { background: var(--surface-2); }

input, textarea, select {
  font: inherit; color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  outline: none;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(124, 155, 184, 0.12); }
textarea { resize: vertical; min-height: 90px; }
label { font-weight: 600; font-size: 12.5px; color: var(--ink-soft); display: block; margin-bottom: 5px; }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  background: var(--surface-2); color: var(--ink-soft);
}
.tag.sun { background: var(--sand-soft); color: #8a7048; }
.tag.mint { background: var(--sage-soft); color: #4e7a63; }
.tag.coral { background: var(--accent-soft); color: #a35f50; }
.tag.lilac { background: var(--lilac-soft); color: #6f618f; }
.tag.grey { background: var(--surface-2); color: var(--muted); }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: "Cascadia Code", Consolas, "Courier New", monospace; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 30px;
}
.hero-mascot { position: relative; }
.hero-mascot img {
  width: 100%;
  aspect-ratio: 1 / 0.95;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
  background: #fff;
}
.hero-mascot .speech {
  position: absolute;
  right: -8px; bottom: -8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 5px 11px;
  font-size: 12px; font-weight: 600; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.hero h1 { font-size: 32px; margin-bottom: 10px; }
.hero h1 .hl { background: linear-gradient(transparent 64%, var(--sand-soft) 64%); padding: 0 2px; }
.hero .lead { color: var(--ink-soft); font-size: 14.5px; max-width: 620px; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero .chips .tag { background: #fff; border: 1px solid var(--line); }

/* ---------- 表单 ---------- */
.setup-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 22px; }

.dropzone {
  border: 1px dashed #d6cdbf;
  border-radius: 12px;
  background: #fdfbf7;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: 0.15s;
}
.dropzone:hover, .dropzone.drag { background: var(--sand-soft); border-color: var(--sand); }
.dropzone .dz-icon { font-size: 26px; opacity: 0.6; }
.dropzone .dz-main { font-weight: 600; margin-top: 6px; font-size: 14px; }
.dropzone .dz-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }

.source-meta { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12.5px; }
.source-meta .ok { color: var(--sage); font-weight: 600; }

.direction-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.dir-card {
  position: relative;
  display: flex; flex-direction: column; gap: 1px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  text-align: left;
  transition: 0.15s;
}
.dir-card:hover { border-color: #d3c9b8; background: #fdfbf7; }
.dir-card.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.dir-card.paused { opacity: 0.45; cursor: not-allowed; }
.dir-card .dc-emoji { font-size: 17px; }
.dir-card .dc-name { font-weight: 600; font-size: 13px; }
.dir-card .dc-tag { font-size: 10.5px; color: var(--muted); line-height: 1.3; }
.dir-card .dc-flag {
  position: absolute; top: -7px; right: -5px;
  background: var(--surface-2); color: var(--muted);
  border-radius: 999px; font-size: 9.5px; font-weight: 600; padding: 0 6px;
}

.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg .opt {
  flex: 1; min-width: 120px;
  padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; font-weight: 600; font-size: 12.5px;
  text-align: center; color: var(--ink-soft);
  transition: 0.15s;
}
.seg .opt:hover { background: var(--surface-2); }
.seg .opt.active { border-color: var(--sage); background: var(--sage-soft); color: #4e7a63; }
.seg .opt small { display: block; font-weight: 400; font-size: 10.5px; opacity: 0.8; }

.char-table { width: 100%; border-collapse: separate; border-spacing: 0 7px; }
.char-table th { font-size: 11.5px; color: var(--muted); text-align: left; padding: 0 4px; font-weight: 600; }
.char-table td { padding: 0 4px; vertical-align: middle; }
.char-table input { padding: 7px 9px; font-size: 12.5px; }
.row-del { background: #fff; border: 1px solid var(--line); border-radius: 8px; width: 27px; height: 27px; cursor: pointer; color: var(--muted); }
.row-del:hover { background: var(--accent-soft); color: var(--accent); }

.ep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ep-grid input { text-align: center; font-weight: 600; }

/* ---------- 运行面板 ---------- */
.run-panel { margin-top: 24px; }
.progress-wrap { display: flex; align-items: center; gap: 12px; }
.progress {
  flex: 1; height: 8px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}
.progress > i {
  display: block; height: 100%; width: 0;
  background: var(--sage);
  border-radius: 999px;
  transition: width 0.35s ease;
}
.progress-num { font-weight: 600; font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.stages { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; margin: 16px 0; }
.stage-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 9px;
  border: 1px solid var(--line); border-radius: 9px;
  background: #fff; font-size: 12px; font-weight: 500; color: var(--ink-soft);
}
.stage-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #ddd5c8; flex: none; }
.stage-chip.running { background: var(--sand-soft); border-color: #e3d6bd; }
.stage-chip.running .dot { background: var(--sand); }
.stage-chip.done { background: var(--sage-soft); border-color: #d5e6db; }
.stage-chip.done .dot { background: var(--sage); }
.stage-chip.error { background: var(--accent-soft); border-color: #efd3cb; }
.stage-chip.error .dot { background: var(--danger); }
.stage-chip.skipped { opacity: 0.65; }

.log-box {
  max-height: 190px; overflow: auto;
  background: #f7f4ee;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  color: var(--ink-soft);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11.5px; line-height: 1.75;
}
.log-box .warn { color: #9a7b3f; }
.log-box .error { color: var(--danger); }
.log-line { white-space: pre-wrap; word-break: break-all; }

.chunk-bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12.5px; }

/* ---------- 结果 ---------- */
.result-tabs { display: flex; gap: 6px; margin: 20px 0 14px; flex-wrap: wrap; }
.result-tab {
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; cursor: pointer; font-weight: 500; font-size: 12.5px; color: var(--ink-soft);
}
.result-tab:hover { background: var(--surface-2); }
.result-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.episode-list { display: flex; flex-direction: column; gap: 6px; max-height: 480px; overflow: auto; padding-right: 4px; }
.episode-row {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 13px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer;
  transition: 0.12s;
}
.episode-row:hover { background: #fdfbf7; border-color: #d9cfbf; }
.episode-row .ep-no { font-weight: 600; font-size: 13px; }
.episode-row .ep-hook { color: var(--ink-soft); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.episode-row .ep-chars { font-size: 11.5px; color: var(--muted); white-space: nowrap; }

.ep-editor {
  width: 100%;
  min-height: 460px;
  font-family: "Source Han Serif SC", "Songti SC", "Noto Serif SC", serif;
  font-size: 15.5px;
  line-height: 2;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  resize: vertical;
}

.plan-view { display: grid; gap: 10px; }
.plan-block { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px; }
.plan-block h4 { margin: 0 0 6px; font-size: 13.5px; }
.plan-block pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: 12.5px; color: var(--ink-soft); }

.report-view {
  background: #fff; border: 1px solid var(--line); border-radius: 11px;
  padding: 20px 22px; max-height: 540px; overflow: auto;
  white-space: pre-wrap; font-size: 13.5px; color: var(--ink-soft);
}

.download-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 11px;
  padding: 11px 14px;
}
.stat .k { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.stat .v { font-size: 21px; font-weight: 600; line-height: 1.25; }

.banner {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 11px;
  border: 1px solid var(--line); margin-bottom: 14px;
  font-size: 13px; color: var(--ink-soft);
}
.banner.warn { background: var(--sand-soft); border-color: #e7dac0; }
.banner.error { background: var(--accent-soft); border-color: #eed4cc; }
.banner.info { background: var(--blue-soft); border-color: #d7e3ef; }

/* ---------- 审校页 ---------- */
.audit-hero { display: grid; grid-template-columns: 1fr 300px; gap: 30px; align-items: center; margin-bottom: 30px; }
.audit-hero img { width: 100%; border-radius: 22px; box-shadow: var(--shadow); }
.rules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rule-card { display: flex; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px; }
.rule-card .rn {
  flex: none; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent-soft); color: #a35f50; font-weight: 600; font-size: 11px;
}
.rule-card h4 { margin: 0 0 2px; font-size: 13.5px; }
.rule-card p { font-size: 12px; color: var(--muted); }
.rule-card.soon { opacity: 0.8; }

/* ---------- 模态 ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(47, 44, 42, 0.32);
  backdrop-filter: blur(2px);
  display: grid; place-items: center;
  padding: 20px;
}
.modal {
  width: min(680px, 100%);
  max-height: 88vh;
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(47, 44, 42, 0.18);
}
.modal.wide { width: min(900px, 100%); }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line-soft);
}
.modal-body { padding: 18px 20px; overflow: auto; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

/* ---------- 错题集 ---------- */
.err-list { display: flex; flex-direction: column; gap: 7px; max-height: 320px; overflow: auto; }
.err-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.err-item .err-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.err-item .err-mistake { font-weight: 600; font-size: 13px; }
.err-item .err-problem { color: var(--ink-soft); font-size: 12px; margin-top: 3px; }
.err-item .err-fix { color: #4e7a63; font-size: 12px; margin-top: 2px; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: flex; flex-direction: column; gap: 9px; }
.toast {
  min-width: 220px; max-width: 380px;
  background: #fff; border: 1px solid var(--line); border-radius: 11px;
  box-shadow: var(--shadow); padding: 11px 15px; font-size: 13.5px; font-weight: 500;
  animation: toastIn 0.2s ease;
}
.toast.ok { border-left: 3px solid var(--sage); }
.toast.err { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--blue); }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } }

.empty-hint { text-align: center; color: var(--muted); padding: 26px 10px; font-size: 12.5px; }
.empty-hint .eh-emoji { font-size: 30px; opacity: 0.7; }

.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #fff; border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .hero, .audit-hero { grid-template-columns: 1fr; }
  .hero-mascot { max-width: 300px; }
  .setup-grid { grid-template-columns: 1fr; }
  .stages { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .rules-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .app-shell { flex-direction: column; }
  .sidebar {
    position: sticky; top: 0; width: 100%; height: auto;
    flex-direction: row; align-items: center; flex-wrap: wrap;
    gap: 10px; padding: 10px 14px;
    border-right: 0; border-bottom: 1px solid var(--line);
  }
  .side-nav { flex-direction: row; }
  .side-section { display: none; }
  .side-footer { margin-left: auto; flex-direction: row; align-items: center; }
  .llm-status { display: none; }
  main { padding: 22px 16px 70px; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 25px; }
  .direction-grid { grid-template-columns: repeat(2, 1fr); }
  .stages { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 审校页 ---------- */
.audit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.audit-grid textarea { min-height: 260px; font-size: 13.5px; line-height: 1.8; }
.audit-toolbar { display: flex; gap: 14px; align-items: flex-end; }
.conclusion { padding: 14px 18px; border-radius: 11px; font-weight: 600; font-size: 16px; margin-bottom: 12px; }
.conclusion.ok { background: var(--sage-soft); color: #4e7a63; }
.conclusion.warn { background: var(--sand-soft); color: #8a7048; }
.conclusion.bad { background: var(--accent-soft); color: #a35f50; }
.audit-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.issue-list { display: flex; flex-direction: column; gap: 10px; }
.issue-card { border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 11px; padding: 13px 15px; background: #fff; }
.issue-card.l1 { border-left-color: var(--danger); }
.issue-card.l2 { border-left-color: var(--sand); }
.issue-card.l3 { border-left-color: var(--blue); }
.issue-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.rule-tag { background: var(--surface-2); border-radius: 6px; padding: 1px 7px; font-size: 11px; font-weight: 600; color: var(--ink-soft); }
.level-tag { font-size: 10.5px; font-weight: 600; border-radius: 999px; padding: 1px 8px; background: var(--surface-2); color: var(--ink-soft); }
.issue-card.l1 .level-tag { background: var(--accent-soft); color: #a35f50; }
.issue-card.l2 .level-tag { background: var(--sand-soft); color: #8a7048; }
.issue-card.l3 .level-tag { background: var(--blue-soft); color: #4f6f8c; }
.issue-quote { font-size: 13px; padding: 8px 11px; border-radius: 8px; margin-top: 6px; background: #faf8f4; color: var(--ink-soft); }
.issue-quote.en::before { content: "EN "; font-size: 10px; color: var(--muted); font-weight: 600; }
.issue-quote.zh::before { content: "ZH "; font-size: 10px; color: var(--muted); font-weight: 600; }
.issue-reason { font-size: 13px; margin-top: 6px; color: var(--ink-soft); }
.issue-fix { font-size: 12.5px; margin-top: 4px; color: #4e7a63; }
.issue-meta { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
@media (max-width: 1000px) { .audit-grid { grid-template-columns: 1fr; } }

/* ---------- 本地化流程导览 ---------- */
.flow-guide { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 22px; padding: 7px; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-sm); }
.flow-step { display: flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 9px; color: var(--ink-soft); text-decoration: none; font-size: 12.5px; font-weight: 500; }
.flow-step:hover { background: var(--surface-2); color: var(--ink); }
.flow-step b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; background: var(--sand-soft); color: #8a7048; font-size: 10.5px; font-weight: 600; }

/* ---------- 步骤改为从上到下 ---------- */
.flow-guide { max-width: 900px; margin: 0 auto 22px; }
.setup-grid { display: flex; flex-direction: column; gap: 22px; max-width: 900px; margin: 0 auto; }
.setup-grid .stack { display: contents; }

/* 修正：单列步骤卡片撑满内容区 */
.setup-grid { align-items: stretch; }
.setup-grid .card { width: 100%; }
.setup-grid > .stack { width: 100%; }

/* ---------- 两列步骤：左 1/3，右 2/4 ---------- */
.flow-guide { max-width: 1100px; }
.setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.setup-grid .stack { display: contents; }
.setup-grid .card { width: 100%; position: relative; }
.setup-grid .card .step { box-shadow: 0 0 0 4px #fff; }
@media (max-width: 1000px) {
  .setup-grid { grid-template-columns: 1fr; }
}

/* ---------- 行内等高，块与块对齐 ---------- */
.setup-grid { align-items: stretch; }
.setup-grid .card { display: flex; flex-direction: column; }
.setup-grid .card > * { flex: none; }
.setup-grid .card > #sourceText { flex: 1 1 auto; min-height: 220px; }
.setup-grid .card > .direction-grid { flex: 1 1 auto; align-content: start; }

/* ---------- 审校页标语气泡 ---------- */
.audit-hero .hero-mascot .speech { right: 8px; bottom: -12px; font-size: 13px; letter-spacing: 0.5px; }
.audit-hero .hero-mascot .speech .yes { color: var(--sage); font-weight: 700; }
.audit-hero .hero-mascot .speech .no { color: var(--danger); font-weight: 700; }

/* ---------- 资料区 ---------- */
.res-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.res-toolbar input { flex: 1; min-width: 220px; }
.res-toolbar .seg { flex: none; }
.res-list { display: flex; flex-direction: column; gap: 7px; max-height: 56vh; overflow: auto; }
.res-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; background: #fff; }
.res-item-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }

/* ---------- 错误集筛选 ---------- */
.eb-toolbar { margin-top: 10px; }
.eb-cats { margin-top: 8px; gap: 6px; }
.eb-cats .opt {
  flex: none; min-width: 0;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; font-size: 12px; border-radius: 999px;
}
.eb-cats .opt small { display: inline; margin: 0; font-size: 10px; font-weight: 600; opacity: 0.7; }
.eb-count { margin: 9px 0 6px; }
.eb-res-list { max-height: 58vh; }
.eb-hl { background: #ffe9a8; color: inherit; border-radius: 3px; padding: 0 1px; }
.eb-reader .res-toolbar input { min-width: 240px; }

/* ---------- 资料区页面 ---------- */
.side-link.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.res-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 20px; }
.res-hero h1 { font-size: 24px; }
.res-hero .lead { color: var(--muted); font-size: 13px; margin-top: 4px; }
.res-stats { display: flex; gap: 6px; flex-wrap: wrap; }
.team-menu-item { display: flex; align-items: center; gap: 6px; }
.team-menu-item small { margin-left: auto; opacity: 0.62; font-size: 11px; font-weight: 500; }

/* ---------- 素材库 ---------- */
.asset-upload {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border: 1px dashed var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.6);
  padding: 13px 15px;
}
.asset-upload-text b { font-size: 13.5px; }
.asset-upload-text p { margin-top: 3px; }
.asset-progress {
  position: relative; height: 8px; margin-top: 8px;
  background: var(--surface-2); border-radius: 999px; overflow: hidden;
}
.asset-progress > i { display: block; height: 100%; width: 0; background: var(--sage); transition: width 0.2s; }
.asset-progress > span {
  position: absolute; right: 0; top: -18px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; margin-top: 4px; }
.asset-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: 13px; overflow: hidden;
}
.asset-thumb {
  position: relative; aspect-ratio: 16 / 9; cursor: pointer;
  background: #2c2a26 center / cover no-repeat;
  display: grid; place-items: center;
}
.asset-thumb:hover .asset-play { transform: scale(1.08); }
.asset-play {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.86); color: #2c2a26; font-size: 17px; padding-left: 3px;
  transition: transform 0.15s;
}
.asset-size {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 10.5px;
  padding: 1px 7px; border-radius: 999px;
}
.asset-video { width: 100%; height: 100%; display: block; background: #000; }
.asset-body { padding: 9px 12px 4px; }
.asset-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-sub { margin-top: 2px; }
.asset-note { margin-top: 4px; color: var(--ink-soft); }
.asset-actions { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 12px 12px; }
.asset-actions .btn { padding: 4px 10px; font-size: 12px; text-decoration: none; }
.btn.ghost.danger { color: var(--danger); border-color: rgba(200, 90, 70, 0.28); }
.btn.ghost.danger:hover { background: rgba(200, 90, 70, 0.08); }

/* ---------- 微信绑定码 ---------- */
.bind-code {
  margin: 18px auto 0;
  padding: 16px 0;
  text-align: center;
  font: 700 40px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px dashed var(--line);
  border-radius: 14px;
  user-select: all;
}

/* ---------- 左操作 / 右结果 ---------- */
.workspace { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr); gap: 22px; align-items: start; max-width: 1280px; margin: 0 auto; }
.setup-grid { display: flex; flex-direction: column; gap: 18px; max-width: none; margin: 0; }
.setup-grid .stack { display: contents; }
.workspace-side { position: sticky; top: 20px; }
.side-empty { border-style: dashed; box-shadow: none; color: var(--muted); text-align: center; padding: 46px 22px; }
@media (max-width: 1100px) { .workspace { grid-template-columns: 1fr; } .workspace-side { position: static; } }

/* ---------- 团队与权限 ---------- */
.team-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 22px; }
.team-id { display: flex; align-items: center; gap: 14px; }
.avatar {
  display: grid; place-items: center;
  width: 54px; height: 54px; flex: none;
  border-radius: 17px;
  background: var(--sand-soft);
  color: #8a7048;
  font-size: 22px; font-weight: 600;
}
.team-id h1 { font-size: 23px; }
.team-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.team-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.role-badge {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  background: var(--surface-2); color: var(--ink-soft);
  white-space: nowrap;
}
.role-badge.developer { background: var(--lilac-soft); color: #6f618f; }
.role-badge.project_lead { background: var(--sand-soft); color: #8a7048; }
.role-badge.member { background: var(--sage-soft); color: #4e7a63; }
.role-badge.user { background: var(--blue-soft); color: #4f6f8c; }

.status-pill { font-size: 11.5px; font-weight: 600; color: var(--sage); white-space: nowrap; }
.status-pill.off { color: var(--danger); }
.ok-text { color: var(--sage); }
.danger-text { color: var(--danger); }

.team-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr); gap: 22px; align-items: start; max-width: 1280px; margin: 0 auto; }

.member-list { display: flex; flex-direction: column; gap: 6px; }
.member-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.member-row .m-name { font-weight: 600; font-size: 13px; }
.member-row .m-sub { color: var(--muted); font-size: 11.5px; }
.member-row .m-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.member-row > div:not(.m-right) { min-width: 0; }

.invite-code {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 15px; font-weight: 600; letter-spacing: 2.5px;
  background: var(--sand-soft); color: #8a7048;
  border-radius: 8px; padding: 3px 10px;
  white-space: nowrap;
}
.invite-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
.invite-row.off { opacity: 0.6; }
.invite-row .inv-meta { font-size: 11px; color: var(--muted); }
.invite-row .inv-right { margin-left: auto; display: flex; gap: 6px; }

.copy-btn, .err-actions button {
  background: #fff; border: 1px solid var(--line); border-radius: 7px;
  padding: 3px 9px; font-size: 11.5px; color: var(--ink-soft); cursor: pointer;
  white-space: nowrap;
}
.copy-btn:hover, .err-actions button:hover { background: var(--surface-2); color: var(--ink); }
.copy-btn:active, .err-actions button:active { transform: translateY(1px); }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.user-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.user-table th {
  background: var(--surface-2); color: var(--muted);
  font-size: 11px; font-weight: 600; text-align: left;
  padding: 9px 10px; white-space: nowrap;
}
.user-table td { padding: 8px 10px; border-top: 1px solid var(--line-soft); vertical-align: middle; }
.user-table tr.off td { background: #fdf9f8; }
.user-table td select { padding: 5px 7px; font-size: 12px; min-width: 104px; width: auto; }
.user-table .m-sub { font-size: 11px; color: var(--muted); }
.u-actions { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.user-table .u-points { font-variant-numeric: tabular-nums; font-weight: 600; color: #8a7048; white-space: nowrap; }

.user-create { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.user-create input, .user-create select { width: auto; flex: 1; min-width: 120px; padding: 7px 10px; font-size: 12.5px; }
.user-create button { flex: none; }

.app-item { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--sand); border-radius: 10px; padding: 12px 14px; }
.app-item .app-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.app-review { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.app-review input { flex: 1; min-width: 160px; padding: 6px 10px; font-size: 12.5px; }

.err-actions { margin-left: auto; display: flex; gap: 5px; flex-wrap: wrap; }
.err-item.revoked { opacity: 0.66; background: #fbf8f6; }
.err-list.tall { max-height: 460px; }
.err-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.eb-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; margin-top: 10px; }
.eb-form input { padding: 7px 10px; font-size: 12.5px; }
.eb-form button { flex: none; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid .full { grid-column: 1 / -1; }

.kv-list { display: flex; flex-direction: column; gap: 6px; }
.kv-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 3px 0; border-bottom: 1px dashed var(--line-soft); }
.kv-list > div:last-child { border-bottom: 0; }
.kv-list span { color: var(--muted); }
.kv-list b { font-weight: 600; text-align: right; }

.role-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-card { border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; background: #fff; }
.role-card p { font-size: 12px; color: var(--muted); margin-top: 5px; }

@media (max-width: 1100px) {
  .team-grid { grid-template-columns: 1fr; }
  .eb-form { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .role-cards { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .user-create input, .user-create select { min-width: 100%; }
}

/* ---------- 站点页脚（备案号） ---------- */
.site-footer {
  margin-top: 48px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.9;
  text-align: center;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink-soft); text-decoration: underline; }
.site-footer .sep { margin: 0 7px; opacity: 0.55; }

/* ---------- 审校问题卡片（按模板重排） ---------- */
.issue-card { border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 12px; padding: 16px 18px; background: #fff; }
.issue-card.l1 { border-left-color: var(--danger); }
.issue-card.l2 { border-left-color: var(--sand); }
.issue-card.l3 { border-left-color: var(--blue); }
.ic-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.ic-id { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .5px; }
.ic-level { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 1px 9px; }
.issue-card.l1 .ic-level { background: var(--accent-soft); color: #a35f50; }
.issue-card.l2 .ic-level { background: var(--sand-soft); color: #8a7048; }
.issue-card.l3 .ic-level { background: var(--blue-soft); color: #4f6f8c; }
.ic-rule { font-size: 11px; font-weight: 600; color: var(--ink-soft); background: var(--surface-2); border-radius: 6px; padding: 1px 7px; }
.ic-cat { font-size: 11px; font-weight: 600; color: #8a7048; background: var(--sand-soft); border-radius: 999px; padding: 1px 9px; }
.ic-conf { margin-left: auto; font-size: 11px; color: var(--muted); }

/* ---------- 中式元素面板 ---------- */
.sinism-panel {
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px;
  background: linear-gradient(180deg, rgba(246, 240, 228, 0.7), rgba(255, 255, 255, 0.9));
  margin-bottom: 16px;
}
.sinism-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sinism-head h3 { font-size: 14.5px; margin: 0; }
.sinism-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.sinism-chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 4px 11px; font: inherit; font-size: 12px; color: var(--ink-soft);
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.sinism-chip b { font-size: 11px; font-weight: 700; color: #8a7048; }
.sinism-chip:hover { background: var(--sand-soft); }
.sinism-chip.active { border-color: var(--sand); background: var(--sand-soft); color: #7a6338; }
.sinism-hint { font-size: 11.5px; color: var(--muted); margin: 9px 0 0; line-height: 1.6; }
.audit-r12-jump { cursor: pointer; border: 1px solid transparent; }
.audit-r12-jump.active { border-color: var(--sand); box-shadow: var(--shadow-sm); }
.ic-title { font-size: 15px; margin: 2px 0 4px; }
.ic-loc { font-size: 11.5px; color: var(--muted); margin-bottom: 10px; }
.ic-quotes { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.ic-q { display: flex; gap: 10px; background: #faf8f4; border-radius: 8px; padding: 8px 11px; }
.ic-q-label { flex: none; font-size: 10px; font-weight: 600; color: var(--muted); padding-top: 3px; }
.ic-q p { margin: 0; font-size: 13px; color: var(--ink-soft); }
.ic-reason { font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.ic-meta { font-size: 11.5px; color: var(--muted); margin-bottom: 10px; }
.ic-fix { border: 1px solid var(--line-soft); border-radius: 9px; padding: 10px 12px; background: #fcfbf7; }
.ic-fix-head { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.ic-copy { border: 1px solid var(--line); background: #fff; border-radius: 7px; font-size: 11px; padding: 2px 8px; cursor: pointer; color: var(--ink-soft); }
.ic-copy:hover { background: var(--surface-2); }
.ic-fix-en { font-size: 13px; color: var(--ink); }
.ic-fix-zh { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.ic-sync { font-size: 11.5px; color: var(--muted); margin-top: 6px; border-top: 1px dashed var(--line); padding-top: 6px; }
.ic-check { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--ink-soft); cursor: pointer; }
.ic-check input { width: auto; margin: 0; }
.ic-note { font-size: 10.5px; color: var(--muted); text-align: right; margin-top: 2px; }

/* ---------- 放宽内容宽度，减少两侧空白 ---------- */
main { max-width: 1360px; padding: 30px 40px 90px; }
.hero, .audit-hero { max-width: 1320px; margin-left: auto; margin-right: auto; }
.flow-guide { max-width: 1320px; }
.workspace { max-width: 1320px; gap: 26px; grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr); }
.setup-grid { gap: 20px; }
.card { padding: 24px; }
.card-head { margin-bottom: 18px; }
@media (max-width: 1500px) {
  main { max-width: 1240px; padding: 28px 32px 80px; }
  .workspace { max-width: 1200px; }
}

/* ---------- 结论计数可跳转 ---------- */
.audit-jump { cursor: pointer; font-family: inherit; font-size: 11.5px; border: 0; padding: 3px 10px; }
.audit-jump:hover { filter: brightness(0.96); }
.ic-flash { box-shadow: 0 0 0 3px rgba(196, 124, 107, .45); transition: box-shadow .2s; }

/* 计数按钮：筛选态 */
.audit-jump.active { box-shadow: inset 0 0 0 2px var(--ink); }

/* ---------- Hero 行距放宽 ---------- */
.hero h1, .audit-hero h1 { line-height: 1.38; margin-bottom: 16px; }
.hero .lead, .audit-hero .lead { line-height: 1.95; margin-bottom: 8px; }
.hero .chips { margin-top: 22px; gap: 10px; }
.audit-hero .chips { margin-top: 20px; gap: 10px; }
.hero .chips .tag, .audit-hero .chips .tag { padding: 4px 11px; }

/* ---------- 顶部工具条 ---------- */
#mainArea { display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 40px;
  background: rgba(250, 248, 244, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.tb-left { font-size: 12px; color: var(--muted); }
.tb-right { display: flex; align-items: center; gap: 8px; }
.tb-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 5px 12px; font: inherit; font-size: 12px; color: var(--ink-soft); cursor: pointer;
}
.tb-btn:hover { background: var(--surface-2); }
.tb-badge {
  display: inline-block; min-width: 16px; margin-left: 5px; padding: 0 4px;
  background: var(--accent); color: #fff; border-radius: 999px;
  font-size: 10px; line-height: 16px; text-align: center;
}
.tb-points { font-size: 12px; color: var(--ink-soft); padding: 0 4px; }
.tb-points b { color: var(--ink); }
.tb-user {
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  border-radius: 999px; padding: 5px 13px; font: inherit; font-size: 12px; cursor: pointer;
}
@media (max-width: 900px) {
  .topbar { padding: 8px 14px; }
  .tb-left { display: none; }
  .tb-points { display: none; }
}

/* 顶栏贴合主区域内边距 */
.topbar { margin: -30px -40px 20px; }
@media (max-width: 1500px) { .topbar { margin: -28px -32px 18px; } }
@media (max-width: 900px) { .topbar { margin: -22px -16px 16px; } }

/* 审查等级统一配色：L1 红 / L2 黄 / L3 绿 */
.tag.l1 { background: #fde8e4; color: #b4544a; }
.tag.l2 { background: #fbf0d4; color: #8a6d2f; }
.tag.l3 { background: #e3f3e8; color: #4e7a63; }
.issue-card.l3 { border-left-color: #7fae91; }
.issue-card.l3 .ic-level { background: #e3f3e8; color: #4e7a63; }

/* 侧栏品牌与导航间距 */
.brand-text { line-height: 1.2; }
.brand-text strong { display: block; margin-bottom: 5px; font-size: 19px; letter-spacing: 3px; }
.brand-text em { letter-spacing: .6px; }
.side-nav { margin-top: 12px; }
.side-section { margin-top: 10px; }

/* 团队页：左侧菜单 + 右侧内容 */
.team-shell { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 22px; align-items: start; }
.team-menu { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 84px; }
.team-menu-item {
  border: 1px solid transparent; background: transparent; text-align: left;
  padding: 9px 12px; border-radius: 10px; font: inherit; font-size: 13px;
  color: var(--ink-soft); cursor: pointer;
}
.team-menu-item:hover { background: var(--surface-2); }
.team-menu-item.active { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); color: var(--ink); font-weight: 600; }
.team-sec { display: none; }
.team-sec.active { display: block; }
@media (max-width: 900px) {
  .team-shell { grid-template-columns: 1fr; }
  .team-menu { flex-direction: row; flex-wrap: wrap; position: static; }
  .team-sec.active { display: block; }
}

/* ---------- 加载动画 ---------- */
.loading-overlay {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  background: rgba(250, 248, 244, .82);
  backdrop-filter: blur(4px);
}
.loading-box { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.loading-box video, .loading-box img {
  width: 220px; height: auto; display: block;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, .16));
  border-radius: 16px;
}
.loading-text { font-size: 13px; color: var(--ink-soft); letter-spacing: 1px; }

/* ---------- 登录页 ---------- */
.login-page {
  position: fixed; inset: 0; z-index: 120;
  display: grid; grid-template-columns: 1.1fr 460px;
  background: var(--bg);
}
.login-visual { position: relative; overflow: hidden; }
.login-visual img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9); }
.login-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(250,248,244,0) 40%, rgba(250,248,244,.92) 100%);
}
.login-visual-text {
  position: absolute; left: 38px; bottom: 34px; z-index: 2;
  display: flex; flex-direction: column; gap: 4px; color: var(--ink);
  background: rgba(255,255,255,.72); backdrop-filter: blur(6px);
  padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line);
}
.login-visual-text strong { font-size: 22px; letter-spacing: 2px; }
.login-visual-text span { font-size: 12px; color: var(--ink-soft); }
.login-panel { display: grid; place-items: center; padding: 30px; }
.login-card {
  width: min(360px, 100%);
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 20px 50px rgba(47,44,42,.12);
  padding: 28px 26px;
}
.login-card h1 { font-size: 24px; margin-bottom: 4px; }
.login-sub { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.login-tabs { display: flex; gap: 6px; background: var(--surface-2); border-radius: 10px; padding: 4px; margin-bottom: 16px; }
.login-tab {
  flex: 1; border: 0; background: transparent; padding: 7px; border-radius: 8px;
  font: inherit; font-size: 13px; color: var(--ink-soft); cursor: pointer;
}
.login-tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 600; }
.login-card label { margin-top: 10px; }
.login-card input { margin-bottom: 2px; }
.login-card .btn { margin-top: 16px; }
.login-tip { margin-top: 12px; text-align: center; }
@media (max-width: 860px) {
  .login-page { grid-template-columns: 1fr; }
  .login-visual { display: none; }
}

.login-visual .login-video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 登录页：视频全屏铺满，登录卡浮在右侧 */
.login-page { display: block; position: fixed; inset: 0; background: #1c1a18; }
.login-visual { position: absolute; inset: 0; overflow: hidden; display: block; }
.login-visual .login-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.login-visual::after {
  background:
    linear-gradient(90deg, rgba(250,248,244,0) 35%, rgba(250,248,244,.55) 62%, rgba(250,248,244,.92) 82%),
    linear-gradient(0deg, rgba(28,26,24,.22), rgba(28,26,24,0) 45%);
}
.login-visual-text { left: 34px; bottom: 30px; }
.login-panel {
  position: relative; z-index: 2;
  height: 100vh; display: flex; align-items: center; justify-content: flex-end;
  padding: 0 6vw;
}
.login-card { box-shadow: 0 26px 60px rgba(20,18,16,.22); }
@media (max-width: 860px) {
  .login-visual { display: block; }
  .login-panel { justify-content: center; padding: 20px; }
  .login-visual::after { background: rgba(250,248,244,.68); }
  .login-visual-text { display: none; }
}

.login-error {
  margin-top: 10px; padding: 7px 10px; border-radius: 8px;
  background: #fde8e4; color: #b4544a; font-size: 12px;
}
.toast-wrap { z-index: 200; }
