/* 律案 · AI 法律工作台 —— 视觉规范（按真实产品截图复刻） */
:root {
  --ink: #131118;
  --ink-2: #3d3652;
  --ink-3: #6b6478;
  --ink-4: #9aa0a6;
  --line: #ececf0;
  --line-2: #dcdce2;
  --brand: #51437b;
  --brand-dark: #453a6a;
  --brand-soft: #f1eefb;
  --brand-line: #4a3f6e;
  --side: #f7f7f8;
  --side-active: #e9e8ec;
  --soft: #f5f5f7;
  --blue: #3f7bf6;
  --green: #15803d;
  --green-soft: #e9f7ee;
  --amber: #b45309;
  --amber-soft: #fdf3e3;
  --red: #c02c2c;
  --red-soft: #fdecec;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 12, 28, .05);
  --shadow-md: 0 10px 34px -18px rgba(20, 14, 40, .35);
  --header-h: 76px;
  --side-w: 236px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: #fff;
  color: var(--ink);
  font: 14px/1.6 ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; flex: 0 0 auto; }
/* 内联图标兜底尺寸：没有单独设定尺寸的图标一律 18px，避免个别位置渲染成默认 300×150 */
svg { width: 18px; height: 18px; }
input, textarea, select { outline: none; }
::selection { background: #ded6f5; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #dcdce2; border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

/* ============================ 通用 ============================ */
.row { display: flex; align-items: center; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--ink-3); }
.dim { color: var(--ink-4); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.bold { font-weight: 600; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.divider-v { width: 1px; height: 18px; background: var(--line-2); }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 20px; padding: 0 8px; border-radius: 99px;
  font-size: 11px; font-weight: 500; background: var(--brand-soft); color: var(--brand);
}
.badge-line { background: #fff; border: 1px solid var(--line-2); color: var(--ink-3); }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-red { background: var(--red-soft); color: var(--red); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 18px; border-radius: 9px;
  font-size: 13.5px; font-weight: 500; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink-2); background: #fff; }
.btn-ghost:hover { border-color: #b9b0d4; color: var(--brand); }
.btn-quiet { color: var(--ink-3); }
.btn-quiet:hover { color: var(--brand); background: var(--soft); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { height: 44px; padding: 0 34px; font-size: 14.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:disabled { background: #d8d8dc; color: #fff; cursor: not-allowed; }

.icon-btn {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-3);
}
.icon-btn:hover { background: var(--soft); color: var(--brand); }
.icon-btn svg { width: 17px; height: 17px; }

/* ============================ 公共站点头部 ============================ */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(14px);
}
.site-header .shell { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.shell { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 26px; }
.shell-narrow { width: 100%; max-width: 900px; margin: 0 auto; padding: 0 26px; }
.logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.logo-mark { width: 30px; height: 30px; color: var(--brand); }
.logo-mark svg { width: 30px; height: 30px; }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.sb-top .logo-mark img { width: 26px; height: 26px; }
.logo-name { font-size: 17px; font-weight: 500; letter-spacing: 1px; color: #000; }

.nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.nav-item { position: relative; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px;
  border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2);
}
.nav-item:hover .nav-trigger, .nav-trigger.active { background: var(--soft); }
.nav-trigger .chev { width: 12px; height: 12px; color: var(--ink-4); }
.nav-sub {
  position: absolute; top: 52px; left: 0; min-width: 300px;
  background: #fff; border-radius: 12px; box-shadow: 0 12px 40px -12px rgba(20, 14, 40, .28);
  padding: 10px; display: none; z-index: 50;
}
.nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub { display: block; }
.nav-sub button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; }
.nav-sub button:hover { background: var(--soft); }
.nav-sub .t { font-size: 14px; font-weight: 600; color: var(--ink); }
.nav-sub .d { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.login-btn { height: 38px; padding: 0 22px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 14px; }
.login-btn:hover { background: var(--brand-dark); }

/* ============================ 首页 ============================ */
.hero { padding: 108px 0 0; }
.hero h1 {
  margin: 0; text-align: center; font-size: 34px; font-weight: 700; letter-spacing: .5px;
  background: linear-gradient(180deg, #6b6b6b, #000);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { margin: 20px auto 0; max-width: 700px; text-align: center; color: var(--ink-3); font-size: 15px; }
.compose-wrap { width: 100%; max-width: 880px; margin: 40px auto 0; }
.compose {
  border: 1.6px solid var(--brand-line); border-radius: 14px; background: #fff;
  padding: 16px 16px 12px;
}
.compose textarea {
  width: 100%; border: 0; resize: none; min-height: 120px; font-size: 15px; line-height: 1.8; background: transparent;
}
.compose textarea::placeholder { color: var(--ink-4); }
.compose-foot { display: flex; align-items: center; gap: 10px; padding-top: 10px; }
.scene-pick {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 99px; font-size: 12.5px; color: var(--ink-2);
}
.scene-pick:hover { border-color: #b9b0d4; color: var(--brand); }
.scene-pick .chev { width: 12px; height: 12px; color: var(--ink-4); }
.auto-pick { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); padding: 0 4px; }
.auto-pick svg { width: 15px; height: 15px; color: var(--brand); }
.send-btn {
  width: 36px; height: 36px; border-radius: 50%; background: #b7aed6; color: #fff;
  display: grid; place-items: center; transition: background .15s ease;
}
.send-btn.on, .send-btn:hover { background: var(--brand); }
.send-btn svg { width: 17px; height: 17px; }
.ai-note { text-align: center; font-size: 11px; color: #c9cbd1; margin-top: 8px; }
.ai-bar {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
  padding: 9px 34px; border-top: 1px solid var(--line); background: #fbfaff;
  font-size: 11.5px; color: var(--ink-4); line-height: 1.55;
}
.ai-bar .tag {
  flex: none; padding: 1px 7px; border-radius: 5px; background: #efeaf8;
  color: #6b57b8; font-size: 10.5px; font-weight: 600;
}
.try-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 24px; }
.try-row .label { font-size: 13.5px; color: var(--ink-4); }
.try-chip {
  height: 32px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-2);
  background: #fff; font-size: 13.5px; color: var(--ink-2); display: inline-flex; align-items: center;
}
.try-chip:hover { border-color: #b9b0d4; color: var(--brand); }
.file-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: 8px; background: var(--soft); font-size: 12px; color: var(--ink-2);
}
.file-chip svg { width: 13px; height: 13px; color: var(--ink-4); }
.attached-row { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 8px; }

.home-foot { padding: 96px 0 40px; }
.home-foot .links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; font-size: 13.5px; color: var(--ink-3); }
.home-foot .links .sep { margin: 0 16px; color: var(--line-2); }
.home-foot a:hover, .home-foot button:hover { color: var(--brand); }

/* ============================ 应用外壳 ============================ */
.app { display: grid; grid-template-columns: var(--side-w) 1fr; height: 100vh; background: #fff; }
.sidebar { background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.sb-top { height: 58px; display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.sb-top .logo-mark { width: 26px; height: 26px; }
.sb-top .logo-mark svg { width: 26px; height: 26px; }
.sb-top .logo-name { font-size: 15px; }
.sb-collapse { margin-left: auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--ink-4); }
.sb-collapse:hover { background: var(--side-active); color: var(--ink-2); }
.sb-scroll { flex: 1 1 auto; overflow-y: auto; padding-bottom: 12px; }
.sb-new { display: flex; align-items: center; gap: 10px; margin: 4px 12px 12px; height: 40px; padding: 0 12px; border-radius: 10px; font-size: 14px; color: var(--ink); }
.sb-new:hover { background: var(--side-active); }
.sb-new .ico { width: 26px; height: 26px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.sb-new .ico svg { width: 15px; height: 15px; }
.sb-label { padding: 12px 22px 6px; font-size: 12px; color: var(--ink-4); }
.sb-item {
  display: flex; align-items: center; gap: 10px; height: 40px; margin: 0 12px;
  padding: 0 12px; border-radius: 10px; font-size: 14px; color: var(--ink-2); width: calc(100% - 24px); text-align: left;
}
.sb-item svg { width: 18px; height: 18px; }
.sb-item:hover { background: var(--side-active); }
.sb-item.active { background: var(--side-active); color: var(--ink); font-weight: 500; }
.sb-item .tag { margin-left: auto; font-size: 11px; color: var(--ink-4); }
.sb-foot { padding: 10px 12px 14px; display: grid; gap: 8px; }
.sb-invite {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
  background: #fff; border-radius: 10px; font-size: 13.5px; color: var(--ink-2); width: 100%;
}
.sb-invite:hover { color: var(--brand); }
.sb-invite svg { width: 16px; height: 16px; }
.sb-user { display: flex; align-items: center; gap: 10px; padding: 6px 8px; font-size: 13.5px; color: var(--ink-2); }
.sb-user .av { width: 26px; height: 26px; border-radius: 50%; background: #d9d5ea; color: var(--brand); display: grid; place-items: center; font-size: 12px; }
.sb-user .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-user .btn-quiet { flex: 0 0 auto; }
.login-err { margin: 10px 0 0; color: #c0392b; font-size: 12.5px; }
.nav-user { font-size: 13px; color: var(--ink-3); }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; }
.modtabs { flex: 0 0 auto; height: 54px; display: flex; align-items: center; gap: 2px; padding: 0 22px; border-bottom: 1px solid var(--line); }
.modtab {
  display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 16px;
  font-size: 14px; color: var(--ink-3); border-bottom: 2px solid transparent;
}
.modtab svg { width: 17px; height: 17px; }
.modtab:hover { color: var(--ink); }
.modtab.active { color: var(--ink); font-weight: 600; border-color: var(--brand); }
.modtabs-right { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--ink-3); }
.modtabs-right button { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); }
.modtabs-right button:hover { color: var(--brand); }
.modtabs-right svg { width: 15px; height: 15px; }

.page { flex: 1 1 auto; overflow-y: auto; padding: 26px 34px 48px; }
.page-center { display: flex; flex-direction: column; align-items: center; }
.page-title { font-size: 30px; font-weight: 700; text-align: center; margin: 26px 0 10px; letter-spacing: .5px; }
.page-desc { text-align: center; color: var(--ink-3); font-size: 14px; margin: 0 0 30px; }
.stage { width: 100%; max-width: 900px; margin: 0 auto; }
.stage-sm { width: 100%; max-width: 720px; margin: 0 auto; }

.dropbox {
  border: 1.6px solid var(--brand-line); border-radius: 14px; background: #fff; padding: 18px;
}
.dropbox.dashed { border-style: solid; }
.dropzone { text-align: center; padding: 26px 0 14px; }
.dropzone svg { width: 34px; height: 34px; margin: 0 auto 12px; color: var(--ink-2); }
.dropzone .pick { color: var(--blue); font-size: 14.5px; }
.dropzone .hint { color: var(--ink-3); font-size: 13px; margin-top: 6px; }
.hint-line { border-top: 1px solid #f2f2f4; margin: 4px 0 10px; }
.box-foot { display: flex; align-items: center; gap: 12px; padding-top: 8px; }
.box-foot .link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.box-foot .link:hover { color: var(--brand); }
.box-foot svg { width: 15px; height: 15px; }
.example-row { display: flex; align-items: center; gap: 8px; margin: 14px 2px 0; font-size: 13.5px; color: var(--ink-3); }
.example-row button { color: var(--brand); }
.center-actions { display: flex; justify-content: center; margin-top: 26px; }
.feature-row { display: flex; justify-content: center; gap: 90px; margin-top: 72px; }
.feature { text-align: center; color: var(--ink-3); font-size: 13.5px; max-width: 180px; }
.feature svg { width: 22px; height: 22px; margin: 0 auto 12px; color: #8f8aa0; }

/* 模块头部：分类与搜索 */
.cat-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.pills { display: inline-flex; background: var(--soft); border-radius: 10px; padding: 4px; gap: 4px; }
.pills button { height: 32px; padding: 0 16px; border-radius: 8px; font-size: 13.5px; color: #4a4556; }
.pills button.active { background: #fff; font-weight: 600; box-shadow: var(--shadow-sm); }
.searchbox { display: flex; align-items: center; margin-left: auto; width: 300px; height: 38px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; gap: 8px; }
.searchbox:focus-within { border-color: #b9b0d4; }
.searchbox input { flex: 1; border: 0; font-size: 13.5px; }
.searchbox svg { width: 15px; height: 15px; color: var(--ink-4); }
.subcat { display: flex; align-items: center; gap: 22px; margin: 4px 0 20px; font-size: 13.5px; color: var(--ink-3); }
.subcat button { color: var(--ink-3); }
.subcat button.active { color: var(--brand); font-weight: 600; }

/* 模板 / 文档卡片 */
.tpl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tpl {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; min-height: 134px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px;
  text-align: center;
}
.tpl:hover { border-color: #cfc6e8; box-shadow: 0 12px 26px -16px rgba(30, 20, 60, .4); }
.tpl svg { width: 42px; height: 42px; color: var(--brand); }
.tpl .name { font-size: 14.5px; color: var(--ink); }
.tpl .kinds { font-size: 11.5px; color: var(--ink-4); }
.tpl.folder { background: var(--soft); }
.tpl.folder svg { width: 36px; height: 36px; color: #b0aac4; }

.doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.doc { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; text-align: left; }
.doc:hover { border-color: #cfc6e8; box-shadow: 0 12px 26px -18px rgba(30, 20, 60, .4); }
.doc-prev { height: 168px; padding: 12px 12px 0; overflow: hidden; }
.doc-prev .l { height: 9px; background: #f0f0f2; border-radius: 3px; margin-bottom: 7px; }
.doc-prev .l.s { width: 60%; }
.doc-prev .l.m { width: 82%; }
.doc-prev .l.t { width: 40%; background: #e9e9ee; }
.doc-foot { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #fafafb; border-top: 1px solid var(--line); }
.doc-foot svg { width: 15px; height: 15px; color: var(--brand); }
.doc-foot .t { font-size: 12.5px; color: var(--ink-2); }
.doc-foot .time { margin-left: auto; font-size: 11.5px; color: var(--ink-4); }

/* 表单页 */
.form-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.form-head { height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 18px; background: #fafafb; border-bottom: 1px solid var(--line); font-size: 14px; }
.form-body { display: grid; grid-template-columns: 240px 1fr; min-height: 520px; }
.form-side { border-right: 1px solid var(--line); padding: 22px 18px; display: grid; gap: 8px; align-content: start; }
.party-tab { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); }
.party-tab:hover { background: var(--soft); }
.party-tab.active { background: var(--soft); font-weight: 600; }
.party-tab .op { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-4); }
.party-tab .op svg { width: 12px; height: 12px; }
.form-fields { padding: 24px 26px; }
.field-row { display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 20px; margin-bottom: 14px; }
.field-row > label { font-size: 13.5px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.field-row .q { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--ink-4); color: var(--ink-4); font-size: 10px; display: grid; place-items: center; }
.field-row input[type="text"], .field-row input[type="date"], .field-row select {
  width: 100%; height: 38px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 12px; font-size: 13.5px;
}
.field-row input:focus, .field-row select:focus { border-color: #b9b0d4; }
.radios { display: flex; align-items: center; gap: 22px; font-size: 13.5px; }
.radios label { display: inline-flex; align-items: center; gap: 6px; }
.add-party { display: flex; justify-content: flex-end; padding-top: 6px; }
.add-party button { font-size: 13.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.add-party button:hover { color: var(--brand); }
.form-actions { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.crumb { font-size: 13.5px; color: var(--ink-3); margin-bottom: 16px; }
.crumb button { color: var(--ink-3); }
.crumb button:hover { color: var(--brand); }
.switch-line { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); margin-left: auto; }
.check { width: 16px; height: 16px; border: 1px solid var(--line-2); border-radius: 4px; display: grid; place-items: center; }
.check.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.check svg { width: 11px; height: 11px; }

/* 结果 */
.result-block { margin-top: 30px; }
.result-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.result-head h3 { margin: 0; font-size: 16px; font-weight: 600; }
.risk { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 10px; background: #fff; }
.risk-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.risk-head .no { font-size: 12.5px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.risk-head h4 { margin: 0; font-size: 14.5px; font-weight: 600; }
.risk .line { font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }
.risk .line b { color: var(--ink); font-weight: 500; }
.risk .acts { display: flex; gap: 8px; margin-top: 10px; }
.res-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.res-item h4 { margin: 0 0 4px; font-size: 14.5px; font-weight: 500; }
.res-item p { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.7; }
.res-item .side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.rel-graph { border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.timeline { border-left: 2px solid var(--line); margin-left: 8px; padding-left: 18px; }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item::before { content: ""; position: absolute; left: -25px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.tl-item .t { font-size: 12px; color: var(--ink-4); }
.tl-item .d { font-size: 13.5px; }

/* 工具卡片 */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.tool-card { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: #fff; text-align: left; }
.tool-card:hover { border-color: #cfc6e8; box-shadow: 0 14px 30px -20px rgba(30, 20, 60, .45); }
.tool-card h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.tool-card h3 svg { width: 17px; height: 17px; color: var(--brand); }
.tool-card p { margin: 0 0 16px; font-size: 13px; color: var(--ink-3); line-height: 1.8; min-height: 66px; }
.tool-card .go { font-size: 13.5px; color: var(--ink); }
.tool-card:hover .go { color: var(--brand); }
.tool-card.disabled { background: var(--soft); }
.tool-card.disabled .go { color: var(--ink-4); }

/* 对话 */
.chat-page { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.chat-scroll { flex: 1 1 auto; overflow-y: auto; padding: 26px 34px 8px; }
.chat-inner { max-width: 880px; margin: 0 auto; }
.chat-hero { text-align: center; padding: 30px 0 10px; }
.chat-hero h2 { margin: 0 0 12px; font-size: 30px; font-weight: 700; letter-spacing: .5px; }
.chat-hero p { margin: 0; color: var(--ink-3); font-size: 14px; }
.msg { margin-bottom: 22px; }
.msg-user { display: flex; justify-content: flex-end; }
.msg-user .bubble { max-width: 78%; background: var(--soft); border-radius: 12px; padding: 11px 15px; font-size: 14.5px; line-height: 1.7; white-space: pre-wrap; }
.msg-ai { display: flex; gap: 12px; }
.ai-mark {
  width: 30px; height: 30px; border-radius: 9px; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden; flex: 0 0 auto;
}
.ai-mark img { width: 100%; height: 100%; object-fit: contain; }
.ai-body { flex: 1; min-width: 0; }
.ai-body .head { display: flex; align-items: center; gap: 8px; color: var(--ink-4); font-size: 12.5px; margin-bottom: 10px; }
.ai-text { font-size: 14.5px; line-height: 1.85; }
.ai-text p { margin: 0 0 10px; }
.plan { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 12px 0; }
.plan-head { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; background: #fafafb; }
.plan-step { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.plan-step:last-child { border-bottom: 0; }
.plan-step .dot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.plan-step.done .dot { border-color: var(--brand); background: var(--brand); color: #fff; }
.plan-step.done .dot svg { width: 10px; height: 10px; }
.plan-step.running .dot { border-color: var(--brand); border-top-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.plan-step .st { margin-left: auto; font-size: 12px; color: var(--ink-4); }
.artifact { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; gap: 12px; align-items: center; margin: 12px 0; background: #fff; }
.artifact .file-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.artifact .file-ico svg { width: 19px; height: 19px; }
.artifact .meta { font-size: 12px; color: var(--ink-4); margin-top: 2px; }
.recent { max-width: 880px; margin: 34px auto 0; }
.recent-head { display: flex; align-items: center; margin-bottom: 6px; }
.recent-head h3 { margin: 0; font-size: 14px; font-weight: 600; }
.recent-head .filter { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.recent-item { display: flex; align-items: center; gap: 10px; padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.recent-item .time { margin-left: auto; font-size: 12px; color: var(--ink-4); }

/* ============================ 弹层 ============================ */
.modal-wrap { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.modal-wrap.open { pointer-events: auto; }
.modal-mask { position: absolute; inset: 0; background: rgba(18, 14, 30, .34); opacity: 0; transition: opacity .18s ease; }
.modal {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -48%);
  width: min(520px, calc(100vw - 32px)); max-height: 84vh; overflow-y: auto;
  background: #fff; border-radius: 14px; padding: 24px; box-shadow: var(--shadow-md);
  opacity: 0; transition: opacity .18s ease, transform .18s ease;
}
.modal-wrap.open .modal-mask { opacity: 1; }
.modal-wrap.open .modal { opacity: 1; transform: translate(-50%, -50%); }
.modal h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.modal .sub { margin: 0 0 18px; font-size: 13px; color: var(--ink-3); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 40px; border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 12px; font-size: 13.5px; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: #b9b0d4; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-doc { font-size: 13.5px; line-height: 1.9; }
.modal-doc h4 { margin: 16px 0 6px; font-size: 14px; }
.modal-doc p { margin: 0 0 4px; }
.toast {
  position: fixed; left: 50%; top: 24px; transform: translate(-50%, -12px);
  background: rgba(20, 16, 32, .92); color: #fff; font-size: 13px; padding: 9px 18px;
  border-radius: 99px; opacity: 0; pointer-events: none; z-index: 90;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================ 接口状态 / 加载 / 错误 ============================ */
.api-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: 99px; font-size: 11.5px; border: 1px solid var(--line-2); color: var(--ink-3); background: #fff;
}
.api-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); }
.api-chip.live { color: var(--green); border-color: #c7e6d2; background: var(--green-soft); }
.api-chip.live .dot { background: var(--green); }
.api-chip.demo { color: var(--amber); border-color: #f0dbb8; background: var(--amber-soft); }
.api-chip.demo .dot { background: var(--amber); }
.api-chip:hover { border-color: #b9b0d4; }

.loading {
  display: flex; align-items: center; gap: 10px; padding: 22px 4px; color: var(--ink-3); font-size: 13.5px;
}
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--line-2); border-top-color: var(--brand); animation: spin .8s linear infinite;
}
.error-card {
  border: 1px solid #f0c9c9; background: var(--red-soft); border-radius: 10px; padding: 14px; margin: 12px 0;
  display: flex; align-items: center; gap: 12px;
}
.error-card .msg { color: var(--red); font-size: 13.5px; }
.skeleton { height: 10px; border-radius: 4px; background: linear-gradient(90deg, #f2f2f4, #eaeaee, #f2f2f4); background-size: 200% 100%; animation: sk 1.2s ease infinite; margin-bottom: 8px; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ============================ 侧栏收起 / 浮层帮助 ============================ */
.app.collapsed { grid-template-columns: 68px 1fr; }
.app.collapsed .sb-top .logo-name,
.app.collapsed .sb-new span,
.app.collapsed .sb-item span,
.app.collapsed .sb-label,
.app.collapsed .sb-item .tag { display: none; }
.app.collapsed .sb-item, .app.collapsed .sb-new { justify-content: center; padding: 0; }
.app.collapsed .sb-new .ico { width: 30px; height: 30px; }
.app.collapsed .sb-foot .sb-invite span, .app.collapsed .sb-user span, .app.collapsed .sb-user button { display: none; }
.app.collapsed .sb-invite, .app.collapsed .sb-user { justify-content: center; }

.float-help {
  position: fixed; right: 22px; bottom: 22px; z-index: 30;
  width: 40px; height: 40px; border-radius: 50%; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 10px 26px -14px rgba(20, 14, 40, .45);
  display: grid; place-items: center; color: var(--ink-3);
}
.float-help:hover { color: var(--brand); border-color: #cfc6e8; }
.float-help svg { width: 20px; height: 20px; }

/* ============================ 分体按钮（下载 / 保存） ============================ */
.split { display: inline-flex; align-items: stretch; }
.split > button:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.split > button:last-child {
  border-top-left-radius: 0; border-bottom-left-radius: 0; padding: 0 8px; border-left: 1px solid rgba(255, 255, 255, .28);
}
.split.ghost > button:last-child { border-left-color: var(--line-2); }

/* ============================ 表单页左侧主体区（对齐截图） ============================ */
.party-box {
  border: 1px solid var(--line); border-radius: 10px; background: #fff; min-height: 220px;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.party-box .party-tab { background: transparent; }
.party-box .party-tab.active { background: transparent; font-weight: 600; }

/* ============================ 拖拽上传态 ============================ */
.dropzone.drag { background: var(--brand-soft); border-radius: 10px; }
.dropzone { cursor: pointer; }

/* ============================ 对话流式文本 ============================ */
.streaming::after {
  content: ""; display: inline-block; width: 7px; height: 14px; margin-left: 3px;
  background: var(--brand); vertical-align: -2px; animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============================ 要素式表格 ============================ */
/* ---------- 关键词检索条（对齐官网关键词检索形态） ---------- */
.kwbar {
  display: flex; align-items: stretch; gap: 0;
  border: 1.6px solid var(--brand-line); border-radius: 12px; background: #fff; overflow: hidden;
}
.kwbar input {
  flex: 1; min-width: 0; border: 0; height: 52px; padding: 0 14px; font-size: 14.5px;
}
.kw-select { display: inline-flex; align-items: center; position: relative; border-right: 1px solid var(--line); }
.kw-select-end { border-right: 0; border-left: 1px solid var(--line); }
.kw-select select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent;
  height: 52px; padding: 0 26px 0 14px; font-size: 14px; color: var(--ink-2); cursor: pointer; outline: none;
}
.kw-select .chev { position: absolute; right: 9px; width: 12px; height: 12px; color: var(--ink-4); pointer-events: none; }
.kw-btn {
  display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer;
  background: var(--soft); color: var(--ink-2); font-size: 14.5px; padding: 0 22px;
}
.kw-btn:hover { background: var(--brand-soft); color: var(--brand); }
.kw-btn svg { width: 16px; height: 16px; }
.kw-btn:disabled { opacity: .6; cursor: not-allowed; }
.kw-foot { display: flex; align-items: center; gap: 10px; margin: 14px 2px 0; }
.paste-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; }
.paste-box textarea {
  width: 100%; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px;
  font-size: 14px; line-height: 1.8; resize: vertical; min-height: 96px; outline: none;
}
.paste-box textarea:focus { border-color: #b9b0d4; }

/* ---------- 合同审查工作区（原文 + 风险面板） ---------- */
.review { display: flex; flex-direction: column; height: 100vh; background: #f2f2f4; }
.review-top {
  flex: 0 0 auto; height: 54px; display: flex; align-items: center; gap: 10px;
  padding: 0 14px; background: #fff; border-bottom: 1px solid var(--line);
}
.review-top .doc-name { font-size: 14px; font-weight: 500; }
.review-body { flex: 1 1 auto; display: grid; grid-template-columns: 1fr 396px; min-height: 0; gap: 1px; background: var(--line); }
.doc-pane { display: flex; flex-direction: column; min-height: 0; background: #f2f2f4; }
.doc-toolbar {
  flex: 0 0 auto; height: 44px; display: flex; align-items: center; gap: 2px;
  padding: 0 12px; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden;
}
.doc-tab { padding: 5px 10px; border-radius: 6px; font-size: 13px; color: var(--ink-2); }
.doc-tab.active { background: var(--soft); font-weight: 600; }
.doc-font { font-size: 12.5px; color: var(--ink-3); padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; margin-left: 6px; }
.doc-tools { font-size: 13px; color: var(--ink-2); padding: 4px 8px; border-radius: 6px; }
.doc-tools.i { font-style: italic; } .doc-tools.u { text-decoration: underline; }
.doc-canvas { flex: 1 1 auto; overflow-y: auto; padding: 22px 0 40px; }
.doc-page {
  width: min(680px, 92%); margin: 0 auto; background: #fff; padding: 42px 52px 56px;
  box-shadow: 0 2px 12px -6px rgba(20, 14, 40, .28); border-radius: 2px;
  font-family: "Songti SC", "宋体", serif; color: #1a1a1a;
}
.doc-h1 { text-align: center; font-size: 17px; font-weight: 700; margin-bottom: 22px; letter-spacing: 1px; }
.doc-h2 { font-size: 14px; font-weight: 700; margin: 16px 0 6px; }
.doc-p { display: flex; gap: 8px; font-size: 14px; line-height: 1.95; margin: 0 0 4px; }
.doc-mark {
  flex: 0 0 auto; width: 15px; height: 15px; margin-top: 5px; border-radius: 3px;
  background: var(--brand-soft); color: var(--brand); font-size: 10px; line-height: 15px; text-align: center;
  font-family: ui-sans-serif, sans-serif;
}
.doc-mark.ghost { background: transparent; }
.doc-anchored { cursor: pointer; }
.doc-anchored:hover { background: #faf8ff; }
.doc-active { background: #fff6d9; border-radius: 4px; box-shadow: 0 0 0 3px #fff6d9; }
.doc-status {
  flex: 0 0 auto; height: 34px; display: flex; align-items: center; gap: 16px;
  padding: 0 16px; background: #fff; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-3);
}
.review-panel { display: flex; flex-direction: column; min-height: 0; background: #fff; }
.panel-seg { display: flex; gap: 8px; padding: 12px 14px 0; }
.panel-seg button {
  flex: 1; height: 38px; border: 1px solid var(--line-2); border-radius: 9px;
  font-size: 14px; color: var(--ink-2); background: #fff;
}
.panel-seg button.active { border-color: var(--brand); color: var(--brand); font-weight: 600; background: var(--brand-soft); }
.kind-tabs { display: flex; gap: 4px; padding: 12px 14px 0; border-bottom: 1px solid var(--line); }
.kind-tabs button {
  padding: 8px 10px 10px; font-size: 13px; color: var(--ink-3); border-bottom: 2px solid transparent;
}
.kind-tabs button.active { color: var(--ink); font-weight: 600; border-color: var(--brand); }
.panel-body { flex: 1 1 auto; overflow-y: auto; padding: 12px 14px; }
.panel-foot { flex: 0 0 auto; padding: 12px 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.risk-list { display: grid; gap: 8px; }
.risk-item { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.risk-head-row {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px;
  background: #fff; text-align: left; font-size: 14px;
}
.risk-head-row:hover { background: var(--soft-2); }
.risk-idx { color: var(--ink-4); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.risk-title { flex: 1; min-width: 0; }
.risk-level { font-size: 11.5px; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.risk-level.lv-high { background: var(--red-soft); color: var(--red); }
.risk-level.lv-mid { background: var(--amber-soft); color: var(--amber); }
.risk-level.lv-low { background: var(--soft); color: var(--ink-3); }
.risk-head-row .chev { color: var(--ink-4); font-size: 12px; }
.risk-detail { padding: 0 12px 12px; border-top: 1px solid var(--line); background: var(--soft-2); }
.risk-detail .line { font-size: 13.5px; line-height: 1.8; margin-top: 8px; color: var(--ink-2); }
.risk-detail .line b { color: var(--ink); font-weight: 500; }
.risk-detail .acts { display: flex; gap: 8px; margin-top: 12px; }
.sum-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.sum-title { font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.sum-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); padding: 4px 0; }
.sum-row b { margin-left: auto; color: var(--ink); }
.sum-row .dot { width: 8px; height: 8px; border-radius: 50%; }
.sum-row .dot.high { background: var(--red); } .sum-row .dot.mid { background: #d98324; } .sum-row .dot.low { background: var(--ink-4); }
@media (max-width: 1080px) {
  .review-body { grid-template-columns: 1fr 330px; }
  .doc-page { padding: 30px 30px 40px; }
}

.cite {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; background: #fff;
}
.cite-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cite-law { font-size: 14px; font-weight: 500; }
.cite-status { font-size: 11.5px; padding: 1px 8px; border-radius: 99px; }
.cite-status.ok { background: var(--green-soft); color: var(--green); }
.cite-status.warn { background: var(--amber-soft); color: var(--amber); }
.cite-verified { font-size: 11.5px; color: var(--brand); background: var(--brand-soft); padding: 1px 8px; border-radius: 99px; }
.cite-link { margin-left: auto; font-size: 12.5px; color: var(--brand); }
.cite-text { margin-top: 8px; font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }
.cite-meta { margin-top: 6px; font-size: 12px; color: var(--ink-4); }
.cite-inline { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.src { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 99px; font-size: 11.5px; white-space: nowrap; }
.src-flk { background: #eaf2fb; color: #1d4e89; }
.src-pkulaw { background: #fdecec; color: #a12a2a; }
.src-yuandian { background: #eef7f0; color: #1c6b3c; }
.src-row { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 8px; }
.src-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
.src-name { font-weight: 500; }
.src-inputs { display: grid; gap: 8px; margin-top: 8px; }
.src-inputs input { width: 100%; height: 34px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 10px; font-size: 12.5px; }
.src-inputs input:focus { border-color: #b9b0d4; }

.el-rows { padding: 6px 18px 14px; }
.el-row { border-bottom: 1px dashed var(--line); padding: 14px 0 12px; }
.el-row:last-child { border-bottom: 0; }
.el-row-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.el-no {
  flex: 0 0 auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 6px;
  background: var(--brand-soft); color: var(--brand); font-size: 11.5px; line-height: 20px; text-align: center;
}
.el-name { font-size: 14px; font-weight: 500; }
.el-row-body { padding-left: 28px; }
.el-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.el-field { display: grid; grid-template-columns: 132px 1fr; align-items: center; gap: 10px; }
.el-field label { font-size: 13px; color: var(--ink-2); }
.el-field input {
  width: 100%; height: 34px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 10px; font-size: 13.5px;
}
.el-field input:focus { border-color: #b9b0d4; }
.el-free {
  width: 100%; border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 12px;
  font-size: 13.5px; line-height: 1.7; resize: vertical; min-height: 64px;
}
.el-free:focus { border-color: #b9b0d4; }
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 2px; }
.opt {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 99px; font-size: 13px; color: var(--ink-2); background: #fff;
}
.opt:hover { border-color: #b9b0d4; color: var(--brand); }
.opt.on { background: var(--brand-soft); border-color: #cfc6e8; color: var(--brand); font-weight: 500; }
.opt svg { width: 12px; height: 12px; }
.el-hint { margin-top: 8px; font-size: 12px; color: var(--ink-4); line-height: 1.7; }
.el-note { padding: 10px 18px 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }
@media (max-width: 900px) {
  .el-fields { grid-template-columns: 1fr; }
  .el-field { grid-template-columns: 108px 1fr; }
  .el-row-body { padding-left: 0; }
}

/* ============================ 营销页（能力/指南/关于） ============================ */
.page-head { padding: 60px 0 10px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0 0 14px; font-size: 32px; font-weight: 700; }
.page-head .lead { color: var(--ink-3); font-size: 15px; line-height: 1.85; max-width: 840px; margin: 0 0 28px; }
.sec { padding: 40px 0 6px; }
.sec > h2 { margin: 0 0 10px; font-size: 22px; font-weight: 700; }
.sec > .sec-sub { color: var(--ink-3); margin: 0 0 22px; font-size: 14px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.kv dt { color: var(--ink-3); font-size: 13px; margin: 0; }
.kv dd { margin: 0; font-size: 13.5px; line-height: 1.8; }
.cap-card { border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 12px; }
.cap-head { display: flex; align-items: baseline; gap: 10px; }
.cap-head h3 { margin: 0; font-size: 16.5px; }
.cap-head .num { font-size: 12px; color: var(--ink-4); }
.cap-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; margin-top: 12px; }
.cap-cols h4 { margin: 0 0 6px; font-size: 12.5px; color: var(--ink-4); font-weight: 500; }
.cap-cols ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.9; }
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.feat { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff; }
.feat h4 { margin: 0 0 6px; font-size: 14.5px; }
.feat p { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.8; }
.table-wrap { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td, .table tr:last-child th { border-bottom: 0; }
.table th { font-weight: 500; color: var(--ink-4); font-size: 12.5px; background: #fafafb; }
.guide-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.guide-item h4 { margin: 0 0 6px; font-size: 15px; }
.guide-item p { margin: 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.8; }
.about-grid { display: grid; grid-template-columns: 200px 1fr; gap: 4px 28px; font-size: 14px; }
.about-grid dt { color: var(--ink-3); }
.about-grid dd { margin: 0 0 14px; }

/* ============================ 响应式 ============================ */
@media (max-width: 1280px) {
  .tpl-grid, .doc-grid { grid-template-columns: repeat(3, 1fr); }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  :root { --side-w: 200px; }
  .page { padding: 22px 20px 40px; }
  .feature-row { gap: 48px; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 68px 1fr; }
  .sb-top .logo-name, .sb-new span, .sb-item span, .sb-label, .sb-foot { display: none; }
  .sb-item, .sb-new { justify-content: center; padding: 0; }
  .sb-new .ico { width: 30px; height: 30px; }
  .tpl-grid, .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .form-body { grid-template-columns: 1fr; }
  .form-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .nav { display: none; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .shell, .shell-narrow { padding: 0 16px; }
  .hero { padding-top: 56px; }
  .hero h1 { font-size: 26px; }
  .page-title { font-size: 24px; }
  .feature-row { gap: 26px; flex-wrap: wrap; }
  .tool-grid, .tpl-grid, .doc-grid, .feat-grid, .cap-cols { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 6px; }
  .searchbox { width: 100%; margin-left: 0; }
  .cat-row { flex-direction: column; align-items: stretch; }
}

/* ===== 案件深度分析（高分析强度） ===== */
.depth-pick { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; }
.depth-pick .dl { font-size: 12.5px; color: var(--ink-3); }
.seg-btn { border: 1px solid var(--line-2); background: #fff; color: var(--ink-3); border-radius: 999px; padding: 3px 11px; font-size: 12.5px; }
.seg-btn.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 600; }
.brief-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.brief-cell { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--soft); }
.brief-cell .bk { font-size: 12px; color: var(--ink-4); }
.brief-cell .bv { font-size: 15px; font-weight: 600; margin-top: 2px; color: var(--ink); }
.brief-cell .bs { font-size: 11.5px; color: var(--ink-4); margin-top: 4px; line-height: 1.5; }
.hit-row, .claim-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.claim-row { color: var(--ink-2); }
.focus-item { padding: 8px 0; border-top: 1px dashed var(--line); }
.focus-item:first-child { border-top: 0; }
.focus-item .ft { font-size: 14px; font-weight: 600; color: var(--ink); }
.focus-item .fw { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.7; }
.tag-dyn { margin-left: 6px; font-size: 11px; color: var(--brand); border: 1px solid var(--brand); border-radius: 4px; padding: 1px 5px; font-weight: 400; }
.el-item, .ev-item, .risk-item, .todo-item, .def-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px dashed var(--line); }
.el-item:first-child, .ev-item:first-child, .risk-item:first-child, .todo-item:first-child, .def-item:first-child { border-top: 0; }
.el-item .en, .ev-item .en, .risk-item .en { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.el-item .ew, .ev-item .ew, .risk-item .ew { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.6; }
.st { font-size: 11.5px; border-radius: 5px; padding: 2px 8px; white-space: nowrap; margin-top: 2px; }
.st-ok { background: var(--green-soft); color: var(--green); }
.st-weak { background: var(--amber-soft); color: var(--amber); }
.st-miss { background: var(--red-soft); color: var(--red); }
.ev-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 10px; }
.ev-col { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.ev-item.miss .en { color: var(--ink-2); }
.ew-badge { font-size: 11.5px; border-radius: 5px; padding: 2px 7px; white-space: nowrap; margin-top: 2px; }
.w-strong { background: var(--green-soft); color: var(--green); }
.w-mid { background: var(--amber-soft); color: var(--amber); }
.w-weak { background: var(--red-soft); color: var(--red); }
.def-item { flex-direction: column; gap: 4px; }
.def-item .ds, .def-item .dr { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.def-item .dr { color: var(--ink-3); }
.todo-wrap { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 10px; background: var(--soft); }
.todo-item { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); padding: 6px 0; }
.todo-item .tn { flex: 0 0 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 11.5px; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.api-chip.engine { color: var(--blue); border-color: #c9dbfb; background: #eef4ff; }
.api-chip.engine .dot { background: var(--blue); }
