/* 古金青铜 — lawyer-gilt-bronze
   参考站 mubanyangben/古金-1：古金 primary hue~78 / 青铜 accent hue~54 / 暖象牙底 */

:root {
  --bg-50: oklch(0.99 0.008 90);
  --bg-100: oklch(0.972 0.012 88);
  --bg-200: oklch(0.94 0.017 86);
  --bg-300: oklch(0.9 0.022 86);
  --fg-500: oklch(0.6 0.015 85);
  --fg-600: oklch(0.5 0.015 85);
  --fg-700: oklch(0.4 0.015 85);
  --fg-800: oklch(0.3 0.014 85);
  --fg-900: oklch(0.22 0.012 85);
  --fg-950: oklch(0.145 0.01 85);

  --primary-50: oklch(0.972 0.022 86);
  --primary-100: oklch(0.94 0.045 86);
  --primary-200: oklch(0.888 0.075 84);
  --primary-300: oklch(0.828 0.102 82);
  --primary-400: oklch(0.755 0.12 80);
  --primary-500: oklch(0.675 0.122 78);
  --primary-600: oklch(0.585 0.112 75);
  --primary-700: oklch(0.485 0.094 72);
  --primary-800: oklch(0.395 0.074 70);
  --primary-950: oklch(0.215 0.038 66);

  --accent-100: oklch(0.932 0.03 60);
  --accent-200: oklch(0.868 0.055 58);
  --accent-500: oklch(0.578 0.108 54);
  --accent-700: oklch(0.42 0.082 50);
  --accent-900: oklch(0.268 0.048 46);

  --secondary-100: oklch(0.952 0.01 84);
  --secondary-200: oklch(0.9 0.014 84);
  --secondary-900: oklch(0.28 0.012 84);

  --font-heading: "Noto Serif SC", "Playfair Display", serif;
  --font-body: "Noto Sans SC", system-ui, sans-serif;
  --font-display: "Playfair Display", "Noto Serif SC", serif;

  --radius: 6px;
  --radius-lg: 8px;
  --header-h: 4.5rem;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-50);
  color: var(--fg-950);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 5.5rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); line-height: 1.25; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--primary-300); color: var(--fg-950); }

.font-display { font-family: var(--font-display); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .wrap { padding: 0 2rem; } }

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, gap .2s;
  white-space: nowrap;
}
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8125rem; }
.btn-primary {
  background: var(--primary-500);
  color: var(--bg-50);
}
.btn-primary:hover { background: var(--primary-600); }
.btn-outline {
  background: transparent;
  border-color: var(--fg-700);
  color: var(--fg-800);
}
.btn-outline:hover {
  border-color: var(--primary-400);
  color: var(--primary-700);
}
.btn-dark {
  background: var(--fg-950);
  color: var(--bg-50);
}
.btn-dark:hover { background: var(--fg-800); }
.btn-ghost-light {
  background: transparent;
  border-color: oklch(0.99 0.008 90 / 0.4);
  color: var(--bg-50);
}
.btn-ghost-light:hover { background: oklch(0.99 0.008 90 / 0.1); }
.btn-ghost {
  background: transparent;
  color: var(--fg-700);
  border-color: var(--bg-300);
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  background: oklch(0.99 0.008 90 / 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid oklch(0.94 0.017 86 / 0.7);
}
body.is-home:not(.is-scrolled):not(.nav-open) .site-header {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.brand-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-500);
  color: var(--bg-50);
  font-size: 1.25rem;
  transition: background .3s, color .3s, border-color .3s;
}
body.is-home:not(.is-scrolled):not(.nav-open) .brand-icon {
  background: oklch(0.675 0.122 78 / 0.2);
  color: var(--primary-300);
  border: 1px solid oklch(0.755 0.12 80 / 0.4);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-primary {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fg-950);
  transition: color .3s;
}
.brand-secondary {
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  color: var(--fg-500);
  margin-top: 0.2rem;
  transition: color .3s;
}
body.is-home:not(.is-scrolled):not(.nav-open) .brand-primary { color: var(--bg-50); }
body.is-home:not(.is-scrolled):not(.nav-open) .brand-secondary { color: oklch(0.94 0.017 86); }

