/* =============================================================
   在商言法 · 全新官网 — 设计系统 (Design System)
   品牌色：深海军蓝 (信任/权威) + 金 (专业/尊贵) + 青 (理性)
   原则：克制、留白、可读性、移动优先、无障碍 (WCAG 2.1 AA)
   ============================================================= */

:root {
  /* 品牌色（现有设计系统） */
  --navy-900: #0a1f3c;
  --navy-800: #0e2a52;
  --navy-700: #143a6b;
  --navy-600: #1d4e8f;
  --navy-500: #2a64b0;
  --gold-600: #b8862f;
  --gold-500: #c9a24b;
  /* 对比度修复: 小字号金色文字专用（装饰金 gold-500/600 保持原观感不变） */
  --gold-text: #7a620d;   /* 白底5.87 / gold-100底5.12 / bg-tint底5.31，全部达 WCAG AA */
  --gold-400: #dcbd6e;
  --gold-100: #f6efe0;
  --teal-600: #1f7a76;
  --teal-500: #2a9d96;

  /* ============ 外观对接：已锁定规范 token（藏青为骨·金为饰） ============
   * 【对接说明】严格套用已锁定的外观规范色值，对齐后台视觉口径，
   * 属于外观功能对接，不修改任何 WordPress 主题代码（Elementor 主题保持原样）。
   * 规范色用于运行时样式与外观对齐，与既有设计系统互补而非替换。 */
  --zs-navy: #16213e;        /* 藏青：信任/权威 */
  --zs-gold: #c9a227;        /* 金：专业/尊贵（规范色值，修正原 5 位无效十六进制） */
  --zs-gold-dark: #d4af37;   /* 金深 */
  --zs-gold-light: #e8c987;  /* 金浅 */
  --zs-ink: #16202e;         /* 主文字 */
  --zs-bg-tint: #f6f4ee;     /* 背景浅金 */

  /* 中性色（注意：:root 仅在文件第 63 行统一闭合，此处不得提前闭合） */
  --ink-900: #16202e;
  --ink-700: #34414f;
  --ink-500: #5b6776;
  --ink-300: #5f6b7a;  /* 对比度修复: 原 #9aa6b2 白底仅2.48:1, 提升至5.43:1 (WCAG AA) */
  --line: #e4e8ee;
  --line-soft: #eef1f5;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-tint: #f0f4f9;
  --white: #ffffff;

  /* 语义 */
  --danger: #c0392b;
  --ok: #1d7a4d;

  /* 排版 */
  --serif: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* 间距/圆角/阴影 */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(16, 32, 64, 0.08), 0 1px 2px rgba(16, 32, 64, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 32, 64, 0.10);
  --shadow-lg: 0 18px 50px rgba(16, 32, 64, 0.16);
  --header-h: 72px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--navy-800); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy-900); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(28px, 4.2vw, 46px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }
