/* 青灰月白 · lawyer-sage-moon · Other-services-04 移植 */

:root {
  --charcoal: #3D5252;
  --charcoal-light: #4A6363;
  --moon: #F7F9FB;
  --slateblue: #D5DFE4;
  --slateblue-dark: #B8C9D0;
  --ink: #1A1A1A;
  --ink-light: #4A4A4A;
  --ink-muted: #888888;
  --white: #ffffff;
  --font-serif: "Noto Serif SC", "Songti SC", serif;
  --font-sans: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --wrap: 72rem;
  --header-h: 4.5rem;
  --mobile-bar-h: 84px;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--moon);
  line-height: 1.65;
  padding-bottom: var(--mobile-bar-h);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--charcoal); text-decoration: none; }
a:hover { color: var(--charcoal-light); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 768px) {
  .wrap { padding-left: 3rem; padding-right: 3rem; }
  body { padding-bottom: 0; }
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.text-charcoal { color: var(--charcoal); }

/* Buttons */
.btn-primary,
.btn-outline,
.btn-moon,
.btn-ghost-moon,
.btn-sm,
.btn-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn-primary { background: var(--charcoal); color: var(--moon); }
.btn-primary:hover { background: var(--charcoal-light); color: var(--moon); }
.btn-outline {
  background: transparent;
  border-color: rgba(61, 82, 82, 0.3);
  color: var(--charcoal);
}
.btn-outline:hover { background: rgba(61, 82, 82, 0.05); color: var(--charcoal); }
.btn-moon { background: var(--moon); color: var(--charcoal); }
.btn-moon:hover { background: rgba(247, 249, 251, 0.9); color: var(--charcoal); }
.btn-ghost-moon {
  background: transparent;
  border-color: rgba(247, 249, 251, 0.3);
  color: var(--moon);
}
.btn-ghost-moon:hover { background: rgba(247, 249, 251, 0.1); color: var(--moon); }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.8rem; }
.btn-footer {
  background: rgba(247, 249, 251, 0.1);
  border-color: rgba(247, 249, 251, 0.2);
  color: var(--moon);
  margin-bottom: 1.25rem;
}
.btn-footer:hover { background: rgba(247, 249, 251, 0.2); color: var(--moon); }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s, box-shadow 0.3s;
  background: transparent;
}
.site-header.is-scrolled {
  background: var(--moon);
  box-shadow: 0 1px 0 rgba(61, 82, 82, 0.08);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.75rem 0;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
}
.nav-brand:hover { color: inherit; }
.nav-logo-img {
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  object-fit: cover;
}
.nav-logo-ico {
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(247, 249, 251, 0.2);
  color: var(--moon);
  transition: background 0.3s, color 0.3s;
}
.site-header.is-scrolled .nav-logo-ico {
  background: var(--charcoal);
  color: var(--moon);
}
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--moon);
  transition: color 0.3s;
}
.nav-firm {
  font-size: 0.625rem;
  color: rgba(247, 249, 251, 0.6);
  transition: color 0.3s;
}
.site-header.is-scrolled .nav-logo-text { color: var(--charcoal); }
.site-header.is-scrolled .nav-firm { color: var(--ink-muted); }

