/* 梅紫珍珠 — Marriage-03 移植 */

:root {
  --deep-purple: #4B286D;
  --dark-purple: #3A1A55;
  --light-purple: #6B3F94;
  --silver: #9CA3AF;
  --pearl: #FAF8F5;
  --pearl-dark: #F0EDE8;
  --text-dark: #1F1F1F;
  --text-gray: #5A5A5A;
  --white: #ffffff;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --nav-h: 4rem;
  --font-sans: "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-serif: "Noto Serif SC", Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--pearl);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 84px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.3;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .wrap {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  :root { --nav-h: 5rem; }
}

@media (min-width: 1024px) {
  .wrap {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.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;
}

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

.text-accent { color: var(--deep-purple); }
.text-muted { color: var(--text-gray); font-size: 0.875rem; }

/* ---- Buttons ---- */
.btn-primary,
.btn-outline,
.btn-white,
.btn-ghost-white,
.btn-white-pill,
.btn-ghost-white-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--deep-purple);
  color: var(--white);
  border-color: var(--deep-purple);
}

.btn-primary:hover {
  background: var(--dark-purple);
  border-color: var(--dark-purple);
}

.btn-outline {
  background: transparent;
  color: var(--deep-purple);
  border-color: var(--deep-purple);
}

.btn-outline:hover {
  background: var(--deep-purple);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--deep-purple);
}

.btn-white:hover {
  background: var(--pearl);
}

.btn-ghost-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-white-pill,
.btn-ghost-white-pill {
  border-radius: 999px;
  padding: 1rem 2rem;
}

.btn-white-pill {
  background: var(--white);
  color: var(--deep-purple);
}

.btn-ghost-white-pill {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  margin-top: 0.5rem;
}

.linkish {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--deep-purple);
}

/* ---- Nav ---- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}

.nav-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 1.125rem;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-text {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  line-height: 1.2;
  transition: color 0.3s;
}

.nav-logo-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .nav-mobile-btn { display: none !important; }
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

.nav-link-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
}

.nav-link-cta {
  background: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

.nav-phone {
  display: none;
  align-items: center;
  gap: 0.35rem;
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .nav-phone { display: inline-flex; }
}

.nav-mobile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  color: var(--white);
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 1.25rem;
}

.nav-mobile-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* scrolled / inner */
.nav-scrolled,
.nav-inner.nav-scrolled,
.site-nav.nav-inner {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

.nav-scrolled .nav-logo-text,
.nav-inner .nav-logo-text {
  color: var(--deep-purple) !important;
}

.nav-scrolled .nav-logo-sub,
.nav-inner .nav-logo-sub {
  color: var(--text-gray) !important;
}

.nav-scrolled .nav-link,
.nav-inner .nav-link {
  color: var(--text-dark) !important;
}

.nav-scrolled .nav-link:hover,
.nav-inner .nav-link:hover {
  color: var(--deep-purple) !important;
  background: var(--pearl-dark) !important;
}

.nav-scrolled .nav-link-active,
.nav-inner .nav-link-active {
  color: var(--deep-purple) !important;
  background: rgba(75, 40, 109, 0.1) !important;
}

.nav-scrolled .nav-link-cta,
.nav-inner .nav-link-cta {
  background: var(--deep-purple) !important;
  color: var(--white) !important;
}

.nav-scrolled .nav-link-cta:hover,
.nav-inner .nav-link-cta:hover {
  background: var(--dark-purple) !important;
  color: var(--white) !important;
}

.nav-scrolled .nav-phone,
.nav-inner .nav-phone {
  color: var(--deep-purple) !important;
}

.nav-scrolled .nav-mobile-btn,
.nav-inner .nav-mobile-btn {
  color: var(--deep-purple) !important;
}

.nav-scrolled .nav-avatar,
.nav-inner .nav-avatar {
  border-color: var(--deep-purple);
}

.nav-scrolled .nav-avatar-fallback,
.nav-inner .nav-avatar-fallback {
  background: rgba(75, 40, 109, 0.1);
  color: var(--deep-purple);
}

/* Mobile menu */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.4);
  display: none;
}

