/* ===== 基础重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', sans-serif;
  color: #3D3229;
  background-color: #F9F7F4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Noto Serif SC', serif; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ===== 颜色变量 ===== */
:root {
  --primary: #3D3229;
  --primary-light: #5A4F45;
  --primary-dark: #2E2620;
  --primary-50: #F5F3F0;
  --primary-100: #E8E4DF;
  --primary-200: #D1C9C0;
  --gold: #D4AF37;
  --gold-light: #E8C95A;
  --gold-dark: #B8960C;
  --gold-50: #FBF6E0;
  --gold-100: #F6EDB8;
  --warm: #F9F7F4;
  --warm-white: #FDFCFA;
  --warm-light: #F5F3F0;
  --warm-dark: #EDEAE5;
}

/* ===== 工具类（与 Tailwind 映射） ===== */
.min-h-screen { min-height: 100vh; }
.bg-warm-white { background-color: var(--warm); }
.bg-warm-light { background-color: var(--warm-light); }
.bg-primary-dark { background-color: var(--primary-dark); }
.bg-white { background-color: #fff; }
.bg-gold { background-color: var(--gold); }
.bg-gold-10 { background-color: rgba(212, 175, 55, 0.1); }
.bg-gold-20 { background-color: rgba(212, 175, 55, 0.2); }
.bg-primary-5 { background-color: rgba(61, 50, 41, 0.05); }
.bg-primary-10 { background-color: rgba(61, 50, 41, 0.1); }

.text-primary { color: var(--primary); }
.text-primary-70 { color: rgba(61, 50, 41, 0.7); }
.text-primary-60 { color: rgba(61, 50, 41, 0.6); }
.text-primary-50 { color: rgba(61, 50, 41, 0.5); }
.text-primary-40 { color: rgba(61, 50, 41, 0.4); }
.text-primary-30 { color: rgba(61, 50, 41, 0.3); }
.text-white { color: #fff; }
.text-white-90 { color: rgba(255, 255, 255, 0.9); }
.text-white-70 { color: rgba(255, 255, 255, 0.7); }
.text-white-60 { color: rgba(255, 255, 255, 0.6); }
.text-white-50 { color: rgba(255, 255, 255, 0.5); }
.text-white-40 { color: rgba(255, 255, 255, 0.4); }
.text-white-10 { color: rgba(255, 255, 255, 0.1); }
.text-gold { color: var(--gold); }

.font-serif { font-family: 'Noto Serif SC', serif; }
.font-sans { font-family: 'Noto Sans SC', sans-serif; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* ===== 布局 ===== */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-10 > * + * { margin-top: 2.5rem; }

/* ===== 尺寸 ===== */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-1 { width: 0.25rem; }
.w-2 { width: 0.5rem; }
.w-5 { width: 1.25rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.w-32 { width: 8rem; }
.w-40 { width: 10rem; }
.w-48 { width: 12rem; }
.w-64 { width: 16rem; }
.w-80 { width: 20rem; }

.h-full { height: 100%; }
.h-auto { height: auto; }
.h-1 { height: 0.25rem; }
.h-2 { height: 0.5rem; }
.h-5 { height: 1.25rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.h-32 { height: 8rem; }
.h-40 { height: 10rem; }
.h-48 { height: 12rem; }
.h-52 { height: 13rem; }
.h-64 { height: 16rem; }

.min-h-\[420px\] { min-height: 420px; }
.min-h-\[600px\] { min-height: 600px; }

.aspect-\[3\/4\] { aspect-ratio: 3/4; }
.aspect-\[4\/3\] { aspect-ratio: 4/3; }
.aspect-square { aspect-ratio: 1/1; }
.max-h-\[28rem\] { max-height: 28rem; }
.items-stretch { align-items: stretch; }

.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-none { max-width: none; }

.mx-auto { margin-left: auto; margin-right: auto; }

/* ===== 间距 ===== */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-16 { padding-top: 4rem; }
.pt-24 { padding-top: 6rem; }
.pt-28 { padding-top: 7rem; }

.pb-16 { padding-bottom: 4rem; }
.pb-20 { padding-bottom: 5rem; }

.pl-0 { padding-left: 0; }
.pr-0 { padding-right: 0; }

.mt-0 { margin-top: 0; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }

.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }

/* ===== 边框 ===== */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }

.border-primary-10 { border-color: rgba(61, 50, 41, 0.1); }
.border-primary-20 { border-color: rgba(61, 50, 41, 0.2); }
.border-primary-5 { border-color: rgba(61, 50, 41, 0.05); }
.border-gold { border-color: var(--gold); }
.border-gold-30 { border-color: rgba(212, 175, 55, 0.3); }
.border-gold-40 { border-color: rgba(212, 175, 55, 0.4); }
.border-white-10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white-30 { border-color: rgba(255, 255, 255, 0.3); }

.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* ===== 定位 ===== */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-4 { top: 1rem; }
.bottom-0 { bottom: 0; }
.bottom-3 { bottom: 0.75rem; }
.bottom-4 { bottom: 1rem; }
.left-0 { left: 0; }
.left-3 { left: 0.75rem; }
.left-4 { left: 1rem; }
.right-0 { right: 0; }
.right-3 { right: 0.75rem; }
.right-4 { right: 1rem; }

.-z-10 { z-index: -10; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ===== 溢出 ===== */
.overflow-hidden { overflow: hidden; }

/* ===== 文字截断 ===== */
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* ===== 其他 ===== */
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-blur-lg { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }

.object-cover { object-fit: cover; }
.object-top { object-fit: cover; object-position: top; }

.cursor-default { cursor: default; }
.cursor-pointer { cursor: pointer; }

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 500ms; }

.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

.hover\:text-gold:hover { color: var(--gold); }
.hover\:bg-gold-light:hover { background-color: var(--gold-light); }
.hover\:bg-gold-20:hover { background-color: rgba(212, 175, 55, 0.2); }
.hover\:bg-primary-dark:hover { background-color: var(--primary-dark); }
.hover\:border-gold-30:hover { border-color: rgba(212, 175, 55, 0.3); }
.hover\:border-gold-40:hover { border-color: rgba(212, 175, 55, 0.4); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover\:-translate-y-0\.5:hover { transform: translateY(-0.125rem); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:gap-2:hover { gap: 0.5rem; }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:text-gold { color: var(--gold); }
.group:hover .group-hover\:bg-gold-20 { background-color: rgba(212, 175, 55, 0.2); }
.group:hover .group-hover\:gap-2 { gap: 0.5rem; }

.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.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; }

/* ===== 响应式断点 ===== */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:w-auto { width: auto; }
  .sm\:w-40 { width: 10rem; }
  .sm\:h-auto { height: auto; }
  .sm\:aspect-square { aspect-ratio: 1/1; }
  .sm\:gap-5 { gap: 1.25rem; }
  .sm\:block { display: block; }
  .sm\:hidden { display: none; }
  .sm\:pl-0 { padding-left: 0; }
  .sm\:pr-4 { padding-right: 1rem; }
  .sm\:flex { display: flex; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:flex-row { flex-direction: row; }
  .md\:items-end { align-items: flex-end; }
  .md\:justify-between { justify-content: space-between; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:h-20 { height: 5rem; }
  .md\:h-48 { height: 12rem; }
  .md\:h-80 { height: 20rem; }
  .md\:h-auto { height: auto; }
  .md\:w-48 { width: 12rem; }
  .md\:w-64 { width: 16rem; }
  .md\:pt-20 { padding-top: 5rem; }
  .md\:pt-32 { padding-top: 8rem; }
  .md\:pb-20 { padding-bottom: 5rem; }
  .md\:py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .md\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .md\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .md\:p-8 { padding: 2rem; }
  .md\:p-10 { padding: 2.5rem; }
  .md\:p-5 { padding: 1.25rem; }
  .md\:py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .md\:pr-5 { padding-right: 1.25rem; }
  .md\:gap-5 { gap: 1.25rem; }
  .md\:gap-6 { gap: 1.5rem; }
  .md\:gap-8 { gap: 2rem; }
  .md\:gap-16 { gap: 4rem; }
  .md\:mb-14 { margin-bottom: 3.5rem; }
  .md\:mb-4 { margin-bottom: 1rem; }
  .md\:text-sm { font-size: 0.875rem; }
  .md\:text-base { font-size: 1rem; }
  .md\:text-lg { font-size: 1.125rem; }
  .md\:text-xl { font-size: 1.25rem; }
  .md\:text-2xl { font-size: 1.5rem; }
  .md\:text-3xl { font-size: 1.875rem; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-left { text-align: left; }
  .md\:min-h-\[700px\] { min-height: 700px; }
  .md\:aspect-auto { aspect-ratio: auto; }
  .md\:pl-0 { padding-left: 0; }
  .md\:line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

@media (min-width: 1024px) {
  .lg\:flex-row { flex-direction: row; }
  .lg\:items-center { align-items: center; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:w-auto { width: auto; }
  .lg\:w-80 { width: 20rem; }
  .lg\:max-w-md { max-width: 28rem; }
  .lg\:max-w-xl { max-width: 36rem; }
  .lg\:gap-8 { gap: 2rem; }
  .lg\:gap-12 { gap: 3rem; }
  .lg\:gap-16 { gap: 4rem; }
  .lg\:px-12 { padding-left: 3rem; padding-right: 3rem; }
  .lg\:text-5xl { font-size: 3rem; }
  .lg\:text-6xl { font-size: 3.75rem; }
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:max-h-none { max-height: none; }
  .lg\:max-w-none { max-width: none; }
}

/* ===== 动画 ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fadeIn 0.6s ease-out forwards; }
.animate-slide-up { animation: slideUp 0.6s ease-out forwards; }

/* ===== 导航栏特殊 ===== */
.nav-solid {
  background-color: rgba(249, 247, 244, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px 0 rgba(46, 38, 32, 0.12);
}

.nav-transparent { background-color: transparent; }

/* 首页导航：透明/实底两种状态下链接与 logo 对比度 */
#navbar.nav-transparent .nav-desktop-link {
  color: rgba(255, 255, 255, 0.92);
}
#navbar.nav-transparent .nav-desktop-link:hover {
  color: var(--gold);
}
#navbar.nav-transparent .nav-desktop-link.is-active {
  color: var(--gold);
}
#navbar.nav-transparent .nav-logo-text {
  color: #fff;
}
#navbar.nav-transparent .nav-menu-btn {
  color: #fff;
}

#navbar.nav-solid .nav-desktop-link {
  color: var(--primary);
}
#navbar.nav-solid .nav-desktop-link:hover {
  color: var(--gold-dark);
}
#navbar.nav-solid .nav-desktop-link.is-active {
  color: var(--gold-dark);
}
#navbar.nav-solid .nav-logo-text {
  color: var(--primary);
}
#navbar.nav-solid .nav-menu-btn {
  color: var(--primary);
}