.nav-desktop { display: none; align-items: center; gap: 0.15rem; }
@media (min-width: 900px) { .nav-desktop { display: flex; } }
.nav-item {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  color: rgba(247, 249, 251, 0.7);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-item:hover,
.nav-item.is-active {
  color: var(--moon);
  background: rgba(247, 249, 251, 0.15);
}
.nav-item.is-cta {
  background: rgba(247, 249, 251, 0.2);
  color: var(--moon);
  border-radius: var(--radius-full);
  margin-left: 0.25rem;
}
.site-header.is-scrolled .nav-item { color: var(--ink-light); }
.site-header.is-scrolled .nav-item:hover,
.site-header.is-scrolled .nav-item.is-active {
  color: var(--charcoal);
  background: rgba(213, 223, 228, 0.4);
}
.site-header.is-scrolled .nav-item.is-cta {
  background: var(--charcoal);
  color: var(--moon);
}

.nav-phone {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: rgba(247, 249, 251, 0.2);
  color: var(--moon);
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
}
.nav-phone:hover { background: rgba(247, 249, 251, 0.3); color: var(--moon); }
.site-header.is-scrolled .nav-phone {
  background: var(--charcoal);
  color: var(--moon);
}
.site-header.is-scrolled .nav-phone:hover { background: var(--charcoal-light); color: var(--moon); }
@media (min-width: 900px) { .nav-phone { display: inline-flex; } }

.nav-mobile-btn {
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  color: var(--moon);
  transition: color 0.3s;
}
.site-header.is-scrolled .nav-mobile-btn { color: var(--ink); }
@media (min-width: 900px) { .nav-mobile-btn { display: none; } }

.mobile-menu {
  background: var(--moon);
  border-top: 1px solid rgba(213, 223, 228, 0.5);
  padding: 1rem 1.5rem;
}
.mobile-menu[hidden] { display: none !important; }
.mobile-menu-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav-link {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  color: var(--ink-light);
}
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--charcoal);
  background: rgba(213, 223, 228, 0.4);
}
.mobile-nav-phone {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--charcoal);
  color: var(--moon);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
}
.mobile-nav-phone:hover { background: var(--charcoal-light); color: var(--moon); }

.site-main { min-height: 50vh; }

/* Home hero */
.home-hero {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
@media (min-width: 768px) {
  .home-hero { min-height: 620px; }
}
.home-hero-bg {
  position: absolute;
  inset: 0;
}
.home-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.home-hero-fallback {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-light) 50%, var(--charcoal) 100%);
}
.home-hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(247,249,251,0.3) 40px, rgba(247,249,251,0.3) 42px),
    repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(247,249,251,0.3) 40px, rgba(247,249,251,0.3) 42px);
  pointer-events: none;
}
.home-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, transparent, rgba(61, 82, 82, 0.7));
  pointer-events: none;
}
.home-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 5rem;
  padding-bottom: 4rem;
}
.home-hero-copy { max-width: 48rem; }
.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(247, 249, 251, 0.2);
  border-radius: var(--radius-full);
  color: rgba(247, 249, 251, 0.7);
  font-size: 0.75rem;
  margin-bottom: 2rem;
}
.home-hero h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--moon);
  margin-bottom: 1.25rem;
}
.home-hero-tagline {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: rgba(247, 249, 251, 0.7);
  margin: 0 0 1rem;
}
.home-hero-lead {
  font-size: 0.95rem;
  color: rgba(247, 249, 251, 0.5);
  max-width: 36rem;
  line-height: 1.7;
  margin: 0 0 2.25rem;
}
.home-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.home-hero-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 6rem;
  background: linear-gradient(to top, var(--moon), transparent);
  z-index: 2;
  pointer-events: none;
}

/* Profile */
.profile-section {
  padding: 4rem 0;
}
@media (min-width: 768px) {
  .profile-section { padding: 5.5rem 0; }
}
.profile-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .profile-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 4rem;
  }
}
.profile-copy { flex: 1; min-width: 0; }
.profile-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(61, 82, 82, 0.3);
  border-radius: 0.25rem;
  font-size: 0.75rem;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}
.profile-name {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.profile-role {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--charcoal);
  margin: 0 0 2rem;
}
.profile-lead {
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.profile-lead p { margin: 0 0 1rem; }
.profile-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 2rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .profile-meta { grid-template-columns: 1fr 1fr; }
}
.profile-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.profile-meta-item i { color: var(--charcoal); flex-shrink: 0; }
.profile-meta-item a,
.profile-meta-item button {
  color: var(--charcoal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.profile-aside {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .profile-aside { flex-direction: column; gap: 1.5rem; }
}
.profile-photo {
  width: 100px; height: 100px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--slateblue), var(--slateblue-dark));
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .profile-photo { width: 140px; height: 140px; }
}
.profile-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}
.profile-photo-fallback {
  display: flex; align-items: center; justify-content: center;
  color: var(--charcoal);
  font-family: var(--font-serif);
  font-weight: 700;
}
.profile-qr {
  width: 100px; height: 100px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--slateblue);
  background: var(--moon);
  padding: 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .profile-qr { width: 140px; height: 140px; }
}
.profile-qr img {
  width: 100%; height: 100%;
  object-fit: contain;
}

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.link-underline:hover { color: var(--charcoal-light); }

