@charset "UTF-8";
/* ============================================================
   张润根刑事辩护网 · 全局样式（重构版）
   设计系统：墨蓝 #0B1F33 / 香槟金 #C9A227 / 宣纸米白 #F7F5F0
   标题：Noto Serif SC（思源宋体）  正文：Noto Sans SC  数字：Inter
   容器宽度随屏幕分辨率自适应：
     屏幕 ≥1900px        → 1600 宽方案
     屏幕 1600~1899px    → 1400 宽方案
     屏幕 <1600px        → 1200 宽方案
   ============================================================ */

:root {
  --navy: #0B1F33;
  --navy-2: #14304D;
  --blue: #1D4370;
  --gold: #C9A227;
  --gold-2: #E0B53C;
  --gold-soft: rgba(201, 162, 39, 0.12);
  --cream: #F7F5F0;
  --ink: #16202C;
  --body: #56616E;
  --muted: #8A97A5;
  --line: #E7E2D8;
  --white: #FFFFFF;

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --num: "Inter", "Noto Sans SC", sans-serif;

  /* 基准方案：屏幕 <1600px → 1200 宽（最小桌面档） */
  --maxw: 1200px;
  --gap: 60px;
  --content: 1180px;
  --nav-fs: 16px;   /* 导航字号（较原 14px 增大 2 号） */
  --nav-gap: 22px;  /* 导航项间距 */

  /* Logo 尺寸（随分辨率分档放大，电脑版更协调） */
  --logo-fs: 22px;    /* 站名字号（较原 19px 增大） */
  --logo-mark: 42px;  /* 徽标图标尺寸 */
  --logo-sub: 12px;   /* 副标题字号 */
  --logo-gap: 13px;   /* 徽标与文字间距 */

  --radius: 3px;
  --shadow: 0 22px 55px rgba(11, 31, 51, 0.12);
  --shadow-sm: 0 10px 30px rgba(11, 31, 51, 0.08);
}

/* 屏幕 1600~1899px → 1400 宽方案 */
@media (min-width: 1600px) {
  :root { --maxw: 1400px; --gap: 96px; --nav-fs: 16px; --nav-gap: 30px;
          --logo-fs: 24px; --logo-mark: 44px; --logo-sub: 12px; --logo-gap: 14px; }
}
/* 屏幕 ≥1900px → 1600 宽方案 */
@media (min-width: 1900px) {
  :root { --maxw: 1600px; --gap: 120px; --nav-fs: 17px; --nav-gap: 36px;
          --logo-fs: 26px; --logo-mark: 48px; --logo-sub: 13px; --logo-gap: 15px; }
}
/* 平板及以下：撑满，仅留边距 */
@media (max-width: 1199px) {
  :root { --maxw: 100%; --gap: 48px; --nav-fs: 16px; --nav-gap: 0px;
          --logo-fs: 19px; --logo-mark: 38px; --logo-sub: 11px; --logo-gap: 12px; }
}
/* 手机 */
@media (max-width: 767px) {
  :root { --gap: 22px;
          --logo-fs: 17px; --logo-mark: 34px; --logo-sub: 10px; --logo-gap: 10px; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--white);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 700; line-height: 1.32; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gap); }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  padding: 14px 30px; border-radius: var(--radius);
  cursor: pointer; border: 1px solid transparent;
  transition: all .25s ease; white-space: nowrap;
}
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--navy); box-shadow: 0 8px 20px rgba(201,162,39,.22); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(201,162,39,.32); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(201,162,39,.55); }
.btn-ghost:hover { background: rgba(201,162,39,.14); border-color: var(--gold); }
.btn-dark { background: var(--navy); color: var(--gold); }
.btn-dark:hover { background: var(--navy-2); transform: translateY(-2px); }

/* ---------- 区块标题（充满父容器，左边缘与内容/导航/底部对齐） ---------- */
.sec-head { margin: 0; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.eyebrow .line { width: 34px; height: 2px; background: var(--gold); }
.eyebrow span { font-family: var(--num); font-size: 12px; font-weight: 500; letter-spacing: 2.5px; color: var(--gold); }
.sec-head h2 { font-size: 40px; color: var(--ink); margin-bottom: 16px; letter-spacing: .5px; }
.sec-head p { font-size: 15px; color: var(--body); }
.sec-head.center { text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(11, 31, 51, 0.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(201,162,39,.18);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gap);
  height: 84px; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: var(--logo-gap); }
.logo .mark { width: var(--logo-mark); height: var(--logo-mark); flex-shrink: 0; }
.logo .txt { display: flex; flex-direction: column; gap: 2px; }
.logo .name { font-family: var(--serif); font-weight: 700; font-size: var(--logo-fs); color: var(--white); line-height: 1.2; letter-spacing: .5px; }
.logo .sub { font-size: var(--logo-sub); color: var(--gold); letter-spacing: .5px; }

.nav { display: flex; align-items: center; gap: var(--nav-gap); }
.nav a {
  font-size: var(--nav-fs); color: #DBE2EA; position: relative; padding: 8px 0;
  letter-spacing: .3px; font-weight: 500;
  transition: color .2s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--gold); transition: width .25s ease;
}
.nav a:hover, .nav a.active { color: var(--white); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.header-contact { display: flex; align-items: center; gap: 8px; margin-left: 6px; }
.header-contact .hc {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #DBE2EA; border: 1px solid rgba(201,162,39,.28);
  transition: all .2s ease;
}
.header-contact .hc svg { width: 18px; height: 18px; }
.header-contact .hc:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); transform: translateY(-2px); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--white); transition: .3s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   首页 HERO 轮播
   ============================================================ */
