:root {
  --bg-50: oklch(0.988 0.003 85);
  --bg-100: oklch(0.968 0.004 85);
  --bg-200: oklch(0.936 0.005 85);
  --bg-300: oklch(0.888 0.006 85);
  --bg-400: oklch(0.8 0.006 85);
  --pri-50: oklch(0.972 0.012 62);
  --pri-100: oklch(0.936 0.022 62);
  --pri-200: oklch(0.868 0.038 62);
  --pri-300: oklch(0.768 0.058 60);
  --pri-400: oklch(0.63 0.078 58);
  --pri-500: oklch(0.49 0.088 55);
  --pri-600: oklch(0.41 0.082 53);
  --pri-700: oklch(0.33 0.072 51);
  --pri-800: oklch(0.26 0.062 49);
  --pri-900: oklch(0.2 0.052 47);
  --pri-950: oklch(0.15 0.042 45);
  --accent-50: oklch(0.975 0.018 80);
  --accent-100: oklch(0.94 0.04 80);
  --accent-200: oklch(0.884 0.072 80);
  --accent-300: oklch(0.82 0.1 80);
  --accent-400: oklch(0.762 0.122 78);
  --accent-500: oklch(0.7 0.132 76);
  --accent-600: oklch(0.62 0.122 74);
  --accent-700: oklch(0.52 0.104 72);
  --accent-800: oklch(0.42 0.084 70);
  --accent-900: oklch(0.33 0.066 70);
  --sec-50: oklch(0.976 0.008 135);
  --sec-100: oklch(0.944 0.014 135);
  --sec-200: oklch(0.898 0.02 135);
  --sec-900: oklch(0.27 0.02 130);
  --fg-400: oklch(0.68 0.007 80);
  --fg-500: oklch(0.562 0.008 78);
  --fg-600: oklch(0.462 0.008 76);
  --fg-700: oklch(0.376 0.009 74);
  --fg-800: oklch(0.3 0.009 72);
  --fg-900: oklch(0.222 0.009 70);
  --fg-950: oklch(0.146 0.009 68);
  --font-heading: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", sans-serif;
  --radius: 0.5rem;
  --header-h: 4rem;
}

*, *::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: 4.75rem;
}
img { max-width: 100%; height: auto; }
button, input, textarea { font-family: inherit; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.35; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent-200); color: var(--fg-950); }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes soft-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-rise { animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.animate-fade { animation: soft-fade 0.9s ease-out both; }

.wrap { width: min(1200px, calc(100% - 2rem)); margin: 0 auto; }
@media (min-width: 768px) {
  :root { --header-h: 5rem; }
  .wrap { width: min(1200px, calc(100% - 4rem)); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.875rem;
  line-height: 1.2;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: inherit;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--pri-500); color: var(--bg-50); }
.btn-primary:hover { background: var(--pri-600); }
.btn-light { background: var(--bg-50); color: var(--pri-900); }
.btn-light:hover { background: var(--bg-100); }
.btn-accent { background: var(--accent-500); color: var(--pri-950); }
.btn-accent:hover { background: var(--accent-400); }
.btn-ghost { color: #fff; border-color: rgb(255 255 255 / 0.35); }
.btn-ghost:hover { background: rgb(255 255 255 / 0.1); }
.btn-line { color: var(--bg-50); border-color: rgb(255 255 255 / 0.25); }
.btn-line:hover { background: rgb(255 255 255 / 0.1); }
.btn-outline { color: var(--fg-800); border-color: var(--bg-300); background: transparent; }
.btn-outline:hover { background: var(--bg-100); }
.btn-sm { padding: 0.55rem 0.9rem; font-size: 0.8125rem; }
.form-btn { width: 100%; margin-top: 0.35rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--pri-700);
  text-decoration: none;
  font-size: 0.875rem;
  white-space: nowrap;
}
.text-link:hover { color: var(--pri-800); }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: oklch(0.988 0.003 85 / 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid oklch(0.936 0.005 85 / 0.8);
  transition: background 0.3s, border-color 0.3s;
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  padding: 0 1rem;
}
@media (min-width: 768px) { .header-bar { padding: 0 2rem; } }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; min-width: 0; }
.brand-mark {
  width: 2.5rem; height: 2.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 0.375rem;
  border: 1px solid var(--pri-300);
  color: var(--pri-700);
  flex: 0 0 auto;
}
.brand-mark i { font-size: 1.25rem; }
.brand-logo { width: 2.5rem; height: 2.5rem; object-fit: cover; border-radius: 0.375rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { font-family: var(--font-heading); font-size: 1.125rem; letter-spacing: 0.04em; color: var(--fg-950); }
.brand-firm { font-size: 0.68rem; letter-spacing: 0.04em; color: var(--fg-500); }
.nav-desktop { display: none; align-items: center; gap: 0.15rem; }
.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  text-decoration: none;
  color: var(--fg-700);
  white-space: nowrap;
}
.nav-link:hover { color: var(--pri-700); background: var(--bg-100); }
.nav-link.is-active { color: var(--pri-700); background: var(--pri-100); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-cta { display: none; }
.nav-toggle {
  width: 2.5rem; height: 2.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--fg-900); cursor: pointer; border-radius: 0.375rem;
}
.nav-toggle i { font-size: 1.5rem; }
.nav-mobile {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.75rem 1rem 1.25rem;
  background: var(--bg-50);
  border-top: 1px solid var(--bg-200);
}
.nav-mobile .nav-link { display: block; padding: 0.75rem; }
.nav-mobile .nav-cta { display: flex; margin-top: 0.5rem; }
.nav-mobile[hidden] { display: none; }