/* Services */
.services-section {
  padding: 4rem 0;
  background: rgba(213, 223, 228, 0.2);
}
@media (min-width: 768px) {
  .services-section { padding: 5.5rem 0; }
}
.section-head { margin-bottom: 2.5rem; }
.section-head-center { text-align: center; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.section-desc {
  font-size: 0.875rem;
  color: var(--ink-muted);
  max-width: 28rem;
  margin: 0 auto;
}
.section-cta { text-align: center; margin-top: 2.5rem; }

.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .svc-grid-home { grid-template-columns: 1fr 1fr 1fr; }
  .svc-grid-home .svc-card-featured {
    grid-column: 1 / -1;
    background: var(--charcoal);
    color: var(--moon);
    min-height: 14rem;
  }
  .svc-grid-home .svc-card-featured h3,
  .svc-grid-home .svc-card-featured .svc-more { color: var(--moon); }
  .svc-grid-home .svc-card-featured p { color: rgba(247, 249, 251, 0.6); }
}
.svc-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--moon);
  border: 1px solid rgba(213, 223, 228, 0.5);
  border-radius: var(--radius-xl);
  color: inherit;
  transition: border-color 0.25s;
}
.svc-card:hover {
  border-color: rgba(61, 82, 82, 0.2);
  color: inherit;
}
.svc-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
}
.svc-card p {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.6;
  flex: 1;
}
.svc-more {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.svc-ico {
  width: 2.75rem; height: 2.75rem;
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
}
.svc-ico-slate {
  background: rgba(213, 223, 228, 0.5);
  color: var(--charcoal);
}
.svc-ico-moon {
  background: rgba(247, 249, 251, 0.1);
  color: var(--moon);
}
.svc-card-featured .svc-ico-moon {
  background: rgba(247, 249, 251, 0.1);
  color: var(--moon);
}

/* Dual news/cases */
.dual-section {
  padding: 4rem 0;
}
.dual-section:not(:has(.dual-col)) { display: none; }
@media (min-width: 768px) {
  .dual-section { padding: 5.5rem 0; }
}
.dual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}
@media (min-width: 1024px) {
  .dual-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}
.dual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.dual-head .section-title { margin-bottom: 0; font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
.dual-item {
  display: block;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(213, 223, 228, 0.5);
  color: inherit;
}
.dual-item:last-child { border-bottom: none; }
.dual-item:hover { color: inherit; }
.dual-item:hover h3 { color: var(--charcoal); }
.dual-item h3 {
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-sans);
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}
.dual-item p {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin: 0 0 0.5rem;
  line-height: 1.6;
}
.dual-date {
  font-size: 0.7rem;
  color: rgba(136, 136, 136, 0.7);
}
.tag-anon {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.15rem 0.55rem;
  background: rgba(213, 223, 228, 0.4);
  color: var(--charcoal);
  border-radius: var(--radius-full);
  margin-bottom: 0.4rem;
}

/* CTA */
.cta-section { padding: 4rem 0 5rem; }
.cta-inner { text-align: center; max-width: 40rem; margin: 0 auto; }
.cta-inner h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.cta-inner > p {
  font-size: 1rem;
  color: var(--ink-muted);
  margin: 0 0 2rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.cta-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  color: rgba(136, 136, 136, 0.25);
  font-size: 1.75rem;
}

