/* ============================================================
   style.css · 奥西维特 · 内亲王档案馆
   七个主题：哥特 | DOS | 墨水 | 深空科技 | 森林 | 废土 | 像素风雨
   + 模拟恐怖（彩蛋）
   全部装饰纯 CSS · 零 DOM 依赖
   ============================================================ */

/* ============================================================
   1. 基础重置 + CSS 变量（七主题）
   ============================================================ */

   :root {
    /* 哥特 · 白天模式（默认） */
    --bg: #f0ebe3;
    --card-bg: rgba(255, 252, 248, 0.55);
    --text-primary: #2a2622;
    --text-secondary: #7a7268;
    --text-muted: #b0a8a0;
    --border: #c8bdb0;
    --border-dark: #8a8278;
    --accent: #8a1a1a;
    --accent-gold: #c8a050;
    --accent-gold-glow: rgba(200, 160, 80, 0.15);
    --accent-rose: rgba(138, 26, 26, 0.06);
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
    --font-sans: 'Courier New', monospace;
    --font-serif: 'Georgia', 'Palatino', 'Times New Roman', serif;
    --header-bg: rgba(240, 235, 227, 0.92);
    --sidebar-bg: rgba(240, 235, 227, 0.95);
    --fab-bg: rgba(255, 252, 248, 0.7);
    --fab-color: #8a1a1a;
    --link-color: #8a1a1a;
    --card-radius: 0px;
}

[data-theme="dos"] {
    --bg: #000000;
    --card-bg: #0a0a0a;
    --text-primary: #3bc43b;
    --text-secondary: #6f9e6f;
    --text-muted: #1f4f1f;
    --border: #1f4f1f;
    --border-dark: #0a2f0a;
    --accent: #3bc43b;
    --accent-gold: #6f9e6f;
    --accent-gold-glow: rgba(59, 196, 59, 0.10);
    --accent-rose: rgba(59, 196, 59, 0.04);
    --shadow: 1px 1px 0 #1f4f1f;
    --font-sans: 'Courier New', 'Consolas', monospace;
    --font-serif: 'Courier New', 'Consolas', monospace;
    --header-bg: #000000;
    --sidebar-bg: #0a0a0a;
    --fab-bg: #000000;
    --fab-color: #3bc43b;
    --link-color: #3bc43b;
    --card-radius: 0px;
}

[data-theme="ink"] {
    --bg: #ffffff;
    --card-bg: #ffffff;
    --text-primary: #000000;
    --text-secondary: #000000;
    --text-muted: #000000;
    --border: #000000;
    --border-dark: #000000;
    --accent: #000000;
    --accent-gold: #000000;
    --accent-gold-glow: transparent;
    --accent-rose: transparent;
    --shadow: none;
    --font-sans: 'Segoe UI', 'Helvetica Neue', sans-serif;
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --header-bg: #ffffff;
    --sidebar-bg: #ffffff;
    --fab-bg: #000000;
    --fab-color: #ffffff;
    --link-color: #000000;
    --card-radius: 0px;
}

[data-theme="spacetech"] {
    --bg: #05080f;
    --card-bg: rgba(8, 20, 40, 0.35);
    --text-primary: #c8e6ff;
    --text-secondary: rgba(125, 249, 255, 0.5);
    --text-muted: rgba(79, 195, 255, 0.2);
    --border: rgba(0, 180, 255, 0.08);
    --border-dark: rgba(0, 180, 255, 0.06);
    --accent: #7df9ff;
    --accent-gold: #4fc3ff;
    --accent-gold-glow: rgba(79, 195, 255, 0.15);
    --accent-rose: rgba(79, 195, 255, 0.04);
    --shadow: 0 0 30px rgba(79, 195, 255, 0.05);
    --font-sans: 'Rajdhani', 'Orbitron', 'Segoe UI', sans-serif;
    --font-serif: 'Rajdhani', 'Georgia', serif;
    --header-bg: rgba(5, 8, 15, 0.85);
    --sidebar-bg: rgba(5, 8, 15, 0.92);
    --fab-bg: rgba(8, 20, 40, 0.5);
    --fab-color: #7df9ff;
    --link-color: #7df9ff;
    --card-radius: 16px;
}

[data-theme="forest"] {
    --bg: #0e2e1a;
    --card-bg: rgba(25, 55, 35, 0.85);
    --text-primary: #f0fff0;
    --text-secondary: #cce0cc;
    --text-muted: #5a8a5a;
    --border: #3a7a4a;
    --border-dark: #2a5a3a;
    --accent: #7ad07a;
    --accent-gold: #a0e0a0;
    --accent-gold-glow: rgba(122, 208, 122, 0.12);
    --accent-rose: rgba(122, 208, 122, 0.04);
    --shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
    --font-sans: 'Segoe UI', 'Quicksand', sans-serif;
    --font-serif: 'Georgia', 'Palatino', serif;
    --header-bg: rgba(10, 30, 18, 0.88);
    --sidebar-bg: rgba(10, 30, 18, 0.92);
    --fab-bg: #2a6a3a;
    --fab-color: #d0ffc0;
    --link-color: #a0e0a0;
    --card-radius: 24px 8px 24px 8px;
}

[data-theme="wasteland"] {
    --bg: #3d322a;
    --card-bg: rgba(35, 28, 22, 0.85);
    --text-primary: #ddd0c4;
    --text-secondary: #a09080;
    --text-muted: #5a4a3a;
    --border: #5a4a3a;
    --border-dark: #2a221a;
    --accent: #b85a2a;
    --accent-gold: #8a7a3a;
    --accent-gold-glow: rgba(184, 90, 42, 0.08);
    --accent-rose: rgba(184, 90, 42, 0.04);
    --shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
    --font-sans: 'Courier New', 'Consolas', monospace;
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --header-bg: rgba(26, 20, 16, 0.95);
    --sidebar-bg: rgba(26, 20, 16, 0.95);
    --fab-bg: #2a221a;
    --fab-color: #ddd0c4;
    --link-color: #b8a080;
    --card-radius: 0px;
}

[data-theme="pixelfog"] {
    --bg: #ebe4e8;
    --card-bg: rgba(255, 250, 252, 0.25);
    --text-primary: #4a3a4a;
    --text-secondary: #8a7a8a;
    --text-muted: #b0a8b0;
    --border: rgba(180, 165, 180, 0.08);
    --border-dark: rgba(180, 165, 180, 0.06);
    --accent: #a07a9a;
    --accent-gold: #c8b0c4;
    --accent-gold-glow: rgba(200, 185, 210, 0.06);
    --accent-rose: rgba(200, 185, 210, 0.03);
    --shadow: 0 0 60px rgba(180, 165, 190, 0.02);
    --font-sans: 'Georgia', 'Palatino', serif;
    --font-serif: 'Georgia', 'Palatino', serif;
    --header-bg: rgba(235, 228, 232, 0.65);
    --sidebar-bg: rgba(235, 228, 232, 0.70);
    --fab-bg: rgba(200, 185, 200, 0.12);
    --fab-color: #7a6a7a;
    --link-color: #8a7a9a;
    --card-radius: 0px;
}


/* ============================================================
   2. 全局样式
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-serif);
    font-size: 16.5px;
    line-height: 1.85;
    padding: 0 18px 60px 18px;
    transition: background 0.4s, color 0.4s, border-color 0.4s;
    min-height: 100vh;
}

#app {
    max-width: 760px;
    margin: 0 auto;
}

/* ===== 头部 ===== */
#header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0 10px 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
    background: var(--bg);
    transition: background 0.4s, border-color 0.4s;
    gap: 10px;
    flex-wrap: wrap;
}

.header-title {
    font-family: var(--font-sans);
    font-size: 16px;
    letter-spacing: 4px;
    color: var(--text-primary);
    flex: 1;
    text-align: center;
    min-width: 80px;
    transition: color 0.4s;
}

.header-right {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.menu-toggle,
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 4px 12px;
    cursor: pointer;
    font-size: 16px;
    font-family: var(--font-sans);
    transition: all 0.3s;
    border-radius: 2px;
    background-color: var(--bg);
}

.menu-toggle:hover,
.theme-toggle-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent);
}

/* ===== 页面容器 ===== */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* ============================================================
   3. 首页组件
   ============================================================ */

#homeContent {
    padding-bottom: 10px;
}

/* ===== 首页大标题 ===== */
.site-title-header {
    text-align: center;
    padding: 28px 0 18px 0;
    margin-bottom: 6px;
    position: relative;
}

.site-title-ornament {
    font-size: 14px;
    color: var(--accent-gold);
    letter-spacing: 12px;
    opacity: 0.5;
    font-family: var(--font-serif);
    margin-bottom: 6px;
}

.site-main-title {
    font-family: var(--font-serif);
    font-size: 44px;
    font-weight: normal;
    letter-spacing: 16px;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    transition: color 0.4s;
    text-shadow: 0 2px 20px var(--accent-gold-glow);
}

.site-sub-title {
    font-family: var(--font-sans);
    font-size: 13px;
    letter-spacing: 8px;
    color: var(--text-secondary);
    margin: 4px 0 10px 0;
    opacity: 0.6;
    text-transform: uppercase;
}

.site-title-divider {
    width: 80px;
    height: 2px;
    margin: 10px auto 12px auto;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.3;
}

/* ===== Hero ===== */
.hero {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    padding: 12px 0 24px 0;
    border-bottom: 1px dashed var(--border);
    margin-bottom: 28px;
    flex-wrap: wrap;
    transition: border-color 0.4s;
}

.hero-avatar {
    flex-shrink: 0;
    width: 100px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    background: var(--card-bg);
    padding: 12px;
    position: relative;
    transition: all 0.4s;
}

.hero-avatar::before {
    content: '✠';
    position: absolute;
    top: -10px;
    left: -6px;
    font-size: 16px;
    color: var(--accent-gold);
    opacity: 0.2;
}

.hero-avatar::after {
    content: '✠';
    position: absolute;
    bottom: -10px;
    right: -6px;
    font-size: 16px;
    color: var(--accent-gold);
    opacity: 0.2;
}

.hero-avatar .avatar-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    width: 60px;
}

.hero-avatar .avatar-inner span {
    display: block;
    aspect-ratio: 1;
    background: var(--text-primary);
    opacity: 0.15;
    border-radius: 1px;
    transition: background 0.4s, opacity 0.4s;
}

.hero-avatar .avatar-inner span.dark {
    opacity: 0.6;
}

.hero-avatar .avatar-inner span.light {
    opacity: 0.04;
}

.hero-avatar .avatar-hint {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-family: var(--font-sans);
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.3s;
    letter-spacing: 1px;
    white-space: nowrap;
}

.hero-avatar:hover .avatar-hint {
    opacity: 0.4;
}

.hero-text {
    flex: 1;
    min-width: 200px;
}

.hero-text .name {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 8px;
    color: var(--text-primary);
    transition: color 0.4s;
}

.hero-text .name .title-royal {
    font-size: 16px;
    letter-spacing: 4px;
    color: var(--accent-gold);
    font-weight: normal;
    display: block;
    margin-top: -4px;
}

.hero-text .lifespan {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin: 4px 0 10px 0;
    display: block;
}

.hero-text .motto {
    font-family: var(--font-serif);
    font-size: 17px;
    font-style: italic;
    color: var(--text-secondary);
    border-left: 3px solid var(--accent-gold);
    padding-left: 16px;
    margin: 6px 0 12px 0;
    opacity: 0.8;
    transition: border-color 0.4s;
}

.hero-text .bio {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.9;
    opacity: 0.7;
}

.hero-text .bio .byline {
    display: block;
    margin-top: 4px;
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 1px;
    opacity: 0.5;
}

/* ===== 本纪入口卡片 ===== */
.bio-entry-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 18px 22px;
    margin: 8px 0 22px 0;
    background: var(--card-bg);
    border: 2px solid var(--accent-gold);
    border-left: 6px solid var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.bio-entry-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(ellipse at 100% 0%, var(--accent-gold), transparent 70%);
    opacity: 0.04;
    pointer-events: none;
    border-radius: 50%;
}

.bio-entry-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
}

.bio-entry-card .bio-entry-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.bio-entry-card .bio-entry-content {
    flex: 1;
}

.bio-entry-card .bio-entry-label {
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--accent-gold);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.bio-entry-card .bio-entry-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: bold;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.bio-entry-card .bio-entry-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 4px 0 8px 0;
    line-height: 1.6;
    opacity: 0.8;
}

.bio-entry-card .bio-entry-link {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 2px;
    display: inline-block;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.bio-entry-card:hover .bio-entry-link {
    border-bottom-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* ============================================================
   4. 文献列表 & 分页器
   ============================================================ */

.section-label {
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--border);
    transition: color 0.4s, border-color 0.4s;
}

.section-label .imp {
    color: var(--accent-gold);
    opacity: 0.6;
}

.doc-list {
    list-style: none;
    margin-bottom: 28px;
}

.doc-list li {
    padding: 7px 6px;
    border-bottom: 1px dotted var(--border);
    transition: all 0.2s;
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.doc-list li:hover {
    background-color: var(--accent-rose);
    border-bottom-color: var(--accent-gold);
}

.doc-list .doc-id {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--accent-gold);
    min-width: 80px;
    transition: color 0.4s;
    opacity: 0.7;
}

.doc-list .doc-title {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}

.doc-list .doc-title:hover {
    color: var(--accent);
}

.doc-list .doc-tag {
    font-family: var(--font-sans);
    font-size: 10.5px;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 0 10px;
    letter-spacing: 0.5px;
    margin-left: auto;
    border-radius: 2px;
    background-color: var(--card-bg);
    transition: color 0.4s, border-color 0.4s;
}

.view-all-link {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--accent-gold);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
    letter-spacing: 2px;
}

.view-all-link:hover {
    border-bottom-color: var(--accent-gold);
    color: var(--accent);
}

/* ===== 分页器 ===== */
.pagination {
    font-family: var(--font-sans);
    font-size: 13px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    transition: border-color 0.4s;
    justify-content: center;
}

.page-numbers {
    display: flex;
    gap: 4px;
}

.pagination .page-btn,
.pagination .page-num {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--border);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
    background-color: var(--bg);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 13px;
    border-radius: 2px;
}

.pagination .page-btn:hover,
.pagination .page-num:hover {
    background-color: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.pagination .page-num.active {
    background-color: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.pagination .page-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination .page-ellipsis {
    padding: 4px 6px;
    color: var(--text-muted);
    font-family: var(--font-sans);
}

/* ============================================================
   5. 文章详情 & Markdown
   ============================================================ */

.post-detail-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.post-detail-header .back-link {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 12px;
    transition: color 0.3s;
    letter-spacing: 1px;
}

.post-detail-header .back-link:hover {
    color: var(--accent-gold);
}

.post-detail-header h1 {
    font-family: var(--font-serif);
    font-size: 26px;
    letter-spacing: 4px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.post-detail-header .doc-tag {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 0 12px;
    letter-spacing: 1px;
    border-radius: 2px;
    background-color: var(--card-bg);
    display: inline-block;
}

/* ===== Markdown 内容 ===== */
.markdown-body {
    background: transparent !important;
    color: var(--text-primary) !important;
    padding: 4px 0;
}

.markdown-body h1 {
    color: var(--text-primary) !important;
    border-bottom: 2px solid var(--border);
    padding-bottom: 8px;
    margin-top: 24px;
    margin-bottom: 16px;
    font-family: var(--font-serif);
    letter-spacing: 3px;
}

.markdown-body h2 {
    color: var(--text-primary) !important;
    border-left: 4px solid var(--accent-gold);
    padding-left: 16px;
    margin-top: 24px;
    margin-bottom: 16px;
    font-family: var(--font-serif);
    letter-spacing: 2px;
}

.markdown-body h3 {
    color: var(--text-primary) !important;
    padding-left: 8px;
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: bold;
}

.markdown-body h3::before {
    content: "◆ ";
    color: var(--accent-gold);
    font-size: 0.9em;
}

.markdown-body h4::before {
    content: "◇ ";
    color: var(--accent-gold);
    font-size: 0.9em;
}

.markdown-body a {
    color: var(--link-color) !important;
}

.markdown-body code {
    background: var(--card-bg) !important;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 0.9em;
}

.markdown-body pre {
    background: var(--card-bg) !important;
    border: 1px solid var(--border);
    padding: 16px;
    overflow-x: auto;
    border-radius: 2px;
}

.markdown-body blockquote {
    border-left: 4px solid var(--accent-gold);
    padding: 12px 20px;
    margin: 16px 0;
    background: var(--card-bg);
    color: var(--text-secondary);
    border-radius: 0 2px 2px 0;
}

.markdown-body blockquote p {
    margin-bottom: 0;
}

.markdown-body table {
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
    width: 100%;
}

.markdown-body table th,
.markdown-body table td {
    border: 1px solid var(--border);
    padding: 8px 12px;
}

.markdown-body table th {
    background: var(--card-bg);
    font-weight: bold;
}

.markdown-body p {
    margin-bottom: 1.2em;
}

.markdown-body ul,
.markdown-body ol {
    padding-left: 24px;
    margin-bottom: 1.2em;
}

.markdown-body li {
    margin-bottom: 0.4em;
}

.markdown-body hr {
    border: none;
    border-top: 2px solid var(--border);
    margin: 32px 0;
    opacity: 0.3;
}

/* ============================================================
   6. 短代码样式
   ============================================================ */

.note {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    margin: 16px 0;
    border-left: 4px solid var(--accent-gold);
    background: var(--card-bg);
    border-radius: 2px;
}

.note-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.note-content {
    flex: 1;
}

.note-default {
    border-left-color: var(--text-muted);
}
.note-primary {
    border-left-color: var(--accent-gold);
}
.note-success {
    border-left-color: #4a8a5a;
}
.note-warning {
    border-left-color: #c8a030;
}
.note-danger {
    border-left-color: #b85a3a;
}
.note-tip {
    border-left-color: #8a7aaa;
}

.label {
    display: inline-block;
    padding: 2px 12px;
    margin: 0 2px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.5px;
    border-radius: 2px;
    background: var(--accent);
    color: var(--bg);
}

.label-primary {
    background: var(--accent-gold);
    color: var(--bg);
}
.label-success {
    background: #4a8a5a;
    color: #fff;
}
.label-warning {
    background: #c8a030;
    color: #fff;
}
.label-danger {
    background: #b85a3a;
    color: #fff;
}
.label-info {
    background: #5a7a8a;
    color: #fff;
}

details {
    margin: 16px 0;
    border: 1px solid var(--border);
    border-radius: 2px;
    background: var(--card-bg);
}

summary {
    padding: 10px 16px;
    cursor: pointer;
    font-weight: bold;
    user-select: none;
    list-style: none;
    font-family: var(--font-sans);
    letter-spacing: 1px;
}

summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: '▶ ';
    color: var(--accent-gold);
    font-size: 12px;
}

details[open] summary::before {
    content: '▼ ';
}

details[open] summary {
    border-bottom: 1px solid var(--border);
}

details> :not(summary) {
    padding: 12px 16px;
}

.quote {
    margin: 16px 0;
    padding: 16px 24px;
    border-left: 4px solid var(--accent-gold);
    background: var(--card-bg);
    font-style: italic;
}

.quote footer {
    margin-top: 8px;
    font-style: normal;
    color: var(--text-secondary);
}

mark {
    padding: 2px 6px;
    border-radius: 2px;
}

.mark-yellow {
    background: #f1c40f;
    color: #333;
}
.mark-green {
    background: #2ecc71;
    color: #fff;
}
.mark-blue {
    background: #3498db;
    color: #fff;
}
.mark-red {
    background: #e74c3c;
    color: #fff;
}
.mark-purple {
    background: #9b59b6;
    color: #fff;
}

kbd {
    display: inline-block;
    padding: 2px 8px;
    margin: 0 2px;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-family: var(--font-sans);
    font-size: 12px;
    background: var(--card-bg);
}

.kbd-plus {
    margin: 0 4px;
    color: var(--text-secondary);
}

.tabs {
    margin: 16px 0;
}

.tabs-header {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0;
    margin-bottom: 12px;
}

.tab-header {
    padding: 8px 18px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 2px 2px 0 0;
    background: transparent;
    color: var(--text-secondary);
    transition: all 0.3s;
    font-family: var(--font-sans);
    letter-spacing: 1px;
}

.tab-header.active {
    background: var(--card-bg);
    color: var(--text-primary);
    border-color: var(--border);
    border-bottom-color: var(--card-bg);
    margin-bottom: -1px;
}

.tab-header:hover:not(.active) {
    color: var(--accent-gold);
}

.tab-content {
    display: none;
    padding: 8px 0;
}

.tab-content.active {
    display: block;
}

/* ============================================================
   7. 侧边栏 & FAB & 弹窗
   ============================================================ */

#siteFooter {
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    letter-spacing: 1px;
    transition: color 0.4s, border-color 0.4s;
    opacity: 0.5;
}

#siteFooter .star {
    color: var(--accent-gold);
    opacity: 0.3;
}

