﻿:root {
  --forest-dark: #0d1310; --forest-mid: #1a2420; --forest-light: #2a3a34;
  --paper: #f4f4f4; --paper-dim: #c8ccc4; --paper-muted: #7a8580;
  --amber: #c9a961; --amber-dim: #8a7a4a;
  --line: rgba(var(--paper-rgb),0.08); --line-strong: rgba(var(--paper-rgb),0.18);
  --ease-quiet: cubic-bezier(.22,1,.36,1);
  --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', Monaco, Consolas, 'Courier New', monospace;
  --font-serif: Georgia, 'Times New Roman', serif;

  --accent: var(--amber);
  --accent-03: rgba(var(--amber-rgb),0.03); --accent-05: rgba(var(--amber-rgb),0.05);
  --accent-06: rgba(var(--amber-rgb),0.06); --accent-08: rgba(var(--amber-rgb),0.08);
  --accent-10: rgba(var(--amber-rgb),0.1); --accent-15: rgba(var(--amber-rgb),0.15);
  --accent-glow: rgba(var(--amber-rgb),0.4); --accent-glow-soft: rgba(var(--amber-rgb),0.3);
  --private-fg: #78a08c; --private-bg: rgba(120,160,140,0.15);
  --danger-fg: #d97757; --danger-border: rgba(217,119,87,0.5); --danger-bg: rgba(217,119,87,0.12); --danger-bg-soft: rgba(217,119,87,0.05);
  --forest-dark-rgb: 13,19,16; --forest-mid-rgb: 26,36,32; --forest-light-rgb: 42,58,52;
  --paper-rgb: 244,244,244; --amber-rgb: 201,169,97;
  --header-bg: rgba(13,19,16,0.85);
  --modal-overlay-bg: rgba(0,0,0,0.75);
  --confirm-overlay-bg: rgba(0,0,0,0.7);
  --drawer-overlay-bg: rgba(0,0,0,0.5);
  --qr-modal-bg: #fff;
  --qr-modal-fg: var(--forest-dark);
  --qr-close-bg: rgba(255,255,255,0.2);
  --qr-close-bg-hover: rgba(255,255,255,0.4);
  --qr-close-fg: #fff;
  --payment-overlay-bg: rgba(13, 27, 30, 0.95);
  --tag-draft-bg: rgba(180,140,100,0.15);
  --tag-draft-fg: #b4a064;
  --switch-bg: #3a4a44;
  --switch-knob: #f0f0f0;
  --switch-knob-checked: #ffffff;
  --hero-spot-2: rgba(42,58,52,0.4);
  --auth-spot-2: rgba(42,58,52,0.5);
  --card-overlay-gradient: rgba(13,19,16,0.95);
  --lightbox-overlay-bg: rgba(13,19,16,0.96);
  --member-icon-filter: brightness(0) invert(1);
  --heatmap-0: #ffffff;
  --heatmap-1: #c8ccc4;
  --heatmap-2: #7a8580;
  --heatmap-3: #3a4a44;
  --heatmap-text-light: var(--forest-dark);
  --heatmap-text-dark: var(--paper);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --forest-dark: #f4f0e6; --forest-mid: #ece5d6; --forest-light: #fbf8f0;
  --paper: #2e2a23; --paper-dim: #6b655a; --paper-muted: #928b7d;
  --amber: #9e4a3c; --amber-dim: #b56658;
  --line: rgba(46,42,35,0.10); --line-strong: rgba(46,42,35,0.20);
  --accent: var(--amber);
  --accent-03: rgba(158,74,60,0.03); --accent-05: rgba(158,74,60,0.05);
  --accent-06: rgba(158,74,60,0.06); --accent-08: rgba(158,74,60,0.08);
  --accent-10: rgba(158,74,60,0.1); --accent-15: rgba(158,74,60,0.15);
  --accent-glow: rgba(158,74,60,0.35); --accent-glow-soft: rgba(158,74,60,0.25);
  --private-fg: #5f8a73; --private-bg: rgba(95,138,115,0.18);
  --danger-fg: #b5482c; --danger-border: rgba(181,72,44,0.5); --danger-bg: rgba(181,72,44,0.12); --danger-bg-soft: rgba(181,72,44,0.06);
  --forest-dark-rgb: 244,240,230; --forest-mid-rgb: 236,229,214; --forest-light-rgb: 251,248,240;
  --paper-rgb: 46,42,35; --amber-rgb: 158,74,60;
  --header-bg: rgba(244,240,230,0.92);
  --modal-overlay-bg: rgba(46,42,35,0.55);
  --confirm-overlay-bg: rgba(46,42,35,0.55);
  --drawer-overlay-bg: rgba(46,42,35,0.35);
  --qr-modal-bg: var(--forest-light);
  --qr-modal-fg: var(--paper);
  --qr-close-bg: rgba(46,42,35,0.15);
  --qr-close-bg-hover: rgba(46,42,35,0.25);
  --qr-close-fg: var(--paper);
  --payment-overlay-bg: rgba(46,42,35,0.88);
  --tag-draft-bg: rgba(158,74,60,0.12);
  --tag-draft-fg: var(--amber);
  --switch-bg: #c8b8a0;
  --switch-knob: #ffffff;
  --switch-knob-checked: #ffffff;
  --hero-spot-2: rgba(180,160,130,0.25);
  --auth-spot-2: rgba(180,160,130,0.25);
  --card-overlay-gradient: rgba(244,240,230,0.95);
  --lightbox-overlay-bg: rgba(46,42,35,0.96);
  --member-icon-filter: brightness(0);
  --heatmap-0: rgba(46,42,35,0.08);
  --heatmap-1: rgba(158,74,60,0.28);
  --heatmap-2: rgba(158,74,60,0.52);
  --heatmap-3: rgba(158,74,60,0.78);
  --heatmap-text-light: var(--paper);
  --heatmap-text-dark: #fff;
  --compose-card-bg: #fdfbf6;
  --compose-card-bar: #f2ebdb;
  --compose-card-border: rgba(46,42,35,0.12);
  --compose-card-shadow: 0 20px 60px -16px rgba(46,42,35,0.20);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--forest-dark); color: var(--paper); font-family: var(--font-body); line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh; }
img { display: block; max-width: 100%; height: auto; }
main, .site-header, .site-footer { max-width: 100vw; }
button, input, textarea, select { font: inherit; color: inherit; background: none; border: none; outline: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; color: var(--paper); }

.eyebrow { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); display: inline-flex; align-items: center; gap: 0.8rem; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--amber); display: inline-block; }
.mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; color: var(--paper-muted); }
input::placeholder, textarea::placeholder { color: var(--paper-muted); opacity: 0.6; }
/* 覆盖浏览器 autofill 在亮色/暗色主题下的默认浅蓝背景，使其遵循站点变量 */
.form-group input:-webkit-autofill,
.form-group textarea:-webkit-autofill,
.form-group select:-webkit-autofill,
.drawer-form-group input:-webkit-autofill,
.drawer-form-group textarea:-webkit-autofill,
.drawer-form-group select:-webkit-autofill,
.comment-form textarea:-webkit-autofill,
.reply-form textarea:-webkit-autofill,
.tip-custom input:-webkit-autofill,
.tip-msg textarea:-webkit-autofill,
.compose-title-input:-webkit-autofill,
.compose-excerpt-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--forest-mid) inset !important;
  -webkit-text-fill-color: var(--paper) !important;
  transition: background-color 5000s ease-in-out 0s;
}

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--header-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); }
.site-header-inner { max-width: 1400px; margin: 0 auto; padding: 1.1rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.logo-mark { width: 8px; height: 8px; background: var(--amber); border-radius: 50%; display: inline-block; }
.nav-actions { display: flex; align-items: center; gap: 2rem; }
.nav-link { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--paper-dim); cursor: pointer; transition: color 0.3s var(--ease-quiet); background: none; border: none; padding: 0; }
.nav-link.theme-toggle { display: inline-flex; align-items: center; justify-content: center; padding: 0 0.5rem; line-height: 1; }
.nav-link.theme-toggle svg { display: block; }
.nav-link:hover { color: var(--amber); }
.nav-link.disabled { opacity: 0.4; cursor: not-allowed; }
.nav-user { display: flex; align-items: center; gap: 0.7rem; cursor: pointer; }
.nav-user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); background: var(--forest-light); }
.nav-user-name { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.05em; color: var(--paper); }
@media (max-width: 640px) { .nav-actions { gap: 1.2rem; } .nav-user-name { display: none; } .site-header-inner { padding: 1rem 1.5rem; } .stacked-section { padding: 1rem 0 0 0; } .stacked-head { padding: 1rem 1rem 0.5rem; } .stacked-head h2 { font-size: 1.8rem; } .filmstrip-head, .timeline-head { display: block !important; padding: 4rem 1.25rem 2rem !important; max-width: 100% !important; margin: 0 !important; gap: 0 !important; } .filmstrip-head h2, .timeline-head h2 { font-size: 1.8rem; margin-top: 0.5rem; } .filmstrip-head p, .timeline-head p { margin-top: 0.8rem; font-size: 0.85rem; } .eyebrow { white-space: nowrap; } .quote-section { padding-top: 4rem; } .stacked-track { padding: 0 !important; padding-bottom: 0 !important; position: relative !important; } .stacked-card { display: block !important; width: calc(100vw - 2rem) !important; height: 85vh !important; margin: 0 auto !important; border: 1px solid var(--line-strong) !important; background: var(--forest-mid) !important; opacity: 1 !important; transform: none !important; position: sticky !important; top: 8vh !important; transition: filter 0.4s linear; overflow: hidden; } .stacked-card + .stacked-card { margin-top: 0 !important; } .stacked-card-image { position: absolute !important; inset: 0 !important; display: block !important; width: 100% !important; height: 100% !important; overflow: hidden; z-index: 1; } .stacked-card-content { position: absolute !important; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.8rem; padding: 1.5rem; min-height: 0; } .stacked-card-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: brightness(0.7); } .stacked-card-image::after { content: '' !important; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(var(--forest-dark-rgb),0) 0%, rgba(var(--forest-dark-rgb),0) 35%, rgba(var(--forest-dark-rgb),0.5) 70%, rgba(var(--forest-dark-rgb),0.85) 100%); pointer-events: none; z-index: 1; } .stacked-card-content { position: absolute !important; left: 0 !important; right: 0 !important; bottom: 0 !important; z-index: 2; padding: 1.5rem; gap: 0.8rem; background: transparent !important; min-height: 0; justify-content: flex-end; } .stacked-card-top { flex-wrap: wrap; gap: 0.5rem; color: var(--paper); } .stacked-card-num, .stacked-card-cat { color: var(--paper); } .stacked-card-body h3 { font-size: 1.4rem; word-break: keep-all; white-space: normal; color: var(--paper); margin-bottom: 0.5rem; } .stacked-card-excerpt { color: var(--paper-dim); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.9rem; line-height: 1.5; margin-bottom: 0.8rem; } .stacked-card-author-name { color: var(--paper); } .stacked-card-author-time { color: var(--paper-muted); } .stacked-card-author { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; } .stacked-card-author img { width: 28px; height: 28px; border-radius: 50%; } .stacked-card-read { margin-top: 0.5rem; color: var(--amber); display: inline-flex; align-items: center; gap: 0.4rem; font-size: 11px; letter-spacing: 0.15em; padding: 0.4rem 0; } .timeline-item { grid-template-columns: 1fr !important; gap: 0.6rem !important; padding: 1.5rem 0 !important; transition: padding-left 0.4s var(--ease-quiet), background-color 0.4s var(--ease-quiet), color 0.4s var(--ease-quiet); cursor: pointer; } .timeline-item:active { padding-left: 1rem !important; background-color: rgba(212, 165, 116, 0.06); } .timeline-item:active .timeline-title { color: var(--amber); } .timeline-item-meta { flex-direction: row !important; align-items: center; gap: 1rem; flex-wrap: wrap; } .timeline-item-author { margin-top: 0 !important; } .timeline-item-main { padding: 0; } .timeline-item-main h3, .timeline-title { font-size: 1.1rem; word-break: keep-all; overflow-wrap: anywhere; } .timeline-excerpt { -webkit-line-clamp: 2; font-size: 0.9rem; } .timeline-item-stats { flex-direction: row !important; align-items: center; gap: 1rem; margin-top: 0.5rem; font-size: 11px; } .user-drawer { width: 75vw !important; max-width: 320px !important; } }

