/* ========================================
   cultustar.com — Design System
   光影悬浮 · 玻璃质感 · 东方雅韵
   ======================================== */

/* ---------- Design Tokens ---------- */
:root {
  --bg-body: linear-gradient(145deg, #f0f2f8 0%, #e2e6f0 30%, #d5dce8 60%, #e8ecf2 100%);
  --bg-primary: #f5f7fa;
  --bg-secondary: #edeff5;
  --bg-tertiary: #e8ecf2;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-card-hover: rgba(255, 255, 255, 0.88);
  --bg-glass: rgba(255, 255, 255, 0.70);
  --bg-glass-light: rgba(255, 255, 255, 0.35);
  --bg-glass-border: rgba(255, 255, 255, 0.55);

  --text-primary: #2c3e50;
  --text-secondary: #5a6a7a;
  --text-muted: #95a5a6;
  --text-inverse: #ffffff;

  --accent: #667eea;
  --accent-light: #8b9cf7;
  --accent-dark: #5a6fd6;
  --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --accent-glow: rgba(102, 126, 234, 0.2);
  --accent-subtle: rgba(102, 126, 234, 0.06);

  --gold: #b8943c;
  --gold-light: #d4b05a;
  --gold-subtle: rgba(184, 148, 60, 0.08);
  --gold-glow: rgba(184, 148, 60, 0.2);

  --ok: #27ae60;
  --error: #e74c3c;
  --warning: #f39c12;

  --shadow-sm: 0 2px 8px rgba(31, 38, 135, 0.06), 0 4px 16px rgba(31, 38, 135, 0.04);
  --shadow-md: 0 8px 32px rgba(31, 38, 135, 0.08), 0 2px 8px rgba(31, 38, 135, 0.06);
  --shadow-lg: 0 16px 48px rgba(31, 38, 135, 0.10), 0 4px 16px rgba(31, 38, 135, 0.08);
  --shadow-hover: 0 20px 56px rgba(31, 38, 135, 0.14), 0 6px 20px rgba(31, 38, 135, 0.10);
  --shadow-accent: 0 4px 24px rgba(102, 126, 234, 0.18);
  --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.6);

  --blur-sm: blur(8px);
  --blur-md: blur(16px);
  --blur-lg: blur(24px);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --tr-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --max-width: 1200px;
  --max-width-narrow: 900px;
  --nav-height: 60px;
}

/* ---------- Dark Theme ---------- */
[data-theme="dark"] {
  --bg-body: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --bg-tertiary: #0f3460;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.1);
  --bg-glass: rgba(26, 26, 46, 0.78);
  --bg-glass-light: rgba(255, 255, 255, 0.06);
  --bg-glass-border: rgba(255, 255, 255, 0.08);
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0b0;
  --text-muted: #6b6b80;
  --text-inverse: #0a0a0a;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-accent: 0 4px 20px rgba(102, 126, 234, 0.2);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-body);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 400;
  line-height: 1.8;
  overflow-x: hidden;
  min-height: 100vh;
}

/* 材质质感叠加层 — 柔光漏光 + 极淡斜纹 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    /* 顶部暖光 */
    radial-gradient(ellipse at 50% 0%, rgba(255,248,240,0.18) 0%, transparent 50%),
    /* 左侧冷光 */
    radial-gradient(ellipse at 10% 40%, rgba(200,215,255,0.20) 0%, transparent 55%),
    /* 右侧补光 */
    radial-gradient(ellipse at 90% 55%, rgba(180,205,250,0.12) 0%, transparent 50%),
    /* 底部氛围光 */
    radial-gradient(ellipse at 50% 95%, rgba(220,210,240,0.10) 0%, transparent 45%),
    /* 中心柔光 */
    radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.08) 0%, transparent 40%),
    /* 极淡斜纹编织纹理 */
    repeating-linear-gradient(45deg, transparent, transparent 48px, rgba(0,0,0,0.006) 48px, rgba(0,0,0,0.006) 49px),
    repeating-linear-gradient(-45deg, transparent, transparent 48px, rgba(0,0,0,0.006) 48px, rgba(0,0,0,0.006) 49px);
  background-size:
    100% 100%, 100% 100%, 100% 100%,
    100% 100%, 100% 100%,
    68px 68px, 68px 68px;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
  opacity: 0.5;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  transition: var(--tr-base);
}

.nav.scrolled {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border-bottom: 1px solid var(--bg-glass-border);
  box-shadow: var(--shadow-md);
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82em;
  font-weight: 500;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  transition: var(--tr-fast);
  letter-spacing: 0.06em;
  position: relative;
}

.nav a:hover {
  color: var(--accent);
  background: var(--accent-subtle);
}

.nav a.active {
  color: var(--accent);
  background: var(--accent-subtle);
}

/* Theme toggle button */
.theme-toggle {
  position: fixed;
  top: 12px;
  right: 20px;
  z-index: 1001;
  width: 38px;
  height: 38px;
  background: var(--bg-glass);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  border: 1px solid var(--bg-glass-border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--tr-fast);
  box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
  transform: scale(1.05);
}

[data-theme="dark"] .theme-toggle {
  border-color: rgba(255,255,255,0.12);
}

/* ---------- Container ---------- */
.ctn {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------- Glass Card ---------- */
.glass-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--tr-base);
  overflow: visible;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 255, 255, 0.7);
}

/* ---------- Section ---------- */
.sec {
  position: relative;
  margin-bottom: 28px;
  padding: 40px 36px;
  background: var(--bg-card);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow var(--tr-base), border-color var(--tr-base);
}

.sec::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255,255,255,0.40) 0%, transparent 55%, rgba(255,255,255,0.03) 100%);
  pointer-events: none;
}

[data-theme="dark"] .sec::before {
  background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, transparent 55%, rgba(255,255,255,0.01) 100%);
}

.sec.vis {
  opacity: 1;
  transform: translateY(0);
}

.sec:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 255, 255, 0.75);
  transform: translateY(-2px);
}

.sec.vis:hover {
  transform: translateY(-2px);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 1px;
}

[data-theme="dark"] .section-header {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.section-title {
  font-size: 1.4rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.2em;
}

.section-add-btn {
  width: 38px;
  height: 38px;
  background: var(--bg-glass-light);
  border: 1px solid var(--bg-glass-border);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.2em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--tr-fast);
  box-shadow: var(--shadow-sm);
}

.section-add-btn:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  transform: rotate(90deg) scale(1.05);
  box-shadow: var(--shadow-accent);
}

/* ---------- Hero / Profile ---------- */
.hero-section {
  margin-top: 80px;
  margin-bottom: 28px;
  padding: 44px 40px;
  display: flex;
  align-items: center;
  position: relative;
  flex-wrap: wrap;
  background: var(--bg-card);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transition: var(--tr-base);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255,255,255,0.45) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
  pointer-events: none;
}

.hero-section:hover {
  box-shadow: var(--shadow-hover);
}

.hero-avatar-wrap {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  margin-right: 2em;
}

.hero-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.3), var(--shadow-md);
  transition: var(--tr-base);
  display: block;
}

.hero-avatar-wrap::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,0.5), transparent 40%, rgba(102,126,234,0.15) 70%, rgba(118,75,162,0.1));
  pointer-events: none;
}

.hero-avatar:hover {
  transform: scale(1.02);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.4), var(--shadow-accent);
}

.hero-avatar-edit {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 32px;
  height: 32px;
  background: var(--accent-gradient);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
  transition: var(--tr-fast);
}

body.em .hero-avatar-edit {
  display: flex;
}

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

.hero-text {
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-name {
  font-size: 2.8rem;
  font-family: 'Noto Serif SC', serif;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: 0.12em;
  filter: drop-shadow(0 2px 6px rgba(102, 126, 234, 0.15));
}

.hero-slogan {
  font-size: 1.05rem;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
  font-weight: 300;
  margin-bottom: 16px;
  text-align: center;
}

.hero-title {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 2;
  text-align: center;
}

.hero-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  padding-left: 20px;
}

.hero-social a {
  color: var(--text-muted);
  font-size: 1.3rem;
  transition: var(--tr-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
}

.hero-social a:hover {
  color: var(--accent);
  background: var(--accent-subtle);
  transform: scale(1.12);
  box-shadow: var(--shadow-accent);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.65em;
  letter-spacing: 0.2em;
  opacity: 0.5;
  animation: scrollBounce 2.5s ease-in-out infinite;
}

.scroll-indicator .line {
  width: 1px;
  height: 24px;
  background: linear-gradient(var(--text-muted), transparent);
  opacity: 0.5;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

/* ---------- Carousel ---------- */
.carousel-section {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--bg-tertiary);
  box-shadow: var(--shadow-md);
}

/* 底部渐变遮罩 — 让圆点更清晰 */
.carousel-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, rgba(0,0,0,0.15));
  z-index: 5;
  pointer-events: none;
}

.carousel-section img,
.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.carousel-section img.active,
.carousel-img.active {
  opacity: 1;
}

.carousel-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--tr-fast);
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

.carousel-edit-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: var(--blur-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 0.8em;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: var(--tr-fast);
}

body.em .carousel-edit-btn {
  display: flex;
}

.carousel-edit-btn:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: var(--accent);
}

/* ---------- Content Grid ---------- */
.content-grid {
  display: flex;
  gap: 28px;
  margin-bottom: 20px;
  align-items: stretch;
}

#cS .content-image,
#iS .content-image {
  align-self: flex-start;
}

#aS .content-image {
  align-self: flex-start;
  aspect-ratio: 427 / 536;
}

#iS .content-grid {
  flex-direction: row-reverse;
}

.content-image {
  flex: 0 0 45%;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-tertiary);
  box-shadow: var(--shadow-sm);
}

.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.content-image:hover img {
  transform: scale(1.03);
}

.content-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.content-text .read-more-btn {
  margin-top: 4px;
}

/* ---------- Series Filter ---------- */
.series-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1.2em 0 0.8em;
}

.series-filter-item {
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.85em;
  cursor: pointer;
  background: rgba(255,255,255,0.30);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-muted);
  transition: var(--tr-base);
  user-select: none;
}

.series-filter-item:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  background: rgba(255,255,255,0.50);
}

.series-filter-item.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-accent);
}

.thumb-series {
  position: absolute;
  bottom: 6px;
  right: 6px;
  font-size: 0.65em;
  color: var(--text-muted);
  background: rgba(255,255,255,0.50);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  padding: 1px 8px;
  border-radius: 10px;
  white-space: nowrap;
  pointer-events: none;
}

/* ---------- Thumbnail Grid ---------- */
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.thumb-card {
  background: rgba(255, 255, 255, 0.40);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 10px;
  min-height: 84px;
  transition: var(--tr-base);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.thumb-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%);
  pointer-events: none;
}

[data-theme="dark"] .thumb-card {
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .thumb-card::before {
  display: none;
}

.thumb-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  background: rgba(255, 255, 255, 0.58);
}

.thumb-card.active {
  border-color: var(--accent);
  background: rgba(102, 126, 234, 0.10);
  box-shadow: var(--shadow-accent);
}

.thumb-card img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-right: 10px;
  flex-shrink: 0;
}

.thumb-card .thumb-info {
  flex: 1;
  min-width: 0;
}

.thumb-card .thumb-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.92em;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.thumb-card .thumb-desc {
  color: var(--text-muted);
  font-size: 0.78em;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Gallery Grid ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  padding: 16px 0;
}
.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--card-bg);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 12px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay span {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
/* ===== Gallery Lightbox ===== */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox .g-view {
  max-width: 90vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox .g-view img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
}
.gallery-lightbox .g-close {
  position: fixed;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  z-index: 10001;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.gallery-lightbox .g-close:hover { opacity: 1; }
.gallery-lightbox .g-prev,
.gallery-lightbox .g-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10001;
}
.gallery-lightbox .g-prev { left: 16px; }
.gallery-lightbox .g-next { right: 16px; }
.gallery-lightbox .g-prev:hover,
.gallery-lightbox .g-next:hover { background: rgba(255,255,255,0.2); }
.gallery-lightbox .g-cap {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  text-align: center;
  max-width: 80%;
}

.card-del-btn {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  background: var(--error);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 5;
  opacity: 0.85;
  transition: var(--tr-fast);
  line-height: 1;
}

body.em .card-del-btn {
  display: flex;
}

.card-del-btn:hover {
  opacity: 1;
}

.card-move-btn {
  display: none;
  position: absolute;
  z-index: 6;
  width: 22px;
  height: 18px;
  background: #8896ab;
  border: none;
  color: #fff;
  font-size: 9px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  transition: var(--tr-fast);
  line-height: 1;
  padding: 0;
}
body.em .card-move-btn {
  display: flex;
}
.card-move-btn:hover {
  opacity: 1;
  background: var(--accent);
}
.card-move-up {
  top: 4px;
  left: 4px;
  border-radius: 4px 4px 0 0;
}
.card-move-down {
  top: 22px;
  left: 4px;
  border-radius: 0 0 4px 4px;
}
/* poem-card: move buttons top-right */
.poem-card .card-move-up {
  top: 6px;
  right: 6px;
  left: auto;
  border-radius: 4px 4px 0 0;
}
.poem-card .card-move-down {
  top: 28px;
  right: 6px;
  left: auto;
  border-radius: 0 0 4px 4px;
}
/* business-card: move buttons on the left */
.business-card .card-move-up {
  top: 4px;
  left: 4px;
}
.business-card .card-move-down {
  top: 22px;
  left: 4px;
}
/* video-list-item: move buttons on the left */
.video-list-item .card-move-up {
  top: 4px;
  left: 4px;
}
.video-list-item .card-move-down {
  top: 22px;
  left: 4px;
}

/* ---------- Poems Grid ---------- */
.poems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.poem-card {
  background: rgba(255, 255, 255, 0.30);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  border: 1px solid var(--bg-glass-border);
  padding: 18px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--tr-base);
  position: relative;
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.poem-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 50%);
  pointer-events: none;
}

[data-theme="dark"] .poem-card {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .poem-card::before {
  display: none;
}

.poem-card:hover {
  background: rgba(255, 255, 255, 0.50);
  padding-left: 22px;
  border-left-color: var(--accent-light);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.poem-card .poem-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}

.poem-card .poem-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poem-card .poem-title {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.92em;
}

/* 无图片时的占位 */
.poem-card .poem-icon:empty,
.poem-card .poem-icon img[src=""] {
  display: none;
}

/* ---------- Video Section ---------- */
.video-module {
  background: var(--bg-card);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  padding: 30px 0;
  box-shadow: var(--shadow-md);
}

.vbl {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center 30%;
  filter: blur(30px) brightness(0.7);
  opacity: 0.35;
  z-index: 0;
  transition: background-image 0.5s ease;
}

[data-theme="dark"] .vbl {
  opacity: 0.2;
  filter: blur(30px) brightness(0.3);
}

.video-player-wrap {
  position: relative;
  z-index: 1;
  width: 72%;
  margin: 0 auto;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: var(--shadow-lg);
}

.video-player-wrap video,
.video-player-wrap iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
}