.inner-char {
    cursor: pointer;
    transition: color 0.3s;
}

.inner-char:hover {
    color: var(--accent-gold);
    opacity: 0.7;
}

/* ===== FAB 按钮 ===== */
.fab-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 900;
}

.fab {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--fab-bg);
    color: var(--fab-color);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    box-shadow: var(--shadow);
    font-family: var(--font-sans);
}

.fab:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ===== 侧边栏 ===== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 250;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: var(--sidebar-bg);
    z-index: 300;
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 0 0 20px 0;
    border-right: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.sidebar-left {
    left: 0;
    transform: translateX(-100%);
}

.sidebar-right {
    right: 0;
    transform: translateX(100%);
    border-right: none;
    border-left: 1px solid var(--border);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 2px solid var(--border);
    background: var(--card-bg);
    position: sticky;
    top: 0;
    z-index: 5;
}

.sidebar-header h3 {
    font-family: var(--font-sans);
    font-size: 15px;
    letter-spacing: 4px;
    color: var(--text-primary);
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s;
}

.sidebar-close:hover {
    color: var(--accent);
}

.sidebar-content {
    padding: 12px 8px;
}

.menu-item {
    padding: 10px 16px;
    margin: 2px 0;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: var(--accent-rose);
    border-left-color: var(--accent-gold);
    color: var(--accent);
}

.menu-divider {
    height: 1px;
    background: var(--border);
    margin: 10px 12px;
    opacity: 0.3;
}

/* ===== 主题选项（统一风格，无背景色） ===== */
.theme-option {
    padding: 10px 16px;
    margin: 2px 0;
    border-radius: 2px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 13px;
    letter-spacing: 1px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    color: var(--text-secondary);
    background: transparent !important;
}

.theme-option:hover {
    background: var(--accent-rose) !important;
    color: var(--text-primary);
}

.theme-option.active {
    border-left-color: var(--accent-gold);
    color: var(--text-primary);
    background: transparent !important;
}

/* 各主题下主题选项的边框颜色（仅边框，无背景） */
[data-theme="gothic"] .theme-option.active {
    border-left-color: #8a1a1a;
}
[data-theme="dos"] .theme-option.active {
    border-left-color: #3bc43b;
}
[data-theme="ink"] .theme-option.active {
    border-left-color: #000000;
}
[data-theme="spacetech"] .theme-option.active {
    border-left-color: #7df9ff;
}
[data-theme="forest"] .theme-option.active {
    border-left-color: #5ab86a;
}
[data-theme="wasteland"] .theme-option.active {
    border-left-color: #b85a2a;
}
[data-theme="pixelfog"] .theme-option.active {
    border-left-color: #c8b0c4;
}
body.theme-analoghorror .theme-option.active {
    border-left-color: #ff0033;
}

.theme-divider {
    height: 1px;
    background: var(--border);
    margin: 10px 12px;
    opacity: 0.2;
}

/* ===== TOC ===== */
#tocContent {
    padding: 4px 0;
}

.toc-item {
    display: block;
    padding: 6px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    border-left: 2px solid transparent;
    transition: all 0.2s;
    font-family: var(--font-sans);
    letter-spacing: 0.5px;
}

.toc-item:hover {
    color: var(--text-primary);
    border-left-color: var(--accent-gold);
    background: var(--accent-rose);
}

.toc-h1 {
    padding-left: 14px;
    font-weight: bold;
}
.toc-h2 {
    padding-left: 28px;
}
.toc-h3 {
    padding-left: 42px;
    font-size: 12px;
    opacity: 0.8;
}
.toc-h4 {
    padding-left: 56px;
    font-size: 11px;
    opacity: 0.6;
}

/* ===== 密码弹窗 ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 400;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--card-bg);
    padding: 28px 32px 32px;
    border: 1px solid var(--border);
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow);
    border-radius: 2px;
}

.modal-content h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    letter-spacing: 4px;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-align: center;
}

.modal-content input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-primary);
    font-size: 16px;
    border-radius: 2px;
    margin-bottom: 14px;
    font-family: var(--font-sans);
    letter-spacing: 2px;
    outline: none;
    transition: border-color 0.3s;
}

.modal-content input:focus {
    border-color: var(--accent-gold);
}

.modal-buttons {
    display: flex;
    gap: 10px;
}

.modal-buttons button {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 2px;
    font-family: var(--font-sans);
    letter-spacing: 2px;
}

.modal-buttons button:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.password-hint {
    background: var(--card-bg);
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--text-secondary);
    border-left: 3px solid var(--accent-gold);
    display: none;
}

.error-message {
    color: #cc3333;
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
    font-family: var(--font-sans);
}

/* ===== Toast ===== */
.toast-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 14px 32px;
    border: 1px solid var(--accent-gold);
    z-index: 9999;
    font-size: 16px;
    font-family: var(--font-serif);
    letter-spacing: 2px;
    pointer-events: none;
    text-align: center;
    box-shadow: var(--shadow);
    border-radius: 2px;
}

/* ============================================================
   8. 七主题定义（纯 CSS 装饰）
   ============================================================ */

/* ============================================================
   8.1 哥特 · 白天模式（默认）
   ============================================================ */

[data-theme="gothic"] {
    /* 背景：旧纸 + 栅栏竖线 + 横梁 + 尖刺 + 玫瑰丛 */
    background-color: #f0ebe3;
    background-image:
        repeating-linear-gradient(0deg,
            rgba(180, 170, 160, 0.04) 0px,
            rgba(180, 170, 160, 0.04) 1px,
            transparent 1px,
            transparent 3px
        ),
        repeating-linear-gradient(90deg,
            rgba(160, 150, 140, 0.08) 0px,
            rgba(160, 150, 140, 0.08) 1px,
            transparent 1px,
            transparent 18px,
            rgba(160, 150, 140, 0.04) 18px,
            rgba(160, 150, 140, 0.04) 2px,
            transparent 2px,
            transparent 38px
        ),
        repeating-linear-gradient(180deg,
            transparent 0px,
            transparent 120px,
            rgba(160, 150, 140, 0.04) 120px,
            rgba(160, 150, 140, 0.04) 1px,
            transparent 1px,
            transparent 240px,
            rgba(160, 150, 140, 0.03) 240px,
            rgba(160, 150, 140, 0.03) 1px,
            transparent 1px,
            transparent 360px
        ),
        radial-gradient(circle at 10% 0, rgba(160, 150, 140, 0.06) 2px, transparent 2px),
        radial-gradient(circle at 30% 0, rgba(160, 150, 140, 0.06) 2px, transparent 2px),
        radial-gradient(circle at 50% 0, rgba(160, 150, 140, 0.06) 2px, transparent 2px),
        radial-gradient(circle at 70% 0, rgba(160, 150, 140, 0.06) 2px, transparent 2px),
        radial-gradient(circle at 90% 0, rgba(160, 150, 140, 0.06) 2px, transparent 2px),
        radial-gradient(ellipse at 20% 100%, rgba(138, 26, 26, 0.04) 0%, transparent 25%),
        radial-gradient(ellipse at 80% 100%, rgba(138, 26, 26, 0.03) 0%, transparent 20%),
        radial-gradient(ellipse at 50% 0%, rgba(212, 176, 90, 0.04) 0%, transparent 40%);
}

/* --- 标题 --- */
[data-theme="gothic"] .post-title {
    border-left: 3px solid #8a1a1a;
    padding-left: 18px;
    position: relative;
}
[data-theme="gothic"] .post-title::after {
    content: "🌹";
    position: absolute;
    right: -36px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.2;
}

/* --- 链接 --- */
[data-theme="gothic"] a {
    color: #8a1a1a;
    border-bottom: 1px solid rgba(138, 26, 26, 0.15);
    transition: all 0.3s ease;
}
[data-theme="gothic"] a:hover {
    color: #d4b05a;
    border-bottom-color: #d4b05a;
    text-shadow: 0 0 20px rgba(212, 176, 90, 0.2);
}

/* --- 卡片：铁艺双线边框 + 玫瑰 + 宝石（纯 CSS） --- */
[data-theme="gothic"] .post-card {
    background: var(--card-bg);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(160, 150, 140, 0.15);
    box-shadow: var(--shadow);
    position: relative;
    overflow: visible;
    transition: all 0.4s ease;
    border-radius: 0;
}

/* 铁艺内框 */
[data-theme="gothic"] .post-card::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid rgba(160, 150, 140, 0.08);
    pointer-events: none;
    z-index: 0;
}

