/* ==========================================================================
   湖南建设工程律师个人网站 · 全站样式
   设计基调：专业稳重 / 移动优先 / 无外部依赖
   ========================================================================== */

:root {
  --navy: #122a4a;
  --navy-2: #1b3a63;
  --navy-3: #0d2039;
  --ink: #1c2530;
  --ink-2: #35414f;
  --muted: #5c6b7c;
  --line: #e2e8f0;
  --line-2: #cfd8e3;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-soft-2: #eef2f7;
  --gold: #a8803c;
  --gold-2: #c9a563;
  --gold-soft: #f7f2e8;
  --white: #ffffff;
  --danger: #a33a34;
  --radius: 6px;
  --radius-lg: 10px;
  --maxw: 1180px;
  --shadow: 0 10px 30px rgba(18, 42, 74, 0.07);
  --shadow-sm: 0 2px 10px rgba(18, 42, 74, 0.05);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
}

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

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

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

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-decoration: none; }
a:hover { color: var(--gold); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0; font-weight: 700; color: var(--navy); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: .35em; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 12px; top: 12px; }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- 占位标记：所有待核实数据统一外观，避免虚构 ---------- */
.ph {
  display: inline-block;
  padding: 0 .4em;
  border: 1px dashed #d8bd8b;
  border-radius: 4px;
  background: var(--gold-soft);
  color: #8a6522;
  font-size: .92em;
  font-weight: 600;
  line-height: 1.7;
  white-space: nowrap;
}
.ph--block { display: block; width: 100%; text-align: center; padding: 10px; }
.ph--muted { background: #f2f5f9; border-color: var(--line-2); color: var(--muted); }

.notice {
  border-left: 4px solid var(--gold);
  background: var(--gold-soft);
  color: #6b5325;
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 24px;
}
.notice strong { color: #5a4419; }
.notice--soft { background: var(--bg-soft); border-left-color: var(--navy-2); color: var(--ink-2); }
.notice--soft strong { color: var(--navy); }

/* ---------- 顶部信息条 ---------- */
.topbar { background: var(--navy-3); color: #c9d5e4; font-size: 13px; }
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 38px; flex-wrap: wrap;
}
.topbar a { color: #e8dcc2; }
.topbar__tel { font-weight: 700; letter-spacing: .02em; }

/* ---------- 页头 / 导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark {
  width: 44px; height: 44px; border: 2px solid var(--navy);
  display: grid; place-items: center; border-radius: 3px;
  font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--navy);
  line-height: 1;
}
.brand__name { font-size: 19px; font-weight: 700; color: var(--navy); letter-spacing: .04em; line-height: 1.2; }
.brand__sub { font-size: 11.5px; color: var(--muted); letter-spacing: .12em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block; padding: 10px 13px; font-size: 15px; color: var(--ink-2);
  border-radius: 4px; white-space: nowrap;
}
.nav a:hover { background: var(--bg-soft); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 700; box-shadow: inset 0 -2px 0 var(--gold); }
.header__cta { flex-shrink: 0; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-2);
  background: #fff; border-radius: 4px; padding: 0; place-items: center;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--navy);
  transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle { display: none; gap: 4px; flex-direction: column; align-items: center; justify-content: center; }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px; border-radius: 4px; border: 1px solid transparent;
  font-size: 15px; font-weight: 700; letter-spacing: .02em; text-align: center;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--gold); color: #fff; }
.btn--primary:hover { background: #8f6c2e; color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); color: #fff; }
.btn--outline { border-color: rgba(255, 255, 255, .65); color: #fff; background: transparent; }
.btn--outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--ghost { border-color: var(--line-2); color: var(--navy); background: #fff; }
.btn--ghost:hover { border-color: var(--navy-2); color: var(--navy); background: var(--bg-soft); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-3) 0%, var(--navy) 48%, var(--navy-2) 100%);
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .16;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.10) 0 1px, transparent 1px 72px);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; width: 460px; height: 460px; right: -160px; top: -180px;
  border: 1px solid rgba(201, 165, 99, .28); border-radius: 50%; pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; padding: 76px 0 84px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr); gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px;
  letter-spacing: .18em; color: var(--gold-2); font-weight: 700; margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--gold-2); }
.eyebrow--dark { color: var(--gold); }
.eyebrow--dark::before { background: var(--gold); }
.hero h1 {
  color: #fff; font-size: clamp(30px, 4.1vw, 48px); line-height: 1.35;
  letter-spacing: .01em; margin-bottom: 22px; font-family: var(--serif);
}
.hero h1 .accent { color: #e6c98c; }
.hero__lead { font-size: 17px; line-height: 1.95; color: #d6e0ec; max-width: 640px; margin-bottom: 28px; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px;
  font-size: 13.5px; color: #bccbdd; border-top: 1px solid rgba(255,255,255,.16); padding-top: 20px;
}
.hero__trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust span::before { content: "◆"; color: var(--gold-2); font-size: 9px; }

.consult-card {
  background: #fff; color: var(--ink); border-radius: var(--radius-lg);
  padding: 30px 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
  border-top: 4px solid var(--gold);
}
.consult-card h2 { font-size: 20px; margin-bottom: 6px; }
.consult-card__sub { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.consult-card__tel {
  display: block; font-size: 26px; font-weight: 800; color: var(--navy);
  letter-spacing: .02em; line-height: 1.3; margin-bottom: 4px;
}
.consult-card__hint { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.consult-card__list { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--line); padding-top: 16px; }
.consult-card__list li { font-size: 13.5px; color: var(--ink-2); display: flex; gap: 9px; margin-bottom: 8px; }
.consult-card__list li::before { content: "✓"; color: var(--gold); font-weight: 800; }

/* ---------- 数字证明条 ---------- */
.stats { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 22px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; color: var(--navy); line-height: 1.3; }
.stat__label { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* ---------- 通用区块 ---------- */
.section { padding: 80px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy-3); color: #d9e2ee; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section__head { max-width: 760px; margin-bottom: 42px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head h2 { font-size: clamp(25px, 3vw, 34px); margin-bottom: 12px; letter-spacing: .01em; }
.section__head p { color: var(--muted); font-size: 15.5px; margin: 0; }
.section--navy .section__head p { color: #b6c5d8; }
.section__more { margin-top: 34px; text-align: center; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* ---------- 卡片 ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--ink-2); margin-bottom: 0; }

.service-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.service-card:hover { border-color: var(--gold-2); box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card__no { font-family: var(--serif); font-size: 30px; color: #d9c7a3; font-weight: 700; line-height: 1; margin-bottom: 16px; }
.service-card h3 { font-size: 18.5px; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--muted); flex: 1; margin-bottom: 18px; }
.service-card__list { list-style: none; padding: 0; margin: 0 0 20px; font-size: 13.5px; color: var(--ink-2); }
.service-card__list li { padding-left: 16px; position: relative; margin-bottom: 5px; }
.service-card__list li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.service-card__link { font-size: 14px; font-weight: 700; color: var(--navy-2); }
.service-card__link:hover { color: var(--gold); }

.tag {
  display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 20px;
  background: var(--bg-soft-2); color: var(--navy-2); border: 1px solid var(--line);
  margin-right: 6px; margin-bottom: 6px;
}
.tag--gold { background: var(--gold-soft); color: #8a6522; border-color: #e8d8b8; }

/* ---------- 案例卡片（四段式） ---------- */
.case-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.case-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.case-card h3 { font-size: 18px; margin-bottom: 14px; }
.case-block { margin-bottom: 14px; }
.case-block h4 {
  font-size: 13px; color: var(--gold); letter-spacing: .08em;
  margin-bottom: 4px; text-transform: none;
}
.case-block p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* ---------- 文章列表 ---------- */
.article-item {
  display: flex; gap: 20px; align-items: flex-start; padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.article-item:first-child { border-top: 1px solid var(--line); }
.article-item__no { font-family: var(--serif); font-size: 20px; color: #b8c3d1; min-width: 38px; }
.article-item__body { flex: 1; }
.article-item h3 { font-size: 17px; margin-bottom: 6px; line-height: 1.55; }
.article-item h3 a { color: var(--navy); }
.article-item h3 a:hover { color: var(--gold); }
.article-item p { font-size: 13.5px; color: var(--muted); margin: 0; }
.article-item__meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; padding-top: 4px; }

/* ---------- 筛选 ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-btn {
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-2);
  padding: 7px 16px; border-radius: 22px; font-size: 14px;
}
.filter-btn:hover { border-color: var(--navy-2); color: var(--navy); }
.filter-btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
[data-filter-item][hidden] { display: none !important; }

/* ---------- 面包屑 / 页头 ---------- */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 46px 0 42px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 8px; color: #aab4c0; }
.page-hero h1 { font-size: clamp(27px, 3.4vw, 38px); margin-bottom: 12px; font-family: var(--serif); }
.page-hero__lead { font-size: 16px; color: var(--muted); max-width: 780px; margin: 0; }

/* ---------- 正文排版 ---------- */
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 48px; align-items: start; }
.prose { max-width: 800px; }
.prose h2 {
  font-size: 23px; margin: 44px 0 16px; padding-left: 14px;
  border-left: 4px solid var(--gold);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 28px 0 10px; }
.prose p, .prose li { font-size: 15.5px; color: var(--ink-2); line-height: 1.95; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose .lead { font-size: 17px; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); color: var(--navy); }

.side-card {
  position: sticky; top: 100px; background: var(--bg-soft);
  border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: var(--radius); padding: 24px;
}
.side-card h3 { font-size: 17px; margin-bottom: 8px; }
.side-card p { font-size: 13.5px; color: var(--muted); }
.side-card .btn { margin-top: 8px; }
.side-nav { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px; }
.side-nav h4 { font-size: 13px; color: var(--muted); letter-spacing: .08em; margin-bottom: 10px; }
.side-nav a { display: block; font-size: 14px; padding: 6px 0; color: var(--ink-2); }
.side-nav a:hover { color: var(--gold); }

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 30px; margin-top: 8px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2); }
.timeline__item { position: relative; padding-bottom: 30px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -30px; top: 8px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; border: 3px solid var(--gold);
}
.timeline__stage { font-size: 13px; color: var(--gold); font-weight: 700; letter-spacing: .06em; }
.timeline__item h3 { font-size: 18px; margin: 4px 0 6px; }
.timeline__item p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- 证书占位 ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cert {
  border: 1px dashed var(--line-2); border-radius: var(--radius);
  background: var(--bg-soft); padding: 18px 14px; text-align: center;
}
.cert__frame {
  width: 100%; aspect-ratio: 4 / 5; border: 4px double #d7dfe9; background: #fff;
  display: grid; place-items: center; margin-bottom: 12px; color: #b5c0cd;
}
.cert__frame svg { width: 46px; height: 46px; }
.cert h4 { font-size: 14px; color: var(--ink-2); margin-bottom: 4px; }
.cert p { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); background: #fff; }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  padding: 17px 20px; font-size: 16px; font-weight: 700; color: var(--navy);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 20px; line-height: 1.2; flex-shrink: 0; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { background: var(--bg-soft); }
.faq__answer { padding: 4px 20px 18px; font-size: 14.5px; color: var(--ink-2); line-height: 1.9; }
.faq__answer p:last-child { margin-bottom: 0; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; color: var(--navy); }
.field label .req { color: var(--danger); margin-left: 3px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-2);
  border-radius: 4px; background: #fff; color: var(--ink); font-size: 15px;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--navy-2); outline: 2px solid rgba(27, 58, 99, .18); outline-offset: 1px;
}
.field__hint { font-size: 12.5px; color: var(--muted); }
.field__count { font-size: 12.5px; color: var(--muted); text-align: right; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.checkbox input { width: 17px; height: 17px; margin-top: 3px; flex-shrink: 0; accent-color: var(--navy); }
.field-error { color: var(--danger); font-size: 13px; min-height: 0; }
.form-result {
  margin-top: 22px; border: 1px solid #cfe0d3; background: #f2f9f4;
  border-radius: var(--radius); padding: 20px;
}
.form-result h3 { font-size: 17px; color: #22603f; margin-bottom: 8px; }
.form-result pre {
  white-space: pre-wrap; word-break: break-word; font-family: var(--font);
  font-size: 14px; line-height: 1.8; background: #fff; border: 1px solid var(--line);
  border-radius: 4px; padding: 14px; margin: 12px 0; color: var(--ink-2);
}
.form-result[hidden] { display: none; }

/* ---------- 流程步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 20px;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--serif); font-size: 26px; color: #d9c7a3;
  font-weight: 700; margin-bottom: 10px;
}
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- 联系信息 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact-item { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-item__icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold); display: grid; place-items: center;
}
.contact-item__icon svg { width: 20px; height: 20px; }
.contact-item h3 { font-size: 15px; margin-bottom: 4px; }
.contact-item p { font-size: 14px; color: var(--muted); margin: 0; word-break: break-all; }
.qr-box {
  width: 148px; height: 148px; border: 1px dashed var(--line-2); border-radius: 6px;
  display: grid; place-items: center; background: var(--bg-soft);
  color: var(--muted); font-size: 12.5px; text-align: center; padding: 10px;
}

/* ---------- CTA 条 ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 54px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 8px; font-family: var(--serif); }
.cta-band p { color: #c8d5e5; margin: 0; font-size: 15px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0b1c31; color: #a8b7c9; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding: 58px 0 40px; }
.site-footer h3 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer a { color: #a8b7c9; }
.site-footer a:hover { color: #e6c98c; }
.footer__brand { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: .04em; margin-bottom: 8px; }
.footer__slogan { color: #8fa1b7; font-size: 13.5px; line-height: 1.9; }
.footer__links { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin-bottom: 9px; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0 28px;
  font-size: 12.5px; color: #7f92a9; line-height: 1.9;
}
.footer__disclaimer { background: rgba(255, 255, 255, .035); padding: 16px 0; font-size: 12.5px; color: #8fa1b7; line-height: 1.85; }

/* ---------- 回到顶部 ---------- */
.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 44px; height: 44px; border-radius: 4px; border: 1px solid var(--line-2);
  background: #fff; color: var(--navy); box-shadow: var(--shadow);
  display: none; place-items: center; font-size: 18px;
}
.back-to-top.is-visible { display: grid; }
.back-to-top:hover { background: var(--navy); color: #fff; }

/* ---------- 入场动画（尊重减少动效偏好） ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; gap: 38px; }
  .consult-card { max-width: 460px; }
  .content-layout { grid-template-columns: 1fr; gap: 34px; }
  .side-card { position: static; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 900px) {
  .header__inner { min-height: 66px; }
  .nav-toggle { display: flex; }
  .header__cta { display: none; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 26px rgba(18, 42, 74, .12); padding: 8px 20px 16px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 8px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a[aria-current="page"] { box-shadow: none; background: var(--bg-soft); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .cert-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .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: 680px) {
  .container { width: min(100% - 32px, var(--maxw)); }
  .section { padding: 56px 0; }
  .hero__inner { padding: 52px 0 60px; }
  .hero__lead { font-size: 15.5px; }
  .grid-2, .grid-3, .grid-4, .form-grid, .contact-grid, .cert-grid, .steps, .stats__grid {
    grid-template-columns: 1fr;
  }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; padding: 42px 0 30px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .article-item { flex-wrap: wrap; gap: 8px 12px; }
  .article-item__meta { width: 100%; padding-top: 0; }
  .page-hero { padding: 34px 0 32px; }
  .topbar__inner { justify-content: center; text-align: center; padding: 6px 0; }
  .topbar__right { display: none; }
  .consult-card { padding: 24px 20px; }
}

/* ---------- 案例卡片：相关服务链接 ---------- */
.case-card__link { margin-top: 16px; font-size: 13.5px; }
.case-card__link a { color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-2); }
.case-card__link a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- 资质清单：文字可核验版，替代证书扫描件占位 ---------- */
.qual-list {
  list-style: none; padding: 0; margin: 18px 0 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.qual-list li {
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 6px; padding: 12px 16px; background: var(--bg-soft);
  font-size: 14px; color: var(--ink-2);
}
.qual-list strong { display: block; color: var(--navy); font-size: 15px; margin-bottom: 3px; }

/* ---------- 律所荣誉墙 ---------- */
.honor-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.honor-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.honor-item a { display: block; }
.honor-item img { display: block; width: 100%; height: 148px; object-fit: cover; }
.honor-item__body { padding: 12px 14px 14px; }
.honor-item__body h4 { font-size: 13.5px; margin: 0 0 4px; color: var(--ink); }
.honor-item__body p { font-size: 12px; color: var(--muted); margin: 0; }
.qr-box img { max-width: 100%; max-height: 100%; object-fit: contain; }

@media (max-width: 980px) { .honor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .qual-list, .honor-grid { grid-template-columns: 1fr; }
  .honor-item img { height: 190px; }
}


/* ---------- 证书图墙（脱敏展示） ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.cert-item { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.cert-item a { display: block; background: #f7f8fa; }
.cert-item img { display: block; width: 100%; height: 210px; object-fit: contain; padding: 8px; box-sizing: border-box; }
.cert-item figcaption { padding: 11px 14px 13px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cert-item figcaption span { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; color: var(--muted); }
.form-result.is-error { border-color: #e6c9c9; background: #fdf6f6; }
.form-result.is-error h3 { color: #9b3b3b; }
#form-success[hidden], #form-fallback[hidden] { display: none; }
@media (max-width: 980px) { .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cert-grid { grid-template-columns: 1fr; } .cert-item img { height: 240px; } }

@media print {
  .site-header, .topbar, .site-footer, .back-to-top, .cta-band, .btn { display: none !important; }
  body { color: #000; }
}
