:root {
  --font-heading: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --background-50: 0.985 0.001 106.423;
  --background-100: 0.97 0.001 106.424;
  --background-200: 0.923 0.003 48.717;
  --background-300: 0.869 0.005 56.366;
  --background-400: 0.709 0.01 56.259;
  --foreground-200: 0.923 0.003 48.717;
  --foreground-300: 0.869 0.005 56.366;
  --foreground-400: 0.709 0.01 56.259;
  --foreground-500: 0.553 0.013 58.071;
  --foreground-600: 0.444 0.011 73.639;
  --foreground-700: 0.374 0.01 67.558;
  --foreground-800: 0.268 0.007 34.298;
  --foreground-900: 0.216 0.006 56.043;
  --foreground-950: 0.147 0.004 49.25;
  --primary-50: 0.971 0.013 17.38;
  --primary-100: 0.936 0.032 17.717;
  --primary-200: 0.885 0.062 18.334;
  --primary-300: 0.808 0.114 19.571;
  --primary-400: 0.704 0.191 22.216;
  --primary-500: 0.637 0.237 25.331;
  --primary-600: 0.577 0.245 27.325;
  --primary-700: 0.505 0.213 27.518;
  --primary-800: 0.444 0.177 26.899;
  --primary-900: 0.396 0.141 25.723;
  --primary-950: 0.258 0.092 26.042;
  --accent-50: 0.987 0.022 95.277;
  --accent-100: 0.962 0.059 95.617;
  --accent-200: 0.924 0.12 95.746;
  --accent-300: 0.879 0.169 91.605;
  --accent-400: 0.828 0.189 84.429;
  --accent-500: 0.769 0.188 70.08;
  --accent-900: 0.414 0.112 45.904;
  --accent-950: 0.279 0.077 45.635;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: oklch(var(--background-50));
  color: oklch(var(--foreground-900));
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
button, input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { cursor: pointer; }

.wrap { width: min(80rem, calc(100% - 2rem)); margin: 0 auto; }
.wrap-mid { width: min(64rem, calc(100% - 2rem)); margin: 0 auto; }
.wrap-read { width: min(48rem, calc(100% - 2rem)); margin: 0 auto; }

.hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 2rem;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-sm { padding: 0.62rem 1.25rem; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn-primary { background: oklch(var(--primary-600)); color: #fff; }
.btn-primary:hover { background: oklch(var(--primary-700)); }
.btn-accent { background: oklch(var(--accent-500)); color: oklch(var(--primary-950)); }
.btn-accent:hover { background: oklch(var(--accent-400)); }
.btn-line {
  background: transparent;
  color: oklch(var(--foreground-800));
  border-color: oklch(var(--background-300));
}
.btn-line:hover { background: oklch(var(--background-100)); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgb(255 255 255 / 0.4);
}
.btn-ghost:hover { background: rgb(255 255 255 / 0.1); }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: oklch(var(--background-50) / 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(var(--background-200) / 0.7);
  transition: background 0.3s ease, border-color 0.3s ease;
}
body.has-hero:not(.is-scrolled):not(.is-menu-open) .site-header {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
  padding: 0 1rem;
}
.brand, .footer-brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.brand-mark, .brand-logo {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: oklch(var(--primary-600));
  color: oklch(var(--background-50));
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  flex: 0 0 auto;
  object-fit: cover;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem; color: oklch(var(--foreground-950)); }
.brand-firm { font-size: 0.68rem; letter-spacing: 0.12em; color: oklch(var(--primary-600)); }
body.has-hero:not(.is-scrolled):not(.is-menu-open) .brand-name,
body.has-hero:not(.is-scrolled):not(.is-menu-open) .header-phone,
body.has-hero:not(.is-scrolled):not(.is-menu-open) .nav-toggle { color: #fff; }
body.has-hero:not(.is-scrolled):not(.is-menu-open) .brand-firm { color: oklch(var(--accent-300)); }
.nav-desktop { display: none; align-items: center; gap: 0.15rem; }
.nav-link {
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: oklch(var(--foreground-700));
  white-space: nowrap;
}
.nav-link:hover, .nav-link.is-active { color: oklch(var(--primary-600)); }
body.has-hero:not(.is-scrolled):not(.is-menu-open) .nav-link { color: rgb(255 255 255 / 0.9); }
body.has-hero:not(.is-scrolled):not(.is-menu-open) .nav-link:hover,
body.has-hero:not(.is-scrolled):not(.is-menu-open) .nav-link.is-active { color: #fff; }
.nav-cta { margin-left: 0.5rem; }
.header-actions { display: flex; align-items: center; gap: 0.4rem; }
.header-phone { display: none; align-items: center; gap: 0.3rem; font-weight: 600; font-size: 0.9rem; color: oklch(var(--primary-700)); }
.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: oklch(var(--foreground-950));
  font-size: 1.5rem;
}
.nav-mobile { background: oklch(var(--background-50)); border-top: 1px solid oklch(var(--background-200)); }
.nav-mobile[hidden] { display: none; }
.nav-mobile-inner { padding: 0.75rem 1rem 1rem; display: grid; gap: 0.2rem; }
.nav-mobile-link {
  display: block;
  padding: 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: oklch(var(--foreground-800));
}
.nav-mobile-link.is-active { color: oklch(var(--primary-600)); background: oklch(var(--primary-50)); }
.nav-mobile-cta { margin-top: 0.4rem; }
.nav-mobile-phone {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  padding: 0.7rem 0.75rem;
  font-weight: 700;
  color: oklch(var(--primary-700));
}

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-fallback, .hero-bg, .hero-mask { position: absolute; inset: 0; }
.hero-fallback {
  background:
    radial-gradient(circle at 72% 28%, oklch(var(--accent-700) / 0.55), transparent 36%),
    radial-gradient(circle at 18% 78%, oklch(var(--primary-700) / 0.7), transparent 42%),
    linear-gradient(160deg, oklch(var(--primary-950)), oklch(var(--primary-800)) 48%, oklch(var(--primary-950)));
}
.hero-bg { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-mask { background: linear-gradient(to bottom, rgb(0 0 0 / 0.72), rgb(0 0 0 / 0.62), rgb(0 0 0 / 0.74)); }
.hero-inner { position: relative; width: 100%; padding: 6rem 1rem 5rem; }
.hero-copy { width: min(56rem, 100%); margin: 0 auto; text-align: center; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.2);
  backdrop-filter: blur(8px);
  color: oklch(var(--accent-200));
  font-size: 0.75rem;
}
.hero h1 { margin-top: 1.5rem; font-size: 2.25rem; font-weight: 700; line-height: 1.2; }
.hero-slogan {
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: rgb(255 255 255 / 0.92);
}
.hero-lead { width: min(42rem, 100%); margin: 1.5rem auto 0; font-size: 0.9rem; color: rgb(255 255 255 / 0.85); }
.hero-actions { margin-top: 2.25rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.hero-actions .btn { width: 100%; }
.hero-phone { margin-top: 1rem; }
.hero-phone a { display: inline-flex; align-items: center; gap: 0.35rem; color: #fff; font-weight: 600; }
.hero-stats {
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.hero-stat {
  flex: 1 1 11rem;
  max-width: 20rem;
  min-width: 0;
  padding: 1.25rem 1rem;
  border-radius: 0.5rem;
  background: rgb(0 0 0 / 0.38);
  border: 1px solid rgb(255 255 255 / 0.22);
  backdrop-filter: blur(8px);
}
.hero-stat-value {
  font-family: var(--font-heading);
  font-size: clamp(0.78rem, 1.2vw, 1.05rem);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  letter-spacing: 0;
  line-height: 1.35;
}
.hero-stat-value a { color: inherit; }
.hero-stat-label { margin-top: 0.25rem; font-size: 0.75rem; color: rgb(255 255 255 / 0.8); }

.band { padding: 4rem 0; background: oklch(var(--background-50)); }
.band-mist { background: oklch(var(--background-100)); }
.eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: oklch(var(--primary-600));
}
.section-head { text-align: center; }
.section-head h2, .page-head h1 { font-size: 1.875rem; }
.section-head h2 { margin-top: 0.75rem; color: oklch(var(--foreground-950)); }
.section-desc { width: min(42rem, 100%); margin: 1rem auto 0; color: oklch(var(--foreground-600)); font-size: 0.95rem; }
.section-head.split { text-align: left; display: flex; flex-direction: column; gap: 1rem; }
.section-head.split .section-desc { margin-left: 0; }
.section-more { margin-top: 1.75rem; text-align: center; }
.card-grid, .case-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.practice-card, .case-card, .article-card, .news-row {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.5rem;
  border-radius: 0.5rem;
  background: oklch(var(--background-50));
  border: 1px solid oklch(var(--background-200) / 0.7);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.practice-card:hover, .case-card:hover, .article-card:hover, .news-row:hover {
  border-color: oklch(var(--primary-300));
  transform: translateY(-4px);
}
.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: oklch(var(--primary-50));
  color: oklch(var(--primary-600));
  font-size: 1.6rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.practice-card:hover .card-icon { background: oklch(var(--primary-600)); color: #fff; }
.practice-card h3, .case-card h3, .article-card h3,
.practice-card h2, .case-card h2, .news-row h2 {
  margin-top: 1.15rem;
  font-size: 1.15rem;
  color: oklch(var(--foreground-950));
}
.practice-card:hover h3, .case-card:hover h3, .article-card:hover h3,
.case-card:hover h2, .news-row:hover h2 { color: oklch(var(--primary-700)); }
.card-summary { margin-top: 0.75rem; flex: 1; font-size: 0.9rem; color: oklch(var(--foreground-600)); }
.card-more {
  margin-top: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: oklch(var(--primary-600));
  font-size: 0.9rem;
  font-weight: 600;
}
.card-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: oklch(var(--primary-50));
  color: oklch(var(--primary-700));
  font-size: 0.75rem;
  font-weight: 600;
}
.pill-gold { background: oklch(var(--accent-100)); color: oklch(var(--accent-900)); }
.meta-quiet { font-size: 0.75rem; color: oklch(var(--foreground-500)); }
.news-list-vertical { display: grid; gap: 1rem; }
.news-row h2 { margin-top: 0.9rem; }

.intro-split, .about-grid, .contact-layout, .consult-layout, .detail-layout {
  display: grid;
  gap: 2rem;
}
.portrait-frame { position: relative; }
.portrait-offset {
  position: absolute;
  top: -1rem;
  left: -1rem;
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
  border: 2px solid oklch(var(--primary-200));
}
.portrait-photo, .portrait-fallback {
  position: relative;
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: top;
  border-radius: 0.5rem;
  background: oklch(var(--background-200));
}
.intro-split .portrait-photo,
.intro-split .portrait-fallback {
  height: auto;
  aspect-ratio: 3 / 4;
}
.portrait-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: oklch(var(--primary-300));
}
.intro-split h2, .about-grid h2 { margin-top: 0.7rem; font-size: 1.875rem; color: oklch(var(--foreground-950)); }
.profile-role { margin-top: 0.45rem; color: oklch(var(--primary-600)); font-weight: 600; }
.firm-note { margin-top: 0.45rem; display: flex; align-items: flex-start; gap: 0.35rem; color: oklch(var(--foreground-600)); font-size: 0.92rem; }
.intro-lead { margin-top: 1.1rem; color: oklch(var(--foreground-600)); }
.highlight-list { margin-top: 1.6rem; display: grid; gap: 1rem; }
.highlight-item { display: flex; align-items: flex-start; gap: 1rem; }
.highlight-icon {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: oklch(var(--primary-50));
  color: oklch(var(--primary-600));
  font-size: 1.2rem;
}
.highlight-item h3 { font-size: 1.02rem; }
.highlight-item p { margin-top: 0.25rem; font-size: 0.9rem; color: oklch(var(--foreground-600)); }
.intro-actions { margin-top: 1.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; }
.text-link { display: inline-flex; align-items: center; gap: 0.3rem; color: oklch(var(--primary-600)); font-weight: 600; font-size: 0.9rem; }
.text-link:hover { color: oklch(var(--primary-700)); }
.cred-grid { margin-top: 1.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.cred-card {
  padding: 1rem;
  border-radius: 0.5rem;
  background: oklch(var(--background-100));
  border: 1px solid oklch(var(--background-200) / 0.7);
}
.cred-label { margin-top: 0.7rem; font-size: 0.75rem; color: oklch(var(--foreground-500)); }
.cred-value { margin-top: 0.2rem; font-size: 0.9rem; font-weight: 600; color: oklch(var(--foreground-900)); overflow-wrap: anywhere; }
.honor-list { margin-top: 1.4rem; display: grid; gap: 0.75rem; }
.honor-list li { display: flex; align-items: flex-start; gap: 0.7rem; color: oklch(var(--foreground-600)); }
.honor-list i { color: oklch(var(--accent-500)); font-size: 1.2rem; }
.chip-list { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: oklch(var(--background-50));
  border: 1px solid oklch(var(--background-200));
  font-size: 0.88rem;
}

.page-head {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: linear-gradient(to bottom right, oklch(var(--primary-950)), oklch(var(--primary-900)) 52%, oklch(var(--primary-700)));
  padding: 7rem 0 3.5rem;
}
.page-head-glow, .page-head-img, .page-head-mask { position: absolute; inset: 0; }
.page-head-glow {
  opacity: 0.12;
  background:
    radial-gradient(circle at 20% 20%, rgb(255 255 255 / 0.4) 0, transparent 30%),
    radial-gradient(circle at 80% 60%, rgb(255 255 255 / 0.25) 0, transparent 35%);
  pointer-events: none;
}
.page-head-img { width: 100%; height: 100%; object-fit: cover; }
.page-head-mask { background: linear-gradient(to bottom, rgb(0 0 0 / 0.55), rgb(0 0 0 / 0.45)); }
.page-head-inner { position: relative; }
.page-head h1 { color: #fff; }
.page-rule { width: 3rem; height: 0.25rem; margin: 1rem auto 0; border-radius: 999px; background: oklch(var(--accent-500)); }
.page-lead { width: min(42rem, 100%); margin: 1.15rem auto 0; color: oklch(var(--background-200)); font-size: 0.95rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.35rem; margin-bottom: 1rem; font-size: 0.875rem; color: oklch(var(--background-300)); }
.crumbs a:hover { color: oklch(var(--accent-300)); }
.crumb-current { color: oklch(var(--accent-300)); max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-bottom: 0.8rem; font-size: 0.85rem; color: oklch(var(--background-200)); }
.detail-meta .pill { background: rgb(255 255 255 / 0.12); color: #fff; }
.detail-meta .pill-gold { background: oklch(var(--accent-500)); color: oklch(var(--primary-950)); }

.detail-kicker { display: flex; align-items: center; gap: 1rem; }
.detail-icon {
  width: 4rem;
  height: 4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: oklch(var(--primary-600));
  color: #fff;
  font-size: 1.8rem;
}
.detail-kicker p { margin-top: 0.25rem; color: oklch(var(--foreground-500)); font-size: 0.88rem; }
.detail-copy h2 { margin-top: 0.2rem; }
.prose { margin-top: 1.2rem; color: oklch(var(--foreground-700)); line-height: 1.9; }
.prose > * + * { margin-top: 0.95rem; }
.prose h2, .prose h3 { color: oklch(var(--foreground-950)); margin-top: 1.5rem; }
.prose a { color: oklch(var(--primary-600)); text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose img { border-radius: 0.5rem; }
.alert-soft, .note-gilt {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 1.1rem 1.2rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
}
.alert-soft { background: oklch(var(--primary-50)); border: 1px solid oklch(var(--primary-100)); color: oklch(var(--primary-800)); }
.note-gilt { flex-direction: column; background: oklch(var(--accent-50)); border: 1px solid oklch(var(--accent-100)); color: oklch(var(--foreground-700)); }
.author-card, .related-lawyer {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid oklch(var(--background-200));
  background: oklch(var(--background-100));
}
.author-card img, .related-lawyer img { width: 4rem; height: 5rem; object-fit: cover; border-radius: 0.35rem; }
.author-card p, .related-lawyer p { font-size: 0.82rem; color: oklch(var(--foreground-600)); }
.aside-phone {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: oklch(var(--primary-700));
}
.faq-block { margin-top: 1.6rem; }
.faq-item { border-top: 1px solid oklch(var(--background-200)); padding: 0.7rem 0; }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { margin-top: 0.4rem; color: oklch(var(--foreground-600)); }

.contact-tiles { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.contact-card {
  padding: 1.5rem;
  text-align: center;
  border-radius: 0.5rem;
  background: oklch(var(--background-50));
  border: 1px solid oklch(var(--background-200) / 0.7);
}
.contact-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: oklch(var(--primary-50));
  color: oklch(var(--primary-600));
  font-size: 1.4rem;
}
.contact-card h2 { margin-top: 0.9rem; font-size: 0.875rem; font-weight: 500; color: oklch(var(--foreground-500)); font-family: var(--font-body); }
.contact-value { margin-top: 0.45rem; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: oklch(var(--foreground-950)); overflow-wrap: anywhere; }
.contact-note { margin-top: 0.3rem; font-size: 0.75rem; color: oklch(var(--foreground-500)); }
.contact-card .btn { margin-top: 0.8rem; }
.contact-layout { margin-top: 2.5rem; }
.visit-card {
  padding: 1.6rem;
  border-radius: 0.5rem;
  background: oklch(var(--primary-900));
  color: #fff;
}
.visit-card h2 { font-size: 1.4rem; }
.visit-card p { margin-top: 0.7rem; color: rgb(255 255 255 / 0.85); font-size: 0.92rem; }
.visit-list { margin-top: 1.1rem; display: grid; gap: 0.8rem; }
.visit-list li, .promise-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; }
.visit-list i { color: oklch(var(--accent-400)); font-size: 1.1rem; }
.visit-card .firm-note, .visit-card .btn { color: #fff; }
.visit-card .btn-line { color: #fff; border-color: rgb(255 255 255 / 0.35); margin-top: 1rem; }
.promise-list { margin-top: 1rem; display: grid; gap: 0.65rem; color: oklch(var(--foreground-700)); }
.promise-list i { color: oklch(var(--primary-600)); }

.form-slot-detail .form-panel {
  padding: 1.15rem 1.05rem 1.2rem;
  border-radius: 0.5rem;
  border: 1px solid oklch(var(--background-200));
  background: oklch(var(--background-100));
}
.form-slot-contact .form-panel {
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid oklch(var(--background-200) / 0.7);
  background: oklch(var(--background-50));
}
.form-slot-consult .form-panel {
  padding: 1.6rem 1.35rem 1.4rem;
  border-radius: 0.5rem;
  border: 1px solid oklch(var(--primary-200));
  background: oklch(var(--background-50));
  box-shadow: 0 12px 28px oklch(var(--primary-900) / 0.08);
}
.form-title { display: flex; align-items: center; gap: 0.5rem; font-size: 1.15rem; color: oklch(var(--foreground-950)); }
.accent-bar { width: 0.28rem; height: 1.15rem; border-radius: 99px; background: oklch(var(--accent-500)); }
.form-sub { margin: 0.45rem 0 1rem; font-size: 0.85rem; color: oklch(var(--foreground-500)); }
.form-field { margin-bottom: 0.9rem; }
.form-field label { display: block; margin-bottom: 0.35rem; font-size: 0.875rem; font-weight: 600; color: oklch(var(--foreground-800)); }
.form-field input[type="text"], .form-field input[type="tel"], .form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 0.375rem;
  border: 1px solid oklch(var(--background-300));
  background: oklch(var(--background-50));
  color: oklch(var(--foreground-900));
  font-size: 0.9rem;
}
.form-field textarea { min-height: 7rem; resize: vertical; }
.form-field input:focus, .form-field textarea:focus {
  outline: 2px solid oklch(var(--primary-300));
  border-color: oklch(var(--primary-400));
}
.form-check { display: flex; align-items: flex-start; gap: 0.45rem; }
.form-check input { margin-top: 0.3rem; accent-color: oklch(var(--primary-600)); }
.form-check label { margin: 0; font-weight: 500; }
.form-check a { color: oklch(var(--primary-600)); text-decoration: underline; }
.form-disclaimer { margin-top: 0.7rem; font-size: 0.78rem; color: oklch(var(--foreground-500)); }
.form-btn { margin-top: 0.3rem; }

.steps-band { width: 100%; padding: 4rem 0; background: oklch(var(--background-100)); }
.steps-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
  margin-top: 2rem;
}
.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.2rem;
  border-radius: 0.5rem;
  background: oklch(var(--background-50));
  border: 1px solid oklch(var(--background-200) / 0.7);
}
.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  background: oklch(var(--primary-600));
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
}
.step-item h3 { margin-top: 0.8rem; font-size: 1.1rem; color: oklch(var(--foreground-950)); }
.step-item p { margin-top: 0.45rem; color: oklch(var(--foreground-600)); font-size: 0.92rem; }
.step-item h3, .step-item p { overflow-wrap: anywhere; word-break: break-word; }

.cta-wrap { padding: 0 0 4rem; background: oklch(var(--background-50)); }
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(to bottom right, oklch(var(--primary-800)), oklch(var(--primary-700)) 45%, oklch(var(--primary-900)));
}
.cta-glow {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background:
    radial-gradient(circle at 30% 30%, rgb(255 255 255 / 0.5) 0, transparent 35%),
    radial-gradient(circle at 75% 70%, rgb(255 255 255 / 0.4) 0, transparent 35%);
}
.cta-inner { position: relative; padding: 3.5rem 1.4rem; }
.cta-inner h2 { font-size: 1.875rem; }
.cta-inner p { width: min(40rem, 100%); margin: 1rem auto 0; color: rgb(255 255 255 / 0.85); }
.cta-actions { margin-top: 1.8rem; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.cta-actions .btn { width: 100%; }

.trust-bar { background: oklch(var(--background-50)); border-top: 1px solid oklch(var(--background-200)); }
.trust-inner { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; padding: 1rem 0; }
.trust-item { display: flex; align-items: center; gap: 0.6rem; flex: 1 1 12rem; min-width: 0; }
.trust-icon {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  background: oklch(var(--primary-50));
  color: oklch(var(--primary-600));
  font-size: 1.15rem;
  line-height: 1;
}
.trust-item .trust-icon i { font-size: 1em; line-height: 1; display: block; }
.trust-item strong, .trust-item > div span, .trust-item a { display: block; overflow-wrap: anywhere; }
.trust-item strong { font-size: 0.92rem; }
.trust-item > div span, .trust-item a { font-size: 0.8rem; color: oklch(var(--foreground-600)); }

.site-footer { background: oklch(var(--primary-950)); color: oklch(var(--background-100)); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.2rem; padding: 3rem 0; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-firm { color: oklch(var(--accent-400)); }
.footer-blurb, .footer-license { color: oklch(var(--background-300)); }
.footer-blurb { margin-top: 1rem; font-size: 0.9rem; }
.footer-license { margin-top: 0.35rem; font-size: 0.82rem; }
.site-footer h3 { margin-bottom: 0.9rem; font-size: 0.95rem; color: #fff; }
.footer-links a, .footer-nap-list { color: oklch(var(--background-300)); font-size: 0.9rem; }
.footer-links li + li, .footer-nap-list li + li { margin-top: 0.55rem; }
.footer-links a:hover { color: oklch(var(--accent-300)); }
.footer-nap-list li { display: flex; align-items: flex-start; gap: 0.55rem; }
.footer-nap-list i { color: oklch(var(--accent-400)); margin-top: 0.15rem; }
.footer-wechat {
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 0.1); }
.footer-bottom-inner { padding: 1.15rem 0 1.4rem; display: grid; gap: 0.35rem; font-size: 0.75rem; color: oklch(var(--background-400)); }
.footer-tech { font-size: 0.72rem; }
.footer-tech a { color: oklch(var(--background-300)); }

.related-band { padding: 0 0 3.5rem; background: oklch(var(--background-50)); }
.related-block { margin-top: 1.2rem; }
.related-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid oklch(var(--background-200));
}
.related-item span { flex: 1; min-width: 0; }
.related-item em { font-style: normal; font-size: 0.8rem; color: oklch(var(--primary-600)); }
.empty-note { text-align: center; color: oklch(var(--foreground-500)); padding: 2rem 0; }

.thanks-inner, .not-found-inner { text-align: center; }
.thanks-inner { max-width: 40rem; }
.thanks-icon { font-size: 3rem; color: oklch(var(--primary-600)); }
.thanks-lead { margin-top: 0.8rem; font-size: 1.05rem; }
.thanks-actions, .not-found-actions { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }
.thanks-wechat { margin: 1.2rem auto 0; max-width: 22rem; }
.thanks-wechat img { width: 180px; height: 180px; object-fit: contain; }
.thanks-hours { margin-top: 1.4rem; }
.thanks-disclaimer { margin-top: 1rem; font-size: 0.82rem; color: oklch(var(--foreground-500)); }
.not-found-code { font-family: var(--font-heading); font-size: 4.5rem; line-height: 1; color: oklch(var(--accent-300)); }
.not-found-grid { margin-top: 2rem; text-align: left; }

.pager { display: flex; justify-content: center; margin-top: 1.75rem; }
.pagination { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; list-style: none; padding: 0; }
.pagination li a, .pagination li span {
  display: inline-flex;
  min-width: 2.3rem;
  height: 2.3rem;
  padding: 0 0.55rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  border: 1px solid oklch(var(--background-300));
  background: oklch(var(--background-50));
  color: oklch(var(--foreground-700));
  font-size: 0.88rem;
}
.pagination li a:hover { border-color: oklch(var(--primary-400)); color: oklch(var(--primary-600)); }
.pagination li.active span, .pagination li.current span {
  background: oklch(var(--primary-600));
  border-color: oklch(var(--primary-600));
  color: #fff;
}
.pagination li.disabled span { color: oklch(var(--foreground-400)); background: oklch(var(--background-100)); }

.wechat-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgb(0 0 0 / 0.55);
  padding: 1rem;
}
.wechat-modal.is-open { display: flex; align-items: center; justify-content: center; }
.wechat-modal-box {
  position: relative;
  width: min(22rem, 100%);
  padding: 1.6rem 1.3rem 1.3rem;
  border-radius: 0.5rem;
  background: oklch(var(--background-50));
  text-align: center;
  border: 1px solid oklch(var(--primary-100));
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.22);
}
.wechat-modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: oklch(var(--background-100));
  color: oklch(var(--foreground-700));
}
.wechat-modal-icon { font-size: 2rem; color: oklch(var(--primary-600)); }
.wechat-modal-title { margin-top: 0.35rem; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; }
.wechat-modal-desc { margin-top: 0.35rem; font-size: 0.88rem; color: oklch(var(--foreground-600)); }
.wechat-qr { width: 180px; height: 180px; margin-top: 0.8rem; object-fit: contain; }
.wechat-modal-dismiss {
  margin-top: 0.4rem;
  border: 0;
  background: transparent;
  color: oklch(var(--foreground-500));
  font-weight: 600;
}
.wechat-id-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
}
.wechat-id-label { font-size: 0.82rem; color: oklch(var(--foreground-500)); }
.wechat-id-value { color: oklch(var(--foreground-950)); }
.wechat-id-row button {
  border: 0;
  border-radius: 0.375rem;
  padding: 0.35rem 0.7rem;
  background: oklch(var(--primary-600));
  color: #fff;
  font-weight: 600;
}
.wechat-id-hint { margin-top: 0.5rem; font-size: 0.82rem; color: oklch(var(--foreground-600)); }
.wechat-id-hint strong { color: oklch(var(--primary-600)); }
.off-hours-tip { margin-top: 0.8rem; }
.off-hours-tip[hidden] { display: none; }
.off-hours-tip-inner {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  border-radius: 0.5rem;
  background: oklch(var(--accent-100));
  color: oklch(var(--foreground-800));
  font-size: 0.85rem;
  text-align: left;
}
.visit-card .off-hours-tip-inner,
.visit-card .off-hours-tip-inner p,
.visit-card .off-hours-tip-inner i {
  color: oklch(var(--foreground-800));
}

.pc-convert { display: none; }
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  background: oklch(var(--background-50) / 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid oklch(var(--background-200));
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  border: 0;
  background: transparent;
  color: oklch(var(--foreground-500));
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.45rem 0.15rem 0.55rem;
}
.mobile-bar-item i { font-size: 1.25rem; }
.mobile-cta { color: oklch(var(--primary-600)); }
.back-top {
  position: fixed;
  right: 1rem;
  bottom: 5.4rem;
  z-index: 40;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: oklch(var(--primary-800));
  color: #fff;
  opacity: 0;
  pointer-events: none;
}
.back-top.is-on { opacity: 1; pointer-events: auto; }

@media (max-width: 767px) {
  body { padding-bottom: 4.8rem; }
}
@media (min-width: 640px) {
  .contact-tiles { grid-template-columns: 1fr 1fr; }
  .hero-actions, .cta-actions { flex-direction: row; justify-content: center; }
  .hero-actions .btn, .cta-actions .btn { width: auto; }
}
@media (min-width: 768px) {
  body { padding-bottom: 4.6rem; }
  .header-bar { height: 5rem; padding: 0 1.5rem; }
  .brand-mark, .brand-logo { width: 2.5rem; height: 2.5rem; }
  .brand-name { font-size: 1.25rem; }
  .nav-desktop { display: flex; }
  .nav-toggle, .nav-mobile { display: none !important; }
  .header-phone { display: inline-flex; }
  .hero { min-height: 820px; }
  .hero-inner { padding: 8rem 1.5rem 7rem; }
  .hero h1 { font-size: 3.75rem; }
  .hero-slogan { font-size: 1.5rem; }
  .hero-lead { font-size: 1rem; }
  .hero-kicker { font-size: 0.875rem; }
  .hero-stats { gap: 1.5rem; }
  .section-head h2, .page-head h1 { font-size: 2.4rem; }
  .section-head.split { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .intro-split, .about-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
  .about-grid { align-items: start; grid-template-columns: 2fr 3fr; }
  .portrait-photo, .portrait-fallback { height: 520px; }
  .intro-split .portrait-photo,
  .intro-split .portrait-fallback { height: auto; aspect-ratio: 3 / 4; }
  .contact-layout, .consult-layout { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
  .consult-layout { grid-template-columns: 1.35fr 0.85fr; }
  .detail-layout { grid-template-columns: 1.4fr 0.8fr; align-items: start; }
  .form-slot-detail { position: sticky; top: 6rem; }
  .cta-inner { padding: 5rem 2rem; }
  .cta-inner h2 { font-size: 2.25rem; }
  .page-head { padding: 9rem 0 5rem; }
  .pc-convert {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: oklch(var(--primary-950));
    color: oklch(var(--background-100));
    border-top: 1px solid rgb(255 255 255 / 0.08);
  }
  .pc-convert-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; }
  .pc-convert-text { display: flex; flex-direction: column; }
  .pc-convert-text span { font-size: 0.8rem; color: oklch(var(--background-300)); }
  .pc-convert-actions { display: flex; align-items: center; gap: 0.8rem; }
  .pc-convert-phone { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 700; color: oklch(var(--accent-300)); }
  .mobile-bar { display: none; }
  .back-top { bottom: 5rem; }
  .footer-grid { grid-template-columns: 1.3fr 0.8fr 0.9fr 1.2fr; }
  body:has(#wechat-modal img) .wechat-id-row,
  body:has(#wechat-modal img) .wechat-id-hint { display: none !important; }
}
@media (min-width: 1024px) {
  .card-grid, .case-grid { grid-template-columns: 1fr 1fr 1fr; }
  .contact-tiles { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.7s ease-out both; }
