/* ============================================================
   苏景林律师网站 — 藏青 + 金 专业律所风（按设计稿还原）
   ============================================================ */
:root {
  --navy: #16233d;           /* 页脚 / 最深 */
  --navy-2: #1f3252;         /* 深蓝带 */
  --navy-a: #1c2e4c;         /* 渐变起 */
  --navy-b: #2a4368;         /* 渐变止 */
  --head: #22314e;           /* 标题藏青 */
  --gold: #b0843c;
  --gold-lite: #c6a05c;
  --gold-a: #cba25a;         /* 金按钮渐变起 */
  --gold-b: #a87c33;         /* 金按钮渐变止 */
  --ink: #34383f;
  --muted: #737884;
  --bg: #ffffff;
  --soft: #f7f5f0;
  --hero-bg: #f4f2ec;
  --line: #ebe7df;
  --line2: #e2ded4;
  --wrap: 1200px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", sans-serif;
  --font-hand: "STXingkai", "KaiTi", "STKaiti", "楷体", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.8; font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; transition: color .2s; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
svg { width: 100%; height: 100%; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 30px; font-size: 15px;
  border: 0; cursor: pointer; border-radius: 4px; font-family: inherit; transition: all .25s; }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-a), var(--gold-b)); color: #fff;
  box-shadow: 0 8px 20px rgba(168,124,51,.28); }
.btn-gold:hover { filter: brightness(1.06); color: #fff; box-shadow: 0 10px 26px rgba(168,124,51,.36); }
.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-line { background: #fff; border: 1px solid var(--line2); color: var(--head); }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- 头部 ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.header-inner { display: flex; align-items: center; height: 74px; gap: 30px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand .logo { width: 40px; height: 40px; color: var(--gold); flex: 0 0 40px; }
.logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }
.brand .brand-text { min-width: 0; }
/* 网站名称是后台自由文本，长度不定；截断+省略号兜底，不管填多长都不会撑破头部高度 */
.brand .brand-text b { font-size: 20px; letter-spacing: 3px; color: var(--head); display: block; font-weight: 700;
  line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.brand .brand-text span { font-size: 10px; color: var(--gold); letter-spacing: 2.5px; font-weight: 600; }
.nav { display: flex; gap: 4px; margin-left: 20px; }
.nav a { color: #3d4149; padding: 8px 15px; font-size: 15px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: -1px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: center; transition: transform .25s; }
.nav a:hover { color: var(--head); } .nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--head); font-weight: 600; }
.header-phone { margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line2); border-radius: 999px; padding: 9px 20px 9px 16px; color: var(--head);
  font-size: 15px; font-weight: 600; }
.header-phone .ic { width: 17px; height: 17px; color: var(--gold); }
.header-phone:hover { border-color: var(--gold); color: var(--gold); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--head); font-size: 26px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { background: var(--hero-bg); position: relative; overflow: hidden; }
.hero-inner { display: flex; align-items: center; min-height: 540px; position: relative; z-index: 2; }
.hero-text { max-width: 540px; padding: 60px 0; }
.hero-eyebrow { color: var(--gold); letter-spacing: 4px; font-size: 15px; margin-bottom: 22px; font-weight: 500; }
.hero-title { font-size: clamp(38px, 5vw, 56px); font-weight: 800; color: var(--head); line-height: 1.24; margin: 0 0 24px; letter-spacing: 1px; }
.hero-title .gold { color: var(--gold); }
.hero-sub { color: var(--muted); font-size: 16px; line-height: 2; margin: 0 0 32px; max-width: 460px; }
.hero-cta { margin-bottom: 40px; }
.hero-features { display: flex; flex-wrap: wrap; gap: 26px 34px; }
.hero-features .feat { display: flex; align-items: center; gap: 10px; color: #4a4f58; font-size: 14.5px; }
.hero-features .feat .ic { width: 34px; height: 34px; border: 1px solid var(--gold); border-radius: 50%;
  color: var(--gold); padding: 7px; flex: 0 0 34px; }
/* 照片是宽幅场景图（实测约 3:1），做整个 hero 的全幅背景，而不是塞进右侧竖版格子
   （塞进竖版格子会用 cover 裁掉七成以上画面，导致“显示不完整”）。 */
.hero-photo { position: absolute; inset: 0; z-index: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.hero-scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--hero-bg) 0%, var(--hero-bg) 33%, rgba(244,242,236,.85) 45%, rgba(244,242,236,.4) 58%, rgba(244,242,236,0) 72%); }

