:root {
  --deep: #0B2545;
  --gold: #C6A15B;
  --gold-light: #E8D5B0;
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --text: #2C3E50;
  --muted: #8395A7;
  --red: #C0392B;
  --orange: #E67E22;
  --blue: #2E86C1;
  --green: #27AE60;
  --border: #E3E8EF;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(11, 37, 69, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  background: var(--bg); color: var(--text); min-height: 100vh;
  display: flex; flex-direction: column;
}

/* ---------- 顶栏 ---------- */
.topbar { background: linear-gradient(135deg, #0B2545 0%, #13315C 100%); color: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.topbar-inner { max-width: 1080px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.logo-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--gold); color: var(--deep); font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; font-family: "SimHei", sans-serif; }
.logo-name { font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.logo-sub { font-size: 11px; color: var(--gold-light); margin-top: 1px; }
.nav { display: flex; gap: 4px; }
.nav a { color: #D9E2EC; text-decoration: none; padding: 8px 14px; border-radius: 8px; font-size: 14px; transition: all .2s; }
.nav a:hover, .nav a.active { background: rgba(198, 161, 91, .25); color: #fff; }

/* ---------- 布局 ---------- */
.container { flex: 1; max-width: 1080px; width: 100%; margin: 0 auto; padding: 24px 20px 60px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 18px; }
.footer { background: var(--deep); color: #9FB3C8; padding: 26px 20px; margin-top: auto; }
.footer-inner { max-width: 1080px; margin: 0 auto; text-align: center; }
.footer-brand { color: #fff; font-weight: 700; margin-bottom: 6px; font-size: 15px; }
.footer-desc { font-size: 12px; margin-bottom: 6px; line-height: 1.7; }
.footer-pledge { font-size: 12px; color: var(--gold-light); }
.footer-pledge b { color: var(--gold); font-size: 14px; }

/* ---------- 首页 ---------- */
.hero { background: linear-gradient(135deg, #0B2545 0%, #13315C 60%, #1B4171 100%); border-radius: 18px; color: #fff; padding: 44px 36px; margin-bottom: 20px; position: relative; overflow: hidden; }
.hero::after { content: '法'; position: absolute; right: -30px; bottom: -60px; font-size: 260px; font-family: "SimHei"; color: rgba(198,161,91,.08); font-weight: 700; }
.hero h1 { font-size: 30px; letter-spacing: 2px; margin-bottom: 10px; }
.hero h1 span { color: var(--gold); }
.hero p { color: #C9D6E3; font-size: 15px; line-height: 1.9; max-width: 640px; }
.hero-actions { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 2; }
.btn { display: inline-block; border: none; cursor: pointer; border-radius: 10px; font-size: 15px; padding: 13px 30px; text-decoration: none; text-align: center; transition: all .2s; font-family: inherit; }
.btn-primary { background: linear-gradient(135deg, #C6A15B, #D8B878); color: #0B2545; font-weight: 700; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(198,161,91,.4); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-blue { background: #2E86C1; color: #fff; }
.btn-green { background: #27AE60; color: #fff; }
.btn-outline { background: #fff; color: var(--deep); border: 1.5px solid var(--deep); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.section-title { font-size: 19px; font-weight: 700; color: var(--deep); margin: 26px 0 14px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; width: 5px; height: 20px; background: var(--gold); border-radius: 3px; }
.step-card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--deep); color: var(--gold); font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 15px; }
.step-card h3 { font-size: 16px; color: var(--deep); margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--muted); line-height: 1.8; }

.pledge-row { display: flex; gap: 14px; }
.pledge-card { flex: 1; background: var(--card); border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow); border-bottom: 4px solid var(--gold); }
.pledge-card .icon { font-size: 30px; margin-bottom: 8px; }
.pledge-card h4 { color: var(--deep); font-size: 16px; margin-bottom: 6px; }
.pledge-card p { font-size: 12px; color: var(--muted); line-height: 1.7; }

.policy-strip { background: linear-gradient(90deg, #F8F4EC, #FDF9F2); border: 1px solid var(--gold-light); border-radius: var(--radius); padding: 18px 22px; margin: 18px 0; }
.policy-strip h4 { color: var(--deep); font-size: 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.policy-strip li { font-size: 12.5px; color: #5D6D7E; line-height: 2; list-style: none; }
.policy-strip li::before { content: '▪'; color: var(--gold); margin-right: 6px; }

/* ---------- 体检流程 ---------- */
.wizard-head { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.wizard-step { padding: 6px 16px; border-radius: 20px; font-size: 13px; background: #EDF1F5; color: var(--muted); }
.wizard-step.on { background: var(--deep); color: var(--gold); font-weight: 700; }
.wizard-step.done { background: #E9F7EF; color: var(--green); }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; color: var(--deep); font-weight: 600; margin-bottom: 7px; }
.form-group label .req { color: var(--red); margin-left: 3px; }
.form-control { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 14px; font-family: inherit; transition: border .2s; background: #fff; }
.form-control:focus { outline: none; border-color: var(--gold); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%238395A7' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.6; }

/* 模块答题 */
.module-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.module-chip { padding: 7px 14px; border-radius: 18px; font-size: 12.5px; background: #EDF1F5; color: var(--muted); cursor: pointer; transition: all .2s; border: 1.5px solid transparent; }
.module-chip.on { background: var(--deep); color: var(--gold); font-weight: 700; }
.module-chip.ok { background: #E9F7EF; color: var(--green); }
.q-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 14px; border-left: 4px solid var(--gold); }
.q-card.key { border-left-color: var(--red); }
.q-text { font-size: 15px; font-weight: 600; color: var(--deep); margin-bottom: 4px; line-height: 1.6; }
.q-tag { display: inline-block; font-size: 10.5px; padding: 2px 8px; border-radius: 10px; background: #FDEBD0; color: #B9770E; margin-bottom: 8px; font-weight: 600; }
.q-law { font-size: 11.5px; color: var(--muted); margin-top: 10px; }
.opt { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; margin-top: 8px; cursor: pointer; transition: all .15s; font-size: 13.5px; line-height: 1.5; }
.opt:hover { border-color: var(--gold); background: #FDFAF4; }
.opt.sel { border-color: var(--deep); background: #EDF2F8; font-weight: 600; }
.opt .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #B9C4CF; flex-shrink: 0; margin-top: 1px; position: relative; }
.opt.sel .radio { border-color: var(--deep); }
.opt.sel .radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--deep); }

.wizard-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 12px; flex-wrap: wrap; }
.progress-bar { height: 6px; background: #EDF1F5; border-radius: 3px; overflow: hidden; margin-bottom: 18px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--deep)); border-radius: 3px; transition: width .3s; }

/* ---------- 报告页 ---------- */
.report-hero { border-radius: 18px; padding: 32px; color: #fff; text-align: center; margin-bottom: 20px; }
.report-hero.red { background: linear-gradient(135deg, #C0392B, #E74C3C); }
.report-hero.orange { background: linear-gradient(135deg, #CA6F1E, #E67E22); }
.report-hero.blue { background: linear-gradient(135deg, #21618C, #2E86C1); }
.report-hero.green { background: linear-gradient(135deg, #1E8449, #27AE60); }
.report-hero .grade-label { font-size: 26px; font-weight: 800; letter-spacing: 2px; margin-bottom: 6px; }
.report-hero .rate { font-size: 56px; font-weight: 800; line-height: 1; }
.report-hero .rate small { font-size: 22px; }
.report-hero .desc { font-size: 13.5px; margin-top: 10px; opacity: .95; max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.8; }
.radar-wrap { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; justify-content: center; }
.module-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.module-table th { background: #F0F3F7; color: var(--deep); padding: 10px 12px; text-align: left; font-size: 12.5px; }
.module-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11.5px; color: #fff; font-weight: 600; }
.urgent-item { display: flex; gap: 12px; padding: 14px; background: #FEF5F4; border: 1px solid #F5D0CC; border-radius: 10px; margin-bottom: 10px; }
.urgent-item .num { width: 26px; height: 26px; background: var(--red); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; font-weight: 700; }
.urgent-item h5 { font-size: 13.5px; color: #922B21; margin-bottom: 4px; }
.urgent-item p { font-size: 12.5px; color: #641E16; line-height: 1.7; }
.urgent-item .law { font-size: 11px; color: #A93226; opacity: .75; margin-top: 4px; }

.repair-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.repair-tab { padding: 7px 14px; border-radius: 18px; font-size: 12.5px; cursor: pointer; background: #EDF1F5; color: var(--muted); }
.repair-tab.on { background: var(--deep); color: var(--gold); font-weight: 700; }
.repair-item { padding: 12px 14px; border-bottom: 1px dashed var(--border); font-size: 13px; display: flex; gap: 10px; line-height: 1.7; }
.repair-item:last-child { border-bottom: none; }
.repair-item .p-tag { flex-shrink: 0; font-size: 10.5px; padding: 2px 8px; border-radius: 8px; height: fit-content; margin-top: 3px; }
.p-now { background: #FDEDEC; color: #C0392B; font-weight: 700; }
.p-month { background: #FEF5E7; color: #CA6F1E; font-weight: 700; }
.p-long { background: #EBF5FB; color: #2E86C1; font-weight: 700; }

.next-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.next-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; text-align: center; border-top: 4px solid var(--blue); }
.next-card.g { border-top-color: var(--green); }
.next-card.o { border-top-color: var(--orange); }
.next-card .icon { font-size: 28px; margin-bottom: 10px; }
.next-card h4 { font-size: 15px; color: var(--deep); margin-bottom: 6px; }
.next-card p { font-size: 12px; color: var(--muted); line-height: 1.7; margin-bottom: 12px; }

/* ---------- 工具包 ---------- */
.tool-item { display: flex; gap: 16px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 14px; align-items: flex-start; }
.tool-no { width: 44px; height: 44px; border-radius: 12px; background: var(--deep); color: var(--gold); font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tool-body { flex: 1; }
.tool-body h4 { color: var(--deep); font-size: 15.5px; margin-bottom: 4px; }
.tool-domain { font-size: 11px; color: var(--gold); background: #FBF6EC; display: inline-block; padding: 2px 8px; border-radius: 8px; margin-bottom: 8px; font-weight: 600; }
.tool-body p { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin-bottom: 10px; }

/* 模态框 */
.modal-mask { position: fixed; inset: 0; background: rgba(11,37,69,.5); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; padding: 26px; }
.modal h3 { color: var(--deep); font-size: 17px; margin-bottom: 4px; }
.modal .modal-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; line-height: 1.6; }
.modal-close { float: right; background: none; border: none; font-size: 22px; color: var(--muted); cursor: pointer; line-height: 1; }

/* ---------- 律师端 ---------- */
.login-card { max-width: 400px; margin: 60px auto; }
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--border); margin-bottom: 20px; flex-wrap: wrap; }
.tab { padding: 10px 18px; font-size: 14px; cursor: pointer; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -2px; }
.tab.on { color: var(--deep); font-weight: 700; border-color: var(--gold); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); text-align: center; }
.stat-card .val { font-size: 30px; font-weight: 800; color: var(--deep); }
.stat-card .val.gold { color: #B9770E; }
.stat-card .lbl { font-size: 12px; color: var(--muted); margin-top: 4px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { background: #F0F3F7; color: var(--deep); text-align: left; padding: 10px 12px; white-space: nowrap; font-size: 12.5px; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tr:hover td { background: #FAFBFC; }
.rank-list .rank-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.rank-item:last-child { border: none; }
.rank-no { width: 22px; height: 22px; border-radius: 6px; background: var(--deep); color: var(--gold); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rank-bar-wrap { flex: 1; height: 8px; background: #EDF1F5; border-radius: 4px; overflow: hidden; }
.rank-bar { height: 100%; background: linear-gradient(90deg, var(--gold), var(--deep)); border-radius: 4px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 48px; transform: translateX(-50%) translateY(20px); background: var(--deep); color: #fff; padding: 12px 24px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .3s; z-index: 300; max-width: 90vw; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--red); }

.empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 13.5px; }
.muted { color: var(--muted); font-size: 12.5px; }
.mt10 { margin-top: 10px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; }
.flex { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- 移动端 ---------- */
@media (max-width: 760px) {
  .topbar-inner { flex-direction: column; gap: 8px; padding: 10px 14px; }
  .nav { width: 100%; justify-content: space-around; }
  .nav a { padding: 6px 8px; font-size: 13px; }
  .container { padding: 16px 14px 50px; }
  .hero { padding: 30px 22px; }
  .hero h1 { font-size: 23px; }
  .grid-2, .grid-3, .next-actions { grid-template-columns: 1fr; }
  .pledge-row { flex-direction: column; }
  .radar-wrap canvas { max-width: 100%; }
  .card { padding: 18px; }
  .report-hero { padding: 24px 18px; }
  .report-hero .rate { font-size: 44px; }
  .tool-item { flex-direction: column; }
  .data-table { font-size: 12px; display: block; overflow-x: auto; }
}


/* ================= AI 律师深度解读 ================= */
.ai-card { border-top: 3px solid var(--blue); }
.ai-content .md-h { margin: 16px 0 8px; color: var(--deep); font-size: 14.5px; padding-left: 10px; border-left: 3px solid var(--blue); }
.ai-content .md-p { font-size: 13.5px; line-height: 1.75; margin: 8px 0; }
.ai-content .md-ul { margin: 6px 0 6px 18px; }
.ai-content .md-ul li { font-size: 13.5px; line-height: 1.7; margin: 4px 0; }
.ai-content .md-quote { margin: 10px 0; padding: 8px 12px; background: #f5f7fa; border-left: 3px solid #b8c4d0; font-size: 12.5px; color: #667; }
.ai-loading { text-align: center; padding: 30px 0; }
.ai-loading p { margin: 10px 0 0; font-size: 14px; }
.ai-spinner { width: 28px; height: 28px; margin: 0 auto; border: 3px solid #dbe4ee; border-top-color: var(--blue); border-radius: 50%; animation: aiSpin .8s linear infinite; }
.ai-loading-s { display: flex; align-items: center; gap: 8px; }
@keyframes aiSpin { to { transform: rotate(360deg); } }
.ai-ask-wrap { margin-top: 16px; padding-top: 14px; border-top: 1px dashed #d8dee8; }
.ai-chat-log { max-height: 420px; overflow-y: auto; }
.chat-q { background: var(--blue); color: #fff; font-size: 13px; padding: 8px 12px; border-radius: 12px 12px 2px 12px; margin: 10px 0 10px auto; max-width: 85%; width: fit-content; }
.chat-a { background: #f5f7fa; font-size: 13px; padding: 10px 12px; border-radius: 12px 12px 12px 2px; margin: 10px 0; }
.chat-a .md-h { margin: 8px 0 4px; font-size: 13px; }
.chat-a .md-p, .chat-a .md-ul li { font-size: 12.5px; }

/* ================= 打印 / 存档 PDF ================= */
@media print {
  body { background: #fff; }
  .topbar, .policy-strip, .no-print, .print-hide, .next-actions, .repair-tabs { display: none !important; }
  .report-hero { border-radius: 0; padding: 18px 0; background: #fff !important; color: #333 !important; }
  .report-hero * { color: #333 !important; }
  .card { box-shadow: none; border: 1px solid #ddd; page-break-inside: avoid; margin: 12px 0; }
  .app { max-width: 100%; padding: 0; }
  body { padding: 0; }
}

/* Markdown 表格（AI 解读输出） */
.md-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 12.5px; }
.md-table th, .md-table td { border: 1px solid #dde3ec; padding: 6px 8px; text-align: left; line-height: 1.5; }
.md-table th { background: #f0f4f9; font-weight: 600; color: var(--deep); }
.md-table td { vertical-align: top; }
@media print { .md-table th, .md-table td { border-color: #999; } }

/* ---------- 工具包分类分组（v2.1） ---------- */
.tool-group { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; }
.tg-head { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: linear-gradient(135deg, #0B2545 0%, #13315C 100%); cursor: pointer; user-select: none; }
.tg-head:active { opacity: .92; }
.tg-icon { font-size: 20px; width: 38px; height: 38px; border-radius: 10px; background: rgba(198,161,91,.18); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tg-title { flex: 1; min-width: 0; }
.tg-title h3 { color: #fff; font-size: 15px; margin: 0; display: flex; align-items: center; gap: 8px; }
.tg-title h3 i { font-style: normal; font-size: 11px; color: var(--gold-light); background: rgba(198,161,91,.25); padding: 1px 8px; border-radius: 8px; font-weight: 600; }
.tg-title p { color: rgba(255,255,255,.72); font-size: 11.5px; margin: 4px 0 0; line-height: 1.5; }
.tg-arrow { color: var(--gold); font-size: 13px; flex-shrink: 0; }
.tg-body { padding: 14px 16px 2px; }
.tg-body .tool-item { box-shadow: none; border: 1px solid var(--border); background: #FBFCFE; margin-bottom: 12px; }
.tg-body .tool-item .tool-no { width: 36px; height: 36px; border-radius: 10px; font-size: 13px; }

/* ---------- 在线咨询页（v2.2） ---------- */
.consult-hero { padding: 24px 26px 18px; }
.ch-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ch-main { flex: 1; min-width: 0; }
.ch-new { background: rgba(198,161,91,.16); color: var(--gold-light); border: 1px solid rgba(198,161,91,.45); padding: 8px 16px; font-size: 13px; white-space: nowrap; }
.ch-new:hover { background: rgba(198,161,91,.28); }
.ch-pledge { margin-top: 14px; font-size: 11.5px; color: rgba(255,255,255,.78); border-top: 1px solid rgba(255,255,255,.14); padding-top: 10px; line-height: 1.7; }
.consult-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 20px; }
.consult-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { border: 1px solid var(--border); background: #FBFCFE; color: var(--text); font-size: 12px; padding: 6px 12px; border-radius: 16px; cursor: pointer; transition: all .15s; font-family: inherit; }
.chip:hover { border-color: var(--gold); color: var(--deep); background: #FBF6EC; }
.consult-log { max-height: 56vh; min-height: 280px; overflow-y: auto; padding: 4px 6px 10px; border: 1px solid var(--border); border-radius: 12px; background: #FAFBFD; scroll-behavior: smooth; }
.consult-log .chat-q { max-width: 82%; }
.consult-log .chat-a { max-width: 94%; position: relative; }
.consult-answer .ca-copy { position: absolute; top: 6px; right: 8px; font-size: 11px; color: var(--muted); cursor: pointer; padding: 2px 8px; border-radius: 10px; border: 1px solid var(--border); background: #fff; opacity: .75; }
.consult-answer .ca-copy:hover { color: var(--deep); border-color: var(--gold); opacity: 1; }
.consult-answer { padding-right: 76px !important; }
.consult-answer .md-table { font-size: 12px; }
.consult-answer .md-code { white-space: pre-wrap; }
.consult-input { display: flex; gap: 10px; align-items: flex-end; margin-top: 12px; }
.consult-input textarea { flex: 1; resize: none; border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; font-family: inherit; line-height: 1.6; background: #fff; color: var(--text); outline: none; max-height: 120px; }
.consult-input textarea:focus { border-color: var(--blue); }
.consult-input .btn { padding: 10px 22px; }
@media (max-width: 720px) {
  .ch-row { flex-direction: column; }
  .ch-new { align-self: flex-start; }
  .consult-log { max-height: 48vh; }
  .consult-answer { padding-right: 60px !important; }
}

/* ---------- 工具包分类总览两级展示（v2.3） ---------- */
.tk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.tk-cat-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; cursor: pointer; transition: all .18s; border: 1px solid transparent; }
.tk-cat-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(11,37,69,.14); border-color: var(--gold-light); }
.tkcc-head { display: flex; align-items: flex-start; gap: 12px; }
.tkcc-icon { font-size: 22px; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg,#0B2545,#13315C); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tkcc-title { flex: 1; min-width: 0; }
.tkcc-title h3 { color: var(--deep); font-size: 15.5px; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.tkcc-title h3 i { font-style: normal; font-size: 11px; color: var(--gold); background: #FBF6EC; padding: 1px 8px; border-radius: 8px; font-weight: 600; }
.tkcc-title p { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.tkcc-arrow { color: var(--gold); font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.tkcc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tkcc-chip { font-size: 11px; color: var(--text); background: #F5F7FA; border: 1px solid var(--border); border-radius: 10px; padding: 2px 8px; }
.tk-back { display: inline-flex; align-items: center; gap: 6px; color: var(--deep); font-size: 13px; font-weight: 600; cursor: pointer; margin-bottom: 12px; padding: 6px 14px; background: var(--card); border-radius: 10px; box-shadow: var(--shadow); }
.tk-back:hover { color: var(--gold); }
/* ---------- 律师端统计条（v2.3） ---------- */
.lw-stats { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.lw-stat { flex: 1; min-width: 110px; background: #F5F7FA; border-radius: 12px; padding: 12px 16px; text-align: center; border-left: 3px solid var(--deep); }
.lw-stat b { display: block; font-size: 20px; color: var(--deep); }
.lw-stat span { font-size: 11.5px; color: var(--muted); }
.lw-stat.warn { border-left-color: var(--orange); }
.lw-stat.danger { border-left-color: var(--red); }
.lw-stat.ok { border-left-color: var(--green); }
.lw-stat.info { border-left-color: var(--blue); }
@media (max-width: 720px) { .tk-grid { grid-template-columns: 1fr; } .lw-stat { min-width: calc(50% - 12px); } }

/* ---------- 伙伴反馈浮动按钮与列表（v2.4） ---------- */
.fb-fab { position: fixed; right: 18px; bottom: 24px; z-index: 90; width: 44px; height: 44px; border-radius: 50%; border: none; background: linear-gradient(135deg, #0B2545, #13315C); color: #fff; font-size: 18px; cursor: pointer; box-shadow: 0 4px 14px rgba(11,37,69,.35); transition: all .2s; }
.fb-fab:hover { transform: scale(1.1); background: linear-gradient(135deg, #13315C, #1B417B); }
@media print { .fb-fab { display: none; } }
.fb-item { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: #FBFCFE; }
.fb-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.fb-head b { color: var(--deep); }
.fb-content { font-size: 13px; color: var(--text); line-height: 1.7; white-space: pre-wrap; margin: 0; }

/* logo-mark.png-img-patch: 图片版 logo */
.logo-mark { background: transparent; object-fit: contain; padding: 0; display: block; }
