/* 法来网 · 全站样式 */
:root {
  --brand: #1a4d8f;
  --brand-2: #2468b8;
  --brand-3: #0f3563;
  --gold: #c19a4b;
  --gold-2: #e0b968;
  --bg: #f4f6f9;
  --card: #ffffff;
  --text: #1f2937;
  --text-2: #4b5563;
  --muted: #8b95a5;
  --border: #e6e9ef;
  --danger: #c0392b;
  --success: #2f9e78;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 8px 24px rgba(16, 24, 40, .1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
ul, li { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
button { font-family: inherit; cursor: pointer; }
a[data-link] { cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 14px; }

.container { width: 1200px; max-width: 100%; margin: 0 auto; padding: 0 12px; }
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.gap6 { gap: 6px; } .gap10 { gap: 10px; } .gap16 { gap: 16px; } .gap20 { gap: 20px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; } .mt28 { margin-top: 28px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hide { display: none !important; }

/* ---------------- 顶部条 ---------------- */
.topbar { background: #f0f2f5; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-2); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 34px; }
.topbar a { cursor: pointer; }
.topbar a:hover { color: var(--brand); }
#citySwitch { color: var(--brand); font-weight: 600; cursor: pointer; }
#citySwitch::after { content: ' ▾'; font-size: 10px; }

/* 城市选择弹窗 */
.city-picker-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.35); z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding-top: 80px; }
.city-panel { background: #fff; border-radius: 10px; width: 580px; max-height: 70vh; overflow-y: auto; box-shadow: 0 8px 30px rgba(0,0,0,.18); padding: 20px 24px; }
.city-section { margin-bottom: 16px; }
.city-section:last-child { margin-bottom: 0; }
.city-section-title { font-size: 14px; font-weight: 600; color: var(--brand); margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid #eef1f5; }
.city-list { display: flex; flex-wrap: wrap; gap: 8px; }
.city-item { display: inline-block; padding: 5px 16px; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; color: var(--text); cursor: pointer; transition: all .15s; }
.city-item:hover { border-color: var(--brand); color: var(--brand); background: #f0f5ff; }
.city-item-all { font-weight: 600; }

/* 地区筛选下拉按钮（参照顶栏服务城市样式） */
.city-select-btn { display: inline-flex; align-items: center; gap: 5px; padding: 3px 14px; border: 1px solid var(--border); border-radius: 14px; font-size: 13px; color: var(--text-2); cursor: pointer; transition: all .15s; }
.city-select-btn .caret { font-size: 10px; transform: translateY(-1px); }
.city-select-btn:hover { border-color: var(--brand); color: var(--brand); background: #f0f5ff; }
.city-select-btn.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------------- 头部 ---------------- */
.header { background: #fff; }
.header-main { display: flex; align-items: center; gap: 32px; padding: 18px 0; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 46px; height: 46px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700;
  letter-spacing: 1px; box-shadow: 0 4px 10px rgba(26, 77, 143, .25);
}
.logo-text .name { font-size: 24px; font-weight: 700; color: var(--brand); letter-spacing: 2px; line-height: 1.1; }
.logo-text .slogan { font-size: 12px; color: var(--muted); letter-spacing: 1px; }

.search-box { flex: 1; max-width: 620px; }
.search-inner { display: flex; border: 2px solid var(--brand); border-radius: 4px; overflow: hidden; height: 42px; background: #fff; }
.search-inner input { flex: 1; border: none; outline: none; padding: 0 14px; font-size: 14px; }
.search-inner button { width: 108px; border: none; background: var(--brand); color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 1px; }
.search-inner button:hover { background: var(--brand-2); }
.search-hot { margin-top: 7px; font-size: 12px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.search-hot a:hover { color: var(--brand); }

.header-side { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.header-side .btn-ask { background: linear-gradient(90deg, var(--gold), var(--gold-2)); color: #4a3708; border: none; border-radius: 4px; padding: 8px 22px; font-weight: 700; font-size: 15px; }
.header-side .btn-ask:hover { filter: brightness(1.05); }
.header-side .hotline { font-size: 12px; color: var(--muted); }
.header-side .hotline b { color: var(--gold); font-size: 16px; }

/* ---------------- 导航 ---------------- */
.nav { background: var(--brand); position: relative; }
.nav-inner { display: flex; align-items: center; flex-wrap: wrap; height: auto; min-height: 46px; }
.nav-item { position: relative; flex-shrink: 0; }
.nav-item > a {
  display: block; padding: 0 16px; height: 46px; line-height: 46px; color: #fff; font-size: 14px; white-space: nowrap;
}
.nav-item > a:hover, .nav-item.active > a { background: rgba(0, 0, 0, .18); }
.nav-item .caret { font-size: 10px; margin-left: 4px; opacity: .8; }

.mega {
  position: absolute; top: 46px; left: 0; width: 960px; background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); z-index: 90; display: none; padding: 18px 20px; border-radius: 0 0 6px 6px;
}
.nav-item:hover .mega { display: block; }
.mega h4 { font-size: 13px; color: var(--brand); margin-bottom: 10px; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 18px; }
.mega-grid a { font-size: 13px; color: var(--text-2); padding: 3px 0; }
.mega-grid a:hover { color: var(--brand); text-decoration: underline; }
.mega-sec { margin-top: 14px; border-top: 1px dashed var(--border); padding-top: 12px; }
.mega-links { display: flex; gap: 18px; flex-wrap: wrap; }
.mega-links a { font-size: 13px; color: var(--text-2); }
.mega-links a:hover { color: var(--brand); }

/* ---------------- 通用卡片 ---------------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-hd { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-hd h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.card-hd h3::before { content: ''; width: 4px; height: 17px; background: var(--brand); border-radius: 2px; }
.card-hd .more { font-size: 13px; color: var(--muted); }
.card-hd .more:hover { color: var(--brand); }
.card-bd { padding: 16px 18px; }
.card-bd.tight { padding: 6px 18px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--border); background: #fff; color: var(--text); border-radius: 4px; padding: 7px 16px; font-size: 13px; transition: .15s; }
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); color: #fff; }
.btn-gold { background: linear-gradient(90deg, var(--gold), var(--gold-2)); border: none; color: #4a3708; font-weight: 600; }
.btn-outline { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn-sm { padding: 4px 12px; font-size: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.tag { display: inline-block; padding: 2px 8px; border-radius: 3px; background: #eef3fa; color: var(--brand); font-size: 12px; margin-right: 6px; }
.tag.gold { background: #fdf4e3; color: #9a7520; }
.tag.green { background: #e9f7f1; color: var(--success); }
.tag.red { background: #fdecea; color: var(--danger); }
.tag.gray { background: #f1f3f5; color: var(--text-2); }
.tag.blue { background: #e8edff; color: #3452d9; font-weight: 600; }

/* 个人中心 · 内联编辑 */
.q-t .edit-link { font-size: 12px; color: var(--brand); margin-left: auto; flex-shrink: 0; }
.edit-form { margin-top: 10px; padding: 12px; background: #f8f9fb; border: 1px solid #eef0f4; border-radius: 8px; }
.edit-form .form-row label { font-size: 12px; color: var(--text-2); }

/* 个人中心 · 律师认证 */
.cert-banner { padding: 12px 16px; border-radius: 8px; font-size: 14px; }
.cert-banner.none { background: #f1f4f8; color: var(--text-2); }
.cert-banner.pending { background: #fdf4e3; color: #9a7520; }
.cert-banner.approved { background: #e9f7f1; color: var(--success); }
.cert-banner.rejected { background: #fdecea; color: var(--danger); }
.pos-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.pos-opt { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 18px; font-size: 13px; color: var(--text-2); cursor: pointer; transition: all .15s; }
.pos-opt:hover { border-color: var(--brand); }
.pos-opt.on { border-color: var(--brand); color: var(--brand); background: #eef3fa; }
.pos-opt input { accent-color: var(--brand); }
.upload-row { display: flex; gap: 24px; flex-wrap: wrap; }
.upload-slot { width: 200px; }
.upload-box { position: relative; width: 200px; height: 130px; border: 1px dashed #c9d4e3; border-radius: 8px; background: #fafbfd; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; overflow: hidden; transition: border-color .15s; }
.upload-box:hover { border-color: var(--brand); }
.upload-box.has { border-style: solid; cursor: default; }
.upload-box .plus { font-size: 26px; color: #b7c2d0; line-height: 1; }
.upload-box img { width: 100%; height: 100%; object-fit: cover; }
.face-box { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 16px; }
.face-preview { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--success); }
.face-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 999; display: flex; align-items: center; justify-content: center; }
.face-modal-body { background: #fff; border-radius: 10px; padding: 20px 24px; width: 340px; text-align: center; }
.face-modal-body h3 { margin: 0 0 12px; }
.face-modal-body video { width: 280px; height: 280px; border-radius: 50%; object-fit: cover; background: #111; transform: scaleX(-1); }

/* ---------------- 首页 Hero ---------------- */
.hero {
  background: linear-gradient(135deg, #1a4d8f 0%, #2a6fbd 55%, #3d84cf 100%);
  color: #fff; padding: 34px 0 30px; position: relative; overflow: hidden;
}
.hero::after { content: ''; position: absolute; right: -80px; top: -60px; width: 340px; height: 340px; border-radius: 50%; background: rgba(255, 255, 255, .06); pointer-events: none; }
.hero h1 { font-size: 28px; letter-spacing: 2px; margin-bottom: 6px; }
.hero .sub { opacity: .85; font-size: 14px; margin-bottom: 20px; }
.hero-ask { display: flex; gap: 10px; background: #fff; border-radius: 6px; padding: 8px; max-width: 780px; }
.hero-ask input { flex: 1; border: none; outline: none; padding: 0 12px; font-size: 15px; color: var(--text); }
.hero-ask button { border: none; border-radius: 4px; padding: 0 28px; font-size: 15px; font-weight: 600; background: var(--brand); color: #fff; }
.hero-ask button.gold { background: linear-gradient(90deg, var(--gold), var(--gold-2)); color: #4a3708; }
.hero-cats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.hero-cats a { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); padding: 5px 16px; border-radius: 20px; font-size: 13px; color: #fff; }
.hero-cats a:hover { background: rgba(255, 255, 255, .3); }
.hero-quick { display: flex; gap: 26px; margin-top: 22px; flex-wrap: wrap; }
.hero-quick a { color: #fff; font-size: 13px; opacity: .95; display: flex; align-items: center; gap: 6px; }
.hero-quick a:hover { text-decoration: underline; }

/* ---------------- 协议/政策文档页 ---------------- */
.legal-doc { max-width: 860px; margin: 0 auto; line-height: 1.9; color: var(--text); }
.legal-doc h2 { text-align: center; font-size: 22px; margin-bottom: 6px; }
.legal-doc .doc-update { text-align: center; font-size: 12px; color: var(--text-2); margin-bottom: 20px; }
.legal-doc h3 { font-size: 16px; margin: 22px 0 8px; color: var(--brand); }
.legal-doc p { margin: 6px 0; font-size: 14px; }
.legal-doc a { color: var(--brand); }
.legal-doc-nav { display: flex; gap: 24px; justify-content: center; border-top: 1px solid var(--border); padding-top: 16px; font-size: 14px; }
.legal-doc-link { color: var(--brand); font-weight: 600; }

.stats { background: #fff; border-bottom: 1px solid var(--border); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); padding: 16px 0; }
.stat { text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat .num { font-size: 24px; font-weight: 700; color: var(--brand); }
.stat .num small { font-size: 13px; font-weight: 500; }
.stat .label { font-size: 12px; color: var(--muted); }

/* ---------------- 布局 ---------------- */
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 16px; margin: 16px 0 30px; }
.layout.full { grid-template-columns: 1fr; }
.side { display: flex; flex-direction: column; gap: 16px; }
.home-cols { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }

/* 诉讼帮助：左栏再分两列 */
.help-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 16px; align-items: start; }
.help-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.agency-entry { display: flex; flex-direction: column; gap: 10px; }
.agency-item {
  display: flex; align-items: center; gap: 10px; padding: 12px;
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff; transition: .18s;
}
.agency-item:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-1px); }
.agency-ico { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 19px; flex: none; }
.agency-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.agency-txt b { font-size: 14px; font-weight: 600; }
.agency-txt .small { line-height: 1.4; }
.agency-go { font-size: 13px; color: var(--brand); flex: none; }

/* 诉讼帮助：服务清单（诉讼助理 / 协助查询） */
.svc-list { display: flex; flex-direction: column; gap: 8px; }
.svc-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius); background: #fbfcfe;
}
.svc-no {
  width: 20px; height: 20px; border-radius: 50%; flex: none; margin-top: 1px;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.svc-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.svc-txt b { font-size: 14px; font-weight: 600; }
.svc-txt .small { line-height: 1.4; }

/* 机构查询列表 */
.agency-list { display: flex; flex-direction: column; gap: 12px; }
/* 机构名录覆盖统计条 */
.agency-cover {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 10px 14px; border-radius: var(--radius);
  background: linear-gradient(90deg, #eef3fa, #f7fafd); border: 1px solid #e2eaf5;
  font-size: 13px; color: var(--text-2);
}
.agency-cover b { color: var(--brand); font-size: 15px; }
/* 省级行政区列表（侧栏） */
.prov-list { display: flex; flex-direction: column; gap: 2px; max-height: 420px; overflow-y: auto; }
.prov-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 13px; padding: 5px 8px; border-radius: 6px; color: var(--text-2);
}
.prov-list a:hover { background: #f1f4f8; color: var(--brand); }
.prov-list a.on { background: #eef3fa; color: var(--brand); font-weight: 600; }
/* 可滚动的筛选行（省级行政区数量多时使用） */
.filter-row .opts-scroll { max-height: 92px; overflow-y: auto; padding-right: 4px; }
.agency-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; background: #fff; transition: .18s; }
.agency-card:hover { box-shadow: var(--shadow); border-color: #c9d6e8; }
.agency-card-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.agency-card-hd b { font-size: 15px; }
.agency-rating { margin-left: auto; color: #e6a23c; font-weight: 700; font-size: 13px; }
.agency-meta { margin-top: 6px; }
.agency-scope { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--text); }
.agency-foot { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.agency-tel { color: var(--brand); font-size: 14px; }

/* ---------------- 律师卡片 ---------------- */
.avatar { border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; flex: none; }
.lawyer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.lawyer-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 12px; text-align: center; transition: .18s; }
.lawyer-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: #c9d6e8; }
.lawyer-card .avatar { margin: 0 auto 8px; }
.lawyer-card .name { font-size: 15px; font-weight: 600; }
.lawyer-card .firm { font-size: 12px; color: var(--muted); height: 34px; overflow: hidden; margin-top: 2px; }
.lawyer-card .tags { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; margin: 8px 0; min-height: 22px; }
.lawyer-card .tags span { font-size: 11px; background: #eef3fa; color: var(--brand); padding: 1px 6px; border-radius: 3px; }
.lawyer-card .meta { font-size: 12px; color: var(--muted); display: flex; justify-content: center; gap: 8px; }
.lawyer-card .acts { display: flex; gap: 6px; margin-top: 10px; }
.lawyer-card .acts .btn { flex: 1; padding: 5px 0; font-size: 12px; }
.online-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--success); margin-right: 4px; }
.offline-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #c7cdd6; margin-right: 4px; }

/* ---------------- 执业机构：主页头图 / 概览 / 团队 ---------------- */
.firm-avatar { width: 76px; height: 76px; border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand), #35618c); color: #fff; font-size: 32px; font-weight: 700; overflow: hidden; }
.firm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.firm-hero { display: flex; gap: 14px; align-items: center; }
.firm-logo { width: 64px; height: 64px; border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand), #35618c); color: #fff; font-size: 26px; font-weight: 700; overflow: hidden; }
.firm-logo img { width: 100%; height: 100%; object-fit: cover; }
.firm-hero-main { flex: 1; min-width: 0; }
.firm-hero-name { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.team-grid { display: flex; flex-direction: column; }
.team-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.team-item:last-child { border-bottom: none; }
.team-info { flex: 1; min-width: 0; }
.team-name { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.team-acts { width: 132px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------------- 键值行 ---------------- */
.kv { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13px; border-bottom: 1px dashed var(--border); }
.kv:last-of-type { border-bottom: none; }
.kv span { color: var(--muted); flex: none; }
.kv b { font-weight: 600; color: var(--text); text-align: right; word-break: break-all; }

.lawyer-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px dashed var(--border); }
.lawyer-row:last-child { border-bottom: none; }
.lawyer-row .info { flex: 1; min-width: 0; }
.lawyer-row .name-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lawyer-row .name-line .name { font-size: 17px; font-weight: 600; }
.lawyer-row .firm-line { font-size: 12px; color: var(--muted); margin-top: 2px; }
.lawyer-row .intro { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.lawyer-row .stats-line { display: flex; gap: 18px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.lawyer-row .stats-line b { color: var(--brand); font-size: 14px; }
.lawyer-row .acts { width: 132px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }

/* ---------------- 咨询列表 ---------------- */
.q-list .q-item { padding: 14px 0; border-bottom: 1px dashed var(--border); }
.q-list .q-item:last-child { border-bottom: none; }
.q-item .q-t { font-size: 15px; font-weight: 600; color: #1a1a1a; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.q-item .q-t:hover { color: var(--brand); }
.q-item .q-meta { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; gap: 14px; flex-wrap: wrap; }
.q-item .q-answer { display: flex; gap: 10px; margin-top: 8px; background: #f7f9fc; border-radius: 6px; padding: 10px 12px; }
.q-item .q-answer .txt { font-size: 13px; color: var(--text-2); }

.ans-flow .af-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.ans-flow .af-item:last-child { border-bottom: none; }
.ans-flow .af-item .who { color: var(--brand); flex: none; }
.ans-flow .af-item .q { color: var(--text-2); }

/* ---------------- 排行榜 ---------------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.tabs .tab { padding: 8px 16px; font-size: 14px; cursor: pointer; border-bottom: 2px solid transparent; color: var(--text-2); }
.tabs .tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.tabs.sm .tab { padding: 6px 12px; font-size: 13px; }
.rank-list .rk { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.rank-list .rk:last-child { border-bottom: none; }
.rank-list .no { width: 20px; height: 20px; border-radius: 3px; background: #eef1f5; color: var(--muted); font-size: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.rank-list .rk:nth-child(1) .no { background: var(--danger); color: #fff; }
.rank-list .rk:nth-child(2) .no { background: #e08b3a; color: #fff; }
.rank-list .rk:nth-child(3) .no { background: var(--gold); color: #fff; }
.rank-list .rk .nm { flex: 1; min-width: 0; }
.rank-list .rk .val { color: var(--brand); font-weight: 600; }

/* ---------------- 侧栏 ---------------- */
.side-card .hd { font-size: 15px; font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.side-card .hd::before { content: ''; }
.side-card .bd { padding: 10px 14px; }
.side-list a { display: block; font-size: 13px; padding: 6px 0; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-list a:hover { color: var(--brand); }
.side-list a .idx { color: var(--muted); margin-right: 6px; }
.side-list li:nth-child(1) a .idx, .side-list li:nth-child(2) a .idx, .side-list li:nth-child(3) a .idx { color: var(--danger); font-weight: 700; }
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tags-cloud a { font-size: 12px; background: #f1f4f8; color: var(--text-2); padding: 4px 10px; border-radius: 14px; }
.tags-cloud a:hover { background: var(--brand); color: #fff; }

/* 筛选条 */
.filters { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; margin-top: 16px; }
.filter-row { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--border); align-items: flex-start; }
.filter-row:last-child { border-bottom: none; }
.filter-row .lb { width: 60px; flex: none; color: var(--muted); font-size: 13px; padding-top: 2px; }
.filter-row .opts { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.filter-row .opts a { padding: 3px 12px; border-radius: 14px; font-size: 13px; color: var(--text-2); }
.filter-row .opts a:hover { color: var(--brand); }
.filter-row .opts a.on { background: var(--brand); color: #fff; }

/* ---------------- 详情 ---------------- */
.detail-hd { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; }
.detail-hd h1 { font-size: 22px; line-height: 1.5; margin-bottom: 10px; }
.detail-meta { font-size: 12px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.detail-body { font-size: 15px; line-height: 1.9; color: #24292f; padding: 16px 0; white-space: pre-wrap; }
.answer-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-top: 14px; }
.answer-item { display: flex; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.answer-item:last-child { border-bottom: none; }
.answer-item .main { flex: 1; min-width: 0; }
.answer-item .who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.answer-item .who .nm { font-weight: 600; color: var(--brand); }
.answer-item .who .fm { font-size: 12px; color: var(--muted); }
.answer-item .content { font-size: 15px; line-height: 1.9; white-space: pre-wrap; margin-top: 8px; color: #24292f; }
.answer-item .acts { display: flex; gap: 14px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.answer-item .acts span { cursor: pointer; }
.answer-item .acts span:hover { color: var(--brand); }
.answer-item.best { background: #fbfcfe; border-left: 3px solid var(--gold); }

.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.form-row .pos-opt { display: inline-flex; margin-bottom: 0; }
.form-row label .req { color: var(--danger); }
.input, .textarea, .select { width: 100%; border: 1px solid var(--border); border-radius: 4px; padding: 9px 12px; outline: none; background: #fff; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.8; }
/* 密码框：显示/隐藏切换 */
.pw-field { position: relative; }
.pw-field .input { padding-right: 42px; }
.pw-toggle {
  position: absolute; top: 0; right: 0; height: 100%; width: 40px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; padding: 0; cursor: pointer;
  color: var(--muted); transition: color .2s;
}
.pw-toggle:hover { color: var(--brand); }
.pw-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 4px; }
.pw-toggle svg { width: 18px; height: 18px; display: block; }
.pw-toggle .ic-off { display: none; }
.pw-toggle.is-hidden .ic-on { display: none; }
.pw-toggle.is-hidden .ic-off { display: block; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips a { padding: 5px 14px; border: 1px solid var(--border); border-radius: 16px; font-size: 13px; color: var(--text-2); background: #fff; }
.chips a.on { background: #eef3fa; border-color: var(--brand); color: var(--brand); }

/* 分页 */
.pager { display: flex; justify-content: center; gap: 6px; padding: 20px 0; }
.pager a, .pager span { min-width: 34px; height: 34px; line-height: 32px; text-align: center; border: 1px solid var(--border); border-radius: 4px; background: #fff; font-size: 13px; color: var(--text-2); padding: 0 8px; }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .cur { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .dis { color: #c3c9d2; }

/* 面包屑 */
.crumb { font-size: 12px; color: var(--muted); padding: 12px 0 0; }
.crumb a:hover { color: var(--brand); }

/* 知识/文章 */
.article-body { font-size: 15px; line-height: 2; color: #24292f; }
.article-body p { margin: 0 0 14px; text-indent: 2em; }
.article-summary { background: #f7f9fc; border-left: 3px solid var(--brand); padding: 12px 16px; color: var(--text-2); font-size: 14px; margin-bottom: 18px; }

.kn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.kn-item { border: 1px solid var(--border); border-radius: 6px; padding: 12px 14px; background: #fff; }
.kn-item:hover { border-color: #c9d6e8; box-shadow: var(--shadow); }
.kn-item .t { font-size: 15px; font-weight: 600; }
.kn-item .s { font-size: 13px; color: var(--muted); margin-top: 4px; }
.kn-item .m { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; gap: 12px; }

.cat-tree { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cat-tree a { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; background: #fff; }
.cat-tree a:hover, .cat-tree a.on { border-color: var(--brand); color: var(--brand); background: #f5f9ff; }
.cat-badge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; flex: none; margin-right: 8px; }
h1 .cat-badge { width: 30px; height: 30px; font-size: 15px; border-radius: 8px; margin-right: 10px; }

/* 专题 */
.sp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sp-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: .18s; }
.sp-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.sp-cover { height: 96px; display: flex; align-items: center; justify-content: center; font-size: 40px; color: #fff; }
.sp-card .bd { padding: 14px 16px; }
.sp-card .bd .t { font-size: 16px; font-weight: 600; }
.sp-card .bd .d { font-size: 13px; color: var(--muted); margin-top: 6px; height: 40px; overflow: hidden; }
.sp-card .bd .m { font-size: 12px; color: var(--muted); margin-top: 8px; display: flex; justify-content: space-between; }

/* 工具 */
.calc-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.calc-result { background: #f7f9fc; border: 1px solid var(--border); border-radius: 6px; padding: 18px; }
.calc-result .big { font-size: 30px; font-weight: 700; color: var(--danger); }
.calc-result .big small { font-size: 14px; }
.fee-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
.fee-table th, .fee-table td { border: 1px solid var(--border); padding: 7px 10px; text-align: left; }
.fee-table th { background: #f1f4f8; font-weight: 600; }
.fee-table td.num { text-align: right; }

/* 表格（合同/罪名） */
.clause { border: 1px solid var(--border); border-radius: 6px; margin-bottom: 10px; background: #fff; }
.clause .h { padding: 10px 14px; font-weight: 600; font-size: 14px; background: #f8fafc; border-bottom: 1px solid var(--border); }
.clause .c { padding: 12px 14px; font-size: 14px; line-height: 1.9; color: #374151; }
.tip-box { background: #fff9ec; border: 1px solid #f3e2bd; border-radius: 6px; padding: 12px 16px; font-size: 13px; color: #7a5c15; }
.tip-box li { margin: 4px 0; }

.crime-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.crime-item { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 12px 14px; }
.crime-item:hover { border-color: var(--brand); }
.crime-item .n { font-size: 15px; font-weight: 600; }
.crime-item .a { font-size: 12px; color: var(--gold); margin-top: 2px; }
.crime-item .s { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* 登录 / 注册 */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; margin: 40px 0; }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 30px 34px; box-shadow: var(--shadow); }
.auth-card h2 { font-size: 22px; margin-bottom: 6px; }
.auth-side h2 { font-size: 26px; color: var(--brand); }
.auth-side li { padding: 8px 0 8px 22px; position: relative; color: var(--text-2); }
.auth-side li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
/* 注册类型卡片 */
.reg-type-cards { display: flex; flex-direction: column; gap: 10px; }
.reg-type-card { border: 2px solid var(--border); border-radius: 8px; padding: 12px 16px; cursor: pointer; transition: border-color .2s, box-shadow .2s; display: flex; gap: 12px; align-items: flex-start; }
.reg-type-card:hover { border-color: var(--brand-2); }
.reg-type-card.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: #f5f9ff; }
.reg-type-icon { font-size: 28px; flex-shrink: 0; }
.reg-type-title { font-weight: 600; font-size: 15px; color: var(--text-1); }
.reg-type-desc { font-size: 12px; color: var(--text-3); margin-top: 2px; line-height: 1.5; }
.chk-group { display: flex; flex-wrap: wrap; gap: 6px; }
.chk-label { font-size: 13px; color: var(--text-2); cursor: pointer; display: flex; align-items: center; gap: 3px; }
.chk-label input { margin: 0; }
/* 注册城市选择器字段 */
.city-picker-field { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 4px; padding: 8px 12px; cursor: pointer; transition: border-color .15s; }
.city-picker-field:hover { border-color: var(--brand); }
.city-picker-field span:first-child { font-size: 14px; font-weight: 600; color: var(--brand); }
/* 登录身份 tab */
.login-type-tabs { display: flex; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.lt-tab { flex: 1; text-align: center; padding: 8px 0; font-size: 13px; cursor: pointer; border-right: 1px solid var(--border); color: var(--text-2); transition: background .2s, color .2s; }
.lt-tab:last-child { border-right: none; }
.lt-tab input { display: none; }
.lt-tab.on { background: var(--brand); color: #fff; }

/* 个人中心 */
.me-layout { display: grid; grid-template-columns: 200px 1fr; gap: 16px; margin: 16px 0 30px; }
.me-nav { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.me-nav .hd { padding: 18px 16px; text-align: center; border-bottom: 1px solid var(--border); }
.me-nav a { display: block; padding: 11px 18px; font-size: 14px; color: var(--text-2); border-left: 3px solid transparent; }
.me-nav a:hover, .me-nav a.on { background: #f5f9ff; color: var(--brand); border-left-color: var(--brand); }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat-cards .sc { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; }
.stat-cards .sc .n { font-size: 22px; font-weight: 700; color: var(--brand); }
.stat-cards .sc .l { font-size: 12px; color: var(--muted); }

/* 页脚 */
.footer { background: #1e2733; color: #a7b0bd; margin-top: 30px; padding: 34px 0 20px; font-size: 13px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; font-weight: 600; }
.footer-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.footer a { display: block; padding: 3px 0; color: #a7b0bd; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #2b3542; margin-top: 24px; padding-top: 16px; text-align: center; font-size: 12px; color: #6f7a88; }
.footer-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }

/* ---------------- IM 会话 ---------------- */
.im-status { font-size: 12px; padding: 3px 10px; border-radius: 12px; background: #f1f3f5; color: var(--muted); }
.im-status.on { background: #e9f7f1; color: var(--success); }
.im-status.off { background: #fdf3e7; color: #b07b1e; }
.im-wrap { display: grid; grid-template-columns: 300px 1fr; min-height: 560px; }
.im-side { border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.im-search { padding: 12px; border-bottom: 1px solid var(--border); }
.im-list { flex: 1; overflow-y: auto; max-height: 460px; }
.im-item { display: flex; gap: 10px; padding: 12px; border-bottom: 1px solid var(--border); cursor: pointer; position: relative; }
.im-item:hover { background: #f7f9fc; }
.im-item.on { background: #eef3fa; }
.im-item .info { flex: 1; min-width: 0; }
.im-item .nm { font-weight: 600; font-size: 14px; }
.im-item .tm { font-size: 11px; color: var(--muted); }
.im-item .fm { font-size: 11px; color: var(--muted); }
.im-item .lm { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.im-badge { position: absolute; right: 10px; bottom: 12px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.im-side-ft { padding: 12px; border-top: 1px solid var(--border); }
.im-main { display: flex; flex-direction: column; }
.im-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); min-height: 68px; }
.im-header .info { flex: 1; }
.im-header .nm { font-weight: 600; font-size: 15px; }
.im-header .fm { font-size: 12px; color: var(--muted); }
.im-header .acts { display: flex; gap: 8px; }
.im-messages { flex: 1; padding: 16px; overflow-y: auto; height: 360px; background: #f7f9fc; }
.im-msg { display: flex; gap: 10px; margin-bottom: 16px; }
.im-msg.mine { flex-direction: row-reverse; }
.im-msg .bubble { max-width: 62%; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; }
.im-msg.mine .bubble { background: #e8f0fb; border-color: #cddcf0; }
.im-msg .who { font-size: 12px; color: var(--muted); margin-bottom: 4px; display: flex; gap: 6px; align-items: center; }
.im-msg .who .role { background: #eef3fa; color: var(--brand); padding: 0 6px; border-radius: 3px; font-size: 11px; }
.im-msg .who .tm { margin-left: auto; font-size: 11px; }
.im-msg .txt { font-size: 14px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.im-quick { padding: 8px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; flex-wrap: wrap; }
.im-quick .chip { font-size: 12px; background: #f1f4f8; color: var(--text-2); padding: 3px 10px; border-radius: 12px; cursor: pointer; }
.im-quick .chip:hover { background: var(--brand); color: #fff; }
.im-composer { border-top: 1px solid var(--border); padding: 10px 16px 14px; }
.im-composer .textarea { min-height: 76px; }
.im-composer-ft { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.dot { display: inline-block; min-width: 16px; height: 16px; line-height: 16px; border-radius: 8px; background: var(--danger); color: #fff; font-size: 10px; text-align: center; margin-left: 4px; padding: 0 4px; }

/* ---------------- 法规库 ---------------- */
.st-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.st-item:last-child { border-bottom: none; }
.st-item:hover .t { color: var(--brand); }
.st-ic { width: 44px; height: 44px; border-radius: 8px; background: #fdf4e3; display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.st-bd { flex: 1; min-width: 0; }
.st-item .t { font-size: 16px; font-weight: 600; }
.st-item .m { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.st-item .s { font-size: 13px; color: var(--muted); margin-top: 6px; }
.art-item { padding: 14px 0; border-bottom: 1px dashed var(--border); }
.art-item:last-child { border-bottom: none; }
.art-no { font-weight: 700; color: var(--brand); font-size: 15px; margin-bottom: 4px; }
.art-text { font-size: 15px; line-height: 2; color: #24292f; text-indent: 2em; }
.art-ch { font-size: 12px; color: var(--muted); margin-top: 4px; }
.art-text mark { background: #ffe9a8; color: #8a5a00; padding: 0 2px; border-radius: 2px; }
.art-hit { display: block; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.art-hit:last-child { border-bottom: none; }
.art-hit:hover .c { color: var(--brand); }
.art-hit .c { font-size: 14px; line-height: 1.9; margin-top: 4px; color: var(--text-2); }

/* toast */
.toast-wrap { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: rgba(28, 35, 46, .92); color: #fff; padding: 9px 20px; border-radius: 20px; font-size: 13px; box-shadow: var(--shadow-lg); animation: tin .25s; }
.toast.err { background: rgba(192, 57, 43, .94); }
.toast.ok { background: rgba(47, 158, 120, .94); }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* 加载 */
.loading { padding: 60px 0; text-align: center; color: var(--muted); }
.spinner { width: 26px; height: 26px; border: 3px solid #e3e8ef; border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty { padding: 50px 0; text-align: center; color: var(--muted); }
.empty .ic { font-size: 40px; opacity: .35; }

/* 响应式 */
@media (max-width: 1200px) {
  .container { width: 100%; }
  .lawyer-grid { grid-template-columns: repeat(3, 1fr); }
  .mega { width: 100%; left: 0; }
}
@media (max-width: 900px) {
  .layout, .home-cols, .calc-wrap, .auth-wrap, .help-main { grid-template-columns: 1fr; }
  .me-layout { grid-template-columns: 1fr; }
  .lawyer-grid, .sp-grid, .crime-grid, .kn-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--border); padding: 8px 0; }
  .header-main { flex-wrap: wrap; gap: 16px; }
}

/* ---------------- 律师说法 ---------------- */
.voice-list { display: flex; flex-direction: column; gap: 12px; }
.voice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.voice-item { display: block; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; transition: box-shadow .15s, border-color .15s; }
.voice-item:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(26, 77, 143, .08); }
.v-author { display: flex; align-items: center; gap: 10px; }
.v-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.v-time { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.v-title { font-size: 16px; font-weight: 600; margin: 10px 0 6px; color: var(--text); }
.voice-item:hover .v-title { color: var(--brand); }
.v-summary { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.v-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-2); margin-top: 8px; }
.side-lawyer { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.side-lawyer .info { flex: 1; min-width: 0; }
.side-lawyer .info a { font-size: 14px; font-weight: 600; }

/* ---------------- 律师协作 ---------------- */
.collab-hero { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.collab-item { padding: 18px 14px; border-radius: 10px; background: var(--bg-2, #f6f8fb); text-align: center; }
.collab-item .ic { font-size: 30px; }
.collab-item .t { font-weight: 700; margin: 8px 0 6px; font-size: 15px; }
.collab-item .s { font-size: 12px; color: var(--text-2); line-height: 1.7; }
.collab-list { display: flex; flex-direction: column; gap: 10px; }
.collab-post { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; }
.collab-type { flex-shrink: 0; color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 20px; }
.cp-body { flex: 1; min-width: 0; }
.cp-title { font-size: 14px; font-weight: 600; color: var(--text); }
.cp-meta { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); margin-top: 5px; }
@media (max-width: 900px) {
  .collab-hero { grid-template-columns: repeat(2, 1fr); }
  .collab-post { flex-wrap: wrap; }
}

/* ---------------- 律师说法 · 左右两栏（图文 + 视频） ---------------- */
.voice-page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; margin: 16px 0 30px; }
.voice-page > .side { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
.voice-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.voice-catbar { margin: 0; }
.cat-tree.is-wide { grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); }
@media (max-width: 640px) { .cat-tree.is-wide { grid-template-columns: repeat(2, 1fr); } }
.video-list { display: flex; flex-direction: column; gap: 14px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.video-item { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.video-item:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(26, 77, 143, .08); }
.v-cover { position: relative; height: 150px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.v-cover.has-img { background: #0f1c2e; }
.v-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v-cover-emoji { font-size: 46px; opacity: .92; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.v-play { position: absolute; width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; padding-left: 4px; transition: background .15s; }
.video-item:hover .v-play { background: var(--brand); }
.v-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.62); color: #fff; font-size: 12px; line-height: 1; padding: 4px 7px; border-radius: 4px; letter-spacing: .5px; }
.v-info { padding: 10px 12px 12px; }
.v-vtitle { font-weight: 600; font-size: 15px; line-height: 1.45; color: var(--text); }
.video-item:hover .v-vtitle { color: var(--brand); }
.v-vmeta { margin-top: 6px; font-size: 12px; color: var(--muted); }
.video-modal { position: fixed; inset: 0; background: rgba(10, 18, 30, .62); z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.video-modal-box { background: #fff; border-radius: 12px; width: min(680px, 94vw); padding: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.video-modal-hd { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; font-weight: 600; color: var(--text); }
.vm-close { border: none; background: var(--border); color: var(--text); width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 13px; flex: none; }
.vm-close:hover { background: var(--brand); color: #fff; }
.video-modal video { width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; background: #000; display: block; }
.video-modal-sum { margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--text-2); }
@media (max-width: 1180px) {
  .voice-page { grid-template-columns: minmax(0, 1fr); }
  .voice-page > .side { grid-column: 1; grid-row: auto; flex-direction: row; }
  .voice-page > .side > .card { flex: 1; min-width: 0; }
}
@media (max-width: 920px) {
  .voice-two { grid-template-columns: 1fr; }
  .voice-page > .side { flex-direction: column; }
}

/* ---------------- 个人中心 · 视频说法管理 ---------------- */
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #a83226; border-color: #a83226; color: #fff; }

/* 上传区 */
.vid-drop { border: 1px dashed var(--border); border-radius: 10px; background: #fafbfd; transition: border-color .15s, background .15s; }
.vid-drop.drag { border-color: var(--brand); background: #f0f5ff; }
.vid-drop-idle { padding: 34px 20px; text-align: center; cursor: pointer; }
.vid-drop-icon { font-size: 38px; opacity: .7; }
.vid-drop-main { margin: 8px 0 4px; font-size: 14px; font-weight: 600; color: var(--text); }
.vid-drop-picked { display: flex; gap: 16px; padding: 14px; align-items: center; }
.vid-preview { width: 260px; max-width: 46%; aspect-ratio: 16 / 9; border-radius: 8px; background: #000; flex: none; }
.vid-picked-side { min-width: 0; }
.vid-picked-name { font-weight: 600; font-size: 14px; word-break: break-all; margin-bottom: 4px; }

/* 上传进度 */
.vid-progress { margin-top: 12px; }
.vid-progress-bar { height: 8px; border-radius: 5px; background: #eaeef4; overflow: hidden; }
.vid-progress-bar i { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .2s; }
.vid-progress .small { margin-top: 6px; }

/* 封面编辑 */
.vid-cover-row { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.vid-cover-box { position: relative; width: 208px; height: 117px; border-radius: 10px; flex: none; cursor: pointer; overflow: hidden;
  display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand), #35618c);
  border: 1px solid var(--border); }
.vid-cover-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-cover-emoji { font-size: 40px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); }
.vid-cover-side { flex: 1; min-width: 240px; }
.vid-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.vid-chip { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: #fff; font-size: 17px; cursor: pointer; transition: .15s; }
.vid-chip:hover { border-color: var(--brand); }
.vid-chip.on { border-color: var(--brand); background: #eef3fa; box-shadow: 0 0 0 2px rgba(26, 77, 143, .12); }
.vid-grad { width: 40px; height: 26px; border-radius: 6px; border: 1px solid var(--border); cursor: pointer; transition: .15s; }
.vid-grad:hover { transform: translateY(-1px); }
.vid-grad.on { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(26, 77, 143, .18); }

/* 我的视频列表 */
.vid-mine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.vid-mine { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; display: flex; flex-direction: column;
  transition: box-shadow .15s, border-color .15s; }
.vid-mine:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(26, 77, 143, .08); }
.vid-mine-cover { position: relative; height: 156px; display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), #35618c); }
.vid-mine-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-mine-emoji { font-size: 48px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); }
.vid-mine:hover .v-play { background: var(--brand); }
.vid-mine-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.vid-mine-title { font-weight: 600; font-size: 15px; line-height: 1.5; color: var(--text); min-height: 45px; }
.vid-mine-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.vid-mine-meta .tag { margin-right: 0; }
.vid-mine-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

@media (max-width: 680px) {
  .vid-drop-picked { flex-direction: column; align-items: stretch; }
  .vid-preview { width: 100%; max-width: none; }
  .vid-cover-box { width: 100%; height: 150px; }
}

/* ---------------- 法律知识库 · 法来网收录 ---------------- */
.collect-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; border-radius: 10px;
  background: linear-gradient(120deg, #123a6b 0%, #1a4d8f 55%, #2a6bb5 100%); color: #fff; box-shadow: 0 8px 24px rgba(26, 77, 143, .18); }
.collect-hero .ch-left { min-width: 0; }
.collect-hero .ch-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; letter-spacing: .5px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); }
.collect-hero h1 { font-size: 26px; margin: 10px 0 8px; color: #fff; }
.collect-hero p { font-size: 13px; line-height: 1.75; color: rgba(255, 255, 255, .86); max-width: 720px; }
.collect-hero p b { color: #fff; }
.collect-hero .ch-stats { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; font-size: 12.5px; color: rgba(255, 255, 255, .8); }
.collect-hero .ch-stats b { font-size: 15px; color: #fff; margin-right: 2px; }
.collect-hero .ch-right { flex: none; }
.collect-hero .ch-seal { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 8px;
  background: rgba(255, 255, 255, .1); border: 1px dashed rgba(255, 255, 255, .38); }
.collect-hero .ch-seal span { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 6px;
  background: var(--gold); color: #fff; font-size: 20px; font-weight: 700; }
.collect-hero .ch-seal em { font-style: normal; font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, .9); }

.kn-list { display: flex; flex-direction: column; gap: 10px; }
.kn-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; transition: .16s; }
.kn-row:hover { border-color: #b9cdea; box-shadow: 0 4px 14px rgba(26, 77, 143, .08); transform: translateX(2px); }
.kn-row-main { flex: 1; min-width: 0; }
.kn-row-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kn-row-hd h4 { font-size: 16px; font-weight: 600; color: var(--text); }
.kn-row:hover .kn-row-hd h4 { color: var(--brand); }
.kn-cat { flex: none; font-size: 12px; color: var(--brand); background: #eef4fd; border: 1px solid #d6e5fa; border-radius: 4px; padding: 1px 7px; }
.kn-row-sum { font-size: 13px; color: var(--text-2); margin-top: 5px; line-height: 1.65; }
.kn-row-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.kn-row-tags span { font-size: 12px; color: var(--muted); }
.kn-row-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.kn-row-go { flex: none; font-size: 12px; color: var(--muted); }
.kn-row:hover .kn-row-go { color: var(--brand); }

/* 全部知识条目 · 只显示 10 条，左右两栏 +「查看更多」按批追加 */
.kn-list.kn-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.kn-two .kn-row { align-items: stretch; padding: 14px 16px; }
.kn-two .kn-row:hover { transform: translateY(-2px); }
.kn-two .kn-row-main { display: flex; flex-direction: column; }
.kn-two .kn-row-hd h4 { font-size: 15px; line-height: 1.5; }
.kn-two .kn-row-meta { margin-top: auto; padding-top: 10px; gap: 12px; }
.kn-two .kn-row-go { display: none; }

.kn-more-wrap { margin-top: 14px; text-align: center; }
.kn-more-btn { min-width: 220px; border-color: #cfdcee; background: #f7faff; color: var(--brand); font-weight: 600; }
.kn-more-btn:hover { border-color: var(--brand); background: #eef4fd; color: var(--brand); }
.kn-more-btn:hover em { color: var(--brand); }
.kn-more-btn em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 6px; }
.kn-end { padding: 12px 0 2px; text-align: center; font-size: 12.5px; color: var(--muted); }
.kn-end::before, .kn-end::after { content: ''; display: inline-block; width: 36px; height: 1px; margin: 0 10px; vertical-align: middle; background: var(--border); }
@keyframes knIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.kn-in { animation: knIn .32s ease both; }

@media (max-width: 900px) {
  .collect-hero { flex-direction: column; align-items: flex-start; padding: 20px; }
  .collect-hero .ch-right { display: none; }
  .collect-hero h1 { font-size: 22px; }
  .kn-row-go { display: none; }
  .kn-list.kn-two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kn-row { padding: 12px 13px; }
  .kn-row-hd h4 { font-size: 15px; }
  .kn-row-meta { gap: 10px; }
}

/* 法律知识条目 · 收录说明块 */
.collect-note { margin: 14px 0 18px; padding: 12px 14px; border-radius: 6px; font-size: 12.5px; line-height: 1.7;
  color: var(--text-2); background: #f5f8fd; border-left: 3px solid var(--brand); }
.collect-note b { color: var(--brand); }

/* 图文说法 · 律师供稿说明块 */
.voice-note { margin: 14px 0 18px; padding: 12px 14px; border-radius: 6px; font-size: 12.5px; line-height: 1.7;
  color: var(--text-2); background: #fdf8f1; border-left: 3px solid var(--gold, #c8963e); }
.voice-note b { color: var(--brand); }

/* ---------------- 律师说法 · 案例说法详情 ---------------- */
.detail-cats { display: flex; align-items: center; gap: 8px; }
.case-sec { font-size: 17px; margin: 22px 0 10px; padding-left: 10px; border-left: 4px solid var(--brand); color: var(--brand); }
.case-sec:first-child { margin-top: 6px; }
.case-author { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-soft, #f7f9fc); }
.case-author .info { flex: 1; min-width: 0; }
.case-author .n { font-weight: 600; }
.case-author .more { font-size: 12px; color: var(--brand); white-space: nowrap; }