/* ---------- 分区标题 ---------- */
.sec { padding: 74px 0; }
.sec.soft { background: var(--soft); }
.sec-title { text-align: center; margin-bottom: 46px; }
.sec-title h2 { font-size: 30px; color: var(--head); font-weight: 700; margin: 0; letter-spacing: 1px; }
.sec-title .u { width: 46px; height: 3px; background: var(--gold); margin: 14px auto 0; }
.sec-title p { color: var(--muted); margin: 16px 0 0; font-size: 15px; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.sec-head-row .sec-title { text-align: left; margin: 0; }
.sec-head-row .sec-title .u { margin: 14px 0 0; }
.more-link { color: var(--gold); font-size: 14.5px; white-space: nowrap; }
.more-link:hover { color: var(--gold-b); }

/* ---------- 专业领域卡片 ---------- */
.prac-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
/* areas.html 用 3 列（专业领域列表页），跟首页 5 列区分——用类而不是行内 style，
   这样下面的响应式媒体查询才能正常覆盖它（行内 style 优先级最高，任何媒体查询都盖不过，
   之前就是这样导致该页面窄屏下死板卡在 3 列一直没适配） */
.prac-grid-3 { grid-template-columns: repeat(3, 1fr); }
/* 各卡片列表条数不一样，"了解更多"链接原本紧跟在列表后面，每张卡高度不同、链接位置参差不齐。
   卡片改竖排flex，链接用 margin-top:auto 推到底部、align-self靠右，统一落在右下角。 */
.prac-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 28px 22px; transition: all .25s;
  display: flex; flex-direction: column; }