.btn { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; padding: 0.8rem 1.4rem; border: 1px solid var(--line-strong); background: transparent; color: var(--paper); cursor: pointer; transition: all 0.4s var(--ease-quiet); display: inline-flex; align-items: center; gap: 0.6rem; white-space: nowrap; }
.btn:hover { border-color: var(--amber); color: var(--amber); }
.btn-primary { background: var(--amber); color: var(--forest-dark); border-color: var(--amber); }
.btn-primary:hover { background: var(--paper); border-color: var(--paper); color: var(--forest-dark); }
.btn-primary.disabled { background: var(--forest-light); color: var(--paper-muted); border-color: var(--line-strong); cursor: not-allowed; opacity: 0.6; }
.btn-ghost { border-color: transparent; color: var(--paper-dim); }
.btn-ghost:hover { color: var(--amber); border-color: transparent; }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 12px; }
.btn-xs { padding: 0.3rem 0.6rem; font-size: 11px; }
.btn-renew { background: var(--forest-dark); color: var(--amber); border-color: var(--amber); margin-left: 0.5rem; }
.btn-renew:hover { background: var(--amber); color: var(--forest-dark); }
.btn-upgrade { background: transparent; color: var(--forest-dark); border-color: var(--forest-dark); margin-left: 0.3rem; }
.btn-upgrade:hover { background: var(--forest-dark); color: var(--amber); }
.renew-plan-item { padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 0.5rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.renew-plan-item:hover { border-color: var(--amber); }
.renew-plan-item.selected { border-color: var(--amber); background: var(--amber); color: var(--forest-dark); }
.renew-plan-item.selected .renew-plan-price { color: var(--forest-dark); }
.renew-summary { margin-top: 1rem; padding: 0.75rem 1rem; background: rgba(var(--paper-rgb),0.05); border-radius: 6px; font-size: 13px; }
.renew-summary-row { display: flex; justify-content: space-between; margin-bottom: 0.3rem; }
.renew-summary-row:last-child { margin-bottom: 0; }
.renew-summary-label { color: var(--paper-muted); }
.renew-summary-value { color: var(--amber); font-weight: 500; }
.payment-success-overlay { position: fixed; inset: 0; background: var(--payment-overlay-bg); z-index: 2000; display: flex; align-items: center; justify-content: center; }
.payment-success-box { background: var(--forest-mid); border: 1px solid var(--line); border-radius: 12px; padding: 3rem 2.5rem; text-align: center; max-width: 360px; }
.payment-success-icon { width: 64px; height: 64px; background: var(--amber); color: var(--forest-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 1.5rem; }
.payment-success-box h2 { margin-bottom: 1rem; }
.payment-success-info { color: var(--paper); font-size: 1.1rem; margin-bottom: 0.5rem; }
.payment-success-detail { color: var(--paper-muted); font-size: 0.9rem; margin-bottom: 0.3rem; }
.payment-success-box .btn { margin-top: 1.5rem; width: 100%; }
.renew-plan-name { font-weight: 500; }
.renew-plan-price { color: var(--paper-muted); font-size: 13px; }
.btn-danger-outline { color: var(--danger-fg); border-color: var(--danger-border); }
.btn-danger-outline:hover { background: var(--danger-bg); border-color: var(--danger-fg); color: var(--danger-fg); }

.hero { min-height: 100vh; display: flex; align-items: center; padding: 9rem 2rem 5rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 50% at 20% 30%, var(--accent-06), transparent 60%), radial-gradient(ellipse 60% 40% at 80% 80%, var(--hero-spot-2), transparent 60%); pointer-events: none; }
.hero-inner { max-width: 1400px; margin: 0 auto; width: 100%; position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; height: 100%; }
.hero-eyebrow { margin-bottom: 2.2rem; opacity: 0; transform: translateY(-12px); transition: opacity 0.7s var(--ease-quiet), transform 0.7s var(--ease-quiet); }
.hero-eyebrow.is-in { opacity: 1; transform: none; }
.hero h1 { font-size: clamp(3rem, 7.5vw, 6.5rem); font-weight: 800; margin-bottom: 2rem; max-width: 16ch; opacity: 0; transform: translateY(40px); transition: opacity 1.2s var(--ease-quiet), transform 1.2s var(--ease-quiet); line-height: 1.1; }
.hero h1.is-in { opacity: 1; transform: none; }
.hero h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--amber); }
.hero-sub { font-size: 1.1rem; color: var(--paper-dim); max-width: 52ch; line-height: 1.7; margin-bottom: 3rem; opacity: 0; transform: translateY(20px); transition: opacity 0.9s var(--ease-quiet), transform 0.9s var(--ease-quiet); }
.hero-sub.is-in { opacity: 1; transform: none; }
.hero-cta { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 5rem; opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease-quiet), transform 0.7s var(--ease-quiet); }
.hero-cta.is-in { opacity: 1; transform: none; }
.hero-meta { display: flex; justify-content: space-between; align-items: flex-end; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.15em; color: var(--paper-muted); text-transform: uppercase; opacity: 0; transition: opacity 0.8s var(--ease-quiet); border-top: 1px solid var(--line); padding-top: 2rem; }
.hero-meta.is-in { opacity: 1; }
.hero-meta-line { display: flex; align-items: center; gap: 0.6rem; }
.hero-meta-line::before { content: ''; width: 16px; height: 1px; background: var(--paper-muted); display: inline-block; }
@media (max-width: 768px) { .hero { padding: 7rem 1.5rem 5rem; } .hero-meta { flex-direction: column; align-items: flex-start; gap: 0.8rem; } }

.filmstrip { padding: 6rem 0 7rem; position: relative; border-top: 1px solid var(--line); }
.filmstrip-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 4rem; padding: 0 2rem; max-width: 1400px; margin-left: auto; margin-right: auto; gap: 2rem; }
.filmstrip-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.filmstrip-head .eyebrow { margin-bottom: 1rem; }
.filmstrip-head p { color: var(--paper-dim); max-width: 32ch; font-size: 0.95rem; }
.filmstrip-rows { display: flex; flex-direction: column; gap: 1.5rem; overflow: hidden; }
.filmstrip-row { display: flex; gap: 1.5rem; padding: 0 2rem; will-change: transform; justify-content: center; }
.filmstrip-row--bottom { transform: translateX(-150px); }
.writer-card { flex-shrink: 0; width: 320px; padding: 1.5rem; background: var(--forest-mid); border: 1px solid var(--line); display: flex; gap: 1rem; align-items: center; transition: border-color 0.4s var(--ease-quiet), background 0.4s var(--ease-quiet); cursor: pointer; }
.writer-card:hover { border-color: var(--amber); background: var(--forest-light); }
.writer-card-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--forest-light); }
.writer-card-info { min-width: 0; flex: 1; }
.writer-card-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-bottom: 0.2rem; }
.writer-card-bio { font-size: 0.85rem; color: var(--paper-muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.5; }
.writer-card-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; color: var(--amber); margin-top: 0.4rem; text-transform: uppercase; }

.stacked-section { position: relative; background: var(--forest-dark); padding: 4rem 0; }
.stacked-head { max-width: 1400px; margin: 0 auto; padding: 2rem 2rem 1rem; }
.stacked-head h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 1rem 0; max-width: 18ch; }
.stacked-head p { color: var(--paper-dim); max-width: 50ch; }
.stacked-track { position: relative; max-width: 1100px; margin: 0 auto; padding: 0 2rem 2rem; }
.stacked-card { position: relative; margin: 0 auto 3rem; width: min(90vw, 1100px); height: min(75vh, 620px); background: var(--forest-mid); border: 1px solid var(--line-strong); display: grid; grid-template-columns: 1fr 1fr; opacity: 0; transform: translateY(50px); transition: opacity 1s var(--ease-quiet), transform 1s var(--ease-quiet); max-width: calc(100vw - 4rem); }
.stacked-card.is-in { opacity: 1; transform: none; }
@media (max-width: 640px) { .stacked-card.is-in { opacity: 1 !important; transform: none !important; } .stacked-card { opacity: 1 !important; transform: none !important; } }
@media (min-width: 641px) { @supports (position: sticky) { .stacked-card { position: sticky; top: 0; opacity: 1; transform: none; } .stacked-track { padding-bottom: 60vh; } } }
.stacked-card-image { position: relative; }
.stacked-card-image img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7) saturate(0.8); background: var(--forest-light); }
.stacked-card-content { padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.stacked-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.stacked-card-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; color: var(--amber); }
.stacked-card-cat { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; color: var(--paper-muted); text-transform: uppercase; }
.stacked-card-body h3 { font-size: clamp(1.5rem, 2.6vw, 2.4rem); margin-bottom: 1rem; line-height: 1.1; }
.stacked-card-excerpt { color: var(--paper-dim); font-size: 1rem; line-height: 1.65; margin-bottom: 1.5rem; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.stacked-card-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.stacked-card-author { display: flex; align-items: center; gap: 0.7rem; cursor: pointer; }
.stacked-card-author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--forest-light); }
.stacked-card-author-info { line-height: 1.3; }
.stacked-card-author-name { font-weight: 700; font-size: 0.95rem; }
.stacked-card-author-time { font-family: var(--font-mono); font-size: 11px; color: var(--paper-muted); letter-spacing: 0.1em; }
.stacked-card-read { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; color: var(--amber); text-transform: uppercase; display: flex; align-items: center; gap: 0.4rem; cursor: pointer; transition: gap 0.3s var(--ease-quiet); background: none; border: none; padding: 0; }
.stacked-card-read:hover { gap: 0.8rem; }

.timeline-section { background: var(--forest-dark); border-top: 1px solid var(--line); }
.timeline-head { max-width: 1400px; margin: 0 auto; padding: 7rem 2rem 4rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.timeline-head h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin-top: 1rem; }
.timeline-list { max-width: 1100px; margin: 0 auto; padding: 0 2rem 7rem; }
.timeline-item { display: grid; grid-template-columns: 200px 1fr auto; gap: 3rem; padding: 2.5rem 0; border-top: 1px solid var(--line); cursor: pointer; transition: padding 0.4s var(--ease-quiet); position: relative; }
.timeline-item:hover { padding-left: 1rem; }
.timeline-item:hover .timeline-title { color: var(--amber); }
.timeline-item-meta { display: flex; flex-direction: column; gap: 0.5rem; }
.timeline-item-time { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.15em; color: var(--paper-muted); text-transform: uppercase; }
.timeline-item-author { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.5rem; }
.timeline-item-author img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: var(--forest-light); }
.timeline-item-author-name { font-size: 0.9rem; color: var(--paper-dim); }
.timeline-item-main { min-width: 0; }
.timeline-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.8rem); letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 0.7rem; transition: color 0.3s var(--ease-quiet); }
.timeline-excerpt { color: var(--paper-muted); font-size: 1rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.timeline-item-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; font-family: var(--font-mono); font-size: 12px; color: var(--paper-muted); letter-spacing: 0.1em; white-space: nowrap; }
.timeline-item-stats span { display: flex; align-items: center; gap: 0.3rem; }
.timeline-item-stats svg { width: 12px; height: 12px; }
.draft-badge { display: inline-block; padding: 0.1rem 0.4rem; font-size: 11px; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; background: var(--accent-15); color: var(--amber); border-radius: 2px; margin-left: 0.5rem; vertical-align: middle; }
.private-badge { display: inline-block; padding: 0.1rem 0.4rem; font-size: 11px; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; background: var(--private-bg); color: var(--private-fg); border-radius: 2px; margin-left: 0.5rem; vertical-align: middle; }
.tag-private { display: inline-block; padding: 0.05rem 0.35rem; font-size: 10px; background: var(--private-bg); color: var(--private-fg); border-radius: 2px; margin-right: 0.4rem; vertical-align: middle; }
.tag-draft { display: inline-block; padding: 0.05rem 0.35rem; font-size: 10px; background: var(--tag-draft-bg); color: var(--tag-draft-fg); border-radius: 2px; margin-right: 0.4rem; vertical-align: middle; }