.hero-slider {
  position: relative; height: 600px; overflow: hidden;
  background: var(--navy);
}
.hero-slider .slides { position: absolute; inset: 0; }
.hero-slider .slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .9s ease, visibility .9s ease;
  display: flex; align-items: center;
}
.hero-slider .slide-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0;
}
.hero-slider .slide.is-active { opacity: 1; visibility: visible; }
.hero-slider .slide::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(11,31,51,.92) 0%, rgba(11,31,51,.78) 45%, rgba(11,31,51,.45) 100%);
}
/* Banner 背景图：以 <img class="slide-bg"> 写在 index.html 内，便于循环/替换管理 */

.slide-content {
  position: relative; z-index: 2; max-width: var(--maxw); width: 100%;
  margin: 0 auto; padding: 0 var(--gap);
}
.slide-content .eyebrow span { color: var(--gold); }
.slide-content h1 {
  font-size: 58px; color: var(--white); line-height: 1.25; margin: 14px 0 22px;
  letter-spacing: 1px; max-width: 760px;
}
.slide-content .lead { font-size: 17px; color: #C2CCD8; line-height: 1.95; max-width: 620px; margin-bottom: 34px; }
.slide-content .hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25);
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .25s ease;
}
.slider-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.slider-arrow.prev { left: 28px; }
.slider-arrow.next { right: 28px; }
.slider-arrow svg { width: 20px; height: 20px; }
.slider-dots {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; gap: 12px;
}
.slider-dots button {
  width: 36px; height: 4px; border: none; border-radius: 4px; cursor: pointer;
  background: rgba(255,255,255,.3); transition: all .3s ease; padding: 0;
}
.slider-dots button.is-active { background: var(--gold); width: 52px; }

/* 轮播下方数据条 */
.hero-stats {
  background: var(--navy-2); border-top: 1px solid rgba(201,162,39,.2);
  border-bottom: 1px solid rgba(201,162,39,.2);
}
.hero-stats .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 34px var(--gap);
  display: flex; flex-wrap: wrap; justify-content: space-between; text-align: center;
}
.hero-stats .inner > div {
  flex: 1 1 0; min-width: 180px; position: relative; padding: 6px 32px;
}
.hero-stats .inner > div + div::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 52px;
  background: linear-gradient(180deg, rgba(201,162,39,0), rgba(201,162,39,.55), rgba(201,162,39,0));
}
.hero-stats .num { font-family: var(--num); font-size: 42px; font-weight: 700; color: var(--gold); line-height: 1.1; letter-spacing: .5px; }
.hero-stats .lbl { font-size: 14px; color: #A8B4C2; margin-top: 8px; letter-spacing: 1px; }

/* ============================================================
   首席律师 专属区块（与 Banner 解耦）
   ============================================================ */
.lead-lawyer { padding: 72px 0; background: var(--white); }
.lead-grid { display: grid; grid-template-columns: 460px 1fr; gap: 70px; align-items: center; }
.lead-photo { position: relative; }
.lead-photo .photo-frame {
  position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: linear-gradient(150deg, #1D4370, #0B1F33);
  border: 1px solid rgba(201,162,39,.5);
  box-shadow: var(--shadow);
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
}
.lead-photo .photo-frame::before {
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(201,162,39,.45); border-radius: 2px;
  pointer-events: none; z-index: 1;
}
.lead-photo .photo-frame .lead-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top; z-index: 0;
}
.lead-photo .photo-frame .ph-label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0;
  padding: 42px 16px 18px; text-align: center;
  font-family: var(--serif); font-size: 18px; color: #fff; letter-spacing: 5px;
  background: linear-gradient(to top, rgba(11,31,51,.88), rgba(11,31,51,0));
}
.lead-photo .badge {
  position: absolute; left: -14px; top: 28px; z-index: 2;
  background: var(--gold); color: var(--navy);
  font-family: var(--serif); font-weight: 700; font-size: 15px;
  padding: 10px 18px; border-radius: 2px; box-shadow: 0 8px 20px rgba(201,162,39,.35);
}
.lead-info .role { color: var(--gold); font-size: 14px; font-weight: 500; margin: 14px 0 18px; letter-spacing: .5px; }
.lead-info .bio { font-size: 15px; color: var(--body); line-height: 1.95; margin-bottom: 24px; }
.lead-points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; margin-bottom: 32px; }
.lead-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); }
.lead-points li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }
.lead-points li span { line-height: 1.6; }

/* ============================================================
   区块通用
   ============================================================ */
.section { padding: 64px 0; }
.section.alt { background: var(--cream); }

/* 内容区全宽图（About 页中部）：宽度 = 站点内容宽度（跟随 .container，上限 --maxw 并居中），
   并非铺满浏览器视口；高度随原图比例自适应，不裁切、不变形 */
.full-img-wrap { width: 100%; padding: 0; }
.full-img-wrap .container { line-height: 0; }
.full-img {
  margin: 0; width: 100%; line-height: 0; background: var(--navy);
  border-radius: var(--radius); overflow: hidden;
}
.full-img img {
  display: block; width: 100%; max-width: 100%; height: auto; /* height:auto → 高度跟随原图比例 */
}
/* 可选：窄屏裁切模式（给 .full-img 加 class="crop-sm" 即可启用）。
   超宽图（如 8:3）在手机上会过矮，启用后按 16:9 显示并裁掉左右两侧。 */