.video-player-wrap .video-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  overflow: hidden;
}

.video-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.video-player-wrap .video-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.video-player-wrap .video-cover .play-icon {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  transition: var(--tr-fast);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.video-player-wrap .video-cover:hover .play-icon {
  transform: scale(1.1);
  background: var(--accent);
}

.video-meta {
  position: relative;
  z-index: 1;
  width: 72%;
  margin: 18px auto 0;
  padding: 14px 20px;
  background: var(--bg-glass);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--tr-base);
  box-shadow: var(--shadow-sm);
}

.video-meta:hover {
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-hover);
}

.video-meta .video-title {
  color: var(--text-primary);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.video-meta .video-summary {
  color: var(--text-secondary);
  font-size: 0.82em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.video-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.video-list-item {
  background: rgba(255, 255, 255, 0.40);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 10px;
  transition: var(--tr-base);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.video-list-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%);
  pointer-events: none;
}

[data-theme="dark"] .video-list-item {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .video-list-item::before {
  display: none;
}

.video-list-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.video-list-item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 10px;
  flex-shrink: 0;
}

.video-list-item .video-list-title {
  font-size: 0.85em;
  font-weight: 500;
  color: var(--text-primary);
}

/* ---------- Business Grid ---------- */
.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.business-card {
  background: rgba(255, 255, 255, 0.30);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--tr-base);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 210px;
  box-shadow: var(--shadow-sm);
}

.business-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 50%);
  pointer-events: none;
}

[data-theme="dark"] .business-card {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .business-card::before {
  display: none;
}

.business-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.business-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.business-card img[src*="69e60c10ef558"] {
  object-position: center 80%;
}

.business-card .biz-img-edit {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s;
}
.em .business-card .biz-img-edit {
  opacity: 1;
}

.business-card .business-info {
  text-align: center;
  width: 100%;
  padding: 12px 14px;
}

.business-card .business-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95em;
}

.business-card .business-desc {
  color: var(--text-muted);
  font-size: 0.78em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.business-card .expand-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.7);
  padding: 4px;
  border-radius: 50%;
  font-size: 0.72em;
  opacity: 0;
  transition: opacity var(--tr-fast);
}

.business-card:hover .expand-icon {
  opacity: 1;
}

/* ---------- Comments ---------- */
.comment-item {
  background: rgba(255, 255, 255, 0.30);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid var(--bg-glass-border);
  transition: var(--tr-base);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.comment-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 50%);
  pointer-events: none;
}

[data-theme="dark"] .comment-item {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .comment-item::before {
  display: none;
}

.comment-item:hover {
  border-color: rgba(255,255,255,0.7);
}

.comment-main {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85em;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.comment-name {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9em;
}

.comment-time {
  color: var(--text-muted);
  font-size: 0.78em;
}

.comment-text {
  color: var(--text-primary);
  font-size: 0.9em;
  line-height: 1.6;
}

.comment-actions {
  font-size: 0.8em;
  color: var(--text-muted);
  margin-top: 6px;
}

.comment-actions i {
  cursor: pointer;
  margin-right: 8px;
  transition: var(--tr-fast);
}

.comment-actions i:hover {
  color: var(--error);
}

.comment-replies {
  margin-top: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 6px;
}

[data-theme="dark"] .comment-replies {
  background: rgba(255, 255, 255, 0.04);
}

.comment-reply {
  font-size: 0.85em;
  padding: 4px 0;
  color: var(--text-secondary);
}

.comment-reply-input-area {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .comment-reply-input-area {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.emoji-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 1.2em;
}

.emoji-bar span {
  cursor: pointer;
  transition: var(--tr-fast);
  filter: grayscale(0.3);
}

.emoji-bar span:hover {
  transform: scale(1.3);
  filter: grayscale(0);
}

.reply-form {
  display: flex;
  gap: 10px;
}

.reply-form input {
  flex: 1;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--bg-glass-border);
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-primary);
  font-size: 0.85em;
  font-family: inherit;
  outline: none;
  transition: var(--tr-fast);
}

.reply-form input:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.reply-form button {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.85em;
  font-family: inherit;
  transition: var(--tr-fast);
}

.reply-form button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

/* ---------- Read More Button ---------- */
.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.82em;
  cursor: pointer;
  padding: 7px 24px;
  margin-top: 16px;
  border: 1px solid rgba(102, 126, 234, 0.25);
  border-radius: var(--radius-full);
  background: rgba(102, 126, 234, 0.06);
  font-family: inherit;
  letter-spacing: 0.03em;
  transition: var(--tr-base);
}

.read-more-btn:hover {
  color: #fff;
  background: var(--accent-gradient);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.read-more-btn i {
  font-size: 0.85em;
  transition: transform var(--tr-fast);
}

.read-more-btn:hover i {
  transform: translateX(4px);
}

/* ---------- Preview Content Styles ---------- */
.itt {
  font-size: 1.35em;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
  font-family: 'Noto Serif SC', serif;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.5;
}

.ita {
  font-size: 0.8em;
  color: var(--text-muted);
  margin-bottom: 1.2em;
  letter-spacing: 0.05em;
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  position: relative;
}

.ita::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 1px;
  opacity: 0.4;
}

.preview-body {
  position: relative;
}
.content-text .preview-body {
  overflow: hidden;
}

.preview-body p,
.preview-body div {
  text-indent: 2em !important;
  margin-bottom: 0.5em;
  color: var(--text-primary);
  line-height: 1.95;
  font-size: 0.95em;
}

.preview-body p:last-child {
  margin-bottom: 0;
}

.img-block {
  margin: 1em 0;
  text-align: center;
  text-indent: 0;
  line-height: 0;
}

.img-block img {
  display: inline-block;
  max-width: 100%;
  border-radius: var(--radius-sm);
}

.img-block .img-caption {
  display: block;
  margin-top: 0.5em;
  line-height: 1.6;
  color: var(--text-muted);
  font-size: 0.88em;
  text-align: center;
  text-indent: 0;
}

/* ---------- Article Body ---------- */
.ab {
  font-size: 1rem;
  line-height: 2;
  color: var(--text-primary);
}

/* ---------- Article Detail (Modal) ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-body);
  background-attachment: fixed;
  z-index: 2000;
  overflow-y: auto;
}

.modal-content {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 80px 24px 40px;
}

.modal-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  padding: 0 24px;
  background: var(--bg-glass);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border-bottom: 1px solid var(--bg-glass-border);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.modal-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  pointer-events: none;
}

.modal-header h3 {
  font-size: 1.05rem;
  color: var(--text-primary);
  flex: 1;
  text-align: center;
}

.modal-close {
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-muted);
  background: none;
  border: none;
  transition: var(--tr-fast);
  padding: 4px 8px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--accent);
}

/* ---------- Rich Content ---------- */
.rich-content {
  font-size: 1rem;
  line-height: 2;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.rich-content p,
.rich-content div,
.rich-content section,
.rich-content article {
  margin-bottom: 1em;
  text-indent: 2em;
}

.rich-content h1, .rich-content h2, .rich-content h3,
.rich-content h4, .rich-content h5, .rich-content h6 {
  margin-top: 1.8em;
  margin-bottom: 1em;
  text-indent: 0;
  font-weight: 700;
}

.rich-content h1 { font-size: 1.8rem; }
.rich-content h2 { font-size: 1.5rem; }
.rich-content h3 { font-size: 1.25rem; }

.rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
  margin: 0 auto;
}

.rich-content .img-block img {
  width: 60%;
}

.rich-content .article-image-row img {
  display: inline-block;
  vertical-align: top;
}

.rich-content .img-caption {
  text-align: center;
  font-size: 0.85em;
  color: var(--text-muted);
  text-indent: 0;
  margin-top: 0.6em;
  margin-bottom: 1.5em;
}

.rich-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5em 0 0.5em 16px;
  color: var(--text-secondary);
  background: var(--accent-subtle);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  text-indent: 0;
  margin-bottom: 1em;
}

.rich-content a {
  color: var(--accent);
  text-decoration: none;
}

.rich-content a:hover {
  text-decoration: underline;
}

.rich-content table {
  width: 100%;
  border-collapse: collapse;
  text-indent: 0;
  margin-bottom: 1em;
}

.rich-content th, .rich-content td {
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 12px;
}

[data-theme="dark"] .rich-content th,
[data-theme="dark"] .rich-content td {
  border-color: rgba(255, 255, 255, 0.08);
}

.rich-content th {
  background: var(--accent-subtle);
  font-weight: 600;
}

/* ---------- Longmarch Scoped Enhanced Styles ---------- */
.lm-rich .rich-content {
  font-size: 1.05rem;
  line-height: 2.05;
  letter-spacing: 0.025em;
  max-width: 740px;
  margin: 0 auto;
}

.lm-rich .rich-content p,
.lm-rich .rich-content div:not(.article-image-row):not(.img-caption),
.lm-rich .rich-content section,
.lm-rich .rich-content article {
  margin-bottom: 1.2em;
  text-indent: 2em;
}

.lm-rich .rich-content h1, .lm-rich .rich-content h2,
.lm-rich .rich-content h3, .lm-rich .rich-content h4,
.lm-rich .rich-content h5, .lm-rich .rich-content h6 {
  margin-top: 2.2em;
  margin-bottom: 0.8em;
  text-indent: 0;
  letter-spacing: 0.04em;
}

.lm-rich .rich-content h2 {
  font-size: 1.45rem;
  position: relative;
  padding-bottom: 0.4em;
}

.lm-rich .rich-content h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent-gradient, linear-gradient(135deg, #667eea, #764ba2));
  border-radius: 4px;
  margin-top: 0.4em;
}

.lm-rich .rich-content h3 {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.lm-rich .rich-content img[onclick] {
  cursor: pointer;
}

.lm-rich .rich-content img[onclick]:hover {
  box-shadow: var(--shadow-md, 0 8px 32px rgba(0,0,0,0.1));
  transform: scale(1.005);
}

/* ---- Article Card Index ---- */
.lm-article-index {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 4px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lm-article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  margin-bottom: 8px;
  border: 1px solid var(--lms-card-border);
  border-radius: 20px;
  background: var(--lms-card-bg);
  color: var(--lms-earth);
  font-size: 0.8rem;
  font-family: 'Noto Sans SC', system-ui, sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}
.lm-article-back:hover {
  background: rgba(255,255,255,0.85);
  color: var(--lms-rust);
  border-color: rgba(184,69,46,0.3);
}

/* ---------- Sub-Article Card Grid ---------- */
.lm-article-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
  padding: 8px 12px;
}

.lm-article-card {
  display: flex;
  align-items: stretch;
  background: var(--lms-card-bg);
  border: 1px solid var(--lms-card-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(62,42,31,0.04);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(4px);
}

.lm-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(62,42,31,0.08);
  border-color: rgba(184,149,106,0.3);
}

.lm-article-card-img {
  flex: 0 0 160px;
  overflow: hidden;
  background: #f0ede8;
}

.lm-article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.lm-article-card:hover .lm-article-card-img img {
  transform: scale(1.08);
}

.lm-article-card-body {
  flex: 1;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lm-article-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.45;
  color: var(--lms-text);
  letter-spacing: 0.03em;
  font-family: 'Noto Serif SC', 'STSong', serif;
}

.lm-article-card-sub {
  font-size: 0.82rem;
  color: var(--lms-earth);
  opacity: 0.65;
  margin: 0 0 12px;
  line-height: 1.5;
}

.lm-article-card-cta {
  font-size: 0.78rem;
  color: var(--lms-rust);
  font-weight: 500;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lm-article-card-cta i {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.lm-article-card:hover .lm-article-card-cta i {
  transform: translateX(4px);
}

[data-theme="dark"] .lm-article-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
}

/* ---------- Article Navigation Bar ---------- */
.lm-article-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-color, #eee);
  flex-wrap: wrap;
}

.lm-article-nav button {
  border: none;
  background: var(--btn-bg, rgba(0,0,0,0.04));
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-color, #333);
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lm-article-nav button:hover {
  background: var(--btn-hover-bg, rgba(0,0,0,0.08));
}

.lm-article-back {
  font-weight: 500;
  margin-right: auto;
}

.lm-article-position {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-muted, #999);
  letter-spacing: 0.03em;
}

[data-theme="dark"] .lm-article-nav {
  border-bottom-color: var(--border-color, #333);
}

[data-theme="dark"] .lm-article-nav button {
  background: var(--btn-bg, rgba(255,255,255,0.06));
  color: var(--text-color, #ddd);
}

[data-theme="dark"] .lm-article-nav button:hover {
  background: var(--btn-hover-bg, rgba(255,255,255,0.1));
}

/* ---------- Gallery wide variant ---------- */
.lms-gallery-wide {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .lm-article-card {
    flex-direction: column;
  }
  .lm-article-card-img {
    flex: 0 0 180px;
  }
  .lm-article-nav button {
    font-size: 0.8rem;
    padding: 5px 10px;
  }
}

.lm-rich .rich-content .img-caption {
  font-size: 0.85em;
  color: var(--text-muted);
  text-indent: 0;
  margin-top: 0.5em;
  margin-bottom: 1.8em;
  letter-spacing: 0.03em;
}

.lm-rich .rich-content blockquote {
  position: relative;
  border-left: none;
  padding: 1.2em 1.6em 1.2em 2em;
  background: linear-gradient(135deg, var(--accent-subtle, rgba(102,126,234,0.06)) 0%, rgba(255,255,255,0.3) 100%);
  border-radius: var(--radius-md, 12px);
  text-indent: 0;
  margin: 1.8em 0;
  font-style: italic;
}

.lm-rich .rich-content blockquote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8em;
  bottom: 0.8em;
  width: 3px;
  background: var(--accent-gradient, linear-gradient(135deg, #667eea, #764ba2));
  border-radius: 4px;
}

[data-theme="dark"] .lm-rich .rich-content blockquote {
  background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(255,255,255,0.02) 100%);
}

.lm-rich .rich-content blockquote p {
  margin-bottom: 0.6em;
  text-indent: 0;
}

.lm-rich .rich-content blockquote p:last-child {
  margin-bottom: 0;
}

.lm-rich .rich-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--text-muted) 20%, var(--text-muted) 80%, transparent);
  margin: 2.4em 0;
  opacity: 0.3;
}

.lm-rich .rich-content video {
  max-width: 100%;
  border-radius: var(--radius-md, 12px);
  display: block;
  margin: 0 auto;
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.06));
}

@media (max-width: 600px) {
  .lm-rich .rich-content {
    font-size: 0.95rem;
    line-height: 1.9;
  }
  .lm-rich .rich-content h2 { font-size: 1.25rem; }
  .lm-rich .rich-content h3 { font-size: 1.05rem; }
  .lm-rich .rich-content blockquote {
    padding: 0.8em 1em 0.8em 1.4em;
  }
  .lm-rich .rich-content .article-image-row img {
    width: 100% !important;
  }
}