html.is-home:not(.is-scrolled):not(.nav-open) .site-header {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
html.is-home:not(.is-scrolled):not(.nav-open) .brand-mark { border-color: rgb(255 255 255 / 0.4); color: #fff; }
html.is-home:not(.is-scrolled):not(.nav-open) .brand-name,
html.is-home:not(.is-scrolled):not(.nav-open) .nav-toggle { color: #fff; }
html.is-home:not(.is-scrolled):not(.nav-open) .brand-firm { color: rgb(255 255 255 / 0.7); }
html.is-home:not(.is-scrolled):not(.nav-open) .nav-link { color: rgb(255 255 255 / 0.85); }
html.is-home:not(.is-scrolled):not(.nav-open) .nav-link:hover { color: #fff; background: rgb(255 255 255 / 0.1); }
html.is-home:not(.is-scrolled):not(.nav-open) .nav-link.is-active { color: #fff; background: rgb(255 255 255 / 0.15); }
html.is-home:not(.is-scrolled):not(.nav-open) .nav-cta { background: #fff; color: var(--pri-800); }
html.is-home:not(.is-scrolled):not(.nav-open) .nav-cta:hover { background: rgb(255 255 255 / 0.9); }

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle, .nav-mobile { display: none !important; }
}

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(115deg, oklch(0.15 0.042 45) 0%, oklch(0.26 0.062 49) 52%, oklch(0.33 0.072 51) 100%);
}
@media (min-width: 768px) { .hero { min-height: 720px; } }
.hero-media, .hero-shade-x, .hero-shade-y { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.hero-shade-x { background: linear-gradient(to right, rgb(0 0 0 / 0.8), rgb(0 0 0 / 0.6), rgb(0 0 0 / 0.3)); }
.hero-shade-y { background: linear-gradient(to top, rgb(0 0 0 / 0.6), transparent 42%, rgb(0 0 0 / 0.4)); }
.hero-inner { position: relative; z-index: 1; padding-top: 7rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .hero-inner { padding-top: 8rem; } }
.hero-copy { max-width: 42rem; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin: 0 0 1.5rem;
  font-size: 0.75rem; letter-spacing: 0.08em; color: var(--accent-400);
}
.hero-kicker-line { width: 2rem; height: 1px; background: var(--accent-400); flex: 0 0 auto; }
.hero h1 { font-size: 1.875rem; color: #fff; }
@media (min-width: 768px) { .hero h1 { font-size: 3rem; } }
.hero-lead { margin-top: 1.5rem; font-size: 1rem; line-height: 1.7; color: rgb(255 255 255 / 0.8); max-width: 40rem; }
@media (min-width: 768px) { .hero-lead { font-size: 1.125rem; } }
.hero-actions { margin-top: 2.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; flex-wrap: wrap; } }
.hero-meta { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; }
.hero-meta-value { font-family: var(--font-heading); font-size: 1.05rem; color: #fff; overflow-wrap: anywhere; }
.hero-meta-label { margin-top: 0.25rem; font-size: 0.75rem; letter-spacing: 0.04em; color: rgb(255 255 255 / 0.6); }

.page-hero { background: var(--bg-100); border-bottom: 1px solid var(--bg-200); }
.page-hero-inner { padding: 7rem 0 2.5rem; }
@media (min-width: 768px) { .page-hero-inner { padding: 9rem 0 3.5rem; } }
.page-hero h1 { font-size: 1.5rem; color: var(--fg-950); }
@media (min-width: 768px) { .page-hero h1 { font-size: 2.25rem; } }
.page-hero-desc { margin-top: 1rem; max-width: 42rem; font-size: 0.95rem; line-height: 1.7; color: var(--fg-600); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin-bottom: 1.25rem; font-size: 0.75rem; color: var(--fg-500); }
.crumbs a { color: var(--fg-500); text-decoration: none; }
.crumbs a:hover { color: var(--pri-700); }
.crumbs i { font-size: 0.875rem; }
.crumb-current { color: var(--fg-700); max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.band { background: var(--bg-50); padding: 4rem 0; }
.band-muted { background: var(--bg-100); }
@media (min-width: 768px) { .band { padding: 6rem 0; } }
.eyebrow { margin: 0 0 1rem; font-size: 0.75rem; letter-spacing: 0.3em; color: var(--accent-700); }
.eyebrow-light { color: var(--accent-400); }
.section-head { max-width: 42rem; }
.section-head.is-center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2, .section-toolbar h2 { font-size: 1.5rem; color: var(--fg-950); }
@media (min-width: 768px) { .section-head h2, .section-toolbar h2 { font-size: 1.875rem; } }
.section-desc { margin-top: 1rem; font-size: 0.95rem; line-height: 1.7; color: var(--fg-600); }
.section-toolbar {
  display: flex; flex-direction: column; gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .section-toolbar { flex-direction: row; align-items: flex-end; justify-content: space-between; margin-bottom: 3.5rem; }
}

.practice-grid, .card-grid, .case-grid, .news-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .practice-grid, .card-grid, .case-grid, .news-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; }
}
@media (min-width: 1024px) {
  .practice-grid, .card-grid, .case-grid, .news-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
}

.practice-card, .text-card {
  display: flex; flex-direction: column;
  height: 100%;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: var(--bg-50);
  border: 1px solid var(--bg-200);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}
.practice-card:hover, .text-card:hover { border-color: var(--pri-300); }
.card-icon {
  width: 3rem; height: 3rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 0.375rem;
  background: var(--pri-100); color: var(--pri-700);
  margin-bottom: 1.25rem;
}
.card-icon i { font-size: 1.5rem; }
.practice-card h3, .text-card h3, .practice-card h2, .text-card h2 {
  font-size: 1.125rem; color: var(--fg-950);
}
.practice-card:hover h3, .text-card:hover h3, .practice-card:hover h2, .text-card:hover h2 { color: var(--pri-700); }
.practice-card p, .text-card p { margin-top: 0.85rem; font-size: 0.875rem; line-height: 1.7; color: var(--fg-600); flex: 1; }
.card-more, .card-foot {
  margin-top: 1.25rem;
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.875rem; color: var(--pri-700);
}
.card-foot { justify-content: space-between; padding-top: 1.25rem; border-top: 1px solid var(--bg-200); color: var(--fg-400); }
.card-result { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--accent-700); font-size: 0.875rem; }
.card-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.pill {
  display: inline-flex; padding: 0.25rem 0.65rem;
  border-radius: 999px; font-size: 0.75rem;
  background: var(--sec-100); color: var(--sec-900);
}
.pill-accent { background: var(--accent-100); color: var(--accent-900); }
.meta-date { font-size: 0.75rem; color: var(--fg-500); }
.card-more i, .practice-card:hover .ri-arrow-right-line, .text-card:hover .ri-arrow-right-line { transition: transform 0.2s; }
.practice-card:hover .ri-arrow-right-line, .text-card:hover .ri-arrow-right-line { transform: translateX(4px); }

.about-preview, .about-layout {
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 1024px) {
  .about-preview { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .about-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3.5rem; align-items: start; }
}
.portrait, .about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-200);
  min-height: 420px;
}
.portrait img, .about-photo img, .portrait-fallback {
  width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: top center; display: block;
}
@media (min-width: 768px) {
  .portrait, .about-photo, .portrait img, .about-photo img, .portrait-fallback { min-height: 520px; }
}
.portrait-fallback {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem;
  color: var(--pri-700);
  background: linear-gradient(160deg, var(--bg-100), var(--pri-100));
}
.portrait-fallback i { font-size: 3rem; }
.about-copy h2, .about-body h2 { font-size: 1.5rem; }
@media (min-width: 768px) { .about-copy h2 { font-size: 1.875rem; } }
.about-role, .about-license { margin-top: 0.5rem; font-size: 0.875rem; color: var(--fg-600); }
.about-lead { margin-top: 1.5rem; font-size: 1rem; line-height: 1.75; color: var(--fg-700); }
.about-copy .btn { margin-top: 2rem; }

.steps-band { background: var(--sec-50); padding: 4rem 0; }
@media (min-width: 768px) { .steps-band { padding: 6rem 0; } }
.steps-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (min-width: 768px) { .steps-grid { margin-top: 4rem; } }
.step-item {
  flex: 1 1 16.5rem;
  max-width: 22rem;
  min-width: 0;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-50);
  border: 1px solid var(--sec-200);
}
.step-no { display: block; font-family: var(--font-heading); font-size: 1.875rem; color: oklch(0.7 0.132 76 / 0.7); }
.step-item h3 { margin-top: 1rem; font-size: 1.125rem; color: var(--fg-950); }
.step-item p { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.7; color: var(--fg-600); }
.step-item h3, .step-item p { overflow-wrap: anywhere; word-break: break-word; }

.cta-band { padding-top: 1rem; }
.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--pri-950);
  color: var(--bg-50);
  padding: 3rem 1.5rem;
  display: flex; flex-direction: column; gap: 2rem;
}
@media (min-width: 1024px) {
  .cta-panel { flex-direction: row; align-items: center; justify-content: space-between; padding: 4rem 3.5rem; }
}
.cta-glow {
  position: absolute; top: -5rem; right: -4rem;
  width: 18rem; height: 18rem; border-radius: 50%;
  background: oklch(0.7 0.132 76 / 0.2);
  filter: blur(48px);
  pointer-events: none;
}
.cta-copy, .cta-actions { position: relative; }
.cta-copy { max-width: 36rem; }
.cta-copy h2 { margin-top: 0.25rem; font-size: 1.5rem; color: var(--bg-50); }
@media (min-width: 768px) { .cta-copy h2 { font-size: 1.875rem; } }
.cta-copy p { margin-top: 1rem; font-size: 0.95rem; line-height: 1.7; color: oklch(0.968 0.004 85 / 0.75); }
.cta-actions { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .cta-actions { flex-direction: row; } }
@media (min-width: 1024px) { .cta-actions { flex-direction: column; } }

