/* ==========================================================================
   非遗传承 · 设计系统
   中国传统色彩 × 现代质感 × 玻璃态 × 流畅动效
   ========================================================================== */

/* ---------- 设计令牌 ---------- */
:root {
  /* 主色调 - 中国传统色 */
  --cinnabar: #C8102E;        /* 朱砂红 */
  --cinnabar-light: #E63946;
  --cinnabar-dark: #9B1B30;
  --ink: #1A1612;              /* 墨色 */
  --ink-soft: #2D2620;
  --lapis: #1B3A5C;            /* 青金 */
  --lapis-light: #2C5F8A;
  --gold: #D4A574;             /* 赭金 */
  --gold-light: #E8C9A0;
  --jade: #2D6A4F;             /* 翠玉 */
  --indigo: #4A0E4E;           /* 靛紫 */

  /* 背景 */
  --bg-rice: #FAF7F2;          /* 宣纸白 */
  --bg-cream: #F5F0E8;
  --bg-warm: #EDE6D9;
  --bg-dark: #14110E;
  --bg-dark-soft: #1F1B16;
  --bg-dark-card: #2A2520;

  /* 文字 */
  --text-primary: #2D2620;
  --text-secondary: #6B5D4F;
  --text-tertiary: #9B8E80;
  --text-light: #FAF7F2;
  --text-light-soft: #C9BFB2;
  --text-light-muted: #8A7F72;

  /* 玻璃态 */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(200, 16, 46, 0.12);
  --glass-shadow: 0 8px 32px rgba(26, 22, 18, 0.08);
  --glass-shadow-hover: 0 16px 48px rgba(26, 22, 18, 0.15);
  --glass-dark-bg: rgba(42, 37, 32, 0.65);
  --glass-dark-border: rgba(212, 165, 116, 0.15);

  /* 圆角 */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(26, 22, 18, 0.06);
  --shadow-md: 0 4px 20px rgba(26, 22, 18, 0.1);
  --shadow-lg: 0 12px 40px rgba(26, 22, 18, 0.15);
  --shadow-glow: 0 0 30px rgba(200, 16, 46, 0.25);

  /* 动效曲线 */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* 布局 */
  --nav-h: 72px;
  --max-w: 1280px;
  --sidebar-w: 260px;

  /* 渐变 */
  --grad-vermillion: linear-gradient(135deg, #C8102E 0%, #E63946 50%, #C8102E 100%);
  --grad-gold: linear-gradient(135deg, #D4A574 0%, #E8C9A0 100%);
  --grad-ink: linear-gradient(180deg, #1A1612 0%, #2D2620 100%);
  --grad-hero: linear-gradient(135deg, #1A1612 0%, #2D1810 40%, #3B0A12 100%);
  --grad-card: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(245,240,232,0.8) 100%);

  /* 新拟物化 */
  --neo-bg: #F0EBE3;
  --neo-shadow-light: #FFFFFF;
  --neo-shadow-dark: #D5CFC4;
  --neo-card-bg: linear-gradient(145deg, #F5F0E8, #EBE4D9);
  --neo-raised-shadow: 8px 8px 16px #D5CFC4, -8px -8px 16px #FFFFFF;
  --neo-raised-shadow-sm: 4px 4px 8px #D5CFC4, -4px -4px 8px #FFFFFF;
  --neo-inset-shadow: inset 6px 6px 12px #D5CFC4, inset -6px -6px 12px #FFFFFF;
  --neo-inset-shadow-sm: inset 3px 3px 6px #D5CFC4, inset -3px -3px 6px #FFFFFF;
  --neo-hover-shadow: 12px 12px 24px #D5CFC4, -12px -12px 24px #FFFFFF;
  --neo-transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 暗色主题 */
[data-theme="dark"] {
  --text-primary: #FAF7F2;
  --text-secondary: #C9BFB2;
  --text-tertiary: #8A7F72;
  --bg-rice: #14110E;
  --bg-cream: #1F1B16;
  --bg-warm: #2A2520;
  --glass-bg: rgba(42, 37, 32, 0.65);
  --glass-border: rgba(212, 165, 116, 0.15);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glass-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.45);
  --grad-card: linear-gradient(145deg, rgba(42,37,32,0.9) 0%, rgba(31,27,22,0.8) 100%);

  /* 新拟物化 - 暗色 */
  --neo-bg: #1A1612;
  --neo-shadow-light: #2E2822;
  --neo-shadow-dark: #0A0806;
  --neo-card-bg: linear-gradient(145deg, #1F1B16, #15110E);
  --neo-raised-shadow: 8px 8px 16px #0A0806, -8px -8px 16px #2E2822;
  --neo-raised-shadow-sm: 4px 4px 8px #0A0806, -4px -4px 8px #2E2822;
  --neo-inset-shadow: inset 6px 6px 12px #0A0806, inset -6px -6px 12px #2E2822;
  --neo-inset-shadow-sm: inset 3px 3px 6px #0A0806, inset -3px -3px 6px #2E2822;
  --neo-hover-shadow: 12px 12px 24px #0A0806, -12px -12px 24px #2E2822;
}

/* ---------- 全局重置 ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--neo-bg);
}

body {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", "STSong", serif;
  background: var(--neo-bg);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---------- 自定义鼠标 ---------- */
#customCursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99990;
  will-change: transform;
}

.cursor-dot {
  width: 4px;
  height: 4px;
  background: #C8102E;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(200, 16, 46, 0.7);
  animation: cursorDotPulse 2s ease-in-out infinite;
}

@keyframes cursorDotPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(200, 16, 46, 0.5); }
  50% { box-shadow: 0 0 14px rgba(200, 16, 46, 0.9); }
}

.cursor-ring {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(200, 16, 46, 0.4);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
  animation: cursorRingBreathe 3s ease-in-out infinite;
}

@keyframes cursorRingBreathe {
  0%, 100% { border-color: rgba(200, 16, 46, 0.3); }
  50% { border-color: rgba(200, 16, 46, 0.55); }
}

/* 外层旋转光环 */
.cursor-aura {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cursor-aura::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: rgba(200, 16, 46, 0.35);
  border-right-color: rgba(212, 165, 116, 0.25);
  animation: cursorAuraSpin 3s linear infinite;
}

.cursor-aura::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-bottom-color: rgba(212, 165, 116, 0.2);
  border-left-color: rgba(200, 16, 46, 0.2);
  animation: cursorAuraSpin 4s linear infinite reverse;
}

@keyframes cursorAuraSpin {
  to { transform: rotate(360deg); }
}

/* 手形光标：悬停可点击元素时 */
#customCursor.pointer .cursor-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  box-shadow: 0 0 10px rgba(200, 16, 46, 0.9);
  animation: cursorDotPulsePointer 1.2s ease-in-out infinite;
}

@keyframes cursorDotPulsePointer {
  0%, 100% { box-shadow: 0 0 8px rgba(200, 16, 46, 0.7); }
  50% { box-shadow: 0 0 18px rgba(200, 16, 46, 1), 0 0 30px rgba(212, 165, 116, 0.5); }
}

#customCursor.pointer .cursor-ring {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(200, 16, 46, 0.6);
  background: rgba(200, 16, 46, 0.08);
  animation: cursorRingBreathePointer 1.5s ease-in-out infinite;
}

@keyframes cursorRingBreathePointer {
  0%, 100% { border-color: rgba(200, 16, 46, 0.4); background: rgba(200, 16, 46, 0.04); }
  50% { border-color: rgba(200, 16, 46, 0.7); background: rgba(200, 16, 46, 0.12); }
}

#customCursor.pointer .cursor-aura::before {
  border-top-color: rgba(200, 16, 46, 0.5);
  border-right-color: rgba(212, 165, 116, 0.4);
  animation-duration: 1.5s;
}

#customCursor.pointer .cursor-aura::after {
  border-bottom-color: rgba(212, 165, 116, 0.35);
  border-left-color: rgba(200, 16, 46, 0.35);
  animation-duration: 2s;
}

/* 网站区域隐藏默认鼠标（包括手形光标） */
html, body, body * {
  cursor: none !important;
}

/* 移动端恢复默认鼠标 */
@media (max-width: 768px) {
  html, body, body * {
    cursor: auto !important;
  }
  #customCursor { display: none; }
}

/* ---------- 粒子背景 ---------- */
#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  pointer-events: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(200, 16, 46, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(27, 58, 92, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(212, 165, 116, 0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s;
}