/* ===== 诗书长征路 · 内容排版（极简高级电影感） ===== */
.lm-img-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 2em 0;
}
.lm-img-row-2 img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-md, 12px);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.06));
}
.lm-img-full {
  margin: 2em 0;
}
.lm-img-full img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-md, 12px);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.06));
}
.lm-gap {
  margin-top: 1.8em;
}
.lm-strong {
  font-size: 1.1em;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}
.lm-strong2 {
  font-size: 1.15em;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.lm-signoff {
  text-align: right;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 2em;
}
.lm-video {
  margin: 2em 0;
}
.lm-video video {
  width: 100%;
  border-radius: var(--radius-md, 12px);
  display: block;
  box-shadow: var(--shadow-md, 0 4px 20px rgba(0,0,0,0.1));
}
.lm-poem-block {
  text-align: center;
  margin: 2.5em 0;
  padding: 2em 1em;
  border-top: 1px solid rgba(128,128,128,0.15);
  border-bottom: 1px solid rgba(128,128,128,0.15);
}
.lm-poem-block h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
  text-indent: 0;
  letter-spacing: 0.08em;
}
.lm-poem-author {
  color: var(--text-muted);
  font-size: 0.9em;
  margin-bottom: 1.2em;
}
.lm-poem {
  font-size: 1.05rem;
  line-height: 2.2;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}
.lm-poem p {
  text-indent: 0;
  margin: 0;
}
.lm-poem-date {
  color: var(--text-muted);
  font-size: 0.85em;
  margin-top: 1em;
}
@media (max-width: 600px) {
  .lm-img-row-2 {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .lm-img-row-2 img {
    height: auto;
  }
  .lm-poem {
    font-size: 1rem;
  }
}

/* ---------- Article Actions ---------- */

/* ---------- Article Actions ---------- */
.article-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 28px 0 20px;
  padding: 16px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  backdrop-filter: var(--blur-sm);
}

/* ---------- Share Sheet (底部弹窗) ---------- */
/* ==========================================
   Share Sheet — 底部弹窗（精简化）
   ========================================== */
.share-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.share-sheet-overlay.active { opacity: 1; }
.share-sheet-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.share-sheet {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--bg-primary);
  border-radius: 24px 24px 0 0;
  padding: 8px 28px 36px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.share-sheet-overlay.active .share-sheet {
  transform: translateY(0);
}
.share-sheet-desktop {
  max-width: 380px;
  padding: 8px 24px 36px;
}
.share-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--text-muted);
  margin: 0 auto 20px;
  opacity: 0.25;
}
.share-title {
  font-family: 'Noto Serif SC', serif;
  text-align: center;
  font-size: 1.05em;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}
.share-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.95em;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.18s ease;
  margin-bottom: 10px;
}
.share-btn:hover {
  background: var(--accent-subtle);
  transform: translateX(2px);
}
.share-btn:active {
  transform: scale(0.98);
}
.share-btn .s-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  color: #fff;
}
.share-btn .s-icon.ic-wechat { background: #07c160; }
.share-btn .s-icon.ic-moments { background: #ffb200; }
.share-btn .s-icon.ic-link { background: var(--accent); }
.share-btn .s-text {
  flex: 1;
  text-align: left;
  font-weight: 500;
}
.share-btn .s-sub {
  font-size: 0.82em;
  color: var(--text-muted);
  font-weight: 400;
}
.share-btn .s-arrow {
  color: var(--text-muted);
  font-size: 14px;
  opacity: 0.4;
}
/* QR 码区域 */
.share-qr-wrap {
  text-align: center;
}
.share-qr-wrap-mobile {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(128,128,128,0.12);
}
.share-qr-wrap-hero {
  margin: 0 0 16px;
  padding: 28px 0 22px;
  background: var(--bg-secondary);
  border-radius: 16px;
}
.share-qr-label {
  font-size: 0.82em;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}
.share-qr-wrap-hero .share-qr-label {
  margin-top: 16px;
  font-size: 0.9em;
  color: var(--accent);
  font-weight: 500;
}
.share-qr-wrap-mobile .share-qr-label {
  margin-bottom: 12px;
}
.share-qr {
  display: inline-block;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.share-qr img { display: block; }
.share-qr canvas { display: block; }
.share-cancel {
  display: block;
  width: 100%;
  padding: 14px;
  background: none;
  border: 1px solid rgba(128,128,128,0.15);
  border-radius: 14px;
  font-size: 0.92em;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  margin-top: 12px;
  transition: all 0.15s;
}
.share-cancel:hover {
  border-color: rgba(128,128,128,0.3);
  color: var(--text-primary);
}

[data-theme="dark"] .article-actions {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255,255,255,0.03);
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid transparent;
  font-size: 0.9em;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  transition: var(--tr-fast);
  font-family: inherit;
}

.action-btn:hover {
  background: var(--accent-subtle);
  color: var(--accent);
  border-color: rgba(102, 126, 234, 0.15);
}

.action-btn .icon { font-size: 1.15em; }
.action-btn.liked .icon { color: var(--error); }
.action-btn.collected .icon { color: #f1c40f; }

/* ---------- Author Card ---------- */
.author-block {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  margin-top: 32px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(122, 159, 196, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: box-shadow var(--tr-fast), transform var(--tr-fast);
}

.author-block::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
  border-radius: 2px;
}

.author-block:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

[data-theme="dark"] .author-block {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.author-avatar-wrap {
  flex-shrink: 0;
  position: relative;
}

.author-avatar-wrap img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.author-avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid rgba(102, 126, 234, 0.2);
  pointer-events: none;
}

.author-info {
  flex: 1;
  min-width: 0;
}

.author-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.author-bio {
  font-size: 0.88em;
  color: var(--text-secondary);
  line-height: 1.7;
  letter-spacing: 0.02em;
  margin-top: 6px;
}

.author-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.82em;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--tr-fast);
}

.author-link:hover {
  color: var(--accent-dark);
}

.author-link i {
  font-size: 0.85em;
  transition: transform var(--tr-fast);
}

.author-link:hover i {
  transform: translateX(3px);
}

/* ---------- Comment Section (in Article) ---------- */
.comment-section {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 20px;
  margin-top: 20px;
}

[data-theme="dark"] .comment-section {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.comment-section h4 {
  margin-bottom: 14px;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-section h4 i { color: var(--accent); }

.comment-list {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 14px;
}

.comment-list .ci {
  display: block;
  background: rgba(0, 0, 0, 0.02);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  font-size: 0.88em;
}

[data-theme="dark"] .comment-list .ci {
  background: rgba(255, 255, 255, 0.03);
}

.comment-list .ci .ct {
  font-size: 0.78em;
  color: var(--text-muted);
  margin-left: 10px;
}

.comment-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85em;
  padding: 20px;
}

.comment-form {
  display: flex;
  gap: 10px;
}

.comment-form input {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--bg-glass-border);
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-primary);
  font-size: 0.85em;
  font-family: inherit;
  outline: none;
  transition: var(--tr-fast);
}

.comment-form input:focus {
  border-color: var(--accent);
}

.comment-form button {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85em;
  transition: var(--tr-fast);
}

.comment-form button:hover {
  opacity: 0.9;
  box-shadow: var(--shadow-accent);
}

/* ---------- Edit Mode ---------- */
.edit-indicator {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 1000;
  background: var(--ok);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78em;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  display: none;
  align-items: center;
  gap: 6px;
  animation: pulse 2s infinite;
}

body.em .edit-indicator {
  display: flex;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Draft Button */
.draft-btn {
  position: fixed;
  top: 12px;
  left: 150px;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: var(--blur-sm);
  color: var(--text-secondary);
  border: 1px solid var(--bg-glass-border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78em;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: var(--tr-fast);
  font-family: inherit;
}

body.em .draft-btn {
  display: flex;
}

.draft-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Admin Exit Button */
.admin-btn {
  position: fixed;
  bottom: 70px;
  right: 20px;
  background: var(--error);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  display: none;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  z-index: 100;
  font-family: inherit;
  font-size: 0.85em;
  transition: var(--tr-fast);
}

body.em .admin-btn {
  display: flex;
}

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

/* ---------- Admin Panel ---------- */
.admin-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: var(--blur-sm);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.admin-panel {
  max-width: 520px;
  width: 92%;
  margin: 0 auto;
}

.admin-body {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-lg);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.admin-section-title {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}

.admin-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.admin-action-btn {
  background: var(--bg-glass-light);
  border: 1px solid var(--bg-glass-border);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-primary);
  font-size: 0.82em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--tr-fast);
  font-family: inherit;
  justify-content: center;
  text-decoration: none;
}

.admin-action-btn:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent);
}

.admin-action-btn.primary {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
}

.admin-action-btn.primary:hover {
  opacity: 0.9;
}

.admin-action-btn.danger {
  border-color: rgba(231, 76, 60, 0.25);
  color: var(--error);
}

.admin-action-btn.danger:hover {
  background: rgba(231, 76, 60, 0.08);
  border-color: var(--error);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ok);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.88em;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  white-space: nowrap;
  pointer-events: none;
}

.toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.error {
  background: var(--error);
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 36px 24px;
  color: var(--text-muted);
  font-size: 0.82em;
  line-height: 2;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--tr-fast);
}

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

.footer .admin-access-btn {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.08);
  color: var(--text-muted);
  padding: 7px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  margin-top: 14px;
  transition: var(--tr-fast);
  font-family: inherit;
  font-size: 0.9em;
  letter-spacing: 0.03em;
}

.footer .admin-access-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
  box-shadow: var(--shadow-accent);
}

/* ---------- Share Popup ---------- */
.share-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: var(--blur-sm);
  z-index: 3500;
  display: none;
  align-items: center;
  justify-content: center;
}

.share-box {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-lg);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 340px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.share-box .share-title {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.share-actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 13px;
  transition: var(--tr-fast);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-family: inherit;
}

.share-btn:hover {
  background: var(--accent-subtle);
  color: var(--accent);
}

.share-btn i {
  font-size: 26px;
}

.share-url-box {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}

.share-url-box input {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--bg-glass-border);
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-primary);
  font-size: 0.82em;
  outline: none;
  font-family: inherit;
}

.share-url-box input:focus {
  border-color: var(--accent);
}

.share-url-box button {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--accent-gradient);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: var(--tr-fast);
}

.share-url-box button:hover {
  opacity: 0.9;
}

#qrcode {
  margin: 14px auto 0;
  width: 160px;
  height: 160px;
}

/* ---------- Carousel Editor ---------- */
.carousel-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.carousel-editor-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--bg-glass-border);
  background: var(--bg-card);
}

.carousel-editor-item img {
  width: 100%;
  height: 85px;
  object-fit: cover;
  display: block;
}

.carousel-editor-actions {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.03);
}

.carousel-editor-actions button {
  flex: 1;
  padding: 4px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
  transition: var(--tr-fast);
}

.carousel-replace-btn {
  background: var(--accent-subtle);
  color: var(--accent);
}

.carousel-replace-btn:hover {
  background: rgba(102, 126, 234, 0.15);
}

.carousel-delete-btn {
  background: rgba(231, 76, 60, 0.08);
  color: var(--error);
}

.carousel-delete-btn:hover {
  background: rgba(231, 76, 60, 0.15);
}

.carousel-add-btn {
  width: 100%;
  padding: 16px;
  border: 2px dashed var(--bg-glass-border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13px;
  font-family: inherit;
  transition: var(--tr-fast);
  grid-column: 1 / -1;
}

.carousel-add-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Draft Manager ---------- */
.draft-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  border: 1px solid var(--bg-glass-border);
  transition: var(--tr-fast);
}

.draft-item:hover {
  border-color: var(--accent);
}

.draft-item-info {
  flex: 1;
  min-width: 0;
}

.draft-item-title {
  font-size: 0.85em;
  color: var(--text-primary);
}

.draft-item-time {
  font-size: 0.75em;
  color: var(--text-muted);
}

.draft-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.draft-item-actions button {
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid var(--bg-glass-border);
  background: var(--bg-glass-light);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.78em;
  font-family: inherit;
  transition: var(--tr-fast);
}

.draft-item-actions button:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.draft-item-actions .draft-delete:hover {
  color: var(--error);
  border-color: var(--error);
}

.draft-empty {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
  font-size: 0.85em;
}

/* ---------- Content Editable ---------- */
[contenteditable="true"] {
  outline: 2px dashed var(--accent) !important;
  outline-offset: 2px;
  border-radius: 2px;
  transition: var(--tr-fast);
}

[contenteditable="true"]:focus {
  outline: 2px solid var(--accent) !important;
  background: var(--accent-subtle);
}

.edit-save-bar {
  display: none;
  text-align: center;
  padding: 10px 0;
  margin-bottom: 12px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
  animation: fadeSlideDown 0.3s ease;
}

body.em .edit-save-bar {
  display: block;
}

.edit-save-btn {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  padding: 6px 24px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  transition: var(--tr-fast);
}

.edit-save-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Preview Save Button ---------- */
.preview-save-btn {
  display: none;
  margin-top: 6px;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  padding: 3px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
  transition: var(--tr-fast);
}

body.em .preview-save-btn {
  display: inline-block;
}

.preview-save-btn:hover {
  opacity: 0.9;
}

/* ---------- Confirm Dialog ---------- */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: var(--blur-sm);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-box {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-lg);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 300px;
  width: 90%;
}

.confirm-box p {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.confirm-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.confirm-buttons button {
  padding: 8px 28px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  font-size: 0.88em;
  font-family: inherit;
  transition: var(--tr-fast);
}

.confirm-cancel {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
}

.confirm-cancel:hover {
  background: rgba(0, 0, 0, 0.1);
}

.confirm-ok {
  background: var(--error);
  color: #fff;
}

.confirm-ok:hover {
  opacity: 0.85;
}

/* ---------- Password Input ---------- */
.password-input {
  margin: 16px 0 10px;
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--bg-glass-border);
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
  text-align: center;
}

.password-input:focus {
  border-color: var(--accent);
}

/* ---------- Share Bar ---------- */
.share-bar {
  display: none;
  padding: 10px 0 14px;
  margin-bottom: 14px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
  text-align: center;
  animation: fadeSlideDown 0.3s ease;
}

.share-bar.visible {
  display: block;
}

/* ---------- Tmp/Compat Classes ---------- */
.ci {
  display: inline;
  font-size: 0.85em;
  color: var(--text-primary);
}

.ci + .ci {
  margin-left: 16px;
}

.ci .ct {
  font-size: 0.82em;
  color: var(--text-muted);
  margin-left: 8px;
}