.list-cta {
  margin-top: 3rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--sec-50);
  border: 1px solid var(--sec-200);
  display: flex; flex-direction: column; gap: 1.25rem;
}
@media (min-width: 768px) {
  .list-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 2.5rem; margin-top: 4rem; }
}
.list-cta h2 { font-size: 1.25rem; }
@media (min-width: 768px) { .list-cta h2 { font-size: 1.5rem; } }
.list-cta p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--fg-600); }
.list-note { margin-top: 2.5rem; max-width: 48rem; font-size: 0.75rem; line-height: 1.7; color: var(--fg-500); }
.empty-note { padding: 4rem 0; text-align: center; font-size: 0.875rem; color: var(--fg-500); }

.detail-layout, .consult-layout, .contact-split {
  display: grid; gap: 2.5rem;
}
.contact-split { margin-top: 2.5rem; }
@media (min-width: 1024px) {
  .detail-layout { grid-template-columns: minmax(0, 8fr) minmax(16rem, 4fr); gap: 3.5rem; align-items: start; }
  .consult-layout { grid-template-columns: minmax(0, 8fr) minmax(16rem, 4fr); gap: 3.5rem; align-items: start; }
  .contact-split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2.5rem; margin-top: 3rem; align-items: start; }
}
.detail-aside { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 1024px) { .detail-aside { position: sticky; top: 6.5rem; } }
.detail-meta {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  padding-bottom: 1.5rem; margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--bg-200);
  font-size: 0.875rem; color: var(--fg-600);
}
.detail-meta span, .detail-meta a { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; }
.detail-meta a:hover { color: var(--pri-700); }
.meta-accent { color: var(--accent-700); }
.article-lead { margin: 0 0 1.25rem; font-size: 1rem; line-height: 1.75; color: var(--fg-700); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.alert-soft {
  display: flex; align-items: flex-start; gap: 0.6rem;
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--sec-50);
  border: 1px solid var(--sec-200);
  font-size: 0.875rem; line-height: 1.7; color: var(--fg-700);
}
.alert-soft i { color: var(--accent-600); margin-top: 0.15rem; }

