/* ===========================================================================
 * 法务顾问 · 老板板块 V2（工具箱）
 * ---------------------------------------------------------------------------
 * 为什么单开一个文件：全站铁律 —— 不加进 style.css（80KB、多会话并发在改）。
 * 本文件在 index.html 里排在 style.css / coach.css 之后加载，后出现者胜出。
 *
 * 配色：沿用老板板块的深棕（#3d2611 / #7a3a12 —— 就是本板块 hero 用的那组色），
 * 与「创业教练」的品牌橙区分开。深棕 = 稳重可信，符合法律这件事的气质。
 * ⚠️ 深棕不是"另一个主色"，它是老板板块 hero 的底色，属同族深色。
 *
 * 布局原则（都是踩过坑的）：
 *   · 所有带 absolute 装饰的卡片，容器必须 position:relative，否则装饰会撑宽 document
 *     → 手机端整页缩成 77%（桌面看不出来）
 *   · 数字用大号字（老板一打开就要看到金额，不是先读一段话）
 *   · 一屏一个主行动，其余是次级入口
 * =========================================================================== */

/* ===================== 外壳 ===================== */
/* 底部留白：手机端 TabBar 是 fixed 的（实测高 74px），不留够会**盖住页面最后一块内容**
   （E2E 截图里"¥20,000"就被压掉半个 —— 桌面端预览看不出来，真机才明显）。 */
#sub-legal { padding-bottom: 92px; }
@media (min-width: 1024px) {
  #sub-legal { padding-bottom: 24px; }   /* PC 端没有底部 TabBar */
}
.lg-root {
  position: relative;
}
.lg-root * { box-sizing: border-box; }