/* 玫瑰藤蔓（左上角）—— 纯 CSS 绘制 */
[data-theme="gothic"] .post-card::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    width: 80px;
    height: 80px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
    /* 藤蔓茎 */
    background:
        /* 茎曲线 */
        linear-gradient(135deg, transparent 35%, rgba(90, 80, 70, 0.2) 35%, rgba(90, 80, 70, 0.2) 38%, transparent 38%),
        linear-gradient(180deg, transparent 50%, rgba(90, 80, 70, 0.15) 50%, rgba(90, 80, 70, 0.15) 52%, transparent 52%),
        /* 玫瑰花朵 1（大） */
        radial-gradient(ellipse at 12px 8px, #b02a2a 35%, #8a1a1a 65%, transparent 70%),
        /* 玫瑰花朵 2（中） */
        radial-gradient(ellipse at 6px 36px, #b02a2a 25%, #8a1a1a 55%, transparent 60%),
        /* 玫瑰花朵 3（小） */
        radial-gradient(ellipse at 28px 54px, #b02a2a 20%, #8a1a1a 50%, transparent 55%),
        /* 花蕊 1 */
        radial-gradient(circle at 18px 14px, #d4b05a 2px, transparent 3px),
        /* 花蕊 2 */
        radial-gradient(circle at 10px 40px, #d4b05a 1.5px, transparent 2.5px),
        /* 叶子 1 */
        linear-gradient(150deg, rgba(60, 100, 60, 0.15) 0%, rgba(60, 100, 60, 0.15) 40%, transparent 40%),
        /* 叶子 2 */
        linear-gradient(30deg, rgba(60, 100, 60, 0.10) 0%, rgba(60, 100, 60, 0.10) 35%, transparent 35%);
    background-size:
        60px 60px, 60px 60px,
        30px 30px,
        25px 25px,
        20px 20px,
        10px 10px,
        8px 8px,
        20px 10px,
        15px 8px;
    background-position:
        0 0, 0 0,
        8px 0,
        2px 32px,
        24px 48px,
        16px 8px,
        6px 36px,
        16px 32px,
        14px 20px;
    background-repeat: no-repeat;
}

/* 宝石闪烁 */
[data-theme="gothic"] .post-card .gem {
    display: none;
    /* 纯 CSS 方式：使用 box-shadow 模拟宝石 */;
}
[data-theme="gothic"] .post-card:hover {
    border-color: rgba(138, 26, 26, 0.15);
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.06), 0 0 40px rgba(138, 26, 26, 0.04);
    transform: translateY(-3px);
}
[data-theme="gothic"] .post-card:hover::after {
    animation: rose-glow 1.5s ease-in-out infinite alternate;
}
@keyframes rose-glow {
    0% {
        filter: drop-shadow(0 0 6px rgba(138, 26, 26, 0.1));
    }
    100% {
        filter: drop-shadow(0 0 18px rgba(138, 26, 26, 0.3));
    }
}

/* --- Markdown --- */
[data-theme="gothic"] .markdown-body h2 {
    border-left: 3px solid #8a1a1a !important;
    padding-left: 18px;
}
[data-theme="gothic"] .markdown-body h3::before {
    content: "❀ ";
    color: #8a1a1a;
    opacity: 0.2;
}
[data-theme="gothic"] .markdown-body h4::before {
    content: "✿ ";
    color: #8a1a1a;
    opacity: 0.15;
}
[data-theme="gothic"] .markdown-body blockquote {
    border-left: 3px solid #8a1a1a;
    background: rgba(138, 26, 26, 0.03);
    padding: 16px 24px;
    font-style: italic;
}
[data-theme="gothic"] .markdown-body hr {
    border: none;
    height: 1px;
    margin: 36px 0;
    background: linear-gradient(90deg, transparent, #8a1a1a, #d4b05a, #8a1a1a, transparent);
    opacity: 0.12;
    position: relative;
}
[data-theme="gothic"] .markdown-body hr::after {
    content: "❀ ✿ ❀";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #f0ebe3;
    padding: 0 16px;
    font-size: 12px;
    color: #8a1a1a;
    opacity: 0.2;
}

/* --- 分页器 --- */
[data-theme="gothic"] .pagination .page-btn,
[data-theme="gothic"] .pagination .page-num {
    background: rgba(255, 252, 248, 0.4);
    border: 1px solid rgba(160, 150, 140, 0.08);
    color: var(--text-primary);
    font-family: 'Georgia', serif;
    transition: all 0.3s;
}
[data-theme="gothic"] .pagination .page-btn:hover,
[data-theme="gothic"] .pagination .page-num:hover {
    border-color: #8a1a1a;
    color: #8a1a1a;
}
[data-theme="gothic"] .pagination .page-num.active {
    background: #8a1a1a;
    color: #f5f0eb;
    border-color: #8a1a1a;
}

/* --- 标签 --- */
[data-theme="gothic"] .tag-item {
    background: rgba(255, 252, 248, 0.3);
    border: 1px solid rgba(160, 150, 140, 0.06);
    color: var(--text-secondary);
    transition: all 0.3s;
}
[data-theme="gothic"] .tag-item:hover {
    border-color: #d4b05a;
    color: #d4b05a;
    background: rgba(212, 176, 90, 0.04);
}

/* --- 侧边栏 --- */
[data-theme="gothic"] .sidebar {
    background: var(--sidebar-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid rgba(160, 150, 140, 0.10);
}
[data-theme="gothic"] .menu-item {
    border-left: 3px solid transparent;
    transition: all 0.3s;
}
[data-theme="gothic"] .menu-item:hover {
    border-left-color: #8a1a1a;
    background: rgba(138, 26, 26, 0.04);
}

/* --- FAB --- */
[data-theme="gothic"] .fab {
    background: var(--fab-bg);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(160, 150, 140, 0.10);
    color: #8a1a1a;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}
[data-theme="gothic"] .fab:hover {
    border-color: #d4b05a;
    box-shadow: 0 4px 30px rgba(212, 176, 90, 0.15);
    color: #d4b05a;
    transform: translateY(-2px);
}

/* --- 滚动条 --- */
[data-theme="gothic"] ::-webkit-scrollbar {
    width: 6px;
}
[data-theme="gothic"] ::-webkit-scrollbar-track {
    background: rgba(160, 150, 140, 0.04);
}
[data-theme="gothic"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8a1a1a, #d4b05a);
}

/* --- Hero 头像 --- */
[data-theme="gothic"] .hero-avatar {
    border-color: #c8bdb0;
    background: rgba(255, 252, 248, 0.55);
}
[data-theme="gothic"] .hero-avatar::before,
[data-theme="gothic"] .hero-avatar::after {
    color: #c8a050;
    opacity: 0.2;
}
[data-theme="gothic"] .hero-text .name .title-royal {
    color: #c8a050;
}
[data-theme="gothic"] .hero-text .motto {
    border-color: #c8a050;
}
[data-theme="gothic"] .site-main-title {
    color: #2a2622;
    text-shadow: 0 2px 20px rgba(200, 160, 80, 0.15);
}
[data-theme="gothic"] .site-title-ornament {
    color: #c8a050;
}
[data-theme="gothic"] .site-title-divider {
    background: linear-gradient(90deg, transparent, #c8a050, transparent);
}

/* ============================================================
   8.2 DOS · 夜间模式
   ============================================================ */

[data-theme="dos"] {
    background-color: #000000;
    background-image:
        repeating-linear-gradient(0deg,
            rgba(10, 31, 10, 0.3) 0px,
            rgba(10, 31, 10, 0.3) 1px,
            transparent 1px,
            transparent 3px
        ),
        repeating-linear-gradient(90deg,
            rgba(8, 20, 8, 0.15) 0px,
            rgba(8, 20, 8, 0.15) 1px,
            transparent 1px,
            transparent 4px
        );
    background-size: 100% 4px, 5px 100%;
}

/* --- 卡片：像素边框 + CRT 暗角 + 数据流 --- */
[data-theme="dos"] .post-card {
    background: #0a0a0a;
    border: 2px solid #3bc43b;
    box-shadow: 4px 4px 0 #1f4f1f, inset 0 0 60px rgba(0, 0, 0, 0.7);
    position: relative;
    overflow: visible;
    border-radius: 0;
}

/* CRT 暗角 */
[data-theme="dos"] .post-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    z-index: 0;
    border-radius: 0;
}

/* VHS 磁头干扰线 + 数据流条 */
[data-theme="dos"] .post-card::after {
    content: '';
    position: absolute;
    bottom: 12px;
    right: 16px;
    width: 50px;
    height: 20px;
    pointer-events: none;
    z-index: 3;
    /* 数据流条 */
    background:
        linear-gradient(180deg, #3bc43b 0%, #3bc43b 22%, transparent 22%, transparent 30%,
            #3bc43b 30%, #3bc43b 44%, transparent 44%, transparent 52%,
            #3bc43b 52%, #3bc43b 70%, transparent 70%, transparent 78%,
            #3bc43b 78%, #3bc43b 100%);
    background-size: 4px 100%, 4px 100%, 4px 100%, 4px 100%, 4px 100%;
    background-position: 0 0, 10px 0, 20px 0, 30px 0, 40px 0;
    background-repeat: no-repeat;
    opacity: 0.6;
    animation: dos-data-blink 1.2s ease-in-out infinite;
}

@keyframes dos-data-blink {
    0%,
    100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

/* VHS 磁头干扰线（游走动画） */
[data-theme="dos"] .post-card .vhs-line {
    display: none;
    /* 用下面这种方式实现 */;
}
[data-theme="dos"] .post-card .vhs-track {
    display: none;
}

/* 通过额外的伪元素无法实现游走，但我们可以用 background-position 动画 */
/* 或者直接用 .post-card 的 ::after 做静态数据流 */

/* --- 标题 --- */
[data-theme="dos"] .post-title {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    color: #3bc43b;
    border-bottom: 1px solid #1f4f1f;
    padding-bottom: 6px;
    margin-bottom: 12px;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(59, 196, 59, 0.3);
    border-left: none;
    padding-left: 0;
}
[data-theme="dos"] .post-title::after {
    content: '';
    display: none;
}

/* --- 链接 --- */
[data-theme="dos"] a {
    color: #3bc43b;
    text-decoration: underline;
    text-underline-offset: 2px;
}
[data-theme="dos"] a:hover {
    color: #6f9e6f;
}

/* --- 元数据 --- */
[data-theme="dos"] .post-meta {
    color: #6f9e6f;
    font-size: 12px;
    border-top: 1px solid #1f4f1f;
    padding-top: 8px;
    margin-bottom: 12px;
}
[data-theme="dos"] .post-meta span::before {
    content: ">";
    color: #3bc43b;
    margin-right: 6px;
    opacity: 0.5;
}

/* --- 摘要 --- */
[data-theme="dos"] .post-excerpt {
    color: #9bbb9b;
    font-size: 14px;
    line-height: 1.8;
    border-left: 2px solid #1f4f1f;
    padding-left: 14px;
}

/* --- 标签 --- */
[data-theme="dos"] .doc-tag {
    background: #0a0a0a !important;
    border-color: #1f4f1f !important;
    color: #6f9e6f !important;
}
[data-theme="dos"] .tag-item {
    background: #0a0a0a;
    border: 1px solid #1f4f1f;
    color: #6f9e6f;
}
[data-theme="dos"] .tag-item:hover {
    background: #1a3a1a;
    border-color: #3bc43b;
    color: #3bc43b;
}

/* --- 分页器 --- */
[data-theme="dos"] .pagination .page-btn,
[data-theme="dos"] .pagination .page-num {
    background: #0a0a0a;
    border-color: #1f4f1f;
    color: #6f9e6f;
}
[data-theme="dos"] .pagination .page-btn:hover,
[data-theme="dos"] .pagination .page-num:hover {
    background: #3bc43b;
    color: #000;
}
[data-theme="dos"] .pagination .page-num.active {
    background: #3bc43b;
    color: #000;
}

/* --- Markdown --- */
[data-theme="dos"] .markdown-body h2 {
    border-left: 3px solid #3bc43b !important;
}
[data-theme="dos"] .markdown-body h3::before,
[data-theme="dos"] .markdown-body h4::before {
    color: #3bc43b;
}
[data-theme="dos"] .markdown-body blockquote {
    border-color: #3bc43b;
    background: #0a0a0a;
    color: #6f9e6f;
}
[data-theme="dos"] .markdown-body code {
    background: #0a0a0a;
    border-color: #1f4f1f;
    color: #3bc43b;
}
[data-theme="dos"] .markdown-body pre {
    background: #0a0a0a;
    border-color: #1f4f1f;
}
[data-theme="dos"] .markdown-body hr {
    border-top-color: #1f4f1f;
}
[data-theme="dos"] .markdown-body table th {
    background: #0a0a0a;
}
[data-theme="dos"] .markdown-body table td,
[data-theme="dos"] .markdown-body table th {
    border-color: #1f4f1f;
}

/* --- 侧边栏 --- */
[data-theme="dos"] .sidebar {
    background: #0a0a0a;
    border-color: #1f4f1f;
}
[data-theme="dos"] .sidebar-header {
    border-color: #1f4f1f;
}
[data-theme="dos"] .sidebar-header h3 {
    color: #3bc43b;
}
[data-theme="dos"] .menu-item {
    color: #6f9e6f;
}
[data-theme="dos"] .menu-item:hover {
    background: rgba(59, 196, 59, 0.04);
    border-left-color: #3bc43b;
    color: #3bc43b;
}
[data-theme="dos"] .theme-option {
    color: #1f4f1f;
}
[data-theme="dos"] .theme-option:hover {
    color: #3bc43b;
}
[data-theme="dos"] .theme-option.active {
    border-left-color: #3bc43b;
    color: #3bc43b;
}

/* --- FAB --- */
[data-theme="dos"] .fab {
    background: #000;
    color: #3bc43b;
    border-color: #1f4f1f;
}
[data-theme="dos"] .fab:hover {
    border-color: #3bc43b;
    box-shadow: 0 0 20px rgba(59, 196, 59, 0.1);
}

/* --- Hero --- */
[data-theme="dos"] .hero-avatar {
    border-color: #3bc43b;
    background: #0a0a0a;
}
[data-theme="dos"] .hero-avatar::before,
[data-theme="dos"] .hero-avatar::after {
    color: #3bc43b;
    opacity: 0.15;
}
[data-theme="dos"] .hero-avatar .avatar-inner span {
    background: #3bc43b;
}
[data-theme="dos"] .hero-avatar .avatar-inner span.dark {
    opacity: 0.8;
}
[data-theme="dos"] .hero-avatar .avatar-inner span.light {
    opacity: 0.05;
}
[data-theme="dos"] .hero-text .name .title-royal {
    color: #6f9e6f;
}
[data-theme="dos"] .hero-text .motto {
    border-color: #3bc43b;
}
[data-theme="dos"] .header-title {
    color: #3bc43b !important;
    text-shadow: 0 0 10px rgba(59, 196, 59, 0.3);
}
[data-theme="dos"] .site-main-title {
    color: #3bc43b;
    text-shadow: 0 0 30px rgba(59, 196, 59, 0.2);
}
[data-theme="dos"] .site-title-ornament {
    color: #3bc43b;
}
[data-theme="dos"] .site-title-divider {
    background: linear-gradient(90deg, transparent, #3bc43b, transparent);
}

/* ============================================================
   8.3 墨水屏 · 纯黑白
   ============================================================ */

[data-theme="ink"] * {
    box-shadow: none !important;
    text-shadow: none !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-color: #000000 !important;
    border-radius: 0 !important;
}

[data-theme="ink"] body {
    background: #ffffff !important;
    color: #000000 !important;
}
[data-theme="ink"] #app {
    background: #ffffff !important;
}
[data-theme="ink"] .post-card {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    box-shadow: none !important;
}
[data-theme="ink"] .post-card::before,
[data-theme="ink"] .post-card::after {
    display: none !important;
}
[data-theme="ink"] .post-title {
    border-left: none !important;
    padding-left: 0 !important;
    color: #000000 !important;
}
[data-theme="ink"] .post-title::after {
    display: none !important;
}
[data-theme="ink"] .post-excerpt {
    border-left: 3px solid #000000 !important;
    padding-left: 16px !important;
}
[data-theme="ink"] .post-meta {
    border-top: 2px solid #000000 !important;
}
[data-theme="ink"] .post-meta span::before {
    content: "• " !important;
    color: #000000 !important;
}
[data-theme="ink"] a {
    color: #000000 !important;
    text-decoration: underline !important;
    border-bottom: none !important;
}
[data-theme="ink"] a:hover {
    background: #e0e0e0 !important;
}
[data-theme="ink"] .markdown-body h2 {
    border-left: 3px solid #000000 !important;
    padding-left: 16px !important;
}
[data-theme="ink"] .markdown-body h3::before,
[data-theme="ink"] .markdown-body h4::before {
    content: "▪ " !important;
    color: #000000 !important;
}
[data-theme="ink"] .markdown-body blockquote {
    background: #f0f0f0 !important;
    border-color: #000000 !important;
}
[data-theme="ink"] .markdown-body code {
    background: #f0f0f0 !important;
    border-color: #000000 !important;
    color: #000000 !important;
}
[data-theme="ink"] .markdown-body pre {
    background: #f0f0f0 !important;
    border-color: #000000 !important;
}
[data-theme="ink"] .markdown-body hr {
    border-top-color: #000000 !important;
    opacity: 0.5 !important;
}
[data-theme="ink"] .markdown-body table th {
    background: #f0f0f0 !important;
}
[data-theme="ink"] .markdown-body table td,
[data-theme="ink"] .markdown-body table th {
    border-color: #000000 !important;
}
[data-theme="ink"] .pagination .page-btn,
[data-theme="ink"] .pagination .page-num {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #000000 !important;
}
[data-theme="ink"] .pagination .page-btn:hover,
[data-theme="ink"] .pagination .page-num:hover {
    background: #000000 !important;
    color: #ffffff !important;
}
[data-theme="ink"] .pagination .page-num.active {
    background: #000000 !important;
    color: #ffffff !important;
}
[data-theme="ink"] .tag-item {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
}
[data-theme="ink"] .tag-item:hover {
    background: #e0e0e0 !important;
}
[data-theme="ink"] .sidebar {
    background: #ffffff !important;
    border-color: #000000 !important;
}
[data-theme="ink"] .sidebar-header {
    border-color: #000000 !important;
}
[data-theme="ink"] .sidebar-header h3 {
    color: #000000 !important;
}
[data-theme="ink"] .menu-item {
    color: #000000 !important;
}
[data-theme="ink"] .menu-item:hover {
    background: #e0e0e0 !important;
}
[data-theme="ink"] .theme-option {
    color: #000000 !important;
}
[data-theme="ink"] .theme-option:hover {
    background: #e0e0e0 !important;
}
[data-theme="ink"] .theme-option.active {
    background: #d0d0d0 !important;
    border-left-color: #000000 !important;
}
[data-theme="ink"] .fab {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    box-shadow: none !important;
}
[data-theme="ink"] .fab:hover {
    background: #333333 !important;
    transform: none !important;
}
[data-theme="ink"] .hero-avatar {
    background: #ffffff !important;
    border-color: #000000 !important;
}
[data-theme="ink"] .hero-avatar .avatar-inner span {
    background: #000000 !important;
}
[data-theme="ink"] .hero-avatar .avatar-inner span.dark {
    opacity: 0.9 !important;
}
[data-theme="ink"] .hero-avatar .avatar-inner span.light {
    opacity: 0.02 !important;
}
[data-theme="ink"] .hero-avatar::before,
[data-theme="ink"] .hero-avatar::after {
    display: none !important;
}
[data-theme="ink"] .hero-text .name .title-royal {
    color: #000000 !important;
}
[data-theme="ink"] .hero-text .motto {
    border-color: #000000 !important;
}
[data-theme="ink"] .site-main-title {
    color: #000000 !important;
    text-shadow: none !important;
}
[data-theme="ink"] .site-title-ornament {
    color: #000000 !important;
}
[data-theme="ink"] .site-title-divider {
    background: linear-gradient(90deg, transparent, #000000, transparent) !important;
}
[data-theme="ink"] .bio-entry-card {
    background: #f5f5f5 !important;
    border-color: #000000 !important;
    border-left-color: #000000 !important;
}
[data-theme="ink"] .bio-entry-card .bio-entry-label {
    color: #000000 !important;
}
[data-theme="ink"] .bio-entry-card .bio-entry-link {
    color: #000000 !important;
}
[data-theme="ink"] .bio-entry-card::before {
    display: none !important;
}
[data-theme="ink"] .doc-list .doc-id {
    color: #000000 !important;
}
[data-theme="ink"] .doc-list .doc-tag {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #000000 !important;
}
[data-theme="ink"] .doc-list li {
    border-bottom-color: #000000 !important;
}
[data-theme="ink"] .doc-list li:hover {
    background: #e0e0e0 !important;
}
[data-theme="ink"] .modal-content {
    background: #ffffff !important;
    border-color: #000000 !important;
}
[data-theme="ink"] .modal-content h3 {
    color: #000000 !important;
}
[data-theme="ink"] .modal-content input {
    background: #ffffff !important;
    border-color: #000000 !important;
    color: #000000 !important;
}
[data-theme="ink"] .modal-buttons button {
    background: #ffffff !important;
    border-color: #000000 !important;
    color: #000000 !important;
}
[data-theme="ink"] .modal-buttons button:hover {
    background: #000000 !important;
    color: #ffffff !important;
}
[data-theme="ink"] .note {
    background: #f0f0f0 !important;
    border-color: #000000 !important;
}
[data-theme="ink"] .label {
    background: #000000 !important;
    color: #ffffff !important;
}
[data-theme="ink"] .label-primary,
[data-theme="ink"] .label-success,
[data-theme="ink"] .label-warning,
[data-theme="ink"] .label-danger,
[data-theme="ink"] .label-info {
    background: #000000 !important;
    color: #ffffff !important;
}
[data-theme="ink"] details {
    background: #f0f0f0 !important;
    border-color: #000000 !important;
}
[data-theme="ink"] summary {
    color: #000000 !important;
}
[data-theme="ink"] summary::before {
    color: #000000 !important;
}
[data-theme="ink"] details[open] summary {
    border-color: #000000 !important;
}
[data-theme="ink"] .quote {
    background: #f0f0f0 !important;
    border-color: #000000 !important;
    color: #000000 !important;
}
[data-theme="ink"] .tabs-header {
    border-color: #000000 !important;
}
[data-theme="ink"] .tab-header {
    color: #000000 !important;
}
[data-theme="ink"] .tab-header.active {
    background: #e0e0e0 !important;
    border-color: #000000 !important;
    color: #000000 !important;
}
[data-theme="ink"] .post-detail-header {
    border-color: #000000 !important;
}
[data-theme="ink"] .post-detail-header .back-link {
    color: #000000 !important;
}
[data-theme="ink"] .post-detail-header h1 {
    color: #000000 !important;
}
[data-theme="ink"] .post-detail-header .doc-tag {
    background: #f0f0f0 !important;
    border-color: #000000 !important;
    color: #000000 !important;
}
[data-theme="ink"] #siteFooter {
    border-color: #000000 !important;
    color: #000000 !important;
}
[data-theme="ink"] .inner-char:hover {
    color: #000000 !important;
    background: #e0e0e0 !important;
}
[data-theme="ink"] ::-webkit-scrollbar-track {
    background: #ffffff !important;
}
[data-theme="ink"] ::-webkit-scrollbar-thumb {
    background: #000000 !important;
}
[data-theme="ink"] .toast-message {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #000000 !important;
    box-shadow: none !important;
}
[data-theme="ink"] img {
    filter: grayscale(100%) contrast(150%) !important;
}

/* ============================================================
   8.4 深空科技 · 星舰驾驶舱
   ============================================================ */

   [data-theme="spacetech"] {
    --bg: #05080f;
    --card-bg: rgba(8, 20, 40, 0.30);
    --text-primary: #c8e6ff;
    --text-secondary: rgba(125, 249, 255, 0.4);
    --text-muted: rgba(79, 195, 255, 0.15);
    --border: rgba(0, 180, 255, 0.06);
    --border-dark: rgba(0, 180, 255, 0.04);
    --accent: #7df9ff;
    --accent-gold: #4fc3ff;
    --accent-gold-glow: rgba(79, 195, 255, 0.15);
    --accent-rose: rgba(79, 195, 255, 0.04);
    --shadow: 0 0 40px rgba(79, 195, 255, 0.06);
    --font-sans: 'Rajdhani', 'Orbitron', 'Segoe UI', sans-serif;
    --font-serif: 'Rajdhani', 'Georgia', serif;
    --header-bg: rgba(5, 8, 15, 0.85);
    --sidebar-bg: rgba(5, 8, 15, 0.92);
    --fab-bg: rgba(8, 20, 40, 0.5);
    --fab-color: #7df9ff;
    --link-color: #7df9ff;
    --card-radius: 16px;

    background-color: #05080f;
    background-image:
        /* 1. 主星云（深邃紫蓝） */
        radial-gradient(ellipse at 15% 25%, rgba(30, 60, 120, 0.25) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 30%, rgba(60, 20, 100, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 60%, rgba(10, 50, 80, 0.20) 0%, transparent 50%),
        radial-gradient(ellipse at 25% 75%, rgba(80, 30, 120, 0.10) 0%, transparent 35%),
        /* 2. 科技网格（更亮、更密） */
        repeating-linear-gradient(0deg, 
            rgba(79, 195, 255, 0.04) 0px, 
            rgba(79, 195, 255, 0.04) 1px, 
            transparent 1px, 
            transparent 30px
        ),
        repeating-linear-gradient(90deg, 
            rgba(79, 195, 255, 0.04) 0px, 
            rgba(79, 195, 255, 0.04) 1px, 
            transparent 1px, 
            transparent 30px
        ),
        /* 3. 全息瞄准十字（极淡） */
        repeating-linear-gradient(0deg, 
            rgba(125, 249, 255, 0.02) 0px, 
            rgba(125, 249, 255, 0.02) 1px, 
            transparent 1px, 
            transparent 90px
        ),
        repeating-linear-gradient(90deg, 
            rgba(125, 249, 255, 0.02) 0px, 
            rgba(125, 249, 255, 0.02) 1px, 
            transparent 1px, 
            transparent 90px
        ),
        /* 4. 极淡数据流斜线 */
        repeating-linear-gradient(45deg,
            transparent 0px,
            transparent 120px,
            rgba(79, 195, 255, 0.015) 120px,
            rgba(79, 195, 255, 0.015) 121px,
            transparent 121px,
            transparent 180px
        );
    background-size: 
        100% 100%, 100% 100%, 100% 100%, 100% 100%,
        100% 30px, 30px 100%,
        100% 90px, 90px 100%,
        180px 180px;
}

/* --- 闪烁星点（动态增强） --- */
[data-theme="spacetech"] #content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        /* 亮星（大） */
        radial-gradient(2.5px 2.5px at 5% 8%, #7df9ff, transparent),
        radial-gradient(2px 2px at 22% 18%, #ffffff, transparent),
        radial-gradient(3px 3px at 40% 5%, #4fc3ff, transparent),
        radial-gradient(2px 2px at 55% 28%, #ffffff, transparent),
        radial-gradient(2.5px 2.5px at 70% 12%, #7df9ff, transparent),
        radial-gradient(3px 3px at 88% 22%, #4fc3ff, transparent),
        radial-gradient(2px 2px at 12% 45%, #ffffff, transparent),
        radial-gradient(2.5px 2.5px at 30% 35%, #7df9ff, transparent),
        radial-gradient(2px 2px at 48% 48%, #4fc3ff, transparent),
        radial-gradient(3px 3px at 65% 40%, #ffffff, transparent),
        radial-gradient(2px 2px at 82% 55%, #7df9ff, transparent),
        radial-gradient(2.5px 2.5px at 95% 38%, #4fc3ff, transparent),
        /* 暗星（小）—— 更多更密集 */
        radial-gradient(1px 1px at 8% 30%, rgba(125,249,255,0.4), transparent),
        radial-gradient(1px 1px at 18% 55%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 28% 70%, rgba(79,195,255,0.4), transparent),
        radial-gradient(1px 1px at 38% 42%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 48% 22%, rgba(125,249,255,0.4), transparent),
        radial-gradient(1px 1px at 58% 55%, rgba(79,195,255,0.3), transparent),
        radial-gradient(1px 1px at 68% 18%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 78% 42%, rgba(125,249,255,0.3), transparent),
        radial-gradient(1px 1px at 88% 68%, rgba(79,195,255,0.4), transparent),
        radial-gradient(1px 1px at 92% 50%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 15% 80%, rgba(125,249,255,0.3), transparent),
        radial-gradient(1px 1px at 35% 88%, rgba(79,195,255,0.4), transparent),
        radial-gradient(1px 1px at 55% 75%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 72% 85%, rgba(125,249,255,0.4), transparent),
        radial-gradient(1px 1px at 90% 78%, rgba(79,195,255,0.3), transparent);
    background-repeat: no-repeat;
    animation: spacetech-twinkle 3.5s ease-in-out infinite alternate;
}

@keyframes spacetech-twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* --- 卡片：呼吸发光边框 + 全息效果 --- */
[data-theme="spacetech"] .post-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 180, 255, 0.06);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    animation: spacetech-breathe 4s ease-in-out infinite;
    box-shadow: 
        0 4px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(79, 195, 255, 0.02),
        inset 0 0 80px rgba(79, 195, 255, 0.01);
    transition: all 0.4s ease;
}

@keyframes spacetech-breathe {
    0%, 100% {
        box-shadow: 
            0 4px 40px rgba(0, 0, 0, 0.4),
            0 0 20px rgba(79, 195, 255, 0.02);
        border-color: rgba(0, 180, 255, 0.06);
    }
    50% {
        box-shadow: 
            0 8px 60px rgba(0, 0, 0, 0.5),
            0 0 60px rgba(125, 249, 255, 0.06);
        border-color: rgba(125, 249, 255, 0.12);
    }
}

/* --- 顶部发光条（增强） --- */
[data-theme="spacetech"] .post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(125, 249, 255, 0.5), 
        rgba(79, 195, 255, 0.8), 
        rgba(125, 249, 255, 0.5), 
        transparent
    );
    box-shadow: 0 0 40px rgba(79, 195, 255, 0.25), 0 0 80px rgba(79, 195, 255, 0.08);
    pointer-events: none;
    z-index: 2;
    border-radius: 16px 16px 0 0;
}

/* --- 全息扫描线（动态垂直扫描） --- */
[data-theme="spacetech"] .post-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(125, 249, 255, 0.05), 
        rgba(79, 195, 255, 0.02)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

/* ===== 仪表盘（右上角）—— 纯 CSS ===== */
[data-theme="spacetech"] .post-card .gauge-mini {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1.5px solid rgba(79, 195, 255, 0.10);
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}
[data-theme="spacetech"] .post-card .gauge-mini .needle {
    position: absolute;
    bottom: 50%;
    left: 50%;
    width: 2px;
    height: 18px;
    background: #7df9ff;
    transform-origin: bottom center;
    animation: gauge-sweep 4s ease-in-out infinite;
    box-shadow: 0 0 12px #7df9ff, 0 0 25px rgba(125, 249, 255, 0.15);
}
[data-theme="spacetech"] .post-card .gauge-mini .needle::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #7df9ff;
    box-shadow: 0 0 15px #7df9ff, 0 0 30px rgba(125, 249, 255, 0.2);
}
/* 仪表盘刻度 */
[data-theme="spacetech"] .post-card .gauge-mini .tick {
    position: absolute;
    width: 1px;
    background: rgba(79, 195, 255, 0.15);
    transform-origin: bottom center;
}
[data-theme="spacetech"] .post-card .gauge-mini .tick-1 { bottom: 50%; left: 50%; height: 12px; transform: translateX(-50%) rotate(-60deg); }
[data-theme="spacetech"] .post-card .gauge-mini .tick-2 { bottom: 50%; left: 50%; height: 12px; transform: translateX(-50%) rotate(-30deg); }
[data-theme="spacetech"] .post-card .gauge-mini .tick-3 { bottom: 50%; left: 50%; height: 12px; transform: translateX(-50%) rotate(0deg); }
[data-theme="spacetech"] .post-card .gauge-mini .tick-4 { bottom: 50%; left: 50%; height: 12px; transform: translateX(-50%) rotate(30deg); }
[data-theme="spacetech"] .post-card .gauge-mini .tick-5 { bottom: 50%; left: 50%; height: 12px; transform: translateX(-50%) rotate(60deg); }

@keyframes gauge-sweep {
    0% { transform: rotate(-50deg); }
    50% { transform: rotate(50deg); }
    100% { transform: rotate(-50deg); }
}

/* ===== 数据流信号条（右下）—— 动态增强 ===== */
[data-theme="spacetech"] .post-card .data-stream {
    position: absolute;
    bottom: 14px;
    right: 20px;
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 28px;
    z-index: 3;
    pointer-events: none;
    opacity: 0.7;
}
[data-theme="spacetech"] .post-card .data-stream .bar {
    width: 3px;
    border-radius: 1px;
    animation: signal-blink 1.2s ease-in-out infinite;
    box-shadow: 0 0 6px currentColor;
}
[data-theme="spacetech"] .post-card .data-stream .bar:nth-child(1) {
    height: 6px;
    background: #4fc3ff;
    color: #4fc3ff;
    animation-delay: 0s;
}
[data-theme="spacetech"] .post-card .data-stream .bar:nth-child(2) {
    height: 12px;
    background: #7df9ff;
    color: #7df9ff;
    animation-delay: 0.3s;
}
[data-theme="spacetech"] .post-card .data-stream .bar:nth-child(3) {
    height: 8px;
    background: #4fc3ff;
    color: #4fc3ff;
    animation-delay: 0.6s;
}
[data-theme="spacetech"] .post-card .data-stream .bar:nth-child(4) {
    height: 20px;
    background: #00ff88;
    color: #00ff88;
    animation-delay: 0.9s;
}
[data-theme="spacetech"] .post-card .data-stream .bar:nth-child(5) {
    height: 10px;
    background: #4fc3ff;
    color: #4fc3ff;
    animation-delay: 1.2s;
}
[data-theme="spacetech"] .post-card .data-stream .bar:nth-child(6) {
    height: 15px;
    background: #7df9ff;
    color: #7df9ff;
    animation-delay: 1.5s;
}
[data-theme="spacetech"] .post-card .data-stream .bar:nth-child(7) {
    height: 4px;
    background: #4fc3ff;
    color: #4fc3ff;
    animation-delay: 1.8s;
}

@keyframes signal-blink {
    0%, 100% { opacity: 0.2; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ===== 信号强度指示（左下角——新增） ===== */
[data-theme="spacetech"] .post-card .signal-strength {
    position: absolute;
    bottom: 14px;
    left: 18px;
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 16px;
    z-index: 3;
    pointer-events: none;
    opacity: 0.3;
}
[data-theme="spacetech"] .post-card .signal-strength .dot {
    width: 4px;
    border-radius: 50%;
    background: #4fc3ff;
    box-shadow: 0 0 6px currentColor;
    transition: all 0.3s;
}
[data-theme="spacetech"] .post-card .signal-strength .dot:nth-child(1) {
    height: 4px;
    background: #ff3366;
    color: #ff3366;
    animation: signal-pulse 2s ease-in-out infinite;
}
[data-theme="spacetech"] .post-card .signal-strength .dot:nth-child(2) {
    height: 8px;
    background: #ffd700;
    color: #ffd700;
    animation: signal-pulse 2s ease-in-out infinite 0.4s;
}
[data-theme="spacetech"] .post-card .signal-strength .dot:nth-child(3) {
    height: 12px;
    background: #00ff88;
    color: #00ff88;
    animation: signal-pulse 2s ease-in-out infinite 0.8s;
}
[data-theme="spacetech"] .post-card .signal-strength .dot:nth-child(4) {
    height: 16px;
    background: #7df9ff;
    color: #7df9ff;
    animation: signal-pulse 2s ease-in-out infinite 1.2s;
}

@keyframes signal-pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* --- 卡片悬停 --- */
[data-theme="spacetech"] .post-card:hover {
    border-color: rgba(125, 249, 255, 0.20);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(79, 195, 255, 0.08);
    background: rgba(10, 24, 48, 0.40);
    animation-play-state: paused;
}

/* --- 标题：霓虹渐变 + 荧光 --- */
[data-theme="spacetech"] .post-title {
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    background: linear-gradient(135deg, #7df9ff, #4fc3ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(79, 195, 255, 0.25));
    border-left: 3px solid #7df9ff;
    padding-left: 18px;
    margin-bottom: 8px;
}
[data-theme="spacetech"] .post-title::after {
    display: none;
}

/* --- 元数据：荧光蓝 --- */
[data-theme="spacetech"] .post-meta {
    color: rgba(125, 249, 255, 0.25);
    font-size: 12px;
    letter-spacing: 3px;
    border-top: 1px solid rgba(0, 180, 255, 0.04);
    padding-top: 10px;
    font-weight: 300;
    display: flex;
    gap: 20px;
}
[data-theme="spacetech"] .post-meta span::before {
    content: "◆";
    color: #4fc3ff;
    font-size: 7px;
    margin-right: 8px;
    opacity: 0.4;
    text-shadow: 0 0 10px #4fc3ff;
}

/* --- 摘要：半透明白，带发光 --- */
[data-theme="spacetech"] .post-excerpt {
    color: rgba(200, 230, 255, 0.45);
    font-size: 15px;
    font-weight: 300;
    border-left: 2px solid rgba(79, 195, 255, 0.06);
    padding-left: 18px;
    line-height: 1.9;
    text-shadow: 0 0 20px rgba(79, 195, 255, 0.02);
}
[data-theme="spacetech"] .post-excerpt .highlight {
    color: #7df9ff;
    font-weight: 400;
    text-shadow: 0 0 30px rgba(125, 249, 255, 0.08);
}

/* --- 标签：荧光胶囊 --- */
[data-theme="spacetech"] .tag-item {
    background: rgba(79, 195, 255, 0.04);
    border: 1px solid rgba(79, 195, 255, 0.06);
    color: #7df9ff;
    border-radius: 20px;
    font-family: 'Orbitron', monospace;
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 4px 18px;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(79, 195, 255, 0.05);
}
[data-theme="spacetech"] .tag-item:hover {
    background: rgba(79, 195, 255, 0.08);
    border-color: #7df9ff;
    box-shadow: 0 0 30px rgba(79, 195, 255, 0.06);
}

/* --- 分页器：科技按钮 --- */
[data-theme="spacetech"] .pagination .page-btn,
[data-theme="spacetech"] .pagination .page-num {
    background: rgba(8, 20, 40, 0.3);
    border: 1px solid rgba(0, 180, 255, 0.06);
    color: var(--text-secondary);
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 400;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
[data-theme="spacetech"] .pagination .page-btn:hover,
[data-theme="spacetech"] .pagination .page-num:hover {
    border-color: #7df9ff;
    color: var(--text-primary);
    background: rgba(79, 195, 255, 0.04);
    box-shadow: 0 0 30px rgba(79, 195, 255, 0.04);
}
[data-theme="spacetech"] .pagination .page-num.active {
    background: rgba(79, 195, 255, 0.08);
    color: #7df9ff;
    border-color: #4fc3ff;
    box-shadow: 0 0 40px rgba(79, 195, 255, 0.06);
}

/* --- 侧边栏：深空玻璃 --- */
[data-theme="spacetech"] .sidebar {
    background: var(--sidebar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0, 180, 255, 0.06);
    box-shadow: -4px 0 50px rgba(0, 0, 0, 0.3);
}
[data-theme="spacetech"] .sidebar-header {
    border-bottom: 1px solid rgba(0, 180, 255, 0.06);
}
[data-theme="spacetech"] .sidebar-header h3 {
    color: var(--text-primary) !important;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 5px;
    text-shadow: 0 0 20px rgba(79, 195, 255, 0.05);
}
[data-theme="spacetech"] .sidebar-header h3::before {
    content: "◈ ";
    color: #4fc3ff;
    opacity: 0.3;
}

[data-theme="spacetech"] .menu-item {
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}
[data-theme="spacetech"] .menu-item:hover {
    border-left-color: #7df9ff;
    background: rgba(79, 195, 255, 0.04);
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(79, 195, 255, 0.05);
}

[data-theme="spacetech"] .theme-option {
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
}
[data-theme="spacetech"] .theme-option:hover {
    border-left-color: #7df9ff;
    background: rgba(79, 195, 255, 0.04);
}
[data-theme="spacetech"] .theme-option.active {
    border-left-color: #7df9ff;
}

/* --- FAB：荧光按钮 --- */
[data-theme="spacetech"] .fab {
    background: rgba(8, 20, 40, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 180, 255, 0.08);
    color: #7df9ff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-shadow: 0 0 15px rgba(79, 195, 255, 0.1);
    transition: all 0.3s ease;
}
[data-theme="spacetech"] .fab:hover {
    border-color: #7df9ff;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), 0 0 60px rgba(79, 195, 255, 0.08);
    transform: translateY(-2px);
    text-shadow: 0 0 30px #7df9ff;
}

/* --- Markdown：全息文档 --- */
[data-theme="spacetech"] .markdown-body h2 {
    border-left: 4px solid #4fc3ff !important;
    padding-left: 18px;
    font-family: 'Orbitron', sans-serif;
    color: var(--text-primary) !important;
    letter-spacing: 4px;
    font-weight: 700;
    text-shadow: 0 0 30px rgba(79, 195, 255, 0.05);
}
[data-theme="spacetech"] .markdown-body h2::before {
    content: "◈ ";
    color: #7df9ff;
    opacity: 0.2;
}
[data-theme="spacetech"] .markdown-body h3::before {
    content: "◆ ";
    color: #4fc3ff;
    opacity: 0.12;
}
[data-theme="spacetech"] .markdown-body h4::before {
    content: "◇ ";
    color: #7df9ff;
    opacity: 0.10;
}
[data-theme="spacetech"] .markdown-body blockquote {
    border-left: 4px solid rgba(79, 195, 255, 0.15);
    background: rgba(8, 20, 40, 0.15);
    padding: 16px 24px;
    border-radius: 0 12px 12px 0;
    box-shadow: inset 0 0 40px rgba(79, 195, 255, 0.01);
}
[data-theme="spacetech"] .markdown-body code {
    background: rgba(8, 20, 40, 0.3);
    color: #7df9ff;
    border: 1px solid rgba(0, 180, 255, 0.04);
    border-radius: 4px;
    text-shadow: 0 0 10px rgba(79, 195, 255, 0.05);
}
[data-theme="spacetech"] .markdown-body pre {
    background: rgba(8, 20, 40, 0.3);
    border: 1px solid rgba(0, 180, 255, 0.04);
    border-radius: 12px;
    box-shadow: inset 0 0 60px rgba(79, 195, 255, 0.01);
}
[data-theme="spacetech"] .markdown-body hr {
    border: none;
    height: 1px;
    margin: 36px 0;
    background: linear-gradient(90deg, transparent, #7df9ff44, #4fc3ff66, #7df9ff44, transparent);
    box-shadow: 0 0 30px rgba(79, 195, 255, 0.03);
}
[data-theme="spacetech"] .markdown-body hr::after {
    content: "◈ ◈ ◈";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #05080f;
    padding: 0 16px;
    font-size: 10px;
    color: #4fc3ff44;
    letter-spacing: 8px;
}
[data-theme="spacetech"] .markdown-body table th {
    background: rgba(8, 20, 40, 0.3);
    color: #7df9ff;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    font-weight: 400;
}
[data-theme="spacetech"] .markdown-body table td,
[data-theme="spacetech"] .markdown-body table th {
    border-color: rgba(0, 180, 255, 0.06);
}

/* --- Hero：深空头像 --- */
[data-theme="spacetech"] .hero-avatar {
    border-color: rgba(0, 180, 255, 0.12);
    background: rgba(8, 20, 40, 0.4);
    box-shadow: 0 0 40px rgba(79, 195, 255, 0.02);
}
[data-theme="spacetech"] .hero-avatar::before,
[data-theme="spacetech"] .hero-avatar::after {
    color: #4fc3ff;
    opacity: 0.10;
}
[data-theme="spacetech"] .hero-text .name .title-royal {
    color: #4fc3ff;
    text-shadow: 0 0 30px rgba(79, 195, 255, 0.05);
}
[data-theme="spacetech"] .hero-text .motto {
    border-color: #4fc3ff;
}
[data-theme="spacetech"] .header-title {
    background: linear-gradient(135deg, #7df9ff, #4fc3ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(79, 195, 255, 0.15));
}
[data-theme="spacetech"] .site-main-title {
    color: #7df9ff;
    text-shadow: 0 0 60px rgba(79, 195, 255, 0.12);
}
[data-theme="spacetech"] .site-title-ornament {
    color: #4fc3ff;
}
[data-theme="spacetech"] .site-title-divider {
    background: linear-gradient(90deg, transparent, #4fc3ff, transparent);
}

/* --- 滚动条：荧光 --- */
[data-theme="spacetech"] ::-webkit-scrollbar {
    width: 6px;
}
[data-theme="spacetech"] ::-webkit-scrollbar-track {
    background: #05080f;
}
[data-theme="spacetech"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4fc3ff, #7df9ff, #00ff88);
    border-radius: 3px;
    box-shadow: 0 0 30px #4fc3ff44;
}
[data-theme="spacetech"] ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7df9ff, #4fc3ff, #00ff88);
    box-shadow: 0 0 50px #4fc3ff66;
}

/* --- 本纪入口卡片：深空科技 --- */
[data-theme="spacetech"] .bio-entry-card {
    border-color: rgba(79, 195, 255, 0.15);
    border-left: 6px solid #7df9ff;
    background: rgba(8, 20, 40, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2), 0 0 40px rgba(79, 195, 255, 0.02);
    border-radius: 12px;
    transition: all 0.4s ease;
    overflow: hidden;
}
[data-theme="spacetech"] .bio-entry-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(ellipse at 100% 0%, rgba(79, 195, 255, 0.06), transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}
[data-theme="spacetech"] .bio-entry-card::after {
    content: '◈';
    position: absolute;
    bottom: 12px;
    right: 18px;
    font-size: 14px;
    color: #4fc3ff;
    opacity: 0.06;
    pointer-events: none;
}
[data-theme="spacetech"] .bio-entry-card:hover {
    transform: translateY(-3px);
    border-color: rgba(125, 249, 255, 0.25);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 60px rgba(79, 195, 255, 0.06);
    background: rgba(10, 24, 48, 0.35);
}
[data-theme="spacetech"] .bio-entry-card .bio-entry-label {
    color: #4fc3ff;
    font-size: 10px;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 20px rgba(79, 195, 255, 0.05);
}
[data-theme="spacetech"] .bio-entry-card .bio-entry-title {
    color: #c8e6ff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    text-shadow: 0 0 30px rgba(79, 195, 255, 0.05);
}
[data-theme="spacetech"] .bio-entry-card .bio-entry-excerpt {
    color: rgba(125, 249, 255, 0.3);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 300;
}
[data-theme="spacetech"] .bio-entry-card .bio-entry-link {
    color: #7df9ff;
    border-bottom: 2px solid transparent;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    text-shadow: 0 0 20px rgba(79, 195, 255, 0.05);
}
[data-theme="spacetech"] .bio-entry-card:hover .bio-entry-link {
    border-bottom-color: #7df9ff;
    color: #7df9ff;
    text-shadow: 0 0 40px rgba(79, 195, 255, 0.1);
}
[data-theme="spacetech"] .bio-entry-card .bio-entry-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.5;
    filter: drop-shadow(0 0 20px rgba(79, 195, 255, 0.05));
}

/* ============================================================
   8.5 森林 · 小红书自然风（深邃·湿润·有光）
   ============================================================ */

   [data-theme="forest"] {
    /* ---- 深邃自然的绿色系 ---- */
    --bg: #1a2e1a;
    --card-bg: rgba(30, 55, 30, 0.70);
    --text-primary: #e8f0e0;
    --text-secondary: #a8c8a0;
    --text-muted: #5a7a5a;
    --border: rgba(80, 140, 80, 0.20);
    --border-dark: rgba(60, 120, 60, 0.15);
    --accent: #7acf7a;
    --accent-gold: #b8d88a;
    --accent-gold-glow: rgba(122, 208, 122, 0.10);
    --accent-rose: rgba(122, 208, 122, 0.04);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.30);
    --font-sans: 'Segoe UI', 'Quicksand', sans-serif;
    --font-serif: 'Georgia', 'Palatino', serif;
    --header-bg: rgba(26, 46, 26, 0.88);
    --sidebar-bg: rgba(26, 46, 26, 0.92);
    --fab-bg: #2a5a2a;
    --fab-color: #d8f0c8;
    --link-color: #8ac88a;
    --card-radius: 20px 6px 20px 6px;

    /* ---- 基底：深邃森林 + 光斑 ---- */
    background-color: #1a2e1a;
    background-image:
        /* 1. 主光晕（暖色阳光穿透树冠） */
        radial-gradient(ellipse at 25% 15%, rgba(200, 180, 120, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 70% 25%, rgba(180, 200, 140, 0.08) 0%, transparent 35%),
        radial-gradient(ellipse at 50% 60%, rgba(160, 190, 140, 0.06) 0%, transparent 40%),
        /* 2. 次级光晕（冷色环境光） */
        radial-gradient(ellipse at 80% 70%, rgba(100, 160, 120, 0.06) 0%, transparent 35%),
        radial-gradient(ellipse at 10% 80%, rgba(80, 150, 100, 0.05) 0%, transparent 30%),
        /* 3. 阳光光斑（模拟树影间隙）—— 更自然 */
        radial-gradient(circle at 12% 22%, rgba(220, 210, 160, 0.06) 8px, transparent 10px),
        radial-gradient(circle at 35% 18%, rgba(230, 220, 170, 0.04) 12px, transparent 14px),
        radial-gradient(circle at 58% 28%, rgba(210, 200, 150, 0.05) 6px, transparent 8px),
        radial-gradient(circle at 78% 15%, rgba(240, 230, 180, 0.04) 10px, transparent 12px),
        radial-gradient(circle at 15% 45%, rgba(220, 210, 160, 0.04) 8px, transparent 10px),
        radial-gradient(circle at 45% 50%, rgba(230, 220, 170, 0.05) 14px, transparent 16px),
        radial-gradient(circle at 70% 42%, rgba(210, 200, 150, 0.04) 6px, transparent 8px),
        radial-gradient(circle at 90% 38%, rgba(240, 230, 180, 0.03) 10px, transparent 12px),
        /* 4. 极淡苔藓/叶片纹理（点状） */
        radial-gradient(circle at 8% 12%, rgba(100, 180, 100, 0.06) 2px, transparent 3px),
        radial-gradient(circle at 22% 32%, rgba(120, 190, 120, 0.04) 3px, transparent 4px),
        radial-gradient(circle at 42% 8%, rgba(90, 170, 90, 0.05) 2px, transparent 3px),
        radial-gradient(circle at 62% 38%, rgba(110, 185, 110, 0.04) 3px, transparent 4px),
        radial-gradient(circle at 82% 18%, rgba(130, 200, 130, 0.05) 2px, transparent 3px),
        radial-gradient(circle at 15% 62%, rgba(100, 180, 100, 0.04) 3px, transparent 4px),
        radial-gradient(circle at 48% 72%, rgba(120, 190, 120, 0.05) 2px, transparent 3px),
        radial-gradient(circle at 75% 58%, rgba(90, 170, 90, 0.04) 3px, transparent 4px),
        /* 5. 底部微光（像林间地面反光） */
        radial-gradient(ellipse at 50% 100%, rgba(140, 180, 120, 0.06) 0%, transparent 30%);

    background-size:
        100% 100%, 100% 100%, 100% 100%,
        100% 100%, 100% 100%,
        100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%,
        100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%,
        100% 100%;
    color: var(--text-primary);
    font-family: 'Segoe UI', 'Quicksand', 'Georgia', sans-serif;
    line-height: 1.8;
}

/* --- 卡片：湿润苔藓质感 + 光晕边缘 --- */
[data-theme="forest"] .post-card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(80, 140, 80, 0.12);
    border-radius: 20px 6px 20px 6px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.25),
        inset 0 0 60px rgba(80, 150, 80, 0.03),
        inset 0 0 0 1px rgba(160, 210, 140, 0.06);
    position: relative;
    overflow: visible;
    transition: all 0.5s ease;
    margin-bottom: 28px;
}

/* 左上角苔藓/嫩芽装饰（更自然） */
[data-theme="forest"] .post-card::before {
    content: '🌿';
    position: absolute;
    top: -8px;
    left: 14px;
    font-size: 20px;
    opacity: 0.25;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
    pointer-events: none;
    z-index: 2;
}

/* 右下角叶片装饰 */
[data-theme="forest"] .post-card::after {
    content: '🍃';
    position: absolute;
    bottom: -6px;
    right: 14px;
    font-size: 18px;
    opacity: 0.20;
    pointer-events: none;
    z-index: 2;
}

/* 苔藓边框（内发光） */
[data-theme="forest"] .post-card .moss-border {
    position: absolute;
    inset: 2px;
    border: 1px solid rgba(80, 150, 80, 0.04);
    border-radius: 18px 4px 18px 4px;
    pointer-events: none;
    z-index: 0;
}

/* 卡片悬停：光感增强 */
[data-theme="forest"] .post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(122, 208, 122, 0.15);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.30),
        inset 0 0 80px rgba(80, 150, 80, 0.04),
        inset 0 0 0 1px rgba(160, 210, 140, 0.10);
    background: rgba(35, 65, 35, 0.75);
}

/* --- 标题：光感绿色 --- */
[data-theme="forest"] .post-title {
    font-family: 'Quicksand', 'Georgia', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #e8f0e0;
    border-left: 5px solid #7acf7a;
    padding-left: 18px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.20);
    background: linear-gradient(95deg, rgba(40, 80, 40, 0.20), transparent 70%);
    border-radius: 0 16px 16px 0;
    padding: 6px 20px 6px 18px;
    display: inline-block;
    letter-spacing: 1px;
}
[data-theme="forest"] .post-title::after {
    display: none;
}

/* 标题右侧光斑 */
[data-theme="forest"] .post-title .sun-spot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220, 210, 160, 0.15), transparent 70%);
    margin-left: 8px;
    vertical-align: middle;
}

/* --- 链接：藤蔓色 --- */
[data-theme="forest"] a {
    color: #8ac88a;
    border-bottom: 1px solid rgba(80, 150, 80, 0.10);
    transition: all 0.3s ease;
}
[data-theme="forest"] a:hover {
    color: #b8e8a8;
    border-bottom-color: #7acf7a;
    text-shadow: 0 0 30px rgba(122, 208, 122, 0.05);
}

/* --- 元数据：苔藓色 --- */
[data-theme="forest"] .post-meta {
    color: #a8c8a0;
    font-size: 13px;
    border-top: 1px solid rgba(80, 150, 80, 0.08);
    padding-top: 12px;
    margin-bottom: 14px;
    letter-spacing: 1px;
}
[data-theme="forest"] .post-meta span::before {
    content: "✦ ";
    color: #7acf7a;
    font-size: 9px;
    opacity: 0.30;
}

/* --- 摘要：半透光 --- */
[data-theme="forest"] .post-excerpt {
    color: #d0e8c8;
    font-size: 15px;
    line-height: 2.0;
    border-left: 3px solid rgba(122, 208, 122, 0.08);
    padding-left: 18px;
    background: rgba(20, 50, 25, 0.15);
    padding: 12px 18px;
    border-radius: 12px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

/* 摘要首字母放大 */
[data-theme="forest"] .post-excerpt::first-letter {
    font-size: 1.4em;
    color: #7acf7a;
    opacity: 0.30;
    font-weight: bold;
    float: left;
    margin-right: 4px;
    line-height: 1;
}

/* --- 标签：苔藓胶囊 --- */
[data-theme="forest"] .tag-item {
    background: rgba(40, 80, 40, 0.25);
    border: 1px solid rgba(80, 150, 80, 0.08);
    color: #a8c8a0;
    border-radius: 30px;
    font-size: 11px;
    padding: 4px 18px;
    transition: all 0.3s ease;
}
[data-theme="forest"] .tag-item:hover {
    background: rgba(122, 208, 122, 0.08);
    border-color: #7acf7a;
    color: #e8f0e0;
    transform: translateY(-1px);
}

/* --- 分页器：木质按钮 --- */
[data-theme="forest"] .pagination .page-btn,
[data-theme="forest"] .pagination .page-num {
    background: rgba(40, 80, 40, 0.20);
    border: 1px solid rgba(80, 150, 80, 0.06);
    color: #a8c8a0;
    border-radius: 30px;
    padding: 6px 16px;
    transition: all 0.3s ease;
}
[data-theme="forest"] .pagination .page-btn:hover,
[data-theme="forest"] .pagination .page-num:hover {
    background: #7acf7a;
    color: #1a2e1a;
    border-color: #7acf7a;
    box-shadow: 0 0 30px rgba(122, 208, 122, 0.06);
}
[data-theme="forest"] .pagination .page-num.active {
    background: #7acf7a;
    color: #1a2e1a;
    border-color: #7acf7a;
    box-shadow: 0 0 40px rgba(122, 208, 122, 0.08);
}

/* --- 侧边栏：树皮纹理 --- */
[data-theme="forest"] .sidebar {
    background: rgba(26, 46, 26, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(80, 150, 80, 0.06);
    box-shadow: -4px 0 40px rgba(0, 0, 0, 0.20);
}
[data-theme="forest"] .sidebar-header {
    border-color: rgba(80, 150, 80, 0.06);
    background: rgba(40, 70, 40, 0.15);
}
[data-theme="forest"] .sidebar-header h3 {
    color: #e8f0e0;
    font-family: 'Quicksand', 'Georgia', sans-serif;
    letter-spacing: 6px;
    font-weight: 600;
}
[data-theme="forest"] .sidebar-header h3::before {
    content: "✦ ";
    color: #7acf7a;
    opacity: 0.20;
}

[data-theme="forest"] .menu-item {
    color: #a8c8a0;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    font-family: 'Quicksand', sans-serif;
    letter-spacing: 1px;
}
[data-theme="forest"] .menu-item:hover {
    background: rgba(122, 208, 122, 0.04);
    border-left-color: #7acf7a;
    color: #e8f0e0;
}

[data-theme="forest"] .theme-option {
    color: #7a9a7a;
    font-family: 'Quicksand', sans-serif;
}
[data-theme="forest"] .theme-option:hover {
    background: rgba(122, 208, 122, 0.04);
    color: #e8f0e0;
}
[data-theme="forest"] .theme-option.active {
    border-left-color: #7acf7a;
    color: #e8f0e0;
}

/* --- FAB：苔藓石 --- */
[data-theme="forest"] .fab {
    background: #2a5a2a;
    color: #d8f0c8;
    border-color: rgba(80, 150, 80, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}
[data-theme="forest"] .fab:hover {
    border-color: #7acf7a;
    box-shadow: 0 4px 30px rgba(122, 208, 122, 0.08);
    transform: translateY(-2px);
}

/* --- Markdown --- */
[data-theme="forest"] .markdown-body h2 {
    border-left: 5px solid #7acf7a !important;
    padding-left: 18px;
    color: #e8f0e0 !important;
    font-family: 'Quicksand', 'Georgia', sans-serif;
    letter-spacing: 2px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
}
[data-theme="forest"] .markdown-body h3::before {
    content: "✦ ";
    color: #7acf7a;
    opacity: 0.20;
}
[data-theme="forest"] .markdown-body h4::before {
    content: "◦ ";
    color: #7acf7a;
    opacity: 0.15;
}
[data-theme="forest"] .markdown-body blockquote {
    border-color: #7acf7a;
    background: rgba(20, 50, 25, 0.15);
    padding: 16px 24px;
    border-radius: 0 12px 12px 0;
    color: #c8e0c0;
}
[data-theme="forest"] .markdown-body code {
    background: rgba(20, 50, 25, 0.20);
    border-color: rgba(80, 150, 80, 0.06);
    color: #b8e8a8;
}
[data-theme="forest"] .markdown-body pre {
    background: rgba(20, 50, 25, 0.15);
    border-color: rgba(80, 150, 80, 0.06);
    border-radius: 12px;
}
[data-theme="forest"] .markdown-body hr {
    border: none;
    height: 2px;
    margin: 32px 0;
    background: linear-gradient(90deg, transparent, rgba(122, 208, 122, 0.08), transparent);
}
[data-theme="forest"] .markdown-body hr::after {
    content: "✦ ✦ ✦";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #1a2e1a;
    padding: 0 16px;
    font-size: 10px;
    color: #7acf7a;
    opacity: 0.10;
    letter-spacing: 8px;
}
[data-theme="forest"] .markdown-body table th {
    background: rgba(20, 50, 25, 0.20);
    color: #e8f0e0;
}
[data-theme="forest"] .markdown-body table td,
[data-theme="forest"] .markdown-body table th {
    border-color: rgba(80, 150, 80, 0.06);
}
[data-theme="forest"] .note {
    background: rgba(20, 50, 25, 0.15);
    border-color: #7acf7a;
}
[data-theme="forest"] .label {
    background: #7acf7a;
    color: #1a2e1a;
}
[data-theme="forest"] details {
    background: rgba(20, 50, 25, 0.15);
    border-color: rgba(80, 150, 80, 0.06);
}
[data-theme="forest"] summary {
    color: #e8f0e0;
    font-family: 'Quicksand', sans-serif;
}
[data-theme="forest"] summary::before {
    color: #7acf7a;
}
[data-theme="forest"] .quote {
    background: rgba(20, 50, 25, 0.15);
    border-color: #7acf7a;
    color: #c8e0c0;
}

/* --- Hero --- */
[data-theme="forest"] .hero-avatar {
    border-color: rgba(80, 150, 80, 0.15);
    background: rgba(20, 50, 25, 0.25);
    box-shadow: 0 0 40px rgba(122, 208, 122, 0.02);
}
[data-theme="forest"] .hero-avatar::before,
[data-theme="forest"] .hero-avatar::after {
    color: #7acf7a;
    opacity: 0.08;
}
[data-theme="forest"] .hero-text .name .title-royal {
    color: #7acf7a;
}
[data-theme="forest"] .hero-text .motto {
    border-color: #7acf7a;
}
[data-theme="forest"] .hero-text .bio {
    color: #a8c8a0;
}
[data-theme="forest"] .header-title {
    color: #e8f0e0 !important;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.10);
}
[data-theme="forest"] .site-main-title {
    color: #e8f0e0;
    text-shadow: 0 4px 40px rgba(122, 208, 122, 0.04);
}
[data-theme="forest"] .site-title-ornament {
    color: #7acf7a;
}
[data-theme="forest"] .site-title-divider {
    background: linear-gradient(90deg, transparent, #7acf7a, transparent);
}

/* --- 滚动条 --- */
[data-theme="forest"] ::-webkit-scrollbar-track {
    background: #1a2e1a;
}
[data-theme="forest"] ::-webkit-scrollbar-thumb {
    background: rgba(80, 150, 80, 0.15);
    border-radius: 4px;
}
[data-theme="forest"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(122, 208, 122, 0.20);
}

/* ===== 本纪入口卡片 · 森林自然风 ===== */
[data-theme="forest"] .bio-entry-card {
    background: rgba(25, 55, 30, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(80, 150, 80, 0.10);
    border-left: 6px solid #7acf7a;
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.15),
        inset 0 0 40px rgba(80, 150, 80, 0.02);
    border-radius: 16px 4px 16px 4px;
    transition: all 0.5s ease;
    overflow: hidden;
    position: relative;
}

/* 光斑装饰（左上角） */
[data-theme="forest"] .bio-entry-card::before {
    content: '🌿';
    position: absolute;
    top: 10px;
    right: 18px;
    font-size: 18px;
    opacity: 0.12;
    background: none !important;
    width: auto;
    height: auto;
    border-radius: 0;
    filter: drop-shadow(0 0 20px rgba(122, 208, 122, 0.02));
}

/* 移除原有的金色光晕 */
[data-theme="forest"] .bio-entry-card::after {
    display: none;
}

[data-theme="forest"] .bio-entry-card:hover {
    transform: translateY(-4px);
    border-color: rgba(122, 208, 122, 0.15);
    box-shadow: 
        0 8px 40px rgba(0, 0, 0, 0.20),
        inset 0 0 60px rgba(80, 150, 80, 0.04);
    background: rgba(30, 65, 35, 0.65);
}

[data-theme="forest"] .bio-entry-card .bio-entry-label {
    color: #7acf7a;
    font-size: 10px;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 600;
    text-shadow: 0 0 20px rgba(122, 208, 122, 0.02);
}

[data-theme="forest"] .bio-entry-card .bio-entry-title {
    color: #e8f0e0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    font-family: 'Quicksand', 'Georgia', sans-serif;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
}

[data-theme="forest"] .bio-entry-card .bio-entry-excerpt {
    color: #b8d8b0;
    opacity: 0.80;
    font-size: 14px;
    line-height: 1.8;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="forest"] .bio-entry-card .bio-entry-link {
    color: #8ac88a;
    border-bottom: 2px solid transparent;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: 0 0 20px rgba(122, 208, 122, 0.02);
}

[data-theme="forest"] .bio-entry-card:hover .bio-entry-link {
    border-bottom-color: #7acf7a;
    color: #b8e8a8;
    text-shadow: 0 0 30px rgba(122, 208, 122, 0.04);
}

[data-theme="forest"] .bio-entry-card .bio-entry-icon {
    font-size: 30px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.50;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.08));
}

/* ============================================================
   8.6 废土
   ============================================================ */

[data-theme="wasteland"] {
    background-color: #3d322a;
    background-image:
        repeating-linear-gradient(65deg,
            rgba(80, 68, 58, 0.15) 0px,
            rgba(80, 68, 58, 0.15) 1px,
            transparent 1px,
            transparent 4px,
            rgba(60, 50, 42, 0.10) 4px,
            rgba(60, 50, 42, 0.10) 5px,
            transparent 5px,
            transparent 10px
        ),
        repeating-linear-gradient(-35deg,
            rgba(80, 68, 58, 0.10) 0px,
            rgba(80, 68, 58, 0.10) 1px,
            transparent 1px,
            transparent 5px
        ),
        radial-gradient(ellipse at 50% 50%, rgba(180, 160, 140, 0.04) 0%, transparent 60%);
    background-size: 100% 100%, 100% 100%, 100% 100%;
}

/* --- 卡片：烧焦边框 + 卷边 + 铆钉 + 撕裂（纯 CSS） --- */
[data-theme="wasteland"] .post-card {
    background: rgba(35, 28, 22, 0.85);
    border: 3px solid #2a221a;
    border-left-width: 8px;
    border-left-color: #b85a2a;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25), inset 0 0 60px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: visible;
    border-radius: 0;
    transition: all 0.2s ease;
}

/* 烧焦边缘 */
[data-theme="wasteland"] .post-card::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(20, 16, 12, 0.08);
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(30, 24, 18, 0.08) 0%, transparent 10%, transparent 90%, rgba(30, 24, 18, 0.06) 100%),
        linear-gradient(0deg, rgba(30, 24, 18, 0.10) 0%, transparent 8%, transparent 92%, rgba(30, 24, 18, 0.06) 100%),
        radial-gradient(ellipse at 0% 0%, rgba(20, 16, 12, 0.15) 0%, transparent 35%),
        radial-gradient(ellipse at 100% 0%, rgba(20, 16, 12, 0.12) 0%, transparent 30%),
        radial-gradient(ellipse at 0% 100%, rgba(20, 16, 12, 0.13) 0%, transparent 32%),
        radial-gradient(ellipse at 100% 100%, rgba(20, 16, 12, 0.10) 0%, transparent 30%);
}

/* 四角卷边 */
[data-theme="wasteland"] .post-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 28px;
    height: 28px;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(135deg, rgba(60, 50, 42, 0.3) 0%, rgba(35, 28, 22, 0.9) 50%, transparent 50%);
    clip-path: polygon(0% 0%, 100% 0%, 0% 100%);
    border-left: 1px solid rgba(30, 24, 18, 0.1);
    border-top: 1px solid rgba(30, 24, 18, 0.1);
}

/* 右下卷边用 box-shadow 模拟 */
[data-theme="wasteland"] .post-card .corner-br {
    display: none;
}

/* 铆钉（四角）—— 用 box-shadow 模拟 */
[data-theme="wasteland"] .post-card .rivet {
    display: none;
}

/* 锈迹斑块 */
[data-theme="wasteland"] .post-card .rust {
    display: none;
}

/* 撕裂口 */
[data-theme="wasteland"] .post-card .tear {
    display: none;
}

/* 使用伪元素无法实现所有四角卷边和铆钉，简化为左上卷边+整体质感 */
[data-theme="wasteland"] .post-card:hover {
    animation: wasteland-shake 0.15s ease-in-out 3;
    border-color: #b85a2a;
    box-shadow: 0 8px 50px rgba(0, 0, 0, 0.3);
}
@keyframes wasteland-shake {
    0%,
    100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-1px, 1px) rotate(0.2deg);
    }
    75% {
        transform: translate(1px, -1px) rotate(-0.2deg);
    }
}

/* --- 标题 --- */
[data-theme="wasteland"] .post-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 22px;
    font-weight: 700;
    color: #ddd0c4;
    border-left: 5px solid #b85a2a;
    padding-left: 18px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.15);
}
[data-theme="wasteland"] .post-title::after {
    display: none;
}

/* --- 链接 --- */
[data-theme="wasteland"] a {
    color: #b8a080;
    border-bottom: 2px dotted rgba(184, 90, 42, 0.15);
}
[data-theme="wasteland"] a:hover {
    border-bottom-color: #b85a2a;
    color: #f0e6dc;
}

/* --- 元数据 --- */
[data-theme="wasteland"] .post-meta {
    color: #a09080;
    font-size: 12px;
    border-top: 2px solid #2a221a;
    padding-top: 10px;
    font-style: italic;
}
[data-theme="wasteland"] .post-meta span::before {
    content: "⚡";
    font-size: 9px;
    margin-right: 6px;
    opacity: 0.2;
    color: #b85a2a;
}

/* --- 摘要 --- */
[data-theme="wasteland"] .post-excerpt {
    color: #c8b8a8;
    font-size: 15px;
    line-height: 2.0;
    border-left: 3px solid rgba(184, 90, 42, 0.08);
    padding-left: 18px;
    font-style: italic;
}

/* --- 标签 --- */
[data-theme="wasteland"] .tag-item {
    background: rgba(35, 28, 22, 0.4);
    border: 1px solid rgba(90, 74, 58, 0.3);
    color: #a09080;
}
[data-theme="wasteland"] .tag-item:hover {
    background: #b85a2a;
    color: #3d322a;
    border-color: #b85a2a;
}

/* --- 分页器 --- */
[data-theme="wasteland"] .pagination .page-btn,
[data-theme="wasteland"] .pagination .page-num {
    background: rgba(35, 28, 22, 0.4);
    border: 1px solid rgba(90, 74, 58, 0.3);
    color: #ddd0c4;
}
[data-theme="wasteland"] .pagination .page-btn:hover,
[data-theme="wasteland"] .pagination .page-num:hover {
    background: #b85a2a;
    color: #3d322a;
    border-color: #b85a2a;
}
[data-theme="wasteland"] .pagination .page-num.active {
    background: #b85a2a;
    color: #3d322a;
    border-color: #b85a2a;
}

/* --- 侧边栏 --- */
[data-theme="wasteland"] .sidebar {
    background: rgba(26, 20, 16, 0.95);
    border-color: rgba(90, 74, 58, 0.2);
}
[data-theme="wasteland"] .sidebar-header {
    border-color: rgba(90, 74, 58, 0.2);
}
[data-theme="wasteland"] .sidebar-header h3 {
    color: #ddd0c4;
}
[data-theme="wasteland"] .menu-item {
    color: #a09080;
}
[data-theme="wasteland"] .menu-item:hover {
    background: rgba(184, 90, 42, 0.06);
    border-left-color: #b85a2a;
    color: #ddd0c4;
}
[data-theme="wasteland"] .theme-option {
    color: #8a7a6a;
}
[data-theme="wasteland"] .theme-option:hover {
    background: rgba(184, 90, 42, 0.06);
    color: #ddd0c4;
}
[data-theme="wasteland"] .theme-option.active {
    border-left-color: #b85a2a;
    color: #ddd0c4;
}

/* --- FAB --- */
[data-theme="wasteland"] .fab {
    background: #2a221a;
    color: #ddd0c4;
    border-color: rgba(90, 74, 58, 0.3);
}
[data-theme="wasteland"] .fab:hover {
    border-color: #b85a2a;
    box-shadow: 0 0 30px rgba(184, 90, 42, 0.1);
}

/* --- Markdown --- */
[data-theme="wasteland"] .markdown-body h2 {
    border-left: 5px solid #b85a2a !important;
}
[data-theme="wasteland"] .markdown-body h3::before,
[data-theme="wasteland"] .markdown-body h4::before {
    color: #b85a2a;
}
[data-theme="wasteland"] .markdown-body blockquote {
    border-color: #b85a2a;
    background: rgba(35, 28, 22, 0.3);
}
[data-theme="wasteland"] .markdown-body code {
    background: rgba(35, 28, 22, 0.4);
    border-color: rgba(90, 74, 58, 0.3);
    color: #b85a2a;
}
[data-theme="wasteland"] .markdown-body pre {
    background: rgba(35, 28, 22, 0.3);
    border-color: rgba(90, 74, 58, 0.2);
}
[data-theme="wasteland"] .markdown-body hr {
    border-top-color: rgba(90, 74, 58, 0.3);
}
[data-theme="wasteland"] .markdown-body table th {
    background: rgba(35, 28, 22, 0.4);
}
[data-theme="wasteland"] .markdown-body table td,
[data-theme="wasteland"] .markdown-body table th {
    border-color: rgba(90, 74, 58, 0.2);
}
[data-theme="wasteland"] .note {
    background: rgba(35, 28, 22, 0.3);
    border-color: #b85a2a;
}
[data-theme="wasteland"] .label {
    background: #b85a2a;
    color: #3d322a;
}
[data-theme="wasteland"] details {
    background: rgba(35, 28, 22, 0.3);
    border-color: rgba(90, 74, 58, 0.3);
}
[data-theme="wasteland"] summary {
    color: #ddd0c4;
}
[data-theme="wasteland"] summary::before {
    color: #b85a2a;
}
[data-theme="wasteland"] .quote {
    background: rgba(35, 28, 22, 0.3);
    border-color: #b85a2a;
    color: #a09080;
}

/* --- Hero --- */
[data-theme="wasteland"] .hero-avatar {
    border-color: #5a4a3a;
    background: rgba(35, 28, 22, 0.7);
}
[data-theme="wasteland"] .hero-avatar::before,
[data-theme="wasteland"] .hero-avatar::after {
    color: #b85a2a;
    opacity: 0.15;
}
[data-theme="wasteland"] .hero-text .name .title-royal {
    color: #b85a2a;
}
[data-theme="wasteland"] .hero-text .motto {
    border-color: #b85a2a;
}
[data-theme="wasteland"] .hero-text .bio {
    color: #a09080;
}
[data-theme="wasteland"] .header-title {
    color: #ddd0c4 !important;
}
[data-theme="wasteland"] .site-main-title {
    color: #ddd0c4;
    text-shadow: 0 0 30px rgba(184, 90, 42, 0.1);
}
[data-theme="wasteland"] .site-title-ornament {
    color: #b85a2a;
}
[data-theme="wasteland"] .site-title-divider {
    background: linear-gradient(90deg, transparent, #b85a2a, transparent);
}

/* --- 滚动条 --- */
[data-theme="wasteland"] ::-webkit-scrollbar-track {
    background: #3d322a;
}
[data-theme="wasteland"] ::-webkit-scrollbar-thumb {
    background: rgba(90, 74, 58, 0.4);
}
[data-theme="wasteland"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(184, 90, 42, 0.3);
}

/* ============================================================
   8.7 像素风雨 · 90年代台湾情歌（孟庭苇/齐秦/齐豫）
   ============================================================ */

   [data-theme="pixelfog"] {
    /* ---- 核心色彩：紫灰 + 雾粉 + 旧磁带色 ---- */
    --bg: #e8e0e6;
    --card-bg: rgba(248, 242, 248, 0.35);
    --text-primary: #3a2a3a;
    --text-secondary: #7a6a7a;
    --text-muted: #b0a8b0;
    --border: rgba(200, 185, 200, 0.12);
    --border-dark: rgba(200, 185, 200, 0.08);
    --accent: #a07a9a;
    --accent-gold: #c8b0c4;
    --accent-gold-glow: rgba(200, 185, 210, 0.10);
    --accent-rose: rgba(200, 185, 210, 0.04);
    --shadow: 0 4px 40px rgba(180, 165, 190, 0.04);
    --font-sans: 'Georgia', 'Palatino', serif;
    --font-serif: 'Georgia', 'Palatino', serif;
    --header-bg: rgba(232, 224, 230, 0.55);
    --sidebar-bg: rgba(232, 224, 230, 0.60);
    --fab-bg: rgba(200, 185, 200, 0.15);
    --fab-color: #7a6a7a;
    --link-color: #8a7a9a;
    --card-radius: 0px;

    background-color: #e8e0e6;
    background-image:
        /* 1. 紫色雾气（主氛围）—— 多层叠加，形成纵深 */
        radial-gradient(ellipse at 10% 20%, rgba(210, 180, 215, 0.25) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 30%, rgba(190, 170, 200, 0.18) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 55%, rgba(220, 200, 225, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 75%, rgba(200, 180, 210, 0.15) 0%, transparent 35%),
        radial-gradient(ellipse at 75% 80%, rgba(185, 165, 195, 0.12) 0%, transparent 40%),
        radial-gradient(ellipse at 45% 15%, rgba(215, 195, 220, 0.10) 0%, transparent 30%),
        /* 2. 淡粉色的暖光晕（像旧 CD 封面的泛黄） */
        radial-gradient(ellipse at 30% 40%, rgba(230, 200, 215, 0.08) 0%, transparent 35%),
        radial-gradient(ellipse at 70% 60%, rgba(240, 210, 220, 0.06) 0%, transparent 30%),
        /* 3. 极淡斜雨丝（像卡带上的纹理） */
        repeating-linear-gradient(55deg,
            rgba(255, 255, 255, 0.03) 0px,
            rgba(255, 255, 255, 0.03) 1px,
            transparent 1px,
            transparent 16px
        ),
        repeating-linear-gradient(-25deg,
            rgba(200, 195, 210, 0.02) 0px,
            rgba(200, 195, 210, 0.02) 1px,
            transparent 1px,
            transparent 22px
        ),
        /* 4. 极淡音符（用圆点模拟——比旧版更密集、更飘渺） */
        radial-gradient(circle at 8% 15%, rgba(160, 130, 160, 0.06) 2px, transparent 2.5px),
        radial-gradient(circle at 22% 28%, rgba(160, 130, 160, 0.04) 1.5px, transparent 2px),
        radial-gradient(circle at 35% 12%, rgba(160, 130, 160, 0.05) 2px, transparent 2.5px),
        radial-gradient(circle at 48% 35%, rgba(160, 130, 160, 0.03) 1.5px, transparent 2px),
        radial-gradient(circle at 62% 18%, rgba(160, 130, 160, 0.05) 2px, transparent 2.5px),
        radial-gradient(circle at 78% 42%, rgba(160, 130, 160, 0.04) 1.5px, transparent 2px),
        radial-gradient(circle at 92% 25%, rgba(160, 130, 160, 0.06) 2px, transparent 2.5px),
        radial-gradient(circle at 15% 55%, rgba(160, 130, 160, 0.04) 1.5px, transparent 2px),
        radial-gradient(circle at 42% 68%, rgba(160, 130, 160, 0.05) 2px, transparent 2.5px),
        radial-gradient(circle at 68% 78%, rgba(160, 130, 160, 0.03) 1.5px, transparent 2px),
        radial-gradient(circle at 85% 92%, rgba(160, 130, 160, 0.04) 2px, transparent 2.5px),
        radial-gradient(circle at 5% 88%, rgba(160, 130, 160, 0.05) 1.5px, transparent 2px),
        /* 5. 底部旧 CD 反光（微微的彩虹色） */
        radial-gradient(ellipse at 50% 100%, rgba(220, 200, 230, 0.06) 0%, transparent 30%);
    background-size:
        100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%,
        100% 100%, 100% 100%,
        17px 17px,
        23px 23px,
        100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%,
        100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%,
        100% 100%;
    color: var(--text-primary);
    font-family: 'Georgia', 'Palatino', 'Times New Roman', 'Noto Serif SC', serif;
}

/* --- 内容区柔焦（全局，但保留层次） --- */
[data-theme="pixelfog"] #content {
    filter: blur(0.15px) contrast(0.96) saturate(0.68) brightness(1.04);
}

/* --- 卡片：雾玻璃 + 深度感 + 光晕 --- */
[data-theme="pixelfog"] .post-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(200, 185, 210, 0.06);
    box-shadow: 
        0 2px 30px rgba(180, 165, 190, 0.03),
        inset 0 0 60px rgba(200, 185, 210, 0.02);
    position: relative;
    overflow: visible;
    border-radius: 0;
    transition: all 0.8s ease;
    margin-bottom: 24px;
}

/* 柔光内边框（让卡片有层次） */
[data-theme="pixelfog"] .post-card::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(200, 185, 210, 0.03);
    pointer-events: none;
    z-index: 0;
}

/* 卡片左上角：音符装饰（比旧版更淡、更飘） */
[data-theme="pixelfog"] .post-card::after {
    content: '♫';
    position: absolute;
    top: 10px;
    left: 16px;
    font-size: 22px;
    color: #c8b0c4;
    opacity: 0.06;
    pointer-events: none;
    z-index: 1;
    font-family: 'Georgia', serif;
    text-shadow: 0 0 20px rgba(200, 185, 210, 0.02);
}

/* 卡片右下角：歌词小字（用额外伪元素无法实现，用额外的 span 或 box-shadow） */
/* 这里用 box-shadow 模拟歌词小字——更轻量 */
[data-theme="pixelfog"] .post-card .lyric-line {
    display: none;
}

/* 卡片右上角：极淡的光晕（像舞台追光） */
[data-theme="pixelfog"] .post-card .spotlight {
    display: none;
}

/* 卡片悬停：雾散开一点，光感增强 */
[data-theme="pixelfog"] .post-card:hover {
    filter: blur(0px) contrast(1.02);
    background: rgba(248, 242, 248, 0.45);
    border-color: rgba(200, 185, 210, 0.08);
    box-shadow: 
        0 4px 40px rgba(180, 165, 190, 0.06),
        inset 0 0 80px rgba(200, 185, 210, 0.03);
    transform: translateY(-2px);
}

/* --- 标题：手写感 + 引号 + 紫色调 --- */
[data-theme="pixelfog"] .post-title {
    font-family: 'Georgia', 'Palatino', 'Times New Roman', serif;
    font-size: 22px;
    font-weight: normal;
    font-style: italic;
    color: #3a2a3a;
    letter-spacing: 6px;
    border-left: none;
    padding-left: 0;
    filter: blur(0.1px);
    opacity: 0.92;
    margin-bottom: 6px;
    text-shadow: 0 0 40px rgba(160, 140, 180, 0.03);
}

/* 标题引号装饰——更优雅 */
[data-theme="pixelfog"] .post-title::before {
    content: "「";
    color: #c8b0c4;
    font-size: 0.65em;
    opacity: 0.15;
    margin-right: 4px;
    font-style: normal;
    font-weight: 300;
}
[data-theme="pixelfog"] .post-title::after {
    content: "」";
    color: #c8b0c4;
    font-size: 0.65em;
    opacity: 0.15;
    margin-left: 4px;
    font-style: normal;
    font-weight: 300;
}

/* 标题下装饰线（像旧 CD 歌词本上的分割线） */
[data-theme="pixelfog"] .post-title .title-line {
    display: block;
    width: 40px;
    height: 1px;
    margin-top: 8px;
    background: linear-gradient(90deg, rgba(200, 185, 210, 0.12), transparent);
}

/* --- 链接：温柔紫色 --- */
[data-theme="pixelfog"] a {
    color: #8a7a9a;
    border-bottom: 1px solid rgba(180, 165, 190, 0.10);
    transition: all 0.5s ease;
}
[data-theme="pixelfog"] a:hover {
    border-bottom-color: rgba(160, 140, 180, 0.20);
    color: #5a4a5a;
    text-shadow: 0 0 30px rgba(160, 140, 180, 0.04);
}

/* --- 元数据：淡紫色 --- */
[data-theme="pixelfog"] .post-meta {
    color: #7a6a7a;
    font-size: 12px;
    border-top: 1px solid rgba(200, 185, 210, 0.04);
    padding-top: 10px;
    font-style: italic;
    filter: blur(0.1px);
    letter-spacing: 1px;
}
[data-theme="pixelfog"] .post-meta span::before {
    content: "◌ ";
    color: rgba(200, 185, 210, 0.06);
    font-size: 8px;
}

/* 日期像歌词本上的脚注 */
[data-theme="pixelfog"] .post-meta .meta-date {
    font-style: normal;
    font-size: 11px;
    color: #b0a8b0;
}

/* --- 摘要：浅紫色底，像旧信纸 --- */
[data-theme="pixelfog"] .post-excerpt {
    color: #4a3a4a;
    font-size: 14px;
    line-height: 2.2;
    border-left: 2px solid rgba(200, 185, 210, 0.04);
    padding-left: 18px;
    opacity: 0.75;
    filter: blur(0.1px);
    font-style: italic;
    background: rgba(248, 242, 248, 0.06);
    padding: 10px 18px;
    border-radius: 4px;
}

/* 摘要首字母放大（旧式排版） */
[data-theme="pixelfog"] .post-excerpt::first-letter {
    font-size: 1.5em;
    color: #a07a9a;
    opacity: 0.20;
    font-weight: bold;
    float: left;
    margin-right: 4px;
    line-height: 1;
}

/* --- 标签：柔光胶囊 --- */
[data-theme="pixelfog"] .tag-item {
    background: rgba(248, 242, 248, 0.06);
    border: 1px solid rgba(200, 185, 210, 0.04);
    color: #8a7a8a;
    border-radius: 30px;
    font-style: italic;
    font-size: 11px;
    padding: 4px 18px;
    transition: all 0.5s ease;
}
[data-theme="pixelfog"] .tag-item:hover {
    border-color: rgba(200, 185, 210, 0.08);
    color: #4a3a4a;
    background: rgba(248, 242, 248, 0.08);
    transform: translateY(-1px);
}

/* --- 分页器：雾中音符 --- */
[data-theme="pixelfog"] .pagination .page-btn,
[data-theme="pixelfog"] .pagination .page-num {
    background: rgba(248, 242, 248, 0.04);
    border: 1px solid rgba(200, 185, 210, 0.04);
    color: #8a7a8a;
    border-radius: 30px;
    font-style: italic;
    transition: all 0.5s ease;
    padding: 6px 16px;
}
[data-theme="pixelfog"] .pagination .page-btn:hover,
[data-theme="pixelfog"] .pagination .page-num:hover {
    border-color: rgba(200, 185, 210, 0.08);
    color: #4a3a4a;
    background: rgba(248, 242, 248, 0.06);
}
[data-theme="pixelfog"] .pagination .page-num.active {
    background: rgba(200, 185, 210, 0.04);
    color: #4a3a4a;
    border-color: rgba(200, 185, 210, 0.06);
}

/* --- 侧边栏：雾玻璃 --- */
[data-theme="pixelfog"] .sidebar {
    background: rgba(232, 224, 230, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(200, 185, 210, 0.06);
}
[data-theme="pixelfog"] .sidebar-header {
    border-color: rgba(200, 185, 210, 0.06);
}
[data-theme="pixelfog"] .sidebar-header h3 {
    color: #3a2a3a;
    font-family: 'Georgia', serif;
    letter-spacing: 8px;
    font-style: italic;
    font-weight: normal;
}
[data-theme="pixelfog"] .sidebar-header h3::before {
    content: "◌ ";
    color: rgba(200, 185, 210, 0.10);
}

[data-theme="pixelfog"] .menu-item {
    color: #7a6a7a;
    font-style: italic;
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
    border-left: 3px solid transparent;
    transition: all 0.4s ease;
}
[data-theme="pixelfog"] .menu-item:hover {
    background: rgba(200, 185, 210, 0.03);
    border-left-color: #c8b0c4;
    color: #3a2a3a;
}
[data-theme="pixelfog"] .theme-option {
    color: #8a7a8a;
    font-style: italic;
    font-family: 'Georgia', serif;
}
[data-theme="pixelfog"] .theme-option:hover {
    background: rgba(200, 185, 210, 0.03);
    color: #3a2a3a;
}
[data-theme="pixelfog"] .theme-option.active {
    border-left-color: #c8b0c4;
    color: #3a2a3a;
}

/* --- FAB：雾中光点 --- */
[data-theme="pixelfog"] .fab {
    background: rgba(200, 185, 200, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #7a6a7a;
    border-color: rgba(200, 185, 210, 0.06);
    transition: all 0.5s ease;
}
[data-theme="pixelfog"] .fab:hover {
    border-color: rgba(200, 185, 210, 0.12);
    background: rgba(200, 185, 200, 0.18);
    box-shadow: 0 0 40px rgba(200, 185, 210, 0.04);
    transform: translateY(-2px);
}

/* --- Markdown 正文 --- */
[data-theme="pixelfog"] .markdown-body {
    background: transparent !important;
    color: var(--text-primary);
    font-family: 'Georgia', 'Palatino', serif;
    font-size: 15px;
    line-height: 2.2;
    filter: blur(0.1px);
}

[data-theme="pixelfog"] .markdown-body h2 {
    border-left: none !important;
    padding-left: 0;
    font-family: 'Georgia', serif;
    color: #3a2a3a !important;
    letter-spacing: 6px;
    font-weight: normal;
    font-style: italic;
    border-bottom: 1px solid rgba(200, 185, 210, 0.04);
    padding-bottom: 8px;
    text-shadow: 0 0 30px rgba(160, 140, 180, 0.02);
}
[data-theme="pixelfog"] .markdown-body h2::before {
    content: "◌ ";
    color: rgba(200, 185, 210, 0.06);
}
[data-theme="pixelfog"] .markdown-body h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    margin-top: 6px;
    background: linear-gradient(90deg, rgba(200, 185, 210, 0.10), transparent);
}

[data-theme="pixelfog"] .markdown-body h3::before {
    content: "◦ ";
    color: rgba(200, 185, 210, 0.04);
}
[data-theme="pixelfog"] .markdown-body h4::before {
    content: "· ";
    color: rgba(200, 185, 210, 0.03);
}

[data-theme="pixelfog"] .markdown-body blockquote {
    border-left: 4px solid rgba(200, 185, 210, 0.06);
    background: rgba(248, 242, 248, 0.04);
    padding: 16px 24px;
    font-style: italic;
    border-radius: 0 4px 4px 0;
    color: #5a4a5a;
}
[data-theme="pixelfog"] .markdown-body blockquote::before {
    content: '"';
    position: relative;
    font-size: 28px;
    color: #c8b0c4;
    opacity: 0.04;
    font-family: Georgia, serif;
    display: block;
    margin-bottom: -10px;
}

[data-theme="pixelfog"] .markdown-body code {
    background: rgba(248, 242, 248, 0.06);
    color: #8a7a9a;
    border: 1px solid rgba(200, 185, 210, 0.02);
    border-radius: 4px;
    font-size: 13px;
    padding: 2px 10px;
}
[data-theme="pixelfog"] .markdown-body pre {
    background: rgba(248, 242, 248, 0.04);
    border: 1px solid rgba(200, 185, 210, 0.02);
    border-radius: 4px;
    padding: 16px;
}

[data-theme="pixelfog"] .markdown-body hr {
    border: none;
    height: 1px;
    margin: 32px 0;
    background: linear-gradient(90deg, transparent, rgba(200, 185, 210, 0.06), transparent);
    position: relative;
}
[data-theme="pixelfog"] .markdown-body hr::after {
    content: "◌ ◌ ◌";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #e8e0e6;
    padding: 0 16px;
    font-size: 8px;
    color: rgba(200, 185, 210, 0.08);
    letter-spacing: 10px;
}

[data-theme="pixelfog"] .markdown-body table th {
    background: rgba(248, 242, 248, 0.06);
}
[data-theme="pixelfog"] .markdown-body table td,
[data-theme="pixelfog"] .markdown-body table th {
    border-color: rgba(200, 185, 210, 0.04);
}

/* --- 短代码 --- */
[data-theme="pixelfog"] .note {
    background: rgba(248, 242, 248, 0.04);
    border-color: #c8b0c4;
}
[data-theme="pixelfog"] .label {
    background: #c8b0c4;
    color: #3a2a3a;
}
[data-theme="pixelfog"] details {
    background: rgba(248, 242, 248, 0.04);
    border-color: rgba(200, 185, 210, 0.04);
}
[data-theme="pixelfog"] summary {
    color: #3a2a3a;
    font-style: italic;
    font-family: 'Georgia', serif;
}
[data-theme="pixelfog"] summary::before {
    color: #c8b0c4;
}
[data-theme="pixelfog"] .quote {
    background: rgba(248, 242, 248, 0.04);
    border-color: #c8b0c4;
    color: #7a6a7a;
}

/* --- Hero --- */
[data-theme="pixelfog"] .hero-avatar {
    border-color: rgba(200, 185, 210, 0.12);
    background: rgba(248, 242, 248, 0.12);
}
[data-theme="pixelfog"] .hero-avatar::before,
[data-theme="pixelfog"] .hero-avatar::after {
    color: #c8b0c4;
    opacity: 0.06;
}
[data-theme="pixelfog"] .hero-text .name .title-royal {
    color: #c8b0c4;
}
[data-theme="pixelfog"] .hero-text .motto {
    border-color: #c8b0c4;
}
[data-theme="pixelfog"] .hero-text .bio {
    color: #7a6a7a;
}
[data-theme="pixelfog"] .header-title {
    color: #5a4a5a !important;
    letter-spacing: 12px;
    font-style: italic;
    filter: blur(0.1px);
}
[data-theme="pixelfog"] .site-main-title {
    color: #3a2a3a;
    text-shadow: 0 0 40px rgba(200, 185, 210, 0.04);
}
[data-theme="pixelfog"] .site-title-ornament {
    color: #c8b0c4;
}
[data-theme="pixelfog"] .site-title-divider {
    background: linear-gradient(90deg, transparent, #c8b0c4, transparent);
}

/* --- 滚动条 --- */
[data-theme="pixelfog"] ::-webkit-scrollbar-track {
    background: #e8e0e6;
}
[data-theme="pixelfog"] ::-webkit-scrollbar-thumb {
    background: rgba(200, 185, 210, 0.15);
    border-radius: 4px;
}
[data-theme="pixelfog"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 185, 210, 0.25);
}

/* ===== 本纪入口卡片 · 像素风雨 ===== */
[data-theme="pixelfog"] .bio-entry-card {
    background: rgba(248, 242, 248, 0.08);
    border: 2px solid rgba(200, 185, 210, 0.06);
    border-left: 6px solid #c8b0c4;
    box-shadow: 0 4px 30px rgba(180, 165, 190, 0.02);
    border-radius: 0;
    transition: all 0.8s ease;
    filter: blur(0.1px);
}
[data-theme="pixelfog"] .bio-entry-card::before {
    content: '♫';
    position: absolute;
    top: 10px;
    right: 18px;
    font-size: 20px;
    color: #c8b0c4;
    opacity: 0.06;
    background: none !important;
    width: auto;
    height: auto;
    border-radius: 0;
}
[data-theme="pixelfog"] .bio-entry-card::after {
    display: none;
}
[data-theme="pixelfog"] .bio-entry-card:hover {
    transform: translateY(-3px);
    border-color: rgba(200, 185, 210, 0.12);
    box-shadow: 0 8px 40px rgba(180, 165, 190, 0.06);
    background: rgba(248, 242, 248, 0.15);
    filter: blur(0px);
}
[data-theme="pixelfog"] .bio-entry-card .bio-entry-label {
    color: #c8b0c4;
    font-size: 10px;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-style: italic;
}
[data-theme="pixelfog"] .bio-entry-card .bio-entry-title {
    color: #3a2a3a;
    font-size: 20px;
    font-weight: normal;
    letter-spacing: 4px;
    font-family: 'Georgia', serif;
    font-style: italic;
}
[data-theme="pixelfog"] .bio-entry-card .bio-entry-excerpt {
    color: #7a6a7a;
    opacity: 0.8;
    font-size: 14px;
    line-height: 1.8;
    font-style: italic;
}
[data-theme="pixelfog"] .bio-entry-card .bio-entry-link {
    color: #8a7a9a;
    border-bottom: 2px solid transparent;
    font-style: italic;
    transition: all 0.5s ease;
}
[data-theme="pixelfog"] .bio-entry-card:hover .bio-entry-link {
    border-bottom-color: #c8b0c4;
    color: #5a4a5a;
}
[data-theme="pixelfog"] .bio-entry-card .bio-entry-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.4;
    filter: blur(0.2px);
}

/* ============================================================
   9. 模拟恐怖（彩蛋）
   ============================================================ */

body.theme-analoghorror {
    --bg: #050508;
    --card-bg: #0a0a12;
    --text-primary: #b0b8c0;
    --text-secondary: #7a8088;
    --text-muted: #4a5058;
    --border: #ff0033;
    --border-dark: #ff0033;
    --accent: #ff0033;
    --accent-gold: #ff0033;
    --accent-gold-glow: rgba(255, 0, 51, 0.2);
    --accent-rose: rgba(255, 0, 51, 0.04);
    --shadow: 0 0 30px rgba(255, 0, 51, 0.05);
    --font-sans: 'Courier New', 'Consolas', monospace;
    --font-serif: 'Courier New', 'Consolas', monospace;
    --header-bg: #050508;
    --sidebar-bg: #050508;
    --fab-bg: #050508;
    --fab-color: #ff0033;
    --link-color: #ff2244;
    background-color: #050508;
    color: #b0b8c0;
}

body.theme-analoghorror #app {
    border: 6px solid #1a1a1a;
    padding: 12px;
    background: #000;
    position: relative;
}

body.theme-analoghorror::before {
    content: '';
    position: fixed;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4IiBoZWlnaHQ9IjgiPjxyZWN0IHdpZHRoPSI4IiBoZWlnaHQ9IjgiIGZpbGw9IiMwMDAiLz48cGF0aCBkPSJNMCAwaDh2OEgweiIgZmlsbD0ibm9uZSIvPjxwYXRoIGQ9Ik0wIDBoMXYxSDB6TTIgMGgxdjFIMnpNNCAwaDF2MUg0ek02IDBoMXYxSDZ6TTAgMmgxdjFIMHpNMiAyaDF2MUgyek00IDJoMXYxSDR6TTYgMmgxdjFINnpNMCA0aDF2MUgwek0yIDRoMXYxSDJ6TTQgNGgxdjFINEpNNiA0aDF2MUg2ek0wIDZoMXYxSDB6TTIgNmgxdjFIMnpNNCA2aDF2MUg0ek02IDZoMXYxSDZ6IiBmaWxsPSIjZmZmIiBvcGFjaXR5PSIwLjA2Ii8+PC9zdmc+');
    background-repeat: repeat;
    background-size: 8px 8px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 9998;
    animation: analog-noise 0.15s steps(4) infinite;
}

@keyframes analog-noise {
    0% {
        transform: translate(0, 0);
    }
    20% {
        transform: translate(-2px, 1px);
    }
    40% {
        transform: translate(2px, -1px);
    }
    60% {
        transform: translate(-1px, 2px);
    }
    80% {
        transform: translate(1px, -2px);
    }
    100% {
        transform: translate(0, 0);
    }
}

body.theme-analoghorror::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0) 0px,
            rgba(0, 0, 0, 0) 2px,
            rgba(0, 0, 0, 0.25) 2px,
            rgba(0, 0, 0, 0.25) 4px);
    pointer-events: none;
    z-index: 9999;
}

body.theme-analoghorror #header {
    border-bottom-color: #ff0033;
    background: #050508;
}

body.theme-analoghorror .header-title {
    color: #ff0033 !important;
    text-shadow: 0 0 20px #ff0033;
}

body.theme-analoghorror .doc-list li:hover {
    background: rgba(255, 0, 51, 0.06);
}

body.theme-analoghorror .doc-list .doc-id {
    color: #ff0033;
}

body.theme-analoghorror .pagination .page-btn:hover,
body.theme-analoghorror .pagination .page-num:hover {
    background-color: #ff0033;
    color: #000;
}

body.theme-analoghorror .pagination .page-num.active {
    background-color: #ff0033;
    color: #000;
}

body.theme-analoghorror .fab {
    border-color: #ff0033;
    color: #ff0033;
}

body.theme-analoghorror .fab:hover {
    border-color: #ff4477;
    box-shadow: 0 0 30px rgba(255, 0, 51, 0.2);
}

body.theme-analoghorror .sidebar {
    background: #050508;
    border-color: #ff0033;
}

body.theme-analoghorror .menu-item:hover {
    border-left-color: #ff0033;
    background: rgba(255, 0, 51, 0.04);
}

body.theme-analoghorror .theme-option.active {
    border-left-color: #ff0033;
}

body.theme-analoghorror .hero-avatar::before,
body.theme-analoghorror .hero-avatar::after {
    color: #ff0033;
    opacity: 0.3;
}

/* ============================================================
   10. 西萨纬通道 & 秘密空间
   ============================================================ */

#veil {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #030303;
    z-index: 99999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1.2s ease, transform 1.2s ease;
    padding: 30px 20px;
}