.nav { display: none; align-items: center; gap: 0.15rem; flex-wrap: wrap; justify-content: flex-end; }
@media (min-width: 900px) { .nav { display: flex; } }
.nav-link {
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  border-radius: var(--radius);
  color: var(--fg-700);
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--primary-700); background: var(--bg-100); }
.nav-cta {
  margin-left: 0.35rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.875rem;
  border-radius: var(--radius);
  background: var(--primary-500);
  color: var(--bg-50) !important;
}
.nav-cta:hover { background: var(--primary-600); }
body.is-home:not(.is-scrolled):not(.nav-open) .nav-link { color: oklch(0.972 0.012 88); }
body.is-home:not(.is-scrolled):not(.nav-open) .nav-link:hover { color: var(--primary-300); background: transparent; }

.header-phone {
  display: none;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-700);
  white-space: nowrap;
}
@media (min-width: 1100px) { .header-phone { display: inline-flex; } }
body.is-home:not(.is-scrolled):not(.nav-open) .header-phone { color: var(--primary-300); }

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg-100);
  color: var(--fg-900);
  font-size: 1.25rem;
}
@media (min-width: 900px) { .nav-toggle { display: none; } }
body.is-home:not(.is-scrolled):not(.nav-open) .nav-toggle {
  background: oklch(0.145 0.01 85 / 0.3);
  color: var(--bg-50);
}

.mobile-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.5rem 1rem 1.25rem;
  background: var(--bg-50);
  border-bottom: 1px solid oklch(0.94 0.017 86 / 0.7);
}
.mobile-nav[hidden] { display: none !important; }
.mobile-nav a {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius);
  background: var(--bg-100);
  color: var(--fg-800);
}
.mobile-nav .nav-cta {
  grid-column: 1 / -1;
  text-align: center;
  background: var(--primary-500);
  color: var(--bg-50) !important;
  margin: 0;
}
@media (min-width: 900px) { .mobile-nav { display: none !important; } }

/* —— Hero (参考站左对齐全幅暗色首屏) —— */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--bg-50);
}
@media (min-width: 768px) { .hero { min-height: 100vh; } }
.hero-bg, .hero-overlay { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero-bg-fallback {
  background:
    radial-gradient(ellipse at 20% 30%, oklch(0.485 0.094 72 / 0.45), transparent 55%),
    linear-gradient(160deg, oklch(0.215 0.038 66), oklch(0.145 0.01 85) 60%, oklch(0.268 0.048 46));
}
.hero-overlay {
  background:
    linear-gradient(to bottom, oklch(0 0 0 / 0.65), oklch(0 0 0 / 0.45), oklch(0 0 0 / 0.75)),
    oklch(0.215 0.038 66 / 0.25);
}
.hero-inner {
  position: relative;
  width: 100%;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 5rem;
}
.hero-copy { max-width: 42rem; }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--primary-300);
}
.hero-line { display: block; width: 2.5rem; height: 1px; background: var(--primary-400); flex-shrink: 0; }
.hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}
.hero-tagline {
  margin-top: 0.85rem;
  font-size: clamp(1.15rem, 2.5vw, 2rem);
  font-weight: 400;
  color: oklch(0.972 0.012 88);
  font-family: var(--font-heading);
}
.hero-lead {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: oklch(0.94 0.017 86);
}
.hero-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}
.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: oklch(0.9 0.022 86);
  font-size: 0.625rem;
  letter-spacing: 0.3em;
}
@media (min-width: 768px) { .hero-scroll { display: flex; } }
.hero-scroll-line {
  width: 1px; height: 2.5rem;
  background: linear-gradient(to bottom, var(--primary-400), transparent);
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-rise {
  animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.35s; }

/* —— Sections —— */
.section { padding: 4rem 0; }
@media (min-width: 768px) { .section { padding: 5.5rem 0; } }
.section-alt { background: var(--bg-100); }
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary-600);
  margin-bottom: 1rem;
}
.section-eyebrow i { letter-spacing: 0; }
.eyebrow-line { display: inline-block; width: 2rem; height: 1px; background: currentColor; }
.section-head-center { text-align: center; max-width: 40rem; margin: 0 auto; }
.section-head-center .section-eyebrow { justify-content: center; }
.section-head-row {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .section-head-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--fg-950);
}
.section-more { margin-top: 2rem; text-align: center; }
.section-desc {
  margin-top: 0.85rem;
  font-size: 0.9375rem;
  color: var(--fg-600);
  line-height: 1.7;
  max-width: 36rem;
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--fg-700);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--fg-800);
  white-space: nowrap;
}
.section-link:hover {
  border-color: var(--primary-400);
  color: var(--primary-700);
}

