/* ==========================================================================
   北京律师网 · 首页样式
   结构见 index.html，行为见 js/main.js
   v3 改版：
     · 品牌升级为「北京律师网」，主调蓝/点缀金不变
     · hero-stats 改为白底卡片，破除「导航蓝→Banner蓝→数据条蓝」三连蓝
     · 返回顶部图标居中修正（flex）
     · 律师卡加照片头像 + 实名认证盾
     · 问吧加 3 步流程
     · 信息流扩到 13 条解决右侧留白
     · 移动端精简：2 列紧凑布局 + 悬浮拨号按钮
   ========================================================================== */

/* ---------- 变量（v4 静奢体系：深夜蓝 + 香槟金 + 纸感中性） ---------- */
:root {
  /* 深夜蓝主调（更沉、更权威） */
  --blue-900: #0a1f3d;
  --blue-800: #0e2a52;
  --blue-700: #123a6e;
  --blue-600: #1a4f96;
  --blue-500: #2f6cb5;
  --blue-100: #e5edf8;
  --blue-50:  #f3f7fc;

  /* 香槟金点缀（克制、高级） */
  --gold-600: #96691a;
  --gold-500: #c08d2e;
  --gold-300: #ddb75e;
  --gold-100: #f6eeda;

  /* 砖红（仅热线与紧迫数据） */
  --red-500:  #c0503d;

  /* 墨色中性（暖调纸感，不用纯黑） */
  --ink-900: #1b2230;
  --ink-700: #37414f;
  --ink-500: #64718a;
  --ink-300: #a4aebd;

  --bg-gray:  #f4f3ef;
  --bg-white: #ffffff;
  --border:   #e5e2da;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(10, 31, 61, .05), 0 2px 6px rgba(10, 31, 61, .05);
  --shadow-md: 0 6px 18px rgba(10, 31, 61, .09);
  --shadow-lg: 0 16px 40px rgba(10, 31, 61, .15);

  /* 字体：标题衬线（宋体庄重），正文无衬线 */
  --font-display: "Noto Serif SC", "Source Han Serif SC", "STZhongsong", "SimSun", serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--ink-900);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

.container { width: 1200px; max-width: 100%; margin: 0 auto; padding: 0 16px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 10px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg      { padding: 13px 38px; font-size: 16px; border-radius: var(--radius-md); }
.btn-sm      { padding: 6px 16px;  font-size: 13px; }
.btn-block   { display: block; width: 100%; }
.btn-gold {
  background: linear-gradient(135deg, #e3b34c, var(--gold-500));
  color: #fff;
  box-shadow: 0 4px 12px rgba(176, 125, 26, .30);
}
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); }
.btn-blue    { background: var(--blue-600); color: #fff; }
.btn-blue:hover { background: var(--blue-700); }
.btn-outline { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.14); }
.btn-ghost   { border-color: var(--border); color: var(--blue-700); background: var(--blue-50); }
.btn-ghost:hover { border-color: var(--blue-600); background: var(--blue-100); }

/* ==========================================================================
   顶部欢迎条
   ========================================================================== */