.site-footer { padding: 1.5rem 2rem 1.2rem; background: var(--forest-dark); position: relative; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.footer-inner { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.footer-brand { flex: 0 0 auto; }
.footer-brand .logo { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); letter-spacing: 0.2em; font-size: 1.1rem; }
.footer-brand .logo-mark { width: 8px; height: 8px; background: var(--amber); border-radius: 50%; display: inline-block; }
.footer-brand p { font-size: 0.8rem; color: var(--paper-muted); max-width: 36ch; margin-top: 0.4rem; line-height: 1.5; }
.footer-row-top { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: flex-end; }
.footer-links-col { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; }
.footer-links ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.5rem; }
.footer-links li { padding: 0; }
.footer-links a { color: var(--paper-muted); font-size: 0.85rem; transition: color 0.3s var(--ease-quiet); cursor: pointer; }
.footer-links a:hover { color: var(--amber); }
.footer-qrcodes .qr-list { display: flex; gap: 1rem; }
.footer-qrcodes .qr-item { text-align: center; position: relative; }
.footer-qrcodes .qr-item span { display: block; margin-top: 0.2rem; font-size: 0.65rem; color: var(--paper-muted); }
.footer-meta { padding: 0; font-family: var(--font-mono); font-size: 11px; color: var(--paper-muted); letter-spacing: 0.15em; text-transform: uppercase; text-align: right; white-space: nowrap; }
@media (max-width: 768px) { .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; } .footer-right { align-items: flex-start; } .footer-links-row { align-items: flex-start; } .footer-links-row > .footer-links, .footer-links-row > .footer-qrcodes { justify-content: flex-start; } .footer-meta { text-align: left; } }

.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 8rem 2rem 4rem; position: relative; overflow: hidden; }
.auth-page::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 40% at 30% 20%, var(--accent-08), transparent 60%), radial-gradient(ellipse 50% 30% at 70% 80%, var(--auth-spot-2), transparent 60%); pointer-events: none; }
.auth-card { width: 100%; max-width: 440px; position: relative; z-index: 1; }
.auth-eyebrow { margin-bottom: 1.5rem; }
.auth-card h1 { font-size: clamp(2.4rem, 5vw, 3.2rem); margin-bottom: 1rem; letter-spacing: -0.03em; }
.auth-card h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--amber); }
.auth-card-sub { color: var(--paper-dim); margin-bottom: 2.5rem; font-size: 1rem; line-height: 1.6; }
.auth-form { display: flex; flex-direction: column; gap: 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field-input:focus { border-bottom-color: var(--amber); }
.auth-foot { margin-top: 2.5rem; font-size: 0.9rem; color: var(--paper-muted); display: flex; align-items: center; justify-content: center; gap: 0.6rem; flex-wrap: wrap; }
.auth-foot-link { color: var(--amber); cursor: pointer; transition: color 0.3s var(--ease-quiet); }
.auth-foot-link:hover { color: var(--paper); }
.auth-foot-divider { color: var(--line-strong); }

/* Form layout improvements */
.field-group { display: flex; flex-direction: column; gap: 1.25rem; }
.form-section { margin-bottom: 1.5rem; }
.form-section:last-of-type { margin-bottom: 0; }
.section-title { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--amber); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); }
.section-dot { width: 6px; height: 6px; background: var(--amber); border-radius: 50%; }
.section-badge { margin-left: auto; font-size: 10px; color: var(--paper-muted); text-transform: none; letter-spacing: 0.05em; background: var(--forest-light); padding: 2px 8px; border-radius: 3px; }
.field-label { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-muted); display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.field-hint { font-size: 10px; color: var(--paper-dim); text-transform: none; letter-spacing: 0.05em; }
.field-input { background: transparent; border: 1px solid var(--line-strong); border-radius: 4px; padding: 0.85rem 1rem; font-family: var(--font-body); font-size: 0.95rem; color: var(--paper); transition: all 0.3s var(--ease-quiet); width: 100%; box-sizing: border-box; }
.field-input:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 2px var(--accent-10); }
.field-input::placeholder { color: var(--paper-dim); opacity: 0.6; }
/* 覆盖浏览器自动填充的白色背景 */
.field-input:-webkit-autofill,
.field-input:-webkit-autofill:hover,
.field-input:-webkit-autofill:focus,
.field-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--forest-dark) inset !important;
  -webkit-text-fill-color: var(--paper) !important;
  caret-color: var(--paper);
  transition: background-color 5000s ease-in-out 0s;
}
.field-static { background: var(--forest-light); border: 1px solid var(--line); border-radius: 4px; padding: 0.85rem 1rem; font-size: 0.95rem; color: var(--paper); line-height: 1.5; }
.field-error { font-family: var(--font-mono); font-size: 11px; color: var(--danger-fg); letter-spacing: 0.05em; min-height: 1.2em; line-height: 1.5; margin-top: 0.3rem; }
.form-actions { margin-top: 2rem; }
.btn-block { width: 100%; justify-content: center; padding: 1rem 1.4rem; font-size: 14px; letter-spacing: 0.2em; }
.auth-foot a:hover { border-bottom-color: var(--amber); }
.quick-login-hint { margin-top: 1.5rem; padding: 1rem; border: 1px dashed var(--amber-dim); font-size: 0.85rem; color: var(--paper-muted); line-height: 1.6; }
.quick-login-hint a { color: var(--amber); cursor: pointer; border-bottom: 1px solid var(--amber-dim); }

.compose-page { padding: 9rem 2rem 6rem; min-height: 100vh; }
.compose-inner { max-width: 900px; margin: 0 auto; }
.compose-head { margin-bottom: 3rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.compose-head h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-top: 1rem; }
.compose-form { display: flex; flex-direction: column; gap: 2rem; }
.compose-category-field { display: flex; flex-direction: row; align-items: center; gap: 1rem; flex-wrap: wrap; }
.compose-category-field .field-label { margin-bottom: 0; flex-shrink: 0; }
.compose-category-field .field-input { flex: 1; min-width: 200px; padding: 0.6rem 0.8rem; }
.compose-title-input { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.025em; line-height: 1.1; background: transparent; border: none; padding: 0.5rem 0; color: var(--paper); width: 100%; }
.compose-title-input::placeholder { color: var(--paper-muted); }
.compose-excerpt-input { background: transparent; border: none; border-bottom: 1px solid var(--line); padding: 0.7rem 0; font-size: 1rem; color: var(--paper-dim); width: 100%; }
.compose-excerpt-input::placeholder { color: var(--paper-muted); }
.vditor { border: 1px solid var(--line-strong) !important; background: var(--forest-mid) !important; border-radius: 0 !important; }
.vditor-toolbar { background: var(--forest-dark) !important; border-bottom: 1px solid var(--line-strong) !important; }
.vditor-content { background: var(--forest-mid) !important; }
.vditor-wysiwyg, .vditor-sv, .vditor-ir { background: var(--forest-mid) !important; }
.vditor-wysiwyg *, .vditor-sv *, .vditor-ir * { color: var(--paper) !important; }
.vditor-wysiwyg blockquote, .vditor-sv blockquote, .vditor-ir blockquote { border-left: 3px solid var(--amber) !important; background: var(--accent-05) !important; }
.vditor-wysiwyg a, .vditor-sv a, .vditor-ir a { color: var(--amber) !important; }
.vditor-wysiwyg code, .vditor-sv code, .vditor-ir code { background: var(--forest-light) !important; color: var(--amber) !important; }
.vditor--fullscreen { z-index: 1000 !important; background: var(--forest-dark) !important; }
.compose-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid var(--line); gap: 1rem; flex-wrap: wrap; }
.compose-foot-left { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.char-count { color: var(--paper-muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; }
.compose-tags { display: flex; align-items: center; gap: 0.6rem; }
.compose-tag { display: inline-flex; align-items: center; padding: 0.35rem 0.8rem; background: var(--forest-mid); border: 1px solid var(--line-strong); border-radius: 4px; cursor: pointer; font-size: 12px; color: var(--paper-muted); transition: all 0.2s ease; }
.compose-tag:hover { border-color: var(--accent); color: var(--paper); }
.compose-tag:has(input:checked) { border-color: #5B8C5A; background: rgba(91, 140, 90, 0.15); }
.compose-tag input:checked + span { color: var(--accent); font-weight: 500; }
.compose-tag input:checked ~ span::before { content: '✓ '; }
.compose-meta { font-family: var(--font-mono); font-size: 12px; color: var(--paper-muted); letter-spacing: 0.15em; }
.compose-actions { display: flex; gap: 0.8rem; }

.markdown-body { font-size: 1.08rem; line-height: 1.85; color: var(--paper-dim); }
.markdown-body > *:first-child { margin-top: 0; }
.markdown-body > *:last-child { margin-bottom: 0; }
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 { margin: 2rem 0 1rem; font-weight: 700; line-height: 1.3; color: var(--paper); }
.markdown-body h1 { font-size: 1.8rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); }
.markdown-body h2 { font-size: 1.5rem; }
.markdown-body h3 { font-size: 1.2rem; }
.markdown-body h4 { font-size: 1.05rem; }
.markdown-body p { margin-bottom: 1.3rem; }
.markdown-body ul, .markdown-body ol { padding-left: 1.8rem; margin-bottom: 1.3rem; }
.markdown-body li { margin-bottom: 0.5rem; }
.markdown-body blockquote { border-left: 3px solid var(--amber); padding: 0.5rem 1.2rem; margin: 1.5rem 0; color: var(--paper-muted); font-style: italic; font-family: var(--font-serif); background: var(--accent-05); }
.markdown-body blockquote p { margin-bottom: 0.5rem; }
.markdown-body code { background: var(--forest-light); padding: 0.2rem 0.5rem; border-radius: 3px; font-family: var(--font-mono); font-size: 0.9em; color: var(--amber); }
.markdown-body pre { background: var(--forest-dark); padding: 1.2rem 1.5rem; border-radius: 4px; overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line-strong); }
.markdown-body pre code { background: none; padding: 0; color: var(--paper-dim); font-size: 0.95rem; }
.markdown-body img { max-width: 100%; border-radius: 4px; margin: 1.5rem 0; }
.markdown-body a { color: var(--amber); border-bottom: 1px solid var(--amber-dim); transition: border-color 0.3s var(--ease-quiet); }
.markdown-body a:hover { border-bottom-color: var(--amber); }
.markdown-body hr { border: none; border-top: 1px solid var(--line-strong); margin: 2.5rem 0; }
.markdown-body .timeline-marker, .vditor-reset .timeline-marker { margin: 1rem 0 0.5rem 0; padding-bottom: 0.5rem; font-family: var(--font-mono); font-size: 0.9rem; color: var(--amber); letter-spacing: 0.05em; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 0.5rem; }
.markdown-body .timeline-marker svg, .vditor-reset .timeline-marker svg { width: 14px; height: 14px; }

.journal-page { padding: 8rem 2rem 6rem; min-height: 100vh; }
.journal-inner { max-width: 760px; margin: 0 auto; }
.journal-meta-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.5rem; gap: 1rem; flex-wrap: wrap; }
.journal-back { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-muted); cursor: pointer; display: flex; align-items: center; gap: 0.5rem; transition: color 0.3s var(--ease-quiet); background: none; border: none; padding: 0; }
.journal-back:hover { color: var(--amber); }
.journal-cat { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; color: var(--amber); text-transform: uppercase; }
.journal-title { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 1.5rem; letter-spacing: -0.025em; line-height: 1.08; }
.journal-excerpt-detail { font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; color: var(--amber); line-height: 1.5; margin-bottom: 2.5rem; }
.journal-author-bar { display: flex; align-items: center; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 3rem; }
.journal-author-bar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; cursor: pointer; background: var(--forest-light); }
.journal-author-info { flex: 1; }
.journal-author-name { font-weight: 700; font-size: 1rem; margin-bottom: 0.2rem; cursor: pointer; }
.journal-author-bio { font-size: 0.85rem; color: var(--paper-muted); }
.journal-date { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.15em; color: var(--paper-muted); text-transform: uppercase; }
.journal-body { margin-bottom: 4rem; }
.journal-actions { display: flex; gap: 1.5rem; align-items: center; padding: 2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 4rem; flex-wrap: wrap; }
.like-btn { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; padding: 0; border: none; transition: all 0.3s var(--ease-quiet); background: transparent; color: var(--paper); }
.like-btn:hover { color: var(--amber); }
.like-btn.liked { color: var(--amber); }
.like-btn.liked svg { fill: var(--amber); }
.like-btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease-quiet); }
.like-btn:hover svg { transform: scale(1.15); }
.like-count { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.1em; }
.journal-report-btn { margin-left: auto; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-muted); cursor: pointer; background: transparent; border: none; transition: color 0.3s; }
.journal-report-btn:hover { color: var(--danger-fg); }
.journal-share-btn { background: transparent; border: none; color: var(--paper); cursor: pointer; padding: 0; display: flex; align-items: center; transition: color 0.3s var(--ease-quiet); }
.journal-share-btn:hover { color: var(--amber); }
.journal-share-btn svg { transition: transform 0.3s var(--ease-quiet); }
.journal-share-btn:hover svg { transform: scale(1.15); }
.journal-share-btn:hover { background: var(--forest-mid); border-color: var(--amber); color: var(--amber); }