.section--navy { background: var(--navy-900); color: #dfe7f1; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #c4d0e0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-text); font-weight: 700; margin: 0 0 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold-500); display: inline-block; }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--ink-500); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1.5px solid transparent; cursor: pointer; transition: all .2s ease;
  font-family: var(--sans); line-height: 1; white-space: nowrap;
}
.btn--primary { background: var(--gold-500); color: #2a200a; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--gold-400); color: #2a200a; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--navy { background: var(--navy-700); color: #fff; }
.btn--navy:hover { background: var(--navy-800); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy-700); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy-600); background: var(--bg-soft); }
.btn--light { background: #fff; color: var(--navy-800); }
.btn--light:hover { background: var(--gold-100); }
.btn--block { width: 100%; }
.btn--lg { padding: 15px 30px; font-size: 16px; }

/* ---------- 顶部公告条 ---------- */
.topbar { background: var(--navy-900); color: #cdd8e6; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 40px; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #cdd8e6; }
.topbar a:hover { color: #fff; }
.topbar .tb-right { display: flex; gap: 18px; align-items: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: var(--header-h); }
/* 限宽容器下不允许导航被压缩，避免中文栏目标题被拆成两行 */
.nav > .brand, .nav > .nav-menu, .nav > .nav-cta { flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand .logo-mark {
  width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: var(--gold-400); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 20px;
  box-shadow: var(--shadow-sm);
}
.brand .logo-text { line-height: 1.1; }
.brand .logo-text b { font-family: var(--serif); font-size: 19px; color: var(--navy-900); letter-spacing: 1px; white-space: nowrap; }
.brand .logo-text span { display: block; font-size: 11px; color: var(--ink-500); letter-spacing: 2px; white-space: nowrap; }

.nav-menu { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 9px; border-radius: 8px;
  color: var(--ink-700); font-weight: 500; font-size: 14px; white-space: nowrap;
}
.nav-menu > li > a:hover, .nav-menu > li.is-active > a { color: var(--navy-800); background: var(--bg-soft); }
.nav-menu .caret { font-size: 10px; opacity: .6; }

/* 下拉 / mega menu */
.dropdown {
  position: absolute; top: calc(100% + 2px); left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s ease; z-index: 110;
}
.nav-menu > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink-700); font-size: 14.5px; }
.dropdown a:hover { background: var(--bg-soft); color: var(--navy-800); }
.dropdown .dd-title { font-size: 12px; color: var(--ink-300); padding: 6px 12px; letter-spacing: 1px; text-transform: uppercase; }

.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-cta .btn { padding: 10px 16px; font-size: 14px; }
/* 中等宽度收起次要按钮，保证 9 项中文导航始终单行 */
@media (max-width: 1200px) { .nav-cta .btn--ghost { display: none; } }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-800); margin: 4px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; background:
    radial-gradient(1200px 500px at 85% -10%, rgba(201,162,75,.18), transparent 60%),
    linear-gradient(180deg, #0c2547 0%, #0a1f3c 100%);
  color: #eaf0f8; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(201,162,75,.22), transparent 70%); pointer-events: none;
}
.hero .container { position: relative; z-index: 2; padding-top: 78px; padding-bottom: 86px; }
.hero h1 { color: #fff; max-width: 16em; }
.hero .lead { font-size: 18px; color: #cdd9e8; max-width: 38em; margin: 18px 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero-badges .pill {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #dbe5f2;
  padding: 7px 14px; border-radius: 999px; font-size: 13px;
}
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 54px; }
.hero-stats .stat { border-left: 2px solid rgba(201,162,75,.5); padding-left: 16px; }
.hero-stats .num { font-family: var(--serif); font-size: 32px; color: #fff; font-weight: 700; }
.hero-stats .lbl { font-size: 13px; color: #aebfd2; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d3deec; }
.card .ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--gold-100); color: var(--gold-600); font-size: 22px; margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { color: var(--ink-500); font-size: 14.5px; margin: 0 0 14px; }
.card .more { font-weight: 600; color: var(--navy-600); font-size: 14px; }
.card--link { display: block; }
.card--link:hover { color: inherit; }

/* 服务/业务 icon 颜色变体 */
.ico--navy { background: #e7eef8; color: var(--navy-600); }
.ico--teal { background: #e2f1ef; color: var(--teal-600); }

/* 业务领域卡片缩略图：替代原 emoji 图标，沿用 48x48 / 12px 圆角 / 16px 下边距 */
.card .practice-thumb {
  width: 48px; height: 48px; border-radius: 12px; overflow: hidden;
  margin-bottom: 16px; background: #e7eef8; flex: none;
}
.card .practice-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }


/* ---------- 标签 / badges ---------- */
.tag {
  display: inline-block; font-size: 12.5px; padding: 4px 11px; border-radius: 999px;
  background: var(--bg-tint); color: var(--navy-700); margin: 0 6px 6px 0; font-weight: 500;
}
.tag--gold { background: var(--gold-100); color: var(--gold-text); }
.tag--teal { background: #e2f1ef; color: var(--teal-600); }

/* ---------- 数据展示条 ---------- */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.statband .item { text-align: center; }
.statband .num { font-family: var(--serif); font-size: 40px; color: var(--gold-text); font-weight: 700; line-height: 1; }
.statband .lbl { color: #aebfd2; font-size: 14px; margin-top: 6px; }

/* ---------- 流程步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 26px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--serif); font-size: 30px; color: var(--gold-text); font-weight: 700; }
.step h4 { margin: 8px 0 6px; font-size: 17px; }
.step p { font-size: 14px; color: var(--ink-500); margin: 0; }

/* ---------- 团队 ---------- */
.lawyer {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.lawyer:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.lawyer .avatar {
  height: 220px; background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  display: grid; place-items: center; color: var(--gold-400); font-family: var(--serif); font-size: 54px; font-weight: 700;
  position: relative;
}
.lawyer .avatar .initials { filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); }
.lawyer .body { padding: 18px 20px 22px; }
.lawyer .body h3 { margin: 0 0 2px; font-size: 19px; }
.lawyer .body .role { color: var(--gold-text); font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.lawyer .body p { font-size: 13.5px; color: var(--ink-500); margin: 0 0 12px; }
.lawyer .meta { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 案例 ---------- */
.case {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; transition: transform .2s ease, box-shadow .2s ease;
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case .cat { font-size: 12.5px; color: var(--gold-text); font-weight: 700; letter-spacing: 1px; }
.case h3 { font-size: 18px; margin: 0; }
.case .result { background: var(--bg-tint); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; color: var(--ink-700); }
.case .result b { color: var(--ok); }
.case .excerpt { font-size: 14px; color: var(--ink-500); margin: 0; }
.case .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-300); }

/* ---------- 文章列表 ---------- */
.post {
  display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 20px; border: 1px solid var(--line);
  border-radius: var(--r-md); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.post:hover { border-color: #d3deec; box-shadow: var(--shadow-sm); }
.post .thumb { height: 96px; border-radius: var(--r-sm); background: linear-gradient(135deg, var(--navy-600), var(--navy-900)); display: grid; place-items: center; color: var(--gold-400); font-size: 30px; }
.post .cat { font-size: 12px; color: var(--gold-text); font-weight: 700; letter-spacing: 1px; }
.post h3 { font-size: 17px; margin: 4px 0 6px; }
.post p { font-size: 13.5px; color: var(--ink-500); margin: 0 0 8px; }
.post .date { font-size: 12.5px; color: var(--ink-300); }

/* ---------- 侧栏 / 工具 ---------- */
.tool-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.tool-card h3 { margin-top: 0; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-700); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--sans); font-size: 15px; color: var(--ink-900); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy-500); outline-offset: 1px; border-color: var(--navy-500); }
.field .hint { font-size: 12.5px; color: var(--ink-300); margin-top: 4px; }
.result-box {
  background: var(--bg-tint); border: 1px dashed var(--navy-500); border-radius: var(--r-md);
  padding: 18px 20px; margin-top: 8px; font-size: 15px;
}
.result-box .big { font-family: var(--serif); font-size: 28px; color: var(--navy-800); font-weight: 700; }
.result-box .note { font-size: 12.5px; color: var(--ink-500); margin-top: 8px; }

/* ---------- 报价 / 服务包 ---------- */
.price {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px; position: relative;
}
.price.is-feature { border: 2px solid var(--gold-500); box-shadow: var(--shadow-md); }
.price .flag { position: absolute; top: -12px; left: 24px; background: var(--gold-500); color: #2a200a; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.price .pname { font-family: var(--serif); font-size: 20px; color: var(--navy-900); }
.price .pfrom { font-size: 14px; color: var(--ink-500); }
.price .amount { font-family: var(--serif); font-size: 36px; color: var(--navy-800); font-weight: 700; }
.price .amount small { font-size: 14px; color: var(--ink-500); font-weight: 400; }
.price ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.price ul li { font-size: 14.5px; color: var(--ink-700); padding-left: 24px; position: relative; }
.price ul li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* ---------- 归档区 ---------- */
.archive-note {
  background: linear-gradient(135deg, #fbf6ea, #f3f7fc); border: 1px solid var(--gold-100);
  border-left: 4px solid var(--gold-500); border-radius: var(--r-md); padding: 20px 22px; margin-bottom: 26px;
}
.archive-note h3 { margin: 0 0 6px; font-size: 18px; }
.archive-note p { font-size: 14px; color: var(--ink-700); margin: 0; }
.timeline { border-left: 2px solid var(--line); padding-left: 22px; margin-left: 8px; }
.timeline .tl-item { position: relative; padding-bottom: 22px; }
.timeline .tl-item::before { content: ""; position: absolute; left: -29px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold-500); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gold-100); }
.timeline .tl-year { font-family: var(--serif); font-weight: 700; color: var(--navy-800); }
.timeline .tl-item p { font-size: 14px; color: var(--ink-500); margin: 4px 0 0; }

/* ---------- 面包屑 ---------- */
.breadcrumb { font-size: 13.5px; color: var(--ink-300); padding: 18px 0; }
.breadcrumb a { color: var(--ink-500); }
.breadcrumb span.sep { margin: 0 8px; }
.breadcrumb .cur { color: var(--navy-700); font-weight: 600; }

/* ---------- 页内 CTA ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy-800), var(--navy-900)); color: #fff; border-radius: var(--r-lg); padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #c4d0e0; margin: 0; }

/* ---------- 列表过滤器 ---------- */
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 14px; color: var(--ink-700); cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--navy-500); color: var(--navy-700); }
.chip.is-active { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }

/* ---------- 搜索框 ---------- */
.searchbar { display: flex; gap: 10px; max-width: 520px; }
.searchbar input { flex: 1; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; }
.searchbar input:focus { outline: 2px solid var(--navy-500); border-color: var(--navy-500); }

/* ---------- 评价 / 客户 ---------- */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.quote .stars { color: var(--gold-500); letter-spacing: 2px; }
.quote p { font-size: 15px; color: var(--ink-700); margin: 12px 0 16px; }
.quote .who { font-size: 14px; color: var(--ink-500); }
.quote .who b { color: var(--navy-800); }

/* 客户 logo 墙 */
.logos { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.logos .logo-chip {
  flex: 1 1 140px; min-height: 70px; border: 1px solid var(--line); border-radius: var(--r-md);
  display: grid; place-items: center; color: var(--ink-500); font-weight: 600; letter-spacing: 1px; background: #fff;
}

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy-900); color: #b9c6d8; padding: 56px 0 24px; }
.site-footer h4 { color: #fff; font-size: 16px; margin: 0 0 16px; font-family: var(--sans); letter-spacing: .5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer a { color: #b9c6d8; }
.site-footer a:hover { color: #fff; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer-col p { font-size: 14px; }
.footer-brand .logo-text b { color: #fff; }
.footer-brand p { margin-top: 14px; font-size: 14px; color: #93a3b8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: 13px; color: #7e8ea3; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: #93a3b8; }
.disclaimer { background: rgba(0,0,0,.18); border-radius: var(--r-md); padding: 14px 18px; font-size: 12.5px; color: #93a3b8; margin-top: 18px; line-height: 1.6; }

/* ---------- 移动端浮动 CTA ---------- */
.mobile-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: #fff; border-top: 1px solid var(--line); padding: 10px 14px; gap: 10px; box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
.mobile-cta a { flex: 1; }

/* ---------- 无障碍 ---------- */
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy-800); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-menu, .nav-cta .btn--ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-menu.open {
    display: flex; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px; box-shadow: var(--shadow-md); gap: 0;
  }
  .nav-menu.open .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; }
  .nav-menu.open > li > a { display: flex; }
  .grid-2, .grid-3, .grid-4, .hero-stats, .statband { grid-template-columns: 1fr 1fr; }
  .section { padding: 54px 0; }
  .post { grid-template-columns: 1fr; }
  .post .thumb { height: 120px; }
  .cta-band { padding: 28px; }
}
@media (max-width: 520px) {
  .grid-2, .grid-3, .grid-4, .hero-stats, .statband, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .tb-right { display: none; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 64px; }
}

/* 打印 */
@media print {
  .site-header, .topbar, .mobile-cta, .site-footer, .hero-actions, .nav { display: none !important; }
  body { font-size: 12px; }
}

/* =========================================================
   新增组件（2026-10 优化：行业方案 Tabs / Alert / 表单校验 / 律师详情抽屉）
   —— 与现有设计系统共用令牌，不新增外部依赖
   ========================================================= */

/* ---------- 行业方案 Tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.tab-btn {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 14.5px; font-weight: 600; color: var(--ink-700); cursor: pointer; font-family: var(--sans);
  transition: all .15s ease;
}
.tab-btn:hover { border-color: var(--navy-500); color: var(--navy-700); }
.tab-btn[aria-selected="true"] { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.tab-panel { animation: fade .25s ease; }
.tab-panel[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.industry-split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.industry-pains { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 16px 0 0; }
.industry-pains li { padding-left: 24px; position: relative; font-size: 14.5px; color: var(--ink-700); }
.industry-pains li::before { content: "▸"; position: absolute; left: 0; color: var(--gold-600); font-weight: 700; }
.industry-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.industry-table caption { text-align: left; color: var(--ink-500); font-size: 13px; padding: 10px 14px; background: var(--bg-soft); }
.industry-table th, .industry-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13.5px; vertical-align: top; }
.industry-table th { background: var(--bg-tint); color: var(--navy-800); font-weight: 600; }
.industry-table tr:last-child td { border-bottom: 0; }
.industry-cta { margin-top: 16px; }

/* ---------- 提示 Alert ---------- */
.alert { border-radius: var(--r-md); border: 1px solid; border-left-width: 4px; padding: 14px 16px; font-size: 14px; margin: 18px 0; line-height: 1.6; }
.alert--info { background: #eef5fb; border-color: #bcd9ea; color: #1d4e6b; }
.alert--warning { background: #fdf6e9; border-color: #f0dcae; color: #7b5500; }
.alert--success { background: #ecf7f0; border-color: #bfe3d2; color: #1d5a3c; }
.alert strong { font-weight: 700; }

/* ---------- 表单校验与增强 ---------- */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 12.5px; margin-top: 5px; display: none; }
.field.invalid .field-error { display: block; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-700); font-weight: 400; margin: 0; }
.checkbox input { width: auto; margin-top: 3px; }
.form-success { display: none; background: #ecf7f0; border: 1px solid #bfe3d2; color: #1d5a3c; border-radius: var(--r-md); padding: 18px 20px; margin-bottom: 18px; }
.form-success h3 { color: #1d5a3c; margin: 0 0 6px; font-size: 18px; }
.form-success.is-show { display: block; }

/* ---------- 律师详情抽屉 ---------- */
.scrim { position: fixed; inset: 0; background: rgba(10,31,60,.5); opacity: 0; visibility: hidden; transition: opacity .2s ease; z-index: 200; }
.scrim.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(460px, 92vw);
  background: #fff; z-index: 210; padding: 28px; overflow: auto;
  transform: translateX(100%); transition: transform .25s ease; box-shadow: var(--shadow-lg);
}
.drawer.open { transform: none; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer-close { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; cursor: pointer; font-size: 14px; color: var(--ink-700); font-family: var(--sans); }
.drawer-close:hover { border-color: var(--navy-500); color: var(--navy-700); }
.lawyer-detail .dd-avatar {
  width: 66px; height: 66px; border-radius: 14px; float: left; margin: 0 16px 12px 0;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); color: var(--gold-400);
  display: grid; place-items: center; font-family: var(--serif); font-size: 28px; font-weight: 700;
}
.lawyer-detail h2 { font-size: 22px; margin: 0; }
.lawyer-detail .dd-role { color: var(--gold-text); font-weight: 600; font-size: 14px; }
.lawyer-detail .dd-quote { clear: both; font-family: var(--serif); font-size: 16px; color: var(--navy-800); border-left: 3px solid var(--gold-500); padding: 6px 0 6px 14px; margin: 14px 0; font-style: italic; }
.lawyer-detail dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 14px 0; font-size: 14px; }
.lawyer-detail dt { color: var(--ink-500); }
.lawyer-detail dd { margin: 0; color: var(--ink-900); }
.lawyer-detail .dd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.lawyer-detail .dd-intro { font-size: 14px; color: var(--ink-700); line-height: 1.7; }
.lawyer-card-btn { margin-top: 12px; }

/* ---------- 响应式补充 ---------- */
@media (max-width: 860px) {
  .industry-split, .field-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .tab-panel, .drawer, .scrim { animation: none !important; transition: none !important; }
}

/* 首页指标口径说明 */
.hero-stats-note { margin-top: 22px; font-size: 12.5px; color: #aebfd2; max-width: 64em; line-height: 1.6; }
.hero-stats-note .hero-note-key { color: var(--gold-400); font-weight: 700; }

/* =========================================================
   首页全屏轮播图（自研，学习头部律所全屏轮播的叙事与商业感）
   —— 无外部图片依赖，使用 navy+gold 的 SVG 商业视觉
   ========================================================= */
.hero-track { display: grid; }
.hero-slide {
  grid-area: 1 / 1;                       /* 多张幻灯片同格堆叠，容器高度取最高一张 */
  display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 30px;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .6s ease, visibility .6s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.hero-slide .eyebrow,
.hero-slide h1,
.hero-slide h2,
.hero-slide .lead,
.hero-slide .hero-actions { opacity: 0; transform: translateY(16px); }
.hero-slide h1, .hero-slide h2 { color: #fff; max-width: 15em; }
.hero-slide.is-active .eyebrow { animation: heroIn .6s .05s cubic-bezier(.2,.7,.3,1) forwards; }
.hero-slide.is-active h1, .hero-slide.is-active h2 { animation: heroIn .6s .13s cubic-bezier(.2,.7,.3,1) forwards; }
.hero-slide.is-active .lead { animation: heroIn .6s .22s cubic-bezier(.2,.7,.3,1) forwards; }
.hero-slide.is-active .hero-actions { animation: heroIn .6s .31s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

.hero-art { position: relative; }
.hero-art::before {
  content: ""; position: absolute; inset: -8% -4% -6% -4%; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,75,.16), transparent 62%);
}
.hero-art svg { position: relative; width: 100%; height: auto; max-height: 420px; opacity: 0; }
.hero-slide.is-active .hero-art svg { animation: heroArtIn .8s .12s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes heroArtIn { from { opacity: 0; transform: translateX(28px) scale(.97); } to { opacity: 1; transform: none; } }

/* 控制条：箭头 + 编号 + 圆点 + 进度条 */
.hero-controls { display: flex; align-items: center; gap: 16px; margin-top: 38px; flex-wrap: wrap; }
.hero-arrow {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 999px; border: 1px solid rgba(255,255,255,.26);
  background: rgba(255,255,255,.06); color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: all .2s ease;
}
.hero-arrow:hover { background: var(--gold-500); color: #2a200a; border-color: var(--gold-500); transform: translateY(-1px); }
.hero-dots { display: flex; gap: 10px; align-items: center; }
.hero-dot { width: 11px; height: 11px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.32); cursor: pointer; transition: all .3s ease; }
.hero-dot.is-active { background: var(--gold-500); width: 30px; }
.hero-count { font-family: var(--serif); font-size: 15px; color: #aebfd2; letter-spacing: 1px; }
.hero-count b { color: #fff; font-size: 20px; }
.hero-progress { margin-top: 20px; height: 3px; width: 100%; max-width: 460px; background: rgba(255,255,255,.14); border-radius: 999px; overflow: hidden; }
.hero-progress > span { display: block; height: 100%; width: 0; background: var(--gold-500); }
.hero-progress.run > span { animation: heroProgress var(--hero-dur, 6500ms) linear forwards; }
.hero:hover .hero-progress.run > span { animation-play-state: paused; }
@keyframes heroProgress { from { width: 0; } to { width: 100%; } }

@media (max-width: 860px) {
  .hero-slide { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide.is-active .eyebrow, .hero-slide.is-active h1, .hero-slide.is-active h2,
  .hero-slide.is-active .lead, .hero-slide.is-active .hero-actions, .hero-art svg { animation: none !important; transition: none !important; }
  .hero-slide .eyebrow, .hero-slide h1, .hero-slide h2, .hero-slide .lead, .hero-slide .hero-actions { opacity: 1; transform: none; }
  .hero-progress.run > span { animation: none !important; }
}

/* ===== 数据库动态展示区块（文章/页面索引/标签云） ===== */
.db-stats .num { color: var(--navy-800) !important; }

.pages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.page-item {
  display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink-900); font-size: 14px; text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: all .15s ease;
}
.page-item:hover { border-color: var(--gold-500); color: var(--navy-800); box-shadow: 0 4px 14px rgba(22,33,62,.08); }

.pages-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.pages-pager .btn[disabled] { opacity: .45; cursor: not-allowed; }
.pages-cur { font-size: 14px; color: var(--ink-500); }

.tag-count { font-size: 14px; color: var(--ink-500); margin: 6px 0 14px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud .tag { cursor: default; font-size: 13px; padding: 5px 11px; }
.tag-cloud .tag b { color: var(--gold-text); font-weight: 700; }

@media (max-width: 860px) {
  .pages-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pages-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   全站 UI/UX 优化层（中文网站 · 统一组件状态 · 交互反馈 · 多端适配）
   —— 仅补充状态与适配规则，不改变既有信息结构与功能
   ========================================================= */

/* ---------- 中文排版层级与长内容防溢出 ---------- */
html, body { max-width: 100%; }
p, li, dd, .note, .excerpt, .page-item, .post h3 a, .case h3 a, .tag { overflow-wrap: anywhere; }
h1, h2, h3, h4 { text-wrap: balance; }
.section-head p, .hero .lead { text-wrap: pretty; }
.section-head { margin-bottom: 38px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { font-size: 15.5px; line-height: 1.8; }

/* ---------- 按钮统一状态：悬停 / 按下 / 禁用 / 提交中 ---------- */
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none; }
.btn:not(:disabled):active { transform: translateY(1px); }
.btn[aria-busy="true"] { position: relative; padding-left: 42px; pointer-events: none; }
.btn[aria-busy="true"]::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: zsSpin .7s linear infinite;
}
@keyframes zsSpin { to { transform: rotate(360deg); } }
.chip:focus-visible, .tab-btn:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

/* ---------- 统一空状态（中文、可解释、可操作） ---------- */
.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 34px 20px;
  border: 1px dashed var(--line); border-radius: var(--r-md);
  background: var(--bg-soft); color: var(--ink-500); font-size: 14.5px; line-height: 1.8;
}
.empty-state .es-icon { display: block; font-size: 26px; margin-bottom: 8px; opacity: .65; }
.empty-state b { color: var(--navy-800); font-weight: 600; }

/* ---------- 表单反馈：错误汇总 / 字段状态 / 成功面板 ---------- */
.form-error-summary {
  display: none; background: #fdecea; border: 1px solid #f3c6c0; border-left: 4px solid var(--danger);
  color: #8c2d21; border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 16px; font-size: 14px; line-height: 1.7;
}
.form-error-summary.is-show { display: block; }
.field.invalid label { color: var(--danger); }
.field.invalid input, .field.invalid select, .field.invalid textarea { background: #fffafa; }
.form-success { position: relative; }
.form-success .btn { margin-top: 14px; }
.form-success .fs-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 计算器结果与错误态 ---------- */
.result-box { margin-top: 14px; }
.result-box .big { font-family: var(--serif); font-size: 28px; color: var(--navy-800); font-weight: 700; line-height: 1.3; }
.result-box .note { font-size: 12.5px; color: var(--ink-500); margin-top: 8px; line-height: 1.7; }
.calc-error {
  margin-top: 14px; background: #fdecea; border: 1px solid #f3c6c0; border-left: 4px solid var(--danger);
  color: #8c2d21; border-radius: var(--r-md); padding: 12px 14px; font-size: 14px; line-height: 1.7;
}

/* ---------- 文章分页 / 计数 ---------- */
.article-count { font-size: 14px; color: var(--ink-500); margin: 4px 0 16px; }
.article-count b { color: var(--navy-800); font-weight: 700; }
.article-pager { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 26px 0 8px; }
.article-pager .btn[disabled] { opacity: .45; cursor: not-allowed; }
.article-pager .pages-cur { font-size: 14px; color: var(--ink-500); }
.tag-cloud .tag:hover { border-color: var(--gold-500); box-shadow: var(--shadow-sm); }
.page-item { white-space: normal; word-break: break-word; }

/* ---------- 移动端导航：遮罩 / 展开态 / 触控目标 ---------- */
.nav-scrim {
  position: fixed; inset: 0; background: rgba(10,31,60,.42); z-index: 99;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.nav-scrim.open { opacity: 1; visibility: visible; }
.nav-toggle span { transition: transform .2s ease, opacity .2s ease; }
@media (max-width: 860px) {
  .nav-menu.open { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  /* 移动端主导航 9 项已覆盖全部主页面，下拉锚点折叠以免菜单过长遮蔽页面与遮罩 */
  .nav-menu.open .dropdown { display: none; }
  .nav-menu.open > li > a { min-height: 46px; align-items: center; }
  .nav-toggle { display: grid; place-items: center; min-width: 44px; min-height: 44px; }
  .nav-toggle span { margin: 3px 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .chip, .tab-btn { min-height: 44px; padding: 10px 18px; }
  .hero-dot { position: relative; }
  .hero-dot::after { content: ""; position: absolute; inset: -15px -4px; }
  .field input, .field select, .field textarea { min-height: 44px; font-size: 16px; }
  .drawer { padding: 22px 18px; }
}
@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .drawer { width: 100%; }
  .article-pager, .pages-pager { gap: 10px; }
}

/* ---------- 减弱动效偏好（补充新组件） ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn[aria-busy="true"]::before { animation-duration: 2s; }
  .nav-scrim, .nav-toggle span { transition: none !important; }
}

/* =========================================================
   文章页布局紧凑化（压缩大段留白，统一紧凑视觉）
   —— 仅调整排版/间距/行高，不增删任何页面内容、信息结构与功能
   —— 落点：静态站设计系统 style.css（目标文章页由静态站首页 index.html 承接、客户端渲染）
   ========================================================= */

/* 桌面紧凑化：压缩区块上下留白、网格列距、卡片内边距、正文行高 */
.section { padding: 56px 0; }
.section-head { margin-bottom: 28px; }
.hero .container { padding-top: 56px; padding-bottom: 64px; }
.grid { gap: 16px; }
.card { padding: 20px; }
.card h3 { line-height: 1.5; }
.card p { line-height: 1.6; }
.case { padding: 18px; }
.case h3 { line-height: 1.4; }
.lawyer .body { padding: 15px 16px 15px; }
.lawyer .body p { line-height: 1.6; }
.post { padding: 16px; }
body { line-height: 1.65; }

/* 移动端进一步紧凑：避免窄屏纵向堆积，保持各设备显示协调 */
@media (max-width: 860px) {
  .section { padding: 48px 0; }
  .hero .container { padding-top: 44px; padding-bottom: 52px; }
  .grid { gap: 14px; }
  .card { padding: 18px; }
  .case { padding: 16px; }
  .lawyer .body { padding: 13px 14px 13px; }
  .post { padding: 14px; }
  body { line-height: 1.6; }
}
@media (max-width: 520px) {
  .section { padding: 36px 0; }
  .hero .container { padding-top: 34px; padding-bottom: 42px; }
  .grid { gap: 12px; }
  .card { padding: 14px; }
  .case { padding: 14px; }
  .lawyer .body { padding: 11px 12px 11px; }
  .post { padding: 12px; }
  body { line-height: 1.55; }
}

/* =========================================================
   人工逐页巡检修复：交互反馈 / 真实配图 / 卡片对齐 / 移动端
   —— 只改呈现层，不增删任何内容数据
   ========================================================= */

/* 1) 案例卡片：明确可点击、同行等高、末行居中，消除右下大片空白 */
#cases, #dbCases { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 22px; }
#cases > .case, #dbCases > .case { flex: 0 0 calc((100% - 44px) / 3); min-width: 0; }
.case[data-case] { cursor: pointer; }
.case[data-case]:hover { border-color: var(--gold-500); }
.case[data-case]:focus-within { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.case .more {
  background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--navy-600); cursor: pointer; text-decoration: none;
}
.case .more:hover, .case .more:focus-visible { color: var(--gold-text); text-decoration: underline; }

/* 案例详情抽屉 */
.case-drawer .cd-cat { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 1px; color: var(--gold-text); margin-bottom: 8px; }
.case-drawer .cd-title { font-family: var(--serif); font-size: 22px; line-height: 1.5; margin: 0 0 18px; color: var(--navy-800); }
.case-drawer .cd-block { margin: 0 0 18px; }
.case-drawer .cd-block h3 { font-size: 14px; color: var(--ink-500); font-weight: 700; letter-spacing: 1px; margin: 0 0 8px; }
.case-drawer .cd-block p { font-size: 15px; line-height: 1.9; color: var(--ink-700); margin: 0; }
.case-drawer .cd-result { background: var(--bg-tint); border-radius: var(--r-sm); padding: 12px 14px; font-size: 15px; line-height: 1.8; color: var(--ink-700); }
.case-drawer .cd-result b { color: var(--ok); }
.case-drawer .cd-meta {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px;
  margin: 0 0 18px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.case-drawer .cd-meta dt { color: var(--ink-500); }
.case-drawer .cd-meta dd { margin: 0; color: var(--navy-800); }
.case-drawer .cd-note { font-size: 13px; line-height: 1.8; color: var(--ink-500); background: var(--bg-soft); padding: 12px 14px; border-radius: var(--r-sm); margin: 0 0 20px; }
.case-drawer .cd-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* 2) 文章列表：真实配图与中文分类降级块 */
.post .thumb { overflow: hidden; }
.post .thumb.thumb--img { background: var(--bg-soft); }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.post:hover .thumb--img img { transform: scale(1.04); }
.post .thumb--fallback {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: linear-gradient(135deg, var(--navy-600), var(--navy-900)); color: var(--gold-400);
}
.post .thumb--fallback span { font-family: var(--serif); font-size: 20px; letter-spacing: 3px; }
.post .thumb--fallback small { font-size: 11px; letter-spacing: 2px; opacity: .8; }
.post p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 3) 律师官方照片（仅姓名能精确匹配上的才使用） */
.lawyer .avatar img.lawyer-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; }
.lawyer .avatar img.lawyer-photo[hidden] { display: none; }

/* 4) 首页指标口径说明更易读 */
.hero-stats-note { font-size: 13.5px; line-height: 1.8; color: #c6d4e6; }

/* 5) 移动端：分类单行横滑、文章左图右文、固定 CTA 不遮挡内容 */
@media (max-width: 860px) {
  .filterbar { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; scrollbar-width: thin; }
  .filterbar .chip { flex: 0 0 auto; white-space: nowrap; }
  #cases > .case, #dbCases > .case { flex-basis: calc((100% - 22px) / 2); }
  .post { grid-template-columns: 104px 1fr; gap: 12px; padding: 14px; }
  .post .thumb { height: 84px; }
  .post h3 { font-size: 15px; line-height: 1.5; }
  .post p { font-size: 13px; }
}
@media (max-width: 520px) {
  #cases > .case, #dbCases > .case { flex-basis: 100%; }
  .post { grid-template-columns: 88px 1fr; gap: 10px; padding: 12px; }
  .post .thumb { height: 72px; }
  .post .thumb--fallback span { font-size: 16px; letter-spacing: 1px; }
  .post .thumb--fallback small { display: none; }
  .post .cat { font-size: 11px; }
  .post h3 { font-size: 14px; margin: 2px 0 4px; }
  .post .date { font-size: 11px; }
  body { padding-bottom: 66px; }
  .case-drawer .cd-title { font-size: 19px; }
}

/* =========================================================
   文章页排版优化（六维度）—— 标题层级 / 正文排版 / 段落间距 /
   重点突出 / 阅读流畅度 / 移动端适配
   —— 仅调整排版、间距、层级、强调样式，不增删内容、
      不改信息结构、不改功能、不改数据
   —— 落点：静态站设计系统 style.css（目标页由 index.html 承接、
      客户端渲染；目标页与首页共用同一模板，按统一设计系统样式落地）
   ========================================================= */

/* ---------- 维度1：标题层级（主/次分级，消除同构） ---------- */
/* 主标题：首个核心区块（业务领域）H2 提升为更大主层级 */
.section-head--lead h2 {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
/* 次级标题：其余区块 H2 收敛为次级层级 */
.section-head h2:not(.section-head--lead) {
  font-size: clamp(24px, 3vw, 28px);
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
/* 卡片/案例/律师标题统一层级，形成递进（卡片 19 / 案例 16 / 律师 17） */
.card h3 { font-weight: 600; }
.case h3 { font-size: 16px; font-weight: 600; }
.lawyer .body h3 { font-size: 17px; font-weight: 600; }

/* ---------- 维度2：正文排版（统一行高与字号，消除行高参差） ---------- */
.section-head p { font-size: 15px; line-height: 1.7; }

/* ---------- 维度3：段落间距（进一步压缩纵向留白，缓解纵向堆积） ---------- */
.section { padding: 48px 0; }
.hero .container { padding-top: 52px; padding-bottom: 56px; }
.section-head { margin-bottom: 20px; }
.grid { gap: 14px; }
.card { padding: 18px; }
.case { padding: 16px; }
.lawyer .body { padding: 14px 16px 14px; }

/* 移动端（≤860，平板）更紧凑 */
@media (max-width: 860px) {
  .section { padding: 36px 0; }
  .hero .container { padding-top: 40px; padding-bottom: 48px; }
  .section-head { margin-bottom: 12px; }
  .grid { gap: 10px; }
  .card { padding: 14px; }
  .case { padding: 12px; }
  .lawyer .body { padding: 11px 12px 11px; }
}

/* ---------- 维度4：重点内容突出（关键结论 / 服务主线关键词 / 主 CTA） ---------- */
/* 案例结果金色高亮，作为阅读重点焦点 */
.case .result { color: var(--gold-text); background: var(--gold-100); font-weight: 600; }
/* 服务主线关键词金色强调（阅读节奏重点） */
.section--service-line h3 { color: var(--gold-text); font-weight: 700; }
/* 主 CTA 统一为金色藏青锚点 */
.btn--navy { background: var(--zs-navy); color: var(--zs-gold-dark); }
.btn--navy:hover { background: #122038; color: var(--zs-gold-light); }

/* ---------- 维度5：阅读流畅度（节奏递进 + 信息密度分级） ---------- */
/* 工具/律师区块弱化信息强调强度（保留结构与内容，仅降低强调），
    服务主线（金色）与经典案例（金色结果）作为阅读重点保持突出，形成节奏递进 */
#tools .card h3 { color: var(--ink-500); font-size: 17px; }
#tools .card p { color: var(--ink-300); }
#lawyers .card h3 { color: var(--ink-500); font-size: 17px; }
#lawyers .card p { color: var(--ink-300); }

/* ---------- 维度6：移动端适配（≤520 进一步压缩 + 网格单列防挤压） ---------- */
@media (max-width: 520px) {
  .section { padding: 30px 0; }
  .hero .container { padding-top: 28px; padding-bottom: 34px; }
  .section-head { margin-bottom: 8px; }
  .grid { gap: 8px; }
  .card { padding: 10px; }
  .case { padding: 8px; }
  .lawyer .body { padding: 8px 10px 8px; }
  /* 窄屏网格单列/双列，避免挤压与横向溢出 */
  .grid.grid-4 { grid-template-columns: 1fr; }
  .grid.grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid.grid-2 { grid-template-columns: repeat(2, 1fr); }
}

/* 卡片图标图片化：沿用原 .ico 的盒模型，按原色调变体保留占位底色 */
.card .practice-thumb--gold { background: var(--gold-100); }
.card .practice-thumb--teal { background: #e2f1ef; }


/* =========================================================
   专业团队页 · 卡片统一版式（2026-11-10 维护）
   目标：统一图片比例 / 统一卡片高度 / 统一人物取景，
        版式参照 baihuanlaw.com/team（4 列、300:370 竖版肖像、
        姓名—职务—专长三段式文字）。仅作用于 .lawyer 团队卡片。
   ========================================================= */

#lawyers.grid-4 { grid-template-columns: repeat(4, 1fr); align-items: stretch; }

.lawyer { display: flex; flex-direction: column; padding: 0; overflow: hidden; border-radius: var(--r-lg); background: #fff; }

/* 图片区：固定 300:370 比例。原实现 .avatar 用 grid + place-items:center，
   子元素百分比高度按内容解析，照片按原始比例撑高（实测 267~417px 不等）
   溢出并压住文字，是版式错乱的主因。 */
.lawyer .avatar {
  display: block; position: relative; height: auto; aspect-ratio: 300 / 370;
  overflow: hidden; background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: var(--gold-400); font-family: var(--serif); font-size: 46px; font-weight: 700; line-height: 1;
}
.lawyer .avatar img.lawyer-photo {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 14%; display: block;
}
.lawyer .avatar .initials {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: .08em; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}
/* 取景偏远的单张照片做光学归一：杜海港为全身小比例图，放大 1.45 倍后
   头部占比与其余肖像一致，其余照片保持原始取景。 */
.lawyer .avatar img.lawyer-photo[src*="20260929123945_e6e39f77f3af9ef8"] { transform: scale(1.45); transform-origin: 50% 0; }

/* 文字区：姓名 / 职务 / 专长 三段定高，卡片等高、按钮基线对齐 */
.lawyer .body { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 18px 20px; }
.lawyer .body h3 { font-size: 18px; line-height: 1.45; margin: 0 0 4px; }
.lawyer .body .role {
  color: var(--gold-text); font-size: 13px; font-weight: 600; line-height: 1.5; margin: 0 0 10px;
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 20px; height: 20px;
}
.lawyer .body p.spec {
  color: var(--ink-500); font-size: 13px; line-height: 1.7; margin: 0 0 10px; max-width: 22em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 3.4em; height: 3.4em;
}
.lawyer .body .meta { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; min-height: 22px; height: 22px; overflow: hidden; }
.lawyer .body .meta .tag { margin: 0; padding: 3px 10px; font-size: 12px; }
.lawyer .body .lawyer-card-btn { margin: 14px 0 0; align-self: center; padding: 9px 18px; min-height: 0; height: 34px; font-size: 13px; border-radius: 999px; }

@media (max-width: 860px) {
  #lawyers.grid-4 { grid-template-columns: repeat(2, 1fr); }
  .lawyer .body { padding: 14px 12px 16px; }
  .lawyer .body h3 { font-size: 16px; }
  .lawyer .body .role { font-size: 12px; }
  .lawyer .body p.spec { font-size: 12.5px; }
  .lawyer .avatar .initials { font-size: 38px; }
}
@media (max-width: 520px) {
  #lawyers.grid-4 { grid-template-columns: repeat(2, 1fr); }
  .lawyer .body { padding: 12px 10px 14px; }
  .lawyer .body h3 { font-size: 15px; }
  .lawyer .body .role { font-size: 11.5px; }
  .lawyer .body p.spec { font-size: 12px; }
  .lawyer .avatar .initials { font-size: 32px; }
  .lawyer .body .lawyer-card-btn { font-size: 12px; padding: 8px 14px; }
}

/* ==== LX TEAM FIX v2.4.3 START ==== */
/* 统一专业团队卡片版式：等高栅格 / 固定肖像比例 / 三段式文字 / 底部按钮基线；
   无公开照片的律师使用统一「机构文字肖像」，不再出现突兀的单字深蓝方块。 */
#lawyers.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
#lawyers .lawyer {
  display: flex; flex-direction: column; min-width: 0; height: 100%;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
#lawyers .lawyer:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
#lawyers .lawyer .avatar {
  position: relative; display: block; height: auto; aspect-ratio: 300 / 370;
  overflow: hidden; background: linear-gradient(150deg, var(--navy-700) 0%, var(--navy-900) 100%);
  font-family: var(--serif); color: var(--gold-400);
}
#lawyers .lawyer .avatar img.lawyer-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: 50% 14%;
}
#lawyers .lawyer .avatar img.lawyer-photo[hidden] { display: none; }
#lawyers .lawyer .avatar img.lawyer-photo[src*="20260929123945_e6e39f77f3af9ef8"] {
  transform: scale(1.45); transform-origin: 50% 0;
}
#lawyers .lawyer .avatar .initials {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  letter-spacing: .06em; text-align: center; padding: 0 12px;
  background: radial-gradient(circle at 50% 32%, rgba(220,189,110,.14), transparent 62%);
}
#lawyers .lawyer .avatar .initials::before {
  content: ""; width: 46px; height: 1px; background: rgba(220,189,110,.55);
}
#lawyers .lawyer .avatar .initials b { font-size: 27px; font-weight: 700; line-height: 1.25; }
#lawyers .lawyer .avatar .initials small {
  font-family: var(--sans, system-ui, sans-serif); font-size: 11px; font-weight: 400;
  letter-spacing: .14em; color: rgba(255,255,255,.62);
}
#lawyers .lawyer .body {
  flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column;
  align-items: center; text-align: center; padding: 18px 16px 20px;
}
#lawyers .lawyer .body h3 {
  width: 100%; font-size: 18px; font-weight: 600; line-height: 1.45; margin: 0 0 4px;
  color: var(--ink-900);
}
#lawyers .lawyer .body .role {
  width: 100%; min-height: 20px; color: var(--gold-text);
  font-size: 13px; font-weight: 600; line-height: 1.5; margin: 0 0 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#lawyers .lawyer .body p.spec {
  width: 100%; min-height: 3.4em; max-height: 3.4em; margin: 0 0 12px;
  color: var(--ink-500); font-size: 13px; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
#lawyers .lawyer .body .meta {
  width: 100%; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
  min-height: 22px; margin: 0;
}
#lawyers .lawyer .body .meta--extra { margin-top: 8px; min-height: 22px; }
#lawyers .lawyer .body .meta .tag {
  margin: 0; padding: 3px 9px; font-size: 12px; line-height: 1.4;
  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
#lawyers .lawyer .body .lawyer-card-btn {
  margin: auto 0 0; align-self: center; padding: 9px 18px;
  min-height: 0; height: 34px; font-size: 13px; border-radius: 999px;
}
@media (max-width: 1024px) { #lawyers.grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  #lawyers.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #lawyers .lawyer .body { padding: 14px 12px 16px; }
  #lawyers .lawyer .body h3 { font-size: 16px; }
  #lawyers .lawyer .body .role { font-size: 12px; }
  #lawyers .lawyer .body p.spec { font-size: 12.5px; }
  #lawyers .lawyer .avatar .initials b { font-size: 23px; }
}
@media (max-width: 520px) {
  #lawyers.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #lawyers .lawyer .body { padding: 12px 10px 14px; }
  #lawyers .lawyer .body h3 { font-size: 15px; }
  #lawyers .lawyer .body .role { font-size: 11.5px; }
  #lawyers .lawyer .body p.spec { font-size: 12px; }
  #lawyers .lawyer .avatar .initials b { font-size: 20px; }
  #lawyers .lawyer .avatar .initials small { font-size: 10px; letter-spacing: .08em; }
  #lawyers .lawyer .body .lawyer-card-btn { font-size: 12px; padding: 8px 14px; }
}
/* ==== LX TEAM FIX v2.4.3 END ==== */


/* =========================================================
   对比度修复覆盖层（WCAG 2.1 AA）— 2026-11-17
   说明：内联 style 中的低对比度色无法在样式表里直接改，
        用高优先级规则统一覆盖；不改变任何文字内容。
   ========================================================= */
.geo-meta-note, .geo-faq .geo-meta-note { color: #5f6b7a !important; }  /* 原 #8a9099 白底3.22 */
.brand .logo-text span { color: #5b6776 !important; }  /* 白色header上的副标题：白底5.76，保持深色 */
.site-footer .logo-text span, .site-footer .brand .logo-text span { color: #c8d2e0 !important; } /* 仅页脚深底用浅色10.8 */
.quote .stars, div.stars { color: var(--gold-text) !important; }         /* 原 gold-500 白底2.4 -> 5.87 */
h1[style*="--gold-500"], .err-code h1 { color: var(--gold-text) !important; } /* 404 大标题 */
/* 分类页脚深底上的 h3 标题：原继承 navy-900 造成 1:1，覆盖为浅色 */
.site-footer h3, footer h3, .site-footer .footer-col h3 { color: #fff !important; }
/* 分类条目计数 span.n：原 #8a9099 3.22 -> #5f6b7a */
.tag-cloud .n, .category-count .n, span.n { color: #5f6b7a !important; }
/* GEO 金色小标签：内联样式 #9a7d12 (3.59) -> #7a620d (5.33)，!important 覆盖内联 */
.geo-kicker, .geo-answer .geo-kicker, .geo-faq .geo-kicker { color: #7a620d !important; }


/* =========================================================
   布局美感修复 — 2026-11-17
   原则：只统一「同级卡片的等高与内容沉底」，改善视觉参差；
        不限制内容区块高度、不改信息结构、不截断任何内容。
   ========================================================= */
/* 4a. 所有 grid 容器的直接子项等高（grid 默认 stretch，但子项内部未 flex 撑满导致参差） */
.grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > * { height: 100%; }

/* 4b. 卡片内部改为 flex 纵向，footer/按钮/结果区沉底，使同排卡片底部对齐 */
.card, .case, .price, .quote, .lawyer { display: flex; flex-direction: column; }
.card .more, .case .foot, .case .more, .price .btn, .quote .who,
.lawyer .meta, .lawyer .lawyer-card-btn { margin-top: auto; }

/* 4c. 联系页 .grid-2 两列（表单 vs 信息）等高：信息列背景铺满、内容纵向分布 */
.grid-2 > .grid { align-self: stretch; }
.grid-2 > .grid > .tool-card, .grid-2 > .grid > .card { height: 100%; }

/* 4d. 工具卡片：结果框与按钮沉底，消除同排工具卡底部参差 */
.tool-card .btn, .tool-card .result-box, .tool-card .calc-error { margin-top: auto; }

/* 4e.  testimonials 引言卡等高 + 引用文字沉底 */
#testimonials .grid > *, .testimonial { height: 100%; display: flex; flex-direction: column; }
#testimonials .who, #testimonials .quote-author { margin-top: auto; }

/* 4f. 案例描述统一 2 行截断，避免单行/三行混排造成高度参差 */
.case .excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
/* 4f-2. 案例卡片：flex-wrap 换行场景下强制同排等高（覆盖旧的固定 flex-basis 布局） */
#cases > .case, #dbCases > .case { align-self: stretch; height: auto; min-height: 232px; }
#cases > .case .result, #dbCases > .case .result { min-height: 46px; }
#cases > .case .excerpt, #dbCases > .case .excerpt { min-height: 2.9em; }

/* 4g. 移动端（≤860）留白节奏统一：区块上下 padding 一致，卡片最小高度统一 */
@media (max-width: 860px) {
  .grid-3 > .card, .grid-3 > .case, .grid-3 > .tool-card { min-height: 150px; }
}