/* Steps */
.steps-section {
  padding: 3.5rem 0 4.5rem;
  background: rgba(213, 223, 228, 0.15);
}
.steps-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
}
.step-item {
  flex: 1 1 16.5rem;
  max-width: 22rem;
  min-width: 0;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  background: var(--moon);
  border: 1px solid rgba(213, 223, 228, 0.5);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.25rem;
}
.step-item h3,
.step-item p {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--moon);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.step-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.step-item p {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.6;
}
.steps-cta { text-align: center; margin-top: 2rem; }

/* Page heroes */
.page-hero {
  position: relative;
  padding: 6.5rem 0 2.5rem;
  background: var(--moon);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.page-hero-fallback {
  background: linear-gradient(135deg, #243434, var(--charcoal));
}
.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 26, 26, 0.62);
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-top: 0.75rem;
  color: var(--ink);
}
.page-hero-desc {
  font-size: 1rem;
  color: #2a2a2a;
  margin: 0.65rem 0 0;
  max-width: 40rem;
  line-height: 1.75;
}
.page-hero:has(.page-hero-bg) {
  color: #fff;
  min-height: 14rem;
}
.page-hero:has(.page-hero-bg) h1,
.page-hero:has(.page-hero-bg) .page-hero-desc,
.page-hero:has(.page-hero-bg) .crumbs,
.page-hero:has(.page-hero-bg) .crumbs a,
.page-hero:has(.page-hero-bg) .crumb-current,
.page-hero:has(.page-hero-bg) .crumb-sep {
  color: #fff;
}
.page-hero:has(.page-hero-bg) .page-hero-desc {
  color: rgba(255, 255, 255, 0.95);
}
.page-hero:has(.page-hero-bg) .crumbs a:hover { color: #fff; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #2a2a2a;
}
.crumbs a { color: var(--charcoal); font-weight: 600; }
.crumbs a:hover { color: var(--ink); }
.crumb-sep { display: inline-flex; opacity: 1; font-size: 0.85rem; color: #3a3a3a; }
.crumb-current { color: var(--ink); font-weight: 600; }

.page-body { padding: 2.5rem 0 4rem; }

/* About */
.about-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .about-layout { flex-direction: row; gap: 4rem; }
}
.about-aside {
  width: 100%;
  max-width: 24rem;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .about-aside { width: 23.75rem; max-width: none; }
}
.about-photo {
  width: 100%;
  max-width: 18.75rem;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--slateblue), var(--slateblue-dark));
}
@media (min-width: 1024px) {
  .about-photo { max-width: none; }
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}
.about-photo-fallback {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
}
.about-aside-card {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--charcoal);
  border-radius: var(--radius-xl);
  color: var(--moon);
}
.about-aside-card h3 {
  font-size: 0.875rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--moon);
  margin-bottom: 1rem;
}
.about-aside-card p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  margin: 0 0 0.75rem;
}
.about-aside-card span { color: rgba(247, 249, 251, 0.6); }
.about-aside-card strong { color: var(--moon); font-weight: 600; }
.about-main { flex: 1; min-width: 0; }
.about-name {
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 700;
  margin: 0 0 1.5rem;
}
.about-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 2rem;
  padding: 1.5rem;
  background: rgba(213, 223, 228, 0.2);
  border-radius: var(--radius-xl);
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
  .about-info-grid { grid-template-columns: 1fr 1fr; }
  .about-info-wide { grid-column: 1 / -1; }
}
.about-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
}
.about-info-item i {
  color: var(--charcoal);
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.meta-lbl {
  font-size: 0.65rem;
  color: var(--ink-muted);
  margin: 0;
}
.meta-val {
  color: var(--ink-light);
  margin: 0.1rem 0 0;
}
.about-section { margin-bottom: 2.5rem; }
.about-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.honor-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.honor-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--charcoal);
  background: rgba(213, 223, 228, 0.4);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
}
.honor-item img {
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  object-fit: cover;
}
.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Practice list */
.practice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .practice-grid { grid-template-columns: 1fr 1fr; }
}
.practice-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 2rem;
  background: var(--moon);
  border: 1px solid rgba(213, 223, 228, 0.5);
  border-radius: var(--radius-xl);
  color: inherit;
  transition: border-color 0.25s;
}
.practice-card:hover {
  border-color: rgba(61, 82, 82, 0.2);
  color: inherit;
}
.practice-card-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.practice-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
}
.practice-card p {
  font-size: 0.9375rem;
  color: #2a2a2a;
  margin: 0;
  line-height: 1.7;
  flex: 1;
}
.page-bottom-cta {
  margin-top: 3.5rem;
  padding: 2.5rem;
  background: var(--charcoal);
  border-radius: var(--radius-xl);
  text-align: center;
  color: var(--moon);
}
.page-bottom-cta h2 {
  color: var(--moon);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: 0.75rem;
}
.page-bottom-cta p {
  color: rgba(247, 249, 251, 0.6);
  font-size: 0.875rem;
  margin: 0 0 1.5rem;
}

