/*
 * Shared Cheatsheet Styles
 * 极简黑白灰风格 - 灵感来自 NexT Muse
 */

/* ==================== 主题变量 ==================== */
:root, [data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f9f9f9;
    --bg-card: #f5f5f5;
    --bg-elevated: #eeeeee;
    --bg-code: #f3f3f3;
    --accent-primary: #222222;
    --accent-secondary: #555555;
    --accent-highlight: #e8e8e8;
    --accent-link: #222222;
    --accent-link-hover: #555555;
    --accent-badge: #222222;
    --accent-badge-bg: #e8e8e8;
    --text-primary: #333333;
    --text-secondary: #555555;
    --text-muted: #666666;
    --text-code: #444444;
    --border-color: #e5e5e5;
    --border-strong: #dddddd;
    --shadow-subtle: rgba(0, 0, 0, 0.06);
    --shadow-card: rgba(0, 0, 0, 0.08);
    --selection-bg: #222222;
    --selection-color: #eeeeee;
    --gradient-start: rgba(34, 34, 34, 0.03);
    --gradient-end: rgba(85, 85, 85, 0.02);
    /* Hero gradient colors - light theme: light gradient with dark text */
    --hero-gradient-start: #e8e8e8;
    --hero-gradient-end: #cccccc;
    --hero-text-color: #1a1a1a;
    --hero-text-muted: rgba(50, 50, 50, 0.8);
    --hero-cmd-bg: rgba(0, 0, 0, 0.08);
    --hero-cmd-hover: rgba(0, 0, 0, 0.14);
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #222222;
    --bg-card: #2a2a2a;
    --bg-elevated: #333333;
    --bg-code: #282c34;
    --accent-primary: #e8e8e8;
    --accent-secondary: #aaaaaa;
    --accent-highlight: #3a3a3a;
    --accent-link: #e8e8e8;
    --accent-link-hover: #aaaaaa;
    --accent-badge: #e8e8e8;
    --accent-badge-bg: #3a3a3a;
    --text-primary: #e8e8e8;
    --text-secondary: #aaaaaa;
    --text-muted: #888888;
    --text-code: #cccccc;
    --border-color: #3a3a3a;
    --border-strong: #444444;
    --shadow-subtle: rgba(0, 0, 0, 0.2);
    --shadow-card: rgba(0, 0, 0, 0.3);
    --selection-bg: #444444;
    --selection-color: #e8e8e8;
    --gradient-start: rgba(232, 232, 232, 0.03);
    --gradient-end: rgba(170, 170, 170, 0.02);
    /* Hero gradient colors - darker for dark mode */
    --hero-gradient-start: #1a1a1a;
    --hero-gradient-end: #333333;
    --hero-text-color: #ffffff;
    --hero-text-muted: rgba(255, 255, 255, 0.9);
    --hero-cmd-bg: rgba(255, 255, 255, 0.1);
    --hero-cmd-hover: rgba(255, 255, 255, 0.2);
}

/* ==================== 基础重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--selection-bg);
    color: var(--selection-color);
}

/* ==================== 字体加载 ==================== */
/* 在 HTML head 中添加 Google Fonts:
   JetBrains Mono: 代码字体
   LXGW WenKai: 中文正文字体
   Outfit: 英文标题字体
*/

/* ==================== 基础布局 ==================== */
body {
    font-family: 'LXGW WenKai', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.8;
    transition: background 0.3s ease, color 0.3s ease;
}

.bg-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    z-index: -1;
    opacity: 0.5;
}

/* ==================== Header ==================== */
.header {
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 100;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--bg-primary);
    transition: all 0.3s ease;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.logo-text span {
    color: var(--accent-secondary);
}