@media (max-width: 767px) {
  .full-img.crop-sm img { aspect-ratio: 16 / 9; object-fit: cover; height: auto; }
}

/* 服务领域卡片 */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.svc-card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 38px 32px 34px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.svc-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--gold); transition: width .3s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(201,162,39,.5); }
.svc-card:hover::before { width: 100%; }
.svc-card .ic { width: 42px; height: 42px; margin-bottom: 18px; }
.svc-card h3 { font-size: 20px; margin-bottom: 12px; }
.svc-card p { font-size: 13.5px; line-height: 1.9; }
.svc-card .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--gold); font-size: 13px; font-weight: 500; }
.svc-card .more svg { width: 16px; height: 16px; transition: transform .2s ease; }
.svc-card:hover .more svg { transform: translateX(4px); }

/* 为什么选择我们 */
.split { display: flex; gap: 80px; align-items: center; flex-wrap: wrap; }
.split .visual { flex: 1 1 480px; }
.split .content-box { flex: 1 1 520px; }
.visual-photo {
  width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: linear-gradient(135deg, #1D4370, #0B1F33); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.visual-photo img.visual-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0;
}
.visual-photo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background: linear-gradient(to top, rgba(11,31,51,.75), rgba(11,31,51,0));
  pointer-events: none; z-index: 1;
}
.visual-photo .ph-label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0;
  padding: 46px 20px 22px; text-align: center;
  font-family: var(--serif); color: #fff; letter-spacing: 4px; font-size: 16px;
  text-shadow: 0 1px 6px rgba(11,31,51,.5);
}
.fact-card { display: flex; gap: 24px; margin-top: 20px; background: var(--cream); padding: 24px 28px; border-radius: var(--radius); border: 1px solid var(--line); }
.fact { flex: 1; }
.fact .n { font-family: var(--num); font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.fact .l { font-size: 12px; color: var(--body); margin-top: 4px; }

/* 用数据说话（about 页） */
.stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 28px 0; margin-top: 48px; }
.stat { position: relative; flex: 1 1 200px; max-width: 280px; text-align: center; padding: 12px 24px; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 18%; height: 64%; width: 1px; background: linear-gradient(180deg, var(--gold), rgba(201,162,39,0)); opacity: .45; }
.stats .num { font-family: var(--num); font-size: 52px; font-weight: 700; color: var(--navy); line-height: 1; letter-spacing: 1px; }
.stats .num .u { font-size: 30px; color: var(--gold); margin-left: 2px; }
.stats .lbl { font-size: 14px; color: var(--body); margin-top: 14px; letter-spacing: 1px; }

.points { display: flex; flex-direction: column; gap: 30px; margin-top: 36px; }
.point { display: flex; gap: 20px; }
.point .n { font-family: var(--num); font-size: 24px; font-weight: 700; color: var(--gold); width: 60px; flex-shrink: 0; }
.point h4 { font-size: 18px; margin-bottom: 8px; }
.point p { font-size: 14px; line-height: 1.9; }

/* 案例分类筛选 */
.case-filter { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.case-filter button {
  font-family: var(--sans); font-size: 14px; color: var(--body);
  background: var(--white); border: 1px solid var(--line); border-radius: 40px;
  padding: 9px 22px; cursor: pointer; transition: all .2s ease;
}
.case-filter button:hover { border-color: var(--gold); color: var(--gold); }
.case-filter button.active { background: var(--navy); color: var(--gold); border-color: var(--navy); }

/* 案例卡片 */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.case-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; transition: transform .25s ease, box-shadow .25s ease; }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.case-top .tag { color: var(--gold); font-size: 12px; font-weight: 500; }
.case-top .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
.case-top .yr { color: var(--muted); font-size: 12px; font-family: var(--num); }
.case-card h3 { font-size: 18px; line-height: 1.5; margin-bottom: 12px; }
.case-card p { font-size: 13.5px; line-height: 1.85; }
.case-result { margin-top: 18px; }
.result-badge { display: inline-block; background: var(--navy); color: var(--gold); font-size: 12px; font-weight: 500; padding: 7px 14px; border-radius: var(--radius); }

/* 首页成功案例：左右横向滚动（可自动滚动 + 手动拖拽） */
.case-carousel { position: relative; display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.case-scroll { flex: 1; min-width: 0; margin-top: 0; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; padding-bottom: 0; scrollbar-width: none; -ms-overflow-style: none; }
.case-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }
.case-track { display: flex; gap: 24px; }
.case-track .case-card { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; }
.case-arrow {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(201,162,39,.35); background: var(--white); color: var(--navy);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 6px 18px rgba(11,31,51,.10); transition: all .2s ease;
}
.case-arrow svg { display: block; }
.case-arrow:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); transform: translateY(-1px); }
.case-arrow:active { transform: translateY(0); }
.cases-more { margin-top: 40px; text-align: center; }