.vs {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .content-grid,
  #cS .content-grid {
    flex-direction: column;
    gap: 24px;
  }

  .content-image {
    flex: none;
    width: 100%;
    aspect-ratio: 16/10;
    max-height: 360px;
  }

  .content-text {
    flex: none;
    padding-top: 0;
  }

  .thumb-grid,
  .poems-grid,
  .business-grid,
  .video-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-player-wrap,
  .video-meta {
    width: 85%;
  }

  .carousel-section {
    height: 360px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 54px;
  }

  .ctn {
    padding: 0 14px;
  }

  .sec {
    padding: 20px 14px;
    margin-bottom: 16px;
  }

  .section-title {
    font-size: 1.1rem;
  }

  .nav {
    overflow-x: auto;
    justify-content: flex-start;
    gap: 4px;
    padding: 0 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar { display: none; }

  .nav a {
    font-size: 0.68em;
    padding: 4px 8px;
    white-space: nowrap;
  }

  .theme-toggle {
    top: 8px;
    right: 12px;
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .hero-section {
    margin-top: 68px;
    padding: 24px 20px;
    flex-direction: column;
    text-align: center;
  }

  .hero-avatar-wrap {
    margin-right: 0;
    margin-bottom: 16px;
  }

  .hero-avatar {
    width: 100px;
    height: 100px;
  }

  .hero-name {
    font-size: 2rem;
    letter-spacing: 0.08em;
  }

  .hero-slogan {
    font-size: 0.9rem;
  }

  .hero-title {
    font-size: 0.8rem;
  }

  .hero-social {
    margin-left: 0;
    padding-left: 0;
    margin-top: 16px;
    justify-content: center;
    gap: 12px;
  }

  .carousel-section {
    height: 240px;
    border-radius: var(--radius-md);
  }

  .thumb-grid,
  .poems-grid,
  .business-grid,
  .video-list {
    grid-template-columns: 1fr;
  }

  .thumb-card {
    min-height: 72px;
    padding: 8px;
  }

  .video-player-wrap,
  .video-meta {
    width: 90%;
  }

  .article-actions {
    gap: 6px;
    flex-wrap: wrap;
  }

  .action-btn {
    font-size: 0.78em;
    padding: 6px 10px;
  }

  .footer {
    font-size: 0.72em;
  }
}

@media (max-width: 480px) {
  .carousel-section {
    height: 180px;
  }

  .nav a {
    font-size: 0.62em;
    padding: 3px 6px;
  }

  .hero-name {
    font-size: 1.6rem;
  }

  .sec {
    padding: 18px 14px;
  }
}

/* ---- 查看完整专辑按钮 ---- */
.lms-album-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lms-red, #C22A1F);
  color: #fff;
  padding: 12px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: all 0.3s ease;
}
.lms-album-link:hover {
  background: #a8231a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(194,42,31,0.25);
}
.lms-album-link i { font-size: 0.85em; transition: transform 0.3s ease; }
.lms-album-link:hover i { transform: translateX(4px); }
.lms-hero-cta {
  text-align: center;
  padding: 0 20px 24px;
}

/* ---- 底部装饰 ---- */
.lms-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 20px 40px;
  max-width: 600px;
  margin: 0 auto;
}
.lms-foot-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lms-gold, #D4AF37), transparent);
  opacity: 0.4;
}
.lms-foot-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.lms-foot-star {
  font-size: 0.5rem;
  color: var(--lms-red, #C22A1F);
  opacity: 0.5;
}
.lms-foot-text {
  font-size: 0.7rem;
  color: var(--lms-brown, #8B5A2B);
  letter-spacing: 0.1em;
  opacity: 0.6;
}

/* ---- 8日卡片：立体徽章 ---- */


/* ===== Day cards ===== */
.lms-day-strip {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 20px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.lms-day-card {
  flex: 0 0 120px;
  background: linear-gradient(160deg, #fdf8f1 0%, #f5ede0 100%);
  border-radius: 12px;
  padding: 18px 12px 14px;
  cursor: pointer;
  text-align: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 3px 12px rgba(62,42,31,0.07), 0 1px 3px rgba(62,42,31,0.04), inset 0 1px 0 rgba(255,255,255,0.8);
  border: 1px solid rgba(184,149,106,0.15);
}
.lms-day-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 32px rgba(62,42,31,0.12), 0 3px 8px rgba(62,42,31,0.06), inset 0 1px 0 rgba(255,255,255,0.8);
  border-color: rgba(184,149,106,0.3);
}
.lms-day-card .dc-label {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--lms-red, #C22A1F);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.lms-day-card .dc-date {
  font-size: 0.72rem;
  color: var(--lms-brown, #8B5A2B);
  opacity: 0.55;
  letter-spacing: 0.02em;
}
.lms-day-card:active {
  transform: translateY(-1px) scale(0.98);
}
@media (max-width: 800px) {
  .lms-day-strip { gap: 6px; padding: 0 10px 14px; overflow-x: auto; justify-content: flex-start; -webkit-overflow-scrolling: touch; }
  .lms-day-card { flex: 0 0 88px; padding: 14px 6px 10px; }
}

/* ========== 诗书长征路 · 特别栏目（专题重设计） ========== */

/* --- 背景暖调 --- */
#lmS {
  position: relative;
}
#lmS::before {
  content: '';
  position: absolute; inset: 0;
  background: #f8f6f3;
  pointer-events: none;
  z-index: 0;
}
[data-theme="dark"] #lmS::before { background: rgba(60,55,50,0.15); }

/* --- 特别专辑 Badge --- */
/* --- 90周年大标 --- */
.lm-90-badge {
  display: inline-block;
  font-family: 'Noto Serif SC', serif;
  font-size: 1.05em;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #b91c1c;
  border: 2px solid rgba(185,28,28,0.3);
  padding: 6px 20px;
  border-radius: 4px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
[data-theme="dark"] .lm-90-badge { border-color: rgba(185,28,28,0.4); color: #ef4444; }

.lm-section-badge {
  display: inline-block;
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #b91c1c;
  border: 1px solid rgba(185,28,28,0.25);
  padding: 3px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* --- 专题标题 --- */
.lm-section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.lm-header-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 2em;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.1em;
  margin: 0;
  line-height: 1.2;
}
[data-theme="dark"] .lm-header-title { color: #e8e4de; }
.lm-header-subtitle {
  font-size: 0.88em;
  color: #8A7F6F;
  letter-spacing: 0.06em;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* --- 元数据（日期·地点） --- */
.lm-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82em;
  color: #8A7F6F;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}
.lm-header-meta i { margin-right: 4px; color: #b91c1c; opacity: 0.7; }
.lm-header-dot { opacity: 0.3; }

/* --- 时间线导航（踩点→会师→重走→进学校） --- */
.lm-header-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}
.lm-tl-dot {
  font-size: 0.78em;
  color: #8A7F6F;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #ddd;
  background: transparent;
  white-space: nowrap;
  transition: all 0.25s ease;
}
.lm-tl-dot.active {
  background: #b91c1c;
  color: #fff;
  border-color: #b91c1c;
}
[data-theme="dark"] .lm-tl-dot { border-color: rgba(255,255,255,0.12); color: var(--text-secondary); }
[data-theme="dark"] .lm-tl-dot.active { background: #b91c1c; color: #fff; border-color: #b91c1c; }
.lm-tl-line {
  flex: 1;
  height: 1px;
  background: #ddd;
  min-width: 12px;
}
[data-theme="dark"] .lm-tl-line { background: rgba(255,255,255,0.1); }

/* ========== 诗书长征路 · 逐日导航（时间线圆点） ========== */

/* --- Day Navigation (timeline dots) --- */
.lm-day-nav {
  position: relative;
  z-index: 1;
  margin-bottom: 36px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.lm-day-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: min-content;
  padding: 4px 0;
}
.lm-day-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.25s ease;
  min-width: 72px;
  position: relative;
}
.lm-day-dot:hover { background: rgba(181,90,44,0.06); }
.lm-day-dot.active { background: rgba(181,90,44,0.1); }
.lm-day-dot-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 0.78em;
  font-weight: 600;
  color: #8A7F6F;
  background: #e8e4de;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.lm-day-dot.active .lm-day-dot-num {
  background: #b91c1c;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(185,28,28,0.15);
}
.lm-day-dot:hover .lm-day-dot-num {
  border-color: rgba(185,28,28,0.3);
}
[data-theme="dark"] .lm-day-dot-num { color: var(--text-secondary); background: rgba(255,255,255,0.08); }
[data-theme="dark"] .lm-day-dot.active .lm-day-dot-num { background: #b91c1c; color: #fff; }
.lm-day-dot-label {
  font-size: 0.7em;
  color: #8A7F6F;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.lm-day-dot.active .lm-day-dot-label { color: #b91c1c; font-weight: 600; }
.lm-day-dot-date {
  font-size: 0.62em;
  color: #aaa;
  white-space: nowrap;
}
[data-theme="dark"] .lm-day-dot-date { color: var(--text-muted); }
.lm-day-connector {
  display: block;
  width: 24px;
  height: 1px;
  background: #ddd;
  flex-shrink: 0;
}
[data-theme="dark"] .lm-day-connector { background: rgba(255,255,255,0.1); }

/* --- Red Route Map --- */
.lm-map-container {
  width: 100%;
  height: 520px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  border: 1px solid #e6e2db;
  z-index: 0;
}
[data-theme="dark"] .lm-map-container { border-color: rgba(255,255,255,0.08); }
.lm-map-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 12px;
  font-size: 0.8em;
  color: var(--text-secondary);
}
.lm-map-footer span { display: inline-flex; align-items: center; gap: 4px; }
.lm-marker-major {
  background: none !important;
  border: none !important;
  font-size: 20px;
  color: #B55A2C;
  text-align: center;
  text-shadow: 0 0 6px rgba(181,90,44,0.4), 0 0 2px #fff;
}
.lm-marker-minor {
  background: none !important;
  border: none !important;
  font-size: 12px;
  color: #B55A2C;
  opacity: 0.8;
  text-align: center;
}
/* Prevent Leaflet from interfering with site styles */
.lm-map-container .leaflet-container { font-family: inherit; }
/* Permanent marker labels */
.lm-marker-label {
  font-family: 'Noto Sans SC', sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #2C2C2C !important;
  background: rgba(255,255,255,0.92) !important;
  border: 1px solid rgba(181,90,44,0.3) !important;
  border-radius: 6px !important;
  padding: 3px 8px !important;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1) !important;
  white-space: nowrap !important;
}
[data-theme="dark"] .lm-marker-label {
  background: rgba(40,40,40,0.92) !important;
  color: #e8e4de !important;
  border-color: rgba(181,90,44,0.4) !important;
}
.lm-redstar-marker {
  background: none !important;
  border: none !important;
  font-size: 30px !important;
  color: #dc2626 !important;
  text-shadow: 0 0 16px rgba(220,38,38,0.6), 0 2px 4px rgba(0,0,0,0.2) !important;
  text-align: center;
  line-height: 1;
}
[data-theme="dark"] .lm-redstar-marker {
  text-shadow: 0 0 20px rgba(220,38,38,0.8), 0 2px 4px rgba(0,0,0,0.3) !important;
}
/* --- Map Section (hero at top, always visible) --- */
.lm-map-section {
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
}
.lm-map-hero {
  position: relative;
  margin-bottom: 16px;
}
.lm-map-hero-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lm-map-hero-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 18px;
  background: #b91c1c;
  border-radius: 2px;
}
.lm-map-hero-sub {
  font-size: 0.78em;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  padding-left: 13px;
  margin-bottom: 14px;
}
.lm-map-container {
  width: 100%;
  height: 560px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border: 1px solid #e6e2db;
  z-index: 0;
}
[data-theme="dark"] .lm-map-container { border-color: rgba(255,255,255,0.08); }

/* --- Map footer with route legend --- */
.lm-map-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  justify-content: center;
  margin-top: 14px;
  padding: 12px 20px;
  font-size: 0.78em;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.3);
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.04);
}
[data-theme="dark"] .lm-map-footer { background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.05); }
.lm-map-footer span { display: inline-flex; align-items: center; gap: 6px; }
.lm-route-solid { color: #b91c1c; font-weight: 700; font-size: 1.2em; }
.lm-route-dash { color: #b91c1c; font-weight: 700; font-size: 1.2em; }
.lm-map-footer em { font-style: normal; color: #b91c1c; font-weight: 500; }

/* --- Route detail list below map --- */
.lm-map-route-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  padding: 14px 20px;
  background: rgba(0,0,0,0.02);
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.04);
}
[data-theme="dark"] .lm-map-route-list { background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.05); }
.lm-route-item {
  font-size: 0.82em;
  line-height: 1.8;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lm-route-badge {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 20px;
  color: #fff;
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  background: #8B4513;
}
.lm-route-item strong { font-weight: 600; }
.lm-route-item em { color: #8B4513; font-style: normal; font-weight: 500; }

/* --- Marker styles --- */
.lm-marker-major {
  background: none !important;
  border: none !important;
  font-size: 22px;
  color: #b91c1c;
  text-align: center;
  text-shadow: 0 0 8px rgba(185,28,28,0.5), 0 0 2px #fff;
}
.lm-marker-minor {
  background: none !important;
  border: none !important;
  font-size: 12px;
  color: #8B4513;
  opacity: 0.7;
  text-align: center;
}
.lm-map-container .leaflet-container { font-family: 'Noto Sans SC', sans-serif; }
.lm-marker-label {
  font-family: 'Noto Sans SC', sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #2C2C2C !important;
  background: rgba(255,255,255,0.94) !important;
  border: 1px solid rgba(139,69,19,0.25) !important;
  border-radius: 6px !important;
  padding: 4px 10px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  white-space: nowrap !important;
  letter-spacing: 0.02em !important;
}
[data-theme="dark"] .lm-marker-label {
  background: rgba(50,50,50,0.94) !important;
  color: #e8e4de !important;
  border-color: rgba(139,69,19,0.4) !important;
}
.lm-redstar-marker {
  background: none !important;
  border: none !important;
  font-size: 32px !important;
  color: #b91c1c !important;
  text-shadow: 0 0 20px rgba(185,28,28,0.5), 0 2px 4px rgba(0,0,0,0.15) !important;
  text-align: center;
  line-height: 1;
}
[data-theme="dark"] .lm-redstar-marker {
  text-shadow: 0 0 24px rgba(185,28,28,0.7), 0 2px 4px rgba(0,0,0,0.2) !important;
}

/* --- 金句 card (quote highlight) --- */
.lm-quote-card {
  margin: 28px 0;
  padding: 24px 28px;
  border-left: 3px solid #b91c1c;
  background: rgba(0,0,0,0.015);
  border-radius: 0 8px 8px 0;
}
[data-theme="dark"] .lm-quote-card {
  background: rgba(255,255,255,0.02);
}
.lm-quote-card p {
  font-family: 'Noto Serif SC', serif;
  font-size: 1em;
  line-height: 1.9;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: 0.04em;
}
.lm-quote-card .lm-quote-source {
  margin-top: 10px;
  font-size: 0.78em;
  color: var(--text-muted);
  text-align: right;
  font-family: 'Noto Sans SC', sans-serif;
}

/* --- 斜线 divider --- */
.lm-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 36px 0 28px;
  color: var(--text-muted);
  font-size: 0.72em;
  letter-spacing: 0.1em;
  opacity: 0.5;
}
.lm-divider::before,
.lm-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
}
.lm-divider i { font-size: 0.6em; opacity: 0.5; }