.topbar {
  background: var(--blue-900); color: #cdddf2; font-size: 12px;
  padding-top: max(6px, env(safe-area-inset-top));
}
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 34px; padding: 7px 0; flex-wrap: wrap; gap: 4px 16px;
}
.topbar-welcome strong { color: #fff; }
.topbar-links { display: flex; align-items: center; gap: 10px; }
.topbar-link { color: #cdddf2; }
.topbar-link:hover { color: #fff; }
.topbar-link-hot { color: var(--gold-300); font-weight: 600; }
.topbar-sep { color: rgba(255,255,255,.25); }

/* ==========================================================================
   头部
   ========================================================================== */
.header { background: #fff; border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 40px; padding: 18px 16px; }

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-300);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.logo-mark svg { width: 30px; height: 30px; display: block; }
.logo-text strong { display: block; font-size: 26px; color: var(--blue-800); letter-spacing: .5px; line-height: 1.3; }
.logo-text .logo-num {
  color: var(--gold-500); font-size: 26px; font-weight: 700;
  display: inline-block; line-height: inherit;
}
.logo-text em { display: block; font-style: normal; font-size: 12px; color: var(--ink-500); letter-spacing: 1px; white-space: nowrap; }

.header-search { flex: 1; max-width: 560px; min-width: 0; }

.search-box {
  border: 2px solid var(--blue-600);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(26, 95, 196, .12); }
.search-tabs { display: flex; background: var(--bg-gray); border-bottom: 1px solid var(--border); }
.search-tab {
  padding: 7px 20px;
  font-size: 13px;
  color: var(--ink-500);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color .2s;
}
.search-tab:hover { color: var(--blue-700); }
.search-tab.is-active { color: var(--blue-700); font-weight: 600; background: #fff; }
.search-tab.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #fff;
}
.search-form { display: flex; }
.search-input {
  flex: 1; border: none; outline: none; padding: 11px 14px; font-size: 14px; color: var(--ink-900); min-width: 0; background: transparent;
}
.search-input::placeholder { color: var(--ink-300); }
.search-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 0 30px; background: linear-gradient(180deg, var(--blue-500), var(--blue-600)); color: #fff; border: none;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: filter .2s;
}
.search-btn svg { width: 16px; height: 16px; }
.search-btn:hover { filter: brightness(1.08); }
.search-hot { margin-top: 8px; font-size: 12px; color: var(--ink-500); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search-hot a { color: var(--ink-500); }
.search-hot a:hover { color: var(--blue-600); }

.header-phone { flex-shrink: 0; text-align: right; border-left: 1px solid var(--border); padding-left: 28px; }
.header-phone-label { font-size: 12px; color: var(--ink-500); font-weight: 600; }
.header-phone-num   { font-size: 24px; font-weight: 800; color: var(--red-500); line-height: 1.4; font-family: Georgia, serif; }
.header-phone-sub   { font-size: 12px; color: var(--ink-300); }

/* ==========================================================================
   主导航
   ========================================================================== */
.nav { background: var(--blue-800); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(10, 44, 94, .25); }
.nav-inner { display: flex; align-items: stretch; flex-wrap: wrap; }
.nav-item { position: relative; }
.nav-item > a,
a.nav-item {
  display: block; padding: 0 26px; height: 46px; line-height: 46px;
  color: rgba(255,255,255,.9); font-size: 15px; font-weight: 500;
  transition: background .2s;
}
.nav-item > a:hover,
a.nav-item:hover { background: var(--blue-700); color: #fff; }
.nav-item-home > a,
a.nav-item-home { background: var(--blue-600); font-weight: 700; }
.nav-item-accent > a,
a.nav-item-accent { color: var(--gold-300); font-weight: 600; }
.nav-item-accent > a:hover,
a.nav-item-accent:hover { color: #ffe3a1; }

.nav-drop {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 18px 22px;
  min-width: 420px;
}
.nav-drop-single { min-width: 180px; }
.nav-item-hasdrop:hover .nav-drop { display: flex; gap: 30px; }
.nav-item-hasdrop > a::after { content: ""; margin-left: 6px; border: 4px solid transparent; border-top-color: rgba(255,255,255,.6); vertical-align: 2px; }
.nav-drop-group h4 { font-size: 13px; color: var(--ink-300); font-weight: 600; margin-bottom: 8px; }
.nav-drop-group a {
  display: inline-block; margin: 0 14px 8px 0; font-size: 13px; color: var(--ink-700);
}
.nav-drop-group a:hover { color: var(--blue-600); }

/* ==========================================================================
   主视觉区（深蓝渐变 + 装饰光晕）
   ========================================================================== */
.hero {
  background: linear-gradient(155deg, #0e4ba3 0%, #0a3074 50%, #071f4d 100%);
  padding: 56px 0 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: -140px; right: -90px;
  width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,199,94,.16) 0%, rgba(240,199,94,0) 65%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; bottom: -160px; left: -110px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(58,123,213,.22) 0%, rgba(58,123,213,0) 65%);
  pointer-events: none;
}
.hero-inner { display: flex; gap: 48px; align-items: stretch; padding-bottom: 52px; position: relative; z-index: 1; }
.hero-content { flex: 1.1; padding-top: 12px; min-width: 0; }
.hero-title { font-size: 38px; line-height: 1.45; color: #fff; font-weight: 700; letter-spacing: 1px; }
.hero-title-accent { color: var(--gold-300); }
.hero-desc { margin: 18px 0 34px; font-size: 16px; color: #cdddf2; letter-spacing: 1px; }
.hero-actions { display: flex; gap: 16px; }

.hero-card {
  flex: 1; background: #fff; border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(4, 18, 40, .35); overflow: hidden;
  min-width: 0;
  display: flex; flex-direction: column;
}
.hero-card-title {
  padding: 16px 24px; font-size: 15px; color: var(--ink-700);
  border-bottom: 1px solid var(--border); background: var(--blue-50);
}
.hero-card-num { color: var(--red-500); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.hero-qa { padding: 8px 24px; flex: 1; display: flex; flex-direction: column; justify-content: center; overflow: hidden; position: relative; }
.hero-qa-item { display: none; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.hero-qa-item.is-visible { display: block; animation: qaIn .45s ease; }
@keyframes qaIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero-qa-tag {
  display: inline-block; padding: 1px 10px; border-radius: 20px;
  font-size: 12px; margin-bottom: 6px;
}
.hero-qa-q { font-size: 14px; font-weight: 600; color: var(--ink-900); }
.hero-qa-a { font-size: 12px; color: var(--ink-500); margin-top: 3px; }
.hero-qa-a strong { color: var(--blue-700); }
.hero-card-foot { padding: 12px 24px; border-top: 1px solid var(--border); }
.hero-card-link { font-size: 13px; color: var(--blue-600); }
.hero-card-link:hover { text-decoration: underline; }

/* 领域小标签色 */
.tag-marriage  { background: #fce8f0; color: #c2416e; }
.tag-labor     { background: #e2f5ee; color: #0e7d5c; }
.tag-criminal  { background: #eceafd; color: #4f46c2; }
.tag-housing   { background: #fdeee2; color: #c2611f; }
.tag-debt      { background: #e3eefb; color: #14549f; }
.tag-traffic   { background: #f9e6ec; color: #8e2f4d; }
.tag-demolition{ background: #faf1dd; color: #a3721a; }
.tag-contract  { background: #e0f3ef; color: #0c6b52; }

/* ==========================================================================
   数据条：白底卡片（破三蓝连排）
   ========================================================================== */
.hero-stats {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(10,44,94,.10);
  position: relative; z-index: 2;
}
.hero-stats-inner { display: flex; justify-content: space-between; flex-wrap: wrap; padding: 24px 0; }
.stat { text-align: center; flex: 1; min-width: 120px; border-right: 1px solid #eef2f8; }
.stat:last-child { border-right: none; }
.stat strong { display: block; font-size: 32px; color: var(--blue-700); font-family: Georgia, serif; line-height: 1.2; font-weight: 700; }
.stat strong span { font-size: 18px; color: var(--blue-500); }
.stat em { font-style: normal; font-size: 13px; color: var(--ink-500); letter-spacing: 2px; margin-top: 4px; display: block; }

/* ==========================================================================
   通用区块
   ========================================================================== */
.section { padding: 56px 0; }
.section-gray { background: var(--bg-gray); }
.section-dark { background: linear-gradient(180deg, var(--blue-900), #08234b); }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; text-align: left; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.section-title { font-size: 26px; font-weight: 700; color: var(--blue-800); letter-spacing: 1px; }
.section-title::after { content: ""; display: block; width: 44px; height: 3px; background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); margin: 10px auto 0; border-radius: 2px; }
.section-head-row .section-title::after { margin-left: 0; }
.section-sub { margin-top: 12px; font-size: 14px; color: var(--ink-500); }
.section-title-light { color: #fff; }
.section-sub-light { color: #9db8dc; }

/* ==========================================================================
   专业领域
   ========================================================================== */
.field-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.field-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 26px 22px; text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.field-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--blue-500); }
.field-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  margin-bottom: 14px;
}
.field-icon svg { width: 26px; height: 26px; }
.fi-marriage   { background: #fce8f0; color: #c2416e; }
.fi-labor      { background: #e2f5ee; color: #0e7d5c; }
.fi-criminal   { background: #eceafd; color: #4f46c2; }
.fi-housing    { background: #fdeee2; color: #c2611f; }
.fi-demolition { background: #faf1dd; color: #a3721a; }
.fi-traffic    { background: #f9e6ec; color: #8e2f4d; }
.fi-debt       { background: #e3eefb; color: #14549f; }
.fi-contract   { background: #e0f3ef; color: #0c6b52; }
.field-name { font-size: 17px; color: var(--ink-900); margin-bottom: 6px; }
.field-desc { font-size: 12px; color: var(--ink-500); }

/* ==========================================================================
   律师推荐
   ========================================================================== */
.tabs { display: flex; gap: 10px; }
.tab {
  padding: 8px 22px; border-radius: 20px; border: 1px solid var(--border);
  background: #fff; color: var(--ink-500); font-size: 13px; cursor: pointer;
  transition: all .2s;
}
.tab:hover { border-color: var(--blue-500); color: var(--blue-600); }
.tab.is-active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; font-weight: 600; }

.lawyer-panel { display: none; }
.lawyer-panel.is-visible { display: block; animation: qaIn .35s ease; }

.lawyer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lawyer-card {
  background: #fff; border-radius: var(--radius-md); padding: 22px;
  border-top: 3px solid var(--blue-600);
  transition: transform .25s ease, box-shadow .25s ease;
}
.lawyer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.lawyer-avatar {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--blue-100), #d3e4f9); color: var(--blue-700);
  font-size: 26px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  border: 2px solid #fff; box-shadow: 0 2px 8px rgba(10,44,94,.15);
}
.lawyer-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.lawyer-info { min-width: 0; }
.lawyer-name { font-size: 16px; color: var(--ink-900); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; line-height: 1.5; }
.lawyer-badge {
  font-size: 11px; font-weight: 600; color: #fff;
  background: var(--blue-500); border-radius: 3px; padding: 1px 7px;
}
.lawyer-badge-gold { background: linear-gradient(135deg, #e3b34c, var(--gold-500)); }
.lawyer-verify {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; color: var(--blue-700);
  background: var(--blue-50); border: 1px solid var(--blue-100);
  border-radius: 3px; padding: 1px 6px; font-weight: 500;
}
.lawyer-verify svg { width: 11px; height: 11px; }
.lawyer-meta { font-size: 12px; color: var(--ink-500); margin: 6px 0 10px; }
.lawyer-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.lawyer-tags span {
  font-size: 12px; color: var(--blue-700); background: var(--blue-50);
  border: 1px solid var(--blue-100); border-radius: 3px; padding: 2px 9px;
}
.lawyer-stat { font-size: 12px; color: var(--ink-500); margin-bottom: 14px; }
.lawyer-stat strong { color: var(--blue-700); }
.lawyer-actions { display: flex; gap: 8px; }
.lawyer-actions .btn { flex: 1; }

.district-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.district-chip {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px 12px; text-align: center; transition: all .2s;
}
.district-chip:hover { border-color: var(--blue-600); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.district-chip strong { display: block; font-size: 15px; color: var(--blue-800); margin-bottom: 4px; }
.district-chip span { font-size: 12px; color: var(--ink-500); }
.district-chip-more { border-style: dashed; background: var(--blue-50); }

/* ==========================================================================
   咨询表单 + 信息流
   ========================================================================== */
.home-columns { display: flex; gap: 32px; align-items: flex-start; }

.ask-box {
  flex: 0 0 400px; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 24px 26px 22px;
  border-top: 4px solid var(--gold-500);
  position: sticky; top: 70px;
}
.ask-title { font-size: 20px; color: var(--ink-900); }
.ask-sub { font-size: 13px; color: var(--ink-500); margin: 6px 0 14px; }

/* 3 步流程（新增：转化漏斗可视化） */
.ask-steps {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--blue-50); border-radius: var(--radius-sm);
  padding: 10px 6px; margin-bottom: 18px;
}
.ask-step { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-700); font-weight: 500; }
.ask-step-num {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-600); color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ask-step-sep { flex: 0 0 12px; height: 1px; background: var(--blue-100); margin: 0 -2px; }

.ask-real-form { /* 包一层便于结构扩展 */ }
.ask-field { margin-bottom: 14px; }
.ask-field label { display: block; font-size: 13px; color: var(--ink-700); margin-bottom: 6px; font-weight: 600; }
.ask-field label em { font-style: normal; font-weight: 400; color: var(--ink-300); font-size: 12px; }
.ask-input {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 12px; font-size: 13px; outline: none; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.ask-input:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(26, 95, 196, .12); }
.ask-textarea { resize: vertical; min-height: 90px; }
select.ask-input {
  appearance: none; -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='%2368758a' d='M6 7 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.ask-tip { margin-top: 10px; font-size: 12px; color: var(--ink-300); text-align: center; }

.home-feeds { flex: 1; min-width: 0; }
.feed-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 6px; }
.feed-tab {
  padding: 10px 26px; font-size: 15px; color: var(--ink-500);
  background: none; border: none; cursor: pointer; position: relative;
}
.feed-tab:hover { color: var(--blue-600); }
.feed-tab.is-active { color: var(--blue-700); font-weight: 700; }
.feed-tab.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  background: var(--blue-600); border-radius: 2px;
}
.feed-list { display: none; }
.feed-list.is-visible { display: block; animation: qaIn .35s ease; }
.feed-list li { border-bottom: 1px dashed var(--border); }
.feed-list li a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 4px; font-size: 14px; color: var(--ink-700);
  transition: color .2s, background .2s;
}
.feed-list li a:hover { color: var(--blue-600); background: var(--blue-50); }
.feed-cat {
  flex-shrink: 0; min-width: 44px; text-align: center;
  font-size: 12px; color: var(--blue-700); background: var(--blue-100);
  border-radius: 3px; padding: 2px 6px;
}
.feed-cat-new { background: var(--gold-100); color: var(--gold-600); font-weight: 600; }
.feed-list li a i { flex-shrink: 0; margin-left: auto; font-style: normal; font-size: 12px; color: var(--ink-300); }
.feed-list li:last-child a { color: var(--blue-600); font-weight: 600; justify-content: center; }
.feed-list li:last-child .feed-cat.more { background: none; width: auto; min-width: 0; }
.feed-list li:last-child a i { display: none; }

/* ==========================================================================
   实用工具（深色区）
   ========================================================================== */
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tool-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-md); padding: 28px 24px;
  transition: all .25s ease;
}
.tool-card:hover { background: rgba(255,255,255,.12); transform: translateY(-5px); border-color: rgba(240,199,94,.45); }
.tool-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, #e3b34c, var(--gold-600)); color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 4px 10px rgba(176, 125, 26, .35);
}
.tool-icon svg { width: 24px; height: 24px; }
.tool-name { font-size: 16px; color: #fff; margin-bottom: 8px; }
.tool-desc { font-size: 12px; color: #9db8dc; line-height: 1.7; }

/* ==========================================================================
   信任背书
   ========================================================================== */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-item {
  padding: 26px 24px; background: var(--blue-50); border-radius: var(--radius-md);
  border-left: 3px solid var(--blue-600);
}
.trust-item h3 { font-size: 15px; color: var(--blue-800); margin-bottom: 8px; }
.trust-item h3::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--gold-500); border-radius: 50%; margin-right: 8px; vertical-align: 2px; }
.trust-item p { font-size: 12px; color: var(--ink-500); }

/* ==========================================================================
   页脚
   ========================================================================== */
.footer { background: var(--blue-900); color: #9db8dc; padding: 48px 0 0; border-top: 3px solid var(--gold-500); }
.footer-cols { display: flex; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-col-brand { flex: 1.4; }
.footer-col { flex: 1; }
.footer-logo { font-size: 22px; font-weight: 700; color: #fff; }
.footer-logo .logo-num { color: var(--gold-300); font-size: 22px; font-weight: 700; display: inline-block; line-height: inherit; }
.footer-slogan { margin: 10px 0 16px; font-size: 13px; }
.footer-phone { display: block; font-size: 15px; color: var(--gold-300); font-weight: 600; text-decoration: none; }
.footer-phone:hover { color: var(--gold-200); }
.footer-time { font-size: 12px; margin-top: 4px; }
.footer-col h4 { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #fff; margin-bottom: 14px; }
.footer-col h4::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--gold-500); }
.footer-col a { display: block; font-size: 13px; color: #9db8dc; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-copy { padding: 18px 0 22px; text-align: center; font-size: 12px; line-height: 1.8; color: #6c86ab; }
.footer-copy p { padding: 2px 0; }

/* ==========================================================================
   返回顶部（修复：flex 居中）
   ========================================================================== */
.backtop {
  position: fixed; right: 28px; bottom: 90px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue-600); color: #fff; border: none;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .3s ease; box-shadow: var(--shadow-md);
}
.backtop.is-visible { opacity: 1; visibility: visible; transform: none; }
.backtop:hover { background: var(--blue-800); }
.backtop svg { width: 20px; height: 20px; display: block; }

/* ==========================================================================
   移动端悬浮拨号按钮（仅 ≤900px 显示，金色脉冲）
   ========================================================================== */
.float-call {
  display: none;
  position: fixed; right: 16px; bottom: 24px; z-index: 95;
  align-items: center; gap: 6px;
  padding: 11px 18px; border-radius: 30px;
  background: linear-gradient(135deg, #e3b34c, var(--gold-600));
  color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 6px 20px rgba(176, 125, 26, .45);
  animation: callPulse 2.4s infinite;
}
.float-call svg { width: 18px; height: 18px; }
@keyframes callPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(176, 125, 26, .45), 0 0 0 0 rgba(240, 199, 94, .55); }
  50%      { box-shadow: 0 6px 20px rgba(176, 125, 26, .45), 0 0 0 14px rgba(240, 199, 94, 0); }
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1200px) {
  .hero-inner { flex-direction: column; }
  .home-columns { flex-direction: column; }
  .ask-box { flex: none; width: 100%; position: static; }
  .district-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  /* 移动端显示拨号按钮，返回顶部上移避开 */
  .float-call { display: inline-flex; }
  .backtop { bottom: 86px; }

  .header-inner { flex-wrap: wrap; gap: 16px; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .header-phone { display: none; }
  .hero-title { font-size: 28px; }
  .field-grid, .lawyer-grid, .tool-grid, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .district-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .footer-col-brand { grid-column: 1 / -1; }
  /* 数据条 2×2：每行两项，行间用上边线分隔 */
  .hero-stats-inner { display: grid; grid-template-columns: repeat(2, 1fr); row-gap: 0; }
  .stat { border-right: none; min-width: 0; padding: 16px 6px; }
  .stat:nth-child(n+3) { border-top: 1px solid #eef2f8; }
  .stat:nth-child(even) { border-left: 1px solid #eef2f8; }

  .topbar-links { margin-left: auto; }

  /* 移动端导航：自动换行自适应（按内容宽度排布，放不下自动换行，全部栏目可见） */
  .nav-inner { display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; }
  .nav-item { width: auto; flex-shrink: 0; }
  .nav-item > a,
  a.nav-item { display: block; padding: 0 16px; }
  .nav-drop { position: static; display: none; box-shadow: none; min-width: 0; padding: 8px 22px 14px; }
  .nav-item-hasdrop.is-open .nav-drop { display: flex; flex-direction: column; gap: 0; }
}

@media (max-width: 560px) {
  /* 移动端精简：所有多列区统一为 2 列紧凑版 */
  .topbar-welcome { display: none; }
  .topbar-inner { min-height: 30px; padding: 6px 0 4px; }
  .topbar-links { margin-left: auto; padding-right: 8px; }

  /* 导航条更紧凑，自动换行自适应 */
  .nav-inner { row-gap: 0; }
  .nav-item > a, a.nav-item { padding: 0 13px; height: 42px; line-height: 42px; font-size: 14px; }
  .nav-drop { padding: 6px 18px 12px; }
  .nav-drop-group a { font-size: 12px; }

  .section { padding: 28px 0; }
  .hero { padding: 32px 0 0; }
  .hero-inner { padding-bottom: 28px; gap: 24px; }
  .hero-title { font-size: 24px; }
  .hero-desc { margin: 12px 0 20px; font-size: 14px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { padding: 11px 22px; font-size: 14px; }

  .field-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .field-card { padding: 16px 8px; }
  .field-icon { width: 44px; height: 44px; margin-bottom: 8px; }
  .field-icon svg { width: 20px; height: 20px; }
  .field-name { font-size: 14px; }
  .field-desc { font-size: 11px; line-height: 1.4; }

  .lawyer-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .lawyer-card { padding: 14px 12px; border-top-width: 2px; }
  .lawyer-avatar { width: 52px; height: 52px; font-size: 20px; margin-bottom: 10px; }
  .lawyer-name { font-size: 14px; gap: 4px; }
  .lawyer-badge, .lawyer-verify { font-size: 10px; padding: 1px 5px; }
  .lawyer-meta { font-size: 11px; }
  .lawyer-tags span { font-size: 11px; padding: 1px 6px; }
  .lawyer-stat { font-size: 11px; margin-bottom: 10px; }
  .lawyer-actions .btn { padding: 5px 8px; font-size: 12px; }

  .tool-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tool-card { padding: 18px 14px; }
  .tool-icon { width: 42px; height: 42px; margin-bottom: 10px; }
  .tool-icon svg { width: 20px; height: 20px; }
  .tool-name { font-size: 14px; margin-bottom: 6px; }
  .tool-desc { font-size: 11px; line-height: 1.5; }

  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .trust-item { padding: 16px 14px; }
  .trust-item h3 { font-size: 13px; }
  .trust-item p { font-size: 11px; }

  .district-grid { grid-template-columns: repeat(2, 1fr); }
  .home-feeds .feed-list li a { font-size: 13px; padding: 9px 4px; }
  .home-feeds .feed-cat { font-size: 11px; min-width: 36px; padding: 1px 5px; }

  .ask-box { padding: 18px 16px 16px; }
  .ask-title { font-size: 17px; }
  .ask-steps { padding: 8px 4px; }
  .ask-step { font-size: 11px; }

  .stat { min-width: 0; padding: 14px 4px; }
  .stat strong { font-size: 20px; }
  .stat strong span { font-size: 13px; }
  .stat em { font-size: 11px; letter-spacing: 1px; }

  .header-inner { padding: 18px 16px 14px; gap: 12px; }
  .logo-mark { width: 42px; height: 42px; }
  .logo-mark svg { width: 24px; height: 24px; }
  .logo-text strong { font-size: 20px; }
  .logo-text .logo-num { font-size: 20px; }
  .logo-text em { font-size: 11px; letter-spacing: 1px; }
  .search-tab { padding: 6px 12px; font-size: 12px; }
  .search-btn { padding: 0 16px; font-size: 14px; }
  .search-btn svg { width: 14px; height: 14px; }

  .footer-cols { gap: 24px 16px; padding-bottom: 24px; }
  .footer { padding-top: 28px; }
  .footer-logo { font-size: 19px; }
  .footer-logo .logo-num { font-size: 19px; }
  .footer-slogan { font-size: 12px; margin: 8px 0 12px; }
  .footer-time { font-size: 11px; }
  .footer-col h4 { font-size: 13px; margin-bottom: 12px; }
  .footer-col a { font-size: 12px; padding: 6px 0; }
  .footer-copy { font-size: 11px; padding: 14px 0 18px; }

  .float-call span { display: none; }  /* 极小屏仅留图标 */
  .float-call { padding: 12px; }
  .backtop { right: 12px; }
}

/* ==========================================================================
   内页通用样式（列表页 / 详情页 / 工具页 / 专题页 / 入驻 / 登录）
   ========================================================================== */

/* ---------- 面包屑 ---------- */
.crumb { padding: 13px 0; font-size: 13px; color: var(--ink-500); }
.crumb a:hover { color: var(--blue-600); }
.crumb em { font-style: normal; color: var(--ink-300); margin: 0 8px; }
.crumb strong { color: var(--ink-900); font-weight: 600; }

/* ---------- 内页 Banner（缩小版主视觉） ---------- */
.page-banner {
  background: linear-gradient(155deg, #0e4ba3 0%, #0a3074 55%, #071f4d 100%);
  padding: 34px 0 30px; position: relative; overflow: hidden;
}
.page-banner::before {
  content: ""; position: absolute; top: -120px; right: -70px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,199,94,.14) 0%, rgba(240,199,94,0) 65%);
  pointer-events: none;
}
.page-banner-inner { position: relative; z-index: 1; }
.page-banner h1 { font-size: 28px; color: #fff; font-weight: 700; letter-spacing: 1px; }
.page-banner h1 span { color: var(--gold-300); }
.page-banner p { margin-top: 8px; font-size: 14px; color: #cdddf2; letter-spacing: .5px; }
.page-banner .crumb { padding: 0 0 14px; color: #9db8dc; }
.page-banner .crumb a { color: #9db8dc; }
.page-banner .crumb a:hover { color: #fff; }
.page-banner .crumb strong { color: #fff; }

/* ---------- 筛选条 ---------- */
.filter-bar { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 4px 20px; margin-bottom: 20px; }
.filter-row { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.filter-row:last-child { border-bottom: none; }
.filter-label { flex-shrink: 0; width: 62px; font-size: 13px; color: var(--ink-500); font-weight: 600; padding-top: 5px; }
.filter-opts { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.opt { font-size: 13px; color: var(--ink-700); padding: 4px 14px; border-radius: 16px; cursor: pointer; border: 1px solid transparent; background: none; }
.opt:hover { color: var(--blue-600); background: var(--blue-50); }
.opt.is-active { background: var(--blue-600); color: #fff; font-weight: 600; }

/* ---------- 双栏布局 ---------- */
.page-layout { display: flex; gap: 28px; align-items: flex-start; }
.page-main { flex: 1; min-width: 0; }
.page-side { flex: 0 0 300px; position: sticky; top: 70px; }

.side-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 20px; overflow: hidden; }
.side-box-hd { padding: 12px 18px; font-size: 15px; font-weight: 700; color: var(--blue-800); border-bottom: 1px solid var(--border); background: var(--blue-50); display: flex; align-items: center; gap: 8px; }
.side-box-hd::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, var(--gold-500), var(--gold-300)); flex-shrink: 0; }
.side-box-bd { padding: 12px 18px 16px; }
.side-list li { border-bottom: 1px dashed var(--border); }
.side-list li:last-child { border-bottom: none; }
.side-list li a { display: flex; gap: 10px; padding: 9px 0; font-size: 13px; color: var(--ink-700); line-height: 1.6; }
.side-list li a:hover { color: var(--blue-600); }
.side-list li a i { font-style: normal; color: var(--ink-300); font-size: 12px; flex-shrink: 0; margin-left: auto; }

/* 侧栏迷你咨询卡 */
.side-ask { background: linear-gradient(155deg, var(--blue-800), var(--blue-900)); border-radius: var(--radius-md); padding: 22px 20px; color: #fff; }
.side-ask h3 { font-size: 17px; margin-bottom: 6px; }
.side-ask h3::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--gold-300); border-radius: 50%; margin-right: 8px; vertical-align: 2px; }
.side-ask p { font-size: 12px; color: #9db8dc; line-height: 1.8; margin-bottom: 14px; }
.side-ask .btn { width: 100%; }

/* ---------- 问答列表卡片 ---------- */
.qa-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 20px; margin-bottom: 14px; transition: box-shadow .2s, border-color .2s; }
.qa-card:hover { box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.qa-card-q { font-size: 16px; font-weight: 600; color: var(--ink-900); line-height: 1.6; }
.qa-card-q:hover { color: var(--blue-600); }
.qa-card-q .feed-cat { margin-right: 10px; vertical-align: 2px; }
.qa-card-a { font-size: 13px; color: var(--ink-500); line-height: 1.8; margin: 10px 0 0; padding: 10px 14px; background: var(--blue-50); border-radius: var(--radius-sm); }
.qa-card-a strong { color: var(--blue-700); }
.qa-card-meta { display: flex; gap: 16px; font-size: 12px; color: var(--ink-300); margin-top: 10px; flex-wrap: wrap; }

/* ---------- 文章列表卡片 ---------- */
.art-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 22px; margin-bottom: 14px; transition: box-shadow .2s, border-color .2s; }
.art-card:hover { box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.art-card-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.art-card h3 { font-size: 16px; font-weight: 600; line-height: 1.6; }
.art-card h3 a { color: var(--ink-900); }
.art-card h3 a:hover { color: var(--blue-600); }
.art-card p { font-size: 13px; color: var(--ink-500); line-height: 1.8; }
.art-card-meta { display: flex; gap: 16px; font-size: 12px; color: var(--ink-300); margin-top: 10px; flex-wrap: wrap; }
.art-card-meta strong { color: var(--blue-700); font-weight: 600; }

/* ---------- 法规列表行 ---------- */
.law-row { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 10px; transition: box-shadow .2s, border-color .2s; }
.law-row:hover { border-color: var(--blue-100); box-shadow: var(--shadow-sm); }
.law-row h3 { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; }
.law-row h3 a { color: var(--ink-900); }
.law-row h3 a:hover { color: var(--blue-600); }
.law-meta { font-size: 12px; color: var(--ink-300); flex-shrink: 0; }
.law-level { flex-shrink: 0; font-size: 12px; border-radius: 3px; padding: 2px 8px; background: var(--blue-100); color: var(--blue-700); }
.law-level-loc { background: var(--gold-100); color: var(--gold-600); font-weight: 600; }
.law-level-new { background: #e2f5ee; color: #0e7d5c; font-weight: 600; }

/* ---------- 分页 ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 26px 0 6px; flex-wrap: wrap; }
.pg { min-width: 36px; height: 36px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--border); background: #fff; font-size: 13px; color: var(--ink-700); }
.pg:hover { border-color: var(--blue-600); color: var(--blue-600); }
.pg.is-active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; font-weight: 600; cursor: default; }
.pg-disabled { color: var(--ink-300); cursor: default; }
.pg-disabled:hover { border-color: var(--border); color: var(--ink-300); }

/* ---------- 文章正文 ---------- */
.article { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 30px 36px 26px; }
.article-hd { border-bottom: 1px solid var(--border); padding-bottom: 18px; margin-bottom: 22px; }
.article-hd h1 { font-size: 24px; line-height: 1.5; color: var(--ink-900); }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: 12px; color: var(--ink-500); }
.article-meta strong { color: var(--blue-700); }
.article-bd { font-size: 15px; line-height: 2; color: var(--ink-700); }
.article-bd h2 { font-size: 19px; color: var(--blue-800); margin: 30px 0 14px; padding-left: 12px; border-left: 4px solid var(--blue-600); line-height: 1.5; }
.article-bd h3 { font-size: 16px; color: var(--ink-900); margin: 22px 0 10px; }
.article-bd p { margin-bottom: 14px; }
.article-bd ul { margin: 0 0 16px; }
.article-bd ul li { padding-left: 18px; position: relative; margin-bottom: 8px; }
.article-bd ul li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }
.article-bd table { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: 13px; }
.article-bd th { background: var(--blue-50); color: var(--blue-800); font-weight: 600; }
.article-bd th, .article-bd td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.article-bd tr:nth-child(even) td { background: #fafbfd; }
.article-bd blockquote { margin: 18px 0; padding: 14px 18px; background: var(--gold-100); border-left: 4px solid var(--gold-500); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 13px; color: #6b5a26; line-height: 1.9; }
.article-note { margin-top: 26px; padding: 12px 16px; background: var(--bg-gray); border-radius: var(--radius-sm); font-size: 12px; color: var(--ink-500); line-height: 1.8; }

/* ---------- 律师详情 ---------- */
.profile { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: flex; gap: 28px; margin-bottom: 24px; }
.profile-avatar { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; border: 3px solid #fff; box-shadow: var(--shadow-md); flex-shrink: 0; background: linear-gradient(135deg, var(--blue-100), #d3e4f9); display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 700; color: var(--blue-700); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.profile-info { flex: 1; min-width: 0; }
.profile-name { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; color: var(--ink-900); flex-wrap: wrap; }
.profile-meta { margin: 10px 0 0; font-size: 13px; color: var(--ink-500); display: flex; gap: 18px; flex-wrap: wrap; }
.profile-stats { display: flex; gap: 34px; margin: 14px 0 18px; padding: 12px 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
.profile-stat strong { display: block; font-size: 20px; color: var(--blue-700); font-family: Georgia, serif; }
.profile-stat em { font-style: normal; font-size: 12px; color: var(--ink-500); }
.profile-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 问答详情：答案卡 ---------- */
.answer { border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 16px; overflow: hidden; background: #fff; }
.answer-hd { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: var(--blue-50); border-bottom: 1px solid var(--border); }
.answer-avatar { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg, var(--blue-100), #d3e4f9); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: var(--blue-700); }
.answer-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.answer-name { font-size: 14px; font-weight: 600; color: var(--ink-900); }
.answer-name:hover { color: var(--blue-600); }
.answer-meta { font-size: 12px; color: var(--ink-300); }
.answer-best { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--gold-600); background: var(--gold-100); border: 1px solid var(--gold-300); border-radius: 3px; padding: 2px 10px; flex-shrink: 0; }
.answer-bd { padding: 16px 18px; font-size: 14px; line-height: 2; color: var(--ink-700); }

/* 问题正文块 */
.question-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px 26px; margin-bottom: 20px; }
.question-box h1 { font-size: 21px; line-height: 1.6; color: var(--ink-900); margin-bottom: 12px; }
.question-box .article-meta { margin-top: 0; }
.question-box .question-bd { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); font-size: 14px; line-height: 2; color: var(--ink-700); }

/* 追问块 */
.followup { border-left: 3px solid var(--blue-100); padding: 4px 0 4px 16px; margin: 14px 0; }
.followup p { font-size: 13px; color: var(--ink-500); line-height: 1.9; }
.followup strong { color: var(--blue-700); }

/* ---------- 法规条文 ---------- */
.law-article li { padding: 14px 0; border-bottom: 1px dashed var(--border); }
.law-article li:last-child { border-bottom: none; }
.law-no { font-weight: 700; color: var(--blue-800); margin-right: 10px; }
.law-article p { font-size: 14px; line-height: 2; color: var(--ink-700); }
.law-toc { background: var(--blue-50); border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 20px; }
.law-toc h3 { font-size: 14px; color: var(--blue-800); margin-bottom: 10px; }
.law-toc ol { list-style: none; columns: 2; column-gap: 30px; }
.law-toc li { font-size: 13px; padding: 3px 0; }
.law-toc a { color: var(--ink-700); }
.law-toc a:hover { color: var(--blue-600); }

/* ---------- 工具页 ---------- */
.tool-section { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 32px; margin-bottom: 28px; scroll-margin-top: 70px; }
.tool-section-title { display: flex; align-items: center; gap: 12px; font-size: 20px; color: var(--blue-800); margin-bottom: 6px; }
.tool-section-title::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: linear-gradient(180deg, var(--blue-600), var(--blue-800)); flex-shrink: 0; }
.tool-sub { font-size: 13px; color: var(--ink-500); margin-bottom: 20px; line-height: 1.8; }
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 18px; margin-bottom: 18px; }
.calc-field label { display: block; font-size: 13px; color: var(--ink-700); margin-bottom: 6px; font-weight: 600; }
.calc-field label em { font-style: normal; font-weight: 400; color: var(--ink-300); font-size: 12px; }
.calc-result { padding: 20px 24px; background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); border-radius: var(--radius-md); color: #fff; display: none; }
.calc-result.is-visible { display: block; animation: qaIn .35s ease; }
.calc-result-amount { font-size: 30px; font-weight: 800; font-family: Georgia, serif; color: var(--gold-300); line-height: 1.4; }
.calc-result-amount small { font-size: 14px; color: #cdddf2; font-weight: 400; }
.calc-breakdown { margin-top: 12px; }
.calc-breakdown li { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,.15); font-size: 13px; color: #cdddf2; }
.calc-breakdown li:last-child { border-bottom: none; }
.calc-breakdown li strong { color: #fff; font-family: Georgia, serif; }
.calc-result-note { font-size: 12px; color: #9db8dc; margin-top: 12px; line-height: 1.8; }
.calc-warn { color: var(--gold-300); }
.doc-row { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px dashed var(--border); }
.doc-row:last-child { border-bottom: none; }
.doc-icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--blue-50); color: var(--blue-700); display: flex; align-items: center; justify-content: center; }
.doc-icon svg { width: 18px; height: 18px; }
.doc-row h4 { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; }
.doc-row h4 span { display: block; font-size: 12px; color: var(--ink-300); font-weight: 400; margin-top: 2px; }

/* ---------- 专题 ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.topic-card { position: relative; background: linear-gradient(150deg, #0e4ba3, #0a3074 70%); border-radius: var(--radius-md); padding: 26px 24px; color: #fff; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.topic-card::after { content: ""; position: absolute; top: -70px; right: -50px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(240,199,94,.18) 0%, rgba(240,199,94,0) 65%); pointer-events: none; }
.topic-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.topic-card h3 { font-size: 18px; position: relative; z-index: 1; }
.topic-card p { font-size: 12px; color: #9db8dc; margin: 10px 0 16px; line-height: 1.8; position: relative; z-index: 1; }
.topic-card span { font-size: 12px; color: var(--gold-300); position: relative; z-index: 1; }
.topic-card .topic-arrow { position: absolute; right: 18px; top: 22px; font-size: 18px; color: rgba(255,255,255,.4); }

/* 时间线（专题流程） */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--blue-100); }
.timeline li { position: relative; padding: 0 0 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--blue-600); }
.timeline strong { display: block; font-size: 15px; color: var(--ink-900); margin-bottom: 4px; }
.timeline span { font-size: 13px; color: var(--ink-500); line-height: 1.8; }

/* ---------- FAQ 手风琴 ---------- */
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 18px; font-size: 14px; font-weight: 600; color: var(--ink-900); cursor: pointer; }
.faq-q::after { content: "+"; color: var(--blue-600); font-size: 18px; font-weight: 400; flex-shrink: 0; }
.faq-item.is-open .faq-q::after { content: "–"; }
.faq-a { display: none; padding: 0 18px 16px; font-size: 13px; color: var(--ink-500); line-height: 1.9; }
.faq-item.is-open .faq-a { display: block; }

/* ---------- 入驻页 ---------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px 22px; border-top: 3px solid var(--gold-500); }
.value-card h3 { font-size: 16px; color: var(--blue-800); margin-bottom: 8px; }
.value-card p { font-size: 12px; color: var(--ink-500); line-height: 1.8; }
.value-card strong { color: var(--blue-700); font-family: Georgia, serif; font-size: 22px; display: block; margin-bottom: 6px; }
.step-flow { display: flex; gap: 0; align-items: stretch; margin-bottom: 8px; }
.step-flow-item { flex: 1; text-align: center; padding: 22px 16px; background: #fff; border: 1px solid var(--border); position: relative; }
.step-flow-item:not(:last-child)::after { content: ""; position: absolute; right: -6px; top: 50%; width: 10px; height: 10px; border-top: 2px solid var(--blue-100); border-right: 2px solid var(--blue-100); transform: translateY(-50%) rotate(45deg); z-index: 1; }
.step-flow-item strong { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin: 0 auto 10px; border-radius: 50%; background: var(--blue-600); color: #fff; font-size: 15px; }
.step-flow-item h4 { font-size: 15px; color: var(--ink-900); margin-bottom: 6px; }
.step-flow-item p { font-size: 12px; color: var(--ink-500); line-height: 1.7; }
.req-list li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 13px; color: var(--ink-700); line-height: 1.7; }
.req-list li:last-child { border-bottom: none; }
.req-list li::before { content: "✓"; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; background: #e2f5ee; color: #0e7d5c; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 3px; }

/* ---------- 登录/注册页 ---------- */
.login-wrap { background: var(--bg-gray); padding: 56px 16px 64px; }
.login-card { width: 430px; max-width: 100%; margin: 0 auto; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 36px 36px 28px; border-top: 4px solid var(--blue-600); }
.login-logo { text-align: center; margin-bottom: 22px; }
.login-logo strong { display: block; font-size: 22px; color: var(--blue-800); }
.login-logo p { font-size: 12px; color: var(--ink-500); margin-top: 4px; }
.login-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.login-tab { flex: 1; text-align: center; padding: 10px; font-size: 16px; color: var(--ink-500); background: none; border: none; cursor: pointer; position: relative; }
.login-tab:hover { color: var(--blue-600); }
.login-tab.is-active { color: var(--blue-700); font-weight: 700; }
.login-tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--blue-600); border-radius: 2px; }
.login-panel { display: none; }
.login-panel.is-visible { display: block; animation: qaIn .3s ease; }
.login-extra { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 18px; font-size: 13px; }
.login-extra a { color: var(--blue-600); }
.login-extra a:hover { text-decoration: underline; }
.login-alt { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--border); text-align: center; font-size: 13px; color: var(--ink-500); }
.login-alt a { color: var(--gold-600); font-weight: 600; }

/* ---------- 内页响应式 ---------- */
@media (max-width: 1200px) {
  .page-layout { flex-direction: column; }
  .page-side { flex: none; width: 100%; position: static; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .step-flow { flex-wrap: wrap; gap: 12px; }
  .step-flow-item { flex: 1 0 45%; }
}
@media (max-width: 900px) {
  .page-banner h1 { font-size: 22px; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-grid { grid-template-columns: repeat(2, 1fr); }
  .law-toc ol { columns: 1; }
}
@media (max-width: 560px) {
  .article { padding: 18px 16px; }
  .article-hd h1 { font-size: 19px; }
  .profile { padding: 18px; gap: 16px; flex-direction: column; align-items: center; text-align: center; }
  .profile-name { justify-content: center; }
  .profile-meta { justify-content: center; }
  .profile-stats { justify-content: space-around; gap: 12px; }
  .profile-actions { justify-content: center; }
  .profile-actions .btn { flex: 1; }
  .calc-grid { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: 1fr; }
  .qa-card, .art-card { padding: 14px 16px; }
  .tool-section { padding: 18px 16px; }
  .calc-result-amount { font-size: 24px; }
  .doc-row h4 span { display: none; }
  .value-grid { grid-template-columns: 1fr; }
  .step-flow-item { flex: 1 0 100%; }
  .step-flow-item:not(:last-child)::after { display: none; }
  .login-card { padding: 26px 20px 22px; }
  .law-row { flex-wrap: wrap; }
  .law-meta { width: 100%; padding-left: 58px; margin-top: 4px; }
}

/* ==========================================================================
   内页 v2 命名体系补丁（qa-list/qa-detail/knowledge/law/tools/topics/join/login）
   与上方旧命名并存；重名类（.answer-best 等）以本区定义为准（特异性更高或后定义覆盖）
   ========================================================================== */

/* ---------- 问答列表卡（v2） ---------- */
.qa-card-list { display: flex; flex-direction: column; gap: 14px; }
.qa-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 20px; transition: box-shadow .2s, border-color .2s; }
.qa-card:hover { box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.qa-card-top { display: flex; align-items: center; gap: 10px; }
.qa-card-title { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; line-height: 1.6; margin: 0; }
.qa-card-title a { color: var(--ink-900); }
.qa-card-title a:hover { color: var(--blue-600); }
.qa-card-desc { font-size: 13px; color: var(--ink-500); line-height: 1.8; margin: 10px 0 0; }
.qa-card-answer { margin-top: 12px; padding: 12px 14px; background: var(--blue-50); border-radius: var(--radius-sm); }
.qa-answer-label { display: inline-block; font-size: 12px; font-weight: 600; color: var(--blue-700); margin-bottom: 6px; }
.qa-card-answer p { font-size: 13px; color: var(--ink-600); line-height: 1.8; margin: 0; }
.qa-card-foot { display: flex; gap: 18px; margin-top: 12px; font-size: 12px; color: var(--ink-300); flex-wrap: wrap; }
.qa-card-foot .qa-time { margin-left: auto; }

/* ---------- 分页（v2 命名 .pager / .pg.is-current） ---------- */
.pager { display: flex; justify-content: center; gap: 8px; padding: 26px 0 6px; flex-wrap: wrap; }
.pg { min-width: 36px; height: 36px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--border); background: #fff; font-size: 13px; color: var(--ink-700); }
.pg:hover { border-color: var(--blue-600); color: var(--blue-600); }
.pg.is-current, .pg.is-active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; font-weight: 600; cursor: default; }
.pg.is-disabled { color: var(--ink-300); cursor: default; }
.pg.is-disabled:hover { border-color: var(--border); color: var(--ink-300); }

/* ---------- 侧栏律师卡（v2） ---------- */
.side-list.side-lawyer li a { align-items: flex-start; }
.side-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: center 38%; flex-shrink: 0; border: 1px solid var(--border); }
.side-avatar-lg { width: 72px; height: 72px; }
.side-lw-name { display: block; font-size: 14px; font-weight: 600; color: var(--ink-900); }
.side-lw-name .lawyer-badge { margin-left: 4px; vertical-align: 1px; }
.side-lw-meta { display: block; font-size: 12px; color: var(--ink-500); margin-top: 3px; }
.side-lawyer-card { text-align: center; padding: 6px 0; }
.side-lawyer-card .side-avatar-lg { display: block; margin: 0 auto 12px; box-shadow: var(--shadow-md); border: 3px solid #fff; }

/* ---------- 问答详情页（v2） ---------- */
.qa-detail-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px 26px; margin-bottom: 18px; }
.qa-detail-title { font-size: 21px; line-height: 1.6; color: var(--ink-900); margin: 12px 0 0; }
.qa-detail-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 12px; font-size: 12px; color: var(--ink-500); }
.qa-detail-desc { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); font-size: 14px; line-height: 2; color: var(--ink-700); }

.answer-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 16px; overflow: hidden; }
.answer-box.answer-best { border: 2px solid var(--gold-300); box-shadow: 0 6px 18px rgba(176, 125, 26, .12); }
.answer-best-tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--gold-700); background: var(--gold-100); border: 1px solid var(--gold-300); border-radius: 3px; padding: 2px 10px; flex-shrink: 0; }
.answer-hd { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: var(--blue-50); border-bottom: 1px solid var(--border); }
.answer-author { font-size: 14px; font-weight: 600; color: var(--ink-900); }
.answer-content { padding: 18px 20px 6px; font-size: 14px; line-height: 2; color: var(--ink-700); }
.answer-content p { margin-bottom: 12px; }
.answer-content strong { color: var(--blue-700); }
.answer-disclaimer { font-size: 12px; color: var(--ink-500); background: var(--bg-gray); border-radius: var(--radius-sm); padding: 10px 12px; }
.answer-foot { display: flex; align-items: center; gap: 10px; padding: 4px 18px 16px; flex-wrap: wrap; }
.answer-time { margin-left: auto; font-size: 12px; color: var(--ink-300); }

.follow-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px 22px; margin: 8px 0 20px; }
.follow-title { font-size: 16px; font-weight: 700; color: var(--blue-800); margin-bottom: 12px; }
.follow-actions { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }

.rel-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px 22px; margin-top: 22px; }
.rel-title { font-size: 16px; font-weight: 700; color: var(--blue-800); margin-bottom: 10px; position: relative; padding-left: 12px; }
.rel-title::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; border-radius: 2px; background: linear-gradient(180deg, var(--gold-500), var(--gold-300)); }
.rel-list li { padding: 7px 0; border-bottom: 1px dashed var(--border); }
.rel-list li:last-child { border-bottom: none; }
.rel-list a { font-size: 14px; color: var(--ink-700); }
.rel-list a:hover { color: var(--blue-600); }

/* ---------- 文章列表卡（v2） ---------- */
.article-list { display: flex; flex-direction: column; gap: 14px; }
.article-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 22px; transition: box-shadow .2s, border-color .2s; }
.article-card:hover { box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.article-card-title { font-size: 16px; font-weight: 600; line-height: 1.6; margin: 10px 0 0; }
.article-card-title a { color: var(--ink-900); }
.article-card-title a:hover { color: var(--blue-600); }
.article-card-desc { font-size: 13px; color: var(--ink-500); line-height: 1.8; margin: 8px 0 0; }
.article-card-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--ink-300); }

/* ---------- 文章详情页（v2） ---------- */
.article-detail { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 30px 36px 26px; }
.article-detail .article-hd { border-bottom: 1px solid var(--border); padding-bottom: 18px; margin-bottom: 22px; }
.article-detail .article-hd h1 { font-size: 24px; line-height: 1.5; color: var(--ink-900); margin: 12px 0 0; }
.article-hd-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; font-size: 12px; color: var(--ink-500); }
.article-author-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: center 38%; border: 1px solid var(--border); }
.article-author { font-size: 13px; font-weight: 600; color: var(--ink-800); }

.article-toc { background: var(--blue-50); border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 24px; }
.article-toc h4 { font-size: 14px; color: var(--blue-800); margin-bottom: 10px; }
.article-toc ol { list-style: none; columns: 2; column-gap: 30px; }
.article-toc li { font-size: 13px; padding: 3px 0; }
.article-toc a { color: var(--ink-700); }
.article-toc a:hover { color: var(--blue-600); }

.article-body { font-size: 15px; line-height: 2; color: var(--ink-700); }
.article-body h2 { font-size: 19px; color: var(--blue-800); margin: 30px 0 14px; padding-left: 12px; border-left: 4px solid var(--blue-600); line-height: 1.5; }
.article-body h3 { font-size: 16px; color: var(--ink-900); margin: 22px 0 10px; }
.article-body p { margin-bottom: 14px; }
.article-body ul.law-list-ul { margin: 0 0 16px; }
.article-body ul.law-list-ul li { padding-left: 18px; position: relative; margin-bottom: 8px; }
.article-body ul.law-list-ul li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }
.article-tip { margin: 22px 0; padding: 14px 18px; background: var(--gold-100); border-left: 4px solid var(--gold-500); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 13px; color: #6b5a26; line-height: 1.9; }
.article-tip strong { color: #8a6d1a; }
.article-end-tip { margin-top: 22px; padding: 12px 16px; background: var(--bg-gray); border-radius: var(--radius-sm); font-size: 12px; color: var(--ink-500); line-height: 1.8; }
.article-ft { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

/* 三线表（法规/专题对照表） */
.law-table-wrap { overflow-x: auto; margin: 16px 0 20px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.law-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
.law-table th { background: var(--blue-50); color: var(--blue-800); font-weight: 600; }
.law-table th, .law-table td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.law-table tr:nth-child(even) td { background: #fafbfd; }

/* ---------- 法规列表（v2） ---------- */
.law-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--blue-600); margin-bottom: 18px; }
.law-tab { padding: 9px 20px; font-size: 14px; color: var(--ink-500); background: var(--bg-gray); border: 1px solid var(--border); border-bottom: none; border-radius: var(--radius-sm) var(--radius-sm) 0 0; cursor: pointer; transition: color .2s; }
.law-tab:hover { color: var(--blue-700); }
.law-tab.is-active { color: var(--blue-700); background: #fff; font-weight: 600; }
.law-list { display: flex; flex-direction: column; gap: 10px; }
.law-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); transition: box-shadow .2s, border-color .2s; }
.law-item:hover { border-color: var(--blue-100); box-shadow: var(--shadow-sm); }
.law-item-bd { padding: 16px 18px; }
.law-item-title { font-size: 16px; font-weight: 600; margin: 0; }
.law-item-title a { color: var(--ink-900); }
.law-item-title a:hover { color: var(--blue-600); }
.law-item-meta { font-size: 12px; color: var(--ink-500); margin-top: 6px; }
.law-item-desc { font-size: 13px; color: var(--ink-500); line-height: 1.8; margin-top: 8px; }

/* ---------- 法规条文详情（v2） ---------- */
.law-detail-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px 28px; }
.law-detail-hd { border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 20px; }
.law-detail-hd h1 { font-size: 24px; color: var(--ink-900); }
.law-detail-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--ink-500); }
.law-chapter-nav { background: var(--blue-50); border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 18px; }
.law-chapter-nav h4 { font-size: 13px; color: var(--blue-800); margin-bottom: 8px; }
.law-chapter-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.law-chapter-links a { font-size: 13px; color: var(--ink-700); }
.law-chapter-links a:hover { color: var(--blue-600); }
.law-article-list { display: flex; flex-direction: column; }
.law-chapter { padding: 18px 0 8px; }
.law-chapter h2 { font-size: 17px; color: var(--blue-800); font-weight: 700; }
.law-article { padding: 14px 0; border-bottom: 1px dashed var(--border); }
.law-article h3 { font-size: 15px; font-weight: 700; color: var(--blue-800); margin-bottom: 8px; }
.law-article p { font-size: 14px; line-height: 2; color: var(--ink-700); }
.law-article-hot { background: linear-gradient(90deg, var(--gold-100), #fff 55%); border-left: 3px solid var(--gold-500); padding: 14px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.law-detail-disclaimer { margin-top: 18px; padding: 12px 16px; background: var(--bg-gray); border-radius: var(--radius-sm); font-size: 12px; color: var(--ink-500); line-height: 1.8; }

/* ---------- 工具页（v2） ---------- */
.tool-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 30px; margin-bottom: 26px; scroll-margin-top: 70px; }
.tool-panel-hd { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.tool-panel-ic { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #fff; flex-shrink: 0; box-shadow: 0 4px 10px rgba(26, 99, 196, .3); }
.tool-panel-ic svg { width: 24px; height: 24px; }
.tool-panel-hd h2 { font-size: 19px; color: var(--blue-800); margin: 0; }
.tool-panel-hd p { font-size: 13px; color: var(--ink-500); margin: 4px 0 0; }
.tool-panel-bd { }
.calc-row { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.calc-row label { font-size: 14px; font-weight: 600; color: var(--ink-700); flex-shrink: 0; }
.calc-input { flex: 1; min-width: 200px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; color: var(--ink-900); background: #fff; }
.calc-input:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(26, 99, 196, .12); }
.calc-note { margin-top: 14px; font-size: 12px; color: var(--ink-500); line-height: 1.8; }
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.doc-card { display: block; background: var(--bg-gray); border: 1px dashed var(--border); border-radius: var(--radius-md); padding: 16px 18px; transition: border-color .2s, box-shadow .2s, background .2s; }
.doc-card:hover { border-color: var(--blue-400); background: #fff; box-shadow: var(--shadow-sm); }
.doc-type { display: inline-block; font-size: 11px; font-weight: 600; color: var(--blue-700); background: var(--blue-100); border-radius: 3px; padding: 1px 8px; margin-bottom: 8px; }
.doc-card h3 { font-size: 15px; font-weight: 600; color: var(--ink-900); }
.doc-card p { font-size: 12px; color: var(--ink-500); margin-top: 4px; line-height: 1.7; }
.tool-help { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(155deg, var(--blue-800), var(--blue-900)); border-radius: var(--radius-lg); padding: 26px 30px; margin-top: 10px; flex-wrap: wrap; }
.tool-help h3 { font-size: 18px; color: #fff; }
.tool-help p { font-size: 13px; color: #9db8dc; margin-top: 6px; line-height: 1.8; }
.tool-help-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 专题（v2） ---------- */
.topic-card-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; position: relative; z-index: 1; }
.topic-card-ic { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: var(--radius-md); background: rgba(255,255,255,.12); color: var(--gold-300); }
.topic-card-ic svg { width: 22px; height: 22px; }
.topic-card-hot { font-size: 11px; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); border-radius: 3px; padding: 2px 8px; }
.topic-card h2 { font-size: 18px; position: relative; z-index: 1; margin: 0; }
.topic-card h2 a { color: #fff; }
.topic-card h2 a:hover { color: var(--gold-300); }
.topic-card p { font-size: 12px; color: #9db8dc; margin: 10px 0 16px; line-height: 1.8; position: relative; z-index: 1; }
.topic-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--gold-300); position: relative; z-index: 1; }
.topic-card-more { color: var(--gold-300); font-weight: 600; }
.topic-card-more:hover { color: #fff; }

/* 专题流程时间线（v2） */
.flow-timeline { position: relative; padding-left: 26px; margin: 8px 0 20px; }
.flow-timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--blue-100); }
.flow-step { position: relative; padding: 0 0 22px; display: flex; gap: 14px; align-items: flex-start; }
.flow-step:last-child { padding-bottom: 0; }
.flow-num { position: absolute; left: -26px; top: 2px; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 3px 8px rgba(26, 99, 196, .3); }
.flow-step strong { display: block; font-size: 15px; color: var(--ink-900); margin-bottom: 4px; }
.flow-step p { font-size: 13px; color: var(--ink-500); line-height: 1.8; margin: 0; }

/* ---------- 律师入驻页（v2） ---------- */
.join-hero { background: linear-gradient(155deg, #0e4ba3 0%, #0a3074 55%, #071f4d 100%); position: relative; overflow: hidden; padding: 56px 0 50px; }
.join-hero::before { content: ""; position: absolute; top: -140px; right: -60px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(240,199,94,.16) 0%, rgba(240,199,94,0) 65%); pointer-events: none; }
.join-hero::after { content: ""; position: absolute; bottom: -120px; left: -60px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(26,99,196,.35) 0%, rgba(26,99,196,0) 65%); pointer-events: none; }
.join-hero-inner { position: relative; z-index: 1; text-align: center; }
.join-hero h1 { font-size: 34px; color: #fff; line-height: 1.5; font-weight: 700; letter-spacing: 1px; }
.join-hero h1 span { color: var(--gold-300); }
.join-hero p { margin: 14px 0 24px; font-size: 15px; color: #cdddf2; letter-spacing: .5px; }
.join-hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 40px; flex-wrap: wrap; }
.join-hero-stats strong { display: block; font-size: 26px; color: var(--gold-300); font-family: Georgia, serif; }
.join-hero-stats span { font-size: 12px; color: #9db8dc; }
.join-value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.join-value-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px 22px; text-align: center; border-top: 3px solid var(--gold-500); transition: box-shadow .2s, transform .2s; }
.join-value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.join-value-card .tool-panel-ic { margin: 0 auto 14px; background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); }
.join-value-card h3 { font-size: 16px; color: var(--blue-800); margin-bottom: 8px; }
.join-value-card p { font-size: 12px; color: var(--ink-500); line-height: 1.8; }
.join-flow { display: flex; gap: 0; align-items: stretch; }
.join-flow-step { flex: 1; text-align: center; padding: 22px 16px; background: #fff; border: 1px solid var(--border); position: relative; }
.join-flow-step:not(:last-child)::after { content: ""; position: absolute; right: -6px; top: 50%; width: 10px; height: 10px; border-top: 2px solid var(--blue-100); border-right: 2px solid var(--blue-100); transform: translateY(-50%) rotate(45deg); z-index: 1; }
.join-flow-num { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0 auto 10px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #fff; font-size: 15px; font-weight: 700; box-shadow: 0 3px 8px rgba(26, 99, 196, .3); }
.join-flow-step h3 { font-size: 15px; color: var(--ink-900); margin-bottom: 6px; }
.join-flow-step p { font-size: 12px; color: var(--ink-500); line-height: 1.7; }
.join-form-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 30px; max-width: 720px; }
.join-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 18px; }

/* ---------- 登录/注册页（v2） ---------- */
.auth-card { width: 460px; max-width: 100%; margin: 0 auto; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 34px 38px 26px; border-top: 4px solid var(--blue-600); }
.auth-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 26px; }
.auth-tab { flex: 1; text-align: center; padding: 10px; font-size: 16px; color: var(--ink-500); background: none; border: none; cursor: pointer; position: relative; }
.auth-tab:hover { color: var(--blue-600); }
.auth-tab.is-active { color: var(--blue-700); font-weight: 700; }
.auth-tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--blue-600); border-radius: 2px; }
.auth-panel { display: none; }
.auth-panel.is-visible { display: block; animation: qaIn .3s ease; }
.auth-panel h2 { font-size: 20px; color: var(--ink-900); margin-bottom: 4px; }
.auth-sub { font-size: 13px; color: var(--ink-500); margin-bottom: 20px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 18px; font-size: 13px; }
.auth-link { color: var(--blue-600); }
.auth-link:hover { text-decoration: underline; }
.auth-check { font-size: 13px; color: var(--ink-600); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.auth-check input { accent-color: var(--blue-600); }
.auth-check-block { display: flex; margin: 6px 0 18px; }
.auth-code-row { display: flex; gap: 10px; }
.auth-code-row .ask-input { flex: 1; }
.auth-legal { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--border); text-align: center; font-size: 12px; color: var(--ink-300); line-height: 1.8; }

/* ---------- v2 响应式 ---------- */
@media (max-width: 1200px) {
  .page-layout { flex-direction: column; }
  .page-side { flex: none; width: 100%; position: static; }
  .join-value-grid { grid-template-columns: repeat(2, 1fr); }
  .join-flow { flex-wrap: wrap; gap: 12px; }
  .join-flow-step { flex: 1 0 45%; }
}
@media (max-width: 900px) {
  .qa-detail-title { font-size: 19px; }
  .article-detail { padding: 22px 20px; }
  .article-toc ol { columns: 1; }
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .join-hero h1 { font-size: 26px; }
  .join-hero-stats { gap: 24px; }
  .law-tabs { overflow-x: auto; }
  .law-tab { white-space: nowrap; }
}
@media (max-width: 560px) {
  .qa-card { padding: 14px 16px; }
  .qa-card-title { font-size: 15px; }
  .qa-card-foot .qa-time { margin-left: 0; }
  .article-detail { padding: 18px 16px; }
  .article-detail .article-hd h1 { font-size: 19px; }
  .article-toc ol { columns: 1; }
  .law-table { min-width: 480px; }
  .tool-panel { padding: 18px 16px; }
  .doc-grid { grid-template-columns: 1fr; }
  .tool-help { padding: 20px 18px; }
  .topic-card { padding: 20px 18px; }
  .flow-num { width: 28px; height: 28px; font-size: 12px; left: -24px; }
  .join-hero { padding: 40px 0 36px; }
  .join-hero h1 { font-size: 22px; }
  .join-value-grid { grid-template-columns: 1fr; }
  .join-flow-step { flex: 1 0 100%; }
  .join-flow-step:not(:last-child)::after { display: none; }
  .join-form-box { padding: 18px 16px; }
  .join-form-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 24px 18px 20px; }
  .article-hd-meta { gap: 8px; }
  .answer-content { padding: 14px 16px 4px; }
  .follow-actions .ask-input { max-width: 100% !important; }
}

/* ==========================================================================
   龚静律师重点推荐样式（首页 Hero 推荐条 + 首席律师卡）
   ========================================================================== */

/* Hero 推荐条：头像 + 信息 + CTA */
.hero-lawyer {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 22px; padding: 10px 16px 10px 10px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-md); backdrop-filter: blur(4px);
  transition: background .2s, border-color .2s; max-width: 100%;
}
.hero-lawyer:hover { background: rgba(255,255,255,.16); border-color: var(--gold-300); }
.hero-lawyer-avatar {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: center 30%;
  border: 2px solid var(--gold-300); flex-shrink: 0;
}
.hero-lawyer-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hero-lawyer-info strong { font-size: 15px; color: #fff; letter-spacing: .5px; }
.hero-lawyer-info em { font-style: normal; font-size: 12px; color: var(--gold-300); }
.hero-lawyer-cta { margin-left: 6px; font-size: 13px; font-weight: 600; color: var(--gold-300); white-space: nowrap; }
.hero-lawyer-cta:hover { color: #fff; }

/* 重点推荐律师卡（列表首位强化） */
.lawyer-card-featured {
  border: 2px solid var(--gold-400);
  box-shadow: 0 8px 24px rgba(176, 125, 26, .18);
  position: relative;
}
.lawyer-card-featured::before {
  content: "重点推荐"; position: absolute; top: -11px; left: 18px;
  font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  padding: 2px 10px; border-radius: 10px; box-shadow: 0 3px 8px rgba(176,125,26,.3);
}
.lawyer-card-featured .lawyer-avatar img { border-color: var(--gold-300); }

@media (max-width: 560px) {
  .hero-lawyer { width: 100%; }
  .hero-lawyer-cta { display: none; }
}

/* ==========================================================================
   v4 精致化补丁层 · 静奢权威 Quiet Authority
   （覆盖于 v3 之上：变量已换静奢体系，此处做组件级质感增强；
     内容 / SEO / 链接结构均未改动）
   ========================================================================== */

/* 补充色阶变量（修复 --gold-400 曾引用未定义） */
:root {
  --gold-400: #d3a54b;
  --gold-200: #e8cd8a;
}

/* ---------- 基础质感 ---------- */
body {
  font-family: var(--font-body);
  background: var(--bg-white);
}

/* 极细颗粒层：消除扁平"矢量感"（固定于最上层，纯视觉） */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: .028;
}

/* 标题统一衬线（宋体庄重感），负字距 */
h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, .ask-title, .page-banner h1,
.qa-card-q, .lawyer-name, .article-title, .field-name,
.tool-name, .side-ask h3, .auth-title, .art-title, .stat strong,
.footer-logo, .feed-tab {
  font-family: var(--font-display);
}

/* ---------- 按钮：利落、有层次 ---------- */
.btn {
  border-radius: var(--radius-sm);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold {
  background: linear-gradient(135deg, #e6c069 0%, var(--gold-500) 55%, #b07f28 100%);
  box-shadow: 0 6px 18px rgba(150, 105, 26, .26), inset 0 1px 0 rgba(255,255,255,.35);
  letter-spacing: 1px;
}
.btn-gold:hover { box-shadow: 0 9px 24px rgba(150, 105, 26, .34); }
.btn-blue {
  background: linear-gradient(180deg, var(--blue-600), var(--blue-700));
  box-shadow: 0 6px 16px rgba(18, 58, 110, .28), inset 0 1px 0 rgba(255,255,255,.12);
}
.btn-blue:hover { background: linear-gradient(180deg, var(--blue-500), var(--blue-600)); }
.btn-ghost { background: var(--blue-50); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--blue-500); background: var(--blue-100); }

/* ---------- 顶部欢迎条 / Header ---------- */
.topbar { border-bottom: 1px solid rgba(255,255,255,.08); }
.header { background: var(--bg-white); border-bottom: 1px solid var(--border); }
.logo-text strong { font-family: var(--font-display); letter-spacing: 2px; }
.search-box { box-shadow: var(--shadow-sm); }

/* ---------- 导航：半透明深蓝 + 毛玻璃 ---------- */
.nav {
  background: rgba(10, 31, 61, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 10px 28px rgba(10, 31, 61, .30);
}
.nav-item > a, a.nav-item { border-bottom: 2px solid transparent; }
.nav-item > a:hover, .nav-item-home > a { border-bottom-color: var(--gold-300); }
.nav-drop {
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold-500);
  box-shadow: var(--shadow-lg);
}

/* ---------- Hero：金色+蓝色双光晕 ---------- */
.hero {
  background:
    radial-gradient(1100px 460px at 80% -12%, rgba(221, 183, 94, .16), transparent 60%),
    radial-gradient(900px 440px at 10% 110%, rgba(47, 108, 181, .32), transparent 62%),
    linear-gradient(160deg, #0d3f86 0%, #0a2a5c 52%, #081d3d 100%);
}
.hero::before { width: 560px; height: 560px; }
.hero-title { font-family: var(--font-display); font-weight: 600; letter-spacing: 2px; line-height: 1.42; }
.hero-card { border: 1px solid rgba(255,255,255,.55); box-shadow: 0 20px 48px rgba(4, 18, 40, .38); }
.hero-card-title { background: linear-gradient(180deg, var(--blue-50), #eef4fb); }

/* ---------- 数据条 / 区块标题 ---------- */
.hero-stats { background: var(--bg-white); }
.stat { border-right-color: var(--border); }
.stat strong { font-family: Georgia, "Noto Serif SC", serif; }
.section-title { font-weight: 600; letter-spacing: 3px; }
.section-title::after {
  width: 56px; height: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300), transparent);
}
.section-gray { background: var(--bg-gray); }
.section-dark { background: linear-gradient(180deg, var(--blue-900), #060f22 130%); }

/* ---------- 卡片：纸感 + 精致阴影 + 悬停上浮 ---------- */
.field-card, .lawyer-card, .qa-card, .article-card, .law-item, .art-card, .law-row,
.topic-card, .qa-card-q {
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.field-card:hover, .lawyer-card:hover, .qa-card:hover, .article-card:hover,
.law-item:hover, .art-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-100);
}
.field-icon { box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }

/* 主推领域卡片：金色顶边（静奢强调） */
.field-card-hot { border-top: 2px solid var(--gold-500); }
.field-card-hot:hover { border-color: var(--gold-300); }
/* 继承（新增领域，金棕传承色系） */
.fi-inheritance { background: #f6eeda; color: #96691a; }
.lawyer-card-featured { border-color: var(--gold-400); box-shadow: 0 10px 28px rgba(150, 105, 26, .18); }
.lawyer-card-featured::before { background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); box-shadow: 0 4px 10px rgba(150,105,26,.32); }

/* ---------- 信息流 ---------- */
.feed-list li a { border-radius: var(--radius-sm); }
.feed-list li a:hover { background: var(--blue-50); }
.feed-tab { letter-spacing: 1px; }

/* ---------- 侧栏 / 内页 ---------- */
.side-box { background: var(--bg-white); border-color: var(--border); box-shadow: var(--shadow-sm); }
.side-box-hd { background: linear-gradient(180deg, var(--blue-50), #eef4fb); }
.filter-bar { background: var(--bg-white); }
.qa-card-a {
  background: var(--blue-50);
  border-left: 3px solid var(--gold-400);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.qa-card-q { border: none; box-shadow: none; padding: 0; }
.qa-card-q:hover { transform: none; box-shadow: none; }

/* ---------- 工具区 / 页脚 ---------- */
.tool-icon { box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.footer {
  background: linear-gradient(180deg, var(--blue-900), #060f22 140%);
  border-top: 2px solid var(--gold-500);
}
.footer-col a:hover { color: var(--gold-300); }
.footer-copy { color: #5d7699; }

/* ---------- 表单：聚焦精致化 ---------- */
.ask-input, .search-input, .form-input, .auth-input {
  background: var(--bg-white);
  border-color: var(--border);
  transition: border-color .2s, box-shadow .2s;
}
.ask-input:focus, .search-input:focus, .form-input:focus, .auth-input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(26, 79, 150, .12);
}

/* ---------- 滚动进入视口淡入（渐进增强：无 JS 时完全可见） ---------- */
body.js-anim .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
body.js-anim .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 移动端细节 ---------- */
@media (max-width: 560px) {
  .hero-title { letter-spacing: 1px; line-height: 1.45; }
  .section-title { letter-spacing: 2px; }
  .logo-text strong { letter-spacing: 1px; }
}

/* ---------- 无障碍：减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   律师详情 v2 增强（龚静档案：档案表 / 领域细分 / 案例卡 / 委托流程）
   ========================================================================== */

/* 结构化档案表 */
.arch-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 4px 0 8px; }
.arch-table td { border: 1px solid var(--border); padding: 9px 14px; line-height: 1.7; }
.arch-table td:first-child { width: 104px; background: var(--blue-50); color: var(--blue-800); font-weight: 600; }

/* 擅长领域细分标签组 */
.field-tag-group { margin: 14px 0 2px; }
.field-tag-group strong { display: block; font-size: 13px; color: var(--ink-700); margin-bottom: 6px; }
.field-tag-group .lawyer-tags { margin: 0; }

/* 亲办案例卡 */
.case-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 12px;
  transition: box-shadow .2s, border-color .2s;
}
.case-card:hover { box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.case-card-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.case-card-hd h3 { font-size: 15px; color: var(--ink-900); font-weight: 600; }
.case-card p { font-size: 13px; color: var(--ink-500); line-height: 1.8; margin-top: 8px; }
.case-result {
  display: inline-block; margin-top: 10px; font-size: 12px; color: #0e7d5c;
  background: #e2f5ee; padding: 2px 10px; border-radius: 3px; font-weight: 600;
}

/* 委托服务流程 */
.flow-steps { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.flow-step {
  flex: 1; min-width: 160px; background: var(--blue-50);
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 16px;
}
.flow-step em { display: block; font-style: normal; font-size: 11px; color: var(--gold-600); font-weight: 700; margin-bottom: 6px; letter-spacing: 1px; }
.flow-step strong { display: block; font-size: 14px; color: var(--ink-900); margin-bottom: 4px; }
.flow-step p { font-size: 12px; color: var(--ink-500); line-height: 1.7; }

/* 专业文章卡（详情页 tab 内） */
.art-link-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 2px;
  border-bottom: 1px dashed var(--border); font-size: 14px; color: var(--ink-700);
}
.art-link-card:last-child { border-bottom: none; }
.art-link-card:hover { color: var(--blue-600); }
.art-link-card i { margin-left: auto; font-style: normal; font-size: 12px; color: var(--ink-300); flex-shrink: 0; }

/* 侧栏业务入口 */
.side-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.side-spec a {
  display: block; text-align: center; font-size: 13px; color: var(--blue-700);
  background: var(--blue-50); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 6px; font-weight: 600; transition: border-color .2s, background .2s;
}
.side-spec a:hover { border-color: var(--blue-500); background: var(--blue-100); }

/* ==========================================================================
   法律文书模板库页（docs.html）
   ========================================================================== */
.docs-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }
.docs-nav a {
  font-size: 13px; color: var(--blue-700); background: var(--blue-50);
  border: 1px solid var(--border); padding: 6px 14px; border-radius: 20px;
  transition: border-color .2s, background .2s;
}
.docs-nav a:hover { border-color: var(--blue-500); background: var(--blue-100); }
.doc-section {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 30px; margin-bottom: 22px;
  scroll-margin-top: 96px;
}
.doc-section-hd { border-bottom: 1px dashed var(--border); padding-bottom: 14px; margin-bottom: 16px; }
.doc-section-hd h2 { font-size: 20px; color: var(--ink-900); display: inline-block; vertical-align: middle; margin-left: 8px; }
.doc-section-hd p { font-size: 13px; color: var(--ink-500); margin-top: 8px; line-height: 1.7; }
.doc-body {
  font-size: 14px; color: var(--ink-700); line-height: 2;
  background: var(--bg-gray); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 18px 22px; white-space: pre-line;
}
.doc-tips { margin-top: 14px; }
.doc-tips h3 { font-size: 14px; color: var(--blue-800); margin-bottom: 6px; }
.doc-tips ul { margin: 0 0 10px; }
.doc-tips ul li { font-size: 13px; color: var(--ink-500); line-height: 1.9; padding-left: 16px; position: relative; }
.doc-tips ul li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-500); }
.doc-warn {
  margin-top: 14px; padding: 12px 16px; background: var(--gold-100);
  border-left: 4px solid var(--gold-500); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 12px; color: #6b5a26; line-height: 1.8;
}

/* ==========================================================================
   v5 缺口补丁（线上模板与静态版结构还原配套）
   - 首页：工具图标差异化色 / 头部咨询文字区 / 信息流 Tab 底 / 通用细节
   - 工具页：无右栏整体布局专用
   - 详情页：上一篇/下一篇
   ========================================================================== */

/* 工具图标差异化色（ti-calc/ti-fee/ti-time/ti-doc） */
.ti-calc  { background: linear-gradient(135deg, #e8e2fb, #d5ccf7); color: #5b4cc4; }
.ti-fee   { background: linear-gradient(135deg, #fdeee2, #fbe0cc); color: #c2611f; }
.ti-time  { background: linear-gradient(135deg, #e2f5ee, #cfece0); color: #0e7d5c; }
.ti-doc   { background: linear-gradient(135deg, #e3eefb, #cfe2f7); color: #14549f; }

/* hero 咨询卡头（hero-card-title 已有；补 hero 内 tag 兜底色） */
.hero-qa-tag { background: var(--blue-100); color: var(--blue-700); }
.hero-qa-q a { color: var(--ink-900); }
.hero-qa-q a:hover { color: var(--blue-600); }
.hero-qa-a { font-size: 12px; color: var(--ink-500); margin-top: 3px; }
.hero-qa-a strong { color: var(--blue-700); }

/* 首页信息流 Tab（保证 .feed-tab 在白色背景区正确） */
.home-feeds .feed-tab.is-active { color: var(--blue-700); }

/* 工具页整体无右栏：计算器面板容器 */
.tools-inline { margin-top: 18px; }
.tools-inline .tool-panel { margin-bottom: 18px; }

/* 详情页 上一篇/下一篇 */
.prev-next {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 22px; padding: 16px 0; border-top: 1px dashed var(--border);
}
.pn-item {
  font-size: 13px; color: var(--ink-500); line-height: 1.8;
  max-width: 48%; word-break: break-all;
}
.pn-item a { color: var(--ink-700); }
.pn-item a:hover { color: var(--blue-600); text-decoration: underline; }

/* 搜索热词标签 */
.search-hot-label { color: var(--gold-600); font-weight: 600; }

/* v5 补充：律师列表提示条 */
.lawyer-list-tip a { color: var(--blue-700); font-weight: 600; }
.lawyer-list-tip a:hover { text-decoration: underline; }

/* ==========================================================================
   v6 正文表格移动端适配（知识文章/详情正文中 .law-table 等宽表小屏防溢出）
   ========================================================================== */
.article-body table,
.article-detail table {
  display: block;
  width: 100%;
  min-width: 0 !important; /* 覆盖 .law-table 的 min-width:560，防移动端撑破布局 */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}
.article-body table::-webkit-scrollbar,
.article-detail table::-webkit-scrollbar { height: 6px; }
.article-body table::-webkit-scrollbar-thumb,
.article-detail table::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
@media (max-width: 560px) {
  .article-body table,
  .article-detail table { white-space: normal; font-size: 12px; }
  .article-body table th,
  .article-body table td,
  .article-detail table th,
  .article-detail table td { padding: 6px 8px; word-break: break-word; }
}

/* ==========================================================================
   v7 文书模板库 · 卡片网格 + 手风琴展开（点开展开全文，其余收起）
   - body.docs-js 由 main.js 添加（渐进增强：无 JS 时保持原平铺，内容全可见）
   ========================================================================== */

/* 网格容器（仅文书库页生效：通过 :has 精确匹配含 #docsNav 的 container） */
body.docs-js .docs-grid-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  align-items: start;
}
body.docs-js .docs-grid-wrap > #docsNav {
  grid-column: 1 / -1;
  display: none; /* 卡片即目录，折叠态隐藏胶囊导航避免重复占高 */
}

/* 展开项占整行，折叠项按 2 列排布 */
body.docs-js .docs-grid-wrap > .doc-section.is-open { grid-column: 1 / -1; }
body.docs-js .docs-grid-wrap > .doc-section { margin-bottom: 0; }

/* 折叠卡：只剩头部（标题+分类+适用场景），像一张卡片 */
body.docs-js .docs-grid-wrap > .doc-section:not(.is-open) .doc-body,
body.docs-js .docs-grid-wrap > .doc-section:not(.is-open) .doc-tips { display: none; }
body.docs-js .doc-section:not(.is-open) .doc-section-hd {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* 头部可点击 + 右侧展开/收起胶囊提示 */
body.docs-js .doc-section-hd {
  position: relative;
  padding-right: 128px;
  cursor: pointer;
  border-radius: var(--radius-md);
}
body.docs-js .doc-section:not(.is-open):hover {
  border-color: var(--gold-400);
  box-shadow: var(--shadow-md);
}
body.docs-js .doc-section-hd::after {
  content: "展开查看全文 ▾";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-700);
  background: var(--blue-50);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 5px 13px;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
body.docs-js .doc-section:not(.is-open):hover .doc-section-hd::after {
  background: var(--blue-100);
  border-color: var(--blue-500);
}
body.docs-js .doc-section.is-open .doc-section-hd::after {
  content: "收起 ▴";
  background: var(--gold-100);
  border-color: var(--gold-400);
  color: #6b5a26;
}

/* 展开态过渡柔和 */
body.docs-js .doc-section { transition: box-shadow .2s ease, border-color .2s ease; }
body.docs-js .doc-section.is-open {
  border-color: var(--gold-400);
  box-shadow: var(--shadow-md);
}

/* 移动端 / 窄屏：单列 */
@media (max-width: 720px) {
  body.docs-js .docs-grid-wrap { grid-template-columns: 1fr; }
  body.docs-js .doc-section-hd { padding-right: 108px; }
}

/* 折叠卡场景文字限 2 行（卡片紧凑；展开后全文可见） */
body.docs-js .docs-grid-wrap > .doc-section:not(.is-open) .doc-section-hd p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

/* 折叠卡场景文字限 2 行（卡片紧凑；展开后全文可见） */
body.docs-js .docs-grid-wrap > .doc-section:not(.is-open) .doc-section-hd p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

/* ==========================================================================
   v8 PbootCMS {page:bar} 分页条组件样式
   （系统分页输出结构：span.page-status/page-index/page-pre/page-numbar/
    page-next/page-last + a.page-num[.page-num-current]，此前无样式呈裸链）
   ========================================================================== */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 26px 0 8px;
  flex-wrap: wrap;
}
.pager .page-status {
  margin-right: 8px;
  font-size: 12px;
  color: var(--ink-300);
}
.pager span a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-700);
  border-radius: var(--radius-sm);
  font-size: 13px;
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.pager span a:hover { border-color: var(--blue-600); color: var(--blue-600); }
.pager .page-numbar a.page-num-current,
.pager .page-numbar a.page-num-current:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
  font-weight: 600;
  cursor: default;
}
/* 首页/尾页 等不可点击（javascript:;）时呈禁用态 */
.pager span a[href="javascript:;"] {
  background: var(--bg-gray);
  color: var(--ink-300);
  cursor: default;
}
.pager span a[href="javascript:;"]:hover {
  border-color: var(--border);
  color: var(--ink-300);
}

/* v8 补充：详情页正文区大标题（原 h1 防双 H1 改 div） */
.article-hd .article-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.5;
  margin: 2px 0 10px;
  font-family: var(--font-display);
}
@media (max-width: 560px) {
  .article-hd .article-title { font-size: 20px; }
}

/* v9 补充：侧栏热门列表标题单行省略（防标题+浏览数换行变两行） */
.side-list li a .sl-t,
.rel-list li a .sl-t {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-list li a i { margin-left: 8px; }
.rel-list li a { display: flex; align-items: center; gap: 8px; }

/* ==========================================================================
   v10 首页优选律师 · 左龚静固定大卡 + 右横向滑动律师墙
   ========================================================================== */
.lawyer-split {
  display: grid;
  grid-template-columns: 368px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

/* —— 左：龚静重点推荐大卡 —— */
.ls-lead-card {
  position: relative;
  height: 100%;
  padding: 26px 26px 20px;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(420px 240px at 110% -10%, rgba(221, 183, 94, .20), transparent 60%),
    linear-gradient(160deg, #123c78 0%, #0a2a5c 55%, #081d3d 100%);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ls-lead-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(10, 44, 94, .25); }
.ls-lead-top { display: flex; align-items: center; gap: 14px; }
.ls-lead-avatar {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--gold-300); object-position: center 26%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28); flex-shrink: 0;
}
.ls-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 2px;
  color: #fff; background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  padding: 3px 10px; border-radius: 12px; box-shadow: 0 3px 8px rgba(176, 125, 26, .35);
}
.ls-lead-name { margin: 8px 0 0; font-size: 22px; font-family: var(--font-display); letter-spacing: 1px; }
.ls-lead-name a { color: #fff; }
.ls-lead-name a:hover { color: var(--gold-300); }
.ls-lead-exp { margin-top: 10px; font-size: 13px; color: var(--gold-300); line-height: 1.7; }
.ls-lead-desc {
  margin-top: 8px; font-size: 13px; color: #cdddf2; line-height: 1.9;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ls-lead-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.ls-btn-ghost {
  background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); color: #fff;
}
.ls-btn-ghost:hover { background: rgba(255, 255, 255, .16); border-color: var(--gold-300); color: #fff; }
.ls-lead-contact {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, .18);
  font-size: 12px; color: #9db8dc; letter-spacing: .3px;
}

/* —— 右：滑动律师墙 —— */
.lawyer-split-scroll { position: relative; min-width: 0; }
.ls-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 226px;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 3px 4px 12px;
  scrollbar-width: thin;
}
.ls-scroll::-webkit-scrollbar { height: 6px; }
.ls-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.ls-scroll > :first-child { display: none; } /* 首项龚静与左卡重复，隐藏 */
.ls-card {
  scroll-snap-align: start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px 18px 14px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ls-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.ls-card-av {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--blue-100); background: var(--blue-50); margin-bottom: 10px;
}
.ls-card-av img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.ls-card-av span { font-size: 20px; color: var(--blue-600); font-weight: 700; }
.ls-card-name { font-size: 15px; font-weight: 600; color: var(--ink-900); margin-bottom: 6px; }
.ls-card-name a { color: var(--ink-900); }
.ls-card-name a:hover { color: var(--blue-600); }
.ls-card-meta {
  font-size: 12px; color: var(--ink-500); line-height: 1.7; text-align: left;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 60px;
}
.ls-card-ft { margin-top: 10px; text-align: right; }
.ls-card-more { font-size: 12px; color: var(--blue-600); font-weight: 600; }
.ls-card-more:hover { text-decoration: underline; }

/* 滑动箭头 */
.ls-arrow {
  position: absolute; top: 30%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff; color: var(--blue-700);
  font-size: 22px; line-height: 1; cursor: pointer; z-index: 2;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.ls-arrow:hover { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.ls-arrow-left { left: -14px; }
.ls-arrow-right { right: -14px; }

/* 响应式 */
@media (max-width: 1100px) {
  .lawyer-split { grid-template-columns: 330px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .lawyer-split { grid-template-columns: 1fr; }
  .ls-lead-card { padding: 22px 22px 18px; }
  .lawyer-split-scroll { order: 2; }
  .ls-arrow { display: none; } /* 移动端原生滑动 */
  .ls-scroll { grid-auto-columns: 200px; }
}

/* ==========================================================================
   v11 法律咨询详情 · 百度知道式（用户提问 + 龚静精选解答 + 多律师解答）
   ========================================================================== */
.qa-question {
  background: var(--blue-50);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue-500);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.9;
}
.qa-question p { margin: 0; }
.qa-question strong { color: var(--blue-800); }

.qa-answer {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  margin-bottom: 18px;
  overflow: hidden;
}
.qa-answer-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: var(--bg-gray);
  border-bottom: 1px solid var(--border);
}
.qa-answer-name { font-size: 15px; color: var(--blue-800); }
.qa-answer-tag { font-style: normal; font-size: 12px; color: var(--ink-500); }
.qa-answer-bd { padding: 16px 20px 18px; font-size: 14px; color: var(--ink-700); line-height: 1.95; }
.qa-answer-bd p { margin: 0 0 12px; }
.qa-answer-bd p:last-child { margin-bottom: 0; }
.qa-answer-bd ul { margin: 4px 0 12px; padding-left: 20px; }
.qa-answer-bd li { margin-bottom: 4px; }

/* 精选解答（龚静）强化 */
.qa-best {
  border: 1px solid var(--gold-400);
  box-shadow: 0 6px 18px rgba(176, 125, 26, .12);
}
.qa-best .qa-answer-hd { background: var(--gold-100); border-bottom-color: var(--gold-300); }
.qa-best-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  padding: 3px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(176, 125, 26, .3);
}
.qa-cta {
  margin-top: 6px !important;
  padding: 10px 14px;
  background: var(--blue-50);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--blue-800);
}
.qa-cta strong { color: var(--gold-600); }

/* v11 补充：相关推荐/详情正文长标题与长字母串防移动端撑破 */
.rel-box { max-width: 100%; overflow: hidden; }
.rel-list { width: 100%; }
.rel-list li { overflow: hidden; }
.rel-list li a { width: 100%; min-width: 0; }
.article-body, .article-detail, .qa-question, .qa-answer-bd {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* v11 补充：移动端详情页 page-main 宽度锁定（column+flex-start 下防被内容撑破） */
@media (max-width: 900px) {
  .page-layout { align-items: stretch; }
  .page-main { width: 100%; max-width: 100%; overflow: hidden; }
}

/* ==========================================================================
   v12 首页 hero 问答轨道走马灯（同屏2条，队列左滑/右入，换题清晰可见）
   ========================================================================== */
.hero-qa-viewport {
  display: block;
  overflow: hidden;
  position: relative;
  flex: 1;
  min-height: 216px;
}
.hero-qa-track {
  display: flex;
  height: 100%;
  will-change: transform;
}
.hero-qa-viewport > .hero-qa-track > .hero-qa-item {
  flex: 0 0 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 22px 10px 0;
  margin: 0;
  box-sizing: border-box;
  animation: none;
}
.hero-qa-viewport .hero-qa-item + .hero-qa-item {
  padding-left: 22px;
  border-left: 1px dashed var(--border);
  padding-right: 0;
}
.hero-qa-viewport .hero-qa-tag {
  display: inline-block;
  width: fit-content;
  margin-bottom: 8px;
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 3px;
  background: var(--blue-100);
  color: var(--blue-700);
}
.hero-qa-viewport .hero-qa-q {
  font-size: 15px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-qa-viewport .hero-qa-a { margin-top: 8px; font-size: 12px; color: var(--ink-500); }
@media (max-width: 900px) {
  .hero-qa-viewport { min-height: 190px; }
  .hero-qa-viewport .hero-qa-q { -webkit-line-clamp: 4; font-size: 13px; }
}

/* ==========================================================================
   v13 首页 Hero 龚静推荐卡 v2（内容扩充 + 移动端咨询按钮）
   —— 覆盖旧 .hero-lawyer 行内条；新 DOM：div.hero-lawyer > a.hero-lawyer-in + bar
   ========================================================================== */
.hero-lawyer {
  display: block;
  margin-top: 22px;
  max-width: 100%;
}
.hero-lawyer-in {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px 12px 12px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-md); backdrop-filter: blur(4px);
  transition: background .2s, border-color .2s;
}
.hero-lawyer-in:hover { background: rgba(255, 255, 255, .16); border-color: var(--gold-300); }
.hero-lawyer-avatar {
  width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: center 30%;
  border: 2px solid var(--gold-300); flex-shrink: 0;
}
.hero-lawyer-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hero-lawyer-info strong { font-size: 16px; color: #fff; letter-spacing: .5px; }
.hero-lawyer-desc {
  font-style: normal;
  font-size: 12.5px; color: #e8eef7; line-height: 1.75; letter-spacing: .2px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-lawyer-desc strong { color: var(--gold-300); font-size: 12.5px; }
.hero-lawyer-cta {
  margin-left: 6px; font-size: 13px; font-weight: 700; color: var(--gold-300);
  white-space: nowrap; flex-shrink: 0;
}
.hero-lawyer-cta:hover { color: #fff; }

/* —— 底部咨询按钮排（桌面不显，移动端显）—— */
.hero-lawyer-bar { display: none; }
.hero-lawyer-bar a {
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; letter-spacing: .5px;
  padding: 12px 6px; border-radius: var(--radius-md);
  text-decoration: none;
}
.hero-lawyer-bar-tel {
  color: #fff;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  box-shadow: 0 6px 18px rgba(176, 125, 26, .45);
}
.hero-lawyer-bar-tel:hover { color: #fff; filter: brightness(1.08); }
.hero-lawyer-bar-more {
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .35);
}
.hero-lawyer-bar-more:hover { color: var(--gold-200); background: rgba(255, 255, 255, .2); }

@media (max-width: 560px) {
  /* 覆盖 v3 旧的 .hero-lawyer-cta{display:none} 仅隐藏右上小 CTA，改用下方大按钮 */
  .hero-lawyer { width: 100%; }
  .hero-lawyer-avatar { width: 54px; height: 54px; }
  .hero-lawyer-in { flex-wrap: wrap; }
  .hero-lawyer-cta { display: none; }
  .hero-lawyer-desc { font-size: 12px; -webkit-line-clamp: 3; }
  .hero-lawyer-bar {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 10px;
    margin-top: 10px;
  }
  .hero-lawyer-bar a { font-size: 14px; padding: 11px 6px; }
}

/* ==========================================================================
   v14 首页 hero 问答改回「上下静态列表」（用户要求，去掉轨道走马灯）
   —— 覆盖 v12 viewport/track 双列滚动；DOM：.hero-qa > 多条 .hero-qa-item
   ========================================================================== */
.hero-qa {
  display: flex;
  flex-direction: column;
  padding: 4px 24px;
  overflow: hidden;
  position: relative;
}
.hero-qa-viewport { display: none; }
.hero-qa-track { display: none; }
.hero-qa-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
  animation: none !important;
  min-width: 0;
  box-sizing: border-box;
}
.hero-qa-item:last-child { border-bottom: none; }
.hero-qa-tag {
  display: inline-block;
  width: fit-content;
  margin-bottom: 5px;
  font-size: 11px;
  padding: 1px 9px;
  border-radius: 3px;
  background: var(--blue-100);
  color: var(--blue-700);
}
.hero-qa-q { font-size: 14px; font-weight: 600; color: var(--ink-900); line-height: 1.6; }
.hero-qa-q a { color: var(--ink-900); }
.hero-qa-q a:hover { color: var(--blue-600); }
.hero-qa-a { font-size: 12px; color: var(--ink-500); margin-top: 3px; }
.hero-qa-a strong { color: var(--blue-700); }

/* v14b：问答列表 4 条紧凑（防 hero 卡过高撑长首屏） */
.hero-qa { padding: 2px 24px; }
.hero-qa-item { padding: 9px 0; }
.hero-qa-item + .hero-qa-item { border-top: 1px dashed var(--border); border-bottom: none; }
.hero-qa-item:last-child { border-bottom: none; }
.hero-qa-tag { margin-bottom: 3px; font-size: 10.5px; }
.hero-qa-q { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-qa-a { margin-top: 2px; font-size: 11.5px; }
@media (max-width: 900px) {
  .hero-qa { padding: 2px 18px; }
  .hero-qa-item { padding: 8px 0; }
}

/* ==========================================================================
   v15 三处视觉修复（2026-09-03）
   ① 龚静推荐卡双层框嵌套 → 外层透明化，只保留 .hero-lawyer-in 单框
   ② hero 问答区 → 视口固定 4 条 + 轨道纵向逐条滚动（百叶窗轮换），卡高不变
   ③ 文书库 .tool-help 在 docs 网格中被当作单列 item(仅48%) → 跨满整行
   ========================================================================== */

/* ① 龚静卡单框：旧 v3 .hero-lawyer 自带半透明白底框+padding，与 in 卡叠成两框 */
.hero-lawyer {
  display: block;
  margin-top: 22px;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}
.hero-lawyer:hover { background: transparent !important; border-color: transparent !important; }
@media (max-width: 560px) {
  .hero-lawyer { margin-top: 14px; }
}

/* ② hero 问答百叶窗轨道（覆盖 v14 对 viewport/track 的隐藏规则） */
.hero-qa {
  display: block;
  padding: 4px 24px;
  position: relative;
  overflow: hidden;
}
.hero-qa-viewport {
  display: block !important;
  overflow: hidden;
  position: relative;
}
.hero-qa-track {
  display: flex !important;
  flex-direction: column;
  will-change: transform;
}
.hero-qa-track.is-move { transition: transform 1s cubic-bezier(.45, .05, .25, 1); }
.hero-qa-item { box-sizing: border-box; }
.hero-qa-item + .hero-qa-item { border-top: 1px dashed var(--border); }
@media (max-width: 900px) {
  .hero-qa { padding: 2px 18px; }
}

/* ③ 文书库提示条跨满整行（docs 网格 2 列模式下从单列 item 改为通栏） */
body.docs-js .docs-grid-wrap > .tool-help {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  margin-top: 18px;
}

/* v15b：彻底压掉 v12 残留规则（flex:0 0 50% / track height:100% / border-left）——同作用域后定义胜出 */
.hero-qa-viewport > .hero-qa-track { height: auto; }
.hero-qa-viewport > .hero-qa-track > .hero-qa-item {
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  padding: 9px 0;
  box-sizing: border-box;
  border: 0;
}
.hero-qa-viewport > .hero-qa-track > .hero-qa-item + .hero-qa-item {
  border-top: 1px dashed var(--border);
  border-left: 0;
  padding-left: 0;
}
.hero-qa-viewport > .hero-qa-track > .hero-qa-item:last-child { border-bottom: 0; }
.hero-qa-viewport .hero-qa-q { -webkit-line-clamp: 2; }
.hero-qa-viewport .hero-qa-a { margin-top: 2px; }

/* v15c：「今日已有 X 位」数字改黑体加粗（原为宋体系 serif，显细） */
.hero-card-num {
  font-family: "PingFang SC", "Microsoft YaHei", "微软雅黑", "SimHei", "黑体", sans-serif;
  font-weight: 800;
}

/* ==========================================================================
   v17 北京优选律师区（用户要求）
   ① 左龚静卡与右卡同尺寸：深蓝大卡 → 白色同款小卡，金框+「重点推荐」徽章突出
   ② 右律师墙：整页自动翻页（main.js initLawyerScroll 已升级）
   ========================================================================== */
.lawyer-split { grid-template-columns: 226px minmax(0, 1fr); }

.ls-card-lead {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 2px solid var(--gold-400);
  box-shadow: 0 8px 24px rgba(176, 125, 26, .16);
}
.ls-card-lead:hover { border-color: var(--gold-500); }
.ls-card-lead::before {
  content: "重点推荐";
  position: absolute; top: -11px; left: 14px; z-index: 2;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; color: #fff;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  padding: 2px 10px; border-radius: 10px;
  box-shadow: 0 3px 8px rgba(176, 125, 26, .32);
}
.ls-card-lead .ls-card-av { border-color: var(--gold-300); background: #fdf6e7; margin-top: 4px; }
.ls-card-lead .ls-card-name a { color: #a97b1f; }
.ls-card-lead .ls-card-name a:hover { color: var(--gold-600); }
.ls-card-lead .ls-card-meta { min-height: 60px; }
.ls-card-lead .ls-card-ft {
  margin-top: auto;
  padding-top: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  text-align: left;
}
.ls-card-lead .ls-card-cta { padding: 6px 12px; font-size: 12px; flex-shrink: 0; }

@media (max-width: 1100px) {
  .lawyer-split { grid-template-columns: 226px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .lawyer-split { grid-template-columns: 1fr; }
  .ls-card-lead { height: auto; }
}

/* ==========================================================================
   v18（2026-09-03）
   ① 分页 .page-numbar 内数字链接与上一页/下一页同间距（原来挤在一起）
   ② .page-banner 蓝色横幅：极淡斜向流光缓慢流转（不突兀、舒适）
   ========================================================================== */
.pager .page-numbar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg,
    transparent 40%,
    rgba(255, 255, 255, .045) 46%,
    rgba(240, 199, 94, .06) 50%,
    rgba(255, 255, 255, .04) 54%,
    transparent 60%);
  background-size: 300% 100%;
  animation: bannerFlow 16s ease-in-out infinite;
}
@keyframes bannerFlow {
  0%, 100% { background-position: 135% 0; }
  45%, 55% { background-position: -85% 0; }
}

/* ==========================================================================
   v19（2026-09-03）北京优选律师 · 龚静卡恢复深蓝底色（用户：蓝底好看加回来）
   —— 保持 v17 的同尺寸小卡，底色回到深蓝渐变 + 金色点缀
   ========================================================================== */
.ls-card-lead {
  background:
    radial-gradient(260px 170px at 110% -18%, rgba(240, 199, 94, .18), transparent 65%),
    linear-gradient(160deg, #123c78 0%, #0a2a5c 55%, #081d3d 100%);
  color: #fff;
  border: 1px solid rgba(240, 199, 94, .42);
  box-shadow: 0 8px 24px rgba(10, 44, 94, .24);
}
.ls-card-lead:hover {
  border-color: var(--gold-400);
  box-shadow: 0 16px 34px rgba(10, 44, 94, .3);
}
.ls-card-lead .ls-card-av {
  border-color: var(--gold-300);
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
}
.ls-card-lead .ls-card-av span { color: #ffe3a0; }
.ls-card-lead .ls-card-name a { color: #fff; }
.ls-card-lead .ls-card-name a:hover { color: var(--gold-300); }
.ls-card-lead .ls-card-meta { color: #cdddf2; }
.ls-card-lead .ls-card-more { color: #ffe3a0; }
.ls-card-lead .ls-card-more:hover { color: #fff; }
.ls-card-lead .ls-card-ft {
  border-top: 1px dashed rgba(255, 255, 255, .2);
  padding-top: 10px;
}

/* ==========================================================================
   v20（2026-09-03）统一全站「正文+侧栏」页宽：
   根因 .page-side min-width:auto 被侧栏内容撑至 332~358px → 正文被压成
   782~808px 不一。钉死侧栏 300px + 内容允许断词，正文统一 840px、右缘对齐。
   ========================================================================== */
.page-side {
  flex: 0 0 300px;
  width: 300px;
  max-width: 300px;
  min-width: 0;
  overflow: hidden;
}
.page-side .side-box,
.page-side .side-ask,
.page-side .side-box-bd,
.page-side .side-box-hd {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.page-side a, .page-side p, .page-side li, .page-side h3, .page-side strong, .page-side span {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* v20b：移动端(≤900px 纵向布局)侧栏恢复整行全宽，不锁 300px */
@media (max-width: 900px) {
  .page-side {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
  }
}

/* v20b：移动端(≤900px 纵向布局)侧栏恢复整行全宽，不锁 300px */
@media (max-width: 900px) {
  .page-side {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
  }
}

/* ==========================================================================
   v21（2026-09-03）
   ① 首页龚静卡「免费咨询TA」桌面 CTA → 金色圆角按钮
   ② 移动端龚静卡电话按钮已删（个体无电话），单按钮金色通栏
   ========================================================================== */
.hero-lawyer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .5px;
  box-shadow: 0 4px 12px rgba(176, 125, 26, .35);
  white-space: nowrap;
  transition: filter .2s, transform .2s, box-shadow .2s;
}
.hero-lawyer-cta:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(176, 125, 26, .45); }

@media (max-width: 560px) {
  .hero-lawyer-bar { grid-template-columns: 1fr; }
  .hero-lawyer-bar-more {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    border: 0;
    box-shadow: 0 6px 18px rgba(176, 125, 26, .4);
  }
}

/* ==========================================================================
   v22（2026-09-03）板块大标题（专业领域/北京优选律师 等）加粗
   注：1434 行曾把 .section-title 覆盖为 600 字重，此处统一回到 800
   ========================================================================== */
.section-title {
  font-weight: 800;
  letter-spacing: 1.5px;
}

/* ==========================================================================
   v23（2026-09-03）
   ① 修复图片/文字错位：v21 给 .hero-lawyer-cta 设 display:inline-flex 时把
      ≤560px 断点里的 display:none（移动端隐藏内嵌CTA、改用底部通栏钮）覆盖掉，
      导致手机端 CTA 挤在名字旁、信息区被压成 ~119px 窄条换行 → 恢复移动端隐藏
   ② 「龚静律师」四字金色：hero 卡 strong 内 .hero-name + 北京优选律师左卡
      .ls-card-lead .ls-card-name a（深蓝底配亮金）
   ========================================================================== */
@media (max-width: 560px) {
  .hero-lawyer-cta { display: none !important; }
}
.hero-lawyer-info .hero-name {
  color: var(--gold-300);
  font-weight: 800;
  letter-spacing: .5px;
}
.ls-card-lead .ls-card-name a {
  color: #ffe3a0;
}

/* v23b：北京优选律师左卡（.ls-card-lead）flex 纵向布局下子项默认 align-items:stretch
   → 64px 定宽头像被推到左侧未居中（用户：头像左对齐没居中）
   修复：子项水平居中，meta/ft 保持满宽 */
.ls-card-lead { align-items: center; }
.ls-card-lead .ls-card-meta,
.ls-card-lead .ls-card-ft { width: 100%; }
.ls-card-lead .ls-card-name { width: auto; }

/* ==========================================================================
   v24（2026-09-03）全站咨询留言弹窗（点「咨询/留言」统一弹出引导留言）
   —— 首页 ask-box 表单已移入弹窗；桌面居中卡片、移动端底部抽屉
   ========================================================================== */
.ask-modal {
  position: fixed; inset: 0; z-index: 1300;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.ask-modal.is-open { display: flex; }
.ask-modal-mask {
  position: absolute; inset: 0;
  background: rgba(6, 18, 38, .58);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: askFade .18s ease;
}
@keyframes askFade { from { opacity: 0; } to { opacity: 1; } }
.ask-modal-card {
  position: relative; width: min(560px, 100%);
  max-height: min(88vh, 760px); overflow-y: auto;
  background: #fff; border-radius: 14px;
  padding: 26px 26px 20px;
  box-shadow: 0 24px 60px rgba(6, 18, 38, .32);
  animation: askUp .22s ease;
}
@keyframes askUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ask-modal-x {
  position: absolute; top: 10px; right: 12px;
  width: 32px; height: 32px; border: 0; background: none;
  font-size: 26px; line-height: 1; color: var(--ink-500);
  cursor: pointer; border-radius: 50%;
}
.ask-modal-x:hover { color: var(--ink-900); background: var(--blue-50); }
.ask-modal-hd { text-align: center; padding-right: 26px; }
.ask-modal-hd h3 {
  font-size: 19px; font-weight: 800; color: var(--ink-900); letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.ask-modal-hd h3::before {
  content: ""; width: 4px; height: 18px; border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
}
.ask-modal-hd p { font-size: 12px; color: var(--ink-500); line-height: 1.7; margin: 7px 0 18px; }
.ask-modal .ask-real-form { text-align: left; }
.ask-modal .ask-field { margin-bottom: 13px; }
.ask-modal .ask-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-700); margin-bottom: 5px; }
.ask-modal .ask-field label em { font-style: normal; color: var(--ink-500); font-weight: 400; }
.ask-modal .ask-input {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 12px; font-size: 14px; background: #fff; color: var(--ink-900);
  transition: border-color .15s, box-shadow .15s;
}
.ask-modal .ask-input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(47, 108, 181, .14); }
.ask-modal .ask-textarea { resize: vertical; min-height: 76px; }
.ask-modal .ask-tip { text-align: center; margin-top: 10px; }

body.modal-lock { overflow: hidden; }
.ask-tip-center { text-align: center; }

@media (max-width: 560px) {
  .ask-modal { padding: 0; align-items: flex-end; }
  .ask-modal-card {
    width: 100%; max-height: 92vh;
    border-radius: 18px 18px 0 0;
    padding: 22px 18px 18px;
  }
  .ask-modal-hd p br { display: none; }
}

/* v24b：弹窗移动端底部安全区（iPhone 横条）适配 */
@media (max-width: 560px) {
  .ask-modal-card {
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }
}

/* v24b：弹窗移动端底部安全区（iPhone 横条）适配 */
@media (max-width: 560px) {
  .ask-modal-card {
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }
}

/* v25（2026-09-03）首页 Tab 栏目名（法律知识/法规速递/最新解答）加粗 */
.feed-tab {
  font-weight: 700;
}

/* ==========================================================================
   v26（2026-09-03）
   ① footer 品牌列咨询热线 gold-300（此前被 .footer-col a(#9db8dc) 覆盖成灰蓝）
   ② 龚静介绍文字 #e3eefb：hero 卡简介 + 北京优选律师左卡简介（深蓝底浅亮蓝白）
   ========================================================================== */
.footer-col-brand .footer-phone {
  color: var(--gold-300);
}
.hero-lawyer-desc {
  color: #e3eefb;
}
.ls-card-lead .ls-card-meta {
  color: #e3eefb;
}

/* v26b：hero 简介需高于 .hero-lawyer-info em(gold) 的特异性 */
.hero-lawyer-info .hero-lawyer-desc {
  color: #e3eefb;
}