#veil.active {
    display: flex;
}

#veil.hidden {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

#veil .singularity {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, #000 30%, #8b0000 80%, #000 100%);
    box-shadow: 0 0 50px #8b0000, inset 0 0 20px #000;
    margin-bottom: 30px;
    animation: veilPulse 2s infinite alternate, veilRotate 10s linear infinite;
    flex-shrink: 0;
}

@keyframes veilPulse {
    0% {
        box-shadow: 0 0 20px #8b0000;
        transform: scale(0.95);
    }
    100% {
        box-shadow: 0 0 80px #ff003c;
        transform: scale(1.05);
    }
}

@keyframes veilRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#veil .veil-text {
    color: #555;
    font-size: 14px;
    line-height: 1.9;
    max-width: 700px;
    padding: 0 10px;
    text-align: left;
    font-family: 'Courier New', 'Consolas', monospace;
    width: 100%;
    overflow-y: auto;
    max-height: 50vh;
}

#veil .veil-text .highlight {
    color: #8b0000;
    font-weight: bold;
}

#veil .veil-text .glitch-line {
    color: #ff003c;
    font-size: 16px;
    margin-top: 12px;
    display: block;
}

#veil .assimilate-btn {
    margin-top: 30px;
    background: transparent;
    border: 1px solid #555;
    color: #555;
    padding: 14px 45px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.6s ease;
    letter-spacing: 2px;
    flex-shrink: 0;
    border-radius: 2px;
}