/* —— About home —— */
.about-home-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .about-home-grid { grid-template-columns: 5fr 7fr; gap: 4rem; }
}
.about-home-photo-wrap { max-width: 26rem; margin: 0 auto; width: 100%; }
@media (min-width: 900px) { .about-home-photo-wrap { margin: 0; } }
.about-home-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-200);
}
.about-home-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.about-photo-fallback {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(160deg, var(--primary-100), var(--bg-200));
  color: var(--primary-700);
  font-family: var(--font-heading);
  font-size: 1.5rem;
}
.about-photo-fallback i { font-size: 3rem; }
.about-home-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.3;
}
.about-title {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--primary-700);
  font-weight: 600;
}
.about-meta { margin-top: 0.4rem; font-size: 0.875rem; color: var(--fg-600); }
.about-lead { margin-top: 1.25rem; font-size: 0.9375rem; color: var(--fg-600); line-height: 1.8; }
.about-home-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Cards / grids —— */
.practice-grid,
.case-grid,
.card-grid,
.banner-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .practice-grid, .case-grid, .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .practice-grid, .case-grid, .card-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.practice-card,
.case-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.35rem 1.5rem;
  background: var(--bg-50);
  border: 1px solid oklch(0.94 0.017 86 / 0.8);
  border-radius: var(--radius-lg);
  transition: border-color .2s;
}
.section-alt .practice-card,
.section-alt .case-card { background: var(--bg-50); }
.case-card { background: var(--bg-100); }
.practice-card:hover,
.case-card:hover { border-color: var(--primary-300); }
.practice-icon {
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-100);
  color: var(--primary-700);
  font-size: 1.35rem;
}
.practice-card h3,
.case-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--fg-950);
}
.practice-card p,
.case-card p {
  font-size: 0.875rem;
  color: var(--fg-600);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--primary-700);
  padding-top: 0.5rem;
}
.tag-primary,
.tag-accent,
.tag-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  width: fit-content;
}
.tag-primary { background: var(--primary-500); color: var(--bg-50); }
.tag-accent { background: var(--accent-100); color: var(--accent-900); }
.tag-secondary { background: var(--secondary-100); color: var(--secondary-900); }
.case-result-box {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--bg-200);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--primary-700);
}
.case-result-box p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: inherit;
}
.case-result { color: var(--primary-700); }

.banner-grid { grid-template-columns: 1fr; }
@media (min-width: 768px) { .banner-grid { grid-template-columns: repeat(2, 1fr); } }
.banner-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--bg-200);
  background: var(--bg-100);
}
.banner-card img { border-radius: var(--radius); margin-bottom: 1rem; }
.banner-card h2 { font-size: 1.15rem; margin-bottom: 1rem; }