/* ===== 渐变 ===== */
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); }
.from-primary-dark-80 { --tw-gradient-from: rgba(46, 38, 32, 0.8) var(--tw-gradient-from-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-primary-dark-60 { --tw-gradient-from: rgba(46, 38, 32, 0.6) var(--tw-gradient-from-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.via-primary-dark-40 { --tw-gradient-to: rgba(46, 38, 32, 0.4) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), rgba(46, 38, 32, 0.4) var(--tw-gradient-via-position), var(--tw-gradient-to); }
.via-primary-dark-20 { --tw-gradient-to: rgba(46, 38, 32, 0.2) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), rgba(46, 38, 32, 0.2) var(--tw-gradient-via-position), var(--tw-gradient-to); }
.via-primary-dark-30 { --tw-gradient-to: rgba(46, 38, 32, 0.3) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), rgba(46, 38, 32, 0.3) var(--tw-gradient-via-position), var(--tw-gradient-to); }
.to-primary-dark-80 { --tw-gradient-to: rgba(46, 38, 32, 0.8) var(--tw-gradient-to-position); }
.to-transparent { --tw-gradient-to: transparent var(--tw-gradient-to-position); }

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background-color: var(--primary-dark);
  color: #fff;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ===== 移动端菜单 ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background-color: rgba(46, 38, 32, 0.95);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Noto Serif SC', serif;
  font-weight: 500;
}
.mobile-menu a:hover { color: var(--gold); }