#veil .assimilate-btn:hover {
    background: #8b0000;
    color: #fff;
    border-color: #ff003c;
    box-shadow: 0 0 30px rgba(255, 0, 60, 0.3);
    letter-spacing: 6px;
}

/* ===== 秘密空间 ===== */
#secret-room {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #200508 0%, #000 100%);
    z-index: 99998;
    display: none;
    overflow-y: auto;
    padding: 30px 16px 60px;
    font-family: 'Palatino', 'Georgia', serif;
    color: #fff;
}

#secret-room.visible {
    display: block;
    animation: roomReveal 1.2s ease forwards;
}

@keyframes roomReveal {
    0% {
        opacity: 0;
        transform: scale(0.95);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

#secret-room .room-header {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(229, 193, 0, 0.2);
    margin-bottom: 30px;
}

#secret-room .room-header h1 {
    font-family: 'Palatino', 'Georgia', serif;
    letter-spacing: 6px;
    color: #e5c100;
    text-shadow: 0 0 30px rgba(94, 11, 19, 0.5);
    font-size: 26px;
    font-weight: normal;
}

#secret-room .room-header p {
    color: #777;
    font-style: italic;
    font-size: 13px;
    margin-top: 6px;
}

#secret-room .note-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
    max-width: 1000px;
    margin: 0 auto;
}

