/* ==========================================================
   某某律师事务所 · 演示站点样式
   配色：深海军蓝 + 暖金；衬线标题 + 无衬线正文
   ========================================================== */

:root {
  --navy-900: #0b1626;
  --navy-800: #0f1f35;
  --navy-700: #16304f;
  --navy-600: #1f4068;
  --gold-500: #b8955a;
  --gold-400: #c9a96e;
  --gold-100: #f4ece0;
  --ink: #1d2433;
  --ink-soft: #4a5568;
  --muted: #7b8494;
  --line: #e4e1da;
  --paper: #faf8f4;
  --white: #ffffff;

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 6px;
  --shadow-sm: 0 2px 8px rgba(11, 22, 38, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 22, 38, 0.10);
  --container: 1180px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.35; margin: 0 0 .6em; color: var(--navy-800); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--gold-500); color: var(--white); padding: 8px 16px; border-radius: var(--radius);
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }

/* ---------- 演示提示条 ---------- */
.demo-bar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  text-align: center;
  padding: 6px 16px;
  letter-spacing: .02em;
}
.demo-bar strong { color: var(--gold-400); font-weight: 500; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  background: var(--navy-800); color: var(--gold-400);
  border-radius: 4px;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--navy-800); letter-spacing: .04em; }
.brand-sub { font-size: 10.5px; color: var(--muted); letter-spacing: .18em; text-transform: uppercase; }

.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list a {
  position: relative; display: block; padding: 8px 14px;
  font-size: 15px; color: var(--ink-soft); transition: color .2s;
}
.nav-list a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--gold-500); transform: scaleX(0); transition: transform .25s; transform-origin: left;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--navy-800); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list .nav-cta {
  margin-left: 10px; padding: 8px 20px;
  background: var(--navy-800); color: var(--white); border-radius: var(--radius);
}
.nav-list .nav-cta::after { display: none; }
.nav-list .nav-cta:hover { background: var(--navy-600); color: var(--white); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--navy-800);
  transition: transform .25s, opacity .2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500; letter-spacing: .04em;
  border: 1px solid transparent; cursor: pointer; transition: all .2s;
  font-family: inherit;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-gold { background: var(--gold-500); color: var(--white); }
.btn-gold:hover { background: #a6834a; }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-600); }
.btn-outline { border-color: var(--navy-800); color: var(--navy-800); }
.btn-outline:hover { background: var(--navy-800); color: var(--white); }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(184, 149, 90, .18), transparent 55%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  padding: 120px 0 140px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero-pillars {
  position: absolute; right: 6%; bottom: 0; width: 420px; max-width: 40%;
  color: rgba(201, 169, 110, .16);
}
.hero .container { position: relative; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; letter-spacing: .3em; color: var(--gold-400); margin-bottom: 28px;
}
.hero-eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--gold-400); }
.hero h1 { color: var(--white); font-size: clamp(34px, 5.2vw, 58px); letter-spacing: .06em; margin-bottom: 24px; max-width: 760px; }
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero-lead { font-size: 18px; color: rgba(255, 255, 255, .75); max-width: 600px; margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- 数字条 ---------- */
.stats { position: relative; margin-top: -64px; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.stat { padding: 34px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--navy-800); line-height: 1.1; }
.stat-num sup { font-size: 18px; color: var(--gold-500); margin-left: 2px; }
.stat-label { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---------- 通用区块 ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--paper); }
.section-dark { background: var(--navy-800); color: rgba(255, 255, 255, .8); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: .3em; color: var(--gold-500); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: .04em; }
.section-head p { color: var(--muted); margin: 0; }
.section-head .rule { width: 48px; height: 2px; background: var(--gold-500); margin: 18px auto 20px; }
.section-head.left .rule { margin-left: 0; }