.aside-dark {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--pri-950);
  color: var(--bg-50);
}
.aside-dark h2, .side-card h2 { font-size: 1.125rem; }
.aside-dark h2 { color: var(--bg-50); }
.aside-dark p { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.7; color: oklch(0.968 0.004 85 / 0.75); }
.aside-phone {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1rem;
  color: var(--accent-400);
  text-decoration: none;
  font-size: 1rem;
}
.aside-phone:hover { color: var(--accent-300); }
.side-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-100);
  border: 1px solid var(--bg-200);
}
.side-card h2 { color: var(--fg-950); margin-bottom: 0.85rem; }
.side-note { margin-top: 0.75rem; font-size: 0.875rem; color: var(--fg-600); }
.note-list { display: flex; flex-direction: column; gap: 0.85rem; }
.note-list li { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.875rem; line-height: 1.7; color: var(--fg-600); }
.note-list i { color: var(--accent-600); margin-top: 0.15rem; }
.side-links li a {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-size: 0.875rem; color: var(--fg-700);
}
.side-links li a:hover { background: var(--bg-50); color: var(--pri-700); }

.contact-tiles {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .contact-tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .contact-tiles { grid-template-columns: 1fr 1fr 1fr; } }
.contact-tile {
  display: block;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-100);
  border: 1px solid var(--bg-200);
  text-decoration: none;
  color: inherit;
}
.tile-icon {
  width: 2.75rem; height: 2.75rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 0.375rem;
  background: var(--pri-100); color: var(--pri-700);
}
.tile-icon i { font-size: 1.25rem; }
.tile-label { margin-top: 1.15rem; font-size: 0.75rem; color: var(--fg-500); }
.tile-value { margin-top: 0.35rem; font-size: 0.875rem; color: var(--fg-900); overflow-wrap: anywhere; }
.tile-hint { margin-top: 0.35rem; font-size: 0.8125rem; color: var(--fg-600); }