[data-theme="dark"] body::before {
  background-image:
    radial-gradient(circle at 15% 20%, rgba(200, 16, 46, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(27, 58, 92, 0.08) 0%, transparent 40%);
}

/* ---------- 视差背景 ---------- */
.parallax-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

/* 第3层 - 最深层：水墨大圆圈，速度最慢 */
.parallax-layer-3 { z-index: 0; }
.parallax-ink-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(45, 38, 32, 0.05);
  background: radial-gradient(circle, rgba(45, 38, 32, 0.025) 0%, transparent 70%);
  animation: inkBreathe 12s ease-in-out infinite;
}

.parallax-ink-circle:nth-child(1) { animation-delay: 0s; }
.parallax-ink-circle:nth-child(2) { animation-delay: -3s; }
.parallax-ink-circle:nth-child(3) { animation-delay: -6s; }
.parallax-ink-circle:nth-child(4) { animation-delay: -9s; }

@keyframes inkBreathe {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.04); }
}

[data-theme="dark"] .parallax-ink-circle {
  border-color: rgba(212, 165, 116, 0.07);
  background: radial-gradient(circle, rgba(212, 165, 116, 0.035) 0%, transparent 70%);
}

/* 第2层 - 中层：菱形纹样，中等速度 */
.parallax-layer-2 { z-index: 0; }
.parallax-diamond {
  position: absolute;
  width: 50px;
  height: 50px;
  transform: rotate(45deg);
  border: 1px solid rgba(200, 16, 46, 0.07);
  background: rgba(200, 16, 46, 0.025);
  animation: diamondFloat 8s ease-in-out infinite;
}

.parallax-diamond:nth-child(1) { animation-delay: 0s; }
.parallax-diamond:nth-child(2) { animation-delay: -2s; }
.parallax-diamond:nth-child(3) { animation-delay: -4s; }
.parallax-diamond:nth-child(4) { animation-delay: -6s; }
.parallax-diamond:nth-child(5) { animation-delay: -1s; }

@keyframes diamondFloat {
  0%, 100% { opacity: 0.4; transform: rotate(45deg) translateY(0); }
  50% { opacity: 0.7; transform: rotate(45deg) translateY(-8px); }
}

[data-theme="dark"] .parallax-diamond {
  border-color: rgba(200, 16, 46, 0.12);
  background: rgba(200, 16, 46, 0.04);
}

/* 第1层 - 最近层：墨点，速度最快 */
.parallax-layer-1 { z-index: 0; }
.parallax-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(200, 16, 46, 0.1);
  animation: dotPulse 5s ease-in-out infinite;
}

.parallax-dot:nth-child(odd) { animation-delay: 0s; }
.parallax-dot:nth-child(even) { animation-delay: -2.5s; }

@keyframes dotPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.8); }
}

[data-theme="dark"] .parallax-dot {
  background: rgba(212, 165, 116, 0.14);
}

/* 宣纸纹理 */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.8 0 0 0 0 0.7 0 0 0 0 0.6 0 0 0 0.03 0'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
input, textarea, select { font-family: inherit; }

/* ---------- 排版 ---------- */
.heading-display {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.heading-serif {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-weight: 700;
}

.text-gradient-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-vermillion {
  background: var(--grad-vermillion);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 印章风格装饰 */
.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cinnabar);
  color: #FAF7F2;
  font-weight: 900;
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  box-shadow: 0 2px 6px rgba(200, 16, 46, 0.3);
}

/* 管理员官方标识 */
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: linear-gradient(135deg, #D4A574, #C8102E);
  color: #fff;
  font-weight: 700;
  border-radius: 4px;
  padding: 1px 8px;
  font-size: 0.7rem;
  margin-left: 6px;
  vertical-align: middle;
  box-shadow: 0 1px 4px rgba(200, 16, 46, 0.4);
  animation: adminPulse 2s ease-in-out infinite;
}

@keyframes adminPulse {
  0%, 100% { box-shadow: 0 1px 4px rgba(200, 16, 46, 0.4); }
  50% { box-shadow: 0 1px 8px rgba(212, 165, 116, 0.6); }
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 32px;
  background: var(--neo-card-bg);
  box-shadow: var(--neo-raised-shadow-sm);
  border-bottom: none;
  transition: all 0.4s var(--ease-smooth);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.3s var(--ease-premium);
}

.nav-logo:hover { transform: scale(1.03); }

.nav-logo-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--grad-vermillion);
  border-radius: 10px;
  color: #FAF7F2;
  font-size: 1.2rem;
  box-shadow: var(--shadow-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--r-full);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  position: relative;
}

.nav-link:hover {
  color: var(--cinnabar);
  background: rgba(200, 16, 46, 0.06);
}

.nav-link.active {
  color: var(--cinnabar);
  background: rgba(200, 16, 46, 0.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 汉堡菜单按钮 */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-premium);
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 移动端菜单遮罩 */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mobile-overlay.show {
  display: block;
  opacity: 1;
}

/* 移动端防止双击缩放 */
a, button, .nav-link, .category-card, .chat-contact {
  touch-action: manipulation;
}

/* 主题切换 */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--neo-card-bg);
  box-shadow: var(--neo-raised-shadow-sm);
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: var(--neo-transition);
}

.theme-toggle:hover {
  transform: rotate(20deg) scale(1.1);
  box-shadow: var(--neo-raised-shadow);
}

/* 手势交互开关 */
.gesture-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--neo-card-bg);
  box-shadow: var(--neo-raised-shadow-sm);
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  transition: var(--neo-transition);
  position: relative;
}

.gesture-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--neo-raised-shadow);
}

.gesture-toggle.active {
  background: var(--grad-vermillion);
  color: #fff;
  box-shadow: 0 0 16px rgba(200, 16, 46, 0.4);
  animation: gesturePulse 2s ease-in-out infinite;
}

.gesture-toggle .gesture-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  display: none;
}

.gesture-toggle.active .gesture-dot {
  display: block;
}

@keyframes gesturePulse {
  0%, 100% { box-shadow: 0 0 16px rgba(200, 16, 46, 0.4); }
  50% { box-shadow: 0 0 24px rgba(200, 16, 46, 0.7); }
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--r-full);
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.3s var(--ease-premium);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-vermillion);
  color: #FAF7F2;
  box-shadow: 0 4px 16px rgba(200, 16, 46, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(200, 16, 46, 0.4);
}

.btn-ghost {
  background: rgba(200, 16, 46, 0.08);
  color: var(--cinnabar);
}

.btn-ghost:hover {
  background: rgba(200, 16, 46, 0.15);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--grad-gold);
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(212, 165, 116, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(212, 165, 116, 0.4);
}

.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }

/* ---------- 主容器 ---------- */
.main-container {
  margin-top: var(--nav-h);
  position: relative;
  z-index: 1;
}

.page {
  display: none;
  animation: fadeInUp 0.5s var(--ease-premium);
}

.page.active { display: block; }

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

.content-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 32px 20px;
}

/* ---------- Hero 首页 ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--grad-hero);
  padding-top: 40px;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(212,165,116,0.5) 35px, rgba(212,165,116,0.5) 36px),
    repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(200,16,46,0.3) 35px, rgba(200,16,46,0.3) 36px);
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  animation: floatGlow 8s ease-in-out infinite;
}

.hero-glow-1 {
  background: var(--cinnabar);
  top: -100px;
  right: -100px;
}

.hero-glow-2 {
  background: var(--gold);
  bottom: -150px;
  left: -100px;
  animation-delay: 4s;
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text { color: #FAF7F2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--r-full);
  background: rgba(212, 165, 116, 0.15);
  border: 1px solid rgba(212, 165, 116, 0.3);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-title .accent {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(250, 247, 242, 0.7);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(212, 165, 116, 0.2);
}

.hero-stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(250, 247, 242, 0.5);
  margin-top: 4px;
}

/* Hero 装饰 - 旋转印章 */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.seal-circle {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(200, 16, 46, 0.1);
  border: 2px solid rgba(212, 165, 116, 0.2);
  display: grid;
  place-items: center;
  position: relative;
  animation: spinSlow 30s linear infinite;
}

.seal-circle::before {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px dashed rgba(212, 165, 116, 0.3);
}

.seal-inner {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cinnabar-dark), var(--cinnabar));
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: 0 0 80px rgba(200, 16, 46, 0.4), inset 0 0 40px rgba(0,0,0,0.3);
  animation: spinSlow 30s linear infinite reverse;
}