/* ---------- 页面横幅（内页） ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(184, 149, 90, .2), transparent 50%),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white); padding: 84px 0 76px;
}
.page-hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px;
  border: 1px solid rgba(201, 169, 110, .2); border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(201, 169, 110, .04), 0 0 0 80px rgba(201, 169, 110, .03);
}
.page-hero h1 { color: var(--white); font-size: clamp(30px, 4vw, 44px); letter-spacing: .08em; margin-bottom: 10px; }
.page-hero p { color: rgba(255, 255, 255, .7); margin: 0; max-width: 620px; }
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .55); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--gold-400); }
.breadcrumb span[aria-hidden] { opacity: .5; }

/* ---------- 关于（首页简介 / 关于页） ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.split-media {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
}
.split-media .placeholder-art { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(201, 169, 110, .35); }
.split-media .placeholder-art svg { width: 46%; }
.split-media .media-badge {
  position: absolute; left: 24px; bottom: 24px; right: 24px;
  background: rgba(255, 255, 255, .96); border-radius: var(--radius); padding: 20px 24px;
  display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-md);
}
.media-badge .num { font-family: var(--serif); font-size: 38px; font-weight: 700; color: var(--gold-500); line-height: 1; }
.media-badge .txt { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.split-body p { color: var(--ink-soft); }
.check-list { margin: 24px 0 32px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.check-list svg { width: 20px; height: 20px; flex: none; color: var(--gold-500); margin-top: 4px; }

/* ---------- 业务卡片 ---------- */
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.practice-card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px; transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden;
}
.practice-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.practice-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.practice-card:hover::before { transform: scaleX(1); }
.practice-icon {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-100); color: var(--gold-500); margin-bottom: 22px;
}
.practice-icon svg { width: 26px; height: 26px; }
.practice-card h3 { font-size: 20px; margin-bottom: 10px; }
.practice-card p { font-size: 15px; color: var(--muted); margin: 0; }
.practice-card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 14px; color: var(--gold-500); }

/* 业务领域详情页 */
.practice-detail { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.practice-nav { position: sticky; top: calc(var(--header-h) + 24px); border-left: 2px solid var(--line); }
.practice-nav a { display: block; padding: 10px 20px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-soft); font-size: 15px; transition: all .2s; }
.practice-nav a:hover, .practice-nav a.is-active { color: var(--navy-800); border-color: var(--gold-500); background: var(--paper); }
.practice-block { padding: 8px 0 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.practice-block:last-child { border-bottom: 0; margin-bottom: 0; }
.practice-block-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.practice-block-head .practice-icon { margin: 0; }
.practice-block-head h2 { margin: 0; font-size: 26px; }
.practice-block > p { color: var(--ink-soft); }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag-list li { padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink-soft); background: var(--white); }