.author-card {
  display: flex; align-items: center; gap: 0.9rem;
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: var(--bg-100);
  border: 1px solid var(--bg-200);
  text-decoration: none;
  color: inherit;
}
.author-card img { width: 4rem; height: 5rem; object-fit: cover; border-radius: 0.375rem; }
.author-card strong { font-family: var(--font-heading); }
.author-card p { margin-top: 0.2rem; font-size: 0.8125rem; color: var(--fg-600); }

.reading { max-width: 48rem; }
.prose { font-size: 1rem; line-height: 1.85; color: var(--fg-700); overflow-wrap: anywhere; }
.prose > *:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table { margin: 0.9rem 0; }
.prose h2, .prose h3, .prose h4 { margin: 1.6rem 0 0.6rem; color: var(--fg-950); }
.prose h2 { font-size: 1.35rem; }
.prose h3 { font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { color: var(--pri-700); }
.prose img { border-radius: var(--radius); }
.prose blockquote { padding-left: 1rem; border-left: 3px solid var(--accent-400); color: var(--fg-600); }

.faq-block { margin-top: 2rem; }
.faq-block h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.faq-item { padding: 1rem 0; border-top: 1px solid var(--bg-200); }
.faq-item h3 { font-size: 1rem; }
.faq-item p { margin-top: 0.4rem; font-size: 0.875rem; color: var(--fg-600); }

.related-block { margin-top: 2rem; }
.related-block h3, .related-block h2 { font-size: 1.05rem; margin-bottom: 0.75rem; }
.related-list { display: flex; flex-direction: column; gap: 0.35rem; }
.related-item {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.7rem 0.2rem;
  text-decoration: none;
  font-size: 0.875rem; color: var(--fg-700);
  border-bottom: 1px solid var(--bg-200);
}
.related-item:hover { color: var(--pri-700); }
.related-item em { font-style: normal; color: var(--accent-700); font-size: 0.75rem; }
.related-lawyer {
  display: flex; gap: 0.9rem; align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--bg-50);
  border: 1px solid var(--bg-200);
  text-decoration: none;
}
.related-lawyer img { width: 4rem; height: 4rem; object-fit: cover; border-radius: 0.375rem; }
.related-lawyer-name { font-family: var(--font-heading); }
.related-lawyer-lead { margin-top: 0.25rem; font-size: 0.8125rem; color: var(--fg-600); }