.mobile-menu-overlay.active {
  display: block;
}

.mobile-menu-panel {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow-md);
  z-index: 41;
  display: none;
}

.mobile-menu-panel.active {
  display: block;
}

.mobile-menu-inner {
  padding: 1rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.375rem;
  color: var(--text-dark);
}

.mobile-nav-link:hover,
.mobile-nav-link.nav-link-active {
  background: rgba(75, 40, 109, 0.1);
  color: var(--deep-purple);
}

.mobile-menu-phone {
  margin-top: 0.75rem;
  width: 100%;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

@media (min-width: 768px) {
  .hero { min-height: 700px; }
}

@media (min-width: 1024px) {
  .hero { min-height: 750px; }
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img,
.hero-fallback-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fallback-bg {
  background: linear-gradient(135deg, var(--dark-purple) 0%, var(--deep-purple) 50%, var(--light-purple) 100%);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(58, 26, 85, 0.92) 0%, rgba(58, 26, 85, 0.75) 50%, rgba(58, 26, 85, 0.5) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 1024px) {
  .hero-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 4rem;
  }
}

.hero-main {
  flex: 1;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-main { text-align: left; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
}

.hero-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--white);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .hero-title { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 3rem; }
}

.hero-subtitle {
  color: var(--silver);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  max-width: 36rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

@media (min-width: 1024px) {
  .hero-lead { margin-left: 0; margin-right: 0; font-size: 1.125rem; }
}

.hero-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-width: 32rem;
  margin: 0 auto 2rem;
}

@media (min-width: 640px) {
  .hero-info-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .hero-info-grid { margin-left: 0; margin-right: 0; }
}

.hero-info-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}

.hero-info-card .lbl {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  white-space: nowrap;
}

.hero-info-card .val {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (min-width: 1024px) {
  .hero-ctas { justify-content: flex-start; }
}

.hero-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.hero-qr-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  border: 0;
  cursor: pointer;
}

.hero-qr-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.hero-qr-btn {
  width: 132px;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep-purple);
  font-size: 2.5rem;
}

.hero-qr-label {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
}

.hero-qr-id {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  margin: 0;
}

.hero-qr-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* ---- Intro ---- */
.intro-section {
  background: var(--pearl);
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .intro-section { padding: 6rem 0; }
}

.intro-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .intro-row {
    flex-direction: row;
    gap: 4rem;
  }
}

.intro-photo {
  width: 100%;
  max-width: 400px;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .intro-photo { max-width: 500px; }
}

.intro-photo-frame {
  background: var(--white);
  padding: 0.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.intro-photo-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-lg);
}

.intro-photo-fallback {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--deep-purple), var(--dark-purple));
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 2rem;
  border-radius: var(--radius-lg);
}

.intro-copy {
  flex: 1;
  text-align: center;
}

@media (min-width: 1024px) {
  .intro-copy { text-align: left; }
}

.intro-name {
  font-size: 1.75rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .intro-name { font-size: 2rem; }
}

.intro-title {
  font-family: var(--font-serif);
  color: var(--deep-purple);
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.intro-lead {
  color: var(--text-gray);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.intro-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .intro-meta { grid-template-columns: repeat(4, 1fr); }
}

.intro-meta-item strong {
  display: block;
  font-family: var(--font-serif);
  color: var(--deep-purple);
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.intro-meta-item span {
  font-size: 0.75rem;
  color: var(--text-gray);
}

/* ---- Sections ---- */
.section-pad {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section-pad { padding: 6rem 0; }
}

.bg-white { background: var(--white); }
.bg-pearl-dark { background: var(--pearl-dark); }

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-head-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .section-head-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-title {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .section-title { font-size: 1.875rem; }
}

@media (min-width: 1024px) {
  .section-title { font-size: 2.25rem; }
}

.section-desc {
  color: var(--text-gray);
  font-size: 1rem;
  max-width: 36rem;
  margin: 0 auto;
}

.section-head-row .section-desc {
  margin: 0;
}

.section-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--deep-purple);
  font-weight: 500;
}

