/* ============================================================
   广信君达（汕头）律师事务所 — B「海湾纪念碑」全站视觉系统
   Token 唯一来源：brand-spec.md（红 = 行动，古金 = 秩序，深墨 = 权威）
   ============================================================ */

:root {
  --bg: oklch(98.53% 0.0029 84.56);
  --surface: oklch(100% 0 89.88);
  --fg: oklch(30.81% 0.0177 40.98);
  --muted: oklch(46.61% 0.0103 44.77);
  --border: oklch(89.27% 0.0063 75.4);
  --accent: oklch(52.5% 0.1987 25.88);
  --gold: oklch(64% 0.105 78);
  --ink: oklch(20% 0.045 252);
  --ink-soft: oklch(27% 0.055 252);
  --ink-deep: oklch(16% 0.034 252);
  --dusk: oklch(50% 0.055 248);
  --mist: oklch(95.2% 0.012 235);
  --mist-deep: oklch(91.5% 0.018 238);
  --display: "Songti SC", "STSong", "SimSun", serif;
  --body: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  color: var(--fg);
  background: var(--bg);
  font-family: var(--body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.shell { width: min(1376px, calc(100% - 48px)); margin-inline: auto; }

.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 10px 18px; background: var(--ink); color: white; transition: top .2s ease; }
.skip-link:focus { top: 12px; }

/* ---------- 按钮 ---------- */
.button { min-height: 52px; padding: 0 28px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; background: var(--accent); color: white; font-weight: 600; font-size: 15px; cursor: pointer; box-shadow: 0 12px 28px color-mix(in oklch, var(--accent) 24%, transparent); transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-ghost { background: color-mix(in oklch, var(--ink) 20%, transparent); border-color: color-mix(in oklch, white 55%, transparent); color: white; box-shadow: none; }
.button-ghost:hover { background: color-mix(in oklch, white 12%, transparent); }
.button-light { background: white; color: var(--ink); box-shadow: 0 12px 28px color-mix(in oklch, black 24%, transparent); }
.button-dark { background: var(--ink); color: white; box-shadow: 0 12px 28px color-mix(in oklch, var(--ink) 22%, transparent); }

.kicker { display: block; margin-bottom: 18px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .18em; color: var(--gold); }
.kicker.light { color: color-mix(in oklch, var(--gold) 82%, white); }

.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 14px; }
.text-link b { font-weight: 400; }
.text-link.light-link { color: white; }

/* ---------- 页眉 ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--ink); color: white; border-bottom: 1px solid color-mix(in oklch, white 10%, transparent); }
.site-header.home-header { position: absolute; inset: 0 0 auto; background: transparent; border-bottom-color: color-mix(in oklch, white 16%, transparent); }
.header-inner { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; }
.brand-lockup { height: 56px; width: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 48px); font-size: 16px; }
.site-nav a { position: relative; padding: 14px 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 6px; height: 1px; background: var(--gold); transition: right .25s ease; }
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }
.site-nav a.active { color: color-mix(in oklch, var(--gold) 80%, white); }
.header-contact { min-height: 50px; display: inline-flex; align-items: center; gap: 8px; padding: 0 26px; background: var(--accent); color: white; font-weight: 600; font-size: 15px; box-shadow: 0 10px 24px color-mix(in oklch, var(--accent) 26%, transparent); }
.header-contact span { font-size: 13px; }
.site-nav .nav-contact { display: none; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; padding: 12px; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: white; }
.nav-backdrop { position: fixed; inset: 0; z-index: 38; background: color-mix(in oklch, var(--ink) 62%, transparent); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.nav-backdrop.show { opacity: 1; pointer-events: auto; }

/* ---------- 首页一屏入口（页眉 + 主视觉 + 领域入口带 = 100svh，无纵向滚动） ---------- */
.home-main { height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.home-screen { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.home-hero { position: relative; flex: 1 1 auto; min-height: 0; display: grid; align-content: center; overflow: hidden; color: white; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; filter: saturate(.8) contrast(1.05) brightness(.86); }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, color-mix(in oklch, var(--ink) 92%, transparent) 0%, color-mix(in oklch, var(--ink) 66%, transparent) 44%, color-mix(in oklch, var(--ink) 22%, transparent) 76%, color-mix(in oklch, var(--ink) 38%, transparent) 100%),
  linear-gradient(0deg, var(--mist) 0%, color-mix(in oklch, var(--mist) 80%, transparent) 22%, color-mix(in oklch, var(--ink) 26%, transparent) 45%, transparent 62%); }
.home-hero-inner { position: relative; z-index: 2; padding-top: 84px; padding-bottom: 24px; }
.hero-copy { max-width: 900px; }
.hero-copy h1 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(44px, 6vw, 92px); line-height: 1.16; letter-spacing: .03em; text-wrap: balance; }
.hero-fact { display: flex; align-items: center; gap: 14px; margin: 26px 0 0; font-size: clamp(14px, 1.1vw, 16px); letter-spacing: .04em; color: color-mix(in oklch, white 74%, transparent); }
.hero-fact::before { content: ""; flex: none; width: 30px; height: 1px; background: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }

/* 底部专业领域入口带：浅色、与主视觉相连，5 个真实领域整块可点击 */
.practice-band { flex: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(142px, 1fr)); background: linear-gradient(180deg, var(--mist) 0%, var(--surface) 80%); border-top: 1px solid var(--gold); }
.practice-entry { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: clamp(84px, 13svh, 118px); padding: 12px 16px; color: var(--fg); transition: background .22s ease, color .22s ease; }
.practice-entry + .practice-entry { border-left: 1px solid var(--border); }
.practice-entry-icon { flex: none; display: grid; place-items: center; color: var(--gold); }
.practice-entry-icon svg { width: 26px; height: 26px; }
.practice-entry-name { font-family: var(--display); font-size: clamp(15px, 1.25vw, 18px); line-height: 1.4; letter-spacing: .05em; text-align: center; }
.practice-entry:hover, .practice-entry:focus-visible { background: var(--ink); color: white; }
.practice-entry:active { transform: translateY(1px); }

/* 专业团队列表页底部：在页脚暗纱之前留出充足的纯留白 */
.team-page-section { padding-bottom: clamp(240px, 20vw, 340px); }

/* 首页入场：一次性淡入，禁用动效时由全局 reduced-motion 规则瞬时完成 */
#app.motion-ready:not(.home-entered) .hero-copy > *,
#app.motion-ready:not(.home-entered) .practice-entry { opacity: 0; transform: translateY(16px); }
.hero-copy > *, .practice-entry { transition: opacity .7s ease, transform .7s ease; }
.hero-copy > *:nth-child(2) { transition-delay: .12s; }
.hero-copy > *:nth-child(3) { transition-delay: .22s; }
.practice-entry { transition: opacity .6s ease, transform .6s ease, background .22s ease, color .22s ease; }
.practice-entry:nth-child(2) { transition-delay: .30s, .30s, 0s, 0s; }
.practice-entry:nth-child(3) { transition-delay: .36s, .36s, 0s, 0s; }
.practice-entry:nth-child(4) { transition-delay: .42s, .42s, 0s, 0s; }
.practice-entry:nth-child(5) { transition-delay: .48s, .48s, 0s, 0s; }
.practice-entry:nth-child(6) { transition-delay: .54s, .54s, 0s, 0s; }
.practice-entry:nth-child(7) { transition-delay: .60s, .60s, 0s, 0s; }
.practice-entry:nth-child(8) { transition-delay: .66s, .66s, 0s, 0s; }

/* 极矮视口：压缩主视觉占比与间距，而不是隐藏领域入口 */
@media (max-height: 720px) {
  .home-hero-inner { padding-top: 72px; }
  .hero-copy h1 { font-size: clamp(34px, 5vw, 64px); }
  .hero-fact { margin-top: 16px; }
  .hero-actions { margin-top: 22px; }
  .practice-entry { min-height: 64px; }
  .practice-entry-icon svg { width: 20px; height: 20px; }
}

/* ---------- 通用分区 ---------- */
.section-pad { padding: clamp(140px, 13vw, 220px) 0; }
.section-pad.muted, .muted { background: color-mix(in oklch, var(--bg), var(--fg) 3.5%); }
.section-heading { max-width: 780px; }
.section-heading h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(34px, 3.6vw, 56px); line-height: 1.18; letter-spacing: .03em; }
.section-heading > p { margin: 22px 0 0; max-width: 640px; color: var(--muted); font-size: 17px; line-height: 1.9; }
.section-top { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 68px; }