/* Case / news lists */
.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 1024px) {
  .case-grid { grid-template-columns: 1fr 1fr; }
}
.list-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem 2rem;
  background: var(--moon);
  border: 1px solid rgba(213, 223, 228, 0.5);
  border-radius: var(--radius-xl);
  color: inherit;
  transition: border-color 0.25s;
}
.list-card:hover {
  border-color: rgba(61, 82, 82, 0.2);
  color: inherit;
}
.list-card:hover h3 { color: var(--charcoal); }
.list-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  transition: color 0.2s;
}
.list-card p {
  font-size: 0.9375rem;
  color: #2a2a2a;
  margin: 0;
  line-height: 1.65;
  flex: 1;
}
.list-card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--charcoal);
  margin-top: auto;
}
.list-card-date {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin: 0;
}
.case-card-ico {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--charcoal);
  color: var(--moon);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.news-list-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.news-stack-item {
  display: block;
  padding: 1.5rem 2rem;
  background: var(--moon);
  border: 1px solid rgba(213, 223, 228, 0.5);
  border-radius: var(--radius-xl);
  color: inherit;
  transition: border-color 0.25s;
}
.news-stack-item:hover {
  border-color: rgba(61, 82, 82, 0.2);
  color: inherit;
}
.news-stack-item:hover h3 { color: var(--charcoal); }
.news-stack-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0.35rem 0 0.5rem;
  transition: color 0.2s;
}
.news-stack-body p {
  font-size: 0.9375rem;
  color: #2a2a2a;
  margin: 0 0 0.75rem;
  line-height: 1.65;
}

/* Pager */
.pager {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}
.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: 0.5rem;
  font-size: 0.85rem;
  border: 1px solid rgba(61, 82, 82, 0.2);
  color: var(--charcoal);
  background: var(--moon);
}
.pagination li a:hover {
  background: var(--charcoal);
  color: var(--moon);
  border-color: var(--charcoal);
}
.pagination li.active span,
.pagination .active > a {
  background: var(--charcoal);
  color: var(--moon);
  border-color: var(--charcoal);
}
.pagination li.disabled span {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Detail */
.detail-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .detail-shell {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 2.5rem;
    align-items: start;
  }
}
.detail-panel {
  background: var(--moon);
  border: 1px solid rgba(213, 223, 228, 0.5);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}