.link-more:hover {
  color: var(--dark-purple);
}

/* Service cards */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

.svc-list {
  max-width: none;
}

@media (min-width: 1024px) {
  .svc-list { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
  .svc-list { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  background: var(--pearl);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: box-shadow 0.3s, transform 0.3s;
  display: block;
}

.bg-white .service-card,
.svc-list .service-card {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.svc-ico {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(75, 40, 109, 0.1);
  border-radius: 0.5rem;
  color: var(--deep-purple);
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.service-card h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-gray);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

/* Text cards (news / cases — no images) */
.news-grid,
.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
  .case-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .news-grid { grid-template-columns: repeat(3, 1fr); }
  .case-list-grid { grid-template-columns: 1fr 1fr; }
  .news-list-grid { grid-template-columns: repeat(3, 1fr); }
}

.text-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s;
}

.text-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.text-card:hover h3 {
  color: var(--deep-purple);
}

.text-card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.text-card p {
  color: var(--text-gray);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  background: rgba(75, 40, 109, 0.1);
  color: var(--deep-purple);
  border-radius: 0.25rem;
}

.tag-anon {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  background: var(--pearl-dark);
  color: var(--text-gray);
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
}

.card-date {
  font-size: 0.75rem;
  color: var(--silver);
}

.card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--deep-purple);
  font-weight: 500;
}

/* Banners */
.banners-section {
  padding: 2rem 0 4rem;
}

.banner-grid {
  display: grid;
  gap: 1.5rem;
}

.banner-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}

.banner-card img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.banner-card h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* CTA band */
.cta-band {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.cta-band-bg {
  position: absolute;
  inset: 0;
}

.cta-band-bg img,
.cta-band-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band-fallback {
  background: linear-gradient(135deg, var(--dark-purple), var(--deep-purple));
}

.cta-band-veil {
  position: absolute;
  inset: 0;
  background: rgba(58, 26, 85, 0.82);
}

.cta-band-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-band-inner h2 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .cta-band-inner h2 { font-size: 2rem; }
}

.cta-band-inner p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 32rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cta-band-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cta-band-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* ---- Page header ---- */
.page-header {
  position: relative;
  background: var(--dark-purple);
  padding-top: calc(var(--nav-h) + 2.5rem);
  padding-bottom: 2.5rem;
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  inset: 0;
}

.page-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-header-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--dark-purple) 0%, var(--deep-purple) 100%);
}

.page-header-veil {
  position: absolute;
  inset: 0;
  background: rgba(58, 26, 85, 0.75);
}

.page-header-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.page-header h1 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .page-header h1 { font-size: 1.875rem; }
}

@media (min-width: 1024px) {
  .page-header h1 { font-size: 2.25rem; }
}

.page-header-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin: 0;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
}

.crumbs a {
  color: rgba(255, 255, 255, 0.8);
}

.crumbs a:hover {
  color: var(--white);
}

.crumb-sep {
  opacity: 0.5;
}

.crumb-current {
  color: rgba(255, 255, 255, 0.95);
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

/* ---- About ---- */
.about-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  max-width: 56rem;
  margin: 0 auto;
}

.about-top {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .about-top { flex-direction: row; }
}

.about-side {
  background: var(--pearl-dark);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .about-side { width: 16rem; }
}

.about-avatar {
  width: 7rem;
  height: 7rem;
  border-radius: 999px;
  object-fit: cover;
  border: 4px solid rgba(75, 40, 109, 0.2);
  margin-bottom: 1rem;
}

.about-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--deep-purple);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.5rem;
}