/* ---------- 法律服务（编号目录） ---------- */
.practice-grid { border-top: 1px solid var(--border); }
.practice-card { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); padding: 48px 20px; border-bottom: 1px solid var(--border); transition: background .25s ease, color .25s ease; }
.practice-card:hover, .practice-card:focus-visible { background: var(--ink); color: white; }
.practice-no { flex: none; width: 60px; font-family: var(--mono); font-size: 14px; color: var(--gold); }
.practice-card-main { flex: 1 1 auto; min-width: 0; }
.practice-card-main h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2vw, 30px); letter-spacing: .03em; }
.practice-card-main p { margin: 0; max-width: 560px; font-size: 15px; line-height: 1.75; color: var(--muted); }
.practice-card:hover .practice-card-main p, .practice-card:focus-visible .practice-card-main p { color: color-mix(in oklch, white 66%, transparent); }
.practice-services { flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 340px; }
.practice-services span { padding: 7px 14px; border: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.practice-card:hover .practice-services span, .practice-card:focus-visible .practice-services span { border-color: color-mix(in oklch, white 26%, transparent); color: color-mix(in oklch, white 72%, transparent); }
.card-arrow { flex: none; font-size: 22px; color: var(--accent); transition: color .25s ease, transform .25s ease; }
.practice-card:hover .card-arrow, .news-card:hover .card-arrow { color: var(--gold); transform: translateX(4px); }

/* ---------- 律师卡片 ---------- */
.lawyer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.lawyer-card { min-width: 0; }
.lawyer-profile-link { display: block; }
.portrait-frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: color-mix(in oklch, var(--bg), var(--fg) 6%); border-top: 1px solid var(--gold); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.72) contrast(1.02); transition: transform .4s ease, filter .4s ease; }
.lawyer-card:hover .portrait-frame img { transform: scale(1.025); filter: saturate(.9) contrast(1.02); }
.portrait-fallback { display: grid; place-items: center; background: var(--ink); }
.portrait-fallback span { font-family: var(--display); font-size: clamp(28px, 3vw, 44px); color: white; letter-spacing: .1em; padding: 0 16px; text-align: center; }
.lawyer-card-body { padding: 20px 2px 0; }
.lawyer-card-body h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 26px; letter-spacing: .06em; }
.lawyer-role { margin: 8px 0 0; color: var(--accent); font-size: 14px; }
.lawyer-fields { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.related-lawyers { grid-template-columns: repeat(3, 1fr); margin-top: 28px; }

/* ---------- 编辑式资讯行 ---------- */
.news-list { border-top: 1px solid var(--border); }
.news-card { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); padding: 36px 8px; border-bottom: 1px solid var(--border); transition: background .2s ease; }
.news-card:hover { background: color-mix(in oklch, var(--ink) 4%, transparent); }
.news-thumb { flex: none; width: 128px; height: 86px; object-fit: cover; }
.news-meta { flex: none; width: 132px; display: grid; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--gold); }
.news-meta time { color: var(--muted); }
.news-main { flex: 1 1 auto; min-width: 0; }
.news-main h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; letter-spacing: .02em; }
.news-main p { margin: 10px 0 0; max-width: 720px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.news-card .card-arrow { font-size: 20px; }
.news-card.compact { padding: 22px 8px; }

/* ---------- CTA / 页脚：浅色呼吸区 + 唯一深色收尾 ---------- */
/* CTA 用 白→晨雾 浅底与正文自然衔接；暗纱只保留在页脚顶部，全页仅页脚一道深色收尾 */
.cta { position: relative; background: linear-gradient(180deg, var(--bg) 0%, var(--mist) 100%); color: var(--fg); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -150px; height: 150px; pointer-events: none; background: linear-gradient(180deg, transparent 0%, color-mix(in oklch, var(--ink) 22%, transparent) 40%, color-mix(in oklch, var(--ink) 62%, transparent) 75%, var(--ink) 100%); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(56px, 6vw, 88px) 0 clamp(160px, 14vw, 230px); }
.cta-inner h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.4vw, 48px); letter-spacing: .03em; }