.seal-inner-text {
  color: #FAF7F2;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

/* ---------- 玻璃卡片 ---------- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow);
  transition: all 0.4s var(--ease-premium);
  overflow: hidden;
}

.glass-card:hover {
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-4px);
}

/* ---------- 新拟物化卡片 ---------- */
.neo-card {
  background: var(--neo-card-bg);
  border-radius: var(--r-lg);
  box-shadow: var(--neo-raised-shadow);
  transition: var(--neo-transition);
  border: none;
}

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

.neo-card-sm {
  background: var(--neo-card-bg);
  border-radius: var(--r-md);
  box-shadow: var(--neo-raised-shadow-sm);
  transition: var(--neo-transition);
  border: none;
}

.neo-card-sm:hover {
  box-shadow: var(--neo-hover-shadow);
  transform: translateY(-1px);
}

/* 新拟物化 - 内凹（按压态） */
.neo-inset {
  background: var(--neo-bg);
  border-radius: var(--r-lg);
  box-shadow: var(--neo-inset-shadow);
  border: none;
}

.neo-inset-sm {
  background: var(--neo-bg);
  border-radius: var(--r-md);
  box-shadow: var(--neo-inset-shadow-sm);
  border: none;
}

/* 新拟物化 - 按钮 */
.neo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--r-full);
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--neo-card-bg);
  box-shadow: var(--neo-raised-shadow-sm);
  color: var(--text-primary);
  transition: var(--neo-transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.neo-btn:hover {
  box-shadow: var(--neo-raised-shadow);
  transform: translateY(-1px);
}

.neo-btn:active {
  box-shadow: var(--neo-inset-shadow-sm);
  transform: translateY(0);
}

.neo-btn-primary {
  background: var(--grad-vermillion);
  color: #FAF7F2;
  box-shadow: 4px 4px 8px #A80D26, -4px -4px 8px #E8263E;
}

.neo-btn-primary:hover {
  box-shadow: 6px 6px 12px #A80D26, -6px -6px 12px #E8263E;
  transform: translateY(-1px);
}

.neo-btn-primary:active {
  box-shadow: inset 3px 3px 6px #8A0A22, inset -3px -3px 6px #E8263E;
  transform: translateY(0);
}

.neo-btn-gold {
  background: var(--grad-gold);
  color: var(--ink);
  box-shadow: 4px 4px 8px #B8905E, -4px -4px 8px #F0DAB8;
}

.neo-btn-gold:hover {
  box-shadow: 6px 6px 12px #B8905E, -6px -6px 12px #F0DAB8;
}

.neo-btn-gold:active {
  box-shadow: inset 3px 3px 6px #B8905E, inset -3px -3px 6px #F0DAB8;
}

.neo-btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.neo-btn-lg { padding: 14px 32px; font-size: 1.05rem; }

/* ==========================================================================
   按钮动态光效
   ========================================================================== */

/* 流光扫过 */
@keyframes btnShimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* 呼吸光晕 */
@keyframes btnGlowPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(212, 165, 116, 0.3), 0 0 20px rgba(212, 165, 116, 0.1); }
  50% { box-shadow: 0 0 16px rgba(212, 165, 116, 0.5), 0 0 36px rgba(212, 165, 116, 0.2); }
}

@keyframes btnGlowPulseRed {
  0%, 100% { box-shadow: 0 0 8px rgba(200, 16, 46, 0.3), 0 0 20px rgba(200, 16, 46, 0.1); }
  50% { box-shadow: 0 0 16px rgba(200, 16, 46, 0.5), 0 0 36px rgba(200, 16, 46, 0.2); }
}

/* 边框炫光旋转 */
@keyframes btnBorderSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* -------- 主按钮：悬停流光扫过 + 光晕呼吸 -------- */
.btn-primary, .neo-btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after, .neo-btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 40%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.2) 60%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: none;
  pointer-events: none;
}

.btn-primary:hover::after, .neo-btn-primary:hover::after {
  animation: btnShimmer 0.8s ease forwards;
}

.btn-primary:hover, .neo-btn-primary:hover {
  animation: btnGlowPulseRed 1.8s ease-in-out infinite;
}

/* -------- 金色按钮：金色流光 + 金色光晕 -------- */
.btn-gold, .neo-btn-gold {
  position: relative;
  overflow: hidden;
}

.btn-gold::after, .neo-btn-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 35%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.25) 65%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: none;
  pointer-events: none;
}

.btn-gold:hover::after, .neo-btn-gold:hover::after {
  animation: btnShimmer 0.8s ease forwards;
}

.btn-gold:hover, .neo-btn-gold:hover {
  animation: btnGlowPulse 1.8s ease-in-out infinite;
}

/* -------- 幽灵按钮：悬停边框流光 -------- */
.btn-ghost {
  position: relative;
  overflow: hidden;
}

.btn-ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-full);
  padding: 1.5px;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(200, 16, 46, 0.4) 25%,
    rgba(212, 165, 116, 0.5) 50%,
    rgba(200, 16, 46, 0.4) 75%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: btnBorderSpin 4s linear infinite;
  pointer-events: none;
}

.btn-ghost:hover::before {
  opacity: 1;
}

/* -------- 普通新拟物按钮：悬停微光 -------- */
.neo-btn {
  position: relative;
  overflow: hidden;
}

.neo-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(200, 16, 46, 0.06) 40%,
    rgba(200, 16, 46, 0.1) 50%,
    rgba(200, 16, 46, 0.06) 60%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: none;
  pointer-events: none;
}

.neo-btn:hover::after {
  animation: btnShimmer 0.9s ease forwards;
}

/* -------- 导航链接：悬停下划线流光 -------- */
.nav-link {
  position: relative;
  overflow: hidden;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--grad-vermillion);
  border-radius: 1px;
  transition: width 0.35s var(--ease-premium);
  box-shadow: 0 0 6px rgba(200, 16, 46, 0.5);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

/* -------- 卡片类：悬停边框光效 -------- */
.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  padding: 1.5px;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(200, 16, 46, 0.2) 30%,
    rgba(212, 165, 116, 0.3) 60%,
    rgba(200, 16, 46, 0.2) 90%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.category-card:hover::after {
  opacity: 1;
  animation: btnBorderSpin 6s linear infinite;
}

/* -------- 侧边栏导航项：悬停光点 -------- */
.admin-nav-item {
  position: relative;
  overflow: hidden;
}

.admin-nav-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(200, 16, 46, 0.08) 50%,
    transparent 100%
  );
  transform: skewX(-15deg);
  transition: none;
  pointer-events: none;
}

.admin-nav-item:hover::after {
  animation: btnShimmer 0.7s ease forwards;
}

/* 移动端降级：减少光效动画 */
@media (max-width: 768px) {
  .btn-primary:hover::after, .neo-btn-primary:hover::after,
  .btn-gold:hover::after, .neo-btn-gold:hover::after,
  .neo-btn:hover::after, .admin-nav-item:hover::after {
    animation: none;
  }
  .btn-primary:hover, .neo-btn-primary:hover,
  .btn-gold:hover, .neo-btn-gold:hover {
    animation: none;
  }
  .btn-ghost::before {
    animation: none;
  }
  .category-card::after {
    animation: none;
  }
}

/* 新拟物化 - 输入框 */
.neo-input {
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--r-full);
  border: none;
  background: var(--neo-bg);
  box-shadow: var(--neo-inset-shadow-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--neo-transition);
}

.neo-input:focus {
  outline: none;
  box-shadow: var(--neo-inset-shadow);
}

.neo-input::placeholder {
  color: var(--text-tertiary);
}

/* 新拟物化 - 搜索框 */
.neo-search {
  position: relative;
}

.neo-search .neo-input {
  padding-left: 44px;
}

.neo-search::before {
  content: '🔍';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
}

/* 新拟物化 - 标签/药丸 */
.neo-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--neo-card-bg);
  box-shadow: var(--neo-raised-shadow-sm);
  color: var(--text-secondary);
  transition: var(--neo-transition);
  cursor: pointer;
}

.neo-tag:hover {
  box-shadow: var(--neo-raised-shadow);
  color: var(--cinnabar);
}

.neo-tag.active {
  box-shadow: var(--neo-inset-shadow-sm);
  color: var(--cinnabar);
  background: var(--neo-bg);
}

/* 新拟物化 - 头像 */
.neo-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--neo-card-bg);
  box-shadow: var(--neo-raised-shadow-sm);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: var(--neo-transition);
}

.neo-avatar:hover {
  box-shadow: var(--neo-raised-shadow);
}

.neo-avatar-lg {
  width: 64px;
  height: 64px;
  font-size: 1.2rem;
}

