/* ==========================================================================
   张德明律师 · 个人网站
   Design tokens / layout / components
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --paper: #f7f4ed;
  --paper-2: #ffffff;
  --paper-3: #efe9dc;
  --ink: #101c2c;
  --ink-soft: #4a5769;
  --ink-faint: #7b8798;
  --navy: #0b1a2e;
  --navy-2: #12283f;
  --navy-3: #1b3a56;
  --gold: #b98f3c;
  --gold-soft: #e3d3ae;
  --blue: #1b4db1;
  --line: rgba(16, 28, 44, 0.12);
  --line-strong: rgba(16, 28, 44, 0.22);

  --shadow-sm: 0 1px 2px rgba(11, 26, 46, .05), 0 2px 8px rgba(11, 26, 46, .04);
  --shadow-md: 0 10px 30px -12px rgba(11, 26, 46, .18), 0 2px 8px rgba(11, 26, 46, .04);
  --shadow-lg: 0 30px 70px -30px rgba(11, 26, 46, .35);

  --radius: 4px;
  --radius-lg: 8px;

  --shell: 1200px;
  --gutter: 28px;
  --header-h: 76px;

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

  --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-theme="dark"] {
  --paper: #0a1421;
  --paper-2: #101f33;
  --paper-3: #16283d;
  --ink: #e9eef5;
  --ink-soft: #a9b6c7;
  --ink-faint: #7c8b9e;
  --navy: #060d17;
  --navy-2: #0d1c2d;
  --navy-3: #16304a;
  --gold: #d1a955;
  --gold-soft: #8c6f3a;
  --blue: #6f9bf0;
  --line: rgba(233, 238, 245, 0.14);
  --line-strong: rgba(233, 238, 245, 0.26);
  --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .8);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .01em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold-soft); color: var(--navy); }

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

.skip-link {
  position: fixed;
  top: -100px; left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(64px, 8vw, 110px);
  border-top: 1px solid var(--line);
}
.section-alt {
  background: var(--paper-3);
}
[data-theme="dark"] .section-alt { background: var(--paper-2); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.section-head h2,
.about-copy h2,
.faq-head h2,
.contact-copy h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  margin-bottom: 14px;
}
.section-sub {
  color: var(--ink-soft);
  font-size: 15.5px;
  max-width: 56ch;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}
.eyebrow .rule {
  width: 28px; height: 1px;
  background: currentColor;
  display: inline-block;
  opacity: .6;
}

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .02em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(180deg, var(--navy-3), var(--navy));
  color: #fff;
}
.btn-primary:hover { background: linear-gradient(180deg, #23507a, var(--navy-2)); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: transparent;
  border-color: var(--ink);
}

.btn-sm { padding: 10px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold);
  transition: gap .18s var(--ease), color .18s var(--ease);
}
.text-link:hover { gap: 10px; color: var(--ink); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.icon-btn:hover { border-color: var(--line-strong); background: rgba(185, 143, 60, .07); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease),
              box-shadow .25s var(--ease), backdrop-filter .25s;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(16, 28, 44, .02);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--navy);
  color: var(--gold-soft);
  font-family: var(--font-serif);
  font-size: 19px;
  border-radius: 3px;
  letter-spacing: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong {
  font-family: var(--font-serif);
  font-size: 17px;
  letter-spacing: .04em;
}
.brand-text em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-faint);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  position: relative;
  padding: 9px 13px;
  font-size: 14.5px;
  color: var(--ink-soft);
  border-radius: var(--radius);
  transition: color .18s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { margin-left: 4px; }
.menu-toggle { display: none; }

.theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-moon { display: block; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(36px, 6vw, 76px));
  padding-bottom: clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(185, 143, 60, .13), transparent 62%),
    radial-gradient(700px 600px at 12% 8%, rgba(27, 77, 177, .09), transparent 60%);
  pointer-events: none;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: .28;
  mask-image: radial-gradient(760px 560px at 62% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(760px 560px at 62% 30%, #000 20%, transparent 78%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.18;
  letter-spacing: .01em;
  margin-bottom: 22px;
}
.hero h1 .accent {
  color: var(--gold);
  position: relative;
}
.lede {
  font-size: clamp(15.5px, 1.15vw, 17px);
  color: var(--ink-soft);
  max-width: 46ch;
  line-height: 1.85;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 470px;
}
.hero-stats > div {
  flex: 1;
  padding-right: 22px;
  margin-right: 22px;
  border-right: 1px solid var(--line);
}
.hero-stats > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-stats dt {
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}
.hero-stats dt span { color: var(--gold); font-size: .7em; }
.hero-stats dd {
  margin: 6px 0 0;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--ink-faint);
}

/* hero visual */
.hero-visual { position: relative; }
.portrait-frame {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: linear-gradient(160deg, var(--navy-3), var(--navy));
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.portrait-frame::before {
  content: "";
  position: absolute;
  inset: -14px -14px 22px 22px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  opacity: .45;
  z-index: -1;
}
.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: center 12%;
  border-radius: 3px;
  /* 证件照的宝蓝底色偏艳，压饱和后与藏青/米金更协调 */
  filter: grayscale(.42) saturate(.85) contrast(1.04) brightness(1.02);
}
.portrait-glow {
  position: absolute;
  inset: 10px;
  border-radius: 3px;
  background: linear-gradient(to top, rgba(11, 26, 46, .55), transparent 45%);
  pointer-events: none;
  z-index: 1;
}
.portrait-tag {
  position: absolute;
  left: 24px; top: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, .93);
  color: #0b1a2e;
  font-size: 12px;
  letter-spacing: .04em;
  border-radius: 100px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.portrait-tag .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #2f9e5f;
  box-shadow: 0 0 0 3px rgba(47, 158, 95, .18);
}