/* —— News stack (单列文字列表) —— */
.news-stack {
  background: var(--bg-50);
  border: 1px solid oklch(0.94 0.017 86 / 0.8);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.news-stack-item {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid var(--bg-200);
  transition: background .2s;
}
.news-stack-item:last-child { border-bottom: 0; }
.news-stack-item:hover { background: oklch(0.972 0.022 86 / 0.6); }
@media (min-width: 768px) {
  .news-stack-item {
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    padding: 1.5rem 1.75rem;
  }
}
.news-stack-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--fg-500);
}
@media (min-width: 768px) { .news-stack-meta { width: 11rem; } }
.news-stack-body { flex: 1; min-width: 0; }
.news-stack-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg-950);
  transition: color .2s;
}
.news-stack-item:hover .news-stack-body h3 { color: var(--primary-700); }
.news-stack-body p {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  color: var(--fg-600);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-stack-arrow {
  flex-shrink: 0;
  color: var(--fg-500);
  font-size: 1rem;
}
.news-date { white-space: nowrap; }

/* —— Booking CTA (链到 /consult，无表单) —— */
.booking-cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--primary-200);
  background: var(--bg-100);
  padding: 2.5rem 1.5rem;
}
@media (min-width: 768px) { .booking-cta { padding: 3.5rem 3rem; } }
.booking-watermark {
  position: absolute;
  right: -0.5rem; bottom: -1.5rem;
  font-family: var(--font-heading);
  font-size: 12rem;
  line-height: 1;
  color: oklch(0.675 0.122 78 / 0.1);
  user-select: none;
  pointer-events: none;
}
.booking-cta-grid {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .booking-cta-grid { grid-template-columns: 7fr 5fr; gap: 3rem; }
}
.booking-cta-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
}
.booking-cta-copy > p {
  margin-top: 1.1rem;
  max-width: 36rem;
  font-size: 0.9375rem;
  color: var(--fg-600);
  line-height: 1.75;
}
.booking-cta-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.booking-cta-side {
  background: var(--bg-50);
  border: 1px solid oklch(0.94 0.017 86 / 0.8);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.booking-cta-side h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg-900);
}
.booking-cta-side ul { margin-top: 1.1rem; display: grid; gap: 1rem; }
.booking-cta-side li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--fg-600);
}
.booking-cta-side i { color: var(--primary-600); margin-top: 0.15rem; }

/* —— Page hero —— */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 2.5rem) 0 3rem;
  background: var(--bg-100);
  border-bottom: 1px solid oklch(0.94 0.017 86 / 0.7);
}
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.22;
}
.page-hero-fallback {
  background:
    linear-gradient(135deg, var(--bg-100), var(--primary-50) 50%, var(--bg-200));
}
.page-hero.has-img .page-hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, oklch(0.99 0.008 90 / 0.55), oklch(0.972 0.012 88 / 0.88));
}
.page-hero-mark {
  position: absolute;
  right: -1rem; top: -0.5rem;
  font-family: var(--font-heading);
  font-size: 13rem;
  line-height: 1;
  color: oklch(0.675 0.122 78 / 0.05);
  user-select: none;
  pointer-events: none;
}
.page-hero-inner { position: relative; }
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--fg-950);
}
.page-hero-desc {
  margin-top: 1.1rem;
  max-width: 40rem;
  font-size: 0.9375rem;
  color: var(--fg-600);
  line-height: 1.7;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
  font-size: 0.75rem;
  color: var(--fg-500);
}
.crumbs a:hover { color: var(--primary-700); }
.crumb-sep { display: inline-flex; opacity: 0.7; }
.crumb-current {
  color: var(--fg-700);
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* —— Detail / contact / consult —— */
.detail-layout,
.contact-layout,
.consult-layout {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .detail-layout,
  .contact-layout,
  .consult-layout {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 2.5rem;
    align-items: start;
  }
  .consult-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
}
.detail-aside { position: sticky; top: calc(var(--header-h) + 1rem); }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  color: var(--fg-500);
}
.article-lead {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--primary-500);
  background: var(--bg-100);
  font-size: 1rem;
  color: var(--fg-700);
  line-height: 1.7;
}
.author-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--bg-200);
  border-radius: var(--radius-lg);
  background: var(--bg-100);
}
.author-card img {
  width: 4rem; height: 4rem;
  border-radius: 50%;
  object-fit: cover;
}
.author-card strong { display: block; font-size: 0.95rem; }
.author-title { margin-left: 0.4rem; font-weight: 400; color: var(--fg-500); font-size: 0.85rem; }
.author-card p { font-size: 0.8rem; color: var(--fg-600); margin-top: 0.2rem; }
.detail-practice { margin-bottom: 1rem; font-size: 0.875rem; color: var(--fg-600); }
.detail-practice a { color: var(--primary-700); text-decoration: underline; }
.alert-soft {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--accent-100);
  color: var(--accent-900);
  font-size: 0.875rem;
}
.result-box {
  margin-bottom: 1.5rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--primary-200);
  background: var(--primary-50);
}
.result-box strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  color: var(--primary-700);
}

