/* ===========================================================
   RyeBlog 文档主题 —— Doc 文档主题（VuePress 风格）
   设计参考：Typecho 主题 Vuecho（matsuzaka-yuki/Vuecho，MIT License）
   适用：文档站 / 知识库 / 技术博客
   @Title Doc 文档主题
   @Desc 三栏文档主题：左侧文档目录树 + 正文 + 右侧页内目录；首页文档封面；移动端抽屉目录。设计参考 Typecho 主题 Vuecho（MIT）
   @Version 2.0.2
   =========================================================== */

/* ---------- 0. 夜间模式变量（data-theme=dark 由右下按钮切换） ---------- */
body.theme-vuecho {
    --rye-bg:#ffffff; --rye-text:#2c3e50; --rye-muted:#7f8c8d; --rye-border:#eaecef;
    --rye-sidebar:#ffffff; --rye-hover:#f8faf9; --rye-green:#3eaf7c; --rye-green-dark:#2d8a5f;
    --rye-soft:#f0f8f4; --rye-code-bg:#0f2417; --rye-code-text:#d7f5dd;
}
html[data-theme="dark"] body.theme-vuecho {
    --rye-bg:#0f172a; --rye-text:#e2e8f0; --rye-muted:#94a3b8; --rye-border:#334155;
    --rye-sidebar:#1e293b; --rye-hover:#26364a; --rye-green:#42b883; --rye-green-dark:#5dd39e;
    --rye-soft:#1e293b;
}

/* ---------- 1. 设计变量：VuePress 绿映射到 RyeBlog 主题变量 ---------- */
body.theme-vuecho {
    --green-900:#1b5e46; --green-700:#2f7d5c; --green-600:#369970;
    --green-500:#3eaf7c; --green-400:#4fc08d; --green-200:#7fd8b0;
    --green-100:#b8ecd4; --green-050:#e8f8f0; --green-025:#f4fcf8;
    --ink:#2c3e50; --muted:#7f8c8d; --line:#eaecef; --white:#ffffff;
    --shadow:0 2px 8px rgba(0,0,0,.07); --radius:6px;
    --g-900:#1b5e46; --g-700:#2f7d5c; --g-600:#369970; --g-500:#3eaf7c;
    --g-200:#7fd8b0; --g-100:#b8ecd4; --g-050:#e8f8f0; --g-025:#f4fcf9;
}