/* ---------- 内页页头 ---------- */
.inner-hero { background: linear-gradient(180deg, var(--ink) 0%, var(--ink) 42%, var(--ink-soft) 66%, var(--dusk) 86%, var(--mist) 100%); color: white; }
.hero-grid-mark { display: none; }
.inner-hero-content { padding: clamp(40px, 4.5vw, 64px) 0 clamp(36px, 4vw, 56px); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 32px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: color-mix(in oklch, white 55%, transparent); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { opacity: .5; }
.inner-hero h1 { margin: 0; max-width: 1080px; font-family: var(--display); font-weight: 500; font-size: clamp(36px, 4.4vw, 68px); line-height: 1.2; letter-spacing: .03em; text-wrap: balance; }
.inner-hero-content > p:not(.breadcrumb) { margin: 24px 0 0; max-width: 680px; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.85; color: color-mix(in oklch, white 68%, transparent); }

/* ---------- 法律服务详情 ---------- */
.detail-grid { display: grid; grid-template-columns: 250px 1fr; gap: clamp(48px, 6vw, 110px); align-items: start; }
.detail-aside { position: sticky; top: 96px; }
.detail-aside nav { display: grid; border-top: 1px solid var(--border); margin-top: 8px; }
.detail-aside nav a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 4px; border-bottom: 1px solid var(--border); font-size: 15px; }
.detail-aside nav a span { color: var(--accent); }
.detail-aside nav a:hover { color: var(--accent); }
.detail-aside nav a.active { color: var(--accent); font-weight: 600; }
.detail-content { min-width: 0; }
.lead-mark { font-family: var(--mono); font-size: 14px; color: var(--gold); }
.lead { display: block; margin: 18px 0 0; font-family: var(--display); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.9; }
.detail-content h2 { margin: 64px 0 28px; font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.2vw, 30px); letter-spacing: .03em; }
.service-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); }
.service-list > div { display: flex; gap: 16px; align-items: baseline; padding: 20px 18px 20px 0; border-bottom: 1px solid var(--border); }
.service-list span { font-family: var(--mono); font-size: 12px; color: var(--gold); }
.service-list p { margin: 0; font-size: 15px; line-height: 1.7; }