@media (min-width: 768px) {
  .detail-panel { padding: 2.5rem; }
}
.alert-soft {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: rgba(213, 223, 228, 0.35);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--ink-light);
  margin-bottom: 1.25rem;
}
.meta-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem;
  background: rgba(213, 223, 228, 0.2);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  color: inherit;
}
.meta-card:hover { color: inherit; }
.meta-card img {
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
}
.meta-card strong { display: block; font-size: 0.9rem; }
.meta-card span { font-size: 0.75rem; color: var(--ink-muted); }
.detail-practice {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin: 0 0 1rem;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}
.article-lead {
  font-size: 1.05rem;
  color: #1a1a1a;
  line-height: 1.75;
  padding: 1.15rem;
  background: rgba(213, 223, 228, 0.35);
  border-radius: var(--radius);
  margin: 0 0 1.5rem;
}
.result-box {
  padding: 1.15rem;
  background: rgba(213, 223, 228, 0.2);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.result-box strong {
  display: block;
  font-size: 0.875rem;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}
.result-box p {
  margin: 0;
  font-size: 0.95rem;
  color: #1a1a1a;
  line-height: 1.7;
}
.detail-bottom-cta {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--charcoal);
  border-radius: var(--radius-xl);
  text-align: center;
}
.detail-bottom-cta h3 {
  color: var(--moon);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.detail-bottom-cta p {
  color: rgba(247, 249, 251, 0.6);
  font-size: 0.875rem;
  margin: 0 0 1.25rem;
}
.detail-aside { position: relative; }
@media (min-width: 1024px) {
  .form-sidebar { position: sticky; top: 6rem; }
}

.faq-section { margin-top: 2.5rem; }
.faq-section h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.faq-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(213, 223, 228, 0.5);
}
.faq-item h3 {
  font-size: 0.95rem;
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.faq-item p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.related-section { padding: 0 0 4rem; }
.related-section > .wrap > h2 {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
}
.related-lawyer {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--moon);
  border: 1px solid rgba(213, 223, 228, 0.5);
  border-radius: var(--radius-xl);
  margin-bottom: 1.5rem;
  color: inherit;
}
.related-lawyer:hover { color: inherit; }
.related-lawyer img {
  width: 4rem; height: 4rem;
  border-radius: var(--radius);
  object-fit: cover;
}
.related-lawyer-name { font-weight: 600; display: block; margin-bottom: 0.25rem; }
.related-lawyer p {
  margin: 0.15rem 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
}
.related-block { margin-top: 1.5rem; }
.related-block > h3 {
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}
.related-list { display: flex; flex-direction: column; gap: 0.5rem; }
.related-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--moon);
  border: 1px solid rgba(213, 223, 228, 0.5);
  border-radius: var(--radius);
  color: inherit;
  font-size: 0.9rem;
}
.related-item:hover {
  border-color: rgba(61, 82, 82, 0.25);
  color: var(--charcoal);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1.4fr; gap: 2.5rem; align-items: start; }
}
.contact-tiles-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-tile {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.35rem;
  background: var(--moon);
  border: 1px solid rgba(213, 223, 228, 0.5);
  border-radius: var(--radius-xl);
  color: inherit;
}
.contact-tile:hover { color: inherit; }
.contact-tile-ico {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--charcoal);
  color: var(--moon);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-tile .meta-lbl { display: block; }
.contact-tile .meta-val { display: block; font-weight: 500; color: var(--ink); }
.meta-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 0.35rem;
}
.contact-form-wrap {
  background: var(--moon);
  border: 1px solid rgba(213, 223, 228, 0.5);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}
@media (min-width: 768px) {
  .contact-form-wrap { padding: 2.5rem; }
}