.quote-card {
  position: absolute;
  right: -18px;
  bottom: -30px;
  max-width: 292px;
  padding: 20px 22px 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.quote-card .q {
  width: 22px; height: 22px;
  color: var(--gold);
  opacity: .5;
  margin-bottom: 8px;
}
.quote-card p {
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink);
}

/* ---------- services ---------- */
.services-grid { gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  padding: 30px 28px 26px;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
[data-theme="dark"] .service-card { background: var(--paper); }
.service-card:hover { background: var(--paper-2); }
.service-card .text-link { margin-top: auto; }
.service-no {
  position: absolute;
  top: 20px; right: 22px;
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: .08em;
  opacity: .5;
}
.svc-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  margin-bottom: 18px;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.svc-icon svg { width: 21px; height: 21px; }
.service-card:hover .svc-icon {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--gold-soft);
}
.service-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ---------- about ---------- */
.about-inner {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
}
.about-media { position: sticky; top: calc(var(--header-h) + 28px); }
.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-md);
}
.about-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(.42) saturate(.85) contrast(1.04) brightness(1.02);
}
.cred-list {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.cred-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.cred-list strong { font-weight: 500; color: var(--ink-faint); }
.cred-list span { color: var(--ink); text-align: right; }

.about-copy p {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.9;
  margin-bottom: 16px;
}
.about-copy .about-lead {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 22px;
  padding-left: 16px;
  border-left: 2px solid var(--gold);
}
.about-copy h2 { margin-bottom: 16px; }

.timeline {
  margin: 32px 0 30px;
  border-left: 1px solid var(--line-strong);
  padding-left: 26px;
}
.timeline li {
  position: relative;
  padding-bottom: 22px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -30px; top: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--gold);
}
.timeline .year {
  display: block;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: 4px;
}
.timeline h4 { font-size: 16px; margin-bottom: 4px; }
.timeline p { font-size: 14px; margin: 0; color: var(--ink-soft); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  padding: 6px 13px;
  font-size: 12.5px;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
}

/* ---------- cases ---------- */
.case-grid { gap: 20px; }
.case-card {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.case-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.chip {
  align-self: flex-start;
  display: inline-block;
  padding: 4px 11px;
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--gold);
  background: rgba(185, 143, 60, .1);
  border-radius: 100px;
  margin-bottom: 14px;
  font-weight: 600;
}
.chip-solid {
  color: #fff;
  background: var(--navy);
  letter-spacing: .06em;
}
.case-card h3 {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.case-card > p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.82;
  margin-bottom: 20px;
}
.case-result {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
  display: grid;
  gap: 4px;
}
.case-result span {
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--ink-faint);
}
.case-result strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}

/* ---------- insights ---------- */
.insight-layout {
  display: grid;
  grid-template-columns: 1.55fr .95fr;
  gap: 22px;
  align-items: start;
}
.post-feature {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .22s var(--ease), transform .22s var(--ease);
}
.post-feature:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-cover { position: relative; display: block; overflow: hidden; background: var(--navy); }
.post-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 2.2 / 1;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.post-feature:hover .post-cover img { transform: scale(1.04); }
.post-cover .chip {
  position: absolute;
  left: 16px; top: 16px;
  margin: 0;
}
.post-body {
  display: flex;
  flex-direction: column;
  padding: 28px 28px 26px;
}
.post-body time {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.post-body h3 {
  font-size: 21px;
  line-height: 1.55;
  margin-bottom: 12px;
}
.post-body p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 18px;
}
.post-body .text-link { margin-top: auto; }