/* ---------- 筛选与列表页 ---------- */
.filter-panel { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; }
.filter-panel label { display: grid; gap: 10px; min-width: min(320px, 100%); }
.filter-panel label span { font-size: 13px; font-weight: 600; }
.filter-panel input { min-height: 52px; border: 1px solid var(--border); background: var(--surface); padding: 0 18px; font-size: 15px; color: var(--fg); outline: 0; }
.filter-panel input:focus { border-color: var(--gold); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chips button { min-height: 44px; padding: 0 18px; border: 1px solid var(--border); background: transparent; cursor: pointer; font-size: 14px; }
.filter-chips button:hover, .filter-chips button.active { background: var(--ink); color: white; border-color: var(--ink); }
.news-filters { margin-bottom: 52px; }
.result-count { margin: 0 0 24px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- 律师详情 / 履历 ---------- */
.profile-grid { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: clamp(48px, 6vw, 110px); align-items: start; }
.profile-portrait { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); border-top: 1px solid var(--gold); display: grid; place-items: center; }
.profile-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.72) contrast(1.02); }
.profile-portrait span { font-family: var(--display); font-size: 48px; color: white; letter-spacing: .1em; text-align: center; padding: 0 16px; }
.profile-copy { min-width: 0; }
.profile-summary > h2 { margin: 0 0 18px; font-family: var(--display); font-weight: 500; font-size: clamp(34px, 3.4vw, 48px); letter-spacing: .04em; }
.profile-intro { margin: 0 0 34px; font-size: 17px; line-height: 1.95; color: var(--muted); max-width: 720px; }
.profile-summary dl { margin: 0 0 36px; border-top: 1px solid var(--border); }
.profile-summary dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.profile-summary dt { font-family: var(--display); font-size: 16px; color: var(--gold); }
.profile-summary dd { margin: 0; font-size: 15px; line-height: 1.75; }
.profile-summary h3 { margin: 0 0 14px; font-family: var(--display); font-weight: 500; font-size: 22px; }
.profile-summary h3 + p { margin: 0 0 36px; color: var(--muted); font-size: 15px; line-height: 1.9; max-width: 720px; }
.profile-dossier { margin: 0 0 36px; padding: 34px; background: color-mix(in oklch, var(--bg), var(--fg) 3.5%); }
.profile-dossier-heading h3 { margin: 0 0 22px; font-family: var(--display); font-weight: 500; font-size: 22px; }
.profile-snapshot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.profile-snapshot-section h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--fg); }
.profile-snapshot-section ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.profile-snapshot-section li { font-size: 13px; line-height: 1.7; color: var(--muted); padding-left: 14px; border-left: 2px solid var(--gold); }
.profile-record-section { margin-bottom: 20px; }
.profile-record-section h2 { margin: 0 0 26px; font-family: var(--display); font-weight: 500; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: .03em; }
.profile-record-section > ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.profile-record-section > ul > li { padding: 18px 4px; border-bottom: 1px solid var(--border); font-size: 15px; line-height: 1.85; color: var(--muted); }
.case-study-group h3 { margin: 34px 0 6px; font-family: var(--display); font-weight: 500; font-size: 21px; }
.case-study-group ol { margin: 0; padding-left: 1.3em; display: grid; gap: 12px; }
.case-study-group li { font-size: 15px; line-height: 1.85; color: var(--muted); }
.lawyer-records-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.resume-group { margin-bottom: clamp(72px, 8vw, 110px); }
.resume-timeline { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.resume-timeline li { display: grid; grid-template-columns: 190px 1fr; gap: 24px; padding: 20px 4px; border-bottom: 1px solid var(--border); }
.resume-timeline-period { font-family: var(--mono); font-size: 12px; color: var(--gold); }
.resume-timeline-body strong { display: block; font-weight: 600; font-size: 16px; }
.resume-timeline-body span { font-size: 14px; color: var(--muted); }
.resume-career p { margin: 0 0 20px; max-width: 780px; font-size: 16px; line-height: 2; color: var(--muted); }
.resume-empty { padding: 34px 0; color: var(--muted); font-size: 15px; }
.profile-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.profile-gallery figure { margin: 0; }
.profile-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.profile-gallery figcaption { margin-top: 10px; font-size: 12px; color: var(--muted); }

/* ---------- 文章 / 业绩详情 ---------- */
.article-grid { display: grid; grid-template-columns: 1.5fr .8fr; gap: clamp(48px, 6vw, 110px); align-items: start; }
.article-body { min-width: 0; }
.article-meta { display: flex; gap: 18px; margin-bottom: 30px; font-family: var(--mono); font-size: 12px; color: var(--gold); }
.article-meta time { color: var(--muted); }
.article-lead { margin: 0 0 34px; font-family: var(--display); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.9; }
.article-body > p { margin: 0 0 32px; max-width: 760px; font-size: 17px; line-height: 2.05; }
.article-subheading { margin: 44px 0 18px; font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2vw, 27px); letter-spacing: .03em; }
.article-list { margin: 0 0 26px; padding-left: 1.3em; display: grid; gap: 12px; }
.article-list li { font-size: 16px; line-height: 1.9; }
.article-notice { margin-top: 44px; padding: 22px 24px; border: 1px solid var(--border); font-size: 12px; line-height: 1.85; color: var(--muted); }
.article-related { position: sticky; top: 96px; }
.article-related h2 { margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--gold); font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: .04em; }
.article-related a { display: grid; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.article-related time { font-family: var(--mono); font-size: 11px; color: var(--gold); }
.article-related strong { font-weight: 500; font-size: 15px; line-height: 1.6; }
.article-related a:hover strong { color: var(--accent); }
.article-related a span { color: var(--accent); }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
.about-copy .lead { margin-bottom: 22px; }
.about-copy p { margin: 0 0 18px; max-width: 700px; font-size: 16px; line-height: 2; color: var(--muted); }
.office-facts { margin: 36px 0 0; border-top: 1px solid var(--border); }
.office-facts > div { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--border); }
.office-facts dt { font-family: var(--display); font-size: 16px; color: var(--gold); }
.office-facts dd { margin: 0; font-size: 15px; line-height: 1.7; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 64px); }
.values-grid > div { border-top: 1px solid var(--gold); padding-top: 22px; }
.values-grid span { font-family: var(--mono); font-size: 13px; color: var(--gold); }
.values-grid h3 { margin: 14px 0 12px; font-family: var(--display); font-weight: 500; font-size: 26px; letter-spacing: .05em; }
.values-grid p { margin: 0; font-size: 14px; line-height: 1.85; color: var(--muted); }
.party-member-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 22px; margin-bottom: 48px; }
.party-member-portrait { aspect-ratio: 4 / 5; }
.party-member-copy { padding-top: 14px; }
.party-member-copy h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 19px; letter-spacing: .05em; }
.party-member-copy p { margin: 6px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.party-about-list { margin-top: 40px; }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
.contact-info h2 { margin: 0 0 30px; font-family: var(--display); font-weight: 500; font-size: clamp(28px, 2.8vw, 40px); letter-spacing: .03em; }
.contact-info dl { margin: 0; border-top: 1px solid var(--border); }
.contact-info dl > div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-info dt { font-family: var(--display); font-size: 16px; color: var(--gold); }
.contact-info dd { margin: 0; font-size: 15px; line-height: 1.8; }
.map-embed { margin-top: 40px; }
.map-location { position: relative; padding: 30px; background: var(--ink); color: white; }
.map-pin, .map-route { display: none; }
.map-location-label { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--gold); }
.map-location strong { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: .04em; }
.map-location p { margin: 10px 0 0; font-size: 13px; line-height: 1.7; color: color-mix(in oklch, white 62%, transparent); }
.map-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding: 20px; border: 1px solid var(--border); border-top: 0; }
.map-caption strong { display: block; font-size: 14px; }
.map-caption span { font-size: 12px; color: var(--muted); }
.map-links { display: flex; flex-wrap: wrap; gap: 10px; }
.map-links a { padding: 10px 16px; border: 1px solid var(--border); font-size: 13px; color: var(--accent); font-weight: 600; }
.map-links a:hover { background: var(--ink); color: white; border-color: var(--ink); }
.contact-form { display: grid; gap: 20px; padding: clamp(30px, 3.4vw, 46px); background: var(--surface); border: 1px solid var(--border); }
.contact-form h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: .03em; }
.contact-form > p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--muted); }
.contact-form label { display: grid; gap: 9px; font-size: 14px; font-weight: 600; }
.contact-form input, .contact-form textarea { width: 100%; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 12px 0; background: transparent; font-size: 15px; color: var(--fg); resize: vertical; outline: 0; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); }
.contact-form .button { width: 100%; border: 0; }
.contact-form .button:disabled { opacity: .62; cursor: wait; transform: none; }
.form-status { margin: 0; min-height: 20px; font-size: 14px; color: var(--accent); }