/* --- Section intro banner --- */
.lm-intro-banner {
  margin-bottom: 32px;
  padding: 20px 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(185,28,28,0.04) 0%, rgba(139,69,19,0.02) 100%);
  border: 1px solid rgba(185,28,28,0.08);
}
[data-theme="dark"] .lm-intro-banner {
  background: linear-gradient(135deg, rgba(185,28,28,0.08) 0%, rgba(139,69,19,0.04) 100%);
  border-color: rgba(185,28,28,0.12);
}
.lm-intro-banner p {
  font-size: 0.88em;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0;
  letter-spacing: 0.03em;
}
.lm-route-item em { color: #B55A2C; font-style: normal; font-weight: 500; }

/* --- Hero --- */
.lm-day-hero {
  position: relative;
  width: 100%;
  height: 420px;
  background-size: cover;
  background-position: center 30%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 36px;
  background-color: #e8e4de;
}
.lm-day-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 25%, rgba(0,0,0,0.75));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
}
.lm-day-hero-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.lm-day-hero-meta span {
  color: rgba(255,255,255,0.85);
  font-size: 0.82em;
  letter-spacing: 0.08em;
}
.lm-day-hero-meta i { margin-right: 6px; }
.lm-day-hero-title {
  color: #fff;
  font-family: 'Noto Serif SC', serif;
  font-size: 1.7em;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  margin: 0;
}
.lm-day-hero-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 0.95em;
  margin-top: 6px;
  font-style: italic;
  letter-spacing: 0.04em;
}

/* --- Section Label --- */
.lm-section-label {
  font-family: 'Noto Serif SC', serif;
  font-size: 1em;
  color: var(--lm-text, #2C2C2C);
  font-weight: 600;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lm-section-label i { color: #B55A2C; font-size: 1.1em; }
[data-theme="dark"] .lm-section-label { color: var(--text-primary); }
[data-theme="dark"] .lm-section-label::after { background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, transparent 100%); }

/* --- Photo Grid --- */
.lm-photo-section { margin-bottom: 44px; }
.lm-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.lm-photo-cell {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3/2;
  background: #e8e4de;
  position: relative;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s ease;
}
.lm-photo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.4s ease;
}
.lm-photo-cell:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}
.lm-photo-cell:hover img { transform: scale(1.04); }
/* Essay-inline images (from rich text) follow article layout */
.lm-essay-body .article-image-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
  justify-content: center;
}
.lm-essay-body .article-image-row img {
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.lm-essay-body .article-image-row img:hover { opacity: 0.88; }
.lm-essay-body .img-caption {
  text-align: center;
  font-size: 0.82em;
  color: var(--text-muted, #8A7F6F);
  margin-top: 8px;
  margin-bottom: 20px;
  text-indent: 0;
}

/* --- Video Section --- */
.lm-video-section { margin-bottom: 40px; }
.lm-video-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.lm-video-block { }
.lm-video-tag {
  font-size: 0.8em;
  color: #8A7F6F;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.lm-video-tag i { margin-right: 6px; color: #B55A2C; }
.lm-video-wrap {
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.lm-video-wrap video {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  background: #1a1a1a;
}

/* --- Essay Section --- */
.lm-essay-section { margin-bottom: 40px; }
.lm-essay-body {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.95em;
  line-height: 2;
  color: #2C2C2C;
  background: #fff;
  padding: 32px 36px;
  border-radius: 16px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
[data-theme="dark"] .lm-essay-body {
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
}
.lm-essay-body p {
  margin-bottom: 1em;
  text-indent: 2em;
}
.lm-essay-body blockquote {
  text-indent: 0;
  font-style: italic;
  color: #8A7F6F;
  padding: 12px 20px;
  border-left: 3px solid #B55A2C;
  margin: 20px 0;
  background: #f8f6f3;
  border-radius: 0 8px 8px 0;
}
[data-theme="dark"] .lm-essay-body blockquote {
  background: rgba(255,255,255,0.03);
  color: var(--text-secondary);
}
.lm-essay-body .lm-poem, .lm-essay-body .poem {
  text-indent: 0;
  text-align: center;
  line-height: 2.4;
  letter-spacing: 0.06em;
  color: #5a5a5a;
  margin: 20px 0;
}
[data-theme="dark"] .lm-essay-body .poem { color: var(--text-secondary); }

/* --- Poem Section (standalone typography highlight) --- */
.lm-poem-section { margin-bottom: 40px; }
.lm-poem-card {
  background: linear-gradient(135deg, #f5f0e8 0%, #efe8dc 100%);
  padding: 48px 36px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  border: 1px solid rgba(181,90,44,0.12);
  overflow: hidden;
}
.lm-poem-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #B55A2C, transparent);
}
[data-theme="dark"] .lm-poem-card {
  background: linear-gradient(135deg, rgba(245,240,232,0.06) 0%, rgba(239,232,220,0.03) 100%);
  border-color: rgba(181,90,44,0.2);
}
.lm-poem-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.5em;
  font-weight: 600;
  color: #2C2C2C;
  margin: 0 0 6px;
  letter-spacing: 0.08em;
  text-indent: 0;
}
[data-theme="dark"] .lm-poem-title { color: var(--text-primary); }
.lm-poem-author {
  font-size: 0.85em;
  color: #8A7F6F;
  margin: 0 0 24px;
  letter-spacing: 0.04em;
}
.lm-poem-body {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.15em;
  line-height: 2.6;
  color: #3a3a3a;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
[data-theme="dark"] .lm-poem-body { color: var(--text-secondary); }
.lm-poem-date {
  font-size: 0.8em;
  color: #8A7F6F;
  margin: 0;
  letter-spacing: 0.04em;
}
.lm-poem-seal {
  position: absolute;
  bottom: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 2px solid #B55A2C;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif SC', serif;
  font-size: 0.75em;
  color: #B55A2C;
  opacity: 0.5;
  transform: rotate(8deg);
}
[data-theme="dark"] .lm-poem-seal { opacity: 0.35; }

/* --- Section decoration (板块感) --- */
.lm-section-label-wrap {
  position: relative;
  margin-bottom: 18px;
}
.lm-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #d4cfc5 0%, transparent 100%);
  margin-left: 12px;
}
.lm-photo-section,
.lm-video-section,
.lm-essay-section,
.lm-poem-section {
  position: relative;
  padding: 4px 0;
}
.lm-photo-section::before,
.lm-video-section::before,
.lm-essay-section::before,
.lm-poem-section::before {
  content: '◆';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 6px;
  color: #B55A2C;
  opacity: 0.25;
  letter-spacing: 12px;
}
[data-theme="dark"] .lm-photo-section::before,
[data-theme="dark"] .lm-video-section::before,
[data-theme="dark"] .lm-essay-section::before,
[data-theme="dark"] .lm-poem-section::before { opacity: 0.15; }

/* --- Photo layout variants (single, pair, triptych) --- */
.lm-photo-single {
  margin-bottom: 24px;
}
.lm-photo-single img {
  width: 100%;
  border-radius: 14px;
  display: block;
  cursor: pointer;
  transition: opacity 0.3s;
}
.lm-photo-single img:hover { opacity: 0.92; }

.lm-photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.lm-photo-pair-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #e8e4de;
}
.lm-photo-pair-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.4s ease;
}
.lm-photo-pair-item:hover img { transform: scale(1.04); }

.lm-photo-triptych {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.lm-photo-triptych-main {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #e8e4de;
}
.lm-photo-triptych-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.4s ease;
}
.lm-photo-triptych-main:hover img { transform: scale(1.03); }
.lm-photo-triptych-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lm-photo-triptych-side-item {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #e8e4de;
}
.lm-photo-triptych-side-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.4s ease;
}
.lm-photo-triptych-side-item:hover img { transform: scale(1.04); }

/* --- Photo grid rhythm (kept) --- */
.lm-photo-cell:nth-child(5n+1) {
  grid-column: span 2;
}
/* On 768, no column spans */
@media (max-width: 768px) {
  .lm-photo-cell:nth-child(5n+1) { grid-column: auto; }
}

/* --- Read Full Button --- */
.lm-read-full-wrap {
  text-align: center;
  margin-bottom: 20px;
}
.lm-read-full-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #B55A2C;
  border: 1px solid #B55A2C;
  padding: 10px 32px;
  border-radius: 40px;
  font-size: 0.85em;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Noto Serif SC', serif;
  letter-spacing: 0.04em;
}
.lm-read-full-btn:hover {
  background: #B55A2C;
  color: #fff;
}

/* --- Responsive: Longmarch Program --- */
@media (max-width: 768px) {
  .lm-90-badge { font-size: 0.88em; padding: 4px 14px; margin-bottom: 12px; }
  .lm-section-header { flex-direction: column; gap: 4px; }
  .lm-header-title { font-size: 1.5em; }
  .lm-header-subtitle { font-size: 0.8em; }
  .lm-header-timeline { gap: 4px; flex-wrap: wrap; }
  .lm-tl-dot { font-size: 0.72em; padding: 4px 10px; }
  .lm-day-nav-inner { justify-content: flex-start; }
  .lm-day-dot { padding: 6px 12px; min-width: 60px; }
  .lm-day-dot-num { width: 30px; height: 30px; font-size: 0.7em; }
  .lm-day-hero { height: 300px; }
  .lm-day-hero-overlay { padding: 24px; }
  .lm-day-hero-title { font-size: 1.35em; }
  .lm-photo-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lm-photo-pair { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lm-photo-triptych { grid-template-columns: 1fr; }
  .lm-photo-triptych-side { flex-direction: row; }
  .lm-video-flex { grid-template-columns: 1fr; }
  .lm-essay-body { padding: 24px 20px; }
  .lm-poem-card { padding: 36px 24px; }
  .lm-poem-title { font-size: 1.25em; }
  .lm-poem-body { font-size: 1.05em; }
  .lm-map-container { height: 360px; }
}
@media (max-width: 480px) {
  .lm-90-badge { font-size: 0.78em; padding: 3px 10px; margin-bottom: 10px; }
  .lm-section-header { flex-direction: column; gap: 2px; }
  .lm-header-title { font-size: 1.25em; }
  .lm-header-subtitle { font-size: 0.75em; }
  .lm-tl-dot { font-size: 0.65em; padding: 3px 8px; }
  .lm-day-dot { padding: 4px 8px; min-width: 50px; }
  .lm-day-dot-num { width: 26px; height: 26px; font-size: 0.65em; }
  .lm-day-dot-label { font-size: 0.62em; }
  .lm-day-hero { height: 220px; }
  .lm-day-hero-title { font-size: 1.1em; }
  .lm-day-hero-overlay { padding: 16px; }
  .lm-photo-grid { grid-template-columns: 1fr; gap: 6px; }
  .lm-photo-cell { border-radius: 8px; }
  .lm-photo-pair { grid-template-columns: 1fr; }
  .lm-photo-triptych { grid-template-columns: 1fr; }
  .lm-photo-triptych-side { flex-direction: row; }
  .lm-essay-body { padding: 20px 16px; font-size: 0.9em; }
  .lm-poem-card { padding: 28px 16px; }
  .lm-poem-title { font-size: 1.1em; }
  .lm-poem-body { font-size: 1em; line-height: 2.2; }
  .lm-poem-seal { width: 30px; height: 30px; font-size: 0.6em; bottom: 10px; right: 12px; }
  .lm-map-container { height: 280px; }
  .lm-map-footer { font-size: 0.72em; gap: 8px; }
}

/* ========================================
   诗书长征路 — 红金特辑视觉规范
   ======================================== */

/* ---- 色彩系统 ---- */
:root {
  --lms-red: #C22A1F;
  --lms-gold: #D4AF37;
  --lms-brown: #8B5A2B;
  --lms-bg: #FDF8F0;
  --lms-text: #3E2A1F;
  --lms-gold-light: rgba(212,175,55,0.2);
  --lms-red-light: rgba(194,42,31,0.08);
  --lms-rust: #B8452E;
  --lms-ochre: #B8956A;
  --lms-earth: #6B5344;
  --lms-card-bg: rgba(255,255,255,0.55);
  --lms-card-border: rgba(107,83,68,0.12);
}

/* ---- 卷首 Hero ---- */
.lms-hero {
  text-align: center;
  padding: 32px 20px 12px;
  position: relative;
  background: linear-gradient(180deg, var(--lms-bg) 0%, #fff 100%);
  border-bottom: 2px solid var(--lms-gold-light);
  margin-bottom: 0;
}

.lms-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Noto Serif SC', serif;
  font-size: 1em;
  font-weight: 700;
  color: var(--lms-red);
  border: 2px solid var(--lms-red);
  padding: 6px 24px;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  position: relative;
}
.lms-badge::before,
.lms-badge::after {
  content: '✦';
  font-size: 0.7em;
  color: var(--lms-gold);
}

.lms-ribbon {
  width: 120px;
  height: 3px;
  margin: 0 auto 16px;
  background: linear-gradient(90deg, transparent, var(--lms-red), var(--lms-gold), var(--lms-red), transparent);
  border-radius: 2px;
}

.lms-title {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--lms-red);
  letter-spacing: 0.12em;
  margin: 0 0 8px;
  line-height: 1.3;
}

.lms-subtitle {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--lms-brown);
  letter-spacing: 0.3em;
  margin: 0 0 12px;
  font-weight: 600;
}

.lms-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.9em;
  color: var(--lms-brown);
  margin-bottom: 20px;
}
.lms-meta i { color: var(--lms-red); margin-right: 4px; }
.lms-meta-dot { color: var(--lms-gold); }

.lms-desc {
  max-width: 640px;
  margin: 0 auto 8px;
  font-size: 0.88em;
  color: var(--lms-text);
  line-height: 1.8;
}

.lms-desc p { margin: 0 0 4px; text-align: center; }
.lms-desc-90 {
  font-size: 1.05em;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.lms-num-90 {
  font-family: 'Noto Serif SC', serif;
  font-size: 2.2em;
  font-weight: 700;
  color: var(--lms-red);
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
  margin: 0 2px;
  text-shadow: 0 2px 8px rgba(194,42,31,0.2);
}
.lms-desc-line2 {
  font-size: 0.95em;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.lms-desc-line3 {
  font-size: 1.05em;
  color: var(--lms-text);
  letter-spacing: 0.08em;
  margin-top: 10px;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

/* ---- 时间轴（横向） ---- */
.lms-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 12px 0 18px;
  max-width: 600px;
  margin: 0 auto;
}

.lms-tl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
  padding: 10px 20px;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.lms-tl-item span {
  font-size: 1em;
  font-weight: 700;
  color: var(--lms-brown);
  white-space: nowrap;
  letter-spacing: 0.08em;
}
.lms-tl-item small {
  font-size: 0.78em;
  color: var(--lms-brown);
  opacity: 0.6;
  letter-spacing: 0.04em;
}
.lms-tl-item.active span { color: var(--lms-red); }
.lms-tl-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: var(--lms-red);
  border-radius: 2px;
}

.lms-tl-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--lms-gold), transparent);
  flex-shrink: 0;
}