.subscribe-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 28px;
  background: linear-gradient(165deg, var(--navy-3), var(--navy));
  color: #fff;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.subscribe-card::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -60px;
  width: 190px; height: 190px;
  border: 1px solid rgba(227, 211, 174, .22);
  border-radius: 50%;
}
.subscribe-card .qr {
  width: 96px; height: 96px;
  border-radius: 3px;
  background: #fff;
  padding: 5px;
  margin-bottom: 18px;
}
.subscribe-card h3 {
  font-size: 19px;
  color: #fff;
  margin-bottom: 10px;
}
.subscribe-card p {
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .76);
  margin-bottom: 22px;
}
.subscribe-card .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .38);
  margin-top: auto;
}
.subscribe-card .btn-ghost:hover {
  border-color: var(--gold-soft);
  color: var(--gold-soft);
  background: transparent;
}

.post-more {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.post-more[hidden] { display: none; }
.post-more-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.post-more-head h3 {
  font-size: 15px;
  letter-spacing: .06em;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-weight: 600;
}
.post-strip { display: grid; gap: 0; }
.post-item {
  display: grid;
  grid-template-columns: 96px 1fr 24px;
  align-items: center;
  gap: 16px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  transition: padding-left .2s var(--ease), background-color .2s var(--ease);
}
.post-item:hover { padding-left: 10px; }
.post-item time {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.post-item h4 {
  font-size: 15.5px;
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  transition: color .18s var(--ease);
}
.post-item:hover h4 { color: var(--gold); }
.post-arrow {
  color: var(--ink-faint);
  font-size: 14px;
  transition: transform .2s var(--ease), color .2s var(--ease);
}
.post-item:hover .post-arrow { transform: translateX(4px); color: var(--gold); }

/* ---------- process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
}
.steps li {
  position: relative;
  padding: 28px 24px 0 0;
  border-right: 1px solid var(--line);
}
.steps li:last-child { border-right: 0; padding-right: 0; }
.step-no {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
.steps h3 { font-size: 17px; margin-bottom: 8px; }
.steps p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.8; max-width: 26ch; }

/* ---------- faq ---------- */
.faq-inner {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.faq-head .btn { margin-top: 26px; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color .18s var(--ease);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  flex: none;
  width: 11px; height: 11px;
  border-right: 1.5px solid var(--ink-faint);
  border-bottom: 1.5px solid var(--ink-faint);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.faq-list details[open] summary { color: var(--gold); }
.faq-list details[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
  border-color: var(--gold);
}
.faq-body { padding: 0 0 20px; }
.faq-body p {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- contact ---------- */
.contact { border-top: 1px solid var(--line); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr .92fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact-copy .lede { margin-bottom: 34px; }

.contact-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list .ci {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
}
.contact-list .ci svg { width: 16px; height: 16px; }
.contact-list strong {
  display: block;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink-faint);
  font-weight: 500;
  margin-bottom: 2px;
}
.contact-list a,
.contact-list span:not(.ci) {
  font-size: 15.5px;
  color: var(--ink);
}
.contact-list a:hover { color: var(--gold); }

.urgent-card {
  margin-top: 26px;
  padding: 18px 20px;
  border-left: 2px solid var(--gold);
  background: rgba(185, 143, 60, .07);
}
.urgent-card strong {
  display: block;
  font-size: 14px;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.urgent-card p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.contact-form {
  padding: 30px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.form-head { margin-bottom: 22px; }
.form-head h3 { font-size: 21px; margin-bottom: 6px; }
.form-head p { font-size: 13px; color: var(--ink-faint); }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.req { color: #c0563f; margin-left: 3px; }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
  appearance: none;
}
.field textarea { resize: vertical; min-height: 104px; line-height: 1.7; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); opacity: .8; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--paper-2);
  box-shadow: 0 0 0 3px rgba(185, 143, 60, .14);
}
.field.invalid input,
.field.invalid textarea { border-color: #c0563f; }
.field.invalid input:focus,
.field.invalid textarea:focus { box-shadow: 0 0 0 3px rgba(192, 86, 63, .14); }

.select-wrap { position: relative; }
.select-wrap select { padding-right: 38px; cursor: pointer; }
.select-wrap svg {
  position: absolute;
  right: 13px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--ink-faint);
  pointer-events: none;
}

.err {
  font-size: 12px;
  color: #c0563f;
  margin-top: 5px;
  min-height: 0;
  display: none;
}
.field.invalid .err { display: block; }
.hint {
  font-size: 11.5px;
  color: var(--ink-faint);
  text-align: right;
  margin-top: 5px;
}
.form-note {
  font-size: 11.5px;
  color: var(--ink-faint);
  line-height: 1.7;
  margin-top: 12px;
  text-align: center;
}

.form-success {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 16px;
  background: rgba(47, 158, 95, .09);
  border: 1px solid rgba(47, 158, 95, .3);
  border-radius: var(--radius);
}
.form-success[hidden] { display: none; }
.form-success svg { width: 20px; height: 20px; color: #2f9e5f; flex: none; margin-top: 2px; }
.form-success strong { font-size: 14px; }
.form-success p { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
.form-success a { color: var(--gold); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .8);
  padding-top: 54px;
}
[data-theme="dark"] .site-footer { background: #05090f; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand .brand-mark {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(227, 211, 174, .3);
}
.footer-brand strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 16px;
  color: #fff;
  letter-spacing: .05em;
}
.footer-brand p { font-size: 12.5px; color: rgba(255, 255, 255, .55); margin-top: 2px; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .72);
  transition: color .18s var(--ease);
}
.footer-nav a:hover { color: var(--gold-soft); }

.footer-qr { display: flex; align-items: center; gap: 11px; }
.footer-qr img {
  width: 62px; height: 62px;
  border-radius: 3px;
  background: #fff;
  padding: 3px;
}
.footer-qr span { font-size: 11.5px; color: rgba(255, 255, 255, .55); }

.footer-legal {
  padding-block: 22px 26px;
  display: grid;
  gap: 7px;
}
.footer-legal p { font-size: 11.5px; color: rgba(255, 255, 255, .46); line-height: 1.8; }
.footer-legal .disclaimer { max-width: 78ch; }

/* 备案号：法定要求展示，需可点击跳转工信部 */
.footer-legal .icp {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.footer-legal .icp:hover { color: var(--gold-soft); border-bottom-color: currentColor; }

/* ---------- mobile bar ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--paper-2) 94%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  gap: 10px;
}
.mb-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 10px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.mb-item svg { width: 17px; height: 17px; }
.mb-primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ---------- reveal animation ---------- */
/* 只有 JS 可用时才隐藏，避免脚本失败导致内容不可见 */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }

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

/* ==========================================================================
   responsive
   ========================================================================== */
@media (max-width: 1080px) {
  :root { --gutter: 22px; }
  .hero-inner { grid-template-columns: 1fr .9fr; gap: 36px; }
  .quote-card { right: -8px; bottom: -24px; max-width: 260px; padding: 16px 18px; }
  .about-inner { grid-template-columns: .85fr 1.15fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(2) { border-right: 0; }
  .steps li { padding-bottom: 22px; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }

  .menu-toggle { display: inline-flex; }
  .header-cta span { display: none; }
  .header-cta {
    padding: 10px;
    width: 40px; height: 40px;
  }
  .header-cta svg { width: 18px; height: 18px; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
    margin-left: 0;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a {
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }

  .hero { padding-top: calc(var(--header-h) + 32px); }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; max-width: 460px; }
  .hero h1 { font-size: clamp(30px, 7.4vw, 44px); }
  .lede { max-width: none; }
  .hero-stats { margin-top: 32px; max-width: none; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .about-media { position: static; }
  .about-photo { max-width: 380px; }
  .insight-layout { grid-template-columns: 1fr; }
  .post-feature { grid-template-columns: 1fr; }
  .post-cover img { aspect-ratio: 16 / 9; }
  .faq-inner { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }

  .mobile-bar { display: flex; }
  body { padding-bottom: 64px; }
  .site-footer { padding-bottom: 8px; }
}

@media (max-width: 620px) {
  .grid-3 { grid-template-columns: 1fr; }
  .services-grid { gap: 1px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { width: 100%; }
  .quote-card { position: static; max-width: none; margin-top: 18px; }
  .portrait-frame::before { inset: -9px -9px 16px 16px; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .steps li { border-right: 0; border-top: 1px solid var(--line); padding: 20px 0; }
  .steps p { max-width: none; }
  .contact-form { padding: 22px 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 22px; }
  .footer-nav { gap: 14px 18px; }
  .brand-text em { display: none; }
  .section { padding-block: 56px; }
  .post-item {
    grid-template-columns: 1fr 20px;
    gap: 4px 10px;
    padding: 14px 2px;
  }
  .post-item time { grid-column: 1 / -1; font-size: 11px; }
  .post-item h4 { font-size: 15px; }
  .post-arrow { align-self: center; }
}