/* 分享弹窗 */
.share-modal { background: var(--forest-light); border-radius: 8px; padding: 1.5rem; min-width: 320px; max-width: 90vw; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1001; }
.share-modal-header { font-size: 1.1rem; color: var(--paper); margin-bottom: 1.5rem; text-align: center; }
.share-modal-body { margin-bottom: 1.5rem; }
.share-section { margin-bottom: 1rem; }
.share-section label { display: block; font-size: 0.9rem; color: var(--paper-muted); margin-bottom: 0.5rem; }
.share-link-wrap { display: flex; gap: 0.5rem; }
.share-link-input { flex: 1; background: var(--forest-mid); border: 1px solid var(--line); color: var(--paper); padding: 0.5rem; border-radius: 4px; font-size: 0.85rem; }
.share-modal-footer { display: flex; justify-content: center; }

/* 海报预览 */
.poster-preview { background: var(--forest-light); border-radius: 8px; padding: 1.5rem; max-width: 90vw; max-height: 90vh; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1001; display: flex; flex-direction: column; }
.poster-preview-header { font-size: 1.1rem; color: var(--paper); margin-bottom: 1rem; text-align: center; }
.poster-preview-footer { display: flex; gap: 1rem; justify-content: center; margin-top: 1rem; }

/* 海报预览滑动切换 */
.poster-preview-body { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; }
.poster-carousel-viewport { width: 100%; max-width: 340px; overflow: hidden; touch-action: pan-y; }
.poster-carousel-track { display: flex; width: 100%; transition: transform 0.32s var(--ease-quiet); }
.poster-slide { flex: 0 0 100%; display: flex; justify-content: center; align-items: center; min-height: 200px; }
.poster-slide-placeholder { color: var(--paper-muted); font-size: 0.85rem; padding: 2rem 0; }
.poster-image { max-width: 100%; max-height: 56vh; border-radius: 4px; display: block; }
.poster-dots { display: flex; gap: 0.6rem; justify-content: center; margin-top: 1rem; }
.poster-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--paper-muted); opacity: 0.35; cursor: pointer; transition: all 0.25s var(--ease-quiet); }
.poster-dot.active { opacity: 1; background: var(--paper); transform: scale(1.15); }
.comments-section { margin-top: 1rem; }
.comments-head { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; margin-bottom: 2rem; letter-spacing: -0.015em; }
.comment-form { margin-bottom: 3rem; display: flex; flex-direction: column; gap: 1rem; }
.comment-form textarea { background: var(--forest-mid); border: 1px solid var(--line); padding: 1rem; font-size: 0.95rem; line-height: 1.6; color: var(--paper); resize: vertical; min-height: 80px; width: 100%; transition: border-color 0.3s var(--ease-quiet); font-family: var(--font-body); }
.comment-form textarea:focus { border-color: var(--amber); }
.comment-form-actions { display: flex; justify-content: flex-end; gap: 0.8rem; }
.comment-list { display: flex; flex-direction: column; gap: 1.8rem; }
.comment-item { display: grid; grid-template-columns: 40px 1fr; gap: 1rem; }
.comment-item.reply { margin-left: 3rem; padding-left: 1.5rem; border-left: 1px solid var(--line); }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; cursor: pointer; background: var(--forest-light); }
.comment-body { min-width: 0; }
.comment-header { display: flex; align-items: baseline; gap: 0.7rem; margin-bottom: 0.3rem; flex-wrap: wrap; }
.comment-author { font-weight: 700; font-size: 0.95rem; color: var(--paper); cursor: pointer; }
.comment-time { font-family: var(--font-mono); font-size: 11px; color: var(--paper-muted); letter-spacing: 0.1em; }
.comment-source-badge { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 4px; background: var(--accent-15); color: var(--accent); font-size: 11px; font-weight: 600; line-height: 1.4; border: 1px solid var(--accent-10); }
.comment-content { font-size: 0.95rem; color: var(--paper-dim); line-height: 1.6; margin-bottom: 0.5rem; }
.comment-actions { display: flex; gap: 1rem; }
.comment-action { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-muted); cursor: pointer; background: none; border: none; padding: 0; transition: color 0.3s var(--ease-quiet); }
.comment-action:hover { color: var(--amber); }
.reply-form { margin-top: 0.8rem; display: none; flex-direction: column; gap: 0.6rem; }
.reply-form.active { display: flex; }
.reply-form textarea { background: var(--forest-mid); border: 1px solid var(--line); padding: 0.7rem; font-size: 0.9rem; color: var(--paper); resize: vertical; min-height: 60px; width: 100%; font-family: var(--font-body); }
.reply-form textarea:focus { border-color: var(--amber); }
.reply-form-actions { display: flex; gap: 0.6rem; justify-content: flex-end; }

.profile-page { padding: 9rem 2rem 6rem; min-height: 100vh; }
.profile-inner { max-width: 1100px; margin: 0 auto; }
.profile-head { display: flex; justify-content: space-between; align-items: center; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); margin-bottom: 3rem; flex-wrap: wrap; }
.profile-avatar { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); background: var(--forest-light); flex-shrink: 0; }
.profile-info { flex: 1; min-width: 250px; }
.profile-info h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.5rem; letter-spacing: -0.025em; color: var(--paper); }
.profile-bio { color: var(--paper-dim); font-size: 1.1rem; margin-bottom: 1rem; font-family: var(--font-serif); font-style: italic; }
.profile-stats { display: flex; gap: 1.5rem; font-family: var(--font-mono); font-size: 12px; color: var(--paper-muted); letter-spacing: 0.15em; text-transform: uppercase; flex-wrap: wrap; align-items: center; }
.profile-stats span strong { color: var(--paper); font-weight: 500; margin-right: 0.4rem; }
.profile-actions { display: flex; gap: 0.8rem; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
@media (max-width: 768px) { .profile-head { flex-direction: column; text-align: center; gap: 1.5rem; } .profile-actions { flex-direction: row; justify-content: center; align-items: center; width: 100%; } .profile-info { width: 100%; } }
.profile-list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.profile-list-head h2 { font-size: 1.3rem; font-weight: 700; }
.view-toggle { display: flex; gap: 0.5rem; }
.view-btn { padding: 0.3rem 0.7rem; font-size: 11px; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; background: transparent; border: 1px solid var(--line-strong); color: var(--paper-dim); cursor: pointer; transition: all 0.2s; }
.view-btn:hover { border-color: var(--amber); color: var(--amber); }
.view-btn.active { background: var(--amber); color: var(--forest-dark); border-color: var(--amber); }
.empty-state { padding: 4rem 2rem; text-align: center; border: 1px dashed var(--line-strong); }
.empty-state p { color: var(--paper-muted); margin-bottom: 1.5rem; font-size: 0.95rem; }

.journal-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 1200px) {
  .journal-cards-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .journal-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .journal-cards-grid { grid-template-columns: 1fr; }
}
.journal-card { position: relative; aspect-ratio: 3/4; overflow: hidden; border: 1px solid var(--line); cursor: pointer; background: var(--forest-mid); }
.journal-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-quiet); filter: brightness(0.8); }
.journal-card:hover img { transform: scale(1.06); filter: brightness(0.9); }
.journal-card-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.2rem; background: linear-gradient(to top, var(--card-overlay-gradient), transparent); opacity: 0; transform: translateY(10px); transition: all 0.4s var(--ease-quiet); }
.journal-card:hover .journal-card-info { opacity: 1; transform: translateY(0); }
.journal-card-title { color: var(--paper); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.3rem; letter-spacing: -0.01em; }
.journal-card-date { color: var(--amber); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; }