/* ---- 板块标题 ---- */
.lms-section {
  padding: 32px 16px;
  border-bottom: 1px solid var(--lms-gold-light);
}

.lms-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.lms-section-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lms-red);
  color: #fff;
  font-size: 0.75em;
  font-weight: 700;
  padding: 4px 12px;
  letter-spacing: 0.1em;
  border-radius: 3px;
  flex-shrink: 0;
}

.lms-section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.2em;
  font-weight: 700;
  color: var(--lms-text);
  margin: 0;
  letter-spacing: 0.06em;
}

.lms-section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--lms-gold-light), transparent);
}

/* ---- 卡片列表（纵向时间轴） ---- */
.lms-card-list {
  max-width: 800px;
  margin: 0 auto;
}

.lms-item {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  position: relative;
}

/* 左侧日期徽章 */
.lms-date-badge {
  width: 90px;
  flex-shrink: 0;
  text-align: center;
  padding-top: 18px;
}

.lms-date-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  flex-wrap: wrap;
  line-height: 1.2;
}

.lms-date-day {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.5em;
  font-weight: 700;
  color: var(--lms-red);
  letter-spacing: 0.02em;
}

.lms-date-sub {
  font-size: 1em;
  color: var(--lms-brown);
  opacity: 0.7;
  font-weight: 500;
}

.lms-date-label {
  font-size: 0.85em;
  color: var(--lms-brown);
  opacity: 0.65;
  line-height: 1.3;
  margin-top: 6px;
}

/* 中间连接线 */
.lms-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20px;
  flex-shrink: 0;
  padding-top: 16px;
}

.lms-connector-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lms-red);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--lms-red);
  flex-shrink: 0;
}

.lms-connector-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(180deg, var(--lms-gold), rgba(212,175,55,0.2));
  min-height: 20px;
}

.lms-item:last-child .lms-connector-line { display: none; }

/* 右侧卡片 */
.lms-card {
  flex: 1;
  background: #fff;
  border: 1px solid var(--lms-gold-light);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  display: flex;
  gap: 0;
  overflow: hidden;
  min-height: 130px;
}

.lms-card:hover {
  border-color: var(--lms-red);
  box-shadow: 0 6px 28px rgba(194,42,31,0.12);
  transform: translateY(-2px);
}

/* 封面缩略图 */
.lms-card-thumb {
  width: 180px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  background: #f0ede8;
}
.lms-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out-expo);
}
.lms-card:hover .lms-card-thumb img {
  transform: scale(1.05);
}

/* 卡片文字区 */
.lms-card-body {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lms-card-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78em;
  color: var(--lms-brown);
  margin-bottom: 8px;
}
.lms-card-location i { color: var(--lms-red); font-size: 0.85em; }

.lms-card-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.1em;
  font-weight: 700;
  color: var(--lms-text);
  margin: 0 0 10px;
  line-height: 1.4;
}

.lms-card-desc {
  font-size: 0.85em;
  color: var(--lms-text);
  opacity: 0.7;
  line-height: 1.7;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lms-card-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8em;
  color: var(--lms-red);
  font-weight: 500;
  transition: all 0.3s ease;
}

.lms-card:hover .lms-card-footer {
  letter-spacing: 0.04em;
}

.lms-card-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.lms-tag {
  display: inline-block;
  font-size: 0.68em;
  padding: 3px 12px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: opacity 0.2s, transform 0.15s;
}

/* 文章 — 红金经典 */
.lms-tag.type-art {
  background: var(--lms-red);
  color: #fff;
}

/* 诗赋 — 金色雅致 */
.lms-tag.type-poem {
  background: rgba(212,175,55,0.15);
  color: #8B6914;
  border: 1px solid rgba(212,175,55,0.3);
}

/* 图片 — 大地色系 */
.lms-tag.type-photo {
  background: rgba(107,83,68,0.1);
  color: var(--lms-brown);
  border: 1px solid rgba(107,83,68,0.2);
}

/* 视频 — 红灰雅致 */
.lms-tag.type-video {
  background: rgba(194,42,31,0.08);
  color: var(--lms-red);
  border: 1px solid rgba(194,42,31,0.18);
}

.lms-tag.clickable {
  cursor: pointer;
}

.lms-tag.clickable:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

/* ---- 诗书长征路·详情弹窗 ---- */
.lm-dm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.18);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lm-dm-overlay.show { opacity: 1; }

.lm-dm-modal {
  width: 100%;
  max-width: 960px;
  max-height: 85vh;
  background: linear-gradient(160deg, #FCF8F2 0%, #F8F2EA 50%, #F4EDE3 100%);
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(30px);
  transition: transform 0.35s var(--lms-ease, cubic-bezier(0.16, 1, 0.3, 1));
  box-shadow: 0 -6px 30px rgba(0,0,0,0.12);
}
.lm-dm-overlay.show .lm-dm-modal { transform: translateY(0); }

.lm-dm-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 24px 14px;
  border-bottom: 1px solid rgba(62,42,31,0.06);
  flex-shrink: 0;
}
.lm-dm-hl { flex: 1; min-width: 0; }
.lm-dm-hl .lm-dm-day {
  font-size: 0.7em;
  letter-spacing: 0.1em;
  color: var(--lms-red);
  font-weight: 600;
  margin-bottom: 2px;
}
.lm-dm-hl h2 {
  font-family: 'Noto Serif SC', 'STSong', serif;
  font-size: 1.25em;
  font-weight: 700;
  color: var(--lms-text);
  margin: 0 0 2px;
  line-height: 1.3;
}
.lm-dm-loc {
  display: none;
  color: var(--lms-brown);
  opacity: 0.65;
}
.lm-dm-close {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(62,42,31,0.06);
  color: var(--lms-text);
  font-size: 0.95em;
  cursor: pointer;
  display: flex;
  align-items: center; justify-content: center;
  flex-shrink: 0; margin-left: 14px;
  transition: background 0.2s;
}
.lm-dm-close:hover { background: rgba(62,42,31,0.12); }

/* ===== Tab Bar ===== */
.lm-dm-tabs {
  display: flex;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(62,42,31,0.08);
  padding: 0 16px;
  gap: 0;
  position: relative;
}

.lm-dm-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: 'Noto Sans SC', system-ui, sans-serif;
  font-size: 0.85em;
  font-weight: 500;
  color: var(--lms-brown);
  opacity: 0.65;
  letter-spacing: 0.06em;
  transition: all 0.25s ease;
  position: relative;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.lm-dm-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--lms-red);
  border-radius: 2px;
  transition: width 0.3s var(--ease-out-expo);
}

.lm-dm-tab:hover {
  color: var(--lms-red);
  opacity: 0.85;
}

.lm-dm-tab.active {
  color: var(--lms-red);
  opacity: 1;
  font-weight: 700;
}

.lm-dm-tab.active::after {
  width: 60%;
}

.lm-dm-tab .lm-dm-ic {
  width: 20px; height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65em;
  font-weight: 700;
  flex-shrink: 0;
}

/* Tab content panel */
.lm-dm-tabpanel {
  min-height: 200px;
}

.lm-dm-tabpanel > * {
  animation: lmFadeIn 0.25s ease;
}

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

/* Sub-article divider */
.lm-dm-subarticle-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lms-gold-light), transparent);
  margin: 32px 0;
}

.lm-dm-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 24px;
  -webkit-overflow-scrolling: touch;
}

/* 折叠区块 */
.lm-dm-sec {
  border-bottom: 1px solid rgba(62,42,31,0.05);
}
.lm-dm-sec:last-child { border-bottom: none; }

.lm-dm-shd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  cursor: pointer;
  user-select: none;
  font-size: 0.88em;
  font-weight: 600;
  color: var(--lms-text);
  transition: color 0.2s;
}
.lm-dm-shd:hover { color: var(--lms-red); }

.lm-dm-ic {
  width: 22px; height: 22px;
  border-radius: 5px;
  display: flex;
  align-items: center; justify-content: center;
  font-size: 0.7em;
  font-weight: 700;
  flex-shrink: 0;
}
.lm-dm-ic.t { background: var(--lms-red); color: #fff; }
.lm-dm-ic.p { background: rgba(212,175,55,0.2); color: #8B6914; }
.lm-dm-ic.g { background: rgba(139,90,43,0.12); color: var(--lms-brown); }
.lm-dm-ic.v { background: rgba(194,42,31,0.1); color: var(--lms-red); }

.lm-dm-ar {
  margin-left: auto;
  font-size: 0.7em;
  opacity: 0.35;
  transition: transform 0.3s;
}
.lm-dm-ar::before { content: '\25BC'; }
.lm-dm-sec.open .lm-dm-ar { transform: rotate(180deg); }

.lm-dm-sbd {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s;
  padding: 0;
}
.lm-dm-sec.open .lm-dm-sbd {
  max-height: 3000px;
  padding: 0 0 16px;
}

/* 弹窗内文章 sec-hd tag（一比一复刻模板）*/
.lm-dm-tabpanel .sec-hd {
  max-width: 820px;
  margin: 0 auto;
  padding: 6px 24px 4px;
}
.lm-dm-tabpanel .sec-hd .tag {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: #6B5344;
  opacity: 0.6;
}
.lm-dm-tabpanel .sec-hd .tag::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(184,149,106,0.2), transparent);
}

/* 弹窗内文章排版（v7 一比一复刻模板）*/
.lm-dm-sbd .article-standalone,
.lm-dm-tabpanel .article-standalone {
  max-width: 820px;
  margin: 0 auto 60px;
  padding: 0 24px;
}
.lm-dm-sbd .article-standalone .article-meta,
.lm-dm-tabpanel .article-standalone .article-meta {
  text-align: center;
  margin-bottom: 28px;
}
.lm-dm-sbd .article-standalone .article-meta .article-standalone-day,
.lm-dm-tabpanel .article-standalone .article-meta .article-standalone-day {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: #6B5344;
  opacity: 0.5;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.lm-dm-sbd .article-standalone .article-meta h3,
.lm-dm-tabpanel .article-standalone .article-meta h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: #B8452E;
  letter-spacing: 0.08em;
  line-height: 1.3;
  margin-bottom: 8px;
}
.lm-dm-sbd .article-standalone .article-meta .article-standalone-day,
.lm-dm-tabpanel .article-standalone .article-meta .article-standalone-day {
  line-height: 1.6;
}
.lm-dm-sbd .article-standalone .article-meta .article-quote,
.lm-dm-tabpanel .article-standalone .article-meta .article-quote {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.85rem;
  color: #6B5344;
  opacity: 0.6;
  letter-spacing: 0.12em;
}
.lm-dm-sbd .article-standalone .article-meta .article-author,
.lm-dm-tabpanel .article-standalone .article-meta .article-author {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.82rem;
  color: #6B5344;
  opacity: 0.6;
  margin-top: 12px;
}
.lm-dm-sbd .article-standalone .rich-content,
.lm-dm-tabpanel .article-standalone .rich-content {
  font-size: 1rem;
  line-height: 2;
  letter-spacing: 0.02em;
  color: #3E2A1F;
}
.lm-dm-sbd .article-standalone .rich-content p,
.lm-dm-tabpanel .article-standalone .rich-content p {
  margin-bottom: 1em;
  text-indent: 2em;
}
.lm-dm-sbd .article-standalone .rich-content h1,
.lm-dm-tabpanel .article-standalone .rich-content h1,
.lm-dm-sbd .article-standalone .rich-content h2,
.lm-dm-tabpanel .article-standalone .rich-content h2,
.lm-dm-sbd .article-standalone .rich-content h3,
.lm-dm-tabpanel .article-standalone .rich-content h3,
.lm-dm-sbd .article-standalone .rich-content h4,
.lm-dm-tabpanel .article-standalone .rich-content h4,
.lm-dm-sbd .article-standalone .rich-content h5,
.lm-dm-tabpanel .article-standalone .rich-content h5,
.lm-dm-sbd .article-standalone .rich-content h6,
.lm-dm-tabpanel .article-standalone .rich-content h6 {
  margin-top: 1.8em;
  margin-bottom: 1em;
  text-indent: 0;
  font-weight: 700;
}
.lm-dm-sbd .article-standalone .rich-content h2,
.lm-dm-tabpanel .article-standalone .rich-content h2 {
  font-size: 1.4rem;
  text-align: center;
  color: #3E2A1F;
}
.lm-dm-sbd .article-standalone .rich-content h2::before,
.lm-dm-tabpanel .article-standalone .rich-content h2::before {
  content: '◇';
  display: block;
  text-align: center;
  font-size: 0.45rem;
  color: #B8956A;
  opacity: 0.3;
  margin: 0 auto 12px;
  letter-spacing: 0;
  line-height: 1;
}
.lm-dm-sbd .article-standalone .rich-content img,
.lm-dm-tabpanel .article-standalone .rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}
.lm-dm-sbd .article-standalone .rich-content .img-caption,
.lm-dm-tabpanel .article-standalone .rich-content .img-caption {
  text-align: center;
  font-size: 0.85em;
  color: #6B5344;
  opacity: 0.6;
  text-indent: 0;
  margin-top: 0.6em;
  margin-bottom: 1.5em;
}
.lm-dm-sbd .article-standalone .rich-content blockquote,
.lm-dm-tabpanel .article-standalone .rich-content blockquote {
  border-left: 3px solid #B8956A;
  padding: 0.5em 0 0.5em 16px;
  color: #6B5344;
  background: rgba(184,149,106,0.06);
  border-radius: 0 8px 8px 0;
  text-indent: 0;
  margin-bottom: 1em;
}
.lm-dm-sbd .article-standalone .rich-content blockquote p,
.lm-dm-tabpanel .article-standalone .rich-content blockquote p {
  text-indent: 0;
}
.lm-dm-sbd .article-standalone .rich-content blockquote strong,
.lm-dm-tabpanel .article-standalone .rich-content blockquote strong {
  color: #B8452E;
  font-weight: 700;
}
.lm-dm-sbd .article-standalone .rich-content .article-image-row,
.lm-dm-tabpanel .article-standalone .rich-content .article-image-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
  justify-content: center;
}
.lm-dm-sbd .article-standalone .rich-content .article-image-row img,
.lm-dm-tabpanel .article-standalone .rich-content .article-image-row img {
  display: inline-block;
  vertical-align: top;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(62,42,31,0.08);
}
.lm-dm-sbd .article-standalone .rich-content hr,
.lm-dm-tabpanel .article-standalone .rich-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,149,106,0.2), transparent);
  margin: 2em 0;
}
.lm-dm-sbd .article-standalone .rich-content strong,
.lm-dm-tabpanel .article-standalone .rich-content strong {
  font-weight: 700;
  color: #B8452E;
}
.lm-dm-sbd .article-standalone .rich-content .emph-block,
.lm-dm-tabpanel .article-standalone .rich-content .emph-block {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #B8452E;
  text-indent: 0;
  padding: 8px 0;
  margin-bottom: 1.2em;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.lm-dm-sbd .article-standalone .rich-content .emph-block-center,
.lm-dm-tabpanel .article-standalone .rich-content .emph-block-center {
  text-align: center;
  text-indent: 0;
  font-family: 'Noto Serif SC', serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #B8452E;
  padding: 12px 0;
  margin-bottom: 1.2em;
  font-weight: 600;
  letter-spacing: 0.04em;
}
/* --- Section divider & sub-title --- */
.lm-dm-tabpanel .article-standalone .rich-content .section-divider {
  text-align: center;
  margin: 2.4em 0 2em;
  text-indent: 0;
  font-size: 0.7rem;
  color: rgba(184,149,106,0.3);
  letter-spacing: 0.5em;
  line-height: 1;
}
.lm-dm-tabpanel .article-standalone .rich-content .section-sub {
  text-align: center;
  margin: 2.6em 0 1.4em;
  text-indent: 0;
  font-family: 'Noto Serif SC', serif;
  font-size: 0.95rem;
  color: #B8956A;
  letter-spacing: 0.12em;
  line-height: 1.6;
  padding-top: 18px;
  position: relative;
}
.lm-dm-tabpanel .article-standalone .rich-content .section-sub::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,149,106,0.5), transparent);
  margin: 0 auto 14px;
}
.lm-dm-sbd .article-standalone .rich-content .article-image-row img:hover,
.lm-dm-tabpanel .article-standalone .rich-content .article-image-row img:hover {
  opacity: 0.92;
}