/* 律师卡片 */
.lawyer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.lawyer-card { display: block; text-decoration: none; color: inherit; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.lawyer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.lawyer-photo { width: 100%; aspect-ratio: 2 / 3; max-height: 460px; background: linear-gradient(135deg, #1D4370, #0B1F33); position: relative; overflow: hidden; }
.lawyer-photo .ph-label { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); font-family: var(--serif); letter-spacing: 3px; }
.lawyer-info { padding: 26px 24px; }
.lawyer-info .nm { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--ink); }
.lawyer-info .rl { color: var(--gold); font-size: 13px; font-weight: 500; margin: 4px 0 12px; }
.lawyer-info .bio { font-size: 13.5px; line-height: 1.85; }

/* 律师详情页 */
.lawyer-detail { padding: 90px 0; }
.lawyer-detail .ld-grid { display: grid; grid-template-columns: 380px 1fr; gap: 60px; align-items: start; }
.ld-photo {
  width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: linear-gradient(150deg, #1D4370, #0B1F33);
  border: 1px solid rgba(201,162,39,.5); box-shadow: var(--shadow);
  position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
}
.ld-photo::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(201,162,39,.4); border-radius: 2px; pointer-events: none; z-index: 3; }
.ld-photo .ph-label { position: relative; z-index: 4; margin-bottom: 28px; font-family: var(--serif); font-size: 20px; color: rgba(255,255,255,.9); letter-spacing: 4px; }
.ld-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; z-index: 1; }
/* 有真实图片时：高度跟随原图比例完整显示，并保留金色双层边框（图层：图片1 < 底部渐变2 < 金框3 < 姓名4） */
.ld-photo:has(img) { aspect-ratio: auto; display: block; }
.ld-photo:has(img) img { position: relative; inset: auto; width: 100%; height: auto; z-index: 1; }
.ld-photo:has(img)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 96px;
  background: linear-gradient(to top, rgba(11,31,51,.9) 35%, rgba(11,31,51,0));
  z-index: 2; pointer-events: none;
}
.ld-photo:has(img) .ph-label {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 18px 14px 16px;
  text-align: center; z-index: 4; background: none;
}
.ld-role { color: var(--gold); font-size: 15px; font-weight: 500; margin: 6px 0 20px; letter-spacing: .5px; }
.ld-bio p { font-size: 15px; line-height: 1.95; margin-bottom: 16px; }
.ld-section { margin-top: 38px; }
.ld-section h3 { font-size: 22px; margin-bottom: 18px; padding-left: 14px; border-left: 3px solid var(--gold); }
.ld-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.ld-tags span { font-size: 13px; color: var(--navy); background: var(--gold-soft); border: 1px solid rgba(201,162,39,.4); padding: 7px 16px; border-radius: 30px; }
.ld-cases { display: flex; flex-direction: column; gap: 14px; }
.ld-case { display: flex; gap: 18px; padding: 18px 20px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); }
.ld-case .yr { font-family: var(--num); font-weight: 600; color: var(--gold); width: 72px; flex-shrink: 0; }
.ld-case .tt { font-size: 15px; color: var(--ink); line-height: 1.6; }
.ld-quote { font-family: var(--serif); font-size: 20px; color: var(--navy); line-height: 1.75; padding: 24px 28px; background: var(--cream); border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; }

/* 文章双栏 */
.two-col { display: flex; gap: 60px; flex-wrap: wrap; margin-top: 40px; }
.two-col .col { flex: 1 1 480px; }
.col-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; padding-bottom: 16px; border-bottom: 2px solid var(--line); }
.col-head h3 { font-size: 24px; }
.col-head .more { color: var(--gold); font-size: 13px; font-weight: 500; }
.article-list { display: flex; flex-direction: column; gap: 26px; }
.article-item { cursor: pointer; transition: transform .2s ease; }
.article-item:hover { transform: translateX(4px); }
.article-item .t { font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--ink); line-height: 1.6; margin-bottom: 8px; transition: color .2s ease; }
.article-item:hover .t { color: var(--gold); }
.article-item .m { font-size: 12px; color: var(--muted); }
.article-item.divider { border-top: 1px dashed var(--line); padding-top: 26px; }