#secret-room .note-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(229, 193, 0, 0.1);
    padding: 18px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: default;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#secret-room .note-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(229, 193, 0, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

#secret-room .note-card .note-text {
    font-size: 14px;
    line-height: 1.7;
    color: #e8e0d8;
    font-family: 'Georgia', serif;
}

#secret-room .note-card .note-date {
    display: block;
    margin-top: 12px;
    font-size: 10px;
    font-family: 'Courier New', monospace;
    color: #4a3a2a;
    border-top: 1px dashed rgba(229, 193, 0, 0.06);
    padding-top: 8px;
    text-align: right;
    letter-spacing: 0.5px;
}

#secret-room .note-card.warm {
    border-left: 3px solid #8b5a3a;
}
#secret-room .note-card.cool {
    border-left: 3px solid #3a6a8b;
}
#secret-room .note-card.blood {
    border-left: 3px solid #8b0a1a;
}
#secret-room .note-card.gold {
    border-left: 3px solid #c8a030;
}
#secret-room .note-card.ghost {
    border-left: 3px solid #444;
    opacity: 0.6;
}

#secret-room .back-link {
    display: block;
    text-align: center;
    margin-top: 40px;
    color: #4a3a2a;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.3s;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

#secret-room .back-link:hover {
    color: #e5c100;
}