.logo-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==================== 主题切换 ==================== */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.theme-toggle:hover {
    background: var(--bg-elevated);
    border-color: var(--border-strong);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

/* ==================== 主容器 ==================== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* 双栏布局（通用） */
.layout-split {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    transition: grid-template-columns 0.3s ease;
}

/* ==================== Hero 区域 ==================== */
.hero {
    text-align: center;
    padding: 2rem 0 1.5rem;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: inline-block;
}

/* Hero 渐变版本（可选） */
.hero-gradient {
    background: linear-gradient(135deg, var(--hero-gradient-start), var(--hero-gradient-end));
    color: var(--hero-text-color);
    padding: 3rem 2rem;
    border-radius: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-gradient .hero-title {
    color: var(--hero-text-color);
}

.hero-gradient .hero-subtitle {
    color: var(--hero-text-muted);
    background: var(--hero-cmd-bg);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-cmds {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.hero-gradient .hero-cmds {
    gap: 0.75rem;
}

.hero-cmd {
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    background: var(--bg-code);
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.hero-cmd:hover {
    background: var(--bg-elevated);
}

/* Hero 区域内的命令按钮 */
.hero-gradient .hero-cmd {
    color: var(--hero-text-color);
    background: var(--hero-cmd-bg);
}

.hero-gradient .hero-cmd:hover {
    background: var(--hero-cmd-hover);
}

/* ==================== 快捷导航 ==================== */
.quick-ref {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 1.5rem 0;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.quick-ref-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.quick-ref-item:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.quick-ref-item .cmd {
    color: var(--accent-primary);
    font-weight: 500;
}

/* ==================== 侧边导航（GSD/OMC 通用） ==================== */
.sidebar-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.sidebar-toggle:hover {
    background: var(--bg-elevated);
    border-color: var(--border-strong);
}

.sidebar-toggle svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

/* Sidebar collapsed state */
body.sidebar-collapsed .layout-split {
    grid-template-columns: 0 1fr;
}

body.sidebar-collapsed .sidebar-nav {
    opacity: 0;
    pointer-events: none;
}

body.sidebar-collapsed .sidebar-toggle svg {
    transform: rotate(180deg);
}

.sidebar-nav {
    position: sticky;
    top: 80px;
    height: calc(100vh - 100px);
    overflow-y: auto;
    transition: opacity 0.3s ease;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-link:hover {
    background: var(--bg-card);
    color: var(--accent-primary);
    transform: translateX(2px);
}

.nav-link.active {
    background: var(--bg-elevated);
    color: var(--accent-primary);
    border-left: 2px solid var(--accent-primary);
}

/* ==================== 内容区域 ==================== */
.content-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ==================== Section 样式 ==================== */
.section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
    animation: fadeIn 0.4s ease forwards;
}

.section:last-of-type {
    border-bottom: none;
}

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

.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }
.section:nth-child(4) { animation-delay: 0.3s; }

.section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.section-card:hover {
    background: var(--bg-elevated);
    border-color: var(--border-strong);
    box-shadow: 0 2px 8px var(--shadow-card);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.section-icon {
    width: 28px;
    height: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.section-icon-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    color: var(--bg-primary);
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.section-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    background: var(--accent-badge-bg);
    color: var(--accent-badge);
    border-radius: 3px;
}

/* ==================== 卡片网格 ==================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.card:hover {
    background: var(--bg-elevated);
    border-color: var(--border-strong);
    box-shadow: 0 2px 8px var(--shadow-card);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.card-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 500;
}

.card-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--bg-elevated);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.card-badge-hot {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border: none;
}

.card-content {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.card-content p {
    margin-bottom: 0.5rem;
}

/* ==================== 命令块 ==================== */
.cmd-block {
    background: var(--bg-code);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cmd-block:hover {
    background: var(--bg-elevated);
}

.cmd-block::before {
    content: '$';
    position: absolute;
    left: 0.5rem;
    color: var(--text-muted);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

.cmd-block code {
    padding-left: 1.25rem;
    color: var(--text-code);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    display: block;
    white-space: pre-wrap;
    line-height: 1.5;
}

/* 命令块（无$前缀） */
.cmd-block-plain {
    background: var(--bg-code);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    display: block;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cmd-block-plain:hover {
    background: var(--bg-elevated);
    border-color: var(--border-strong);
}

.cmd-block-plain code {
    color: var(--text-code);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    display: block;
    white-space: pre-wrap;
    line-height: 1.6;
}

/* 表格内联命令 */
.cmd-inline {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: var(--bg-code);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-code);
    cursor: pointer;
    transition: all 0.2s ease;
}

.cmd-inline:hover {
    background: var(--bg-elevated);
    border-color: var(--border-strong);
}

/* ==================== 表格样式 ==================== */
.magic-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

.magic-table th,
.magic-table td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.magic-table th {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--bg-card);
}

.magic-table td {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

.magic-table tr:hover td {
    background: var(--bg-card);
}

.magic-table .keyword {
    color: var(--accent-primary);
    font-weight: 600;
}

.magic-table .usage {
    color: var(--text-secondary);
}

.magic-table .example {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* 命令表格（GSD风格） */
.command-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.command-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 0.7rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-strong);
}

.command-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.command-table tr:last-child td {
    border-bottom: none;
}

.command-table tr:hover td {
    background: var(--bg-card);
}

.command-table .cmd-desc {
    color: var(--text-secondary);
    font-family: 'LXGW WenKai', 'Outfit', sans-serif;
    font-size: 0.9rem;
}

/* ==================== 工作流流程 ==================== */
.workflow-flow {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.flow-step {
    padding: 0.35rem 0.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.flow-arrow {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.flow-step.highlight {
    background: var(--bg-elevated);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

/* 工作流大版 */
.workflow-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 6px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.workflow-large .flow-step {
    padding: 0.5rem 1rem;
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-size: 0.85rem;
    border: none;
}

.workflow-large .flow-arrow {
    color: var(--accent-primary);
    font-size: 1rem;
}

/* ==================== 列表样式 ==================== */
.rec-list {
    counter-reset: rec-counter;
    list-style: none;
}

.rec-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.35rem;
    background: var(--bg-card);
    border-radius: 4px;
    counter-increment: rec-counter;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.rec-list li:hover {
    background: var(--bg-elevated);
}

.rec-list li::before {
    content: counter(rec-counter);
    width: 22px;
    height: 22px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
}

.rec-list .scenario {
    color: var(--text-muted);
}

.rec-list .arrow {
    color: var(--text-muted);
}

.rec-list .cmd-ref {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-primary);
    font-size: 0.8rem;
}

/* ==================== 子章节 ==================== */
.subsection {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}

.subsection-title {
    font-family: 'LXGW WenKai', 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

/* ==================== 文件树 ==================== */
.file-tree {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-code);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
}

.tree-line {
    display: block;
    line-height: 1.8;
}

.tree-folder {
    color: var(--accent-primary);
    font-weight: 500;
}

.tree-file {
    color: var(--text-code);
}

.tree-comment {
    color: var(--text-muted);
}

/* ==================== Footer ==================== */
.footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.footer-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 0.75rem;
}

.footer-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-link);
    text-decoration: none;
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.footer-link:hover {
    border-color: var(--accent-link-hover);
    background: var(--bg-card);
    color: var(--accent-link-hover);
}

/* ==================== 滚动条 ==================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    .layout-split {
        grid-template-columns: 1fr;
    }

    .sidebar-nav {
        position: relative;
        top: 0;
        height: auto;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .nav-section {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-title {
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .header-center {
        display: none;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .container, .layout-split {
        padding: 1rem;
    }

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

    .card-grid {
        grid-template-columns: 1fr;
    }

    .quick-ref {
        flex-direction: column;
        align-items: center;
    }

    .workflow-large {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-right .sidebar-toggle span {
        display: none;
    }

    .header-right .theme-toggle span {
        display: none;
    }
}

/* ==================== 打印样式 ==================== */
@media print {
    .theme-toggle, .quick-ref, .sidebar-nav { display: none; }
    .section, .section-card { border: 1px solid #ccc; box-shadow: none; }
    body { background: white; color: black; }
    .layout-split { grid-template-columns: 1fr; }
}