/* ---------- 优势 / 价值观 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.feature { text-align: left; }
.feature-num { font-family: var(--serif); font-size: 15px; color: var(--gold-400); letter-spacing: .1em; margin-bottom: 14px; }
.feature h3 { font-size: 20px; margin-bottom: 10px; }
.feature p { font-size: 15px; margin: 0; }
.section-dark .feature p { color: rgba(255, 255, 255, .65); }
.feature { padding-top: 24px; border-top: 1px solid rgba(201, 169, 110, .35); }

/* ---------- 律师卡片 ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.lawyer-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .25s, transform .25s; }
.lawyer-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.lawyer-photo {
  position: relative; aspect-ratio: 4 / 4.6; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--navy-600), var(--navy-900));
  color: rgba(255, 255, 255, .9);
}
.lawyer-photo .initial { font-family: var(--serif); font-size: 64px; font-weight: 700; letter-spacing: .05em; }
.lawyer-photo .silhouette { position: absolute; bottom: 0; width: 70%; color: rgba(255, 255, 255, .06); }
.lawyer-photo .ph-note { position: absolute; top: 12px; right: 12px; font-size: 11px; padding: 2px 8px; border-radius: 3px; background: rgba(0, 0, 0, .25); color: rgba(255, 255, 255, .6); }
.lawyer-info { padding: 22px 22px 24px; }
.lawyer-info h3 { font-size: 20px; margin-bottom: 2px; }
.lawyer-title { font-size: 14px; color: var(--gold-500); margin-bottom: 12px; }
.lawyer-info p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.7; }
.lawyer-meta { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.lawyer-meta div { display: flex; gap: 6px; }
.lawyer-meta dt { color: var(--ink-soft); flex: none; }
.lawyer-meta dd { margin: 0; word-break: break-all; }

.team-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.team-filter button {
  font: inherit; font-size: 14px; padding: 8px 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--white); color: var(--ink-soft); transition: all .2s;
}
.team-filter button:hover { border-color: var(--navy-800); color: var(--navy-800); }
.team-filter button.is-active { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.lawyer-card[hidden] { display: none; }

/* ---------- 新闻 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.news-cover { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); display: grid; place-items: center; color: rgba(201, 169, 110, .4); }
.news-cover.v2 { background: linear-gradient(135deg, #2a3a52, #12233a); }
.news-cover.v3 { background: linear-gradient(135deg, #5b4a33, #2b2418); color: rgba(255, 255, 255, .22); }
.news-cover svg { width: 56px; height: 56px; }
.news-cat { position: absolute; left: 16px; top: 16px; background: var(--gold-500); color: var(--white); font-size: 12px; padding: 3px 10px; border-radius: 3px; }
.news-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.news-body h3 { font-size: 18px; line-height: 1.5; margin-bottom: 10px; }
.news-card:hover h3 { color: var(--gold-500); }
.news-body p { font-size: 14px; color: var(--muted); margin: 0; flex: 1; }

/* 新闻列表页 */
.news-list { display: grid; gap: 0; }
.news-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 32px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--line); }
.news-item:first-child { border-top: 1px solid var(--line); }
.news-item-date { text-align: center; border-right: 1px solid var(--line); padding-right: 24px; }
.news-item-date .d { font-family: var(--serif); font-size: 38px; font-weight: 700; color: var(--navy-800); line-height: 1; }
.news-item-date .ym { font-size: 13px; color: var(--muted); margin-top: 6px; }
.news-item h3 { font-size: 20px; margin-bottom: 8px; transition: color .2s; }
.news-item p { color: var(--muted); font-size: 15px; margin: 0; }
.news-item .cat { display: inline-block; font-size: 12px; color: var(--gold-500); border: 1px solid var(--gold-400); padding: 0 8px; border-radius: 3px; margin-bottom: 8px; }
.news-item .arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy-800); transition: all .2s; }
.news-item .arrow svg { width: 18px; height: 18px; }
.news-item:hover h3 { color: var(--gold-500); }
.news-item:hover .arrow { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }
.news-item[hidden] { display: none; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination span, .pagination a { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; color: var(--ink-soft); }
.pagination .is-current { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.pagination .is-disabled { opacity: .4; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; max-width: 860px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.tl-item { position: relative; width: 50%; padding: 0 48px 48px; }
.tl-item:nth-child(odd) { text-align: right; }
.tl-item:nth-child(even) { margin-left: 50%; }
.tl-item::before { content: ""; position: absolute; top: 8px; width: 13px; height: 13px; border-radius: 50%; background: var(--white); border: 3px solid var(--gold-500); }
.tl-item:nth-child(odd)::before { right: -7px; }
.tl-item:nth-child(even)::before { left: -6px; }
.tl-year { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--gold-500); }
.tl-item h3 { font-size: 18px; margin: 4px 0 6px; }
.tl-item p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- 引言 ---------- */
.quote { max-width: 820px; margin: 0 auto; text-align: center; }
.quote svg { width: 40px; height: 40px; color: var(--gold-400); margin: 0 auto 24px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(20px, 2.6vw, 28px); line-height: 1.7; color: var(--white); }
.quote cite { display: block; margin-top: 24px; font-style: normal; font-size: 14px; color: var(--gold-400); letter-spacing: .2em; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--navy-800), var(--navy-600)); color: var(--white); padding: 72px 0; }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: var(--white); font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.cta p { color: rgba(255, 255, 255, .7); margin: 0; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.cta-phone { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 26px; color: var(--gold-400); }
.cta-phone svg { width: 26px; height: 26px; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.contact-cards { display: grid; gap: 18px; }
.contact-card { display: flex; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.contact-card .practice-icon { width: 48px; height: 48px; margin: 0; flex: none; }
.contact-card .practice-icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 16px; margin-bottom: 4px; }
.contact-card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.contact-card small { color: var(--muted); font-size: 13px; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: 24px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; }
.field label .req { color: #b4442f; margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); background: var(--white); box-shadow: 0 0 0 3px rgba(184, 149, 90, .15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b4442f; }
.field .error { display: none; font-size: 13px; color: #b4442f; margin-top: 4px; }
.field.has-error .error { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.consent input { margin-top: 5px; accent-color: var(--navy-800); }
.form-note { font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.form-success {
  display: none; padding: 16px 20px; border-radius: var(--radius); margin-top: 20px;
  background: #eef5ee; border: 1px solid #b9d6b9; color: #2f5a2f; font-size: 14px;
}
.form-success.is-visible { display: block; }

.map-placeholder {
  position: relative; height: 380px; border-radius: var(--radius); overflow: hidden;
  background:
    linear-gradient(rgba(15, 31, 53, .04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(15, 31, 53, .04) 1px, transparent 1px) 0 0 / 40px 40px,
    #eef0f2;
  display: grid; place-items: center;
}
.map-placeholder .road { position: absolute; background: #fff; }
.map-placeholder .r1 { left: 0; right: 0; top: 46%; height: 14px; transform: rotate(-4deg); }
.map-placeholder .r2 { top: 0; bottom: 0; left: 38%; width: 12px; transform: rotate(8deg); }
.map-placeholder .r3 { left: 0; right: 0; top: 76%; height: 8px; }
.map-placeholder .river { position: absolute; left: -10%; right: -10%; top: 18%; height: 40px; background: #cfe0ec; transform: rotate(6deg); border-radius: 50%; }
.map-pin { position: relative; text-align: center; z-index: 1; }
.map-pin svg { width: 44px; height: 44px; color: var(--gold-500); margin: 0 auto; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .2)); }
.map-pin span { display: inline-block; margin-top: 6px; background: var(--navy-800); color: var(--white); font-size: 13px; padding: 4px 12px; border-radius: 3px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--navy-800); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-weight: 300; font-size: 26px; color: var(--gold-500); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 22px; margin: 0; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .6); font-size: 14px; }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 48px; padding: 72px 0 56px; }
.site-footer .brand-name { color: var(--white); }
.site-footer .brand-sub { color: rgba(255, 255, 255, .45); }
.footer-about { margin-top: 20px; line-height: 1.9; }
.site-footer h4 { color: var(--white); font-size: 16px; margin-bottom: 18px; letter-spacing: .08em; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--gold-400); }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; }
.footer-contact svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--gold-400); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; font-size: 13px; color: rgba(255, 255, 255, .4); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy-800); color: var(--gold-400); box-shadow: var(--shadow-md);
  display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .25s;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold-500); color: var(--white); }