.candle-display { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.candle-icon { position: relative; width: 16px; height: 24px; display: inline-block; }
.candle-icon .flame { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 12px; height: 14px; background: radial-gradient(ellipse at bottom, #ffd700, #ff8c00); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; animation: flicker 1.5s ease-in-out infinite alternate; box-shadow: 0 0 8px rgba(255,165,0,0.6); }
.candle-icon .body { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 10px; height: 14px; background: linear-gradient(to right, #c9a961, #f4e4c1, #c9a961); border-radius: 2px; }
@keyframes flicker { 0% { transform: translateX(-50%) scale(1) rotate(-2deg); } 50% { transform: translateX(-50%) scale(1.15) rotate(2deg); } 100% { transform: translateX(-50%) scale(0.95) rotate(-1deg); } }
.candle-count { font-family: var(--font-mono); font-size: 14px; color: var(--amber); font-weight: 700; margin-left: 0.3rem; }

/* 羽毛笔奖励弹窗 */
.feather-reward-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.9); display: none; align-items: center; justify-content: center; z-index: 2000; }
.feather-reward-overlay.show { display: flex; }
.feather-reward-box { text-align: center; animation: rewardAppear 0.8s var(--ease-quiet); padding: 2rem; }
.feather-icon-big { margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: center; animation: featherFloat 2s ease-in-out infinite; filter: drop-shadow(0 0 20px var(--accent-glow)); }
@keyframes featherFloat { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
.feather-reward-box h2 { font-size: 2.2rem; margin-bottom: 0.5rem; color: var(--amber); font-weight: 600; letter-spacing: -0.02em; }
.feather-reward-box p { color: var(--paper-dim); font-size: 1.1rem; margin-bottom: 0.3rem; }
.feather-reward-box p:last-of-type { font-size: 0.85rem; color: var(--paper-muted); }

/* 个人主页羽毛笔展示 */
.feather-display { font-size: 0.85rem; color: var(--paper-dim); display: inline-flex; align-items: center; gap: 0.3rem; }
.feather-icon { display: inline-flex; align-items: center; vertical-align: middle; }
.feather-icon svg { filter: drop-shadow(0 0 3px var(--accent-glow-soft)); }
.feather-count { font-family: var(--font-mono); color: var(--amber); font-weight: 700; }

/* 文章详情页点亮数 + 小蜡烛 */
.journal-read-count { font-size: 0.85rem; color: var(--paper-muted); font-family: var(--font-mono); margin-left: 0.5rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.candle-mini { position: relative; display: inline-block; width: 10px; height: 14px; }
.candle-mini::before { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 8px; height: 10px; background: linear-gradient(to right, #8a7a4a, #c9a961, #f4e4c1, #c9a961, #8a7a4a); border-radius: 1px; }
.candle-mini::after { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 6px; height: 6px; background: radial-gradient(ellipse at bottom, #ffd700, #ff8c00); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; animation: miniFlicker 1.2s ease-in-out infinite alternate; box-shadow: 0 0 6px rgba(255,165,0,0.8); }
@keyframes miniFlicker { 0% { transform: translateX(-50%) scale(1) rotate(-2deg); box-shadow: 0 0 6px rgba(255,165,0,0.8); } 100% { transform: translateX(-50%) scale(1.15) rotate(2deg); box-shadow: 0 0 10px rgba(255,140,0,1); } }
@keyframes rewardAppear { 0% { opacity: 0; transform: scale(0.5) translateY(30px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }

.modal-overlay { position: fixed; inset: 0; background: var(--modal-overlay-bg); display: none; align-items: center; justify-content: center; z-index: 1200; padding: 2rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-overlay.show { display: flex; }
body.modal-open { overflow: hidden; }
.modal-box { width: 100%; max-width: 480px; max-height: 85vh; overflow-y: auto; background: var(--forest-mid); border: 1px solid var(--line-strong); padding: 2rem; }
.modal-box h2 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.modal-box p { color: var(--paper-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.modal-actions { position: sticky; bottom: -2rem; background: var(--forest-mid); padding-top: 1rem; margin-top: 2rem; display: flex; justify-content: flex-end; gap: 0.8rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-muted); margin-bottom: 0.5rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; background: var(--forest-mid); border: 1px solid var(--line-strong); padding: 0.6rem 0.8rem; color: var(--paper); font-size: 0.95rem; font-family: var(--font-body); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--amber); }
.form-group textarea { min-height: 60px; resize: vertical; }
.avatar-upload-preview { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line-strong); margin-top: 0.5rem; background: var(--forest-light); }
.avatar-upload-btn { display: inline-block; padding: 0.4rem 0.8rem; font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; background: transparent; border: 1px solid var(--line-strong); color: var(--paper-dim); cursor: pointer; transition: all 0.2s; margin-top: 0.5rem; }
.avatar-upload-btn:hover { border-color: var(--amber); color: var(--amber); }

.plan-card { border: 1px solid var(--line-strong); padding: 1.2rem; margin-bottom: 0.8rem; cursor: pointer; transition: all 0.3s var(--ease-quiet); position: relative; }
.plan-card:hover { border-color: var(--amber); background: var(--accent-03); }
.plan-card.selected { border-color: var(--amber); background: var(--accent-08); }
.plan-card.recommended::after { content: '推荐'; position: absolute; top: -1px; right: -1px; background: var(--amber); color: var(--forest-dark); font-size: 10px; font-family: var(--font-mono); padding: 0.15rem 0.5rem; letter-spacing: 0.1em; }
.plan-name { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; margin-bottom: 0.3rem; }
.plan-badge { display: inline-block; padding: 0.1rem 0.4rem; font-size: 10px; font-family: var(--font-mono); background: var(--amber); color: var(--forest-dark); border-radius: 2px; margin-left: 0.5rem; vertical-align: middle; }
.plan-price { font-size: 1.8rem; font-weight: 800; color: var(--amber); }
.plan-price small { font-size: 0.85rem; color: var(--paper-muted); text-decoration: line-through; font-weight: 400; margin-left: 0.5rem; }
.plan-features { list-style: none; padding: 0; margin: 0.8rem 0 0 0; }
.plan-features li { font-size: 0.85rem; color: var(--paper-dim); padding: 0.2rem 0; padding-left: 1.2rem; position: relative; }
.plan-features li::before { content: '✓'; position: absolute; left: 0; color: var(--amber); }

.member-badge { display: inline-block; padding: 0.1rem 0.4rem; font-size: 10px; font-family: var(--font-mono); background: var(--amber); color: var(--forest-dark); border-radius: 2px; margin-left: 0.4rem; vertical-align: middle; letter-spacing: 0.05em; }

.toast { position: fixed; top: 2rem; left: 50%; transform: translateX(-50%) translateY(-20px); background: var(--forest-light); color: var(--paper); padding: 1rem 1.5rem; border: 1px solid var(--amber); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase; z-index: 9999; opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease-quiet), transform 0.4s var(--ease-quiet); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease-quiet), transform 1.1s var(--ease-quiet); }
.fade-up.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } .fade-up, .hero-eyebrow, .hero h1, .hero-sub, .hero-cta, .hero-meta, .stacked-card { opacity: 1 !important; transform: none !important; } }
/* ===== 用户抽屉（个人中心） ===== */
.drawer-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0); z-index: 1002;
    pointer-events: none; transition: background 0.35s ease;
}
.drawer-overlay.show { background: var(--drawer-overlay-bg); pointer-events: auto; }
body.drawer-open { overflow: hidden; touch-action: none; }
.confirm-overlay { position: fixed; inset: 0; background: var(--modal-overlay-bg); display: flex; align-items: center; justify-content: center; z-index: 1210; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.confirm-box { background: var(--forest-dark); border: 1px solid var(--line-strong); border-radius: 8px; padding: 1.5rem; max-width: 360px; width: 90vw; }
.confirm-msg { color: var(--paper); margin: 0 0 1.25rem; line-height: 1.6; font-size: 0.95rem; }
.confirm-actions { display: flex; gap: 0.75rem; justify-content: flex-end; }
.confirm-actions .btn { padding: 0.5rem 1.2rem; }
.user-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: 400px;
    background: var(--forest-dark); border-left: 1px solid var(--line-strong);
    z-index: 1003; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    display: block; overflow-y: auto;
    box-shadow: -8px 0 32px rgba(0,0,0,0.6);
}
.user-drawer.open { transform: translateX(0); }
.drawer-handle {
    padding: 0.75rem 1.5rem 0.5rem; display: flex; justify-content: center; cursor: pointer;
}
.drawer-handle-bar {
    width: 40px; height: 4px; border-radius: 2px; background: var(--line-strong); transition: background 0.2s;
}
.drawer-handle-bar:hover { background: var(--amber); }
.drawer-user-info {
    padding: 0.5rem 1.5rem 1.5rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 1rem;
}
.drawer-user-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--amber); flex-shrink: 0; }
.drawer-user-name { font-size: 1.1rem; font-weight: 600; }
.drawer-user-bio { font-size: 0.8rem; color: var(--paper-muted); margin-top: 0.2rem; }
.drawer-nav { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.drawer-nav-item {
    display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 1.5rem; cursor: pointer;
    color: var(--paper-dim); font-size: 0.9rem; transition: background 0.15s, color 0.15s;
    border: none; background: none; width: 100%; text-align: left;
}
.drawer-nav-item:hover { background: rgba(var(--paper-rgb),0.04); color: var(--paper); }
.drawer-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.drawer-panel { display: none; }
.drawer-nav-content {
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
    padding: 0 1.5rem; background: rgba(var(--paper-rgb),0.02);
    border-bottom: 1px solid transparent;
}
.drawer-nav-content.active { max-height: 800px; opacity: 1; padding: 0.8rem 1.5rem 1.4rem; border-bottom-color: var(--line); }
.drawer-nav-item.active { color: var(--amber); background: rgba(var(--paper-rgb),0.05); }
.drawer-panel-title {
    font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--amber);
    font-family: var(--font-mono); padding: 1.2rem 0 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem;
}
.drawer-form-group { margin-bottom: 1.2rem; }
.drawer-form-group label {
    display: block; font-size: 0.9rem; color: var(--paper-muted); margin-bottom: 0.4rem; letter-spacing: 0.02em;
}
.drawer-form-group input, .drawer-form-group textarea, .drawer-form-group select {
    width: 100%; padding: 0.6rem 0.8rem; background: var(--forest-mid); border: 1px solid var(--line-strong);
    color: var(--paper); font-size: 0.9rem; border-radius: 4px; box-sizing: border-box; font-family: inherit; resize: vertical;
}
.drawer-form-group input:focus, .drawer-form-group textarea:focus, .drawer-form-group select:focus {
    outline: none; border-color: var(--amber);
}
.drawer-avatar-row { display: flex; align-items: center; gap: 1rem; }
.drawer-avatar-preview { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--amber); flex-shrink: 0; }
.drawer-export-card {
    display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--line);
    margin-bottom: 0.8rem; cursor: pointer; transition: border-color 0.2s, background 0.2s; border-radius: 4px;
}
.drawer-export-card:hover { border-color: var(--amber); background: rgba(var(--paper-rgb),0.03); }
.drawer-export-card.vip-only { position: relative; }
.export-card-icon { font-size: 1.8rem; flex-shrink: 0; width: 1.8rem; height: 1.8rem; display: flex; align-items: center; justify-content: center; }
.export-card-icon svg { width: 100%; height: 100%; }
.export-card-info { flex: 1; }
.export-card-name { font-size: 0.95rem; font-weight: 600; }
.export-card-desc { font-size: 0.75rem; color: var(--paper-muted); margin-top: 0.2rem; }
.export-card-arrow { color: var(--amber); font-size: 1.2rem; }
.vip-tag {
    position: absolute; top: 0.5rem; right: 0.5rem; background: var(--amber); color: var(--forest-dark);
    font-size: 0.65rem; padding: 0.1rem 0.4rem; border-radius: 2px; font-family: var(--font-mono); letter-spacing: 0.05em;
}
.drawer-export-card.vip-only .export-card-arrow { opacity: 0.4; }
.export-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0.8rem; margin: 1rem 0 0.5rem; border-bottom: 1px solid var(--line-soft); font-size: 0.85rem; }
.export-toolbar .export-check-all { display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.export-toolbar .export-counter { color: var(--paper-muted); font-family: var(--mono); }
.export-journal-list { max-height: 280px; overflow-y: auto; padding: 0.4rem 0; border-bottom: 1px solid var(--line-soft); }
.export-journal-list .export-empty { padding: 2rem 1rem; text-align: center; color: var(--paper-muted); font-size: 0.85rem; }
.export-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.5rem; border-radius: 6px; cursor: pointer; transition: background 0.15s ease; }
.export-item:hover { background: rgba(var(--paper-rgb),0.04); }
.export-item input[type=checkbox] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--amber); flex-shrink: 0; }
.export-item .export-item-body { flex: 1; min-width: 0; }
.export-item .export-item-title { font-size: 0.9rem; color: var(--paper); margin-bottom: 0.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.export-item .export-item-meta { font-size: 0.75rem; color: var(--paper-muted); display: flex; gap: 0.5rem; align-items: center; }
.export-item .export-item-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.export-format-group { margin-top: 1.2rem; }
.export-format-label { font-size: 0.85rem; color: var(--paper-muted); margin-bottom: 0.6rem; }
.export-format-buttons { display: flex; flex-direction: column; gap: 0.5rem; }
.export-fmt-btn { position: relative; display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0.9rem; background: transparent; border: 1px solid var(--line-soft); border-radius: 6px; color: var(--paper); cursor: pointer; transition: all 0.15s ease; text-align: left; }
.export-fmt-btn:hover { border-color: var(--amber); background: rgba(var(--paper-rgb),0.03); }
.export-fmt-btn.selected { border-color: var(--amber); background: var(--accent-08); }
.export-fmt-btn .fmt-icon { width: 1.4rem; height: 1.4rem; flex-shrink: 0; color: var(--amber); }
.export-fmt-btn .fmt-info { flex: 1; display: flex; flex-direction: column; gap: 0.1rem; }
.export-fmt-btn .fmt-name { font-size: 0.9rem; font-weight: 500; }
.export-fmt-btn .fmt-desc { font-size: 0.72rem; color: var(--paper-muted); }
.export-fmt-btn.vip-only { opacity: 0.7; }
.export-fmt-btn.vip-only::after { content: 'VIP'; position: absolute; top: 0.5rem; right: 0.5rem; padding: 0.15rem 0.45rem; background: linear-gradient(135deg, var(--amber), #d4a056); color: var(--forest-dark); font-size: 0.65rem; font-weight: 600; border-radius: 3px; }
.export-fmt-btn.vip-only.selected { opacity: 1; }
.btn-primary[disabled] { opacity: 0.4; cursor: not-allowed; }


/* 胶囊开关样式 */
.switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.slider { position: relative; display: inline-block; width: 44px; height: 24px; background: var(--switch-bg); border-radius: 12px; transition: background 0.3s; flex-shrink: 0; vertical-align: middle; }
.slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; background: var(--switch-knob); border-radius: 50%; transition: transform 0.3s, background 0.3s; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.switch input:checked + .slider { background: var(--amber); }
.switch input:checked + .slider::before { transform: translateX(20px); background: var(--switch-knob-checked); }


/* 句子迷模块 */
.quote-section { padding: 4rem 2rem 3rem; background: var(--forest-dark); text-align: center; }
.quote-section h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 0 0 1.5rem; }
.quote-section .eyebrow { margin-bottom: 0.5rem; }
.quote-inner { max-width: 880px; margin: 0 auto; position: relative; }
.quote-mark { font-size: 6rem; line-height: 1; color: var(--amber); opacity: 0.3; font-family: var(--font-serif); position: absolute; top: -1.5rem; left: -1rem; }
.quote-content { font-size: clamp(1.5rem, 2.5vw + 0.7rem, 2.3rem); line-height: 1.9; color: var(--paper-dim); font-family: var(--font-serif); font-style: italic; padding: 1rem 2rem; }
.quote-attribution { font-size: 0.9rem; color: var(--paper-muted); margin-top: 1rem; padding-right: 2rem; }


/* 回到顶部按钮 */
.back-to-top { position: fixed; right: 1rem; bottom: 5rem; width: 44px; height: 44px; border-radius: 50%; background: var(--forest-mid); border: 1px solid var(--line-strong); color: var(--paper); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.3s var(--ease-quiet), transform 0.3s var(--ease-quiet), visibility 0.3s, background 0.3s; z-index: 50; box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.back-to-top:hover { background: var(--amber); color: var(--forest-dark); border-color: var(--amber); }
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }


/* 二维码图标按钮 */
.qr-icon-btn { width: 44px; height: 44px; border-radius: 8px; background: var(--forest-light); border: 1px solid var(--line); color: var(--paper); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; padding: 0; overflow: hidden; }
.qr-icon-btn svg { width: 100%; height: 100%; display: block; }
.qr-icon-btn:hover { background: var(--amber); color: var(--forest-dark); border-color: var(--amber); }

/* 二维码弹窗 */
.qr-modal-overlay { position: fixed; inset: 0; background: var(--modal-overlay-bg); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.qr-modal-box { background: var(--qr-modal-bg); padding: 1.5rem; border-radius: 8px; text-align: center; max-width: 280px; }
.qr-modal-box img { width: 200px; height: 200px; object-fit: contain; display: block; margin: 0 auto 1rem; }
.qr-modal-box p { color: var(--qr-modal-fg); font-size: 1rem; margin: 0; }
.qr-modal-close { position: absolute; top: 1rem; right: 1rem; width: 32px; height: 32px; border-radius: 50%; background: var(--qr-close-bg); border: none; color: var(--qr-close-fg); font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qr-modal-close:hover { background: var(--qr-close-bg-hover); }

.export-fmt-vip { border-color: var(--amber-dim); }
.export-fmt-vip .fmt-vip { position: absolute; top: -6px; right: -6px; background: var(--amber); color: var(--forest-dark); font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 600; }

.drawer-member-row { padding: 0.75rem 1.5rem; margin: 0.5rem 1rem; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-size: 14px; transition: all 0.2s; }
.drawer-member-row.non-member { color: var(--paper); border: 1px solid var(--line-strong); background: var(--forest-light); }
.drawer-member-row.non-member:hover { border-color: var(--amber-dim); background: var(--forest-mid); }
.drawer-member-row.member { background: var(--amber); color: var(--forest-dark); }
.member-type { display: inline-flex; align-items: center; gap: 0.5rem; }
.member-icon { width: 24px; height: 24px; flex-shrink: 0; display: inline-block; }
/* 已开通会员：渐变金黄色背景 + 深色皇冠 */
.drawer-member-row.member {
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}
/* 有效会员：SVG使用内联fill颜色，不覆盖 */
.drawer-member-row.member .member-icon { }
/* 未开通会员：灰色线框皇冠（描边模式，透明填充） */
.drawer-member-row.non-member .member-icon { filter: var(--member-icon-filter); }

/* ===== CMS 静态页面 ===== */
.static-page { min-height: 100vh; padding: 7rem 2rem 4rem; display: flex; justify-content: center; }
.static-page-inner { width: 100%; max-width: 680px; }
.static-page-eyebrow { margin-bottom: 2rem; font-size: 0.9rem; }
.static-page-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 2.5rem; color: var(--paper); border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; }
.static-page-content { font-family: var(--font-body); font-size: 1.05rem; line-height: 1.85; color: var(--paper-dim); }
.static-page-content h1,.static-page-content h2,.static-page-content h3 { font-family: var(--font-serif); font-weight: 400; color: var(--paper); margin: 2rem 0 0.75rem; line-height: 1.3; }
.static-page-content h1 { font-size: 1.8rem; }
.static-page-content h2 { font-size: 1.4rem; }
.static-page-content h3 { font-size: 1.15rem; }
.static-page-content p { margin: 0 0 1.2rem; }
.static-page-content ul,.static-page-content ol { padding-left: 1.5rem; margin: 0 0 1.2rem; }
.static-page-content li { margin-bottom: 0.4rem; }
.static-page-content strong { color: var(--paper); font-weight: 600; }
.static-page-content em { font-style: italic; }
.static-page-content a { color: var(--amber); }
.static-page-content a:hover { text-decoration: underline; }
.static-page-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.page-loading { min-height: 80vh; display: flex; align-items: center; justify-content: center; color: var(--paper-muted); }

/* ============ 时间线页面 ============ */
.timeline-page { padding: 2rem 0; max-width: 800px; margin: 0 auto; }
.timeline-header { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.timeline-header h2 { font-size: 1.5rem; font-family: var(--font-serif); color: var(--paper); }
.timeline-count { font-family: var(--font-mono); font-size: 0.85rem; color: var(--paper-muted); }

.timeline-year { margin-bottom: 1.5rem; }
.year-header { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem; background: var(--forest-light); border-radius: 4px; cursor: pointer; transition: background 0.2s var(--ease-quiet); }
.year-header:hover { background: var(--forest-mid); }
.year-title { font-size: 1.1rem; font-weight: 500; color: var(--paper); }
.year-count { font-family: var(--font-mono); font-size: 0.8rem; color: var(--paper-muted); margin-left: auto; }
.year-arrow { font-size: 0.75rem; color: var(--paper-muted); transition: transform 0.3s var(--ease-quiet); }
.year-arrow.collapsed { transform: rotate(-90deg); }

.year-content { margin-top: 0.75rem; padding-left: 1rem; border-left: 2px solid var(--line); }
.year-content.collapsed { display: none; }

.timeline-month { margin-bottom: 1rem; }
.month-header { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.75rem; cursor: pointer; color: var(--paper-dim); transition: color 0.2s; }
.month-header:hover { color: var(--paper); }
.month-header span:first-child { font-family: var(--font-mono); font-size: 0.9rem; letter-spacing: 0.1em; }
.month-header span:last-child { font-size: 0.75rem; color: var(--paper-muted); }

.month-entries { padding-left: 1rem; }
.month-entries.collapsed { display: none; }

.timeline-entry { display: flex; align-items: center; gap: 1rem; padding: 0.6rem 0; color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--line); transition: all 0.2s var(--ease-quiet); }
.timeline-entry:hover { color: var(--amber); border-bottom-color: var(--amber); }
.timeline-entry:last-child { border-bottom: none; }
.entry-date { font-family: var(--font-mono); font-size: 0.8rem; color: var(--paper-muted); min-width: 3.5rem; }
.entry-title { flex: 1; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-private { font-family: var(--font-mono); font-size: 0.65rem; color: var(--amber); background: var(--accent-15); padding: 2px 6px; border-radius: 3px; letter-spacing: 0.05em; }

.timeline-empty { padding: 4rem 2rem; text-align: center; color: var(--paper-muted); }
.timeline-empty-icon { font-size: 3rem; opacity: 0.3; margin-bottom: 1rem; }

/* 时间线中的加入言志条目 */
.timeline-join-entry { background: transparent; }
.timeline-join-entry .join-text { color: var(--danger-fg); font-style: italic; }
.timeline-join-entry:hover { background: var(--danger-bg-soft); }

/* 时间线布局：左侧列表 + 右侧日历 */
.timeline-page { padding: 2rem 0; max-width: 1200px; margin: 0 auto; }
.timeline-layout { display: flex; gap: 2rem; align-items: flex-start; }
.timeline-main { flex: 1; min-width: 0; }
.timeline-calendar { width: 280px; flex-shrink: 0; position: sticky; top: 100px; }

/* 个人中心时间线：覆盖首页全局 .timeline-list 的 max-width/padding，避免内容相对日历内缩 */
.timeline-page .timeline-list { max-width: 100%; margin: 0; padding: 0; }

/* 日历热力图 */
.heatmap-container { background: var(--forest-light); border-radius: 8px; padding: 1rem; }
.heatmap-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.heatmap-nav { background: transparent; border: 1px solid var(--line); color: var(--paper); padding: 0.3rem 0.6rem; border-radius: 4px; cursor: pointer; font-size: 0.9rem; transition: all 0.2s; }
.heatmap-nav:hover { border-color: var(--amber); color: var(--amber); }
.heatmap-title { font-family: var(--font-mono); font-size: 0.95rem; color: var(--paper); }
.heatmap-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.heatmap-weekday { text-align: center; font-size: 0.7rem; color: var(--paper-muted); padding: 0.3rem 0; }
.heatmap-cell { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; border-radius: 4px; cursor: pointer; transition: all 0.2s; }
.heatmap-cell.empty { background: transparent; cursor: default; }
.heatmap-cell.level-0 { background: var(--heatmap-0); color: var(--heatmap-text-light); }
.heatmap-cell.level-1 { background: var(--heatmap-1); color: var(--heatmap-text-light); }
.heatmap-cell.level-2 { background: var(--heatmap-2); color: var(--heatmap-text-dark); }
.heatmap-cell.level-3 { background: var(--heatmap-3); color: var(--heatmap-text-dark); }
.heatmap-cell:hover { transform: scale(1.1); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.heatmap-title { cursor: pointer; transition: color 0.2s; }
.heatmap-title:hover { color: var(--amber); }

/* 年月选择器 */
.ym-picker { background: var(--forest-light); border-radius: 8px; padding: 1.5rem; min-width: 280px; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1001; }
.ym-picker-header { font-size: 1.1rem; color: var(--paper); margin-bottom: 1rem; text-align: center; }
.ym-picker-body { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.ym-select { flex: 1; background: var(--forest-mid); border: 1px solid var(--line); color: var(--paper); padding: 0.6rem; border-radius: 4px; font-size: 1rem; cursor: pointer; }
.ym-select:focus { border-color: var(--amber); outline: none; }
.ym-picker-footer { display: flex; justify-content: flex-end; gap: 0.75rem; }

/* 日历悬停提示样式 */
.heatmap-cell { position: relative; }
.heatmap-cell:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--forest-mid);
  color: var(--paper);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 0.5rem;
  border: 1px solid var(--line-strong);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* 加载更多按钮 */
.load-more-wrap { text-align: center; margin: 2rem 0; }
.btn-load-more {
  background: var(--forest-light);
  color: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 0.75rem 2rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s var(--ease-quiet);
  letter-spacing: 0.05em;
}
.btn-load-more:hover {
  background: var(--forest-mid);
  border-color: var(--amber);
  color: var(--amber);
}

@media (max-width: 900px) {
  .timeline-page { padding: 1.5rem 0; }
  .timeline-layout { flex-direction: column-reverse; gap: 1.5rem; }
  .timeline-main { width: 100%; }
  .timeline-calendar { width: 100%; position: static; }
  .year-content { padding-left: 0; }
  .month-entries { padding-left: 0; }
}

/* ===== 移动端适配补充 (2026-08-25) · 增量，不改动既有桌面规则 ===== */
@media (max-width: 640px) {
  /* 弹窗：手机上近全屏，释放内容宽度，避开固定顶栏 */
  .modal-overlay { padding: 0; align-items: stretch; }
  .modal-box {
    max-width: 100%;
    max-height: 100vh; max-height: 100dvh;
    height: 100vh; height: 100dvh;
    border: none; border-radius: 0;
    padding: 5.5rem 1.25rem 1.5rem;
  }
  .modal-box h2 { font-size: 1.4rem; }
  .modal-actions { position: sticky; bottom: 0; margin-top: 1.5rem; padding: 1rem 0; background: var(--forest-mid); }

  /* 各页面侧边距收窄，提升内容可用宽度 */
  .journal-page, .auth-page, .profile-page, .compose-page {
    padding-left: 1.25rem; padding-right: 1.25rem; padding-top: 7rem;
  }

  /* 写文页头：标题与操作纵向堆叠 */
  .compose-head { flex-direction: column; align-items: flex-start; gap: 1rem; }

  /* 评论表单操作按钮占满宽度、纵向排列，便于触屏 */
  .comment-form-actions { flex-direction: column-reverse; }
  .comment-form-actions .btn { width: 100%; justify-content: center; }

  /* 详情页作者栏与操作栏更紧凑 */
  .journal-author-bar { gap: 0.8rem; }
  .journal-actions { gap: 1rem; }

  /* 提示条移至底部，避免与固定顶栏重叠 */
  .toast { top: auto; bottom: 1.5rem; }

  /* 时间线页面：内容横向拉满，与日历/分割线同宽 */
  .timeline-page { padding: 1.25rem 0; }
  .timeline-header { margin-bottom: 1.25rem; padding-bottom: 0.75rem; }
  .year-header { padding: 0.75rem 0.5rem; }
  .month-header { padding: 0.5rem 0.5rem; }
  .year-content { padding-left: 0; border-left-width: 0; }
  .month-entries { padding-left: 0; }
  .timeline-entry { gap: 0.75rem; padding: 0.5rem; }
}
@media (max-width: 480px) {
  .modal-box { padding: 5rem 1rem 1.25rem; }
  .journal-cards-grid { gap: 1rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .timeline-page { padding: 1rem 0; }
  .year-content { padding-left: 0; }
  .month-entries { padding-left: 0; }
}
/* ===== 打赏按钮 & 弹窗 ===== */
.tip-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: transparent; border: none; color: var(--paper-muted);
  cursor: pointer; padding: 0.3rem; border-radius: 50%;
  transition: color 0.2s, background 0.2s; font-family: var(--font-mono);
}
.tip-btn:hover { color: var(--amber); background: rgba(var(--paper-rgb),0.04); }
.tip-btn span { font-size: 0.82rem; letter-spacing: 0.05em; }
.tip-modal {
  background: var(--forest-mid); border: 1px solid var(--line-strong);
  border-radius: 14px; width: 360px; max-width: 92vw; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.tip-modal-header { padding: 1rem 1.25rem; font-size: 1.05rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.tip-modal-body { padding: 1.25rem; }
.tip-modal-sub { color: var(--paper-muted); font-size: 0.85rem; margin: 0 0 1rem; }
.tip-amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-bottom: 1rem; }
.tip-amount-btn {
  padding: 0.7rem 0; border: 1px solid var(--line-strong); border-radius: 10px;
  background: transparent; color: var(--paper); cursor: pointer; font-size: 0.95rem;
  transition: all 0.18s; font-family: var(--font-mono);
}
.tip-amount-btn:hover { border-color: var(--amber); }
.tip-amount-btn.active { background: var(--amber); color: var(--forest-dark); border-color: var(--amber); font-weight: 600; }
.tip-custom, .tip-msg { margin-bottom: 1rem; }
.tip-custom label, .tip-msg label { display: block; font-size: 0.9rem; color: var(--paper-muted); margin-bottom: 0.4rem; }
.tip-custom input, .tip-msg textarea {
  width: 100%; padding: 0.6rem 0.7rem; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--forest-mid); color: var(--paper);
  font-family: inherit; font-size: 0.9rem; box-sizing: border-box;
}
.tip-msg textarea { resize: vertical; min-height: 64px; }
.tip-modal-footer { display: flex; justify-content: flex-end; gap: 0.6rem; padding: 0.9rem 1.25rem; border-top: 1px solid var(--line); }
.tip-modal-footer .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
@media (max-width: 480px) {
  .tip-modal { width: 92vw; }
  .tip-amount-grid { gap: 0.4rem; }
  .tip-amount-btn { font-size: 0.85rem; padding: 0.6rem 0; }
}

/* ===== 评论区「已打赏」尊贵标识（主题黄） ===== */
.tipped-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.4rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  font-weight: 600;
  background: var(--amber);
  color: var(--forest-dark);
  border-radius: 3px;
  vertical-align: middle;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .tipped-badge { font-size: 0.62rem; padding: 0.08rem 0.35rem; margin-left: 0.3rem; }
  .comment-header { flex-wrap: wrap; }
}

/* ===== 登录/注册页字段字号统一放大 ===== */
.auth-page .field-label { font-size: 13px; letter-spacing: 0.1em; }
.auth-page .field-input { font-size: 1rem; }
.auth-page .field-hint { font-size: 12px; }
.auth-page .captcha-refresh { font-size: 13px; }
.auth-page .field-error { font-size: 12px; }

/* ===== 邀请码（个人中心抽屉） ===== */
.invites-quota { font-size: 0.85rem; color: var(--paper-muted); margin-bottom: 1rem; }
.invites-quota strong { color: var(--amber); font-size: 1.1rem; }
.invites-actions { margin-bottom: 1.2rem; }
.invites-empty { color: var(--paper-muted); font-size: 0.85rem; padding: 1.5rem 0; text-align: center; line-height: 1.6; }
.invite-card { border: 1px solid var(--line); border-radius: 6px; padding: 0.9rem 1rem; margin-bottom: 0.8rem; background: var(--forest-light); }
.invite-code-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.invite-code { font-family: var(--font-mono); font-size: 1rem; letter-spacing: 0.08em; color: var(--paper); word-break: break-all; }
.invite-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.6rem 0; font-size: 0.78rem; color: var(--paper-muted); }
.invite-status.on { color: #7fae8a; }
.invite-status.off { color: var(--danger-fg); }
.invite-card-actions { display: flex; justify-content: flex-end; }
.btn-xs { font-size: 0.75rem; padding: 0.35rem 0.7rem; border-radius: 4px; }
@media (max-width: 480px) {
  .invite-code { font-size: 0.9rem; }
}

/* ===== 我邀请的成员（平铺） ===== */
.invites-invited { margin-top: 1.6rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.invites-invited-title { font-size: 0.82rem; letter-spacing: 0.12em; color: var(--paper-muted); text-transform: uppercase; margin-bottom: 0.9rem; }
.invited-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line-soft, rgba(255,255,255,0.06)); }
.invited-row:last-child { border-bottom: none; }
.invited-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--forest-light); }
.invited-info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.invited-name { font-size: 0.92rem; color: var(--paper); font-weight: 500; }
.invited-time { font-size: 0.75rem; color: var(--paper-muted); }

/* ===== 邀请码弹窗 ===== */
#inviteModal .invites-list { max-height: 220px; overflow-y: auto; padding-right: 0.4rem; }
#inviteModal .invites-invited { margin-top: 1.2rem; }
#inviteModal .invited-row { padding: 0.5rem 0; }

/* ===== 编辑器移动端适配 ===== */
@media (max-width: 768px) {
  .vditor-toolbar { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap !important; }
  .vditor-toolbar > div { flex: 0 0 auto; }
  .vditor-reset { font-size: 16px; }
}
@media (max-width: 480px) {
  .vditor-toolbar { padding: 4px 6px !important; }
  .vditor-toolbar .vditor-tooltipped { margin: 0 2px !important; }
  .vditor-reset { font-size: 15px; line-height: 1.7; }
}

/* ===== static-page-content 补充编辑器通用样式（引用、代码、图片、分割线） ===== */
.static-page-content blockquote { border-left: 3px solid var(--amber); padding: 0.5rem 1.2rem; margin: 1.5rem 0; color: var(--paper-muted); font-style: italic; font-family: var(--font-serif); background: var(--accent-05); }
.static-page-content blockquote p { margin-bottom: 0.5rem; }
.static-page-content blockquote p:last-child { margin-bottom: 0; }
.static-page-content code { background: var(--forest-light); padding: 0.2rem 0.5rem; border-radius: 3px; font-family: var(--font-mono); font-size: 0.9em; color: var(--amber); }
.static-page-content pre { background: var(--forest-dark); padding: 1.2rem 1.5rem; border-radius: 4px; overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line-strong); }
.static-page-content pre code { background: none; padding: 0; color: var(--paper-dim); font-size: 0.95rem; }
.static-page-content img { max-width: 100%; border-radius: 4px; margin: 1.5rem 0; }
.static-page-content hr { border: none; border-top: 1px solid var(--line-strong); margin: 2.5rem 0; }