#secret-room::-webkit-scrollbar {
    width: 4px;
}
#secret-room::-webkit-scrollbar-track {
    background: transparent;
}
#secret-room::-webkit-scrollbar-thumb {
    background: #3a2a1a;
    border-radius: 4px;
}

/* ============================================================
   11. 响应式
   ============================================================ */

@media (max-width: 700px) {
    body {
        padding: 0 12px 40px 12px;
        font-size: 15px;
    }

    #header {
        padding: 10px 0 8px 0;
        gap: 6px;
    }

    .header-title {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .menu-toggle,
    .theme-toggle-btn {
        font-size: 14px;
        padding: 3px 10px;
    }

    .hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .hero-text .motto {
        border-left: none;
        border-top: 2px solid var(--accent-gold);
        padding-left: 0;
        padding-top: 12px;
    }

    .hero-avatar {
        width: 80px;
        height: 96px;
    }

    .hero-avatar .avatar-inner {
        width: 48px;
    }

    .hero-text .name {
        font-size: 22px;
        letter-spacing: 4px;
    }

    .hero-text .name .title-royal {
        font-size: 13px;
    }

    .hero-text .motto {
        font-size: 15px;
    }

    .doc-list li {
        flex-wrap: wrap;
        gap: 6px;
    }

    .doc-list .doc-tag {
        margin-left: 0;
    }

    .doc-list .doc-id {
        min-width: 60px;
        font-size: 11px;
    }

    .doc-list .doc-title {
        font-size: 14px;
    }

    .fab-container {
        bottom: 16px;
        right: 16px;
        gap: 8px;
    }

    .fab {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .sidebar {
        width: 260px;
    }

    .pagination .page-btn,
    .pagination .page-num {
        padding: 3px 10px;
        font-size: 12px;
    }

    .post-detail-header h1 {
        font-size: 20px;
        letter-spacing: 2px;
    }

    #veil .singularity {
        width: 80px;
        height: 80px;
    }

    #veil .veil-text {
        font-size: 12px;
        max-height: 45vh;
    }

    #secret-room .note-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    #secret-room .room-header h1 {
        font-size: 20px;
        letter-spacing: 3px;
    }

    #secret-room .note-card {
        padding: 14px 16px;
        min-height: 60px;
    }

    #secret-room .note-card .note-text {
        font-size: 13px;
    }

    .site-main-title {
        font-size: 30px;
        letter-spacing: 10px;
    }

    .site-sub-title {
        font-size: 11px;
        letter-spacing: 5px;
    }

    .site-title-ornament {
        font-size: 11px;
        letter-spacing: 8px;
    }

    .site-title-header {
        padding: 18px 0 12px 0;
    }
}