.about-name {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.about-title {
  color: var(--deep-purple);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.about-side-meta {
  width: 100%;
}

.about-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
}

.about-meta-row span { color: var(--text-gray); }
.about-meta-row strong { font-size: 0.75rem; font-weight: 500; }

.about-main {
  flex: 1;
  padding: 2rem;
}

.about-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .about-info-grid { grid-template-columns: 1fr 1fr; }
}

.about-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.about-info-item i {
  color: var(--deep-purple);
  margin-top: 0.15rem;
}

.about-info-item .lbl {
  font-size: 0.75rem;
  color: var(--text-gray);
  margin: 0;
}

.about-info-item .val {
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
}

.about-section {
  padding: 0 2rem 2rem;
}

.about-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.about-section-title i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: rgba(75, 40, 109, 0.1);
  border-radius: 0.5rem;
  color: var(--deep-purple);
  font-size: 1rem;
}

.honor-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.honor-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--pearl);
  border-radius: 0.5rem;
}

.honor-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 0.375rem;
}

.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0 2rem 2rem;
}

/* ---- Contact ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.contact-card h2 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.contact-tiles {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-tile {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: inherit;
}

.contact-tile-ico {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(75, 40, 109, 0.1);
  border-radius: 0.5rem;
  color: var(--deep-purple);
  font-size: 1.125rem;
  flex-shrink: 0;
}

.contact-tile .lbl {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  margin: 0 0 0.15rem;
}

.contact-tile .val {
  font-size: 0.875rem;
  color: var(--text-gray);
  margin: 0;
}

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(75, 40, 109, 0.12);
}

/* ---- Detail ---- */
.detail-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .detail-shell {
    grid-template-columns: 1fr 20rem;
  }
}

.detail-panel {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-sm);
}

.article-lead {
  font-size: 1.0625rem;
  color: var(--text-gray);
  line-height: 1.7;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--pearl-dark);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.meta-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--pearl);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.meta-card img {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
}

.meta-card strong {
  display: block;
  font-size: 0.9375rem;
}

.meta-card span {
  font-size: 0.8125rem;
  color: var(--text-gray);
}

.meta-practice {
  font-size: 0.875rem;
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.meta-practice a {
  color: var(--deep-purple);
  font-weight: 600;
}

.alert-soft {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(75, 40, 109, 0.08);
  border-radius: var(--radius);
  color: var(--deep-purple);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.result-box {
  background: var(--pearl);
  border-left: 3px solid var(--deep-purple);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.result-box strong {
  display: block;
  color: var(--deep-purple);
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
}

.result-box p {
  margin: 0;
  color: var(--text-gray);
  font-size: 0.9375rem;
}

.faq-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--pearl-dark);
}

.faq-section h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.faq-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--pearl-dark);
}

.faq-item h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.faq-item p {
  color: var(--text-gray);
  font-size: 0.9375rem;
  margin: 0;
}

.detail-aside {
  position: relative;
}

@media (min-width: 1024px) {
  .form-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 1rem);
  }
}

.form-sidebar .pp-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--deep-purple);
}

.form-consult-page {
  max-width: 36rem;
  margin: 0 auto;
}

.form-consult-lead {
  text-align: center;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

.form-consult-lead a {
  color: var(--deep-purple);
  font-weight: 600;
}

.form-consult .pp-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(75, 40, 109, 0.15);
}

.privacy-wrap {
  max-width: 48rem;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

/* ---- Form ---- */
.pp-form h3 {
  font-size: 1.125rem;
  margin-bottom: 0.35rem;
  color: var(--text-dark);
}

.pp-form .form-sub {
  font-size: 0.8125rem;
  color: var(--text-gray);
  margin-bottom: 1.25rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text-dark);
}

.form-field input[type="text"],
.form-field input[type="tel"],
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-family: inherit;
  background: var(--pearl);
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--deep-purple);
}

.form-field textarea {
  min-height: 5rem;
  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-weight: 400;
  font-size: 0.8125rem;
}