/* 新拟物化 - 开关 */
.neo-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 14px;
  background: var(--neo-bg);
  box-shadow: var(--neo-inset-shadow-sm);
  cursor: pointer;
  transition: var(--neo-transition);
}

.neo-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--neo-card-bg);
  box-shadow: var(--neo-raised-shadow-sm);
  transition: var(--neo-transition);
}

.neo-toggle.on {
  background: var(--cinnabar);
}

.neo-toggle.on::after {
  left: 27px;
}

/* 实验室 - 开关切换 */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--neo-bg);
  box-shadow: var(--neo-inset-shadow-sm);
  border-radius: 14px;
  transition: var(--neo-transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--neo-card-bg);
  box-shadow: var(--neo-raised-shadow-sm);
  transition: var(--neo-transition);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--cinnabar);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
}

/* 新拟物化 - 分隔线 */
.neo-divider {
  height: 1px;
  border: none;
  background: var(--neo-bg);
  box-shadow: 0 1px 0 var(--neo-shadow-light), 0 -1px 0 var(--neo-shadow-dark);
  margin: 16px 0;
}

/* 新拟物化 - 进度条 */
.neo-progress {
  height: 8px;
  border-radius: 4px;
  background: var(--neo-bg);
  box-shadow: var(--neo-inset-shadow-sm);
  overflow: hidden;
}

.neo-progress-bar {
  height: 100%;
  border-radius: 4px;
  background: var(--grad-vermillion);
  box-shadow: 0 0 8px rgba(200, 16, 46, 0.3);
  transition: width 0.6s var(--ease-premium);
}

/* ---------- 板块标题 ---------- */
.section-header {
  margin-bottom: 32px;
}

.section-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 28px;
  background: var(--grad-vermillion);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-left: 16px;
}

/* ---------- 门类网格 ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.category-card {
  padding: 28px 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: var(--neo-card-bg);
  box-shadow: var(--neo-raised-shadow-sm);
  border-radius: var(--r-lg);
  transition: var(--neo-transition);
  border: none;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--cat-color, var(--cinnabar));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-premium);
}

.category-card:hover {
  box-shadow: var(--neo-raised-shadow);
  transform: translateY(-3px);
}

.category-card:hover::before { transform: scaleX(1); }

.category-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  margin-bottom: 16px;
  transition: transform 0.3s var(--ease-spring);
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotate(-5deg);
}

.category-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.category-desc {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.category-count {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  background: rgba(200, 16, 46, 0.06);
  padding: 2px 10px;
  border-radius: var(--r-full);
}

/* ---------- 非遗项目卡片 ---------- */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.item-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background: var(--neo-card-bg);
  box-shadow: var(--neo-raised-shadow-sm);
  border-radius: var(--r-lg);
  transition: var(--neo-transition);
  border: none;
  overflow: hidden;
}

.item-card:hover {
  box-shadow: var(--neo-raised-shadow);
  transform: translateY(-3px);
}

.item-image {
  height: 180px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--grad-hero);
}

/* 封面图片：铺满 + 裁剪 */
.item-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.item-card:hover .item-cover-img {
  transform: scale(1.05);
}

/* 底部渐变遮罩（确保级别标签可读） */
.item-image-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(0,0,0,0.08) 65%,
    rgba(0,0,0,0.4) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.item-image-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(212,165,116,0.4) 20px, rgba(212,165,116,0.4) 21px);
}

.item-image-icon {
  font-size: 3rem;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

.item-level {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.item-level-humanity {
  background: var(--grad-gold);
  color: var(--ink);
}

.item-level-national {
  background: var(--cinnabar);
  color: #FAF7F2;
}

.item-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.item-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.item-region {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.item-intro {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: var(--neo-card-bg);
  box-shadow: var(--neo-raised-shadow-sm);
  color: var(--cinnabar);
  font-weight: 600;
  cursor: pointer;
  transition: var(--neo-transition);
}

.tag:hover {
  box-shadow: var(--neo-raised-shadow);
  transform: translateY(-1px);
}

[data-theme="dark"] .tag {
  color: var(--gold-light);
}

/* ---------- 筛选栏 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 32px;
  padding: 20px 24px;
  background: var(--neo-card-bg);
  box-shadow: var(--neo-raised-shadow-sm);
  border-radius: var(--r-lg);
  border: none;
}

.filter-chip {
  padding: 8px 18px;
  border-radius: var(--r-full);
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--neo-card-bg);
  box-shadow: var(--neo-raised-shadow-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--neo-transition);
  border: none;
}

.filter-chip:hover {
  box-shadow: var(--neo-raised-shadow);
  color: var(--cinnabar);
}

.filter-chip.active {
  box-shadow: var(--neo-inset-shadow-sm);
  background: var(--neo-bg);
  color: var(--cinnabar);
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 18px 10px 44px;
  border-radius: var(--r-full);
  border: none;
  background: var(--neo-bg);
  box-shadow: var(--neo-inset-shadow-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--neo-transition);
  position: relative;
}

.search-input:focus {
  outline: none;
  box-shadow: var(--neo-inset-shadow);
  border: none;
}

.search-wrapper {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-wrapper::before {
  content: '🔍';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  font-size: 0.95rem;
  opacity: 0.5;
}

/* ---------- 传承人卡片 ---------- */
.inheritor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.inheritor-card {
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background: var(--neo-card-bg);
  box-shadow: var(--neo-raised-shadow-sm);
  border-radius: var(--r-lg);
  transition: var(--neo-transition);
  border: none;
}

.inheritor-card:hover {
  box-shadow: var(--neo-raised-shadow);
  transform: translateY(-3px);
}

.inheritor-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 900;
  background: var(--grad-vermillion);
  color: #FAF7F2;
  box-shadow: 0 8px 24px rgba(200, 16, 46, 0.25);
  transition: transform 0.3s var(--ease-spring);
  position: relative;
}

.inheritor-card:hover .inheritor-avatar {
  transform: scale(1.08);
}

.inheritor-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0;
  transition: opacity 0.3s;
}

.inheritor-card:hover .inheritor-avatar::after {
  opacity: 0.5;
}

.inheritor-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.inheritor-title-text {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}

.inheritor-heritage {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.inheritor-bio {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

.inheritor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-bottom: 16px;
}

.inheritor-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

/* ---------- 论坛 ---------- */
.forum-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

.forum-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-card {
  padding: 24px;
  background: var(--neo-card-bg);
  box-shadow: var(--neo-raised-shadow-sm);
  border-radius: var(--r-lg);
  transition: var(--neo-transition);
  border: none;
}

.post-card:hover {
  box-shadow: var(--neo-raised-shadow);
  transform: translateX(4px);
}

.post-card.pinned {
  border-left: 3px solid var(--gold);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--grad-vermillion);
  color: #FAF7F2;
  flex-shrink: 0;
  box-shadow: 4px 4px 8px #A80D26, -4px -4px 8px #E8263E;
}

.post-meta {
  flex: 1;
}

.post-author {
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-time {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.post-category-badge {
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: var(--r-full);
  background: rgba(27, 58, 92, 0.1);
  color: var(--lapis);
  font-weight: 600;
}

.post-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  cursor: pointer;
  transition: color 0.2s;
}

.post-title:hover { color: var(--cinnabar); }

.post-content {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.post-image-thumb {
  width: 160px;
  height: 120px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  background-color: var(--bg-cream);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.post-video-thumb {
  width: 240px;
  height: 160px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border);
}

.post-action {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.2s;
}

.post-action:hover { color: var(--cinnabar); }
.post-action.liked { color: var(--cinnabar); }

/* 侧边栏 */
.forum-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  padding: 20px;
  background: var(--neo-card-bg);
  box-shadow: var(--neo-raised-shadow-sm);
  border-radius: var(--r-lg);
  transition: var(--neo-transition);
  border: none;
}

.sidebar-card:hover {
  box-shadow: var(--neo-raised-shadow);
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hot-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  transition: color 0.2s;
}

.hot-item:hover { color: var(--cinnabar); }

.hot-rank {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.hot-rank.top { background: var(--cinnabar); color: #FAF7F2; }
.hot-rank.normal { background: rgba(200,16,46,0.1); color: var(--text-tertiary); }

/* ---------- 模态框 ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 17, 14, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.3s;
}

.modal-overlay.show { display: flex; }

.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2001;
  background: var(--neo-card-bg);
  box-shadow: var(--neo-raised-shadow);
  border-radius: var(--r-xl);
  max-width: 560px;
  width: calc(100% - 48px);
  max-height: 90vh;
  overflow-y: auto;
  display: none;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  animation: modalSlideUp 0.4s var(--ease-premium);
  border: 1px solid var(--glass-border);
}

.modal-content.show { display: block; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--bg-rice);
  border-radius: var(--r-xl);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  animation: modalSlideUp 0.4s var(--ease-premium);
  border: 1px solid var(--glass-border);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  padding: 24px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 900;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: var(--text-tertiary);
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(200,16,46,0.1);
  color: var(--cinnabar);
  transform: rotate(90deg);
}

.modal-body { padding: 20px 28px 28px; }

/* 表单 */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--r-full);
  border: none;
  background: var(--neo-bg);
  box-shadow: var(--neo-inset-shadow-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--neo-transition);
  font-family: inherit;
}

.form-textarea {
  border-radius: var(--r-lg);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  box-shadow: var(--neo-inset-shadow);
  border: none;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* ---------- 增强表单：注册系统 ---------- */
.form-input-wrapper {
  position: relative;
}

.form-input.with-toggle {
  padding-right: 44px;
}

.pwd-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--text-tertiary);
  transition: all 0.2s;
  cursor: pointer;
}

.pwd-toggle:hover {
  background: rgba(200, 16, 46, 0.08);
  color: var(--cinnabar);
}

/* 验证状态 */
.form-input.valid {
  border-color: #16a34a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.form-input.invalid {
  border-color: var(--cinnabar);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C8102E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.form-input.with-toggle.valid,
.form-input.with-toggle.invalid {
  background-position: right 44px center;
}

.form-error {
  font-size: 0.78rem;
  color: var(--cinnabar);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: shakeIn 0.3s;
}

@keyframes shakeIn {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

/* 密码强度指示器 */
.pwd-strength {
  margin-top: 8px;
  display: none;
}

.pwd-strength.show { display: block; }

.pwd-strength-bar {
  height: 5px;
  border-radius: 3px;
  background: var(--bg-warm);
  overflow: hidden;
  position: relative;
}

.pwd-strength-fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  transition: width 0.4s var(--ease-premium), background 0.3s;
}

.pwd-strength-fill.weak { width: 33%; background: #dc2626; }
.pwd-strength-fill.medium { width: 66%; background: #f59e0b; }
.pwd-strength-fill.strong { width: 100%; background: #16a34a; }

.pwd-strength-label {
  font-size: 0.75rem;
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  color: var(--text-tertiary);
}

.pwd-strength-label .level { font-weight: 700; }
.pwd-strength-label .level.weak { color: #dc2626; }
.pwd-strength-label .level.medium { color: #f59e0b; }
.pwd-strength-label .level.strong { color: #16a34a; }

.pwd-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.pwd-check {
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.pwd-check.met { color: #16a34a; }
.pwd-check .icon { font-size: 0.85rem; }

/* 头像选择器 */
.avatar-picker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.avatar-option {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.25s var(--ease-spring);
  color: #FAF7F2;
  position: relative;
}

.avatar-option:hover {
  transform: scale(1.1);
}

.avatar-option.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.3);
  transform: scale(1.08);
}

.avatar-option.selected::after {
  content: '✓';
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 0.7rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg-rice);
}

/* 兴趣标签选择 */
.interest-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.interest-chip {
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-cream);
  color: var(--text-secondary);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.25s var(--ease-smooth);
  user-select: none;
}

.interest-chip:hover {
  border-color: var(--cinnabar);
  color: var(--cinnabar);
}

.interest-chip.selected {
  background: var(--grad-vermillion);
  color: #FAF7F2;
  border-color: var(--cinnabar);
  box-shadow: 0 3px 10px rgba(200, 16, 46, 0.25);
}

/* 验证码 */
.captcha-box {
  display: flex;
  gap: 10px;
  align-items: center;
}

.captcha-display {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--ink), var(--ink-soft));
  color: var(--gold-light);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  font-family: "Courier New", monospace;
  user-select: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-width: 100px;
  text-align: center;
  transition: transform 0.2s;
}

.captcha-display:hover { transform: scale(1.02); }

.captcha-display::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(75deg, transparent, transparent 8px, rgba(212,165,116,0.1) 8px, rgba(212,165,116,0.1) 9px);
}

.captcha-refresh {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  cursor: pointer;
  white-space: nowrap;
}

.captcha-refresh:hover { color: var(--cinnabar); }

/* 复选框 */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  user-select: none;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--cinnabar);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
}

.checkbox-row a {
  color: var(--cinnabar);
  font-weight: 600;
  cursor: pointer;
}

/* 分步表单指示器 */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
}