/* ---------- 栏目列表页文章卡片（办案随笔 / 个人感悟 / 专业文章） ---------- */
.article-list.paginate { gap: 22px; counter-reset: art; }
.article-list.paginate .article-item {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 40px 26px 44px; overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.article-list.paginate .article-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  transform: scaleY(0); transform-origin: top center; transition: transform .32s ease;
}
.article-list.paginate .article-item:hover {
  transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(201,162,39,.45);
}
.article-list.paginate .article-item:hover::before { transform: scaleY(1); }
/* 右上角序号：每页从 01 重新计数，营造专栏连载感 */
.article-list.paginate .article-item .t::before {
  counter-increment: art; content: counter(art, decimal-leading-zero);
  position: absolute; right: 34px; top: 20px; pointer-events: none;
  font-family: var(--num); font-size: 42px; font-weight: 700; line-height: 1;
  letter-spacing: 1px; color: rgba(201,162,39,.16);
}
.article-list.paginate .article-item .t {
  font-family: var(--serif); font-weight: 700; font-size: 21px; color: var(--ink);
  line-height: 1.5; margin-bottom: 12px; padding-right: 82px;
  transition: color .2s ease;
}
.article-list.paginate .article-item:hover .t { color: var(--gold); }
.article-list.paginate .article-item .m {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-size: 12.5px; color: var(--muted); letter-spacing: .4px;
}
.article-list.paginate .article-item .m::before {
  content: ""; flex: none; width: 18px; height: 1px; background: var(--gold);
}
.article-list.paginate .article-item .ex {
  margin: 0; font-size: 14px; color: var(--body); line-height: 1.9;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-list.paginate .article-item::after {
  content: "阅读全文 →"; align-self: flex-end; margin-top: 18px;
  font-size: 13px; font-weight: 500; color: var(--gold);
  opacity: .72; transition: opacity .25s ease, transform .25s ease;
}
.article-list.paginate .article-item:hover::after { opacity: 1; transform: translateX(5px); }
@media (max-width: 767px) {
  .article-list.paginate { gap: 16px; }
  .article-list.paginate .article-item { padding: 22px 20px 20px 24px; }
  .article-list.paginate .article-item .t { font-size: 18px; padding-right: 54px; }
  .article-list.paginate .article-item .t::before { font-size: 30px; right: 18px; top: 16px; }
  .article-list.paginate .article-item .ex { -webkit-line-clamp: 3; }
  .article-list.paginate .article-item::after { margin-top: 14px; }
}

/* 法律速递列表 */
.news-list { margin-top: 48px; display: flex; flex-direction: column; gap: 14px; }
.news-row { display: flex; align-items: center; gap: 28px; background: var(--cream); padding: 22px 24px; border-radius: var(--radius); border: 1px solid transparent; transition: background .2s ease, transform .2s ease, border-color .2s ease; }
.news-row:hover { background: #efe9da; transform: translateX(4px); border-color: rgba(201,162,39,.35); }
.news-row .date { font-family: var(--num); font-weight: 600; font-size: 14px; color: var(--gold); width: 110px; flex-shrink: 0; }
.news-row .title { flex: 1; font-size: 16px; font-weight: 500; color: var(--ink); line-height: 1.5; }
.news-row .tag { width: 90px; text-align: right; color: var(--muted); font-size: 12px; flex-shrink: 0; }

/* ============================================================
   子页 Banner
   ============================================================ */
.banner {
  background: var(--navy);
  background-image: radial-gradient(700px 420px at 82% -20%, rgba(29,67,112,.7), transparent 60%);
  padding: 60px var(--gap) 64px;
}
.banner .crumb { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.banner .crumb a:hover { color: var(--gold); }
.banner .en { font-family: var(--num); font-size: 12px; letter-spacing: 2.5px; color: var(--gold); }
.banner h1 { font-size: 44px; color: var(--white); margin: 8px 0 12px; letter-spacing: .5px; }
.banner p { font-size: 15px; color: #A8B4C2; line-height: 1.85; }
/* 子页 Banner 文字按全局宽度居中，与导航/内容/底部左右对齐 */
.banner > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

/* ============================================================
   CTA 区块
   ============================================================ */
.cta {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  padding: 64px var(--gap);
  display: flex; align-items: center; justify-content: space-between; gap: 60px; flex-wrap: wrap;
}
.cta::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 100vw;
  background-color: var(--blue);
  background-image:
    radial-gradient(680px 340px at 88% 50%, rgba(201,162,39,.22), transparent 62%),
    linear-gradient(115deg, var(--navy-2) 0%, var(--blue) 48%, var(--navy-2) 100%);
  border-top: 1px solid rgba(201,162,39,.45);
  border-bottom: 1px solid rgba(201,162,39,.45);
  z-index: -1;
}
.cta .t { font-family: var(--serif); font-weight: 700; font-size: 32px; color: var(--white); line-height: 1.4; margin-bottom: 14px; }
.cta .d { font-size: 15px; color: #A8B4C2; max-width: 640px; line-height: 1.85; }
.cta-right { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-phone .lbl { font-size: 12px; color: var(--muted); }
.cta-phone .num { font-family: var(--num); font-weight: 700; font-size: 28px; color: var(--gold); line-height: 1.2; }

/* ============================================================
   FOOTER（精简版 + 友情链接）
   ============================================================ */
.site-footer { background: var(--navy); color: var(--muted); padding: 64px 0 0; }
.footer-top { max-width: var(--maxw); margin: 0 auto; display: flex; gap: 48px; flex-wrap: wrap; padding: 0 var(--gap) 44px; align-items: flex-start; }
.footer-brand { flex: 1.3 1 300px; max-width: 340px; }
.footer-brand .fb-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .fb-head .mark { width: 36px; height: 36px; }
.footer-brand .fb-name { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--white); }
.footer-brand .fb-en { font-family: var(--num); font-size: 10px; letter-spacing: 1px; color: var(--gold); }
.footer-brand p { font-size: 13px; line-height: 1.9; margin-bottom: 16px; }
.footer-phone { display: flex; align-items: center; gap: 10px; }
.footer-phone svg { width: 18px; height: 18px; }
.footer-phone b { font-family: var(--num); font-size: 21px; font-weight: 600; color: var(--white); }
.footer-col { flex: 1 1 180px; min-width: 150px; }
.footer-top > .footer-col:nth-child(2) { flex: 0.8 1 150px; }   /* 快速导航：收窄，减少右侧空白 */
.footer-top > .footer-col:nth-child(3) { flex: 1.1 1 240px; }  /* 联系我们：加宽 */
.footer-col h4 { font-family: var(--serif); font-weight: 600; font-size: 15px; color: var(--white); margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; font-size: 13px; line-height: 2.05; color: var(--muted); transition: color .2s ease; }
.footer-col a:hover { color: var(--gold); }
/* 联系我们：黄色图标 + 信息行 */
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.contact-list li svg { width: 16px; height: 16px; color: var(--gold); flex: 0 0 auto; margin-top: 3px; }
.contact-list a { color: var(--muted); }
.contact-list a:hover { color: var(--gold); }
.contact-list .ci-hours { opacity: .85; }
.footer-divider { max-width: var(--maxw); margin: 0 auto; height: 1px; background: rgba(201,162,39,.22); }
.footer-links {
  max-width: var(--maxw); margin: 0 auto; padding: 24px var(--gap); display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px;
  border-top: 1px solid rgba(201,162,39,.12);
}
.footer-links .fl-label { font-size: 13px; color: var(--white); font-weight: 500; margin-right: 4px; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color .2s ease; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--gap) 34px; flex-wrap: wrap; gap: 10px; font-size: 12px; }
.footer-bottom a:hover { color: var(--gold); }

/* ============================================================
   联系我们
   ============================================================ */
.contact-grid { display: flex; gap: 60px; flex-wrap: wrap; align-items: flex-start; }
.contact-info { flex: 1 1 380px; }
.contact-info .ci-item { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-info .ci-item:last-child { border-bottom: none; }
.contact-info .ci-ic { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: var(--gold-soft); display: flex; align-items: center; justify-content: center; }
.contact-info .ci-ic svg { width: 20px; height: 20px; }
.contact-info .ci-t { font-family: var(--serif); font-weight: 600; font-size: 16px; color: var(--ink); }
.contact-info .ci-d { font-size: 14px; color: var(--body); margin-top: 4px; line-height: 1.7; }

.contact-form { flex: 1 1 480px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.contact-form h3 { font-size: 22px; margin-bottom: 6px; }
.contact-form .sub { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 14px; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--cream);
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--white); }
.field textarea { resize: vertical; min-height: 120px; }
.c-error { display: none; color: #B42318; font-size: 13px; margin-bottom: 14px; }
.c-success { display: none; align-items: center; gap: 10px; background: #E7F3EA; color: #1F7A3D; font-size: 14px; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 16px; }
.c-success svg { width: 20px; height: 20px; flex-shrink: 0; }

.map-ph {
  width: 100%; aspect-ratio: 16 / 7; min-height: 320px; border-radius: var(--radius); margin-top: 40px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1D4370, #0B1F33);
  display: flex; align-items: center; justify-content: center;
}
.map-ph::before { content:""; position:absolute; inset:0; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 40px), repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 40px); }
.map-ph .pin { position: relative; z-index: 1; text-align: center; color: #fff; }
.map-ph .pin svg { width: 44px; height: 44px; }
.map-ph .pin p { font-size: 14px; margin-top: 10px; letter-spacing: 1px; }
/* 腾讯地图容器：用 opacity 隐藏而非 display:none —— display:none 会让容器失去布局尺寸，
   TMap.Map 初始化时测到 0×0 导致地图空白（经典坑）。opacity:0 仍保留布局，可被正确测量。 */
.map-ph .map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; opacity: 0; pointer-events: none; background: #0B1F33; transition: opacity .45s ease; }
.map-ph.has-map .map-canvas { opacity: 1; pointer-events: auto; }
.map-ph.has-map .pin { display: none; }
.map-open { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--gold); font-size: 14px; text-decoration: none; }
.map-open:hover { text-decoration: underline; }
.map-open svg { width: 15px; height: 15px; }
/* 地图信息窗内的品牌化样式 */
.map-ph .map-canvas .tx-info { padding: 10px 14px; font-size: 13px; line-height: 1.7; color: #0B1F33; font-family: inherit; }
.map-ph .map-canvas .tx-info b { display: block; font-size: 14px; margin-bottom: 2px; color: #0B1F33; }

/* ============================================================
   滚动揭示动画（无 JS 也可见，安全降级）
   ============================================================ */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* 返回顶部 */
.to-top {
  position: fixed; right: 28px; bottom: 28px; width: 46px; height: 46px;
  background: var(--gold); color: var(--navy); border: none; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s ease; z-index: 90;
  box-shadow: 0 8px 22px rgba(201,162,39,.35);
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }

/* ============================================================
   右侧随屏滚动工具栏
   ============================================================ */
.side-bar {
  position: fixed; right: 10px; bottom: 64px; z-index: 95;
  display: flex; flex-direction: column; gap: 12px;
}
.sb-item {
  position: relative;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(11,31,51,.92); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(11,31,51,.28);
  border: 1px solid rgba(201,162,39,.28);
  transition: all .25s ease; cursor: pointer;
}
.sb-item .sb-ic { width: 22px; height: 22px; display: flex; }
.sb-item .sb-ic svg { width: 100%; height: 100%; }
.sb-item:hover { background: var(--navy); border-color: var(--gold); transform: translateY(-2px); }
.sb-consult { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--navy); border-color: transparent; }
.sb-consult:hover { background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.sb-top { width: 46px; height: 46px; background: rgba(11,31,51,.7); }

/* 随屏工具栏悬浮提示（出现在图标左侧） */
.sb-tip {
  position: absolute; right: calc(100% + 14px); top: 50%; transform: translateY(-50%);
  background: var(--navy); color: #fff; border: 1px solid rgba(201,162,39,.35);
  padding: 9px 14px; border-radius: 6px; white-space: nowrap;
  font-size: 13px; font-family: var(--sans); box-shadow: var(--shadow-sm);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease; z-index: 5;
}
.sb-item:hover .sb-tip { opacity: 1; visibility: visible; }
.sb-tip b { color: var(--gold); font-family: var(--num); font-weight: 600; }
.sb-tip.qr { padding: 8px; }
.sb-tip.qr img { width: 120px; height: 120px; display: block; border-radius: 4px; }

/* ============================================================
   页脚：社媒图标 + 二维码
   ============================================================ */
.footer-follow { flex: 1.4 1 260px; min-width: 240px; }
.social { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; justify-content: flex-start; align-items: center; }
.soc {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px; overflow: hidden;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.14);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.soc-img { width: 100%; height: 100%; display: block; object-fit: cover; }
.soc:hover {
  background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3);
  transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.32);
}
.qr-row { display: flex; gap: 16px; flex-wrap: wrap; }
.qr-box { background: #fff; border-radius: 4px; padding: 8px; text-align: center; }
.qr-box img { width: 84px; height: 84px; display: block; }
.qr-box span { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.qr-service .wx-mobile { display: none; align-items: center; justify-content: center; gap: 6px; color: var(--gold); font-size: 13px; font-weight: 500; margin-top: 6px; }
.qr-service .wx-mobile svg { width: 18px; height: 18px; }

/* ============================================================
   微信弹窗（扫码咨询）
   ============================================================ */
.wx-modal { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; }
.wx-modal.open { display: flex; }
.wx-mask { position: absolute; inset: 0; background: rgba(7,16,28,.6); }
.wx-card { position: relative; background: #fff; border-radius: 6px; padding: 28px 26px; text-align: center; width: 280px; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.wx-x { position: absolute; top: 6px; right: 12px; border: none; background: none; font-size: 24px; color: #aaa; cursor: pointer; line-height: 1; }
.wx-tt { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--ink); margin-bottom: 16px; }
.wx-card img { width: 180px; height: 180px; margin: 0 auto 14px; }
.wx-id { font-size: 14px; color: var(--body); margin-bottom: 10px; }
.wx-copy { display: inline-block; font-size: 13px; color: var(--navy); background: var(--gold-soft); padding: 8px 16px; border-radius: 30px; cursor: pointer; }

/* ============================================================
   咨询预约弹窗（表单与联系页"在线预约咨询"一致）
   ============================================================ */
.consult-modal { position: fixed; inset: 0; z-index: 410; display: none; align-items: center; justify-content: center; padding: 20px; }
.consult-modal.open { display: flex; }
.consult-card {
  position: relative; background: #fff; border-radius: 8px;
  padding: 30px 28px; width: 440px; max-width: 100%; max-height: 90vh; overflow: auto;
  box-shadow: 0 30px 70px rgba(0,0,0,.4);
}
.consult-card .wx-x { color: #999; }
.consult-card .sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }

/* ============================================================
   分页
   ============================================================ */
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 44px; flex-wrap: wrap; }
.pager button, .pager .pg {
  font-family: var(--sans); font-size: 14px; min-width: 40px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line); background: #fff; color: var(--body);
  border-radius: 4px; cursor: pointer; transition: all .2s ease;
}
.pager button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.pager button.active { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.pager button:disabled { opacity: .45; cursor: not-allowed; }
.pager .pg-ellipsis { min-width: auto; padding: 0; border: none; background: none; }

/* ============================================================
   平板 / 手机 自适应
   ============================================================ */
@media (max-width: 1199px) {
  .nav { position: fixed; top: 84px; left: 0; right: 0; background: var(--navy);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 0 var(--gap);
    max-height: 0; overflow: hidden; transition: max-height .35s ease; border-top: 1px solid rgba(201,162,39,.18); }
  .nav.open { max-height: 540px; }
  .nav a { width: 100%; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav a::after { display: none; }
  .hamburger { display: flex; }
  .card-grid, .card-grid-4, .case-grid, .lawyer-grid { grid-template-columns: repeat(2, 1fr); }
  .lead-grid { grid-template-columns: 1fr; gap: 44px; }
  .lead-photo { max-width: 420px; }
  .ld-grid { grid-template-columns: 1fr; gap: 40px; }
  .ld-photo { max-width: 400px; }
  .hero-slider { height: 520px; }
  .slide-content h1 { font-size: 46px; }
  .split { flex-direction: column; align-items: stretch; }
  .split .visual, .split .content-box { flex: none; width: 100%; }
  .cta { flex-direction: column; align-items: flex-start; }
  /* 平板：16:7 太扁，放宽到 16:9，保证地图有足够可视高度 */
  .map-ph { aspect-ratio: 16 / 9; min-height: 280px; margin-top: 32px; }
}

@media (max-width: 767px) {
  :root { --gap: 22px; }
  .section { padding: 66px 0; }
  .card-grid, .card-grid-4, .case-grid, .lawyer-grid { grid-template-columns: 1fr; }
  .lawyer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-slider { height: 460px; }
  .slide-content h1 { font-size: 32px; }
  .slide-content .lead { font-size: 15px; }
  .slider-arrow { display: none; }
  .sec-head h2 { font-size: 30px; }
  .split { gap: 30px; align-items: stretch; }
  .split .visual, .split .content-box { flex: none; width: 100%; }
  .visual-photo { aspect-ratio: 4 / 3; }
  .fact-card { padding: 18px 20px; gap: 18px; }
  .fact .n { font-size: 22px; }
  .fact .l { font-size: 11px; }
  .case-carousel { gap: 10px; }
  .case-track { gap: 16px; }
  .case-track .case-card { flex: 0 0 100%; }
  .case-arrow { width: 38px; height: 38px; }
  .banner h1 { font-size: 30px; }
  .banner { padding: 44px var(--gap) 48px; }
  .cta .t { font-size: 24px; }
  .hero-stats .inner { gap: 26px 0; }
  .hero-stats .inner > div { flex: 1 1 45%; min-width: 0; padding: 4px 12px; }
  .hero-stats .inner > div + div::before { display: none; }
  .hero-stats .num { font-size: 32px; }
  /* 手机：窄屏下 16:7 会被压成一条，改成 4:3 让地图有足够可视范围 */
  .map-ph { aspect-ratio: 4 / 3; min-height: 280px; margin-top: 26px; }
  .map-open { font-size: 13px; margin-top: 12px; }
  /* 信息窗限宽，避免窄屏溢出屏幕 */
  .map-ph .map-canvas .tx-info { max-width: 220px; font-size: 12px; padding: 8px 12px; }
  .map-ph .map-canvas .tx-info b { font-size: 13px; }
  .lead-points { grid-template-columns: 1fr; }
  .stats { gap: 22px 0; }
  .stat { flex: 1 1 100%; max-width: 100%; padding: 14px 0; }
  .stat + .stat::before { display: none; }
  .stats .num { font-size: 42px; }
  .news-row { flex-wrap: wrap; gap: 8px; }
  .news-row .date { width: auto; }
  .news-row .tag { width: auto; text-align: left; }
  .two-col { flex-direction: column; gap: 40px; }
  .footer-top { gap: 36px; }
  .to-top { display: none; }
  .side-bar { top: auto; bottom: 14px; right: 14px; left: 14px; transform: none; flex-direction: row; justify-content: center; gap: 14px; background: transparent; }
  .sb-item { width: 50px; height: 50px; background: rgba(11,31,51,.95); color: #fff; flex: 0 0 auto; }
  .sb-item .sb-tx { display: none; }
  /* 必须显式还原金色：上面的 .sb-item 背景会覆盖 .sb-consult 的金渐变，
     否则深蓝图标(currentColor)压在深蓝底上 = 看不见 */
  .sb-consult { padding: 0; width: 54px; height: 54px; flex: 0 0 54px; border-radius: 50%;
                background: linear-gradient(135deg, var(--gold), var(--gold-2));
                color: var(--navy); border-color: transparent; }
  .qr-service .qr-img, .qr-service .qr-cap { display: none; }
  .qr-service .wx-mobile { display: flex; }
  .qr-row { width: 100%; justify-content: center; }
}

/* 超窄屏（iPhone SE 等 320~360px）：收小悬浮工具栏，避免 5 个按钮挤出屏幕 */
@media (max-width: 360px) {
  .side-bar { right: 10px; left: 10px; bottom: 12px; gap: 9px; }
  .sb-item { width: 44px; height: 44px; }
  .sb-item .sb-ic { width: 19px; height: 19px; }
  .sb-consult { width: 48px; height: 48px; flex: 0 0 48px; }
  .sb-top { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   列表摘要 / 详情页
   ============================================================ */
.list-body .ex { font-size: 13px; color: var(--muted); line-height: 1.7; margin-top: 6px; }
.detail-body { max-width: 100%; }
.detail-body .lead { font-size: 17px; color: var(--ink); line-height: 1.95; margin-bottom: 30px; }
.detail-body h3 { font-size: 22px; margin: 34px 0 14px; }
.detail-body p { font-size: 15px; line-height: 1.95; margin-bottom: 16px; }
.detail-tags { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.detail-tags span { font-size: 12px; color: var(--gold); border: 1px solid rgba(201,162,39,.4); padding: 5px 12px; border-radius: 30px; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; flex-wrap: wrap; }
.post-nav a { flex: 1 1 280px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; transition: all .2s ease; }
.post-nav a:hover { border-color: var(--gold); transform: translateY(-2px); }
.post-nav .dir { font-size: 12px; color: var(--muted); }
.post-nav .tt { font-family: var(--serif); font-weight: 600; font-size: 16px; color: var(--ink); margin-top: 6px; line-height: 1.5; }
.post-nav .next { text-align: right; }

/* ============================================================
   PbootCMS 模板补充样式
   ============================================================ */
.lawyer-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-meta { font-size: 13px; color: var(--muted); margin: 18px 0 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.post-body { font-size: 15px; line-height: 1.95; color: var(--body); }
.post-body img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 18px 0; }
.post-body p { margin-bottom: 16px; }
.post-body h3, .post-body h4 { color: var(--navy); margin: 28px 0 12px; }

.side-h { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 16px; padding-left: 12px; border-left: 3px solid var(--gold); }
.side .article-item { padding: 14px 0; border-bottom: 1px solid var(--line); display: block; }
.side .article-item .t { font-size: 14px; line-height: 1.5; color: var(--ink); }
.side .article-item .m { font-size: 12px; color: var(--muted); margin-top: 4px; }
.side .article-item:hover .t { color: var(--gold); }

.pagebar-wrap { display: flex; justify-content: center; margin-top: 40px; }
.pagebar, .pagination { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pagebar a, .pagebar span, .pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--white); font-size: 14px; }
.pagebar a:hover, .pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagebar .active, .pagination .active { background: var(--navy); color: var(--gold); border-color: var(--navy); }