.form-check a {
  color: var(--deep-purple);
  text-decoration: underline;
}

.form-btn {
  width: 100%;
  margin-top: 0.5rem;
}

.form-disclaimer {
  font-size: 0.75rem;
  color: var(--silver);
  margin-top: 0.75rem;
  margin-bottom: 0;
  line-height: 1.5;
}

.consult-error {
  color: #b91c1c;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

/* ---- Consult steps ---- */
.steps-section {
  padding: 4rem 0;
  background: var(--white);
}

.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;
}

.step-card {
  background: var(--pearl);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  height: 100%;
  border: 1px solid rgba(75, 40, 109, 0.08);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--deep-purple);
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.step-item h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.step-item p {
  font-size: 0.875rem;
  color: var(--text-gray);
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.steps-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ---- Related ---- */
.related-section {
  padding: 3rem 0 4rem;
  background: var(--pearl-dark);
}

.related-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.related-lawyer {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.related-lawyer img {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.related-lawyer-name {
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.related-lawyer p {
  font-size: 0.8125rem;
  color: var(--text-gray);
  margin: 0 0 0.25rem;
}

.related-block {
  margin-top: 1.5rem;
}

.related-block h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.related-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--white);
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  transition: background 0.2s;
}

.related-item:hover {
  background: var(--pearl);
  color: var(--deep-purple);
}

/* ---- Thanks / 404 ---- */
.thanks-page,
.error-page {
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
  text-align: center;
}

.thanks-inner,
.error-inner {
  max-width: 36rem;
  margin: 0 auto;
}

.thanks-icon,
.error-icon {
  font-size: 3rem;
  color: var(--deep-purple);
  margin-bottom: 1rem;
}

.error-icon {
  color: var(--light-purple);
}

.thanks-lead,
.error-lead {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

.thanks-actions,
.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.thanks-wechat {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.thanks-wechat img {
  margin: 0 auto 1rem;
  border-radius: 0.5rem;
}

.thanks-hours {
  margin-bottom: 1.5rem;
}

.thanks-hours h2 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.thanks-disclaimer {
  font-size: 0.8125rem;
  color: var(--silver);
}

.off-hours-tip {
  color: #b45309;
  font-size: 0.875rem;
  background: #fffbeb;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-top: 0.75rem;
}

.error-hint {
  font-size: 0.875rem;
  color: var(--text-gray);
  margin-bottom: 0.75rem;
}

.error-practices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.error-practices a {
  padding: 0.35rem 0.85rem;
  background: var(--white);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--deep-purple);
  border: 1px solid rgba(75, 40, 109, 0.15);
}

.error-practices a:hover {
  background: rgba(75, 40, 109, 0.08);
}

/* ---- Pager ---- */
.pager {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.pager .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.pager .pagination li a,
.pager .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.375rem;
  font-size: 0.875rem;
  border: 1px solid rgba(75, 40, 109, 0.15);
  background: var(--white);
  color: var(--text-dark);
}

.pager .pagination li a:hover {
  border-color: var(--deep-purple);
  color: var(--deep-purple);
}

.pager .pagination li.active span,
.pager .pagination .active > a {
  background: var(--deep-purple);
  border-color: var(--deep-purple);
  color: var(--white);
}

.pager .pagination li.disabled span {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---- Trust bar ---- */
.trust-bar {
  background: var(--pearl-dark);
  border-top: 1px solid rgba(75, 40, 109, 0.08);
  padding: 1.5rem 0;
}

.trust-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .trust-inner { grid-template-columns: repeat(4, 1fr); }
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.trust-item i {
  color: var(--deep-purple);
  font-size: 1.25rem;
  margin-top: 0.15rem;
}

.trust-item strong {
  display: block;
  font-size: 0.8125rem;
}

.trust-item span {
  font-size: 0.75rem;
  color: var(--text-gray);
}

.trust-item a {
  color: var(--deep-purple);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--dark-purple);
  color: var(--white);
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.125rem;
}

.footer-brand-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-nap p {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.footer-nap a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-nap a:hover {
  color: var(--white);
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-practices {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  line-height: 2;
}

.footer-practices a {
  display: inline;
  margin-right: 1rem;
  white-space: nowrap;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}

.footer-bottom-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

@media (min-width: 640px) {
  .footer-bottom-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-disclaimer,
.footer-beian {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 0.25rem;
  line-height: 1.5;
}

.footer-tech {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.footer-tech a {
  color: rgba(255, 255, 255, 0.45);
}

.footer-tech a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ---- PC convert / Mobile bar ---- */
.pc-convert {
  display: none;
}

@media (min-width: 768px) {
  .pc-convert {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 45;
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid rgba(75, 40, 109, 0.12);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
    padding: 0.75rem 1.5rem;
  }

  .mobile-bar {
    display: none !important;
  }

  body {
    padding-bottom: 72px;
  }
}

.pc-convert-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pc-convert-text strong {
  display: block;
  font-size: 0.9375rem;
}

.pc-convert-text span {
  font-size: 0.75rem;
  color: var(--text-gray);
}

.pc-convert-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pc-convert-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--deep-purple);
  font-weight: 600;
}

.mobile-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: var(--white);
  border-top: 1px solid #f3f4f6;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  justify-content: space-around;
  height: auto;
  min-height: 4rem;
}

.mobile-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  flex: 1;
  padding: 0.5rem 0.25rem;
  border: 0;
  background: transparent;
  color: var(--text-gray);
  font-size: 0.6875rem;
  cursor: pointer;
  font-family: inherit;
}

.mobile-bar-item i {
  font-size: 1.25rem;
  color: var(--silver);
}

.mobile-bar-item.mobile-cta,
.mobile-bar-item.mobile-cta i {
  color: var(--deep-purple);
  font-weight: 600;
}

/* ---- Wechat modal ---- */
.wechat-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.wechat-modal.is-open {
  display: flex;
}

.wechat-modal-box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem 1.5rem;
  max-width: 22rem;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.wechat-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  font-size: 1.25rem;
  color: var(--silver);
  cursor: pointer;
  padding: 0.25rem;
}

.wechat-modal-icon {
  font-size: 2.5rem;
  color: #07c160;
  margin-bottom: 0.5rem;
}

.wechat-modal-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.wechat-modal-desc {
  font-size: 0.8125rem;
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.wechat-qr {
  width: 180px;
  height: 180px;
  object-fit: cover;
  margin: 0 auto 1rem;
  border-radius: 0.5rem;
}

.wechat-modal-dismiss {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.65rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: var(--pearl);
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-gray);
}

.wechat-id-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.wechat-id-label {
  font-size: 0.8125rem;
  color: var(--text-gray);
}

.wechat-id-value {
  font-size: 0.9375rem;
  color: var(--text-dark);
}

[data-copy-wechat] {
  border: 1px solid var(--deep-purple);
  background: transparent;
  color: var(--deep-purple);
  border-radius: 0.375rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.wechat-id-hint {
  font-size: 0.75rem;
  color: var(--text-gray);
  margin: 0;
}

.wechat-id-hint strong {
  color: #b91c1c;
}

@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 {
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.8;
}

.prose h2,
.prose h3,
.prose h4 {
  color: var(--text-dark);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li {
  margin-bottom: 0.35rem;
}

.prose a {
  color: var(--deep-purple);
  text-decoration: underline;
}

.prose img {
  border-radius: var(--radius);
  margin: 1rem 0;
}

.prose blockquote {
  border-left: 3px solid var(--deep-purple);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--text-gray);
  background: var(--pearl);
  padding: 0.75rem 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.875rem;
}

.prose th,
.prose td {
  border: 1px solid var(--pearl-dark);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.prose th {
  background: var(--pearl);
  color: var(--text-dark);
}