.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--bg-cream);
  color: var(--text-tertiary);
  border: 2px solid var(--glass-border);
  transition: all 0.3s var(--ease-spring);
}

.step-dot.active .step-circle {
  background: var(--grad-vermillion);
  color: #FAF7F2;
  border-color: var(--cinnabar);
  box-shadow: 0 4px 12px rgba(200,16,46,0.3);
  transform: scale(1.1);
}

.step-dot.done .step-circle {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}

.step-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.step-dot.active .step-label { color: var(--cinnabar); font-weight: 600; }

.step-line {
  width: 50px;
  height: 2px;
  background: var(--glass-border);
  margin: 0 -4px;
  margin-bottom: 20px;
  transition: background 0.3s;
}

.step-line.done { background: #16a34a; }

/* 表单分区标题 */
.form-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 18px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--glass-border);
}

.form-section-title:first-child { margin-top: 0; }

/* 记住我 */
.remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.remember-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  cursor: pointer;
}

.remember-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--cinnabar);
}

.forgot-link {
  color: var(--cinnabar);
  font-weight: 600;
  cursor: pointer;
}

.forgot-link:hover { text-decoration: underline; }

/* 社交登录分隔 */
.divider-text {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

/* 个人中心 */
.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  margin-bottom: 24px;
}

.profile-avatar-large {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  font-weight: 900;
  color: #FAF7F2;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(200,16,46,0.25);
  border: 4px solid var(--bg-rice);
}

.profile-info h2 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.profile-info .role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  padding: 3px 12px;
  border-radius: var(--r-full);
  background: rgba(212,165,116,0.15);
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}

.profile-info .profile-meta {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.profile-stats {
  display: flex;
  gap: 32px;
  margin-top: 12px;
}

.profile-stat {
  text-align: center;
}

.profile-stat-num {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--cinnabar);
}

.profile-stat-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.interest-display {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interest-display .tag {
  font-size: 0.82rem;
  padding: 4px 12px;
}

/* 模态框加宽 */
.modal.wide { max-width: 640px; }

/* ---------- 聊天 ---------- */
.chat-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  height: calc(100vh - var(--nav-h) - 80px);
  min-height: 600px;
}

.chat-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow-y: auto;
}

.chat-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 8px 8px 0 8px;
  gap: 4px;
  position: sticky;
  top: 0;
  background: var(--bg-rice);
  z-index: 1;
}

.chat-tab {
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--r-full);
  border: none;
  color: var(--text-tertiary);
  transition: var(--neo-transition);
  white-space: nowrap;
  background: transparent;
}

.chat-tab:hover {
  color: var(--text-primary);
  background: var(--neo-card-bg);
  box-shadow: var(--neo-raised-shadow-sm);
}

.chat-tab.active {
  color: var(--cinnabar);
  background: var(--neo-bg);
  box-shadow: var(--neo-inset-shadow-sm);
}

/* ========== 论坛搜索 ========== */
.forum-search-tab {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  color: var(--text-tertiary);
  background: transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.forum-search-tab:hover {
  color: var(--text-primary);
  border-color: var(--cinnabar);
}

.forum-search-tab.active {
  color: #fff;
  background: var(--cinnabar);
  border-color: var(--cinnabar);
}

.forum-user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.forum-user-card:hover {
  background: rgba(200, 16, 46, 0.04);
  transform: translateX(4px);
}

.forum-user-id {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-family: monospace;
  background: var(--neo-bg);
  padding: 2px 8px;
  border-radius: var(--r-sm);
}

.forum-search-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.chat-contacts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  flex: 1;
  overflow-y: auto;
}

.chat-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: var(--neo-transition);
  background: transparent;
}

.chat-contact:hover, .chat-contact.active {
  background: var(--neo-card-bg);
  box-shadow: var(--neo-raised-shadow-sm);
}

.chat-contact-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
  background: var(--grad-vermillion);
  color: #FAF7F2;
  flex-shrink: 0;
  position: relative;
  box-shadow: 4px 4px 8px #A80D26, -4px -4px 8px #E8263E;
}