.thanks-inner { max-width: 40rem; margin: 0 auto; text-align: center; }
.thanks-icon {
  width: 3.5rem; height: 3.5rem; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent-100); color: var(--accent-800);
  font-size: 1.75rem;
}
.thanks-lead { margin-top: 1.25rem; font-size: 1.05rem; line-height: 1.7; color: var(--fg-800); }
.thanks-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.thanks-wechat { margin: 1.5rem auto 0; max-width: 22rem; }
.thanks-wechat img { width: 180px; height: 180px; object-fit: contain; }
.thanks-hours { margin-top: 2rem; text-align: left; padding: 1.25rem; border-radius: var(--radius); background: var(--bg-100); border: 1px solid var(--bg-200); }
.thanks-hours h2 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.thanks-disclaimer { margin-top: 1.25rem; font-size: 0.75rem; color: var(--fg-500); }
.thanks-inner .text-link { margin-top: 1.25rem; }

.not-found {
  position: relative;
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  padding: 8rem 1rem 4rem;
  text-align: center;
  overflow: hidden;
}
.not-found-code {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 8rem; line-height: 0.8;
  color: var(--bg-100);
  pointer-events: none; user-select: none;
}
@media (min-width: 768px) { .not-found-code { font-size: 12rem; } }
.not-found-inner { position: relative; z-index: 1; max-width: 36rem; }
.not-found-icon { display: inline-flex; font-size: 2rem; color: var(--accent-700); }
.not-found h1 { margin-top: 0.75rem; font-size: 1.5rem; }
.not-found p { margin-top: 0.75rem; color: var(--fg-600); }
.not-found-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

.trust-bar { background: var(--bg-100); border-top: 1px solid var(--bg-200); }
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
  padding: 1.25rem 0;
}
.trust-item { flex: 1 1 12rem; max-width: 18rem; display: flex; align-items: flex-start; gap: 0.65rem; min-width: 0; }
.trust-item i { color: var(--pri-700); font-size: 1.25rem; margin-top: 0.15rem; }
.trust-item strong { display: block; font-size: 0.875rem; color: var(--fg-950); }
.trust-item span { display: block; font-size: 0.75rem; color: var(--fg-600); overflow-wrap: anywhere; }