/* ===================== 首屏：主卡（法律体检） ===================== */
.lg-main {
  position: relative;
  display: flex; gap: 14px;
  padding: 18px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #3d2611 0%, #7a3a12 100%);
  box-shadow: 0 10px 26px rgba(61, 38, 17, .28);
  overflow: hidden;
  margin-bottom: 14px;
}
.lg-main::after {
  content: ''; position: absolute; right: -22%; top: -60%;
  width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 120, .22) 0%, rgba(255, 190, 120, 0) 70%);
  pointer-events: none;
}
.lg-main-ico {
  position: relative; flex: 0 0 auto;
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .18);
}
.lg-main-body { position: relative; min-width: 0; flex: 1 1 auto; }
.lg-main-title { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: .4px; }
.lg-main-sub { font-size: 12.5px; color: rgba(255, 236, 220, .82); line-height: 1.6; margin-top: 6px; }
.lg-main-sub b { color: #ffd9a8; }
.lg-main-acts { display: flex; gap: 9px; margin-top: 13px; flex-wrap: wrap; }
.lg-btn-main {
  border: none; border-radius: 12px; padding: 10px 18px;
  font-size: 13.5px; font-weight: 800; font-family: inherit; cursor: pointer;
  color: #7a3a12; background: #ffd9a8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}
.lg-btn-main:active { transform: scale(.97); }
.lg-btn-ghost {
  border: 1px solid rgba(255, 255, 255, .38); border-radius: 12px; padding: 10px 16px;
  font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer;
  color: #fff; background: rgba(255, 255, 255, .1);
}
.lg-btn-ghost:active { transform: scale(.97); }
/* 卡片内的 ghost 按钮（不在深色底上）要换成深色描边 */
.lg-ck-nav .lg-btn-ghost, .lg-wide {
  border-color: #e0cfba; color: #6b4423; background: #fff;
}
.lg-wide { width: 100%; margin-top: 14px; padding: 12px; }

/* ===================== 首屏：2×2 工具格 ===================== */
.lg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.lg-card {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  padding: 15px 13px; border-radius: 17px; cursor: pointer; text-align: left;
  background: #fff; border: 1px solid #ece0d2; font-family: inherit;
  box-shadow: 0 4px 14px rgba(61, 38, 17, .06);
  transition: transform .16s ease, box-shadow .16s ease;
  overflow: hidden;
}
.lg-card:active { transform: scale(.98); }
@media (hover: hover) {
  .lg-card:hover { box-shadow: 0 8px 22px rgba(61, 38, 17, .14); }
}
.lg-card-ico { font-size: 22px; line-height: 1.1; }
.lg-card-name { font-size: 14px; font-weight: 800; color: #3d2611; }
.lg-card-sub { font-size: 11.5px; color: #8a7a68; line-height: 1.5; }

.lg-arch-entry {
  display: flex; align-items: center; gap: 8px; width: 100%;
  margin-top: 14px; padding: 13px 15px;
  background: #fffaf5; border: 1px dashed #e6d6c2; border-radius: 14px;
  font-size: 13px; font-weight: 700; color: #6b4423; font-family: inherit; cursor: pointer;
}
.lg-arch-entry span { margin-left: auto; font-weight: 400; color: #a8937c; }
.lg-arch-entry:active { transform: scale(.99); }

/* ===================== 返回条 ===================== */
.lg-bar {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px; min-height: 30px;
}
.lg-back {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 10px;
  border: 1px solid #e6d8c8; background: #fff; color: #6b4423;
  font-size: 18px; line-height: 1; font-family: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lg-back:active { transform: scale(.94); }
.lg-bar-title { font-size: 15px; font-weight: 800; color: #3d2611; }

/* ===================== 说明与提示 ===================== */
.lg-hint {
  font-size: 12.5px; line-height: 1.7; color: #7a6a58;
  padding: 11px 13px; background: #faf6f1; border-radius: 12px; margin-bottom: 13px;
}
.lg-hint b { color: #6b4423; }
.lg-note { margin-top: 9px; font-size: 11.5px; color: #b3a291; line-height: 1.6; }
.lg-tipbox {
  font-size: 12.5px; line-height: 1.75; color: #7a5423;
  padding: 11px 13px; background: #fffaf0; border: 1px dashed #f0dcb4;
  border-radius: 12px; margin-bottom: 13px;
}

/* ===================== 列表式入口 ===================== */
.lg-list { display: flex; flex-direction: column; gap: 9px; }
.lg-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px; border-radius: 15px; cursor: pointer; text-align: left;
  background: #fff; border: 1px solid #ece0d2; font-family: inherit;
  box-shadow: 0 3px 10px rgba(61, 38, 17, .05);
  transition: transform .15s ease, box-shadow .15s ease;
}
.lg-item:active { transform: scale(.99); }
@media (hover: hover) {
  .lg-item:hover { box-shadow: 0 7px 18px rgba(61, 38, 17, .12); }
}
.lg-item-ico { flex: 0 0 auto; font-size: 21px; }
.lg-item-body { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; }
.lg-item-name { font-size: 14px; font-weight: 800; color: #3d2611; }
.lg-item-sub { font-size: 11.5px; color: #8a7a68; line-height: 1.5; }
.lg-item-go { flex: 0 0 auto; color: #cbb9a4; font-size: 17px; }

/* ===================== 表单 ===================== */
.lg-form { display: flex; flex-direction: column; gap: 13px; }
.lg-field { display: flex; flex-direction: column; gap: 6px; }
.lg-field-label { font-size: 12.5px; font-weight: 700; color: #3d2611; line-height: 1.5; }
.lg-field-label em { font-style: normal; font-weight: 400; color: #b3a291; font-size: 11px; margin-left: 5px; }
.lg-field-hint { font-size: 11px; color: #a8937c; line-height: 1.55; }
.lg-input-wrap { position: relative; display: flex; align-items: center; }
.lg-input-wrap .lg-input { padding-right: 36px; }
.lg-unit {
  position: absolute; right: 13px; font-size: 12px; color: #b3a291; pointer-events: none;
}
.lg-input {
  width: 100%; border: 1px solid #e5d7c6; border-radius: 12px; background: #fff;
  padding: 11px 13px; font-size: 14px; line-height: 1.5;
  font-family: inherit; color: #3d2611; outline: none;
  transition: border-color .15s ease;
  -webkit-appearance: none; appearance: none;
}
.lg-input:focus { border-color: #b08a5e; }
.lg-input::placeholder { color: #c3b19d; }
select.lg-input {
  background-image: linear-gradient(45deg, transparent 50%, #b08a5e 50%), linear-gradient(135deg, #b08a5e 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 34px;
}
.lg-run {
  width: 100%; border: none; border-radius: 14px; padding: 14px;
  font-size: 15px; font-weight: 800; font-family: inherit; cursor: pointer;
  color: #fff; background: linear-gradient(135deg, #7a3a12 0%, #3d2611 100%);
  box-shadow: 0 6px 16px rgba(61, 38, 17, .26);
  margin-top: 3px;
}
.lg-run:active { transform: scale(.985); }
.lg-run:disabled { opacity: .5; box-shadow: none; }

/* ===================== 结果 ===================== */
.lg-result { margin-top: 16px; }
.lg-bigbox {
  position: relative; text-align: center;
  padding: 20px 16px; border-radius: 18px; margin-bottom: 14px;
  background: linear-gradient(135deg, #fdf7f0 0%, #fffdfb 100%);
  border: 1px solid #ecdfd0;
  overflow: hidden;
}
.lg-big-label { font-size: 12px; color: #8a7a68; font-weight: 700; }
.lg-big-num {
  font-size: 32px; font-weight: 900; color: #7a3a12; line-height: 1.25;
  margin-top: 7px; letter-spacing: -.5px;
  word-break: break-all;
}
.lg-big-num em { font-style: normal; font-size: 17px; font-weight: 700; color: #a8937c; }
.lg-big-date { font-size: 27px; letter-spacing: 0; }
.lg-big-sub { font-size: 12px; color: #8a7a68; margin-top: 8px; line-height: 1.6; }
.lg-big-sub b { color: #b5420a; }
.lg-cd-red { background: linear-gradient(135deg, #fef3f2 0%, #fffdfb 100%); border-color: #fecdca; }
.lg-cd-red .lg-big-num { color: #b42318; }
.lg-cd-red .lg-big-label { color: #912018; }
.lg-cd-yellow { background: linear-gradient(135deg, #fffaeb 0%, #fffdfb 100%); border-color: #fde68a; }
.lg-cd-yellow .lg-big-num { color: #b54708; }
.lg-cd-green { background: linear-gradient(135deg, #ecfdf3 0%, #fffdfb 100%); border-color: #abefc6; }
.lg-cd-green .lg-big-num { color: #05603a; }

.lg-calc {
  font-size: 13.5px; line-height: 1.85; color: #4a3a2c;
  padding: 14px 15px; background: #fff; border: 1px solid #ece0d2; border-radius: 15px;
}
.lg-calc p { margin: 0 0 9px; }
.lg-calc p:last-child { margin-bottom: 0; }
.lg-calc strong { color: #7a3a12; font-weight: 800; }
.lg-calc ul, .lg-calc ol { margin: 0 0 9px; padding-left: 20px; }
.lg-calc li { margin: 5px 0; }
.lg-calc code {
  background: #f7f1e9; color: #6b4423; padding: 1px 5px; border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px;
}
.lg-calc hr { border: none; border-top: 1px solid #f0e6da; margin: 11px 0; }

/* ===================== AI 解释块 ===================== */
.lg-ai {
  margin-top: 16px; padding: 15px 15px 16px;
  background: #fff; border: 1px solid #ecdfd0; border-radius: 16px;
  box-shadow: 0 4px 14px rgba(61, 38, 17, .05);
}
.lg-ai-head {
  font-size: 13px; font-weight: 800; color: #6b4423;
  padding-bottom: 9px; margin-bottom: 11px; border-bottom: 1px dashed #eee1d2;
}
.lg-ai-body { font-size: 13.5px; line-height: 1.85; color: #4a3a2c; }
.lg-ai-body p { margin: 0 0 9px; }
.lg-ai-body p:last-child { margin-bottom: 0; }
.lg-ai-body h4 { font-size: 13.5px; font-weight: 800; color: #4a2f18; margin: 13px 0 7px; }
.lg-ai-body h4:first-child { margin-top: 0; }
.lg-ai-body strong { color: #7a3a12; font-weight: 800; }
.lg-ai-body ul, .lg-ai-body ol { margin: 0 0 9px; padding-left: 20px; }
.lg-ai-body li { margin: 5px 0; }
.lg-ai-body code {
  background: #f7f1e9; color: #6b4423; padding: 1px 5px; border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px;
}
.lg-ai-body hr { border: none; border-top: 1px solid #f0e6da; margin: 11px 0; }

/* ===================== 标记件 ===================== */
.lg-risk {
  display: inline-block; vertical-align: 1px;
  font-size: 11.5px; font-weight: 800; line-height: 1.5;
  padding: 1px 9px; border-radius: 999px; margin-right: 6px;
  border: 1px solid transparent; white-space: nowrap;
}
.lg-risk-hi { color: #fff; background: #d92d20; }
.lg-risk-mid { color: #fff; background: #e08700; }
.lg-risk-ok { color: #fff; background: #12805c; }
.lg-verdict {
  margin: 0 0 12px; padding: 12px 14px; border-radius: 13px;
  font-size: 13.5px; font-weight: 700; line-height: 1.7;
  background: #faf6f1; border: 1px solid #ece0d2; color: #3d2611;
}
.lg-lawyer {
  margin: 13px 0 0; padding: 12px 14px; border-radius: 13px;
  background: #fffaeb; border: 1px dashed #f7d489; color: #93370d;
  font-size: 12.5px; line-height: 1.75;
}
.lg-lawyer b { color: #7a2e0e; }
.lg-err {
  margin: 10px 0; padding: 11px 13px; border-radius: 12px;
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  font-size: 12.5px; line-height: 1.65;
}
.lg-ok-all {
  padding: 14px; border-radius: 14px; font-size: 13px; line-height: 1.75;
  background: #ecfdf3; border: 1px solid #abefc6; color: #05603a;
}
.lg-ok-all b { color: #05603a; }

/* 思考中 / 光标 */
.lg-dots { display: inline-flex; gap: 4px; align-items: center; height: 18px; }
.lg-dots i {
  width: 6px; height: 6px; border-radius: 50%; background: #c9ac8a;
  animation: lgDot 1.1s infinite ease-in-out;
}
.lg-dots i:nth-child(2) { animation-delay: .16s; }
.lg-dots i:nth-child(3) { animation-delay: .32s; }
@keyframes lgDot {
  0%, 80%, 100% { transform: scale(.6); opacity: .45; }
  40% { transform: scale(1); opacity: 1; }
}
.lg-caret {
  display: inline-block; width: 7px; height: 15px;
  background: #7a3a12; vertical-align: -2px; margin-left: 2px;
  animation: lgBlink .9s step-end infinite;
}
@keyframes lgBlink { 0%, 100% { opacity: 1 } 50% { opacity: 0 } }

/* ===================== 证据清单 ===================== */
.lg-evs { display: flex; flex-direction: column; gap: 10px; }
.lg-ev {
  padding: 13px 14px; border-radius: 15px;
  background: #fff; border: 1px solid #ece0d2;
  transition: border-color .15s ease, background .15s ease;
}
.lg-ev.is-have { border-color: #abefc6; background: #fbfffd; }
.lg-ev.is-miss { border-color: #fecdca; background: #fffcfc; }
.lg-ev-top { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.lg-ev-name { flex: 1 1 auto; font-size: 13.5px; font-weight: 800; color: #3d2611; line-height: 1.5; }
.lg-ev-need {
  flex: 0 0 auto; font-size: 10.5px; font-weight: 800; padding: 2px 8px;
  border-radius: 999px; white-space: nowrap;
}
.lg-need-must { color: #fff; background: #d92d20; }
.lg-need-strong { color: #fff; background: #e08700; }
.lg-need-plus { color: #6b4423; background: #f4ebe0; }
.lg-ev-why { font-size: 12px; color: #8a7a68; line-height: 1.65; margin-bottom: 10px; }
.lg-seg { display: flex; gap: 6px; }
.lg-seg-b {
  flex: 1 1 0; padding: 8px 4px; border-radius: 10px; cursor: pointer;
  border: 1px solid #e6d8c8; background: #fff; color: #8a7a68;
  font-size: 12.5px; font-weight: 700; font-family: inherit;
  transition: background .13s ease, color .13s ease, border-color .13s ease;
}
.lg-seg-b.on { background: #3d2611; border-color: #3d2611; color: #fff; }
.lg-seg-b:active { transform: scale(.97); }

.lg-gaps { display: flex; flex-direction: column; gap: 10px; }
.lg-gap {
  padding: 13px 14px; border-radius: 14px;
  background: #fff; border: 1px solid #ece0d2;
}
.lg-gap-hi { border-color: #fecdca; background: #fffcfc; }
.lg-gap-name { font-size: 13px; font-weight: 800; color: #3d2611; line-height: 1.55; margin-bottom: 7px; }
.lg-gap-why { font-size: 12px; color: #8a7a68; line-height: 1.65; margin-bottom: 8px; }
.lg-gap-uns { font-size: 11.5px; color: #b54708; margin-bottom: 7px; line-height: 1.6; }
.lg-gap-fix { font-size: 12.5px; color: #4a3a2c; line-height: 1.75; }
.lg-gap-fix b { color: #7a3a12; }
.lg-gap-fix code {
  background: #f7f1e9; color: #6b4423; padding: 1px 5px; border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px;
}
.lg-sec-title {
  font-size: 13px; font-weight: 800; color: #3d2611;
  margin: 18px 0 10px; padding-left: 9px; border-left: 3px solid #b08a5e;
}

/* ===================== 法律体检 ===================== */
.lg-prog {
  height: 5px; border-radius: 999px; background: #f0e6da;
  overflow: hidden; margin-bottom: 12px;
}
.lg-prog i { display: block; height: 100%; background: linear-gradient(90deg, #b08a5e, #7a3a12); transition: width .25s ease; }
.lg-ck-meta { font-size: 12px; color: #a8937c; font-weight: 700; margin-bottom: 10px; }
.lg-ck-q {
  font-size: 16px; font-weight: 800; color: #3d2611; line-height: 1.65;
  padding: 17px 16px; background: #fff; border: 1px solid #ece0d2;
  border-radius: 16px; margin-bottom: 13px;
  box-shadow: 0 4px 14px rgba(61, 38, 17, .05);
}
.lg-ck-opts { display: flex; gap: 9px; margin-bottom: 13px; }
.lg-ck-opt {
  flex: 1 1 0; padding: 14px 6px; border-radius: 14px; cursor: pointer;
  border: 1px solid #e6d8c8; background: #fff; color: #6b4423;
  font-size: 14px; font-weight: 800; font-family: inherit;
  transition: background .13s ease, color .13s ease, border-color .13s ease;
}
.lg-ck-opt.on { background: #3d2611; border-color: #3d2611; color: #fff; }
.lg-ck-opt:active { transform: scale(.98); }
.lg-ck-nav { display: flex; gap: 10px; }
.lg-ck-nav > * { flex: 1 1 0; }
.lg-ck-nav .lg-btn-main { color: #fff; background: linear-gradient(135deg, #7a3a12 0%, #3d2611 100%); }
.lg-ck-nav .lg-btn-ghost { padding: 12px; }

.lg-ckcat { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 4px; }
.lg-ckcat-i {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; padding: 5px 10px;
  border-radius: 999px; border: 1px solid transparent;
}
.lg-ckcat-i b { font-weight: 900; }
.lg-lv-high { color: #912018; background: #fef3f2; border-color: #fecdca; }
.lg-lv-mid { color: #93370d; background: #fffaeb; border-color: #fde68a; }
.lg-lv-low { color: #6b4423; background: #faf6f1; border-color: #ece0d2; }
.lg-lv-ok { color: #05603a; background: #ecfdf3; border-color: #abefc6; }

/* ===================== 函件 ===================== */
.lg-letter {
  white-space: pre-wrap; word-break: break-word;
  font-size: 13px; line-height: 1.9; color: #33291f;
  padding: 15px 15px; background: #fdfbf8;
  border: 1px solid #ece0d2; border-radius: 13px;
  font-family: inherit;
  max-height: 460px; overflow-y: auto;
}
.lg-letter + .lg-copy { margin-top: 11px; }
.lg-copy {
  width: 100%; padding: 12px; border-radius: 13px; cursor: pointer;
  border: 1px solid #e0cfba; background: #fff; color: #6b4423;
  font-size: 13.5px; font-weight: 800; font-family: inherit;
}
.lg-copy:active { transform: scale(.985); }

/* ===================== 对话（兜底） ===================== */
.lg-chat { display: flex; flex-direction: column; gap: 13px; min-height: 60px; }
.lg-msg { display: flex; gap: 9px; align-items: flex-start; }
.lg-msg-avatar {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  background: linear-gradient(135deg, #5c3d20 0%, #3d2611 100%);
}
.lg-bubble {
  max-width: calc(100% - 44px);
  padding: 12px 14px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.8;
  word-break: break-word; overflow-wrap: anywhere;
}
.lg-msg.ai .lg-bubble {
  background: #fff; border: 1px solid #f0e6da; border-top-left-radius: 5px;
  color: #3d2611; box-shadow: 0 2px 8px rgba(61, 38, 17, .05);
}
.lg-msg.me { flex-direction: row-reverse; }
.lg-msg.me .lg-bubble {
  background: linear-gradient(135deg, #6b4423 0%, #3d2611 100%);
  color: #fff; border-top-right-radius: 5px;
}
.lg-bubble p { margin: 0 0 9px; }
.lg-bubble p:last-child { margin-bottom: 0; }
.lg-bubble strong { font-weight: 800; }
.lg-msg.ai .lg-bubble strong { color: #7a3a12; }
.lg-bubble ul, .lg-bubble ol { margin: 0 0 9px; padding-left: 20px; }
.lg-bubble li { margin: 4px 0; }
.lg-bubble hr { border: none; border-top: 1px solid #f0e6da; margin: 11px 0; }
.lg-bubble code {
  background: #f7f1e9; color: #6b4423; padding: 1px 5px; border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px;
}
.lg-msg.me .lg-bubble code { background: rgba(255, 255, 255, .22); color: #fff; }

.lg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.lg-chip {
  border: 1px solid #e6d8c8; background: #fff; color: #6b4423;
  font-size: 12.5px; padding: 8px 12px; border-radius: 999px;
  cursor: pointer; font-family: inherit; line-height: 1.45; text-align: left;
}
.lg-chip:active { background: #faf4ec; }
@media (hover: hover) { .lg-chip:hover { background: #faf4ec; } }

.lg-composer {
  position: sticky; bottom: 74px; z-index: 40;
  margin: 14px -16px 0; padding: 10px 16px;
  background: rgba(255, 253, 251, .97);
  backdrop-filter: blur(10px);
  border-top: 1px solid #eee1d2;
}
@media (min-width: 1024px) {
  .lg-composer { bottom: 0; margin-left: 0; margin-right: 0; border-radius: 14px; border: 1px solid #eee1d2; }
}
.lg-composer-row { display: flex; gap: 9px; align-items: flex-end; }
.lg-composer .lg-input { flex: 1 1 auto; min-width: 0; resize: none; max-height: 132px; overflow-y: auto; }
.lg-send {
  flex: 0 0 auto; width: 56px; height: 44px; border-radius: 14px; border: none;
  background: linear-gradient(135deg, #6b4423 0%, #3d2611 100%);
  color: #fff; font-size: 13px; font-weight: 800; font-family: inherit; cursor: pointer;
  box-shadow: 0 5px 13px rgba(61, 38, 17, .28);
}
.lg-send:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; }
.lg-send:active:not(:disabled) { transform: scale(.96); }

/* ===================== 档案 ===================== */
.lg-arc {
  padding: 12px 14px; border-radius: 14px;
  background: #fff; border: 1px solid #ece0d2;
}
.lg-arc-top { display: flex; align-items: baseline; gap: 8px; }
.lg-arc-t { flex: 1 1 auto; font-size: 13px; font-weight: 800; color: #3d2611; }
.lg-arc-d { flex: 0 0 auto; font-size: 11px; color: #b3a291; }
.lg-arc-s { font-size: 12px; color: #8a7a68; line-height: 1.6; margin-top: 5px; }

/* ===================== 免责声明（常驻） ===================== */
.lg-disc {
  margin-top: 16px; padding: 12px 14px;
  background: #fbf8f4; border: 1px solid #ece2d5; border-radius: 13px;
  font-size: 11.5px; line-height: 1.75; color: #8a7a68;
}
.lg-disc b { color: #6b4423; }
.lg-disc-line { display: flex; gap: 7px; align-items: flex-start; }
.lg-disc-line + .lg-disc-line { margin-top: 6px; }
.lg-disc-line > span:first-child { flex: 0 0 auto; }

/* ===================== PC 端收窄 ===================== */
@media (min-width: 1024px) {
  .lg-root { max-width: 760px; }
  #sub-legal .sub-topbar { max-width: 760px; }
}