/* Forms */
.sm-form h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.form-sub {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
}
.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block;
  font-size: 0.875rem;
  color: var(--ink-light);
  margin-bottom: 0.4rem;
}
.form-field input[type="text"],
.form-field input[type="tel"],
.form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(213, 223, 228, 0.2);
  border: 1px solid rgba(213, 223, 228, 0.5);
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: var(--ink);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(61, 82, 82, 0.4);
}
.form-field textarea {
  min-height: 6rem;
  resize: vertical;
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.form-check input { margin-top: 0.2rem; }
.form-check label { margin: 0; font-size: 0.8rem; }
.form-btn { width: 100%; margin-top: 0.5rem; }
.form-disclaimer {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin: 0.85rem 0 0;
  line-height: 1.5;
}
.consult-error {
  color: #b33;
  font-size: 0.875rem;
  margin: 0 0 0.75rem;
}
.form-consult-page {
  max-width: 36rem;
  margin: 0 auto;
}
.form-consult-page .sm-form {
  background: var(--moon);
  border: 1px solid rgba(61, 82, 82, 0.2);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: 0 8px 28px rgba(61, 82, 82, 0.06);
}
.form-consult-lead {
  font-size: 0.95rem;
  color: var(--ink-light);
  margin: 0 0 1.5rem;
  text-align: center;
}
.form-sidebar .sm-form {
  background: var(--moon);
  border: 1px solid rgba(213, 223, 228, 0.6);
  border-radius: var(--radius-xl);
  padding: 1.35rem;
}
.form-sidebar .sm-form h3 {
  font-size: 1.05rem;
  padding-left: 0.65rem;
  border-left: 3px solid var(--charcoal);
}

.privacy-wrap {
  background: var(--moon);
  border: 1px solid rgba(213, 223, 228, 0.5);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
}

/* Thanks / 404 */
.thanks-page,
.error-page {
  padding: 7rem 0 5rem;
}
.thanks-inner,
.error-inner {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}
.thanks-icon,
.error-icon {
  font-size: 3rem;
  color: var(--charcoal);
  margin-bottom: 1rem;
}
.thanks-lead,
.error-lead {
  color: var(--ink-muted);
  margin: 0.75rem 0 1.75rem;
}
.thanks-actions,
.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.thanks-wechat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.thanks-wechat img {
  border-radius: var(--radius);
  border: 1px solid var(--slateblue);
}
.thanks-hours {
  margin-bottom: 1.5rem;
}
.thanks-hours h2 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.thanks-disclaimer {
  font-size: 0.8rem;
  color: var(--ink-muted);
}
.off-hours-tip {
  font-size: 0.85rem;
  color: #a65;
  background: rgba(213, 223, 228, 0.35);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-top: 0.75rem;
}
.error-practices-label {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: 1.5rem 0 0.75rem;
}
.error-practices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.error-practices a {
  font-size: 0.8rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(213, 223, 228, 0.8);
  border-radius: var(--radius-full);
  color: var(--charcoal);
}

/* Trust bar */
.trust-bar {
  background: rgba(213, 223, 228, 0.25);
  border-top: 1px solid rgba(213, 223, 228, 0.5);
  padding: 1.5rem 0;
}
.trust-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .trust-inner { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.8rem;
}
.trust-item i {
  color: var(--charcoal);
  font-size: 1.25rem;
  margin-top: 0.1rem;
}
.trust-item strong { display: block; color: var(--ink); margin-bottom: 0.15rem; }
.trust-item span { color: var(--ink-muted); }

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: var(--moon);
  border-radius: 1.5rem 1.5rem 0 0;
  margin: 2rem 1rem 0;
  padding: 3rem 0 0;
}
@media (min-width: 768px) {
  .site-footer { margin: 3rem 1.5rem 0; }
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
}
.footer-keep {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 300;
  color: var(--moon);
  margin-bottom: 1rem;
}
.footer-lead {
  font-size: 0.875rem;
  color: rgba(247, 249, 251, 0.6);
  line-height: 1.7;
  max-width: 20rem;
  margin: 0 0 1.5rem;
}
.footer-firm,
.footer-license,
.footer-phone,
.footer-addr {
  font-size: 0.85rem;
  color: rgba(247, 249, 251, 0.6);
  margin: 0.35rem 0;
}
.footer-phone a { color: rgba(247, 249, 251, 0.85); }
.footer-disclaimer-inline {
  font-size: 0.75rem;
  color: rgba(247, 249, 251, 0.4);
  margin-top: 1rem;
  line-height: 1.5;
}
.footer-col-title {
  font-size: 0.875rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: rgba(247, 249, 251, 0.7);
  margin-bottom: 1.15rem;
}
.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-nav-links a {
  font-size: 0.875rem;
  color: rgba(247, 249, 251, 0.5);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-nav-links a:hover { color: var(--moon); }
.footer-practices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.footer-practices a {
  font-size: 0.75rem;
  color: rgba(247, 249, 251, 0.45);
  border: 1px solid rgba(247, 249, 251, 0.15);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}
.footer-practices a:hover { color: var(--moon); }
.footer-contact-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(247, 249, 251, 0.6);
  margin: 0 0 0.75rem;
}
.footer-contact-line a,
.footer-contact-line button {
  color: rgba(247, 249, 251, 0.75);
}
.footer-addr-block { margin-top: 1.5rem; }
.footer-addr-block p {
  font-size: 0.875rem;
  color: rgba(247, 249, 251, 0.5);
  line-height: 1.6;
  margin: 0;
}
.footer-bottom {
  border-top: 1px solid rgba(247, 249, 251, 0.1);
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-copy,
.footer-beian,
.footer-tech {
  font-size: 0.75rem;
  color: rgba(247, 249, 251, 0.4);
  margin: 0;
}
.footer-tech a {
  color: rgba(247, 249, 251, 0.45);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-tech a:hover { color: rgba(247, 249, 251, 0.7); }

/* PC convert / mobile bar */
.pc-convert {
  display: none;
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  background: var(--moon);
  border: 1px solid rgba(213, 223, 228, 0.8);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px rgba(61, 82, 82, 0.12);
  padding: 1rem 1.15rem;
  max-width: 20rem;
}
@media (min-width: 768px) {
  .pc-convert { display: block; }
}
.pc-convert-text strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}
.pc-convert-text span {
  font-size: 0.75rem;
  color: var(--ink-muted);
}
.pc-convert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.pc-convert-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--charcoal);
  font-weight: 500;
}