/* ===== 底部移动端导航 ===== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: var(--warm);
  border-top: 1px solid var(--primary-200);
  display: flex;
  align-items: center;
  justify-content: around;
  height: 4rem;
}
@media (min-width: 768px) {
  .mobile-bottom-nav { display: none; }
}

/* ===== 通用按钮/链接样式 ===== */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--gold);
  color: var(--primary-dark);
  font-weight: 600;
  border-radius: 9999px;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}
.btn-gold:hover { background-color: var(--gold-light); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 9999px;
  white-space: nowrap;
  transition: all 0.3s ease;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-outline-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--primary-200);
  color: var(--primary);
  background-color: #fff;
  font-weight: 500;
  border-radius: 9999px;
  white-space: nowrap;
  transition: all 0.3s ease;
}
.btn-outline-primary:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  background-color: var(--gold-50);
}

/* ===== 页面通用间距 ===== */
.page-px { padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 768px) { .page-px { padding-left: 2rem; padding-right: 2rem; } }
@media (min-width: 1024px) { .page-px { padding-left: 3rem; padding-right: 3rem; } }

.page-header {
  padding-top: 7rem;
  padding-bottom: 5rem;
}
@media (min-width: 768px) {
  .page-header {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

/* ===== 模板扩展（criminal-defense-05） ===== */
.bg-primary { background-color: var(--primary); }
.bg-white-90 { background-color: rgba(255, 255, 255, 0.9); }
.text-primary-dark { color: var(--primary-dark); }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.hover\:bg-primary-dark:hover { background-color: var(--primary-dark); }
.hover\:text-primary:hover { color: var(--primary); }
.hover\:text-white-60:hover { color: rgba(255, 255, 255, 0.6); }

.nav-link-active::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--gold);
  border-radius: 9999px;
}