/* ===== 评论点赞 ===== */
.comment-like { color: var(--paper-muted); margin-left: 0.5rem; }
.comment-like:hover { color: var(--paper); }
.comment-like.liked { color: #e07a9a; }
.comment-like .like-heart { font-size: 0.95rem; line-height: 1; }

/* ===== 移动端：评论嵌套缩进收敛 ===== */
@media (max-width: 640px) {
  .comment-item.reply { margin-left: 1.25rem; padding-left: 1rem; }
}


/* ===== 移动端适配深化 (2026-08-25 · P2) · 纯增量，置于文件末尾 ===== */
/* 个人中心抽屉：手机上按视口宽度（原固定 400px 在小屏会溢出左侧） */
@media (max-width: 640px) {
  .user-drawer { width: min(400px, 100vw); }
  .drawer-nav-item { padding: 0.9rem 1.25rem; }
  .drawer-nav-content { padding: 0 1.25rem; }
  .drawer-nav-content.active { padding: 0.7rem 1.25rem 1.2rem; }
  /* 分享弹窗取消最小宽度，避免 ≤360px 屏横向溢出 */
  .share-modal { min-width: 0; width: 90vw; }
  /* 写文页底部操作：按钮占满宽度，便于触屏点按 */
  .compose-foot { flex-direction: column; align-items: stretch; gap: 1rem; }
  .compose-actions { width: 100%; }
  .compose-actions .btn { flex: 1; justify-content: center; }
}
/* ============ 图片灯箱 (journal detail) ============ */
.yz-lightbox-overlay { position: fixed; inset: 0; background: var(--lightbox-overlay-bg); z-index: 2500; display: none; align-items: center; justify-content: center; }
.yz-lightbox-overlay.show { display: flex; }
.yz-lightbox-stage { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 3rem; box-sizing: border-box; }
.yz-lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 24px 80px rgba(0,0,0,0.5); transition: opacity 0.2s ease; }
.yz-lightbox-close { position: absolute; top: 1rem; right: 1.25rem; width: 44px; height: 44px; line-height: 44px; font-size: 2rem; color: var(--paper-dim); background: transparent; border: none; cursor: pointer; z-index: 10; transition: color 0.2s; }
.yz-lightbox-close:hover { color: var(--paper); }
.yz-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 80px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--paper-dim); background: var(--line); border: none; border-radius: 6px; cursor: pointer; z-index: 10; transition: background 0.2s, color 0.2s; }
.yz-lightbox-nav:hover { background: var(--line-strong); color: var(--paper); }
.yz-lightbox-prev { left: 1rem; }
.yz-lightbox-next { right: 1rem; }
.yz-lightbox-counter { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--paper-muted); background: rgba(var(--paper-rgb),0.35); padding: 0.4rem 0.8rem; border-radius: 999px; pointer-events: none; }
#journal-content img { cursor: zoom-in; }
@media (max-width: 640px) {
  .yz-lightbox-stage { padding: 0; }
  .yz-lightbox-prev { left: 0.25rem; width: 40px; height: 64px; font-size: 2rem; }
  .yz-lightbox-next { right: 0.25rem; width: 40px; height: 64px; font-size: 2rem; }
  .yz-lightbox-close { top: 0.5rem; right: 0.5rem; width: 40px; height: 40px; line-height: 40px; font-size: 1.6rem; }
  .yz-lightbox-counter { bottom: 0.75rem; }
}