.chat-contact-avatar .online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4ade80;
  border: 2px solid var(--bg-rice);
}

.chat-contact-info { flex: 1; min-width: 0; }
.chat-contact-name { font-weight: 600; font-size: 0.9rem; }
.chat-contact-preview { font-size: 0.78rem; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chat-main {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.chat-header {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--glass-border);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-message {
  display: flex;
  gap: 10px;
  max-width: 70%;
  animation: msgIn 0.3s var(--ease-premium);
}

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

.chat-message.self {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--grad-vermillion);
  color: #FAF7F2;
  flex-shrink: 0;
}

.chat-message.self .chat-msg-avatar {
  background: var(--grad-gold);
  color: var(--ink);
}

.chat-msg-bubble {
  padding: 10px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  background: var(--bg-cream);
  color: var(--text-primary);
}

.chat-message.self .chat-msg-bubble {
  background: var(--grad-vermillion);
  color: #FAF7F2;
  border-bottom-right-radius: 4px;
}

.chat-message:not(.self) .chat-msg-bubble {
  border-bottom-left-radius: 4px;
}

.chat-msg-time {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.chat-retract-btn {
  font-size: 0.65rem;
  color: var(--cinnabar);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  user-select: none;
}
.chat-retract-btn:hover {
  opacity: 1;
  text-decoration: underline;
}

/* 表情选择器 */
.emoji-picker {
  position: fixed;
  z-index: 10000;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: fadeInUp 0.2s var(--ease-premium);
}
.emoji-row {
  display: flex;
  gap: 2px;
}
.emoji-item {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  user-select: none;
}
.emoji-item:hover {
  background: rgba(200, 16, 46, 0.1);
  transform: scale(1.3);
}

.chat-input-bar {
  padding: 16px 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--glass-border);
}

.chat-input {
  flex: 1;
  padding: 12px 18px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--glass-border);
  background: var(--bg-cream);
  color: var(--text-primary);
  font-size: 0.92rem;
}

.chat-input:focus { outline: none; border-color: var(--cinnabar); }

/* ---------- 管理后台 ---------- */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}

.admin-sidebar {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--r-md);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.admin-nav-item:hover { background: rgba(200,16,46,0.06); color: var(--cinnabar); }
.admin-nav-item.active { background: var(--grad-vermillion); color: #FAF7F2; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  padding: 24px;
  background: var(--neo-card-bg);
  box-shadow: var(--neo-raised-shadow-sm);
  border-radius: var(--r-lg);
  transition: var(--neo-transition);
  border: none;
}

.stat-card:hover {
  box-shadow: var(--neo-raised-shadow);
  transform: translateY(-2px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
  background: rgba(200,16,46,0.1);
}

.stat-value {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.stat-trend {
  font-size: 0.78rem;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-trend.up { color: #16a34a; }
.stat-trend.down { color: #dc2626; }

/* 数据表格 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  color: var(--text-tertiary);
  border-bottom: 2px solid var(--glass-border);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--glass-border);
}

.data-table tr:hover { background: rgba(200,16,46,0.03); }

.status-badge {
  font-size: 0.72rem;
  padding: 2px 10px;
  border-radius: var(--r-full);
  font-weight: 600;
}

.status-online { background: rgba(34,197,94,0.12); color: #16a34a; }
.status-offline { background: rgba(156,163,175,0.12); color: #6b7280; }

/* ---------- 详情页 ---------- */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.detail-hero {
  height: 280px;
  border-radius: var(--r-lg);
  background: var(--grad-hero);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
}

.detail-hero-icon { font-size: 5rem; z-index: 1; filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5)); }

/* 详情页封面图片遮罩 */
.detail-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.02) 40%,
    rgba(0,0,0,0.35) 100%
  );
}

.detail-hero-overlay .detail-hero-icon {
  z-index: 1;
}

.detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(212,165,116,0.5) 30px, rgba(212,165,116,0.5) 31px);
}

.detail-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.detail-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.detail-section {
  margin-bottom: 28px;
}