.site-footer { background: var(--pri-950); color: oklch(0.968 0.004 85 / 0.85); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.footer-brand-col { flex: 2 1 18rem; }
.footer-col { flex: 1 1 12rem; min-width: 0; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.1rem; }
.site-footer .brand-mark { border-color: oklch(0.7 0.132 76 / 0.6); color: var(--accent-400); }
.site-footer .brand-name { color: var(--bg-50); }
.site-footer .brand-firm { color: oklch(0.968 0.004 85 / 0.6); }
.footer-blurb { max-width: 28rem; font-size: 0.875rem; line-height: 1.7; color: oklch(0.968 0.004 85 / 0.75); margin-bottom: 0.85rem; }
.footer-col p { font-size: 0.875rem; color: oklch(0.968 0.004 85 / 0.75); margin-top: 0.25rem; }
.footer-col h3 { font-size: 0.875rem; color: var(--bg-50); margin-bottom: 1.1rem; }
.footer-links a, .footer-practices a { color: oklch(0.968 0.004 85 / 0.75); text-decoration: none; font-size: 0.875rem; }
.footer-links a:hover, .footer-practices a:hover { color: var(--accent-400); }
.footer-links li { margin-bottom: 0.7rem; }
.footer-nap-list li { display: flex; align-items: flex-start; gap: 0.45rem; margin-bottom: 0.65rem; font-size: 0.875rem; }
.footer-nap-list a { color: oklch(0.968 0.004 85 / 0.9); text-decoration: none; }
.footer-nap-list a:hover { color: var(--accent-400); }
.footer-wechat {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0; border: 0; background: transparent;
  color: var(--accent-400); cursor: pointer; font-size: 0.875rem; text-decoration: none;
}
.footer-cta { margin-top: 1rem; }
.footer-practices-row { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid oklch(0.968 0.004 85 / 0.15); }
.footer-practices-row h3 { font-size: 0.875rem; color: var(--bg-50); margin-bottom: 0.75rem; }
.footer-practices { display: flex; flex-wrap: wrap; gap: 0.45rem 1.25rem; }
.footer-bottom {
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid oklch(0.968 0.004 85 / 0.15);
  display: flex; flex-direction: column; gap: 0.35rem;
  font-size: 0.75rem; color: oklch(0.968 0.004 85 / 0.55);
}
.footer-tech { font-size: 0.75rem; color: oklch(0.968 0.004 85 / 0.4); }
.footer-tech a { color: oklch(0.968 0.004 85 / 0.55); text-decoration: none; }
.footer-tech a:hover { color: var(--accent-400); }

.pager { margin-top: 2rem; display: flex; justify-content: center; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; list-style: none; padding: 0; margin: 0; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.25rem; height: 2.25rem; padding: 0 0.65rem;
  border-radius: 0.375rem;
  border: 1px solid var(--bg-300);
  background: var(--bg-50);
  color: var(--fg-700);
  text-decoration: none;
  font-size: 0.875rem;
}
.pagination a:hover { border-color: var(--pri-300); color: var(--pri-700); }
.pagination .active span, .pagination .current span { background: var(--pri-500); border-color: var(--pri-500); color: var(--bg-50); }
.pagination .disabled span { color: var(--fg-400); background: var(--bg-100); }

.form-panel { border-radius: var(--radius); }
.form-title {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.15rem; color: var(--fg-950);
}
.form-title::before { content: ""; width: 1.25rem; height: 2px; background: var(--accent-500); flex: 0 0 auto; }
.form-sub { margin: 0.45rem 0 1rem; font-size: 0.8125rem; color: var(--fg-600); }
.form-field { margin-bottom: 0.9rem; }
.form-field label { display: block; margin-bottom: 0.4rem; font-size: 0.875rem; color: var(--fg-700); }
.form-field input[type="text"],
.form-field input[type="tel"],
.form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  border: 1px solid var(--bg-300);
  background: var(--bg-50);
  color: var(--fg-900);
}
.form-field textarea { min-height: 7rem; resize: vertical; }
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--pri-300);
  box-shadow: 0 0 0 3px oklch(0.768 0.058 60 / 0.45);
}
.form-check { display: flex; align-items: flex-start; gap: 0.55rem; }
.form-check input { margin-top: 0.25rem; accent-color: var(--pri-500); }
.form-check label { margin: 0; font-size: 0.75rem; line-height: 1.6; color: var(--fg-600); }
.form-check a { color: var(--pri-700); }
.form-disclaimer { margin-top: 0.75rem; font-size: 0.75rem; line-height: 1.6; color: var(--fg-500); }
.side-form .form-panel,
.contact-form .form-panel {
  padding: 1.35rem 1.4rem 1.2rem;
  background: var(--bg-100);
  border: 1px solid var(--bg-200);
  box-shadow: none;
}
.consult-form .form-panel {
  padding: 1.5rem 1.5rem 1.35rem;
  background: var(--bg-100);
  border: 1px solid var(--pri-300);
  box-shadow: 0 10px 30px oklch(0.2 0.052 47 / 0.06);
}
@media (min-width: 768px) { .consult-form .form-panel { padding: 2.25rem; } }
.hp {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important;
  white-space: nowrap !important; border: 0 !important;
  opacity: 0 !important; pointer-events: none !important;
}