/* 发布按钮防重复提交：发布中禁用态 (2026-08-26) */
.btn.is-publishing, button.is-publishing { opacity: 0.6; cursor: not-allowed; pointer-events: none; }

/* 日志详情页作者操作按钮：文字链接样式 (2026-08-26) */
.journal-action-link { background: transparent; border: none; color: var(--paper-muted); font-size: 0.875rem; padding: 0; cursor: pointer; line-height: inherit; font-family: inherit; }
.journal-action-link:hover { color: var(--paper); text-decoration: underline; }
.journal-action-link.danger { color: var(--danger-fg); }
.journal-action-link.danger:hover { color: #e88f6d; }

/* 日志详情页作者操作按钮容器：统一居右 (2026-08-26) */
.journal-author-actions { margin-left: auto; display: flex; gap: 1rem; align-items: center; }
/* ============ 会员弹窗支付通道按钮 ============ */
.channel-btn { flex: 1; min-width: 90px; padding: 0.5rem 0.8rem; border: 1px solid var(--line-strong); background: transparent; color: var(--paper-faint); border-radius: 6px; cursor: pointer; font-size: 0.85rem; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; }
.channel-btn:hover { border-color: var(--amber); color: var(--paper); }
.channel-btn.selected { border-color: var(--amber); background: rgba(var(--amber-rgb),0.12); color: var(--amber); }
.channel-btn svg { width: 1em; height: 1em; }

/* =========================================================
   亮色主题下 Vditor 编辑器「宣纸」风格覆盖
   Vditor classic 主题默认是纯白纸，与米白页面割裂，
   这里用更具体的选择器强制覆盖为宣纸色系。
   ========================================================= */
[data-theme="light"] .vditor,
[data-theme="light"] .vditor-toolbar,
[data-theme="light"] .vditor-content,
[data-theme="light"] .vditor-outline,
[data-theme="light"] .vditor-panel,
[data-theme="light"] .vditor-menu,
[data-theme="light"] .vditor-hint,
[data-theme="light"] .vditor-emotion,
[data-theme="light"] .vditor-toolbar__item,
[data-theme="light"] .vditor-toolbar__item button,
[data-theme="light"] .vditor-toolbar__divider {
  background: var(--forest-mid) !important;
  color: var(--paper) !important;
  border-color: var(--line-strong) !important;
}

[data-theme="light"] .vditor-toolbar__item button svg,
[data-theme="light"] .vditor-toolbar__item svg,
[data-theme="light"] .vditor-tooltipped svg {
  fill: currentColor !important;
  color: var(--paper-dim) !important;
}

[data-theme="light"] .vditor-toolbar__item button:hover,
[data-theme="light"] .vditor-toolbar__item:hover,
[data-theme="light"] .vditor-tooltipped:hover {
  background: var(--accent-10) !important;
  color: var(--paper) !important;
}

[data-theme="light"] .vditor-toolbar__item button:hover svg,
[data-theme="light"] .vditor-toolbar__item:hover svg,
[data-theme="light"] .vditor-tooltipped:hover svg {
  color: var(--accent) !important;
}

[data-theme="light"] .vditor-content .vditor-reset,
[data-theme="light"] .vditor-wysiwyg,
[data-theme="light"] .vditor-ir,
[data-theme="light"] .vditor-sv,
[data-theme="light"] .vditor-preview,
[data-theme="light"] .vditor-preview .vditor-reset {
  background: var(--forest-light) !important;
  color: var(--paper) !important;
}

[data-theme="light"] .vditor-content .vditor-reset pre,
[data-theme="light"] .vditor-wysiwyg pre,
[data-theme="light"] .vditor-ir pre,
[data-theme="light"] .vditor-sv pre,
[data-theme="light"] .vditor-preview pre {
  background: var(--forest-dark) !important;
  color: var(--paper-dim) !important;
  border: 1px solid var(--line-strong) !important;
}

[data-theme="light"] .vditor-content .vditor-reset code,
[data-theme="light"] .vditor-wysiwyg code,
[data-theme="light"] .vditor-ir code,
[data-theme="light"] .vditor-sv code,
[data-theme="light"] .vditor-preview code {
  background: var(--forest-mid) !important;
  color: var(--amber) !important;
}

[data-theme="light"] .vditor-content .vditor-reset pre code,
[data-theme="light"] .vditor-wysiwyg pre code,
[data-theme="light"] .vditor-ir pre code,
[data-theme="light"] .vditor-sv pre code,
[data-theme="light"] .vditor-preview pre code {
  background: transparent !important;
  color: var(--paper-dim) !important;
}

[data-theme="light"] .vditor-content .vditor-reset blockquote,
[data-theme="light"] .vditor-wysiwyg blockquote,
[data-theme="light"] .vditor-ir blockquote,
[data-theme="light"] .vditor-sv blockquote,
[data-theme="light"] .vditor-preview blockquote {
  border-left: 3px solid var(--amber) !important;
  background: var(--accent-05) !important;
  color: var(--paper-dim) !important;
}

[data-theme="light"] .vditor-content .vditor-reset a,
[data-theme="light"] .vditor-wysiwyg a,
[data-theme="light"] .vditor-ir a,
[data-theme="light"] .vditor-sv a,
[data-theme="light"] .vditor-preview a {
  color: var(--amber) !important;
  border-bottom: 1px solid var(--amber-dim) !important;
}

[data-theme="light"] .vditor-content .vditor-reset hr,
[data-theme="light"] .vditor-wysiwyg hr,
[data-theme="light"] .vditor-ir hr,
[data-theme="light"] .vditor-sv hr,
[data-theme="light"] .vditor-preview hr {
  border-color: var(--line-strong) !important;
}

[data-theme="light"] .vditor-content .vditor-placeholder {
  color: var(--paper-muted) !important;
}

[data-theme="light"] .vditor-panel,
[data-theme="light"] .vditor-menu,
[data-theme="light"] .vditor-hint,
[data-theme="light"] .vditor-emotion {
  box-shadow: 0 4px 20px rgba(46, 42, 35, 0.12) !important;
}

[data-theme="light"] .vditor-menu__item:hover,
[data-theme="light"] .vditor-hint li:hover,
[data-theme="light"] .vditor-emotion__item:hover {
  background: var(--accent-10) !important;
  color: var(--paper) !important;
}

[data-theme="light"] .vditor--fullscreen {
  background: var(--forest-dark) !important;
}

[data-theme="light"] .vditor--fullscreen .vditor-content,
[data-theme="light"] .vditor--fullscreen .vditor-toolbar {
  background: var(--forest-mid) !important;
}

[data-theme="light"] .vditor--fullscreen .vditor-content .vditor-reset,
[data-theme="light"] .vditor--fullscreen .vditor-wysiwyg,
[data-theme="light"] .vditor--fullscreen .vditor-ir,
[data-theme="light"] .vditor--fullscreen .vditor-sv {
  background: var(--forest-light) !important;
}

/* =========================================================
   亮色主题：写日志页「宣纸卡片」整页重构
   把 .compose-inner 从透明平铺变为一张微微浮起的宣纸卡片，
   编辑器作为卡片内的书写区，与页面拉开温润的层级。
   （仅作用于亮色主题，暗色保持原有文艺暗夜风不变）
   ========================================================= */
[data-theme="light"] .compose-page {
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(158,74,60,0.05), transparent 62%),
    var(--forest-dark);
  padding-top: 5.5rem;
  padding-bottom: 4rem;
}
[data-theme="light"] .compose-inner {
  max-width: 880px;
  background: var(--compose-card-bg);
  border: 1px solid var(--compose-card-border);
  border-radius: 18px;
  box-shadow: var(--compose-card-shadow);
  padding: 2rem 3rem 2rem;
}
[data-theme="light"] .compose-head { margin-bottom: 1.5rem; }
[data-theme="light"] .compose-head h1 { color: var(--paper); }
[data-theme="light"] .compose-form { gap: 1.6rem; }