.contact-tiles {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .contact-tiles-page { grid-template-columns: repeat(2, 1fr); }
}
.contact-tile {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid oklch(0.94 0.017 86 / 0.8);
  background: var(--bg-100);
  text-align: left;
}
.contact-tile-ico {
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-100);
  color: var(--primary-700);
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}
.contact-tile-label { font-size: 0.8125rem; font-weight: 600; color: var(--fg-900); }
.contact-tile-value { font-size: 0.875rem; color: var(--fg-600); line-height: 1.6; }
.contact-tile-sub { font-size: 0.8rem; color: var(--fg-500); }

.consult-intro { font-size: 0.9375rem; color: var(--fg-600); margin-bottom: 1rem; line-height: 1.7; }
.consult-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-700);
}
.consult-privacy-note {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-200);
  background: oklch(0.97 0.012 62);
}
.consult-privacy-ico {
  width: 2.5rem; height: 2.5rem;
  flex-shrink: 0;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-500);
  color: var(--bg-50);
  font-size: 1.15rem;
}
.consult-privacy-note h3 { font-size: 0.875rem; font-weight: 600; }
.consult-privacy-note p { margin-top: 0.4rem; font-size: 0.875rem; color: var(--fg-700); line-height: 1.65; }

.consult-form-wrap .form-panel,
.contact-form-wrap .form-panel {
  border: 1px solid var(--primary-200);
  box-shadow: 0 8px 28px oklch(0.215 0.038 66 / 0.06);
}
.detail-aside .form-panel {
  border: 1px solid var(--bg-200);
  padding: 1.25rem;
}

/* —— Form —— */
.form-panel {
  background: var(--bg-50);
  border: 1px solid oklch(0.94 0.017 86 / 0.8);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.form-panel h3 {
  font-size: 1.15rem;
  font-weight: 700;
  padding-left: 0.75rem;
  border-left: 3px solid var(--primary-500);
}
.form-sub { margin: 0.65rem 0 1.25rem; font-size: 0.8125rem; color: var(--fg-600); line-height: 1.6; }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; margin-bottom: 0.35rem; font-size: 0.8125rem; color: var(--fg-700); }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--bg-300);
  border-radius: var(--radius);
  background: var(--bg-50);
  font: inherit;
  font-size: 0.9375rem;
  color: var(--fg-950);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--primary-300);
  border-color: var(--primary-400);
}
.form-field textarea { min-height: 6rem; resize: vertical; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.form-check input { width: auto; margin-top: 0.2rem; }
.form-check label { margin: 0; font-size: 0.8125rem; }
.form-check a { color: var(--primary-700); text-decoration: underline; }
.form-btn { width: 100%; margin-top: 0.25rem; }
.form-disclaimer { margin-top: 0.85rem; font-size: 0.75rem; color: var(--fg-500); line-height: 1.55; }

/* —— FAQ / related —— */
.faq-block { margin-top: 2.5rem; }
.faq-block h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.faq-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--bg-200);
}
.faq-item h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.faq-item p { font-size: 0.9rem; color: var(--fg-600); }
.related-block { margin-top: 2rem; }
.related-block h3, .related-block > h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.related-list { display: grid; gap: 0.5rem; }
.related-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--bg-200);
  border-radius: var(--radius);
  background: var(--bg-50);
}
.related-item:hover { border-color: var(--primary-300); }
.related-title { font-size: 0.9rem; }
.related-lawyer {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--bg-200);
  border-radius: var(--radius-lg);
  background: var(--bg-50);
}
.related-lawyer img {
  width: 4rem; height: 4rem;
  border-radius: 50%;
  object-fit: cover;
}
.related-lawyer-name { font-weight: 600; }
.related-lawyer-lead { font-size: 0.8rem; color: var(--fg-600); margin-top: 0.2rem; }