/* ---------- 2. 全局基调 ---------- */
body.theme-vuecho {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
                 'Hiragino Sans GB', 'Microsoft YaHei', Roboto, sans-serif;
    color: #2c3e50;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}
body.theme-vuecho a { color: var(--green-600); text-decoration: none; transition: color .15s; }
body.theme-vuecho a:hover { color: var(--green-500); text-decoration: none; }

/* ---------- 3. 顶部导航（VuePress 式细顶栏） ---------- */
body.theme-vuecho .site-header {
    background: #fff;
    border-bottom: 1px solid #eaecef;
    box-shadow: none;
    height: 60px;
}
body.theme-vuecho .site-header .header-inner { height: 60px; }
body.theme-vuecho .site-header .brand { font-size: 18px; color: #2c3e50; }
body.theme-vuecho .site-header .brand-logo { border-radius: 6px; }
body.theme-vuecho .site-nav a {
    color: #2c3e50; font-size: 15px; padding: 4px 2px; margin: 0 10px;
    border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
body.theme-vuecho .site-nav a:hover { color: var(--green-500); border-bottom-color: var(--green-500); }
body.theme-vuecho .site-nav a.nav-login {
    border: 1px solid var(--green-500); border-radius: 4px; padding: 4px 12px; color: var(--green-600);
}
body.theme-vuecho .site-nav a.nav-login:hover { background: var(--green-500); color: #fff; }

/* ---------- 4. 布局：侧栏置左（文档导航），正文宽版居中 ---------- */
body.theme-vuecho .layout { flex-direction: row-reverse; gap: 30px; padding: 30px 16px 40px; }
body.theme-vuecho .content-col { max-width: 1000px; margin: 0 auto; flex: 1; min-width: 0; }
body.theme-vuecho .sidebar { width: 280px; }

/* ---------- 5. 侧边栏：文档目录卡片 ---------- */
body.theme-vuecho .sidebar .widget {
    background: #fff; border: 1px solid #eaecef; border-radius: 6px;
    padding: 16px 18px; box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
body.theme-vuecho .sidebar .widget h3 {
    font-size: 14px; font-weight: 600; color: #2c3e50; margin: 0 0 10px;
    padding-bottom: 8px; border-bottom: 1px solid #eaecef;
    display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none;
}
body.theme-vuecho .sidebar .widget h3::after { content: '▾'; font-size: 11px; color: #95a5a6; }
body.theme-vuecho .sidebar .widget.collapsed h3::after { content: '▸'; }
body.theme-vuecho .sidebar .widget.collapsed .widget-body,
body.theme-vuecho .sidebar .widget.collapsed ul, 
body.theme-vuecho .sidebar .widget.collapsed .tag-cloud { display: none; }

/* 目录树（TOC） */
body.theme-vuecho .widget-toc ul.toc-list { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
body.theme-vuecho .widget-toc ul.toc-list ul.toc-sub { list-style: none; margin: 2px 0 2px 14px; padding-left: 10px; border-left: 1px solid #eaecef; }
body.theme-vuecho .widget-toc ul.toc-list li { margin: 3px 0; line-height: 1.5; }
body.theme-vuecho .widget-toc ul.toc-list a { color: #57606a; display: block; padding: 2px 6px; border-radius: 4px; transition: color .12s, background .12s; }
body.theme-vuecho .widget-toc ul.toc-list a:hover { color: var(--green-600); background: var(--green-025); }
body.theme-vuecho .widget-toc ul.toc-list a.active { color: var(--green-600); font-weight: 600; }

/* 分类 / 标签 / 归档 */
body.theme-vuecho .sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
body.theme-vuecho .sidebar .widget ul li { margin: 6px 0; font-size: 14px; }
body.theme-vuecho .sidebar .widget ul li a { color: #57606a; display: block; padding: 3px 6px; border-radius: 4px; transition: color .12s, background .12s; }
body.theme-vuecho .sidebar .widget ul li a:hover { color: var(--green-600); background: var(--green-025); }
body.theme-vuecho .sidebar .widget ul li a small { color: #95a5a6; }
body.theme-vuecho .tag-cloud a {
    display: inline-block; color: #57606a; background: #f8f9fa; border: 1px solid #eaecef;
    border-radius: 4px; padding: 2px 8px; margin: 3px 3px 0 0; font-size: 12.5px; transition: all .12s;
}
body.theme-vuecho .tag-cloud a:hover { color: var(--green-600); border-color: var(--green-400); background: var(--green-025); }
body.theme-vuecho .widget-search input[type="search"] {
    width: 100%; border: 1px solid #eaecef; border-radius: 4px; padding: 7px 10px;
    font-size: 13.5px; background: #f8f9fa; outline: none; transition: border-color .15s, background .15s; box-sizing: border-box;
}
body.theme-vuecho .widget-search input[type="search"]:focus { border-color: var(--green-400); background: #fff; }
body.theme-vuecho .widget-search .site-search { display: flex; gap: 6px; }
body.theme-vuecho .widget-search button {
    border: 1px solid var(--green-500); background: var(--green-500); color: #fff;
    border-radius: 4px; padding: 0 12px; cursor: pointer; transition: background .15s;
}
body.theme-vuecho .widget-search button:hover { background: var(--green-600); }

/* 博主卡片 */
body.theme-vuecho .author-card { background: #fff; border: 1px solid #eaecef; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
body.theme-vuecho .author-card .ac-banner { height: 72px; background: linear-gradient(135deg, var(--green-500), var(--green-700)); }
body.theme-vuecho .author-card .ac-body { padding: 14px 18px 18px; text-align: center; }
body.theme-vuecho .author-card .ac-avatar { width: 56px; height: 56px; border-radius: 50%; border: 3px solid #fff; margin-top: -34px; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
body.theme-vuecho .author-card .ac-name { font-weight: 600; margin: 8px 0 4px; color: #2c3e50; }
body.theme-vuecho .author-card .ac-bio { font-size: 13px; color: #7f8c8d; line-height: 1.6; }

/* ---------- 6. 正文：VuePress 排版 ---------- */
body.theme-vuecho .article {
    background: #fff; border: 1px solid #eaecef; border-radius: 6px;
    padding: 40px 44px; box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
body.theme-vuecho .article h1 { font-size: 28px; font-weight: 600; color: #2c3e50; margin: 0 0 18px; border-bottom: 1px solid #eaecef; padding-bottom: 18px; }
body.theme-vuecho .article h2 {
    font-size: 24px; font-weight: 600; color: #2c3e50; margin: 44px 0 16px;
    padding-top: 30px; border-top: 1px solid #eaecef;
}
body.theme-vuecho .article h3 { font-size: 19px; font-weight: 600; color: #2c3e50; margin: 32px 0 12px; }
body.theme-vuecho .article h4 { font-size: 16.5px; font-weight: 600; color: #2c3e50; margin: 24px 0 10px; }
body.theme-vuecho .article p { line-height: 1.75; margin: 12px 0; font-size: 15.5px; color: #34495e; }
body.theme-vuecho .article ul, body.theme-vuecho .article ol { line-height: 1.75; margin: 12px 0; padding-left: 24px; font-size: 15.5px; color: #34495e; }
body.theme-vuecho .article li { margin: 5px 0; }
body.theme-vuecho .article a { color: var(--green-600); text-decoration: none; border-bottom: 1px solid rgba(62,175,124,.35); transition: border-color .15s; }
body.theme-vuecho .article a:hover { border-bottom-color: var(--green-500); }
body.theme-vuecho .article strong { color: #2c3e50; }
body.theme-vuecho .article blockquote {
    margin: 16px 0; padding: 12px 20px; color: #57606a; border-left: 4px solid var(--green-400);
    background: var(--green-025); border-radius: 0 6px 6px 0;
}
body.theme-vuecho .article blockquote p { margin: 6px 0; color: #57606a; }
body.theme-vuecho .article code {
    background: #f6f8fa; border: 1px solid #e1e4e8; border-radius: 4px;
    padding: 2px 6px; font-size: 86%; color: #c7254e;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}
body.theme-vuecho .article pre {
    background: #f6f8fa; border: 1px solid #e1e4e8; border-radius: 6px;
    padding: 16px 18px; overflow: auto; margin: 16px 0; line-height: 1.6;
}
body.theme-vuecho .article pre code { background: none; border: none; padding: 0; color: #24292e; font-size: 13.5px; }
body.theme-vuecho .article img { max-width: 100%; border-radius: 6px; }
body.theme-vuecho .article table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 14.5px; }
body.theme-vuecho .article th, body.theme-vuecho .article td { border: 1px solid #e1e4e8; padding: 8px 12px; text-align: left; }
body.theme-vuecho .article th { background: #f8f9fa; font-weight: 600; }
body.theme-vuecho .article tr:nth-child(2n) td { background: #fafbfc; }
body.theme-vuecho .article hr { border: none; border-top: 1px solid #eaecef; margin: 28px 0; }
body.theme-vuecho .article .post-meta { color: #7f8c8d; font-size: 13.5px; margin-bottom: 24px; }
body.theme-vuecho .article .post-meta a.cat { color: var(--green-600); background: var(--green-025); border-radius: 4px; padding: 1px 8px; font-size: 12.5px; }
body.theme-vuecho .article .post-tags a { color: #57606a; background: #f8f9fa; border: 1px solid #eaecef; border-radius: 4px; padding: 2px 9px; font-size: 12.5px; margin-right: 6px; }
body.theme-vuecho .article .post-tags a:hover { color: var(--green-600); border-color: var(--green-400); }

/* 上一篇 / 下一篇 */
body.theme-vuecho .post-nav { display: flex; gap: 14px; margin-top: 32px; padding-top: 20px; border-top: 1px solid #eaecef; }
body.theme-vuecho .post-nav a {
    flex: 1; background: #f8f9fa; border: 1px solid #eaecef; border-radius: 6px;
    padding: 12px 16px; color: #2c3e50; transition: border-color .15s, box-shadow .15s;
}
body.theme-vuecho .post-nav a:hover { border-color: var(--green-400); box-shadow: 0 2px 8px rgba(62,175,124,.12); }
body.theme-vuecho .post-nav .post-nav-label { display: block; font-size: 12.5px; color: #7f8c8d; margin-bottom: 4px; }
body.theme-vuecho .post-nav .post-nav-title { font-size: 14.5px; font-weight: 600; }

/* 评论 */
body.theme-vuecho .comments { margin-top: 30px; }
body.theme-vuecho .comment-list { list-style: none; margin: 0; padding: 0; }
body.theme-vuecho .comment-item { background: #f8f9fa; border: 1px solid #eaecef; border-radius: 6px; padding: 12px 16px; margin-bottom: 10px; font-size: 14px; }
body.theme-vuecho .comment-item .c-meta { font-size: 12.5px; color: #7f8c8d; margin-bottom: 6px; }
body.theme-vuecho .comment-form { background: #fff; border: 1px solid #eaecef; border-radius: 6px; padding: 18px; }
body.theme-vuecho .comment-form input[type="text"], body.theme-vuecho .comment-form input[type="email"],
body.theme-vuecho .comment-form input[type="url"], body.theme-vuecho .comment-form textarea {
    width: 100%; border: 1px solid #eaecef; border-radius: 4px; padding: 8px 10px; font-size: 14px;
    background: #fafbfc; box-sizing: border-box; outline: none; transition: border-color .15s, background .15s;
}
body.theme-vuecho .comment-form input:focus, body.theme-vuecho .comment-form textarea:focus { border-color: var(--green-400); background: #fff; }

/* ---------- 7. 文章卡片列表 ---------- */
body.theme-vuecho .post-card {
    background: #fff; border: 1px solid #eaecef; border-radius: 6px;
    padding: 18px 22px; margin-bottom: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.04);
    transition: box-shadow .15s, border-color .15s, transform .15s;
}
body.theme-vuecho .post-card:hover { border-color: var(--green-400); box-shadow: 0 6px 20px rgba(62,175,124,.10); transform: translateY(-1px); }
body.theme-vuecho .post-card .post-thumb { border-radius: 4px; }
body.theme-vuecho .post-card .post-title { font-size: 17px; }
body.theme-vuecho .post-card .post-title a { color: #2c3e50; }
body.theme-vuecho .post-card .post-title a:hover { color: var(--green-600); }
body.theme-vuecho .post-card .post-excerpt { color: #57606a; }
body.theme-vuecho .post-card .post-tags a { color: var(--green-600); background: var(--green-025); }
body.theme-vuecho .post-card .post-footer-row { border-top-color: #eaecef; color: #7f8c8d; font-size: 13px; }

/* ---------- 8. 首页 Hero（VuePress 式） ---------- */
body.theme-vuecho .hero {
    background: linear-gradient(135deg, rgba(62,175,124,.06) 0%, rgba(79,192,141,.09) 50%, rgba(62,175,124,.06) 100%);
    border: 1px solid rgba(62,175,124,.18); border-radius: 8px;
    padding: 54px 32px 60px; margin: 0 0 26px; position: relative; overflow: hidden;
}
body.theme-vuecho .hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 28% 18%, rgba(62,175,124,.12) 0%, transparent 52%),
                radial-gradient(circle at 72% 82%, rgba(79,192,141,.10) 0%, transparent 52%);
}
body.theme-vuecho .hero-inner { position: relative; text-align: center; }
body.theme-vuecho .hero-logo { width: 92px; height: 92px; border-radius: 18px; margin-bottom: 18px; }
body.theme-vuecho .hero-title { font-size: 40px; font-weight: 700; color: #2c3e50; margin: 0 0 10px; }
body.theme-vuecho .hero-title .hero-sub { font-size: 22px; color: #7f8c8d; font-weight: 500; }
body.theme-vuecho .hero-slogan { font-size: 17px; color: #57606a; margin: 0 0 8px; }
body.theme-vuecho .hero-desc { font-size: 15px; color: #7f8c8d; margin: 0 0 26px; }
body.theme-vuecho .hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
body.theme-vuecho .btn {
    display: inline-block; border-radius: 6px; padding: 10px 22px; font-size: 15px; font-weight: 500;
    border: 1px solid transparent; cursor: pointer; transition: all .15s; text-decoration: none;
}
body.theme-vuecho .btn-hero-primary { background: var(--green-500); color: #fff; box-shadow: 0 2px 8px rgba(62,175,124,.3); }
body.theme-vuecho .btn-hero-primary:hover { background: var(--green-600); color: #fff; transform: translateY(-1px); }
body.theme-vuecho .btn-hero-ghost { background: #fff; color: var(--green-600); border-color: var(--green-400); }
body.theme-vuecho .btn-hero-ghost:hover { background: var(--green-025); color: var(--green-600); }

/* ---------- 9. 分页 ---------- */
body.theme-vuecho .pagination { display: flex; gap: 6px; justify-content: center; margin: 26px 0 6px; }
body.theme-vuecho .pagination a, body.theme-vuecho .pagination .current {
    min-width: 32px; text-align: center; padding: 6px 10px; font-size: 13.5px;
    border: 1px solid #eaecef; border-radius: 4px; color: #57606a; background: #fff; transition: all .12s;
}
body.theme-vuecho .pagination a:hover { border-color: var(--green-400); color: var(--green-600); }
body.theme-vuecho .pagination .current { background: var(--green-500); border-color: var(--green-500); color: #fff; font-weight: 600; }

/* ---------- 10. 页脚 ---------- */
body.theme-vuecho .site-footer { background: #fff; border-top: 1px solid #eaecef; }
body.theme-vuecho .footer-copy, body.theme-vuecho .footer-support, body.theme-vuecho .footer-icp { color: #7f8c8d; }
body.theme-vuecho .footer-links a { color: #57606a; }
body.theme-vuecho .footer-links a:hover { color: var(--green-600); }
body.theme-vuecho .footer-col-title { color: #2c3e50; }

/* ---------- 11. 独立页 / 空状态 / 搜索 ---------- */
body.theme-vuecho .page-content { background: #fff; border: 1px solid #eaecef; border-radius: 6px; padding: 36px 42px; }
body.theme-vuecho .empty-box { background: #fff; border: 1px solid #eaecef; border-radius: 6px; padding: 30px; text-align: center; color: #7f8c8d; }
body.theme-vuecho .notice { border-radius: 6px; }

/* ---------- 12. 响应式：移动端内容优先，侧栏收到底部 ---------- */
@media (max-width: 860px) {
    body.theme-vuecho .layout { flex-direction: column; gap: 18px; }
    body.theme-vuecho .sidebar { order: 2; width: 100%; }
    body.theme-vuecho .article { padding: 22px 18px; }
    body.theme-vuecho .article h1 { font-size: 23px; }
    body.theme-vuecho .article h2 { font-size: 20px; margin: 30px 0 12px; padding-top: 22px; }
    body.theme-vuecho .hero { padding: 38px 20px 42px; }
    body.theme-vuecho .hero-title { font-size: 30px; }
    body.theme-vuecho .hero-title .hero-sub { font-size: 18px; }
}

/* ===========================================================
   Vuecho 文档主题 —— 首页模板样式（home.php）
   Hero 宣传区 / 特性卡片 / 学习目录
   =========================================================== */
body.theme-vuecho .doc-hero {
    background: linear-gradient(135deg, #3eaf7c 0%, #2d8a5f 55%, #1f6e4e 100%);
    color: #fff; text-align: center; padding: 64px 20px 58px; margin: -24px 0 0;
    border-radius: 0 0 22px 22px;
}
body.theme-vuecho .doc-hero-inner { max-width: 860px; margin: 0 auto; }
body.theme-vuecho .doc-hero-title { font-size: 40px; font-weight: 700; margin: 0 0 10px; color: #fff; letter-spacing: .5px; }
body.theme-vuecho .doc-hero-sub { font-size: 18px; color: rgba(255,255,255,.92); margin: 0 0 26px; font-weight: 400; }
body.theme-vuecho .doc-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
body.theme-vuecho .doc-btn-primary {
    display: inline-block; padding: 12px 30px; border-radius: 8px; font-size: 15px; font-weight: 600;
    background: #fff; color: #2d8a5f; text-decoration: none; transition: transform .15s, box-shadow .15s;
    box-shadow: 0 4px 14px rgba(0,0,0,.14);
}
body.theme-vuecho .doc-btn-primary:hover { transform: translateY(-2px); color: #1f6e4e; text-decoration: none; }
body.theme-vuecho .doc-btn-secondary {
    display: inline-block; padding: 12px 30px; border-radius: 8px; font-size: 15px; font-weight: 600;
    background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.55);
    text-decoration: none; transition: background .15s;
}
body.theme-vuecho .doc-btn-secondary:hover { background: rgba(255,255,255,.26); text-decoration: none; }

body.theme-vuecho .features-section { max-width: 1080px; margin: 44px auto 8px; padding: 0 20px; }
body.theme-vuecho .features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { body.theme-vuecho .features-grid { grid-template-columns: 1fr; } }
body.theme-vuecho .feature-item {
    background: #fff; border: 1px solid #eaecef; border-radius: 12px; padding: 22px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05); transition: transform .15s, box-shadow .15s;
}
body.theme-vuecho .feature-item:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(62,175,124,.12); }
body.theme-vuecho .feature-title { font-size: 17px; color: #2c3e50; margin: 0 0 8px; }
body.theme-vuecho .feature-description { font-size: 14px; color: #7f8c8d; margin: 0; line-height: 1.7; }

body.theme-vuecho .docs-section { max-width: 860px; margin: 40px auto 20px; padding: 0 20px; }
body.theme-vuecho .docs-section-title {
    font-size: 20px; color: #2c3e50; margin: 0 0 16px; padding-bottom: 10px;
    border-bottom: 3px solid #3eaf7c;
}
body.theme-vuecho .doc-list { border: 1px solid #eaecef; border-radius: 12px; overflow: hidden; background: #fff; }
body.theme-vuecho .doc-list-item {
    display: flex; align-items: center; gap: 16px; padding: 14px 18px; text-decoration: none;
    color: inherit; border-bottom: 1px solid #f2f4f6; transition: background .12s;
}
body.theme-vuecho .doc-list-item:last-child { border-bottom: none; }
body.theme-vuecho .doc-list-item:hover { background: #f6faf8; text-decoration: none; }
body.theme-vuecho .doc-list-index { font-size: 13px; font-weight: 700; color: #3eaf7c; min-width: 26px; }
body.theme-vuecho .doc-list-main { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
body.theme-vuecho .doc-list-title { font-size: 15.5px; font-weight: 600; color: #2c3e50; }
body.theme-vuecho .doc-list-cat {
    display: inline-block; align-self: flex-start; font-size: 11.5px; color: #3eaf7c;
    background: #e8f8f0; padding: 1px 9px; border-radius: 999px; margin-top: 2px;
}
body.theme-vuecho .doc-list-tags i {
    font-style: normal; font-size: 11.5px; color: #7f8c8d; background: #f2f4f6;
    padding: 1px 8px; border-radius: 999px; margin-right: 5px;
}
body.theme-vuecho .doc-list-arrow { color: #c0c8c4; font-size: 15px; }
body.theme-vuecho .docs-more { text-align: center; margin-top: 16px; }
body.theme-vuecho .docs-more a { color: #3eaf7c; font-weight: 600; text-decoration: none; }
body.theme-vuecho .docs-more a:hover { text-decoration: underline; }

/* ===========================================================
   Vuecho 文档主题 —— 自包含首页布局（home.php 文档站版）
   参考 Vuecho 原版 homepage.css：文档顶栏 + Hero + 特性 + 学习目录
   =========================================================== */
body.theme-vuecho.doc-home { margin: 0; background: #fff; color: var(--ink, #2c3e50); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; }

/* ---- 文档顶栏（首页 + 内容页通用，fixed 顶部，与原版一致） ---- */
body.theme-vuecho .docs-header {
    position: fixed; top: 0; left: 0; right: 0; height: 60px; z-index: 1000;
    background: var(--rye-bg, #fff); border-bottom: 1px solid var(--rye-border, #eaecef);
}
body.theme-vuecho .docs-header-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 22px; height: 60px;
    display: flex; align-items: center; gap: 22px;
}
body.theme-vuecho .docs-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
body.theme-vuecho .docs-brand-logo { width: 32px; height: 32px; border-radius: 7px; }
body.theme-vuecho .docs-brand-name { font-size: 17px; font-weight: 700; color: var(--rye-text, #2c3e50); }
body.theme-vuecho .docs-nav { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
body.theme-vuecho .docs-nav a { padding: 7px 13px; border-radius: 7px; color: var(--rye-text, #2c3e50); font-size: 14.5px; text-decoration: none; }
body.theme-vuecho .docs-nav a:hover { background: var(--rye-soft, #f0f8f4); color: var(--rye-green-dark, #2d8a5f); }
body.theme-vuecho .docs-search { display: flex; align-items: center; gap: 4px; }
body.theme-vuecho .docs-search input {
    width: 190px; padding: 7px 12px; border: 1px solid var(--rye-border, #e2e8f0); border-radius: 8px; font-size: 13.5px; outline: none;
    background: var(--rye-hover, #f8fafc); color: var(--rye-text, #2c3e50); transition: border-color .15s, box-shadow .15s;
}
body.theme-vuecho .docs-search input:focus { border-color: var(--rye-green, #3eaf7c); box-shadow: 0 0 0 3px rgba(62,175,124,.12); background: var(--rye-bg, #fff); }
body.theme-vuecho .docs-search button { border: none; background: none; cursor: pointer; font-size: 15px; padding: 6px; }

/* ---- Hero（原版 Vuecho 设计，数值对齐 homepage.css） ---- */
body.theme-vuecho.doc-home .hero-section {
    padding: 120px 20px 160px; text-align: center; min-height: 70vh;
    background: linear-gradient(135deg, rgba(62,175,124,.05) 0%, rgba(79,192,141,.08) 50%, rgba(62,175,124,.05) 100%);
    position: relative; overflow: hidden;
}
body.theme-vuecho.doc-home .hero-section::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 30% 20%, rgba(62,175,124,.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(79,192,141,.08) 0%, transparent 50%);
}
body.theme-vuecho.doc-home .hero-container {
    max-width: 1200px; margin: 0 auto; position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding-top: 70px;
}
@media (min-width: 820px) {
    body.theme-vuecho.doc-home .hero-container { flex-direction: row; justify-content: space-between; gap: 60px; text-align: left; }
    /* 与 Vuecho 原版一致：文字在左（order:1）、logo 在右（order:2） */
    body.theme-vuecho.doc-home .hero-container .hero-content { flex: 1; text-align: left; max-width: 600px; order: 1; }
    body.theme-vuecho.doc-home .hero-container .hero-logo { flex-shrink: 0; order: 2; margin-left: -20px; }
}
body.theme-vuecho.doc-home .hero-text { margin-bottom: 40px; width: 100%; }
body.theme-vuecho.doc-home .hero-logo { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: auto; height: auto; border-radius: 0; margin: 0; }
body.theme-vuecho.doc-home .hero-logo .logo-image { max-width: 300px; max-height: 300px; width: auto; height: auto; object-fit: contain; display: block; }
@media (max-width: 819px) {
    body.theme-vuecho.doc-home .hero-logo .logo-image { max-width: 200px; max-height: 200px; }
}
body.theme-vuecho.doc-home .hero-title { font-size: 3.5rem; font-weight: 700; color: #2c3e50; margin: 0 0 24px; line-height: 1.2; letter-spacing: -0.02em; }
body.theme-vuecho.doc-home .hero-description { font-size: 1.25rem; color: #7f8c8d; margin: 0 0 40px; line-height: 1.6; }
body.theme-vuecho.doc-home .hero-actions { display: flex; gap: 16px; align-items: center; justify-content: flex-start; flex-wrap: wrap; }
body.theme-vuecho.doc-home .btn {
    display: inline-flex; align-items: center; gap: 7px; padding: 13px 32px; border-radius: 9px;
    font-size: 15px; font-weight: 600; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s;
}
body.theme-vuecho.doc-home .btn-primary { background: #3eaf7c; color: #fff; box-shadow: 0 6px 18px rgba(62,175,124,.32); }
body.theme-vuecho.doc-home .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(62,175,124,.4); }
body.theme-vuecho.doc-home .btn-secondary { background: #fff; color: #2d8a5f; border: 1.5px solid #3eaf7c; }
body.theme-vuecho.doc-home .btn-secondary:hover { background: #f0f8f4; transform: translateY(-2px); }

/* ---- 特性卡片 ---- */
body.theme-vuecho.doc-home .features-section { padding: 0 22px; margin: -58px auto 0; position: relative; z-index: 2; }
body.theme-vuecho.doc-home .features-container { max-width: 1200px; margin: 0 auto; }
body.theme-vuecho.doc-home .features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { body.theme-vuecho.doc-home .features-grid { grid-template-columns: 1fr; } }
body.theme-vuecho.doc-home .feature-item {
    background: #fff; border: 1px solid #eaecef; border-radius: 14px; padding: 26px 24px;
    box-shadow: 0 8px 26px rgba(0,0,0,.06); transition: transform .18s, box-shadow .18s;
}
body.theme-vuecho.doc-home .feature-item:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(62,175,124,.14); }
body.theme-vuecho.doc-home .feature-title { font-size: 17px; color: #2c3e50; margin: 0 0 9px; }
body.theme-vuecho.doc-home .feature-description { font-size: 14px; color: #7f8c8d; margin: 0; line-height: 1.75; }

/* ---- 学习目录 ---- */
body.theme-vuecho.doc-home .docs-section { padding: 54px 22px 40px; }
body.theme-vuecho.doc-home .docs-section-inner { max-width: 900px; margin: 0 auto; }
body.theme-vuecho.doc-home .docs-section-title { font-size: 21px; color: #2c3e50; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 3px solid #3eaf7c; }
body.theme-vuecho.doc-home .doc-list { border: 1px solid #eaecef; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.04); }
body.theme-vuecho.doc-home .doc-list-item {
    display: flex; align-items: center; gap: 18px; padding: 15px 20px; text-decoration: none; color: inherit;
    border-bottom: 1px solid #f2f4f6; transition: background .12s;
}
body.theme-vuecho.doc-home .doc-list-item:last-child { border-bottom: none; }
body.theme-vuecho.doc-home .doc-list-item:hover { background: #f6faf8; }
body.theme-vuecho.doc-home .doc-list-index { font-size: 14px; font-weight: 700; color: #3eaf7c; min-width: 30px; }
body.theme-vuecho.doc-home .doc-list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
body.theme-vuecho.doc-home .doc-list-title { font-size: 15.5px; font-weight: 600; color: #2c3e50; }
body.theme-vuecho.doc-home .doc-list-item:hover .doc-list-title { color: #2d8a5f; }
body.theme-vuecho.doc-home .doc-list-meta { display: flex; gap: 7px; flex-wrap: wrap; }
body.theme-vuecho.doc-home .doc-list-cat, body.theme-vuecho.doc-home .doc-list-tag {
    font-style: normal; font-size: 11.5px; padding: 1px 9px; border-radius: 999px;
}
body.theme-vuecho.doc-home .doc-list-cat { color: #2d8a5f; background: #e8f8f0; }
body.theme-vuecho.doc-home .doc-list-tag { color: #7f8c8d; background: #f2f4f6; }
body.theme-vuecho.doc-home .doc-list-arrow { color: #c0c8c4; font-size: 16px; }
body.theme-vuecho.doc-home .docs-more { text-align: center; margin-top: 18px; }
body.theme-vuecho.doc-home .docs-more a { color: #3eaf7c; font-weight: 600; text-decoration: none; }
body.theme-vuecho.doc-home .docs-more a:hover { text-decoration: underline; }

/* ---- 文档页脚 ---- */
body.theme-vuecho .docs-footer { border-top: 1px solid var(--rye-border, #eaecef); background: var(--rye-bg, #fafcfb); margin-top: 30px; }
body.theme-vuecho .docs-footer-inner { max-width: 1200px; margin: 0 auto; padding: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
body.theme-vuecho .docs-footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
body.theme-vuecho .docs-footer-links a { color: var(--rye-muted, #7f8c8d); font-size: 13.5px; text-decoration: none; }
body.theme-vuecho .docs-footer-links a:hover { color: var(--rye-green, #3eaf7c); }
body.theme-vuecho .docs-footer-copy { color: #a0aab0; font-size: 13px; margin: 0; }
body.theme-vuecho .docs-footer-copy a { color: var(--rye-muted, #7f8c8d); text-decoration: none; }

/* ===========================================================
   Vuecho 文档主题 —— 文档式文章页（post.php）
   与原版一致：fixed 左侧文档树 + 右侧正文
   =========================================================== */
body.theme-vuecho.doc-post { margin: 0; background: var(--rye-bg, #fff); color: var(--rye-text, #2c3e50); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; }

/* ---- 布局：侧栏固定 + 主区右移 ---- */
body.theme-vuecho.doc-post .docs-container { display: flex; margin-top: 60px; min-height: calc(100vh - 60px); }
body.theme-vuecho.doc-post .docs-sidebar {
    width: 280px; min-width: 280px; background: var(--rye-sidebar, #fff); border-right: 1px solid var(--rye-border, #eaecef);
    position: fixed; top: 60px; left: 0; height: calc(100vh - 60px); overflow-y: auto; z-index: 100;
}
body.theme-vuecho.doc-post .sidebar-content { padding: 1.5rem; }
body.theme-vuecho.doc-post .sidebar-section { margin-bottom: 1.5rem; }
body.theme-vuecho.doc-post .sidebar-title { display: flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; color: var(--rye-text, #2c3e50); margin: 0 0 1rem; text-transform: uppercase; letter-spacing: .04em; }

/* 文档分类树 */
body.theme-vuecho.doc-post .docs-tree { font-size: .875rem; }
body.theme-vuecho.doc-post .tree-root { list-style: none; margin: 0; padding: 0; }
body.theme-vuecho.doc-post .tree-node { margin-bottom: .25rem; }
body.theme-vuecho.doc-post .node-content { display: flex; align-items: center; padding: .25rem .4rem; border-radius: 6px; transition: background .12s; cursor: pointer; }
body.theme-vuecho.doc-post .node-content:hover { background: var(--rye-hover, #f8faf9); }
body.theme-vuecho.doc-post .node-toggle { width: 18px; height: 18px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; color: #95a5a6; transform: rotate(0deg); transition: transform .15s; cursor: pointer; user-select: none; }
body.theme-vuecho.doc-post .tree-node.expanded .node-toggle { transform: rotate(90deg); }
body.theme-vuecho.doc-post .node-label { display: flex; align-items: center; gap: .375rem; flex: 1; min-width: 0; }
body.theme-vuecho.doc-post .node-name { color: var(--rye-text, #2c3e50); font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.theme-vuecho.doc-post .node-count { font-size: .75rem; background: var(--rye-hover, #f8f9fa); color: var(--rye-muted, #7f8c8d); padding: .125rem .375rem; border-radius: 10px; flex-shrink: 0; }
body.theme-vuecho.doc-post .tree-children { list-style: none; margin: 0 0 .35rem; padding: 0 0 0 10px; border-left: 1px solid var(--rye-border, #eaecef); margin-left: 6px; }
body.theme-vuecho.doc-post .tree-leaf { margin: 0; }
body.theme-vuecho.doc-post .leaf-content { display: flex; align-items: center; padding: .125rem .4rem; border-radius: 6px; transition: background .12s; }
body.theme-vuecho.doc-post .leaf-content:hover { background: var(--rye-hover, #f8faf9); }
body.theme-vuecho.doc-post .tree-leaf.current-post > .leaf-content { background: rgba(62, 175, 124, 0.15); }
body.theme-vuecho.doc-post .leaf-spacer { width: 22px; height: 22px; flex-shrink: 0; }
body.theme-vuecho.doc-post .leaf-label { display: flex; align-items: center; gap: .375rem; flex: 1; min-width: 0; }
body.theme-vuecho.doc-post .leaf-link { color: var(--rye-muted, #7f8c8d); text-decoration: none; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .12s; font-size: .8125rem; }
body.theme-vuecho.doc-post .leaf-link:hover { color: var(--rye-green, #3eaf7c); }
body.theme-vuecho.doc-post .leaf-link.active { color: var(--rye-green, #3eaf7c); font-weight: 500; }

/* ---- 主内容区（margin-right 给右侧 TOC 让位，三栏不重叠） ---- */
body.theme-vuecho.doc-post .docs-main { flex: 1; margin-left: 280px; margin-right: 280px; max-width: 1000px; padding: 2rem; width: calc(100vw - 560px); }
body.theme-vuecho.doc-post .docs-content { max-width: 100%; width: 100%; }
body.theme-vuecho.doc-post .docs-article { background: var(--rye-bg, #fff); }

body.theme-vuecho.doc-post .article-header { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rye-border, #eaecef); }
body.theme-vuecho.doc-post .article-title { font-size: 2.5rem; font-weight: 700; color: var(--rye-text, #2c3e50); margin: 0 0 1rem; line-height: 1.3; }
body.theme-vuecho.doc-post .article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-size: .875rem; color: var(--rye-muted, #7f8c8d); }
body.theme-vuecho.doc-post .meta-item { display: flex; align-items: center; gap: .35rem; }
body.theme-vuecho.doc-post .meta-icon { flex-shrink: 0; opacity: .7; }
body.theme-vuecho.doc-post .article-meta a { color: var(--rye-green, #3eaf7c); text-decoration: none; }
body.theme-vuecho.doc-post .article-meta a:hover { text-decoration: underline; }
body.theme-vuecho.doc-post .meta-tags { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---- 正文顶部页内目录锚点条 ---- */
body.theme-vuecho.doc-post .doc-page-toc {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
    background: #fafcfb; border: 1px solid #eaecef; border-radius: 10px; padding: 10px 14px; margin-bottom: 26px;
}
body.theme-vuecho.doc-post .doc-page-toc-label { font-size: 12.5px; color: #7f8c8d; font-weight: 700; }
body.theme-vuecho.doc-post .doc-page-toc ul.toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
body.theme-vuecho.doc-post .doc-page-toc ul.toc-list li { margin: 0; }
body.theme-vuecho.doc-post .doc-page-toc ul.toc-list ul.toc-sub { list-style: none; margin: 0; padding: 0; display: inline; }
body.theme-vuecho.doc-post .doc-page-toc ul.toc-list ul.toc-sub li { display: inline; }
body.theme-vuecho.doc-post .doc-page-toc ul.toc-list a {
    color: #2d8a5f; font-size: 13px; text-decoration: none; padding: 3px 9px; border-radius: 999px; background: #eef7f2;
}
body.theme-vuecho.doc-post .doc-page-toc ul.toc-list a:hover { background: #d0f0e0; }

/* ---- 正文 ---- */
body.theme-vuecho.doc-post .article-content { font-size: 16px; line-height: 1.85; color: #34495e; max-width: 100%; width: 100%; }
body.theme-vuecho.doc-post .article-content h2 { font-size: 23px; color: #2c3e50; margin: 34px 0 14px; padding-top: 16px; border-top: 1px solid #eaecef; }
body.theme-vuecho.doc-post .article-content h3 { font-size: 19px; color: #2c3e50; margin: 26px 0 10px; }
body.theme-vuecho.doc-post .article-content img { max-width: 100%; border-radius: 10px; }
body.theme-vuecho.doc-post .article-content a { color: #3eaf7c; }
body.theme-vuecho.doc-post .article-content blockquote { margin: 18px 0; padding: 12px 18px; border-left: 4px solid #3eaf7c; background: #f0f8f4; color: #5b6b64; border-radius: 0 10px 10px 0; }
body.theme-vuecho.doc-post .article-content pre { background: #0f2417; color: #d7f5dd; padding: 16px 18px; border-radius: 10px; overflow: auto; font-size: 13.5px; }
body.theme-vuecho.doc-post .article-content code { font-family: 'SFMono-Regular', Consolas, Menlo, monospace; background: #f0f4f1; color: #b5341f; padding: 2px 6px; border-radius: 5px; font-size: .9em; }
body.theme-vuecho.doc-post .article-content pre code { background: none; color: inherit; padding: 0; }
body.theme-vuecho.doc-post .article-content table { border-collapse: collapse; width: 100%; margin: 18px 0; }
body.theme-vuecho.doc-post .article-content th, body.theme-vuecho.doc-post .article-content td { border: 1px solid #eaecef; padding: 9px 13px; text-align: left; }
body.theme-vuecho.doc-post .article-content th { background: #f6faf8; }

body.theme-vuecho.doc-post .doc-post-nav { display: flex; justify-content: space-between; gap: 14px; margin: 34px 0 8px; padding: 18px 0; border-top: 1px solid #eaecef; border-bottom: 1px solid #eaecef; }
body.theme-vuecho.doc-post .doc-post-nav a { flex: 1; display: flex; flex-direction: column; gap: 4px; text-decoration: none; padding: 10px 14px; border-radius: 10px; transition: background .12s; }
body.theme-vuecho.doc-post .doc-post-nav a:hover { background: #f6faf8; }
body.theme-vuecho.doc-post .doc-post-nav-next { text-align: right; }
body.theme-vuecho.doc-post .doc-post-nav-label { font-size: 12.5px; color: #7f8c8d; }
body.theme-vuecho.doc-post .doc-post-nav-title { font-size: 14.5px; font-weight: 600; color: #2c3e50; }
body.theme-vuecho.doc-post .doc-post-nav a:hover .doc-post-nav-title { color: #2d8a5f; }

body.theme-vuecho.doc-post .doc-comments { margin-top: 30px; }
body.theme-vuecho.doc-post .doc-comments h3 { font-size: 17px; color: #2c3e50; }
body.theme-vuecho.doc-post .doc-comment-list { list-style: none; margin: 14px 0; padding: 0; }
body.theme-vuecho.doc-post .doc-comment-item { border: 1px solid #eaecef; border-radius: 10px; padding: 13px 16px; margin-bottom: 10px; background: #fafcfb; }
body.theme-vuecho.doc-post .doc-comment-meta { font-size: 12.5px; color: #7f8c8d; margin-bottom: 6px; }
body.theme-vuecho.doc-post .doc-comment-form { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
body.theme-vuecho.doc-post .doc-comment-fields { display: flex; gap: 10px; flex-wrap: wrap; }
body.theme-vuecho.doc-post .doc-comment-fields input { flex: 1; min-width: 160px; padding: 9px 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; outline: none; }
body.theme-vuecho.doc-post .doc-comment-fields input:focus, body.theme-vuecho.doc-post .doc-comment-form textarea:focus { border-color: #3eaf7c; box-shadow: 0 0 0 3px rgba(62,175,124,.12); }
body.theme-vuecho.doc-post .doc-comment-form textarea { padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; outline: none; resize: vertical; font-family: inherit; }
body.theme-vuecho.doc-post .doc-comment-btn { align-self: flex-start; background: #3eaf7c; color: #fff; border: none; padding: 10px 26px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
body.theme-vuecho.doc-post .doc-comment-btn:hover { background: #2d8a5f; }

/* 移动端：侧栏降级为顶部块（内容优先） */
@media (max-width: 900px) {
    body.theme-vuecho.doc-post .docs-container { flex-direction: column; margin-top: 60px; }
    body.theme-vuecho.doc-post .docs-sidebar {
        position: fixed; top: 60px; left: 0; width: 280px; min-width: 280px;
        height: calc(100vh - 60px); max-height: none;
        border-right: 1px solid var(--rye-border, #eaecef); border-bottom: none;
    }
    body.theme-vuecho.doc-post .docs-main { margin-left: 0; width: 100%; max-width: 100%; padding: 1rem; }
    body.theme-vuecho.doc-post .article-title { font-size: 1.75rem; }
}

/* ===========================================================
   右侧 TOC 栏（toc-desktop，fixed 右滑）
   =========================================================== */
body.theme-vuecho.doc-post .toc-desktop {
    position: fixed; top: 60px; right: 0; bottom: 0; width: 280px;
    background: var(--rye-sidebar, #f8fafc); border-left: 1px solid var(--rye-border, #e2e8f0);
    z-index: 90; overflow: hidden; transition: transform .3s ease; transform: translateX(0);
}
body.theme-vuecho.doc-post .toc-desktop.hidden { transform: translateX(100%); }
body.theme-vuecho.doc-post .toc-desktop-wrapper { height: 100%; display: flex; flex-direction: column; }
body.theme-vuecho.doc-post .toc-desktop-header { padding: 1.2rem 1.25rem .8rem; border-bottom: 1px solid var(--rye-border, #e2e8f0); flex-shrink: 0; }
body.theme-vuecho.doc-post .toc-desktop-title { font-size: .75rem; font-weight: 700; color: var(--rye-muted, #64748b); text-transform: uppercase; letter-spacing: .06em; }
body.theme-vuecho.doc-post .toc-desktop-body { flex: 1; overflow-y: auto; padding: .8rem 1.25rem 2rem; }
body.theme-vuecho.doc-post .toc-desktop-body .toc-list { list-style: none; margin: 0; padding: 0; }
body.theme-vuecho.doc-post .toc-desktop-body .toc-list li { margin: 0; }
body.theme-vuecho.doc-post .toc-desktop-body .toc-list ul.toc-sub { list-style: none; margin: 0 0 0 14px; padding-left: 10px; border-left: 1px solid var(--rye-border, #eaecef); }
body.theme-vuecho.doc-post .toc-desktop-body .toc-list a {
    display: block; padding: 4px 9px; border-radius: 6px; color: var(--rye-muted, #57606a);
    font-size: 13px; text-decoration: none; line-height: 1.5; transition: background .12s, color .12s;
}
body.theme-vuecho.doc-post .toc-desktop-body .toc-list a:hover { background: var(--rye-hover, #eef7f2); color: var(--rye-green, #2d8a5f); }
body.theme-vuecho.doc-post .toc-desktop-body .toc-list li.toc-h2 > a { font-weight: 600; color: var(--rye-text, #2c3e50); }
body.theme-vuecho.doc-post .toc-desktop-body .toc-list li.toc-h3 > a { padding-left: 20px; font-size: 12.5px; }
body.theme-vuecho.doc-post .toc-desktop-body .toc-list li.toc-h4 > a { padding-left: 34px; font-size: 12px; color: var(--rye-muted, #6b7b8a); }
body.theme-vuecho.doc-post .toc-desktop-body .toc-list li.toc-h5 > a { padding-left: 48px; font-size: 12px; color: var(--rye-muted, #7d8b98); }
body.theme-vuecho.doc-post .toc-desktop-body .toc-list li.toc-h6 > a { padding-left: 62px; font-size: 11.5px; color: var(--rye-muted, #8a97a3); }
body.theme-vuecho.doc-post .toc-desktop-body .toc-list a.active { background: rgba(62,175,124,.15); color: var(--rye-green, #2d8a5f); font-weight: 600; }

body.theme-vuecho.doc-post .toc-desktop-toggle {
    position: fixed; top: 50%; right: 280px; transform: translateY(-50%);
    width: 40px; height: 60px; background: var(--rye-sidebar, #f8fafc);
    border: 1px solid var(--rye-border, #e2e8f0); border-right: none; border-radius: 8px 0 0 8px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    z-index: 91; transition: right .3s ease; color: var(--rye-muted, #64748b);
}
body.theme-vuecho.doc-post .toc-desktop-toggle:hover { color: var(--rye-green, #3eaf7c); }
body.theme-vuecho.doc-post .toc-desktop.hidden + .toc-desktop-toggle { right: 0; }
body.theme-vuecho.doc-post .toc-desktop-toggle-icon { transition: transform .3s ease; }
body.theme-vuecho.doc-post .toc-desktop.hidden + .toc-desktop-toggle .toc-desktop-toggle-icon { transform: rotate(180deg); }

/* ===========================================================
   右下 UX 工具栏：夜间模式 / 字体大小 / 阅读模式
   =========================================================== */
body.theme-vuecho .ux-toolbar { position: fixed; right: 2rem; bottom: 3rem; display: flex; flex-direction: column; gap: .5rem; z-index: 1000; }
body.theme-vuecho .ux-tool {
    width: 48px; height: 48px; background: var(--rye-bg, #fff); border: 1px solid var(--rye-border, #eaecef);
    border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s, transform .15s, box-shadow .15s;
    box-shadow: 0 2px 8px rgba(0,0,0,.1); color: var(--rye-text, #2c3e50);
}
body.theme-vuecho .ux-tool:hover { background: var(--rye-green, #3eaf7c); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(62,175,124,.3); }
body.theme-vuecho .ux-tool.active { background: var(--rye-green, #3eaf7c); color: #fff; border-color: var(--rye-green, #3eaf7c); }
body.theme-vuecho .dark-mode-toggle .sun-icon, body.theme-vuecho .dark-mode-toggle .moon-icon { transition: opacity .3s ease, transform .3s ease; }
body.theme-vuecho .dark-mode-toggle.active .sun-icon { opacity: 0; transform: rotate(180deg); }
body.theme-vuecho .dark-mode-toggle.active .moon-icon { opacity: 1; }

/* ===========================================================
   阅读模式：隐藏左右栏，仅保留中栏
   =========================================================== */
body.theme-vuecho.reading-mode .docs-sidebar { display: none; }
body.theme-vuecho.reading-mode .toc-desktop { display: none !important; }
body.theme-vuecho.reading-mode .toc-desktop-toggle { display: none !important; }
body.theme-vuecho.reading-mode .docs-main { max-width: 800px; margin: 0 auto !important; padding: 3rem; width: 100%; }
body.theme-vuecho.reading-mode .article-content { font-size: var(--reading-font-size, 1.125rem); line-height: 1.9; max-width: 100%; }

@media (max-width: 900px) {
    body.theme-vuecho .ux-toolbar { right: 1rem; bottom: 3rem; }
    body.theme-vuecho .ux-tool { width: 44px; height: 44px; }
    body.theme-vuecho.doc-post .toc-desktop { width: 240px; }
    body.theme-vuecho.doc-post .toc-desktop-toggle { right: 240px; }
}

/* ===========================================================
   移动端顶栏：logo 左、搜索框 + 三横 右（隐藏主导航）
   =========================================================== */
@media (max-width: 768px) {
    body.theme-vuecho .docs-nav { display: none !important; }
    body.theme-vuecho .docs-header-inner { gap: 10px; }
    body.theme-vuecho .docs-brand { margin-right: auto; }
    body.theme-vuecho .docs-search { display: flex; }
    body.theme-vuecho .docs-search input { width: 110px; padding: 6px 10px; font-size: 13px; }
}

/* ===========================================================
   代码块轻量语法高亮 token（pre 深色底上）
   =========================================================== */
body.theme-vuecho .article-content pre code .tok-comment { color: #7fb8a0; font-style: italic; }
body.theme-vuecho .article-content pre code .tok-kw { color: #7dd3fc; font-weight: 600; }
body.theme-vuecho .article-content pre code .tok-num { color: #fcd34d; }
body.theme-vuecho .article-content pre code .tok-str { color: #f9a8d4; }

/* ===========================================================
   侧栏图标（分类文件夹 / 文章文件）
   =========================================================== */
body.theme-vuecho.doc-post .node-label .node-icon { flex-shrink: 0; color: #95a5a6; }
body.theme-vuecho.doc-post .node-label { gap: .375rem; }
body.theme-vuecho.doc-post .leaf-label .leaf-icon { flex-shrink: 0; color: #b0b8c0; }
body.theme-vuecho.doc-post .tree-leaf.current-post .leaf-icon { color: var(--rye-green, #3eaf7c); }

/* ===========================================================
   汉堡按钮（移动端显示）+ 抽屉遮罩
   =========================================================== */
body.theme-vuecho .nav-toggle {
    display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer;
    padding: 8px; border-radius: 8px; align-items: center; justify-content: center;
}
body.theme-vuecho .nav-toggle .toggle-line { width: 20px; height: 2px; background: var(--rye-text, #2c3e50); border-radius: 2px; display: block; }
body.theme-vuecho .sidebar-mask {
    display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, .5);
    z-index: 999; opacity: 0; transition: opacity .25s; pointer-events: none;
}

/* ===========================================================
   移动端 TOC 卡片（正文上方可折叠，参考 toc-mobile.css）
   =========================================================== */
body.theme-vuecho.doc-post .toc-mobile { display: none; }

/* ===========================================================
   移动端（≤900px）：抽屉目录 + 汉堡 + 正文上方 TOC
   =========================================================== */
@media (max-width: 900px) {
    body.theme-vuecho .nav-toggle { display: flex; }
    body.theme-vuecho.doc-post .docs-sidebar {
        transform: translateX(-100%); transition: transform .3s ease;
        box-shadow: 4px 0 24px rgba(0,0,0,.12);
    }
    body.theme-vuecho.menu-open .docs-sidebar { transform: translateX(0); }
    body.theme-vuecho.menu-open .sidebar-mask { display: block; opacity: 1; pointer-events: auto; }
    /* 移动端 TOC：桌面右侧栏隐藏，正文上方显示可折叠卡片 */
    body.theme-vuecho.doc-post .toc-desktop,
    body.theme-vuecho.doc-post .toc-desktop-toggle { display: none !important; }
    body.theme-vuecho.doc-post .toc-mobile {
        display: block; margin: 0 0 1.5rem; background: var(--rye-bg, #fff);
        border: 1px solid var(--rye-border, #e2e8f0); border-radius: 10px; overflow: hidden;
    }
    body.theme-vuecho.doc-post .toc-mobile-header {
        display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem;
        background: var(--rye-hover, #f8fafc); border-bottom: 1px solid var(--rye-border, #e2e8f0); cursor: pointer;
    }
    body.theme-vuecho.doc-post .toc-mobile-title { font-size: .875rem; font-weight: 600; color: var(--rye-text, #2c3e50); }
    body.theme-vuecho.doc-post .toc-mobile-toggle { background: none; border: none; cursor: pointer; color: var(--rye-muted, #64748b); font-size: 14px; transition: transform .2s; }
    body.theme-vuecho.doc-post .toc-mobile.collapsed .toc-mobile-toggle { transform: rotate(-90deg); }
    body.theme-vuecho.doc-post .toc-mobile.collapsed .toc-mobile-body { display: none; }
    body.theme-vuecho.doc-post .toc-mobile-body { padding: .5rem 1rem 1rem; }
    body.theme-vuecho.doc-post .toc-mobile-body .toc-list { list-style: none; margin: 0; padding: 0; }
    body.theme-vuecho.doc-post .toc-mobile-body .toc-list ul.toc-sub { list-style: none; margin: 0 0 0 14px; padding-left: 10px; border-left: 1px solid var(--rye-border, #eaecef); }
    body.theme-vuecho.doc-post .toc-mobile-body .toc-list a { display: block; padding: 4px 8px; border-radius: 6px; color: var(--rye-muted, #57606a); font-size: 13px; text-decoration: none; }
    body.theme-vuecho.doc-post .toc-mobile-body .toc-list li.toc-h3 > a { padding-left: 18px; }
    body.theme-vuecho.doc-post .toc-mobile-body .toc-list li.toc-h4 > a { padding-left: 30px; font-size: 12px; }
    body.theme-vuecho.doc-post .toc-mobile-body .toc-list li.toc-h5 > a { padding-left: 42px; font-size: 12px; }
    body.theme-vuecho.doc-post .toc-mobile-body .toc-list li.toc-h6 > a { padding-left: 54px; font-size: 11.5px; }
    body.theme-vuecho.doc-post .toc-mobile-body .toc-list a.active { color: var(--rye-green, #2d8a5f); font-weight: 600; background: rgba(62,175,124,.12); }
}

/* ===== 文档首页双栏（左目录树 + 右文章列表）===== */
body.theme-vuecho.doc-home .docs-home-grid{display:flex;align-items:flex-start;gap:20px;margin-top:10px}
body.theme-vuecho.doc-home .docs-home-main{flex:1;min-width:0;margin-left:300px}
body.theme-vuecho.doc-home .docs-home-main .doc-list-item{background:#fff;border:1px solid var(--rye-border,#eaecef);border-radius:10px;padding:14px 18px;margin-bottom:10px;display:flex;align-items:center;gap:14px;text-decoration:none;transition:box-shadow .15s,transform .15s}
body.theme-vuecho.doc-home .docs-home-main .doc-list-item:hover{box-shadow:0 6px 18px rgba(0,0,0,.06);transform:translateY(-1px)}
@media(max-width:900px){
  body.theme-vuecho.doc-home .docs-home-main{margin-left:0}
}

/* Hero 角标 */
body.theme-vuecho .hero-badge{display:inline-block;background:rgba(44,62,80,.08);color:#2c3e50;font-size:13px;font-weight:600;padding:5px 16px;border-radius:20px;margin-bottom:14px;letter-spacing:.04em}
body.theme-vuecho .hero-text .hero-badge{margin-left:0}

/* ===== 文档首页：Hero/特性给 fixed 侧栏让出左边距 ===== */
body.theme-vuecho.doc-home .hero-section{padding-left:320px}
body.theme-vuecho.doc-home .features-section{padding-left:320px}
@media(max-width:900px){
  body.theme-vuecho.doc-home .hero-section,
  body.theme-vuecho.doc-home .features-section{padding-left:20px}
}

/* ===== 文档首页：左目录树只在「学习目录」section 内（不贯穿全页），Hero/特性全宽 ===== */
body.theme-vuecho.doc-home .docs-sidebar{
  position: static;
  width: 280px;
  min-width: 280px;
  height: auto;
  border-right: 1px solid var(--rye-border, #eaecef);
  background: var(--rye-sidebar, #fff);
  top: auto; left: auto; z-index: auto;
}
body.theme-vuecho.doc-home .docs-home-grid{display:flex;align-items:flex-start;gap:24px;margin-top:10px}
body.theme-vuecho.doc-home .docs-home-main{flex:1;min-width:0;margin-left:0}
body.theme-vuecho.doc-home .hero-section,
body.theme-vuecho.doc-home .features-section{padding-left:0!important}
@media(max-width:900px){
  body.theme-vuecho.doc-home .docs-home-grid{flex-direction:column}
  body.theme-vuecho.doc-home .docs-sidebar{width:100%;min-width:0;border-right:none;border-bottom:1px solid var(--rye-border, #eaecef)}
}

/* ===== 文档页：关闭右侧 TOC 后正文撑满右边 ===== */
body.theme-vuecho.doc-post.no-toc .docs-main{margin-right:0;width:auto;max-width:none}
body.theme-vuecho.doc-post.no-toc .toc-desktop-toggle{display:none}