.detail-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Toast 提示 ---------- */
.toast-container {
  position: fixed;
  top: calc(var(--nav-h) + 16px);
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 22px;
  border-radius: var(--r-md);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.4s var(--ease-spring);
  max-width: 360px;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast.success { border-left: 4px solid #16a34a; }
.toast.error { border-left: 4px solid var(--cinnabar); }
.toast.warning { border-left: 4px solid var(--gold); }
.toast.info { border-left: 4px solid var(--lapis); }

/* ---------- 内容审核提示 ---------- */
.moderation-notice {
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: rgba(212,165,116,0.1);
  border: 1px solid rgba(212,165,116,0.3);
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}

.moderation-blocked {
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: rgba(200,16,46,0.08);
  border: 1px solid rgba(200,16,46,0.2);
  font-size: 0.82rem;
  color: var(--cinnabar);
  margin-bottom: 12px;
}

/* ---------- 空状态 ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-tertiary);
}

.empty-state-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; }
.empty-state-text { font-size: 0.95rem; }

/* ---------- 加载动画 ---------- */
.loading-dots {
  display: inline-flex;
  gap: 4px;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cinnabar);
  animation: dotPulse 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   消息中心
   ========================================================================== */
.msg-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.2s;
}
.msg-item:last-child { border-bottom: none; }
.msg-item:hover { background: var(--bg-cream); border-radius: var(--r-sm); padding: 16px 8px; margin: 0 -8px; }
.msg-item-unread {
  background: linear-gradient(90deg, rgba(200, 16, 46, 0.04), transparent);
  border-radius: var(--r-sm);
  padding: 16px 8px;
  margin: 0 -8px;
}
.msg-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.msg-item-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.msg-item-time {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  margin-left: 12px;
}
.msg-item-content {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}
.msg-item-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}
.msg-badge-official {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--gold);
  color: #fff;
}
.msg-badge-follow {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(27, 58, 92, 0.1);
  color: var(--primary);
}
.msg-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cinnabar);
  margin-right: 6px;
  vertical-align: middle;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .forum-layout { grid-template-columns: 1fr; }
  .forum-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .detail-layout { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { flex-direction: row; overflow-x: auto; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  /* 数据表格横向滚动 */
  .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table thead, .data-table tbody { white-space: nowrap; }
}

@media (max-width: 768px) {
  /* ===== 导航栏 ===== */
  .mobile-menu-btn { display: flex; }
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-rice);
    padding: 80px 24px 24px;
    gap: 4px;
    z-index: 999;
    transition: right 0.35s var(--ease-premium);
    box-shadow: -8px 0 40px rgba(0,0,0,0.15);
    border-left: 1px solid var(--glass-border);
    overflow-y: auto;
  }
  .nav-links.open { right: 0; }
  .nav-links .nav-link {
    padding: 14px 16px;
    border-radius: var(--r-md);
    font-size: 1rem;
  }
  .navbar { padding: 0 12px; height: 60px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { padding: 6px 12px; font-size: 0.78rem; }
  .nav-logo span { font-size: 1rem; }
  .nav-logo-icon { width: 34px; height: 34px; font-size: 1rem; border-radius: 8px; }
  .theme-toggle { width: 36px; height: 36px; font-size: 1rem; }
  .gesture-toggle { width: 36px; height: 36px; font-size: 1rem; }

  /* ===== 主容器 ===== */
  .main-container { margin-top: 60px; }
  .content-wrap { padding: 16px 10px; }

  /* ===== Hero 首页 ===== */
  .hero { padding: 60px 12px 40px; min-height: auto; border-radius: 0; }
  .hero-content { padding: 0; gap: 24px; }
  .hero-title { font-size: 1.7rem; line-height: 1.2; }
  .hero-desc { font-size: 0.85rem; line-height: 1.6; margin-bottom: 24px; }
  .hero-stats { gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 28px; padding-top: 20px; }
  .hero-stat-num { font-size: 1.3rem; }
  .hero-stat-label { font-size: 0.7rem; }
  .hero-badge { font-size: 0.72rem; padding: 5px 12px; gap: 4px; margin-bottom: 16px; }
  .hero-actions { flex-direction: column; gap: 8px; }
  .hero-actions .btn { width: 100%; justify-content: center; padding: 12px 20px; }
  .hero-glow { width: 300px; height: 300px; }

  /* ===== 版块标题 ===== */
  .section-title { font-size: 1.25rem; gap: 8px; }
  .section-title::before { height: 22px; width: 3px; }
  .section-subtitle { font-size: 0.82rem; margin-left: 10px; }
  .section-header { margin-bottom: 20px; }

  /* ===== 分类网格 ===== */
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .category-card { padding: 18px 14px; }
  .category-icon { width: 44px; height: 44px; font-size: 1.4rem; margin-bottom: 10px; }
  .category-name { font-size: 0.88rem; }
  .category-desc { font-size: 0.75rem; }

  /* ===== 非遗项目卡片 ===== */
  .item-grid { grid-template-columns: 1fr; gap: 16px; }
  .item-card { flex-direction: column; }
  .item-image { height: 160px; }
  .item-body { padding: 16px; }
  .item-name { font-size: 1.05rem; }
  .item-intro { font-size: 0.82rem; }

  /* ===== 统计卡片 ===== */
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 16px; }
  .stat-icon { width: 40px; height: 40px; font-size: 1.1rem; margin-bottom: 10px; }
  .stat-value { font-size: 1.4rem; }
  .stat-label { font-size: 0.72rem; }

  /* ===== 论坛 ===== */
  .forum-layout { grid-template-columns: 1fr; gap: 16px; }
  .forum-sidebar { position: static; flex-direction: column; gap: 12px; }
  .forum-sidebar .sidebar-card { flex: none; min-width: 0; padding: 16px; }
  .post-card { padding: 16px; }
  .post-card:hover { transform: none; }
  .post-header { gap: 10px; }
  .post-avatar { width: 38px; height: 38px; font-size: 0.9rem; }
  .post-title { font-size: 0.95rem; }
  .post-content { font-size: 0.82rem; -webkit-line-clamp: 3; }
  .post-images { gap: 6px; }
  .post-image-thumb { width: 90px; height: 68px; }
  .post-video-thumb { width: 150px; height: 100px; }
  .post-footer { gap: 16px; flex-wrap: wrap; }
  .post-action { font-size: 0.78rem; }
  /* 论坛搜索栏 */
  .forum-search-bar { flex-direction: column; align-items: stretch; padding: 12px 14px; gap: 8px; }
  .forum-search-bar .search-wrapper { min-width: 0; width: 100%; }
  .forum-search-tab { font-size: 0.72rem; padding: 5px 10px; }
  .forum-user-card { padding: 12px; gap: 10px; }
  .forum-user-id { font-size: 0.65rem; padding: 2px 6px; }

  /* ===== 聊天 ===== */
  .chat-layout { grid-template-columns: 1fr; height: auto; min-height: 70vh; }
  .chat-sidebar { max-height: 180px; }
  .chat-contacts { padding: 4px; }
  .chat-contact { padding: 10px; gap: 10px; }
  .chat-contact-avatar { width: 38px; height: 38px; font-size: 0.85rem; }
  .chat-header { padding: 10px 14px; }
  .chat-messages { padding: 12px; gap: 12px; }
  .chat-message { max-width: 85%; }
  .chat-msg-bubble { font-size: 0.85rem; padding: 8px 14px; }
  .chat-msg-avatar { width: 30px; height: 30px; font-size: 0.75rem; }
  .chat-input-bar { padding: 10px 12px; flex-wrap: wrap; gap: 6px; }
  .chat-input-bar .chat-input { flex: 1; min-width: 100px; font-size: 0.85rem; padding: 10px 14px; }
  .chat-input-bar .btn { padding: 6px 10px; font-size: 0.75rem; }
  .chat-tab { padding: 6px 12px; font-size: 0.75rem; }

  /* ===== 消息中心 ===== */
  #page-messages .content-wrap > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .msg-item { padding: 12px 0; }
  .msg-item-title { font-size: 0.88rem; }
  .msg-item-content { font-size: 0.8rem; }

  /* ===== 弹窗/模态框 ===== */
  .modal-overlay { padding: 12px; }
  .modal-content {
    max-width: 96vw;
    width: calc(100% - 16px);
    max-height: 88vh;
    border-radius: var(--r-md);
  }
  .modal-header { padding: 16px 16px 0; }
  .modal-body { padding: 16px; }
  .modal-title { font-size: 1.2rem; }
  .modal-close { width: 32px; height: 32px; font-size: 1rem; }

  /* ===== 详情页 ===== */
  .detail-layout { grid-template-columns: 1fr; gap: 20px; }
  .detail-hero { height: 200px; border-radius: var(--r-md); }
  .detail-hero-icon { font-size: 3.5rem; }
  .detail-title { font-size: 1.4rem; }
  .detail-meta { gap: 10px; font-size: 0.82rem; }
  .detail-section { margin-bottom: 20px; }
  .detail-section-title { font-size: 1rem; }

  /* ===== 管理后台 ===== */
  .admin-layout { grid-template-columns: 1fr; gap: 16px; }
  .admin-sidebar { flex-direction: row; overflow-x: auto; gap: 6px; padding: 10px; -webkit-overflow-scrolling: touch; }
  .admin-sidebar .admin-nav-item { font-size: 0.75rem; padding: 8px 12px; white-space: nowrap; flex-shrink: 0; border-radius: var(--r-full); }
  .admin-nav-item { font-size: 0.78rem; padding: 8px 12px; white-space: nowrap; }

  /* ===== 表单 ===== */
  .form-group { margin-bottom: 14px; }
  .form-label { font-size: 0.82rem; }
  .form-input, .form-select, .form-textarea { font-size: 0.88rem; padding: 10px 14px; }
  .form-textarea { min-height: 80px; }
  .btn { padding: 8px 16px; font-size: 0.85rem; }
  .btn-lg { padding: 12px 24px; font-size: 0.95rem; }
  .btn-sm { padding: 5px 10px; font-size: 0.78rem; }

  /* ===== 个人中心 ===== */
  .profile-header { flex-direction: column; text-align: center; padding: 20px 16px; gap: 16px; }
  .profile-avatar-large { width: 80px; height: 80px; font-size: 2rem; }
  .profile-info h2 { font-size: 1.2rem; }
  .profile-stats { gap: 20px; justify-content: center; }
  .profile-stat-num { font-size: 1.2rem; }
  .profile-meta { justify-content: center; font-size: 0.8rem; }

  /* ===== 传承人 ===== */
  .inheritor-grid { grid-template-columns: 1fr; gap: 16px; }
  .inheritor-card { padding: 20px 16px; }
  .inheritor-avatar { width: 72px; height: 72px; font-size: 1.6rem; }
  .inheritor-name { font-size: 1.05rem; }
  .inheritor-bio { font-size: 0.8rem; }

  /* ===== 筛选栏 ===== */
  .filter-bar { padding: 12px 14px; gap: 8px; flex-direction: column; align-items: stretch; }
  .filter-bar > div { flex-wrap: wrap; }
  .filter-chip { font-size: 0.78rem; padding: 6px 12px; }
  .search-input { font-size: 0.85rem; padding: 10px 14px 10px 36px; }
  .search-wrapper { min-width: 0; }

  /* ===== 打卡弹窗 ===== */
  .checkin-popup { width: 85vw; padding: 28px 20px; }
  .checkin-popup h2 { font-size: 1.3rem; }
  .checkin-popup .checkin-sub { font-size: 0.9rem; }
  .checkin-icon { font-size: 3rem; }

  /* ===== 表情选择器 ===== */
  .emoji-picker { width: 280px; max-width: 90vw; }
  .emoji-item { width: 32px; height: 32px; font-size: 1.1rem; }

  /* ===== 开场动画 ===== */
  .splash-text { font-size: 2rem; gap: 4px; }
  .splash-sub { font-size: 0.7rem; }
  .splash-line.grow { height: 60px; }

  /* ===== 标签 ===== */
  .item-tags { gap: 6px; }
  .tag { font-size: 0.7rem; padding: 4px 10px; }

  /* ===== 数据表格 ===== */
  .data-table { font-size: 0.78rem; }
  .data-table th, .data-table td { padding: 8px 10px; }

  /* ===== Toast ===== */
  .toast-container { right: 8px; left: 8px; top: calc(var(--nav-h) + 8px); }
  .toast { max-width: none; font-size: 0.82rem; padding: 12px 16px; }

  /* ===== 游客提示 ===== */
  .guest-banner { padding: 20px 16px; }
  .guest-banner h2 { font-size: 1.2rem; }

  /* ===== 特色功能卡片 ===== */
  .content-wrap > div[style*="grid-template-columns"] .glass-card { padding: 20px; }

  /* ===== 增强触摸目标 ===== */
  .nav-link, .chat-contact, .post-action, .filter-chip,
  .admin-nav-item, .chat-tab, .btn, .neo-btn, .neo-tag,
  .forum-search-tab, .tag, .interest-chip {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 480px) {
  /* ===== 超小屏微调 ===== */
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hero-title { font-size: 1.4rem; }
  .hero-desc { font-size: 0.8rem; }
  .nav-logo span { display: none; }
  .nav-logo-icon { width: 32px; height: 32px; font-size: 0.9rem; }
  .post-footer { flex-wrap: wrap; gap: 10px; }
  .post-image-thumb { width: 75px; height: 56px; }
  .post-video-thumb { width: 130px; height: 90px; }
  .modal-content { max-width: 98vw; width: calc(100% - 8px); max-height: 92vh; border-radius: var(--r-sm); }
  .splash-text { font-size: 1.5rem; }
  .chat-message { max-width: 90%; }
  .chat-msg-bubble { font-size: 0.82rem; padding: 7px 12px; }
  .section-title { font-size: 1.1rem; }
  .item-image { height: 140px; }
  .detail-hero { height: 160px; }
  .content-wrap { padding: 12px 8px; }
  .navbar { padding: 0 8px; }
  .hero { padding: 48px 8px 32px; }
  .hero-stats { gap: 12px; }
  .hero-stat-num { font-size: 1.1rem; }
  .btn-lg { padding: 10px 18px; font-size: 0.88rem; }
}

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(200,16,46,0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(200,16,46,0.4); }