/* —— Prose —— */
.prose { font-size: 1rem; line-height: 1.85; color: var(--fg-800); }
.prose > * + * { margin-top: 1rem; }
.prose h2, .prose h3 { color: var(--fg-950); margin-top: 1.75rem; }
.prose a { color: var(--primary-700); text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose img { border-radius: var(--radius); margin: 1.25rem 0; }
.about-wrap, .privacy-wrap { max-width: 48rem; }

/* —— Consult steps (flex 居中换行) —— */
.consult-steps .section-head-center { margin-bottom: 0; }
.steps-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.step-item {
  flex: 1 1 16.5rem;
  max-width: 22rem;
  min-width: 0;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  padding: 1.5rem 1.25rem;
  background: var(--bg-50);
  border: 1px solid oklch(0.94 0.017 86 / 0.8);
  border-radius: var(--radius-lg);
}
.section-alt .step-item { background: var(--bg-50); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  margin-bottom: 0.85rem;
  border-radius: var(--radius);
  background: var(--primary-100);
  color: var(--primary-700);
  font-size: 1.25rem;
  font-weight: 600;
}
.step-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.step-item p {
  margin-top: 0.65rem;
  font-size: 0.875rem;
  color: var(--fg-600);
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* —— Pager —— */
.pager {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pagination li a,
.pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.65rem;
  border-radius: var(--radius);
  border: 1px solid var(--bg-300);
  font-size: 0.875rem;
  color: var(--fg-700);
  background: var(--bg-50);
}
.pagination li a:hover {
  border-color: var(--primary-400);
  color: var(--primary-700);
}
.pagination li.active span,
.pagination .active > a {
  background: var(--primary-500);
  border-color: var(--primary-500);
  color: var(--bg-50);
}
.pagination li.disabled span {
  opacity: 0.45;
  cursor: not-allowed;
}

/* —— Trust / Footer —— */
.trust-bar {
  background: var(--bg-100);
  border-top: 1px solid var(--bg-200);
  padding: 1.75rem 0;
}
.trust-inner {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .trust-inner { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.trust-item i {
  font-size: 1.35rem;
  color: var(--primary-600);
  margin-top: 0.1rem;
}
.trust-item strong { display: block; font-size: 0.9rem; }
.trust-item span { font-size: 0.8rem; color: var(--fg-600); }

.site-footer {
  background: var(--primary-950);
  color: oklch(0.972 0.012 88);
  padding: 3.5rem 0 7rem;
}
@media (min-width: 768px) { .site-footer { padding-bottom: 2.5rem; } }
.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 0.9fr 1fr; gap: 2rem; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bg-50);
  margin-bottom: 1rem;
}
.footer-brand .brand-icon {
  background: var(--primary-500);
  color: var(--bg-50);
  border: 0;
}
.footer-nap p { font-size: 0.875rem; color: oklch(0.9 0.022 86 / 0.75); margin-top: 0.4rem; line-height: 1.6; }
.footer-nap a { color: var(--primary-300); }
.footer-tagline { margin-top: 0.85rem !important; }
.footer-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-300);
  letter-spacing: 0.04em;
  margin-bottom: 1.1rem;
}
.footer-practices {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.5rem 0.85rem;
  max-height: calc(1.25rem * 6 + 0.5rem * 5);
  overflow: hidden;
}
.footer-practices a,
.footer-links a {
  display: inline-block;
  font-size: 0.875rem;
  color: oklch(0.97 0.01 90 / 0.7);
}
.footer-practices a {
  line-height: 1.25rem;
  white-space: nowrap;
}
.footer-practices a:hover,
.footer-links a:hover { color: var(--primary-300); }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-wechat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 0;
  border-radius: var(--radius);
  background: oklch(0.99 0.008 90 / 0.1);
  color: var(--primary-300);
  font-size: 0.875rem;
}
.footer-wechat:hover { background: var(--primary-500); color: var(--bg-50); }
.footer-qr {
  margin-top: 0.85rem;
  border-radius: var(--radius);
  background: #fff;
  padding: 0.25rem;
}
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid oklch(0.99 0.008 90 / 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: oklch(0.85 0.026 86 / 0.65);
}
.footer-disclaimer { margin: 0; line-height: 1.6; }
.footer-beian { margin: 0; }
.footer-tech {
  margin: 0;
  font-size: 0.7rem;
  color: oklch(0.97 0.01 90 / 0.4);
}
.footer-tech a {
  color: inherit;
  text-decoration: underline;
}

/* —— Convert bars —— */
.pc-convert {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: oklch(0.99 0.008 90 / 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--bg-200);
  padding: 0.75rem 0;
}
@media (min-width: 768px) {
  .pc-convert { display: block; }
  body { padding-bottom: 4.5rem; }
}
.pc-convert-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.pc-convert-text strong { display: block; color: var(--fg-900); }
.pc-convert-text span { font-size: 0.8rem; color: var(--fg-500); }
.pc-convert-actions { display: flex; align-items: center; gap: 0.75rem; }
.pc-convert-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--primary-600);
}