/* 分类下拉：融进卡片，做成内嵌书写区风格 */
[data-theme="light"] .compose-form .field-input {
  background: var(--forest-light) !important;
  border: 1px solid var(--compose-card-border) !important;
  color: var(--paper-dim) !important;
  border-radius: 8px;
}
[data-theme="light"] .compose-form .field { margin-bottom: 0.25rem; }

/* 标题：在卡片纸面上书写 */
[data-theme="light"] .compose-title-input { padding: 0.4rem 0 0.6rem; }
/* 摘要：细分割线 */
[data-theme="light"] .compose-excerpt-input { border-bottom: 1px solid var(--compose-card-border); }

/* 编辑器：卡片内的书写「纸面」，比卡片略沉，形成微妙层级 */
[data-theme="light"] .vditor {
  background: var(--forest-light) !important;
  border: 1px solid var(--compose-card-border) !important;
  border-radius: 12px !important;
  overflow: hidden;
}
[data-theme="light"] .vditor-toolbar {
  background: var(--compose-card-bar) !important;
  border-bottom: 1px solid var(--compose-card-border) !important;
}
[data-theme="light"] .vditor-content,
[data-theme="light"] .vditor-wysiwyg,
[data-theme="light"] .vditor-ir,
[data-theme="light"] .vditor-sv {
  background: var(--forest-light) !important;
}
/* 底部操作区：与卡片等宽的内分割 */
[data-theme="light"] .compose-foot {
  padding-top: 1.75rem;
  border-top: 1px solid var(--compose-card-border);
}
[data-theme="light"] .compose-tag {
  background: var(--forest-light);
  border-color: var(--compose-card-border);
}

/* 移动端：卡片内边距收窄，避免顶栏遮挡与横向拥挤 */
@media (max-width: 640px) {
  [data-theme="light"] .compose-page {
    padding-top: 4.5rem;
    padding-bottom: 3rem;
  }
  [data-theme="light"] .compose-inner {
    padding: 1.75rem 1.25rem 1.5rem;
    border-radius: 14px;
  }
}

/* 亮色写日志页：头部「取消」按钮改为幽灵风格，避免深色描边抢戏 */
[data-theme="light"] .compose-head .btn {
  background: transparent;
  border-color: transparent;
  color: var(--paper-muted);
}
[data-theme="light"] .compose-head .btn:hover {
  color: var(--accent);
  border-color: transparent;
}

/* 赞赏码打赏弹窗（微信赞赏码，钱直接到作者微信） */
.tipqr-modal { background: var(--forest-mid); color: var(--paper); width: 420px; max-width: 94vw; border-radius: 14px; border: 1px solid var(--line-strong); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.tipqr-header { padding: 1rem 1.25rem; font-size: 1.05rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.tipqr-body { padding: 1.25rem; text-align: center; }
.tipqr-sub { color: var(--paper-muted); font-size: 0.85rem; margin: 0 0 1rem; }
.tipqr-img-wrap { display: flex; justify-content: center; }
.tipqr-img { width: 280px; height: 280px; object-fit: contain; border-radius: 10px; background: #fff; padding: 10px; box-shadow: 0 6px 24px rgba(0,0,0,0.35); }
.tipqr-note { color: var(--paper-muted); font-size: 0.72rem; margin: 0.8rem 0 0; opacity: 0.8; }
.tipqr-img-link { display: inline-flex; cursor: zoom-in; border-radius: 10px; line-height: 0; }
.tipqr-zoom-hint { color: var(--paper-muted); font-size: 0.75rem; margin: 0.55rem 0 0; opacity: 0.85; }
.tipqr-msg { margin-top: 1rem; text-align: left; }
.tipqr-msg-label { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.8rem; color: var(--paper-muted); margin-bottom: 0.35rem; }
.tipqr-show-comment { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; color: var(--paper-muted); cursor: pointer; white-space: nowrap; user-select: none; }
.tipqr-show-comment input { width: 14px; height: 14px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.tipqr-msg textarea { width: 100%; min-height: 64px; resize: vertical; padding: 0.5rem; background: var(--forest-dark); border: 1px solid var(--line-strong); color: var(--paper); border-radius: 8px; font-size: 0.85rem; }
.tipqr-footer { display: flex; justify-content: flex-end; gap: 0.6rem; padding: 0.9rem 1.25rem; border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .tipqr-modal { width: 94vw; }
  .tipqr-img { width: 260px; height: 260px; }
}

/* ===== 会员卡片单行布局 + 抽屉保存按钮居中 (2026-08-28) ===== */
.drawer-member-row.member {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
}
.drawer-member-row.member .member-type {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.drawer-member-row.member .member-icon {
  width: 22px;
  height: 22px;
}
.drawer-member-row.member .member-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.drawer-save-btn {
  margin-top: 1rem;
  width: auto;
  min-width: 100px;
  align-self: flex-start;
  justify-content: center;
  text-align: center;
  padding: 0.45rem 0.9rem;
  font-size: 12px;
  letter-spacing: 0.08em;
}
@media (max-width: 640px) {
  .drawer-member-row.member {
    padding: 0.55rem 0.875rem;
    gap: 0.5rem;
  }
  .drawer-member-row.member .member-type {
    font-size: 13px;
  }
  .drawer-member-row.member .member-icon {
    width: 20px;
    height: 20px;
  }
}

/* ===== PDF 导出风格选择 ===== */
.export-style-group { margin: 1.2rem 0 0.4rem; }
.export-style-label { font-size: 0.85rem; color: var(--paper-muted); margin-bottom: 0.6rem; }
.export-style-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.export-style-btn { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.7rem; background: transparent; border: 1px solid var(--line-soft); border-radius: 8px; color: var(--paper); cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.export-style-btn:hover { border-color: var(--amber); background: rgba(var(--paper-rgb),0.03); }
.export-style-btn.selected { border-color: var(--amber); background: var(--accent-08); }
.style-swatch { width: 34px; height: 34px; border-radius: 8px; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }
.style-swatch-dark { background: linear-gradient(150deg,#16201b,#283a33); }
.style-swatch-paper { background: linear-gradient(150deg,#efe9dc,#e3dac8); }
.style-meta { display: flex; flex-direction: column; line-height: 1.3; }
.style-name { font-size: 0.9rem; font-weight: 500; color: var(--paper); }
.style-desc { font-size: 0.72rem; color: var(--paper-muted); }


/* ===== 打赏软解锁提示（仅接收端·会员发布数门槛） ===== */
.tip-lock-banner {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: var(--accent-10);
  border: 1px solid var(--accent-15);
  border-left: 3px solid var(--amber);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--paper);
  line-height: 1.55;
}
.tip-lock-banner b { color: var(--amber); font-weight: 700; }

.tip-lock-hint {
  margin-top: 0.75rem;
  padding: 0.6rem 0.8rem;
  background: var(--accent-08);
  border: 1px solid var(--accent-15);
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--paper-muted);
  line-height: 1.55;
}
.tip-lock-hint b { color: var(--amber); font-weight: 700; }

/* 会员周期已用尽提示（续费/升级限 1 次/周期） */
.renew-cycle-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--accent-08);
  letter-spacing: 0.02em;
}
.drawer-member-row .member-actions .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.4);
}