.prac-card:hover { border-color: var(--gold-lite); box-shadow: 0 14px 34px rgba(22,35,61,.09); transform: translateY(-4px); }
.prac-card .head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.prac-card .head .ic { width: 30px; height: 30px; color: var(--gold); flex: 0 0 30px; }
.prac-card .head .name { font-size: 17px; font-weight: 700; color: var(--head); }
.prac-card .list { list-style: none; margin: 0 0 16px; padding: 0; }
.prac-card .list li { position: relative; padding-left: 16px; color: #5b6069; font-size: 14px; line-height: 2.1; }
.prac-card .list li::before { content: ""; position: absolute; left: 0; top: 13px; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }
.prac-card .more { color: var(--gold); font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto; align-self: flex-end; }
.prac-card:hover .more .arr { transform: translateX(4px); }
.prac-card .more .arr { transition: transform .25s; }

/* ---------- 四大理由（深蓝带） ---------- */
.reasons { background: linear-gradient(120deg, var(--navy-a), var(--navy-b)); color: #fff; padding: 66px 0; }
.reasons .sec-title h2 { color: #fff; } .reasons .sec-title .u { background: var(--gold-lite); }
.reasons-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.reason { text-align: center; padding: 12px 26px; position: relative; }
.reason + .reason::before { content: ""; position: absolute; left: 0; top: 10%; bottom: 10%; width: 1px; background: rgba(255,255,255,.12); }
.reason .ic { width: 58px; height: 58px; border: 1px solid rgba(198,160,92,.6); border-radius: 50%; color: var(--gold-lite); padding: 15px; margin: 0 auto 18px; }
.reason .t { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.reason .d { color: #b7c0d0; font-size: 13.5px; line-height: 1.9; }

/* ---------- 关于（图 + 信息 + 数据） ---------- */
.about2 { display: grid; grid-template-columns: 0.9fr 1.25fr 0.55fr; gap: 44px; align-items: center; }
.about-img { position: relative; }
.about-img img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; border-radius: 4px; }
.about-img::after { content: ""; position: absolute; right: -12px; bottom: -12px; width: 70%; height: 70%; border: 2px solid var(--gold); border-radius: 4px; z-index: -1; }
.at-title { font-size: 26px; font-weight: 700; color: var(--head); margin: 0 0 16px; }
.at-sub { color: var(--muted); font-size: 15px; margin: 0 0 22px; line-height: 2; }
.info-list { display: grid; gap: 14px; }
.info-list .row { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.info-list .row .ic { width: 20px; height: 20px; color: var(--gold); flex: 0 0 20px; margin-top: 3px; }
.info-list .row .k { color: var(--head); font-weight: 600; margin-right: 6px; }
.info-list .row .v { color: var(--muted); }
.stat-col { display: grid; gap: 22px; }
.stat-col .stat { border-left: 2px solid var(--line2); padding-left: 18px; }
.stat-col .num { font-size: 34px; font-weight: 800; color: var(--gold); line-height: 1; letter-spacing: 1px; }
.stat-col .num .u { font-size: 15px; margin-left: 3px; }
.stat-col .l { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* ---------- 案例卡片 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.case-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: all .25s; }
.case-card:hover { box-shadow: 0 16px 36px rgba(22,35,61,.10); transform: translateY(-4px); }
.case-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--soft); }
.case-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.case-card:hover .thumb img { transform: scale(1.05); }
.case-card .body { padding: 20px 22px 24px; }
.case-card .cat { color: var(--gold); font-size: 12.5px; letter-spacing: 1px; margin-bottom: 8px; }
.case-card h3 { font-size: 16.5px; color: var(--head); margin: 0 0 10px; font-weight: 700; line-height: 1.5; }
.case-card p { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case-card .more { color: var(--gold); font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.case-card:hover .more .arr { transform: translateX(4px); } .case-card .more .arr { transition: transform .25s; }

/* ---------- CTA 带 ---------- */
.cta { background: linear-gradient(120deg, rgba(19,29,51,.82), rgba(30,47,76,.62)), url("../img/cta-bg.webp") center/cover no-repeat;
  color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; position: relative; z-index: 2; }
.cta h3 { font-size: 28px; margin: 0 0 8px; font-weight: 700; }
.cta p { margin: 0; color: #b7c0d0; font-size: 15px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy); color: #9aa4b6; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr auto; gap: 40px; padding: 58px 0 44px; border-bottom: 1px solid rgba(255,255,255,.08); }
.foot-brand .logo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.foot-brand .logo-row .logo { width: 38px; height: 38px; color: var(--gold-lite); }
.foot-brand .logo-row b { color: #fff; font-size: 19px; letter-spacing: 3px; display: block; }
.foot-brand .logo-row span { color: var(--gold-lite); font-size: 10px; letter-spacing: 2px; }
.foot-brand p { color: #8a94a6; font-size: 13.5px; margin: 4px 0; line-height: 1.9; }
.foot-social { display: flex; gap: 10px; margin-top: 16px; }
.foot-social a { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #9aa4b6; padding: 8px; }
.foot-social a:hover { border-color: var(--gold-lite); color: var(--gold-lite); }
.foot-col h5 { color: #fff; font-size: 16px; margin: 0 0 18px; font-weight: 600; }
.foot-col a { display: block; color: #9aa4b6; font-size: 14px; margin: 10px 0; }
.foot-col a:hover { color: var(--gold-lite); padding-left: 4px; }
.foot-contact .row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 12px 0; color: #9aa4b6; }
.foot-contact .row .ic { width: 17px; height: 17px; color: var(--gold-lite); flex: 0 0 17px; margin-top: 3px; }
.foot-qr { text-align: center; }
.foot-qr .qbox { width: 108px; height: 108px; background: #fff; border-radius: 6px; padding: 8px; margin: 0 auto; }
.foot-qr .qbox img { width: 100%; height: 100%; object-fit: contain; }
.foot-qr .qcap { color: #8a94a6; font-size: 12.5px; margin-top: 10px; }
.foot-bottom { text-align: center; padding: 18px 0; font-size: 13px; color: #6c7689; }
.foot-bottom > .container > div + div { margin-top: 6px; }
.foot-bottom a:hover { color: var(--gold-lite); }

/* 悬浮咨询 */
.float-bar { position: fixed; right: 20px; bottom: 30px; z-index: 55; display: flex; flex-direction: column; gap: 10px; }
.float-bar a { width: 50px; height: 50px; background: linear-gradient(135deg, var(--gold-a), var(--gold-b)); color: #fff;
  display: flex; align-items: center; justify-content: center; border-radius: 8px; box-shadow: 0 8px 20px rgba(168,124,51,.3); padding: 13px; }
.float-bar a:hover { filter: brightness(1.08); }

/* ============================================================
   内页
   ============================================================ */
.pbanner { background: linear-gradient(115deg, var(--navy-a) 40%, var(--navy-b)); color: #fff; position: relative; overflow: hidden; }
.pbanner .container { min-height: 240px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; padding-top: 40px; padding-bottom: 40px; }
.pbanner h1 { font-size: 38px; margin: 0; font-weight: 700; letter-spacing: 1px; }
.pbanner .u { width: 46px; height: 3px; background: var(--gold); margin: 16px 0; }
.pbanner .sub { color: #c2cadb; font-size: 15px; }
.pbanner .pb-photo { position: absolute; right: 0; top: 0; bottom: 0; width: 42%; z-index: 1; opacity: .9; }
.pbanner .pb-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 68% center; }
.pbanner .pb-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-a), transparent 60%); z-index: 2; }

.crumb-bar { background: var(--soft); border-bottom: 1px solid var(--line); }
.crumb-bar .container { display: flex; align-items: center; gap: 8px; height: 50px; font-size: 13.5px; color: var(--muted); }
.crumb-bar .ic { width: 15px; height: 15px; color: var(--gold); }
.crumb-bar a:hover { color: var(--gold); }
.crumb-bar .sep { color: #c3c3c3; }

/* 关于页 profile */
.profile { display: grid; grid-template-columns: 300px 1fr; gap: 46px; align-items: start; }
.profile .p-photo img { width: 100%; aspect-ratio: 3/3.4; object-fit: cover; object-position: 70% 22%; border-radius: 4px; background: var(--soft); }
.p-info .p-name { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.p-info .p-name b { font-size: 30px; color: var(--head); font-weight: 700; }
.p-info .p-name span { color: var(--gold); font-size: 16px; }
.p-info .p-license { color: var(--head); font-size: 14.5px; margin-bottom: 16px; }
.p-info .p-desc { color: var(--muted); font-size: 15px; line-height: 2; margin-bottom: 24px; }
.p-info .p-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; }
.p-info .p-grid .row { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.p-info .p-grid .row .ic { width: 20px; height: 20px; color: var(--gold); flex: 0 0 20px; margin-top: 3px; }
.p-info .p-grid .row .k { color: var(--head); font-weight: 600; }
.p-info .p-grid .row .v { color: var(--muted); }

/* 数据条 */
.statbar { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--soft); border: 1px solid var(--line); border-radius: 6px; margin-top: 40px; }
.statbar .item { display: flex; align-items: center; gap: 16px; padding: 26px 30px; position: relative; }
.statbar .item + .item::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line2); }
.statbar .item .ic { width: 40px; height: 40px; color: var(--gold); flex: 0 0 40px; }
.statbar .num { font-size: 30px; font-weight: 800; color: var(--gold); line-height: 1; }
.statbar .num .u { font-size: 14px; margin-left: 2px; }
.statbar .l { color: var(--muted); font-size: 13px; margin-top: 5px; }

.block-title { text-align: center; margin-bottom: 34px; }
.block-title h2 { font-size: 25px; color: var(--head); margin: 0; font-weight: 700; }
.block-title .u { width: 40px; height: 3px; background: var(--gold); margin: 12px auto 0; }

.edu-card { border: 1px solid var(--line); border-radius: 6px; padding: 30px 34px; display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: center; }
.edu-card .left { display: flex; gap: 16px; align-items: center; }
.edu-card .left .ic { width: 44px; height: 44px; color: var(--gold); flex: 0 0 44px; }
.edu-card .left b { color: var(--head); font-size: 17px; display: block; }
.edu-card .left span { color: var(--muted); font-size: 13px; }
.edu-card ul { list-style: none; margin: 0; padding: 0; }
.edu-card ul li { position: relative; padding-left: 16px; color: #5b6069; font-size: 14.5px; line-height: 2.1; }
.edu-card ul li::before { content: ""; position: absolute; left: 0; top: 13px; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }

.exp-wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center; }
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line2); }
.timeline .t-item { position: relative; padding-bottom: 26px; }
.timeline .t-item:last-child { padding-bottom: 0; }
.timeline .t-item::before { content: ""; position: absolute; left: -23px; top: 6px; width: 11px; height: 11px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 4px rgba(176,132,60,.15); }
.timeline .t-head { color: var(--head); font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.timeline .t-head .org { margin-left: 10px; } .timeline .t-head .role { margin-left: 10px; color: var(--gold); font-weight: 500; font-size: 13.5px; }
.timeline .t-desc { color: var(--muted); font-size: 14px; }
.exp-img img { width: 100%; aspect-ratio: 4/2.7; object-fit: cover; border-radius: 4px; }

.honor-band { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 34px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.honor { display: flex; gap: 14px; align-items: center; }
.honor .ic { width: 42px; height: 52px; color: var(--gold); flex: 0 0 42px; }
.honor b { display: block; color: var(--head); font-size: 14.5px; line-height: 1.5; }
.honor span { color: var(--muted); font-size: 12.5px; }

/* ---------- 通用列表/详情/侧栏（其它内页复用） ---------- */
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 46px; padding: 56px 0; }
.sidebar .box { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 24px; overflow: hidden; }
.sidebar .box h4 { margin: 0; padding: 15px 20px; background: var(--head); color: #fff; font-size: 16px; font-weight: 600; }
.sidebar .box .box-body { padding: 14px 20px; }
.sidebar .side-link { display: flex; align-items: center; gap: 8px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14px; color: #565b64; }
.sidebar .side-link:last-child { border-bottom: 0; } .sidebar .side-link:hover { color: var(--gold); }
.side-contact p { margin: 8px 0; font-size: 14px; color: var(--muted); } .side-contact b { color: var(--head); }

.article-row { display: block; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 24px 26px; margin-bottom: 18px; transition: all .2s; }
.article-row:hover { box-shadow: 0 12px 30px rgba(22,35,61,.08); border-color: var(--gold-lite); }
.article-row h3 { margin: 0 0 8px; font-size: 18px; color: var(--head); font-weight: 700; }
.article-row:hover h3 { color: var(--gold); }
.article-row .meta { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.article-row p { margin: 0; color: var(--muted); font-size: 14px; }

.article-main { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 42px 46px; }
.article-main h1 { font-size: 26px; color: var(--head); margin: 0 0 14px; line-height: 1.5; font-weight: 700; }
.article-main .meta { color: var(--muted); font-size: 13px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.article-content { font-size: 15.5px; color: #3f434b; line-height: 2; }
.article-content p { margin: 0 0 16px; } .article-content img { border-radius: 4px; margin: 16px 0; }
.article-content h2, .article-content h3 { color: var(--head); }
.prose { font-size: 15.5px; color: #3f434b; line-height: 2; } .prose p { margin: 0 0 16px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 34px; }
.contact-card h2 { color: var(--head); margin-top: 0; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px dashed var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ic { width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); padding: 11px; }
.contact-list .info b { display: block; color: var(--head); font-size: 15px; }
.contact-list .info span { color: var(--muted); font-size: 14px; }

.form-row { margin-bottom: 18px; }
.form-row label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--head); font-weight: 600; }
.form-row input, .form-row textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 4px;
  font-size: 14px; font-family: inherit; background: #fdfdfc; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.form-row textarea { min-height: 130px; resize: vertical; }
.alert { padding: 12px 16px; border-radius: 4px; margin-bottom: 18px; font-size: 14px; }
.alert-ok { background: #eef6f0; color: #1e5b40; border: 1px solid #bfe3cd; }

/* 动效 */
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-text > * { animation: riseIn .7s cubic-bezier(.2,.7,.2,1) backwards; }
.hero-text > *:nth-child(2){animation-delay:.08s} .hero-text > *:nth-child(3){animation-delay:.16s}
.hero-text > *:nth-child(4){animation-delay:.24s} .hero-text > *:nth-child(5){animation-delay:.32s}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .prac-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .about2 { grid-template-columns: 1fr; gap: 34px; }
  .stat-col { grid-template-columns: repeat(3,1fr); display: grid; }
}
@media (max-width: 900px) {
  .header-inner { height: 60px; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; background: #fff;
    border-bottom: 1px solid var(--line); margin: 0; padding: 6px 20px; }
  .nav.open { display: flex; } .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); } .nav a::after { display: none; }
  .nav-toggle { display: block; } .header-phone { display: none; }
  .hero-inner { flex-direction: column; align-items: stretch; min-height: 0; }
  /* 移动端文字纵向铺满宽度，遮罩改成整体浅色蒙版保证可读，而不是只遮左侧 */
  .hero-scrim { background: rgba(244,242,236,.88); }
  .hero-text { padding: 40px 0 26px; }
  .reasons-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 0; }
  .reason + .reason::before { display: none; }
  /* 4项数据窄屏改2+1+1：执业经验/专业领域(数字+单位，短)一行两列；
     服务地区、执业理念(文字内容，长短不定)各自单独占一整行 */
  .statbar { grid-template-columns: repeat(2, 1fr); }
  .statbar .item::before { display: none; }
  .statbar .item:nth-child(1) { grid-column: 1; grid-row: 1; }
  .statbar .item:nth-child(2) { grid-column: 2; grid-row: 1; }
  .statbar .item:nth-child(3) { grid-column: 1 / -1; grid-row: 2; }
  .statbar .item:nth-child(4) { grid-column: 1 / -1; grid-row: 3; }
  .statbar .item { padding: 18px 14px; gap: 10px; }
  .statbar .item .ic { width: 28px; height: 28px; flex: 0 0 28px; }
  .statbar .num { font-size: 22px; }
  .statbar .num .u { font-size: 12px; }
  .statbar .l { font-size: 11.5px; }
  .profile { grid-template-columns: 1fr; } .profile .p-photo { max-width: 260px; margin: 0 auto; }
  .p-info .p-grid { grid-template-columns: 1fr; }
  .edu-card { grid-template-columns: 1fr; gap: 20px; }
  .exp-wrap { grid-template-columns: 1fr; }
  .honor-band { grid-template-columns: 1fr 1fr; }
  .layout { grid-template-columns: 1fr; gap: 36px; padding: 40px 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .article-main { padding: 26px 22px; }

  /* 内页横幅：右侧人像窄条在小屏上会被挤成一条怪异色块，改成整幅低透明度的
     底纹背景（纯色叠加，不受照片内容影响），文字区不再跟人像抢位置 */
  /* 照片在移动端只剩一层16%透明度的整幅底纹（见下面.pb-photo规则），
     文字失去了原本"右边有照片"的视觉配重，贴着左边显得孤零零——改成居中 */
  .pbanner .container { min-height: 0; padding: 32px 0 28px; align-items: center; text-align: center; }
  .pbanner h1 { font-size: 26px; }
  .pbanner .u { margin: 16px auto; }
  .pbanner .sub { font-size: 13.5px; }
  .pbanner .pb-photo { width: 100%; opacity: .16; }
  .pbanner .pb-photo::before { background: var(--navy-a); }

  .cta { padding: 40px 0; text-align: center; }
  .cta h3 { font-size: 21px; }
  .cta p { font-size: 13.5px; }

  /* ---------- 页脚：品牌区单独一行 → 快速导航+服务领域并排一行两列 → 联系方式单独一行 → 二维码单独一行 ---------- */
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 8px 26px; padding: 44px 0 30px; }
  .foot-brand { grid-column: 1 / -1; text-align: center; margin-bottom: 8px; }
  .foot-brand .logo-row { justify-content: center; }
  .foot-social { justify-content: center; }
  .foot-col { text-align: center; }
  .foot-col h5 { font-size: 15px; margin-bottom: 12px; }
  .foot-col a { margin: 8px 0; font-size: 13.5px; }
  .foot-contact { grid-column: 1 / -1; margin-top: 8px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); text-align: center; }
  .foot-contact .row { justify-content: center; text-align: left; max-width: 280px; margin: 12px auto; }
  .foot-qr { grid-column: 1 / -1; margin-top: 6px; text-align: center; }
}
@media (max-width: 560px) {
  .prac-grid, .case-grid { grid-template-columns: 1fr; }
  /* 3项统计在窄屏两栏挤不下，第3项(服务地区，文字较长)单独占满整行 */
  .stat-col { grid-template-columns: 1fr 1fr; }
  .stat-col .stat:nth-child(3) { grid-column: 1 / -1; }
  .honor-band { grid-template-columns: 1fr; }
  .cta .container { flex-direction: column; align-items: stretch; text-align: center; gap: 18px; }
  .cta .btn { justify-content: center; }
}