.mobile-bar {
  display: flex;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  background: #fff;
  border-top: 1px solid var(--bg-200);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
@media (min-width: 768px) {
  .mobile-bar { display: none; }
}
.mobile-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.55rem 0.25rem;
  border: 0;
  background: transparent;
  font-size: 0.7rem;
  color: var(--fg-700);
}
.mobile-bar-item i { font-size: 1.15rem; }
.mobile-cta { color: var(--primary-600); font-weight: 600; }

/* —— Wechat modal —— */
.wechat-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: oklch(0.145 0.01 85 / 0.55);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.wechat-modal.is-open { display: flex; }
.wechat-modal-box {
  position: relative;
  width: min(22rem, 100%);
  background: var(--bg-50);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 20px 50px oklch(0.145 0.01 85 / 0.25);
}
.wechat-modal-close {
  position: absolute;
  top: 0.65rem; right: 0.65rem;
  width: 2rem; height: 2rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg-100);
  color: var(--fg-700);
  font-size: 1.15rem;
}
.wechat-modal-icon {
  width: 3rem; height: 3rem;
  margin: 0 auto;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-100);
  color: var(--primary-700);
  font-size: 1.5rem;
}
.wechat-modal-title {
  margin-top: 0.85rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
}
.wechat-modal-desc {
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  color: var(--fg-600);
  line-height: 1.55;
}
.wechat-qr {
  width: 180px; height: 180px;
  margin: 1.15rem auto 0;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--bg-200);
}
.wechat-id-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.875rem;
}
.wechat-id-label { color: var(--fg-500); }
.wechat-id-row button {
  border: 1px solid var(--primary-300);
  background: var(--primary-100);
  color: var(--primary-700);
  border-radius: var(--radius);
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
}
.wechat-id-hint {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--fg-600);
}
.wechat-id-hint strong { color: oklch(0.5 0.14 35); }
.wechat-modal-dismiss {
  margin-top: 1.15rem;
  width: 100%;
  padding: 0.65rem;
  border: 1px solid var(--bg-300);
  border-radius: var(--radius);
  background: var(--bg-100);
  color: var(--fg-800);
  font-size: 0.875rem;
}
@media (min-width: 768px) {
  body:has(#wechat-modal img) .wechat-id-row,
  body:has(#wechat-modal img) .wechat-id-hint { display: none !important; }
}

/* —— Thanks / 404 —— */
.thanks-page {
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  text-align: center;
}
.thanks-inner { max-width: 36rem; margin: 0 auto; }
.thanks-icon {
  width: 4rem; height: 4rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-100);
  color: var(--primary-700);
  font-size: 2rem;
}
.thanks-lead { margin-top: 0.85rem; color: var(--fg-600); line-height: 1.7; }
.thanks-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.thanks-wechat { margin-top: 1.75rem; }
.thanks-wechat img {
  width: 180px; height: 180px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--bg-200);
}
.thanks-hours {
  margin-top: 2rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--bg-100);
  text-align: left;
}
.thanks-hours h2 { font-size: 1rem; margin-bottom: 0.5rem; }
.thanks-disclaimer { margin-top: 1.5rem; font-size: 0.75rem; color: var(--fg-500); }

.off-hours-tip {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--accent-100);
  color: var(--accent-900);
  font-size: 0.8125rem;
}
.off-hours-tip-inner { display: flex; gap: 0.5rem; align-items: flex-start; }
.off-hours-tip[hidden] { display: none !important; }

.error-page {
  padding: calc(var(--header-h) + 4rem) 0 5rem;
}
.error-inner { max-width: 40rem; }
.error-code {
  font-size: 4rem;
  font-weight: 600;
  color: var(--primary-400);
  line-height: 1;
}
.error-desc { margin-top: 1rem; color: var(--fg-600); line-height: 1.7; }
.error-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.error-practice-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.error-practice-links a {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--bg-100);
  border: 1px solid var(--bg-200);
  font-size: 0.875rem;
}
.error-practice-links a:hover {
  border-color: var(--primary-300);
  color: var(--primary-700);
}