@media (max-width: 430px) {
    body {
        padding: 0 10px 30px 10px;
        font-size: 14px;
    }

    #header {
        padding: 8px 0 6px 0;
    }

    .header-title {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .menu-toggle,
    .theme-toggle-btn {
        font-size: 12px;
        padding: 2px 8px;
    }

    .hero-text .name {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .hero-text .name .title-royal {
        font-size: 11px;
    }

    .hero-text .motto {
        font-size: 13px;
        padding-top: 8px;
    }

    .hero-text .bio {
        font-size: 13px;
    }

    .section-label {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .doc-list .doc-id {
        min-width: 50px;
        font-size: 10px;
    }

    .doc-list .doc-title {
        font-size: 13px;
    }

    .doc-list .doc-tag {
        font-size: 9px;
        padding: 0 6px;
    }

    .pagination .page-btn,
    .pagination .page-num {
        padding: 2px 8px;
        font-size: 11px;
    }

    .post-detail-header h1 {
        font-size: 17px;
        letter-spacing: 1px;
    }

    .fab {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .fab-container {
        bottom: 12px;
        right: 12px;
        gap: 6px;
    }

    .sidebar {
        width: 220px;
    }

    .menu-item {
        font-size: 12px;
        padding: 8px 12px;
    }

    .theme-option {
        font-size: 11px;
        padding: 8px 12px;
    }

    #secret-room .note-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    #secret-room .room-header h1 {
        font-size: 17px;
        letter-spacing: 2px;
    }

    #secret-room .room-header p {
        font-size: 11px;
    }

    #secret-room .note-card {
        padding: 12px 14px;
        min-height: 50px;
    }

    #secret-room .note-card .note-text {
        font-size: 12px;
    }

    #veil .singularity {
        width: 60px;
        height: 60px;
    }

    #veil .veil-text {
        font-size: 11px;
        max-height: 40vh;
    }

    #veil .assimilate-btn {
        padding: 10px 24px;
        font-size: 12px;
    }

    .site-main-title {
        font-size: 22px;
        letter-spacing: 6px;
    }

    .site-sub-title {
        font-size: 10px;
        letter-spacing: 3px;
    }

    .site-title-ornament {
        font-size: 9px;
        letter-spacing: 5px;
    }

    .site-title-divider {
        width: 50px;
    }
}

/* ============================================================
   族谱页样式（保持原有）
   ============================================================ */

.family-header {
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.family-header .back-link {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 12px;
    transition: color 0.3s;
    letter-spacing: 1px;
}

.family-header .back-link:hover {
    color: var(--accent-gold);
}

.family-header h1 {
    font-family: var(--font-serif);
    font-size: 26px;
    letter-spacing: 6px;
    color: var(--text-primary);
}

.family-tree-body {
    padding: 8px 0 20px 0;
}

.generation-block {
    margin-bottom: 28px;
    padding-left: 8px;
    border-left: 2px solid var(--accent-gold);
    opacity: 0.8;
}

.generation-label {
    font-family: var(--font-sans);
    font-size: 13px;
    letter-spacing: 4px;
    color: var(--accent-gold);
    margin-bottom: 12px;
    padding-bottom: 4px;
    border-bottom: 1px dashed var(--border);
}

.person-node {
    padding: 6px 0 6px 16px;
    font-family: var(--font-serif);
    font-size: 15px;
    color: var(--text-primary);
    border-left: 2px solid transparent;
    transition: all 0.2s;
}

.person-node:hover {
    border-left-color: var(--accent-gold);
    background: var(--accent-rose);
}

.person-node.center-person {
    border-left-color: var(--accent-gold);
    background: var(--accent-rose);
    padding-left: 20px;
}

.person-node.center-person .person-name {
    color: var(--accent);
    font-weight: bold;
}

.person-name {
    font-weight: 500;
}

.person-lifespan {
    color: var(--text-secondary);
    font-size: 13px;
    margin-left: 6px;
}

.person-title {
    color: var(--accent-gold);
    font-size: 13px;
    margin-left: 8px;
    letter-spacing: 1px;
}

.person-detail {
    padding: 3px 0 3px 36px;
    font-size: 13px;
    color: var(--text-secondary);
    font-family: var(--font-serif);
    border-left: 1px dotted var(--border);
    margin-left: 8px;
}

.person-detail.spouse {
    color: var(--accent-gold);
    opacity: 0.7;
}

.person-detail.children {
    color: var(--text-secondary);
}

.person-detail.note {
    color: var(--text-muted);
    font-style: italic;
    font-size: 12px;
}

.family-description {
    padding: 6px 0 6px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    font-style: italic;
    opacity: 0.6;
}

.family-footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    letter-spacing: 1px;
    opacity: 0.5;
}

.family-footer .star {
    color: var(--accent-gold);
    opacity: 0.3;
}

/* ============================================================
   各主题 · 本纪入口卡片适配
   ============================================================ */

[data-theme="dos"] .bio-entry-card {
    border-color: #3bc43b;
    border-left-color: #3bc43b;
}
[data-theme="dos"] .bio-entry-card .bio-entry-label {
    color: #3bc43b;
}
[data-theme="dos"] .bio-entry-card .bio-entry-link {
    color: #3bc43b;
}
[data-theme="dos"] .bio-entry-card:hover .bio-entry-link {
    border-bottom-color: #3bc43b;
    color: #6f9e6f;
}
[data-theme="dos"] .bio-entry-card::before {
    background: radial-gradient(ellipse at 100% 0%, #3bc43b, transparent 70%);
}

[data-theme="ink"] .bio-entry-card {
    border-color: #000;
    border-left-color: #000;
    background: #f5f5f5;
}
[data-theme="ink"] .bio-entry-card .bio-entry-label {
    color: #000;
}
[data-theme="ink"] .bio-entry-card .bio-entry-link {
    color: #000;
}
[data-theme="ink"] .bio-entry-card::before {
    display: none;
}

[data-theme="spacetech"] .bio-entry-card {
    border-color: #4fc3ff;
    border-left-color: #7df9ff;
    background: rgba(8, 20, 40, 0.4);
}
[data-theme="spacetech"] .bio-entry-card .bio-entry-label {
    color: #4fc3ff;
}
[data-theme="spacetech"] .bio-entry-card .bio-entry-link {
    color: #7df9ff;
}
[data-theme="spacetech"] .bio-entry-card::before {
    background: radial-gradient(ellipse at 100% 0%, #4fc3ff, transparent 70%);
}

[data-theme="forest"] .bio-entry-card {
    border-color: #7ad07a;
    border-left-color: #7ad07a;
    background: rgba(25, 55, 35, 0.5);
}
[data-theme="forest"] .bio-entry-card .bio-entry-label {
    color: #7ad07a;
}
[data-theme="forest"] .bio-entry-card .bio-entry-link {
    color: #7ad07a;
}
[data-theme="forest"] .bio-entry-card::before {
    background: radial-gradient(ellipse at 100% 0%, #7ad07a, transparent 70%);
}

[data-theme="wasteland"] .bio-entry-card {
    border-color: #b85a2a;
    border-left-color: #b85a2a;
    background: rgba(35, 28, 22, 0.6);
}
[data-theme="wasteland"] .bio-entry-card .bio-entry-label {
    color: #b85a2a;
}
[data-theme="wasteland"] .bio-entry-card .bio-entry-link {
    color: #b85a2a;
}
[data-theme="wasteland"] .bio-entry-card::before {
    background: radial-gradient(ellipse at 100% 0%, #b85a2a, transparent 70%);
}

[data-theme="pixelfog"] .bio-entry-card {
    border-color: #c8b0c4;
    border-left-color: #c8b0c4;
    background: rgba(255, 250, 252, 0.15);
}
[data-theme="pixelfog"] .bio-entry-card .bio-entry-label {
    color: #c8b0c4;
}
[data-theme="pixelfog"] .bio-entry-card .bio-entry-link {
    color: #a07a9a;
}
[data-theme="pixelfog"] .bio-entry-card::before {
    background: radial-gradient(ellipse at 100% 0%, #c8b0c4, transparent 70%);
}

body.theme-analoghorror .bio-entry-card {
    border-color: #ff0033;
    border-left-color: #ff0033;
    background: rgba(10, 10, 18, 0.6);
}
body.theme-analoghorror .bio-entry-card .bio-entry-label {
    color: #ff0033;
}
body.theme-analoghorror .bio-entry-card .bio-entry-link {
    color: #ff0033;
}
body.theme-analoghorror .bio-entry-card::before {
    background: radial-gradient(ellipse at 100% 0%, #ff0033, transparent 70%);
}

@media (max-width: 700px) {
    .bio-entry-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 16px 18px;
    }
    .bio-entry-card .bio-entry-icon {
        font-size: 24px;
    }
    .bio-entry-card .bio-entry-title {
        font-size: 17px;
    }
    .bio-entry-card .bio-entry-excerpt {
        font-size: 13px;
    }
    .bio-entry-card::before {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 430px) {
    .bio-entry-card {
        padding: 14px 14px;
        border-left-width: 4px;
    }
    .bio-entry-card .bio-entry-title {
        font-size: 15px;
        letter-spacing: 1px;
    }
    .bio-entry-card .bio-entry-excerpt {
        font-size: 12px;
    }
    .bio-entry-card .bio-entry-link {
        font-size: 12px;
    }
}