/* ---------- 404 ---------- */
.not-found { min-height: 76vh; display: grid; place-content: center; background: linear-gradient(180deg, color-mix(in oklch, var(--ink) 40%, var(--bg)) 0%, var(--ink) 128px, var(--ink-deep) 100%); color: white; padding: 100px 24px; }
.not-found span { font-family: var(--mono); font-size: 14px; letter-spacing: .2em; color: var(--gold); }
.not-found h1 { margin: 18px 0 16px; font-family: var(--display); font-weight: 500; font-size: clamp(38px, 4.6vw, 60px); letter-spacing: .03em; }
.not-found p { margin: 0 0 34px; color: color-mix(in oklch, white 66%, transparent); }

/* ---------- 页脚 ---------- */
.site-footer { position: relative; background: linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%); color: white; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: clamp(40px, 5vw, 90px); padding: clamp(46px, 5vw, 68px) 0 40px; }
.footer-logo .brand-lockup { height: 32px; }
.footer-brand p { margin: 20px 0 0; font-size: 13px; color: color-mix(in oklch, white 52%, transparent); }
.site-footer h3 { margin: 0 0 18px; font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: .06em; }
.footer-links { display: grid; gap: 12px; }
.footer-links a { font-size: 14px; color: color-mix(in oklch, white 70%, transparent); }
.footer-links a:hover { color: var(--gold); }
.site-footer .footer-grid > div:last-child p { margin: 0 0 10px; font-size: 14px; line-height: 1.8; color: color-mix(in oklch, white 70%, transparent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 18px 0; border-top: 1px solid color-mix(in oklch, white 12%, transparent); font-size: 12px; color: color-mix(in oklch, white 45%, transparent); }
.footer-filing { padding: 0 0 20px; font-size: 11px; color: color-mix(in oklch, white 35%, transparent); }

/* ---------- 动效 ---------- */
.motion-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease var(--reveal-delay, 0ms), transform .6s ease var(--reveal-delay, 0ms); }
.motion-ready .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1120px) {
  .practice-services { display: none; }
  .lawyer-grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .related-lawyers { grid-template-columns: repeat(2, 1fr); }
  .detail-grid, .article-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .detail-aside, .article-related { position: static; }
  .profile-snapshot-grid { grid-template-columns: 1fr; }
  .profile-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .practice-band { grid-template-columns: repeat(4, 1fr); }
  .practice-entry:nth-child(n+5) { border-top: 1px solid var(--border); }
  .practice-entry:nth-child(4n+5) { border-left: 0; }
  .site-nav { position: fixed; top: 0; right: 0; bottom: 0; z-index: 39; width: min(85vw, 400px); flex-direction: column; align-items: stretch; gap: 0; padding: 104px 34px 34px; background: var(--ink); transform: translateX(100%); transition: transform .3s ease; }
  .site-nav.open { transform: translateX(0); }
  .site-nav a { display: flex; align-items: center; min-height: 62px; padding: 0; border-bottom: 1px solid color-mix(in oklch, white 13%, transparent); font-family: var(--display); font-size: 24px; }
  .site-nav a::after { display: none; }
  .site-nav .nav-contact { display: flex; justify-content: center; margin-top: 22px; min-height: 56px; background: var(--accent); color: white; border-bottom: 0; font-family: var(--body); font-size: 16px; font-weight: 600; letter-spacing: .08em; }
  .menu-toggle { display: block; position: relative; z-index: 40; }
  .header-contact { display: none; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-portrait { max-width: 420px; }
  .lawyer-records-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .filter-panel { flex-direction: column; align-items: stretch; }
}
@media (max-width: 620px) {
  .header-inner { height: 76px; }
  .brand-lockup { height: 40px; }
  .home-hero-inner { padding-top: 84px; }
  .hero-copy h1 { font-size: clamp(32px, 9.6vw, 52px); }
  .hero-fact { margin-top: 18px; font-size: 13px; }
  .hero-actions { margin-top: 26px; }
  .practice-band { grid-template-columns: repeat(3, 1fr); }
  .practice-entry { flex-direction: column; gap: 9px; min-height: 86px; padding: 10px 8px; text-align: center; }
  .practice-entry + .practice-entry { border-left: 1px solid var(--border); }
  .practice-entry:nth-child(n+4) { border-top: 1px solid var(--border); }
  .practice-entry:nth-child(3n+4) { border-left: 0; }
  .practice-entry-icon svg { width: 22px; height: 22px; }
  .practice-entry-name { font-size: 14px; }
  .section-top { flex-direction: column; align-items: start; }
  .practice-card { flex-wrap: wrap; gap: 14px; padding: 26px 8px; }
  .practice-no { width: auto; }
  .practice-card-main { flex-basis: 100%; order: 3; }
  .news-card { flex-wrap: wrap; gap: 14px; padding: 22px 4px; }
  .news-thumb { display: none; }
  .news-meta { width: auto; grid-auto-flow: column; gap: 16px; }
  .news-main { flex-basis: 100%; }
  .news-card .card-arrow { display: none; }
  .service-list { grid-template-columns: 1fr; }
  .resume-timeline li { grid-template-columns: 1fr; gap: 6px; }
  .profile-gallery { grid-template-columns: 1fr; }
  .cta-inner { align-items: start; flex-direction: column; }
  .cta-inner .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-info dl > div, .profile-summary dl > div { grid-template-columns: 1fr; gap: 6px; }
  .map-caption { flex-direction: column; align-items: start; }
}
/* 超矮横屏：保证页眉、主标题、CTA 与领域入口完整可达 */
@media (max-height: 480px) {
  .hero-fact { display: none; }
  .home-hero-inner { padding-top: 56px; }
  .hero-copy h1 { font-size: clamp(28px, 4.4vw, 44px); }
  .hero-actions { margin-top: 16px; }
  .hero-actions .button { min-height: 44px; }
  .practice-entry { min-height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