/* 选中文字 */
::selection { background: rgba(200,16,46,0.2); color: var(--text-primary); }

/* 焦点环 */
:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 2px;
}

/* ==========================================================================
   开场动画 · 极简水墨
   ========================================================================== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #FAF7F2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* 竖线 - 水墨笔触 */
.splash-line {
  width: 1px;
  height: 0;
  background: linear-gradient(to bottom, transparent, #C8102E, transparent);
  transition: height 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.splash-line.grow {
  height: 80px;
}

/* 标题文字 */
.splash-text {
  display: flex;
  gap: 6px;
  font-family: 'Noto Serif SC', serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: #1B3A5C;
  letter-spacing: 0.08em;
}

.splash-char {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.splash-char.show {
  opacity: 1;
  transform: translateY(0);
}

/* 副标题 */
.splash-sub {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: #A68A6B;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.splash-sub.show {
  opacity: 0.7;
  transform: translateY(0);
}

/* ==========================================================================
   每日打卡弹窗
   ========================================================================== */
.checkin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 17, 14, 0.75);
  backdrop-filter: blur(12px);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s ease;
  cursor: pointer;
}

.checkin-overlay.fade-out {
  animation: fadeOut 0.4s ease forwards;
}

.checkin-popup {
  text-align: center;
  animation: checkinBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.checkin-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: checkinFloat 2s ease-in-out infinite;
}

.checkin-welcome {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #FAF7F2;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.checkin-status {
  font-size: 1.1rem;
  color: #D4A574;
  letter-spacing: 0.15em;
  position: relative;
  display: inline-block;
  padding: 6px 24px;
  border: 1px solid rgba(212, 165, 116, 0.4);
  border-radius: 24px;
}

@keyframes checkinBounce {
  0% { opacity: 0; transform: scale(0.5); }
  60% { opacity: 1; transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes checkinFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ============================================================
   非遗叙事覆盖层
   ============================================================ */
.narrative-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #020810;
  overflow: hidden;
  font-family: 'Noto Serif SC', serif;
}

/* 叙事覆盖层内恢复光标 */
.narrative-overlay,
.narrative-overlay * {
  cursor: auto !important;
}

.narrative-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.narrative-exit {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10010;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  backdrop-filter: blur(8px);
}
.narrative-exit:hover {
  background: rgba(80,180,160,0.5);
  border-color: rgba(255,255,255,0.4);
}

/* 进度条 */
.narrative-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 10010;
  background: rgba(255,255,255,0.05);
}
.narrative-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #50b4a0, #3c96b4, #c8b48c);
  transition: width 0.15s linear;
  width: 0%;
}

/* 章节容器 */
.narrative-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  position: relative;
  z-index: 1;
}
.narrative-container::-webkit-scrollbar { display: none; }

/* 章节 */
.narrative-chapter {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.narrative-chapter-inner {
  max-width: 800px;
  width: 90%;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* 章节序号 */
.narrative-chapter-number {
  font-size: 6rem;
  font-weight: 900;
  color: rgba(100,200,175,0.08);
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  letter-spacing: 0.05em;
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16,1,0.3,1);
}
.narrative-chapter.visible .narrative-chapter-number {
  opacity: 1;
}

/* 章节标题 */
.narrative-chapter-title {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16,1,0.3,1);
}
.narrative-chapter.visible .narrative-chapter-title {
  opacity: 1;
  transform: translateY(0);
}

/* 章节标签 */
.narrative-chapter-tag {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid rgba(100,200,175,0.5);
  border-radius: 20px;
  color: #64c8af;
  font-size: 0.8rem;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16,1,0.3,1) 0.1s;
}
.narrative-chapter.visible .narrative-chapter-tag {
  opacity: 1;
  transform: translateY(0);
}

/* 章节描述 */
.narrative-chapter-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.9;
  max-width: 600px;
  margin: 0 auto 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16,1,0.3,1) 0.2s;
}
.narrative-chapter.visible .narrative-chapter-desc {
  opacity: 1;
  transform: translateY(0);
}

/* 章节详情 */
.narrative-chapter-details {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16,1,0.3,1) 0.3s;
}
.narrative-chapter.visible .narrative-chapter-details {
  opacity: 1;
  transform: translateY(0);
}
.narrative-detail-item {
  text-align: center;
  min-width: 100px;
}
.narrative-detail-label {
  font-size: 0.7rem;
  color: #64c8af;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.narrative-detail-value {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

/* 放大按钮 */
.narrative-zoom-btn {
  display: inline-block;
  padding: 10px 28px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 30px;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16,1,0.3,1) 0.4s;
}
.narrative-chapter.visible .narrative-zoom-btn {
  opacity: 1;
  transform: translateY(0);
}
.narrative-zoom-btn:hover {
  background: rgba(80,180,160,0.3);
  border-color: rgba(80,180,160,0.5);
  color: #fff;
}

/* 章节背景渐变 */
.narrative-chapter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(80,180,160,0.06) 0%, transparent 70%);
  z-index: 0;
}

/* 放大查看层 */
.narrative-zoom {
  position: fixed;
  inset: 0;
  z-index: 10020;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.narrative-zoom-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10030;
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 25px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(8px);
}
.narrative-zoom-close:hover {
  background: rgba(80,180,160,0.5);
}
.narrative-zoom-content {
  max-width: 800px;
  width: 90%;
  margin: 100px auto 80px;
  color: #fff;
}
.narrative-zoom-content h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}
.narrative-zoom-content h3 {
  font-size: 1.4rem;
  color: #64c8af;
  margin-top: 40px;
  margin-bottom: 12px;
  font-weight: 700;
}
.narrative-zoom-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 2;
  margin-bottom: 16px;
}
.narrative-zoom-content .narrative-zoom-tag {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid rgba(100,200,175,0.4);
  border-radius: 15px;
  color: #64c8af;
  font-size: 0.78rem;
  margin-right: 8px;
  margin-bottom: 8px;
}
.narrative-zoom-content .narrative-zoom-divider {
  width: 60px;
  height: 2px;
  background: #50b4a0;
  margin: 30px 0;
}

/* 放大视图级别标签 */
.narrative-zoom-level {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 15px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-left: 8px;
  vertical-align: middle;
}
.narrative-zoom-level-humanity {
  background: linear-gradient(135deg, #50b4a0, #8cd4c0);
  color: #060c14;
}
.narrative-zoom-level-national {
  background: rgba(80,180,160,0.2);
  color: #64c8af;
  border: 1px solid rgba(80,180,160,0.5);
}
.narrative-zoom-level-provincial {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.2);
}

/* 放大视图元信息 */
.narrative-zoom-meta {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .narrative-chapter-number { font-size: 3.5rem; top: -10px; }
  .narrative-chapter-title { font-size: 2rem; }
  .narrative-chapter-desc { font-size: 0.95rem; }
  .narrative-chapter-details { gap: 20px; }
  .narrative-zoom-content h2 { font-size: 1.8rem; }
  .narrative-zoom-content h3 { font-size: 1.2rem; }
  .narrative-zoom-content p { font-size: 0.95rem; }
}