/* 主内容区居中（非全屏铺满） */
.site-container {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

/* 详情页阅读宽度 */
.site-detail-wrap {
  width: 100%;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.js-wechat-copy { cursor: pointer; }

.lawyer-intro-content p + p { margin-top: 1rem; }

/* 首页简介预览：高度与形象照对齐 */
.home-intro-preview {
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .home-intro-preview {
    -webkit-line-clamp: 10;
    max-height: 28rem;
  }
}

/* ===== 文章详情 Markdown 排版 ===== */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.lawyer-intro-content h1,
.lawyer-intro-content h2,
.lawyer-intro-content h3,
.lawyer-intro-content h4 {
  font-family: 'Noto Serif SC', serif;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.35;
}
.article-content h1,
.lawyer-intro-content h1 { font-size: 1.375rem; margin-top: 1.75rem; margin-bottom: 0.875rem; }
.article-content h2,
.lawyer-intro-content h2 { font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.article-content h3,
.lawyer-intro-content h3 { font-size: 1.125rem; margin-top: 1.25rem; margin-bottom: 0.625rem; }
.article-content h4,
.lawyer-intro-content h4 { font-size: 1rem; font-weight: 600; margin-top: 1rem; margin-bottom: 0.5rem; }

@media (min-width: 768px) {
  .article-content h1,
  .lawyer-intro-content h1 { font-size: 1.625rem; }
  .article-content h2,
  .lawyer-intro-content h2 { font-size: 1.375rem; }
  .article-content h3,
  .lawyer-intro-content h3 { font-size: 1.25rem; }
}

.article-content p,
.lawyer-intro-content p {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.75;
}
.article-content > *:first-child,
.lawyer-intro-content > *:first-child { margin-top: 0; }
.article-content > *:last-child,
.lawyer-intro-content > *:last-child { margin-bottom: 0; }

.article-content ul,
.article-content ol,
.lawyer-intro-content ul,
.lawyer-intro-content ol {
  margin: 0.75rem 0 1rem 1.25rem;
  padding-left: 0.25rem;
}
.article-content ul,
.lawyer-intro-content ul { list-style-type: disc; }
.article-content ol,
.lawyer-intro-content ol { list-style-type: decimal; }
.article-content li,
.lawyer-intro-content li { margin-bottom: 0.35rem; line-height: 1.75; }

.article-content strong,
.lawyer-intro-content strong { color: var(--primary); font-weight: 600; }
.article-content a,
.lawyer-intro-content a { color: var(--primary-light); text-decoration: none; }
.article-content a:hover,
.lawyer-intro-content a:hover { color: var(--gold-dark); text-decoration: underline; }

.article-content blockquote,
.lawyer-intro-content blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--gold);
  background: var(--gold-50);
  border-radius: 0 0.375rem 0.375rem 0;
  font-size: 0.875rem;
}
.article-content hr,
.lawyer-intro-content hr {
  margin: 1.5rem 0;
  border: none;
  border-top: 1px solid var(--primary-100);
}
.article-content img,
.lawyer-intro-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1rem 0;
}
.article-content pre,
.lawyer-intro-content pre {
  margin: 1rem 0;
  padding: 0.875rem 1rem;
  background: var(--warm-light);
  border-radius: 0.375rem;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.6;
}
.article-content code,
.lawyer-intro-content code {
  font-size: 0.875em;
  background: var(--gold-50);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  color: var(--primary-dark);
}
.article-content pre code,
.lawyer-intro-content pre code { background: none; padding: 0; }
.article-content table,
.lawyer-intro-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.875rem;
  overflow-x: auto;
  display: block;
}
@media (min-width: 768px) {
  .article-content table,
  .lawyer-intro-content table { display: table; }
}
.article-content th,
.article-content td,
.lawyer-intro-content th,
.lawyer-intro-content td {
  border: 1px solid var(--primary-100);
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.article-content th,
.lawyer-intro-content th {
  background: var(--warm-light);
  color: var(--primary);
  font-weight: 600;
}

/* ===== 列表页分页 ===== */
.cd05-pagination-section {
  padding-top: 8px;
  margin-top: 2.5rem;
}
.cd05-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.cd05-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(61, 50, 41, 0.7);
  background: #fff;
  border: 1px solid var(--primary-100);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.cd05-page-btn:hover:not(.disabled):not(.active) {
  background: var(--gold-50);
  color: var(--primary);
  border-color: var(--gold);
}
.cd05-page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.cd05-page-btn.disabled {
  color: rgba(61, 50, 41, 0.25);
  cursor: not-allowed;
  pointer-events: none;
}
@media (max-width: 479px) {
  .cd05-page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }
}