/* ===== Tab Bar ===== */
.lm-tab-bar {
  display: flex;
  justify-content: center;
  gap: 2px;
  padding: 4px 24px 0;
  border-bottom: 1px solid rgba(184,149,106,0.12);
  max-width: 820px;
  margin: 0 auto;
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(145deg, #FBF5EA 0%, #F5EDE0 50%, #F0E8D8 100%);
}
.lm-tab {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 10px 18px;
  border: none;
  background: transparent;
  color: #6B5344;
  opacity: 0.45;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.lm-tab:hover {
  opacity: 0.75;
  color: #3E2A1F;
}
.lm-tab.active {
  opacity: 1;
  color: #B8452E;
  border-bottom-color: #B8452E;
}
.lm-tab i {
  margin-right: 5px;
  font-size: 0.65rem;
}

/* ===== Tab Panel ===== */
.lm-tab-panel {
  display: none;
}
.lm-tab-panel.active {
  display: block;
}

/* ===== Verse Block (Tab Panel) ===== */
.lm-tab-panel .verse-block {
  background: #fff;
  border: 1px solid rgba(184,149,106,0.2);
  border-radius: 16px;
  padding: 40px 36px;
  text-align: center;
  max-width: 640px;
  margin: 32px auto;
  position: relative;
}
.lm-tab-panel .verse-block::before {
  content: '';
  position: absolute; top: -1px; left: 20%; right: 20%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #B8452E, #B8956A, #B8452E, transparent);
  border-radius: 0 0 3px 3px;
}
.lm-tab-panel .verse-block .v-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #3E2A1F;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.lm-tab-panel .verse-block .v-lines {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.05rem;
  line-height: 2.2;
  color: #3E2A1F;
  letter-spacing: 0.06em;
  margin-top: 20px;
}
.lm-tab-panel .verse-block .v-author {
  font-size: 0.82rem;
  color: #6B5344;
  opacity: 0.6;
  margin-top: 20px;
  letter-spacing: 0.06em;
}
.lm-tab-panel .verse-block .v-lines .hl {
  color: #B8452E;
  font-weight: 700;
}

/* ===== Photo Grid ===== */
.lm-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 820px;
  margin: 24px auto;
  padding: 0 24px;
}
.lm-photo-item {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(107,83,68,0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.lm-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.lm-photo-item:hover {
  border-color: rgba(184,149,106,0.3);
  box-shadow: 0 8px 24px rgba(62,42,31,0.1);
}
.lm-photo-item:hover img {
  transform: scale(1.03);
}
.lm-photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 10px 8px;
  font-size: 0.6rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(62,42,31,0.75));
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  text-align: left;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.lm-photo-item:hover .lm-photo-caption {
  opacity: 1;
}
@media (max-width: 600px) {
  .lm-photo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ===== Video Wrap ===== */
.lm-video-wrap {
  max-width: 720px;
  margin: 32px auto;
  padding: 0 24px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(62,42,31,0.08);
}
.lm-video-wrap video {
  width: 100%;
  display: block;
}

/* 文章弹窗 footer（一比一复刻模板） */
.lm-dm-tabpanel .lm-dm-footer {
  text-align: center;
  padding: 32px 24px;
  margin-top: 32px;
  border-top: 1px solid rgba(184,149,106,0.2);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.lm-dm-tabpanel .lm-dm-footer p {
  font-size: 0.55rem;
  color: #6B5344;
  opacity: 0.5;
  letter-spacing: 0.15em;
  font-family: 'Noto Serif SC', serif;
}

/* lm-* class overrides inside modal — match template emph-block */
.lm-dm-tabpanel .article-standalone .rich-content .lm-strong {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #B8452E;
  text-indent: 0;
  padding: 8px 0;
  margin-bottom: 1.2em;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.lm-dm-tabpanel .article-standalone .rich-content .lm-strong2 {
  text-align: center;
  text-indent: 0;
  font-family: 'Noto Serif SC', serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #B8452E;
  padding: 12px 0;
  margin-bottom: 1.2em;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lm-dm-tabpanel .article-standalone .rich-content .lm-signoff {
  font-style: normal;
  color: #6B5344;
  opacity: 0.6;
  text-indent: 0;
}

/* 图片网格 */
.lm-dm-ph {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.lm-dm-ph-it {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
}
.lm-dm-ph-it:hover { transform: scale(1.02); }
.lm-dm-ph-it img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.lm-dm-ph-cap {
  font-size: 0.72em;
  color: var(--lms-brown);
  padding: 4px 8px;
  margin: 0;
  background: rgba(0,0,0,0.02);
  text-align: center;
}

/* 诗赋 */
.lm-dm-poem {
  padding: 14px;
  background: rgba(212,175,55,0.06);
  border-radius: 10px;
  border: 1px solid rgba(212,175,55,0.12);
  text-align: center;
  font-family: 'Noto Serif SC', 'STSong', serif;
}
.lm-dm-pt {
  font-size: 1.05em;
  font-weight: 700;
  color: var(--lms-text);
  margin-bottom: 2px;
}
.lm-dm-pa {
  font-size: 0.78em;
  color: var(--lms-brown);
  margin-bottom: 10px;
}
.lm-dm-pl {
  font-size: 0.9em;
  line-height: 2;
  color: var(--lms-text);
  letter-spacing: 0.04em;
}
.lm-dm-pn {
  font-size: 0.75em;
  color: var(--lms-brown);
  margin-top: 8px;
  font-style: italic;
}

/* 视频 */
.lm-dm-vw {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(62,42,31,0.10);
  background: #000;
}
.lm-dm-vw video {
  width: 100%;
  display: block;
  max-height: 480px;
}
.lm-dm-vd {
  text-align: center;
  font-size: 0.78rem;
  color: #6B5344;
  opacity: 0.55;
  letter-spacing: 0.04em;
  margin-top: 16px;
  line-height: 1.6;
}
.lm-dm-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  font-size: 0.85em;
  color: var(--lms-brown);
  opacity: 0.4;
  letter-spacing: 0.04em;
}

/* ===== 弹窗内诗赋（1:1 复刻模板）===== */
.lm-dm-tabpanel .verse-block {
  background: #fff;
  border: 1px solid var(--lms-gold-light, rgba(184,149,106,0.2));
  border-radius: 16px;
  padding: 40px 36px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.lm-dm-tabpanel .verse-block::before {
  content: '';
  position: absolute; top: -1px; left: 20%; right: 20%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #B8452E, #B8956A, #B8452E, transparent);
  border-radius: 0 0 3px 3px;
}
.lm-dm-tabpanel .verse-block .v-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--lms-text, #3E2A1F);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.lm-dm-tabpanel .verse-block .v-sub {
  font-size: 0.78rem;
  color: #6B5344;
  opacity: 0.6;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}
.lm-dm-tabpanel .verse-block .v-lines {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.05rem;
  line-height: 2.2;
  color: var(--lms-text, #3E2A1F);
  letter-spacing: 0.06em;
}
.lm-dm-tabpanel .verse-block .v-lines .hl {
  color: #B8452E;
  font-weight: 700;
}
.lm-dm-tabpanel .verse-block .v-author {
  font-size: 0.82rem;
  color: #6B5344;
  opacity: 0.6;
  margin-top: 20px;
  letter-spacing: 0.06em;
}

/* ===== 弹窗内图库卡片（1:1 复刻模板）===== */
.lm-dm-tabpanel .card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.lm-dm-tabpanel .card-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.lm-dm-tabpanel .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.lm-dm-tabpanel .card-grid.cols-1 { grid-template-columns: 1fr; }
.lm-dm-tabpanel .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* Cinematic Hero Card */
.lm-dm-tabpanel .card-cinematic {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.lm-dm-tabpanel .card-cinematic .card-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  filter: saturate(1.05) brightness(0.95) contrast(1.03);
}
.lm-dm-tabpanel .card-cinematic .card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(62,42,31,0.85) 0%, rgba(62,42,31,0.3) 40%, transparent 70%);
  z-index: 1;
}
.lm-dm-tabpanel .card-cinematic .card-warm {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(156,58,40,0.12) 0%, rgba(107,83,68,0.15) 100%);
  mix-blend-mode: multiply;
  z-index: 1;
  pointer-events: none;
}
.lm-dm-tabpanel .card-cinematic .card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 24px 22px;
  z-index: 2;
}
.lm-dm-tabpanel .card-cinematic .card-badge {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: #B8956A;
  border: 1px solid rgba(184,149,106,0.35);
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  width: fit-content;
  backdrop-filter: blur(4px);
  background: rgba(0,0,0,0.15);
}
.lm-dm-tabpanel .card-cinematic .card-title {
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: #fff;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 4px;
}
.lm-dm-tabpanel .card-cinematic .card-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  letter-spacing: 0.04em;
}
.lm-dm-tabpanel .card-cinematic:hover { box-shadow: 0 24px 64px rgba(62,42,31,0.2), 0 4px 16px rgba(62,42,31,0.08); }
.lm-dm-tabpanel .card-cinematic:hover .card-img { transform: scale(1.04); }

/* Editorial Card */
.lm-dm-tabpanel .card-editorial {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(107,83,68,0.12);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px rgba(62,42,31,0.04), 0 1px 4px rgba(62,42,31,0.03);
}
.lm-dm-tabpanel .card-editorial .img-wrap {
  position: relative;
  aspect-ratio: 16/12;
  overflow: hidden;
}
.lm-dm-tabpanel .card-editorial .img-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  filter: saturate(1.02) brightness(0.96) contrast(1.02);
}
.lm-dm-tabpanel .card-editorial .img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(62,42,31,0.15), transparent 50%);
  pointer-events: none;
}
.lm-dm-tabpanel .card-editorial .text {
  padding: 16px 20px 20px;
  flex: 1;
  display: flex; flex-direction: column;
}
.lm-dm-tabpanel .card-editorial .text .tag {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: #B8452E;
  margin-bottom: 8px;
}
.lm-dm-tabpanel .card-editorial .text h3 {
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--lms-text, #3E2A1F);
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin-bottom: 6px;
}
.lm-dm-tabpanel .card-editorial .text p {
  font-size: 0.78rem;
  color: #6B5344;
  opacity: 0.7;
  line-height: 1.7;
  flex: 1;
}
.lm-dm-tabpanel .card-editorial:hover {
  border-color: #B8956A;
  background: rgba(255,255,255,0.78);
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(62,42,31,0.1), 0 4px 12px rgba(62,42,31,0.06);
}
.lm-dm-tabpanel .card-editorial:hover img { transform: scale(1.05); }

/* Panorama Card */
.lm-dm-tabpanel .card-panorama {
  position: relative;
  aspect-ratio: 21/9;
  border-radius: 16px;
  overflow: hidden;
  grid-column: 1 / -1;
  box-shadow: 0 4px 24px rgba(62,42,31,0.06);
  transition: box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.lm-dm-tabpanel .card-panorama:hover {
  box-shadow: 0 16px 48px rgba(62,42,31,0.12);
}
.lm-dm-tabpanel .card-panorama img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.95) brightness(0.92) contrast(1.05);
}
.lm-dm-tabpanel .card-panorama .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(62,42,31,0.5) 0%, transparent 30%, transparent 70%, rgba(62,42,31,0.3) 100%);
  z-index: 1;
}
.lm-dm-tabpanel .card-panorama .content {
  position: absolute;
  bottom: 20px; left: 28px; right: 28px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.lm-dm-tabpanel .card-panorama .content .left { max-width: 60%; }
.lm-dm-tabpanel .card-panorama .content .left h3 {
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: #fff;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.lm-dm-tabpanel .card-panorama .content .left p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.lm-dm-tabpanel .card-panorama .content .poem-line {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.88rem;
  color: #B8956A;
  text-align: right;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Portrait Card */
.lm-dm-tabpanel .card-portrait {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(107,83,68,0.12);
  box-shadow: 0 4px 24px rgba(62,42,31,0.04), 0 1px 4px rgba(62,42,31,0.03);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.lm-dm-tabpanel .card-portrait img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.98) brightness(0.94) contrast(1.02);
  transition: filter 0.5s;
}
.lm-dm-tabpanel .card-portrait::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(62,42,31,0.6) 0%, transparent 50%);
  pointer-events: none;
}
.lm-dm-tabpanel .card-portrait .label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 16px 16px;
  z-index: 1;
}
.lm-dm-tabpanel .card-portrait .label .poem-short {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.82rem;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 4px;
}
.lm-dm-tabpanel .card-portrait .label .loc {
  font-size: 0.65rem;
  color: #B8956A;
  letter-spacing: 0.1em;
}
.lm-dm-tabpanel .card-portrait:hover img { filter: saturate(1.02) brightness(0.96); }
.lm-dm-tabpanel .card-portrait:hover {
  border-color: #B8956A;
  background: rgba(255,255,255,0.78);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(62,42,31,0.1), 0 4px 12px rgba(62,42,31,0.06);
}