/* ---------- 进场动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   响应式
   ========================================================== */
@media (max-width: 1080px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: block; }
  /* backdrop-filter 会让 fixed 子元素以 header 为定位容器，移动端去掉 */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); }
  .site-nav {
    position: fixed; left: 0; right: 0; top: var(--nav-top, var(--header-h)); bottom: 0;
    background: var(--white); padding: 16px 24px 32px; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
  }
  .nav-open .site-nav { transform: none; visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { padding: 16px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--gold-500); }
  .nav-list .nav-cta { margin: 24px 0 0; text-align: center; border-bottom: 0; }

  .split, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .split-media { aspect-ratio: 16 / 10; }
  .practice-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .practice-detail { grid-template-columns: 1fr; gap: 32px; }
  .practice-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .practice-nav a { border: 1px solid var(--line); border-radius: 999px; margin: 0; padding: 6px 16px; font-size: 14px; }
  .practice-nav a:hover, .practice-nav a.is-active { border-color: var(--gold-500); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .section { padding: 72px 0; }
  .hero { padding: 80px 0 120px; }
  .hero-lead { font-size: 16px; }
  .hero-pillars { display: none; }
  .demo-bar { font-size: 12px; }
  .brand-sub { display: none; }
  .practice-grid, .news-grid, .team-grid { grid-template-columns: 1fr; }
  .team-grid { max-width: 400px; margin: 0 auto; }
  .feature-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 28px 22px; }
  .news-item { grid-template-columns: 80px 1fr; gap: 20px; }
  .news-item .arrow { display: none; }
  .news-item-date { padding-right: 16px; }
  .news-item-date .d { font-size: 30px; }
  .timeline::before { left: 6px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; margin: 0; padding: 0 0 36px 36px; text-align: left; }
  .tl-item:nth-child(odd)::before, .tl-item:nth-child(even)::before { left: 0; right: auto; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; padding: 56px 0 40px; }
  .cta .container { flex-direction: column; align-items: flex-start; }
  .stat { padding: 24px 12px; }
  .stat-num { font-size: 32px; }
}