.mobile-bar {
  display: flex;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--charcoal);
  min-height: 4rem;
  padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom));
}
@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;
  color: rgba(247, 249, 251, 0.5);
  font-size: 0.65rem;
  padding: 0.35rem;
}
.mobile-bar-item i { font-size: 1.15rem; }
.mobile-bar-item.mobile-cta,
.mobile-bar-item:hover {
  color: var(--moon);
}

/* Wechat modal */
.wechat-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26, 26, 26, 0.45);
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.wechat-modal.is-open { display: flex; }
.wechat-modal-box {
  position: relative;
  width: 100%;
  max-width: 22rem;
  background: var(--moon);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
}
.wechat-modal-close {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  color: var(--ink-muted);
}
.wechat-modal-icon {
  font-size: 2rem;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.wechat-modal-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}
.wechat-modal-desc {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
}
.wechat-qr {
  width: 180px; height: 180px;
  margin: 0 auto 1rem;
  border-radius: var(--radius);
  object-fit: contain;
  border: 1px solid var(--slateblue);
}
.wechat-id-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
}
.wechat-id-label { color: var(--ink-muted); }
.wechat-id-value { color: var(--ink); }
.wechat-id-row button[data-copy-wechat] {
  padding: 0.35rem 0.75rem;
  background: var(--charcoal);
  color: var(--moon);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
}
.wechat-id-hint {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin: 0 0 1rem;
}
.wechat-id-hint strong { color: #a94442; }
.wechat-modal-dismiss {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid rgba(61, 82, 82, 0.25);
  border-radius: var(--radius-full);
  color: var(--charcoal);
  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; }
}

/* Prose */
.prose {
  font-size: 1.02rem;
  color: #1a1a1a;
  line-height: 1.85;
}
.prose > *:first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 {
  color: var(--ink);
  margin: 1.75rem 0 0.85rem;
}
.prose h2 { font-size: 1.2rem; }
.prose h3 { font-size: 1.05rem; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.35rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img {
  border-radius: var(--radius);
  margin: 1rem 0;
}
.prose blockquote {
  margin: 1rem 0;
  padding: 0.85rem 1.15rem;
  border-left: 3px solid var(--charcoal);
  background: rgba(213, 223, 228, 0.2);
  color: var(--ink-light);
}