/* Horizontal Scroll */
.lm-dm-tabpanel .h-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
}
.lm-dm-tabpanel .h-scroll::-webkit-scrollbar { height: 4px; }
.lm-dm-tabpanel .h-scroll::-webkit-scrollbar-track { background: rgba(184,149,106,0.15); border-radius: 4px; }
.lm-dm-tabpanel .h-scroll::-webkit-scrollbar-thumb { background: #B8956A; border-radius: 4px; }
.lm-dm-tabpanel .h-scroll .hs-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  border: 1px solid rgba(107,83,68,0.12);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(62,42,31,0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.lm-dm-tabpanel .h-scroll .hs-card:hover {
  border-color: #B8956A;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(62,42,31,0.1);
}
.lm-dm-tabpanel .h-scroll .hs-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.lm-dm-tabpanel .h-scroll .hs-card .grad {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(62,42,31,0.75), transparent 50%);
}
.lm-dm-tabpanel .h-scroll .hs-card .info {
  position: absolute; bottom: 0;
  padding: 20px 16px;
  z-index: 1;
}
.lm-dm-tabpanel .h-scroll .hs-card .info .num {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: #B8956A;
  margin-bottom: 6px;
}
.lm-dm-tabpanel .h-scroll .hs-card .info h4 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.04em;
}

/* Card responsive */
@media (max-width: 900px) {
  .lm-dm-tabpanel .card-grid { grid-template-columns: repeat(2, 1fr); }
  .lm-dm-tabpanel .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .lm-dm-tabpanel .card-grid,
  .lm-dm-tabpanel .card-grid.cols-2,
  .lm-dm-tabpanel .card-grid.cols-4 { grid-template-columns: 1fr; }
  .lm-dm-tabpanel .h-scroll .hs-card { flex: 0 0 220px; }
}

/* 响应式 */
@media (max-width: 768px) {
  .lm-dm-head { padding: 18px 18px 10px; }
  .lm-dm-body { padding: 0 18px 18px; }
  .lm-dm-ph { grid-template-columns: 1fr; }
  .lm-dm-ph-it img { height: 180px; }
}
@media (max-width: 480px) {
  .lm-dm-hl h2 { font-size: 1.1em; }
  .lm-dm-head { padding: 14px 14px 10px; }
  .lm-dm-body { padding: 0 14px 14px; }
}

/* ---- 图库（新中式册页） ---- */
.lms-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 4px;
}

.lms-gallery-fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  break-inside: avoid;
}

.lms-gallery-fig:first-child:nth-last-child(1) {
  grid-column: 1 / -1;
}

/* ---- 电影感·胶片颗粒覆盖（全局质感） ---- */
.lm-dm-tabpanel .card-grain::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  opacity: 0.035;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 5;
}

/* ---- 暗角（vignette） ---- */
.lm-dm-tabpanel .card-vignette::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
  z-index: 2;
}

/* ---- 胶片边框 ---- */
.lm-dm-tabpanel .card-frame {
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.07), 0 4px 24px rgba(62,42,31,0.06);
}

/* ---- Letterbox 超宽银幕 ---- */
.lm-dm-tabpanel .card-letterbox {
  position: relative;
  aspect-ratio: 21/9;
  border-radius: 16px;
  overflow: hidden;
  grid-column: 1 / -1;
  background: transparent;
}
.lm-dm-tabpanel .card-letterbox img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.98) brightness(1.0) contrast(1.05);
}
.lm-dm-tabpanel .card-letterbox .letterbox-bar {
  display: none;
}
.lm-dm-tabpanel .card-letterbox .letterbox-bar.top { top: 0; }
.lm-dm-tabpanel .card-letterbox .letterbox-bar.bottom { bottom: 0; }
.lm-dm-tabpanel .card-letterbox .overlay {
  display: none;
}
.lm-dm-tabpanel .card-letterbox .content {
  position: absolute;
  bottom: clamp(12px,3vh,24px); left: clamp(16px,3vw,32px);
  z-index: 3;
}
.lm-dm-tabpanel .card-letterbox .content h3 {
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.6rem);
  color: #fff;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.lm-dm-tabpanel .card-letterbox .content p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

/* ---- Split Screen（50/50 图文并置） ---- */
.lm-dm-tabpanel .card-split {
  display: flex;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.50);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(107,83,68,0.10);
  box-shadow: 0 4px 24px rgba(62,42,31,0.04);
  grid-column: 1 / -1;
}
.lm-dm-tabpanel .card-split .split-img {
  flex: 1;
  position: relative;
  min-height: 220px;
  overflow: hidden;
}
.lm-dm-tabpanel .card-split .split-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.02) brightness(0.95) contrast(1.02);
}
.lm-dm-tabpanel .card-split .split-text {
  flex: 1;
  padding: clamp(20px,3vw,32px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lm-dm-tabpanel .card-split .split-text .tag {
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: #B8452E;
  margin-bottom: 8px;
}
.lm-dm-tabpanel .card-split .split-text h3 {
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  color: var(--lms-text, #3E2A1F);
  letter-spacing: 0.04em;
  line-height: 1.5;
  margin-bottom: 8px;
}
.lm-dm-tabpanel .card-split .split-text p {
  font-size: 0.78rem;
  color: #6B5344;
  opacity: 0.7;
  line-height: 1.8;
}
.lm-dm-tabpanel .card-split .split-text .split-poem {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.82rem;
  color: #B8956A;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(184,149,106,0.2);
}
@media (max-width: 640px) {
  .lm-dm-tabpanel .card-split { flex-direction: column; }
  .lm-dm-tabpanel .card-split .split-img { min-height: 180px; }
}

/* ---- 图注增强 ---- */
.lm-dm-tabpanel .card-caption {
  font-size: 0.7rem;
  color: #6B5344;
  line-height: 1.6;
  letter-spacing: 0.03em;
  padding: 8px 16px 8px 20px;
  border-left: 2px solid rgba(184,149,106,0.3);
  margin: -8px 0 16px;
  opacity: 0.65;
  grid-column: 1 / -1;
}
.lm-dm-tabpanel .card-caption strong {
  color: #3E2A1F;
  opacity: 0.85;
  font-weight: 600;
}

/* ---- 装饰引文 ---- */
.lm-dm-tabpanel .card-poemline {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.85rem;
  color: #B8956A;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 16px 0 8px;
  opacity: 0.8;
  grid-column: 1 / -1;
}

.lms-gallery-img-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #f0ede8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.lms-gallery-img-wrap:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.lms-gallery-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.lms-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.lms-gallery-img-wrap:hover .lms-gallery-overlay {
  background: rgba(0,0,0,0.05);
}

.lms-gallery-overlay span {
  color: transparent;
  font-size: 14px;
  letter-spacing: 2px;
  transition: color 0.3s ease;
}

.lms-gallery-img-wrap:hover .lms-gallery-overlay span {
  color: rgba(255,255,255,0.8);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.lms-gallery-cap {
  margin: 10px 4px 0;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  letter-spacing: 0.5px;
  padding-left: 2px;
  border-left: 2px solid #c9a96e;
  padding-left: 10px;
}

@media (max-width: 600px) {
  .lms-gallery { grid-template-columns: 1fr; gap: 20px; }
  .lms-gallery-cap { font-size: 12px; }
}

.lms-tag.gold {
  background: var(--lms-gold-light);
  color: var(--lms-brown);
}

/* ---- 地图 ---- */
.lms-map-section {
  padding: 24px 16px 32px;
  background: var(--lms-bg);
  border-bottom: 1px solid var(--lms-gold-light);
}

.lms-map-header {
  text-align: center;
  margin-bottom: 16px;
}

.lms-map-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1em;
  color: var(--lms-text);
  font-weight: 600;
  margin: 0 0 4px;
}

.lms-map-sub {
  font-size: 0.78em;
  color: var(--lms-brown);
  opacity: 0.7;
}

.lms-map-container {
  height: 320px;
  border-radius: 8px;
  border: 1px solid var(--lms-gold-light);
  overflow: hidden;
}

/* ---- 印章 ---- */
.lms-seal {
  display: inline-flex;
  align-items: stretch;
  gap: 2px;
  border: 2px solid var(--lms-red);
  padding: 5px 10px 5px 8px;
  transform: rotate(2deg);
  flex-shrink: 0;
  position: relative;
  background: rgba(194,42,31,0.03);
}
.lms-seal::after {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1px solid var(--lms-gold);
  opacity: 0.25;
  pointer-events: none;
}

.lms-seal-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  position: relative;
}
.lms-seal-left .lms-s-char {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(0.6rem, 1.1vw, 0.8rem);
  font-weight: 900;
  color: var(--lms-red);
  text-shadow: 1px 1px 2px rgba(194,42,31,0.1);
  line-height: 1.05;
  letter-spacing: 0;
  display: block;
}

.lms-seal-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(3deg);
  margin-left: 2px;
  position: relative;
}
.lms-seal-right .lms-s-char {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(0.85rem, 1.6vw, 1.15rem);
  font-weight: 700;
  color: var(--lms-gold);
  text-shadow: 1px 1px 2px rgba(212,175,55,0.15);
  line-height: 1.1;
  letter-spacing: 0.04em;
  display: block;
}

/* ---- 占位板块 ---- */
.lms-placeholder {
  text-align: center;
  padding: 48px 16px;
}

.lms-placeholder-icon {
  font-size: 2em;
  color: var(--lms-gold);
  margin-bottom: 12px;
}

.lms-placeholder-text {
  font-size: 0.88em;
  color: var(--lms-brown);
  opacity: 0.6;
  margin: 0;
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
  .lms-hero { padding: 20px 16px 8px; }
  .lms-badge { font-size: 0.88em; padding: 4px 16px; }
  .lms-timeline { gap: 0; padding: 16px 0 20px; }
  .lms-tl-item { padding: 6px 12px; }
  .lms-tl-item span { font-size: 0.85em; }
  .lms-tl-item small { font-size: 0.7em; }
  .lms-tl-line { width: 20px; }

  .lms-item { gap: 12px; margin-bottom: 24px; }
  .lms-date-badge { width: 60px; }
  .lms-date-day { font-size: 1.5em; }
  .lms-connector { width: 16px; }
  .lms-card-thumb { width: 120px; }
  .lms-card-body { padding: 14px 16px; }
  .lms-card-title { font-size: 1em; }

  .lm-dm-tabs { padding: 0 8px; }
  .lm-dm-tab { font-size: 0.8em; padding: 12px 4px; }
}

@media (max-width: 480px) {
  .lms-hero { padding: 16px 12px 6px; }
  .lms-badge { font-size: 0.78em; padding: 3px 12px; }
  .lms-title { font-size: 1.6rem; }
  .lms-meta { font-size: 0.8em; gap: 8px; flex-wrap: wrap; }
  .lms-item { flex-direction: column; gap: 8px; }
  .lms-date-badge { width: 100%; text-align: left; display: flex; align-items: baseline; gap: 8px; padding-top: 0; }
  .lms-date-day { font-size: 1.2em; }
  .lms-connector { display: none; }
  .lms-card { flex-direction: column; }
  .lms-card-thumb { width: 100%; height: 160px; }
  .lms-card-body { padding: 14px; }
  .lms-section { padding: 24px 12px; }

  .lm-dm-tabs { gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .lm-dm-tab { flex: 0 0 auto; min-width: 64px; font-size: 0.78em; }
}

/* ========== 诗书长征路 · 卡片一行排开 ========== */
/* ========== 诗书长征路 · 弹窗模板风格（一比一复刻文章模板标准） ========== */
/* sec-hd + tag */
.sec-hd {
  max-width: 820px;
  margin: 0 auto;
  padding: 6px 24px 4px;
}
.sec-hd .tag {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: #6B5344;
  opacity: 0.6;
}
.sec-hd .tag::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(184,149,106,0.2), transparent);
}

/* article-standalone — 一比一复刻文章模板标准 */
.article-standalone {
  max-width: 820px;
  margin: 0 auto;
  font-family: 'Noto Sans SC', system-ui, sans-serif;
  color: #3E2A1F;
}
.article-standalone .article-meta {
  text-align: center;
  margin-bottom: 24px;
}
.article-standalone .article-meta .article-standalone-day {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: #6B5344;
  opacity: 0.5;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.article-standalone .article-meta h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: #3E2A1F;
  letter-spacing: 0.08em;
  line-height: 1.3;
  margin: 0 0 8px;
}
.article-standalone .article-meta .article-quote {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.85rem;
  color: #6B5344;
  opacity: 0.6;
  letter-spacing: 0.12em;
}
.article-standalone .article-meta .article-author {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.82rem;
  color: #6B5344;
  opacity: 0.6;
  margin-top: 10px;
}

/* rich-content inside article-standalone */
.article-standalone .rich-content {
  font-size: 1rem;
  line-height: 2;
  letter-spacing: 0.02em;
  color: #3E2A1F;
}
.article-standalone .rich-content p {
  margin-bottom: 1em;
  text-indent: 2em;
}
.article-standalone .rich-content h2 {
  font-size: 1.35rem;
  margin-top: 1.8em;
  margin-bottom: 1em;
  text-indent: 0;
  font-weight: 700;
  color: #6B5344;
}
.article-standalone .rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}
.article-standalone .rich-content .img-caption {
  text-align: center;
  font-size: 0.85em;
  color: #6B5344;
  opacity: 0.6;
  text-indent: 0;
  margin-top: 0.6em;
  margin-bottom: 1.5em;
}
.article-standalone .rich-content blockquote {
  border-left: 3px solid #B8956A;
  padding: 0.5em 0 0.5em 16px;
  color: #6B5344;
  background: rgba(184,149,106,0.06);
  border-radius: 0 8px 8px 0;
  text-indent: 0;
  margin-bottom: 1em;
}
.article-standalone .rich-content blockquote p { text-indent: 0; }
.article-standalone .rich-content blockquote strong { color: #B8452E; font-weight: 700; }
.article-standalone .rich-content .article-image-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
  justify-content: center;
}
.article-standalone .rich-content .article-image-row img {
  display: inline-block;
  vertical-align: top;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(62,42,31,0.08);
}
.article-standalone .rich-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,149,106,0.3), transparent);
  margin: 2em 0;
}
.article-standalone .rich-content strong {
  font-weight: 700;
}
.article-standalone .rich-content .emph-block {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #B8452E;
  text-indent: 0;
  padding: 8px 0;
  margin-bottom: 1.2em;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* lm-dm-footer (top-level for SPA modal) */
.lm-dm-footer {
  text-align: center;
  padding: 32px 24px;
  margin-top: 32px;
  border-top: 1px solid rgba(184,149,106,0.2);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.lm-dm-footer p {
  font-size: 0.55rem;
  color: #6B5344;
  opacity: 0.5;
  letter-spacing: 0.15em;
  font-family: 'Noto Serif SC', serif;
}



/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .sec {
    opacity: 1;
    transform: none;
  }
}