.pc-convert { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--pri-950); color: var(--bg-50); }
.pc-convert-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.pc-convert-text { display: flex; flex-direction: column; }
.pc-convert-text span { font-size: 0.78rem; color: oklch(0.968 0.004 85 / 0.7); }
.pc-convert-actions { display: flex; align-items: center; gap: 0.85rem; }
.pc-convert-phone { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--accent-400); text-decoration: none; font-weight: 600; }
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: stretch;
  background: oklch(0.988 0.003 85 / 0.98);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--bg-200);
}
.mobile-bar-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem;
  padding: 0.55rem 0.2rem;
  border: 0; background: transparent;
  color: var(--fg-500);
  text-decoration: none;
  font-size: 0.625rem; line-height: 1;
  cursor: pointer;
}
.mobile-bar-item i { font-size: 1.25rem; }
.mobile-cta { color: var(--pri-700); }
@media (min-width: 1024px) {
  .pc-convert { display: block; }
  .mobile-bar { display: none; }
  body { padding-bottom: 4.5rem; }
}

.wechat-modal { display: none; }
.wechat-modal.is-open {
  display: flex;
  position: fixed; inset: 0; z-index: 80;
  align-items: center; justify-content: center;
  padding: 1rem;
  background: oklch(0.15 0.042 45 / 0.55);
}
.wechat-modal-box {
  position: relative;
  width: min(22rem, 100%);
  padding: 2rem 1.35rem 1.35rem;
  border-radius: var(--radius);
  background: var(--bg-50);
  border: 1px solid var(--bg-200);
  text-align: center;
}
.wechat-modal-close {
  position: absolute; top: 0.6rem; right: 0.6rem;
  width: 2rem; height: 2rem;
  border: 0; background: transparent; cursor: pointer;
  color: var(--fg-600); font-size: 1.25rem;
}
.wechat-modal-icon { font-size: 2rem; color: var(--pri-600); }
.wechat-modal-title { margin-top: 0.4rem; font-family: var(--font-heading); font-size: 1.15rem; }
.wechat-modal-desc { margin-top: 0.35rem; font-size: 0.8125rem; color: var(--fg-600); }
.wechat-qr { width: 180px; height: 180px; object-fit: contain; margin-top: 0.85rem; }
.wechat-modal-dismiss {
  margin-top: 0.85rem;
  border: 1px solid var(--bg-300);
  background: transparent;
  border-radius: 0.375rem;
  padding: 0.45rem 1.1rem;
  cursor: pointer;
  color: var(--fg-700);
}
.wechat-id-hint strong { color: var(--pri-700); }
.off-hours-tip { margin-top: 0.75rem; }
.off-hours-tip-inner {
  display: flex; gap: 0.5rem; align-items: flex-start;
  padding: 0.75rem 0.85rem;
  border-radius: 0.375rem;
  background: var(--accent-50);
  border: 1px solid var(--accent-200);
  font-size: 0.8125rem; color: var(--fg-800); text-align: left;
}
.off-hours-tip i { color: var(--accent-700); }

@media (min-width: 768px) {
  body:has(#wechat-modal img) .wechat-id-row,
  body:has(#wechat-modal img) .wechat-id-hint { display: none !important; }
}