/* ===== 详情页分享按钮 ===== */
.cd05-share-buttons { gap: 10px; }
.cd05-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(61, 50, 41, 0.7);
  background: var(--warm-light);
  border: 1px solid var(--primary-10);
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.cd05-share-btn:hover {
  background: var(--gold-50);
  border-color: var(--gold);
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(61, 50, 41, 0.08);
}
.cd05-share-btn i { font-size: 1rem; }
.cd05-share-btn:has(.ri-wechat-line) i { color: #07C160; }
.cd05-share-btn:has(.ri-weibo-line) i { color: #E6162D; }
.cd05-share-btn:has(.ri-share-circle-line) i { color: var(--gold-dark); }
.cd05-share-btn:has(.ri-link) i { color: var(--primary-light); }
@media (max-width: 479px) {
  .cd05-share-buttons { gap: 8px; }
  .cd05-share-btn { padding: 7px 12px; font-size: 0.75rem; }
}

.footer-powered {
  margin-top: 0;
  padding: 1rem 1rem 1.25rem;
  border-top: none !important;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  background-color: var(--primary-dark);
}
.footer-powered-link {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}
.footer-powered-link:hover { color: var(--gold-light); }

.watermark {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(0, 0, 0, 0.06);
  transform: rotate(-25deg);
  user-select: none;
}

@media (max-width: 767px) {
  body.pb-mobile-nav { padding-bottom: 4rem; }
}