* { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; border-radius: 0 !important; margin: 0 !important; padding: 0 !important; overflow-x: clip; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    font-size: clamp(14px, 0.5vw + 13px, 16px);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 70px 0 0 0 !important;
    overflow-x: clip;
}

/* CSS 变量定义 */
:root {
    /* 主色 */
    --primary: #0f52ba;
    --primary-light: #42a5f5;
    --primary-dark: #0d47a1;
    /* 强调�?*/
    --accent-purple: #6366f1;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ff6b6b;
    /* 文字颜色 */
    --text-primary: #1a1a2e;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    /* 边框颜色 */
    --border-light: #e2e8f0;
    --border-medium: #e8e8e8;
    --border-dark: #d1d5db;
    --border-color: #e2e8f0;
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 6px 20px rgba(15,82,186,0.12);
    --shadow-primary: 0 4px 15px rgba(15,82,186,0.3);
    /* 背景色（供组件使用，减少深色模式重复选择器）*/
    --bg-body: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --bg-subtle: #f8fafc;
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 25px;
    /* 序号排名颜色 */
    --rank-default: linear-gradient(135deg, #ff6b6b, #ff8e53);
    --rank-1: linear-gradient(135deg, #e74c3c, #c0392b);
    --rank-2: linear-gradient(135deg, #f39c12, #d68910);
    --rank-3: linear-gradient(135deg, #27ae60, #1e8449);
    --rank-4: linear-gradient(135deg, #2980b9, #1a5276);
    --rank-5: linear-gradient(135deg, #8e44ad, #6c3483);
    --rank-6: linear-gradient(135deg, #16a085, #0e6655);
    --rank-7: linear-gradient(135deg, #d35400, #a04000);
    --rank-8: linear-gradient(135deg, #2c3e50, #1a252f);
    --rank-9: linear-gradient(135deg, #7f8c8d, #566573);
    --rank-10: linear-gradient(135deg, #e91e63, #c2185b);
}

/* 深色模式变量覆盖 */
[data-theme="dark"] {
    --primary: #4a90d9;
    --primary-light: #64b5f6;
    --primary-dark: #1565c0;
    --accent-purple: #818cf8;
    --accent-green: #34d399;
    --accent-orange: #fbbf24;
    --accent-red: #f87171;
    --text-primary: #e2e8f0;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    --border-light: rgba(255,255,255,0.1);
    --border-medium: rgba(255,255,255,0.15);
    --border-dark: rgba(255,255,255,0.2);
    --border-color: rgba(255,255,255,0.1);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 2px 15px rgba(0,0,0,0.3);
    --shadow-lg: 0 6px 20px rgba(0,0,0,0.4);
    /* 背景色（深色模式值）*/
    --bg-body: #171923;
    --bg-card: #1a202c;
    --bg-input: #2d3748;
    --bg-subtle: #171923;
}

[data-theme="dark"] body {
    background-color: var(--bg-body);
    background-image: none !important;
}

[data-theme="dark"] main { background: var(--bg-body) !important; }

[data-theme="dark"] .hero-quick-wrapper,
[data-theme="dark"] .featured-marquee-wrapper,
[data-theme="dark"] .category-articles,
[data-theme="dark"] .main-content,
[data-theme="dark"] .article-content,
[data-theme="dark"] article.article-card,
[data-theme="dark"] .sidebar-widget,
[data-theme="dark"] .profile-widget,
[data-theme="dark"] .pagination a,
[data-theme="dark"] .pagination span,
[data-theme="dark"] .copyright-box,
[data-theme="dark"] .related-articles .related-card,
[data-theme="dark"] .share-bar,
[data-theme="dark"] .comment-card,
[data-theme="dark"] .comment-child,
[data-theme="dark"] .latest-hero-grid,
[data-theme="dark"] .lh-list-others .lh-list-item,
[data-theme="dark"] .quick-access-section,
[data-theme="dark"] .featured-marquee-card,
[data-theme="dark"] .default-article-item,
[data-theme="dark"] .news-list-item,
[data-theme="dark"] .live-dense-card,
[data-theme="dark"] .software-card-item,
[data-theme="dark"] .tutorial-side-card,
[data-theme="dark"] .tutorial-bottom-card,
[data-theme="dark"] .no-content,
[data-theme="dark"] .article-body pre,
[data-theme="dark"] footer {
    background-color: var(--bg-card);
    color: #e2e8f0;
}

[data-theme="dark"] .article-meta,
[data-theme="dark"] .meta-item,
[data-theme="dark"] .fmc-meta,
[data-theme="dark"] .lh-list-first-meta,
[data-theme="dark"] .default-article-meta,
[data-theme="dark"] .software-card-meta,
[data-theme="dark"] .tutorial-meta,
[data-theme="dark"] .live-dense-card-footer { color: #a0aec0; }

[data-theme="dark"] .meta-item i { color: var(--accent-color, #60a5fa); }
[data-theme="dark"] .meta-item a { color: var(--accent-color, #60a5fa); }

[data-theme="dark"] .news-list-title { color: #e2e8f0; }

[data-theme="dark"] a,
[data-theme="dark"] .article-title a,
[data-theme="dark"] .sidebar-widget a { color: #93c5fd; }

[data-theme="dark"] a:hover,
[data-theme="dark"] .article-title a:hover { color: #60a5fa; }

[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 { color: #f1f5f9; }

[data-theme="dark"] .comment-text,
[data-theme="dark"] .comment-content p { color: #cbd5e1; }

[data-theme="dark"] .widget-title { border-bottom-color: rgba(255,255,255,0.1); }

[data-theme="dark"] .article-body pre code { color: #e2e8f0; }

[data-theme="dark"] .back-to-top { background-color: var(--bg-input); color: #e2e8f0; }

[data-theme="dark"] .auth-modal-card { background-color: var(--bg-card); }

[data-theme="dark"] .auth-modal-card input[type="text"],
[data-theme="dark"] .auth-modal-card input[type="email"],
[data-theme="dark"] .auth-modal-card input[type="password"] {
    background-color: #2d3748;
    border-color: rgba(255,255,255,0.1);
    color: #e2e8f0;
}

[data-theme="dark"] .code-copy-btn { background: var(--bg-input); color: #cbd5e1; }

/* ===== 暗黑模式补充修复 ===== */
[data-theme="dark"] .submenu { background: var(--bg-card); box-shadow: 0 8px 25px rgba(0,0,0,0.4); }
[data-theme="dark"] .submenu li a { color: #cbd5e1; }
[data-theme="dark"] .submenu li a:hover { background: rgba(255,255,255,0.1); color: #93c5fd; }
[data-theme="dark"] .page-wrapper { background: var(--bg-card); color: #e2e8f0; }
[data-theme="dark"] .page-wrapper .page-header,
[data-theme="dark"] .page-wrapper .page-body,
[data-theme="dark"] .page-wrapper .comments-section { background: transparent; }
[data-theme="dark"] .page-title { color: #f1f5f9; }
[data-theme="dark"] .article-body,
[data-theme="dark"] .page-body { color: #cbd5e1; }
[data-theme="dark"] .article-body p,
[data-theme="dark"] .page-body p { color: #cbd5e1; }
[data-theme="dark"] #comment-form { background: var(--bg-body); }
[data-theme="dark"] .page-wrapper #comment-form { background: var(--bg-body); }
[data-theme="dark"] #comment-form form textarea,
[data-theme="dark"] #comment-form form input[type="text"],
[data-theme="dark"] #comment-form form input[type="email"] { background: var(--bg-input); border-color: rgba(255,255,255,0.1); color: #e2e8f0; }
[data-theme="dark"] #comment-form form textarea:focus,
[data-theme="dark"] #comment-form form input:focus { border-color: #4a90d9; }
[data-theme="dark"] #comment-form form textarea::placeholder,
[data-theme="dark"] #comment-form form input::placeholder { color: #718096; }
[data-theme="dark"] .comment-title { color: #e2e8f0; }
[data-theme="dark"] .comment-card .comment-author,
[data-theme="dark"] .comment-child b { color: #e2e8f0; }
[data-theme="dark"] .comment-card .comment-text,
[data-theme="dark"] .comment-child .comment-content { color: #cbd5e1; }
[data-theme="dark"] .comment-card { border-bottom-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .comment-child { border-left-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .comment-avatar::after { border-color: #1a202c; }
[data-theme="dark"] .cancel-reply-btn { background: var(--bg-input); color: #a0aec0; }
[data-theme="dark"] .cancel-reply-btn:hover { background: #3a4a5e; }
[data-theme="dark"] .reply-btn { color: #93c5fd; }
[data-theme="dark"] .reply-btn:hover { color: #60a5fa; }
[data-theme="dark"] .attachment-inline { background: var(--bg-card); border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .attachment-inline:hover { border-color: #4a90d9; }
[data-theme="dark"] .attach-inline-name { color: #e2e8f0; }
[data-theme="dark"] .attach-inline-desc { color: #a0aec0; }
[data-theme="dark"] .share-bar { border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .share-label { color: #a0aec0; }
[data-theme="dark"] .share-btn { color: #a0aec0; border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .share-btn:hover { background: rgba(255,255,255,0.1); color: #e2e8f0; }
[data-theme="dark"] .related-articles h4 { color: #e2e8f0; }
[data-theme="dark"] .related-card .related-title { color: #cbd5e1; }
[data-theme="dark"] .related-card:hover .related-title { color: #93c5fd; }
[data-theme="dark"] .article-nav a { color: #93c5fd; }
[data-theme="dark"] .article-nav a:hover { color: #60a5fa; }
[data-theme="dark"] .news-list-rank { color: #a0aec0; }
[data-theme="dark"] .news-list-date { color: #718096; }
[data-theme="dark"] .tutorial-main-card .tutorial-meta { color: #a0aec0; }
[data-theme="dark"] .tutorial-side-info h4 a { color: #e2e8f0; }
[data-theme="dark"] .tutorial-side-info p,
[data-theme="dark"] .tutorial-bottom-card-body p { color: #a0aec0; }
[data-theme="dark"] .live-dense-card h4 a { color: #e2e8f0; }
[data-theme="dark"] .software-card-info h4 { color: #e2e8f0; }
[data-theme="dark"] .software-card-info p { color: #a0aec0; }
[data-theme="dark"] .default-article-info h4 { color: #e2e8f0; }
[data-theme="dark"] .default-article-item:hover .default-article-info h4 { color: #93c5fd; }
[data-theme="dark"] .default-article-info p { color: #a0aec0; }
[data-theme="dark"] .article-card .article-title a { color: #e2e8f0; }
[data-theme="dark"] .article-card .article-title a:hover { color: #93c5fd; }
[data-theme="dark"] .article-card .article-meta .article-meta-item span { color: #a0aec0; }
[data-theme="dark"] .article-card .article-category-tag { background: rgba(255,255,255,0.1); color: #93c5fd; }
[data-theme="dark"] .lh-list-others .lh-list-item h4 a { color: #e2e8f0; }
[data-theme="dark"] .lh-list-others .lh-list-item:hover h4 a { color: #93c5fd; }
[data-theme="dark"] .featured-marquee-card .fmc-title { color: #e2e8f0; }
[data-theme="dark"] .featured-marquee-card .fmc-title:hover { color: #93c5fd; }
[data-theme="dark"] .fmc-meta { color: #a0aec0; }
[data-theme="dark"] .fmc-sort-tag { background: rgba(255,255,255,0.1); color: #93c5fd; }
[data-theme="dark"] .lh-carousel-tag { background: rgba(255,255,255,0.1); color: #93c5fd; }
[data-theme="dark"] .quick-access-item span { color: #e2e8f0; }
[data-theme="dark"] .quick-access-item:hover span { color: #ffffff; }
[data-theme="dark"] .category-block-header h3 { color: #e2e8f0; }
[data-theme="dark"] .category-block-header a { color: #93c5fd; }
[data-theme="dark"] .category-block-header a:hover { color: #60a5fa; }
[data-theme="dark"] .live-dense-card-footer span { color: #a0aec0; }
[data-theme="dark"] .tutorial-meta span { color: #a0aec0; }
[data-theme="dark"] .software-card-meta span { color: #a0aec0; }
[data-theme="dark"] .copyright-info label { color: #a0aec0; }
[data-theme="dark"] .copyright-info span { color: #cbd5e1; }
[data-theme="dark"] .copyright-copy { color: #a0aec0; border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .copyright-copy:hover { background: rgba(255,255,255,0.1); color: #e2e8f0; }
[data-theme="dark"] .no-content p { color: #718096; }
[data-theme="dark"] .pagination a,
[data-theme="dark"] .pagination span { border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .auth-modal-card input[type="text"],
[data-theme="dark"] .auth-modal-card input[type="email"],
[data-theme="dark"] .auth-modal-card input[type="password"] { background: var(--bg-body); border-color: rgba(255,255,255,0.1); color: #e2e8f0; }
[data-theme="dark"] .article-body h1, [data-theme="dark"] .page-body h1,
[data-theme="dark"] .article-body h2, [data-theme="dark"] .page-body h2,
[data-theme="dark"] .article-body h3, [data-theme="dark"] .page-body h3,
[data-theme="dark"] .article-body h4, [data-theme="dark"] .page-body h4,
[data-theme="dark"] .article-body h5, [data-theme="dark"] .page-body h5,
[data-theme="dark"] .article-body h6, [data-theme="dark"] .page-body h6 { color: #f1f5f9; }
[data-theme="dark"] .article-body h1, [data-theme="dark"] .page-body h1 { border-bottom-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .article-body h2, [data-theme="dark"] .page-body h2 { border-left-color: #4a90d9; }
[data-theme="dark"] .article-body li, [data-theme="dark"] .page-body li { color: #cbd5e1; }
[data-theme="dark"] .article-body blockquote, [data-theme="dark"] .page-body blockquote { background: rgba(255,255,255,0.05); color: #a0aec0; }
[data-theme="dark"] .article-body blockquote p, [data-theme="dark"] .page-body blockquote p { color: #a0aec0; }
[data-theme="dark"] .article-body code, [data-theme="dark"] .page-body code { background: rgba(255,255,255,0.1); color: #fbbf24; }
[data-theme="dark"] .article-body strong, [data-theme="dark"] .page-body strong { color: #f1f5f9; }
[data-theme="dark"] .article-body a, [data-theme="dark"] .page-body a { color: #93c5fd; }
[data-theme="dark"] .article-body a:hover, [data-theme="dark"] .page-body a:hover { border-bottom-color: #93c5fd; }
[data-theme="dark"] .article-body hr, [data-theme="dark"] .page-body hr { border-top-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .article-body table, [data-theme="dark"] .page-body table { border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .article-body td, [data-theme="dark"] .page-body td { color: #cbd5e1; border-bottom-color: rgba(255,255,255,0.1); border-right-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .article-body td:hover, [data-theme="dark"] .page-body td:hover { background: var(--bg-card); box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
[data-theme="dark"] .article-body table tbody tr:hover, [data-theme="dark"] .page-body table tbody tr:hover { background: rgba(255,255,255,0.05); }

/* ===== 深色模式 �?补充容器背景 ===== */
[data-theme="dark"] .hero-quick-inner,
[data-theme="dark"] .latest-hero-list,
[data-theme="dark"] .featured-marquee-inner,
[data-theme="dark"] .articles-section,
[data-theme="dark"] .article-tags,
[data-theme="dark"] .article-nav,
[data-theme="dark"] .related-articles,
[data-theme="dark"] .comments-section,
[data-theme="dark"] .category-block { background: var(--bg-card); border-color: rgba(255,255,255,0.1); }

/* article-content 单独处理（已有背景规则，但补全border�?*/
[data-theme="dark"] .article-content { border-color: rgba(255,255,255,0.1); }

/* 深色模式 �?文章卡片 */
[data-theme="dark"] .article-card { background: var(--bg-card); border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .article-card:hover { border-color: #4a90d9; }
[data-theme="dark"] .article-card .article-title a { color: #e2e8f0; }
[data-theme="dark"] .article-card .article-title a:hover { color: #93c5fd; }
[data-theme="dark"] .article-card .article-meta .article-meta-item span { color: #a0aec0; }
[data-theme="dark"] .article-card .article-category-tag { background: rgba(255,255,255,0.1); color: #93c5fd; }

/* 深色模式 �?最新文章列表（右侧�?*/
[data-theme="dark"] .lh-list-header { border-bottom-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .lh-list-header h3 { color: #e2e8f0; }
[data-theme="dark"] .lh-list-header a { color: #93c5fd; }
[data-theme="dark"] .lh-list-header a:hover { color: #60a5fa; }
[data-theme="dark"] .lh-list-first { background: var(--bg-body); border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .lh-list-first:hover { border-color: #4a90d9; }
[data-theme="dark"] .lh-list-first h4 { color: #e2e8f0; }
[data-theme="dark"] .lh-list-first p { color: #a0aec0; }
[data-theme="dark"] .lh-list-item:hover { background: rgba(255,255,255,0.05); }
[data-theme="dark"] .lh-list-title { color: #cbd5e1; }
[data-theme="dark"] .lh-list-date { color: #718096; }

/* 深色模式 �?快捷入口分隔�?*/
[data-theme="dark"] .hero-quick-inner .quick-access-section { border-top-color: rgba(255,255,255,0.1); }

/* 深色模式 �?热门推荐跑马�?*/
[data-theme="dark"] .featured-marquee-header h2 { color: #e2e8f0; }
[data-theme="dark"] .featured-marquee-header p { color: #a0aec0; }
[data-theme="dark"] .featured-marquee-track-wrapper::before { background: linear-gradient(to right, #1a202c, transparent); }
[data-theme="dark"] .featured-marquee-track-wrapper::after { background: linear-gradient(to left, #1a202c, transparent); }
[data-theme="dark"] .fmc-info h4 { color: #e2e8f0; }
[data-theme="dark"] .fmc-info h4:hover { color: #93c5fd; }

/* 深色模式 �?CMS分类板块 */
[data-theme="dark"] .category-block-header { border-bottom-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .category-block-header h3 { color: #e2e8f0; }
[data-theme="dark"] .live-dense-card { background: var(--bg-body); border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .live-dense-card:hover { border-color: #4a90d9; }
[data-theme="dark"] .live-dense-card-content h4 a { color: #e2e8f0; }
[data-theme="dark"] .live-dense-card-content h4 a:hover { color: #93c5fd; }
[data-theme="dark"] .live-dense-card-footer { border-top-color: rgba(255,255,255,0.1); }

/* 深色模式 �?CMS分类板块：教程布局 */
[data-theme="dark"] .tutorial-side-card { border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .tutorial-side-card:hover { border-color: #4a90d9; }
[data-theme="dark"] .tutorial-side-info h4 a { color: #e2e8f0; }
[data-theme="dark"] .tutorial-side-info h4 a:hover { color: #93c5fd; }
[data-theme="dark"] .tutorial-bottom-card { border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .tutorial-bottom-card:hover { border-color: #4a90d9; }
[data-theme="dark"] .tutorial-bottom-card-body h4 a { color: #e2e8f0; }
[data-theme="dark"] .tutorial-bottom-card-body h4 a:hover { color: #93c5fd; }

/* 深色模式 �?CMS分类板块：软件布局 */

/* 深色模式 �?侧边栏评论区 */
[data-theme="dark"] .comment-avatar::after { border-color: #1a202c; }

/* 深色模式 �?文章标签 */
[data-theme="dark"] .article-tags h4 { color: #e2e8f0; }
[data-theme="dark"] .article-tags .tag-item { background: var(--bg-body); border-color: rgba(255,255,255,0.1); color: #93c5fd; }
[data-theme="dark"] .article-tags .tag-item:hover { background: #4a90d9; color: #fff; border-color: #4a90d9; }

/* 深色模式 �?文章导航（上一�?下一篇） */
[data-theme="dark"] .article-nav .neighbor-link { background: var(--bg-body); color: #cbd5e1; }
[data-theme="dark"] .article-nav .neighbor-link:hover { background: rgba(255,255,255,0.05); color: #93c5fd; }

/* 深色模式 �?相关文章 */
[data-theme="dark"] .related-articles h4 { color: #e2e8f0; }
[data-theme="dark"] .related-card .related-title { color: #cbd5e1; }
[data-theme="dark"] .related-card:hover .related-title { color: #93c5fd; }

/* 深色模式 �?评论�?*/
[data-theme="dark"] .comments-section h4 { color: #e2e8f0; }
[data-theme="dark"] .comment-card .comment-text { color: #cbd5e1; }
[data-theme="dark"] .cancel-reply-btn { background: var(--bg-input); color: #a0aec0; }
[data-theme="dark"] .cancel-reply-btn:hover { background: #3a4a5e; }
[data-theme="dark"] .reply-btn { border-color: rgba(255,255,255,0.1); color: #a0aec0; }
[data-theme="dark"] .reply-btn:hover { border-color: #4a90d9; color: #93c5fd; background: rgba(255,255,255,0.05); }

/* 深色模式 �?联系�?*/

/* 深色模式 �?分类页传统列�?*/

/* 深色模式 �?侧边栏挂件内部文�?*/
[data-theme="dark"] .widget-title { color: #e2e8f0; border-bottom-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .hot-article-item .hot-article-title a,
[data-theme="dark"] .latest-article-title a { color: #cbd5e1; }
[data-theme="dark"] .hot-article-item .hot-article-title:hover a { color: #93c5fd; }
[data-theme="dark"] .latest-article-item { border-bottom-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .latest-article-item:hover .latest-article-title a { color: #93c5fd; }
[data-theme="dark"] .hot-comment-item { border-bottom-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .hot-comment-item .hot-comment-title { color: #e2e8f0; }
[data-theme="dark"] .hot-comment-item .hot-comment-title:hover { color: #93c5fd; }
[data-theme="dark"] .microblog-item { border-bottom-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .microblog-text { color: #cbd5e1; }
[data-theme="dark"] .profile-name { color: #e2e8f0; }
[data-theme="dark"] .profile-stats { border-top-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .profile-desc { color: #a0aec0; }
[data-theme="dark"] .category-item { border-bottom-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .category-link { color: #cbd5e1; }
[data-theme="dark"] .category-subitem a { color: #a0aec0; }
[data-theme="dark"] .category-subitem a:hover { color: #93c5fd; }
[data-theme="dark"] .tag-item { background: var(--bg-body); color: #a0aec0; }
[data-theme="dark"] .tag-item:hover { background: rgba(255,255,255,0.1); color: #93c5fd; }
[data-theme="dark"] .archive-item { background: var(--bg-body); }
[data-theme="dark"] .archive-item a { color: #cbd5e1; }
[data-theme="dark"] .archive-item a:hover { color: #93c5fd; }
[data-theme="dark"] .link-item { background: var(--bg-body); }
[data-theme="dark"] .link-item a { color: #cbd5e1; }
[data-theme="dark"] .link-item a:hover { color: #93c5fd; }
[data-theme="dark"] .pagination a:hover { color: #93c5fd; background: rgba(255,255,255,0.1); border-color: #4a90d9; }
[data-theme="dark"] .sidebar-search input { background: var(--bg-input); border-color: rgba(255,255,255,0.1); color: #e2e8f0; }

/* 深色模式 — 文章头部、面包屑 */
[data-theme="dark"] .article-header h1 { color: #f1f5f9; }
[data-theme="dark"] .article-header .article-meta { border-top-color: rgba(255,255,255,0.1); }

/* 深色模式 �?日历挂件 */

/* 深色模式 �?移动端菜�?*/
@media (max-width: 768px) {
    [data-theme="dark"] .nav-links { background: var(--bg-card); }
    [data-theme="dark"] .nav-links a { color: #cbd5e1; }
    [data-theme="dark"] .nav-links a:hover,
    [data-theme="dark"] .nav-links a.active { color: #93c5fd; }
    [data-theme="dark"] .nav-item > a { border-bottom-color: rgba(255,255,255,0.1); }
}

[data-theme="dark"] .share-wechat-modal-content { background: var(--bg-card); }
[data-theme="dark"] .share-wechat-modal-content h4 { color: #e2e8f0; }
[data-theme="dark"] .share-wechat-modal-close { background: rgba(255,255,255,0.1); color: #a0aec0; }
[data-theme="dark"] .share-wechat-modal-close:hover { background: rgba(255,255,255,0.15); color: #e2e8f0; }
[data-theme="dark"] .share-wechat-tip { color: #a0aec0; }
[data-theme="dark"] .share-wechat-qr img { border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .copyright-qr img { border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .copyright-row { color: #a0aec0; }
[data-theme="dark"] .copyright-row label { color: #cbd5e1; }
[data-theme="dark"] .copyright-declare { border-top-color: rgba(255,255,255,0.1); color: #718096; }


/* 确保 article-body 内部段落文字在暗色模式下正确 */
[data-theme="dark"] .article-body p,
[data-theme="dark"] .page-body p { color: #cbd5e1; }
[data-theme="dark"] .article-body,
[data-theme="dark"] .page-body { color: #cbd5e1; }

/* 深色模式 — header-is-light 变体（浅色头部） */
[data-theme="dark"] .header-is-light .search-box form { background: var(--bg-card); border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .header-is-light .search-box input { color: #e2e8f0; }
[data-theme="dark"] .header-is-light .search-box input:-webkit-autofill,
[data-theme="dark"] .header-is-light .search-box input:-webkit-autofill:hover,
[data-theme="dark"] .header-is-light .search-box input:-webkit-autofill:focus,
[data-theme="dark"] .header-is-light .search-box input:-webkit-autofill:active { -webkit-box-shadow: 0 0 0 1000px #1a202c inset; -webkit-text-fill-color: #e2e8f0; }
[data-theme="dark"] .header-is-light .search-box button { background: rgba(255,255,255,0.1); color: #a0aec0; border-left-color: rgba(255,255,255,0.15); }

/* 深色模式 �?媒体附件容器 */
[data-theme="dark"] .attachment-media-container { background: var(--bg-body); border-color: rgba(255,255,255,0.1); }

/* 深色模式 �?内联附件名称 */
[data-theme="dark"] .attach-inline-name { color: #e2e8f0; }

/* 深色模式 �?附件区块头部 */

/* 深色模式 �?附件名称 */


/* 深色模式 �?个人资料区块 */

/* 深色模式 �?登录弹窗 */
[data-theme="dark"] .auth-modal-head h3 { color: #e2e8f0; }
[data-theme="dark"] .auth-modal-close:hover { background: rgba(255,255,255,0.1); color: #a0aec0; }
[data-theme="dark"] .auth-form-row input { background: var(--bg-input); border-color: rgba(255,255,255,0.1); color: #e2e8f0; }
[data-theme="dark"] .auth-form-row input:focus { border-color: #4a90d9; }

/* 深色模式 �?自定义文本小工具 */
[data-theme="dark"] .custom-text-content { color: #a0aec0; }


/* 深色模式 �?default板块文章标题 */
[data-theme="dark"] .default-article-info h4 { color: #e2e8f0; }

/* 深色模式 �?default板块悬浮 */
[data-theme="dark"] .default-article-item:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }

/* 深色模式 �?news列表标题 */
[data-theme="dark"] .news-list-title { color: #cbd5e1; }

/* 深色模式 �?news列表悬浮 */
[data-theme="dark"] .news-list-item:hover { background: rgba(255,255,255,0.05); }

/* 深色模式 �?software卡片标题 */
[data-theme="dark"] .software-card-info h4 { color: #e2e8f0; }

/* 深色模式 �?software卡片悬浮 */
[data-theme="dark"] .software-card-item:hover { background: var(--bg-card); border-color: #4a90d9; }

/* 深色模式 �?附件区块容器 */

/* 深色模式 �?侧边栏搜索框 */
[data-theme="dark"] .sidebar-search { border-color: rgba(255,255,255,0.1); }

/* 深色模式 �?热门文章列表项分隔线 */
[data-theme="dark"] .hot-article-item { border-bottom-color: rgba(255,255,255,0.1); }

/* 深色模式 �?日历悬浮 */

/* 深色模式 �?文章表格单元格悬浮（覆盖更具体的选择器） */
[data-theme="dark"] .article-body td:not(:last-child):hover,
[data-theme="dark"] .page-body td:not(:last-child):hover { background: var(--bg-card); }
[data-theme="dark"] .article-body thead,
[data-theme="dark"] .page-body thead { background: linear-gradient(135deg, #1a3a7a 0%, #2d6fc4 100%); }

/* ===== 深色模式 — 第三轮补充修复 ===== */

/* hero-quick-inner: 首页最新文章区+快捷入口的白色内层容�?*/
[data-theme="dark"] .hero-quick-inner { background: var(--bg-card); border-color: rgba(255,255,255,0.1); }

/* latest-hero-list: 首页右侧"最新文�?面板 */
[data-theme="dark"] .latest-hero-list { background: var(--bg-card); border-color: rgba(255,255,255,0.1); }

/* tutorial-side-card / tutorial-bottom-card: CMS教程布局卡片背景 */
[data-theme="dark"] .tutorial-side-card { background: var(--bg-body); border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .tutorial-bottom-card { background: var(--bg-body); border-color: rgba(255,255,255,0.1); }

/* software-card-item: CMS软件布局卡片 */
[data-theme="dark"] .software-card-item { background: var(--bg-body); border-color: rgba(255,255,255,0.1); }

/* 分享到QQ空间按钮 (黄色背景 + 深色文字) */
[data-theme="dark"] .share-qzone { color: #1a202c; }

/* 需要登录的附件背景渐变 */
[data-theme="dark"] .attachment-need-login { background: var(--bg-card); border-color: rgba(255,255,255,0.15); }
[data-theme="dark"] .attachment-need-login .attach-inline-desc { color: #fbbf24; }

/* 单页 page-wrapper 背景覆盖（需匹配 light 模式的 !important + 更高特异性） */
[data-theme="dark"] .main-content.container > .page-wrapper,
[data-theme="dark"] .page-content.container > .page-wrapper { background: var(--bg-card) !important; border-color: rgba(255,255,255,0.1) !important; }
[data-theme="dark"] .page-wrapper #comment-form { background: var(--bg-body); }
[data-theme="dark"] .page-meta { color: var(--text-secondary, #a0aec0); border-top-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .page-meta i { color: var(--accent-color, #60a5fa); }

main, .page-wrapper { background: transparent !important; margin: 0 !important; padding: 0 !important; }
.page-wrapper { flex: 1; }
main { width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* Header */
header { background: var(--header-bg, #2a2a2a); position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 100; border-radius: 0 !important; }
.header-content { display: flex; align-items: center; padding: 15px 20px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { width: 40px; height: 40px; border-radius: var(--radius-md); }
.logo .logo-text { font-size: 20px; color: var(--header-text, #fff); margin: 0; font-weight: 700; font-family: 'SimHei', 'Microsoft YaHei', sans-serif; }
.logo .logo-text a { color: var(--header-text, #fff); text-decoration: none; }
.nav-links { display: flex; gap: 24px; align-items: center; flex: 1; justify-content: center; }
.nav-links a { text-decoration: none; color: color-mix(in srgb, var(--header-text, #fff) 85%, transparent); font-weight: 600; transition: color 0.3s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--header-text, #fff); }

/* 登录/个人中心 */
.nav-login-box { display: flex; align-items: center; flex-shrink: 0; }
.nav-login-box .nav-login { text-decoration: none; color: color-mix(in srgb, var(--header-text, #fff) 85%, transparent); font-weight: normal; font-size: 14px; transition: color 0.3s; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.nav-login-box .nav-login i { font-size: 15px; }
.nav-login-box .nav-login:hover { color: var(--header-text, #fff); }

/* 导航下拉菜单 */
.nav-item { position: relative; white-space: nowrap; }
.nav-item > a { padding: 8px 0; display: inline-block; }
.nav-item.has-submenu > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.nav-item.has-submenu > a::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--header-text, #fff);
    transition: transform 0.3s ease;
    margin-left: 2px;
}
.nav-item.has-submenu:hover > a::after {
    transform: rotate(180deg);
    border-top-color: var(--header-text, #fff);
}
/* 透明桥接区：hover时延伸到二级菜单，防止断开 */
.nav-item.has-submenu::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
    pointer-events: none;
}
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: -4px;
    min-width: 160px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-radius: var(--radius-md);
    padding: 10px 0;
    z-index: 1000;
    list-style: none;
}
.nav-item.has-submenu:hover .submenu {
    display: block;
}
.submenu li { margin: 0; }
.submenu li a {
    display: block;
    padding: 10px 18px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s;
}
.submenu li a:hover {
    background: #e8f4fd;
    color: #0f52ba;
}
.search-box { position: relative; min-width: 0; }
.search-box form { position: relative; display: flex; align-items: center; min-width: 0; background: var(--header-bg, #2a2a2a); border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius-xl); overflow: hidden; }
.search-box input { padding: 8px 14px; border: none; width: 100%; min-width: 60px; font-size: 13px; outline: none; transition: all 0.3s; background: transparent; color: var(--header-text, #fff); }
.search-box input:-webkit-autofill,
.search-box input:-webkit-autofill:hover,
.search-box input:-webkit-autofill:focus,
.search-box input:-webkit-autofill:active { -webkit-box-shadow: 0 0 0 1000px var(--header-bg, #2a2a2a) inset !important; -webkit-text-fill-color: var(--header-text, #fff) !important; }
.search-box input::placeholder { color: rgba(255,255,255,0.55); }
.search-box input:focus,
.search-box input:focus-visible { background: transparent; outline: none !important; }
.search-box button { background: rgba(255,255,255,0.15); border: none; cursor: pointer; padding: 8px 14px; color: var(--header-text, #fff); font-size: 13px; transition: all 0.3s; border-left: 1px solid rgba(255,255,255,0.2); }
.search-box button:hover { background: rgba(255,255,255,0.25); }
/* 浅色导航栏背景下的搜索框 */
.header-is-light .search-box form { background: #fff; border: 1px solid #d1d5db; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.header-is-light .search-box input { color: #1f2937; }
.header-is-light .search-box input:-webkit-autofill,
.header-is-light .search-box input:-webkit-autofill:hover,
.header-is-light .search-box input:-webkit-autofill:focus,
.header-is-light .search-box input:-webkit-autofill:active { -webkit-box-shadow: 0 0 0 1000px #fff inset !important; -webkit-text-fill-color: #1f2937 !important; }
.header-is-light .search-box input::placeholder { color: #9ca3af; }
.header-is-light .search-box button { background: #f3f4f6; color: #374151; border-left: 1px solid #d1d5db; }
.header-is-light .search-box button:hover { background: #e5e7eb; }

/* Footer */
footer { background: #333; color: #fff; padding: 30px 0; width: 100%; }
.footer-content { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-content p { margin: 10px 0; color: #999; }
.footer-links { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #444; }
.footer-links h4 { font-size: 16px; font-weight: 600; color: #fff; margin: 0; line-height: 28px; }
.footer-links-list { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; }
.footer-links-list a { color: #999; text-decoration: none; padding: 6px 14px; background: #444; border-radius: var(--radius-xl); font-size: 14px; transition: all 0.3s; line-height: 16px; }
.footer-links-list a:hover { background: #0f52ba; color: #fff; }
.footer-copyright { text-align: center; }
.footer-copyright p { margin: 6px 0; color: #999; font-size: 12px; }
.footer-beian { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.footer-beian a { color: #999; text-decoration: none; font-size: 12px; transition: color 0.3s; }
.footer-beian a:hover { color: #fff; }
.beian-icon { width: 14px; height: 14px; vertical-align: middle; margin-right: 4px; }

/* 页脚快捷导航 — 无标题，| 分隔，与版权信息字号一致 */
.footer-quick-nav { text-align: center; margin-top: 6px; }
.footer-quick-nav a { color: #999; font-size: 12px; text-decoration: none; transition: color 0.3s; }
.footer-quick-nav a:hover { color: #fff; }
.footer-quick-nav .nav-sep { color: #555; font-size: 12px; margin: 0 5px; user-select: none; }

/* 归档/标签页通用标题描述 */
.page-subtitle { color: var(--text-secondary); font-size: 14px; letter-spacing: 0.3px; }

/* 归档年份卡片 — 可折叠 */
.archive-year { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px; border: 1px solid var(--border-light); transition: box-shadow .3s; }
.archive-year:last-child { margin-bottom: 0; }
.archive-year:hover { box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.archive-year .year-header {
    font-size: 20px; font-weight: 700; color: var(--text-primary);
    padding: 14px 18px; background: var(--bg-subtle);
    display: flex; align-items: center; gap: 10px;
    border-left: 4px solid var(--primary); line-height: 1.4;
    cursor: pointer; user-select: none; transition: background .2s;
}
.archive-year .year-header:hover { background: var(--bg-card); }
.archive-year .year-header .toggle-icon { font-size: 12px; color: var(--text-muted); flex-shrink: 0; width: 16px; text-align: center; transition: color .2s; }
.archive-year .year-header:hover .toggle-icon { color: var(--primary); }
.archive-year .year-header .year-label { flex: 1; }
.archive-year .year-header .year-count {
    font-size: 13px; font-weight: 500; color: var(--text-secondary);
    background: var(--bg-card); padding: 2px 14px; border-radius: 20px;
    white-space: nowrap; flex-shrink: 0; line-height: 1.6;
}
.year-body { background: var(--bg-card); border-top: 1px solid var(--border-light); }
.archive-month { border-bottom: 1px solid var(--border-light); }
.archive-month:last-child { border-bottom: none; }
.month-header {
    font-size: 15px; font-weight: 600; color: var(--text-primary);
    padding: 12px 18px 12px 32px;
    display: flex; align-items: center; gap: 10px; line-height: 1.4;
    cursor: pointer; user-select: none; transition: background .2s;
}
.month-header:hover { background: var(--bg-subtle); }
.month-header .toggle-icon { font-size: 11px; color: var(--text-muted); flex-shrink: 0; width: 14px; text-align: center; transition: color .2s; }
.month-header:hover .toggle-icon { color: var(--primary); }
.month-header .month-label { flex: 1; }
.month-header .month-count {
    font-size: 12px; font-weight: 500; color: var(--primary);
    background: rgba(15,82,186,.08); padding: 2px 12px; border-radius: 20px;
    white-space: nowrap; flex-shrink: 0; line-height: 1.6;
}
.month-articles { list-style: none; padding: 0; margin: 0; }
.month-articles li {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px 10px 48px; border-radius: 8px;
    transition: all .2s; margin-bottom: 1px;
}
.month-articles li:hover { background: var(--bg-subtle); }
.month-articles li a {
    color: var(--text-primary); text-decoration: none; font-size: 14px;
    flex: 1; transition: color .2s;
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.month-articles li a .sort-badge { color: var(--primary); font-weight: 500; margin-right: 4px; }
.month-articles li a:hover { color: var(--primary); }
.month-articles li .date { font-size: 12px; font-weight: 500; color: var(--text-muted); flex-shrink: 0; margin-left: 12px; }
.month-articles li:hover .date { color: var(--primary); }

/* 标签云模式 */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 0; justify-content: center; }
.tags-cloud .tag-item {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px; background: rgba(var(--c),0.1); border-radius: var(--radius-lg);
    text-decoration: none; color: var(--text-primary); font-size: 14px;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    border: 1px solid rgba(var(--c),0.25);
}
.tags-cloud .tag-item:hover {
    background: rgb(var(--c)); color: #fff;
    transform: translateY(-3px); box-shadow: 0 6px 20px rgba(var(--c),0.3);
}
.tags-cloud .tag-item .tag-count { font-size: 12px; font-weight: 600; opacity: .65; transition: opacity .2s; }
.tags-cloud .tag-item:hover .tag-count { opacity: .95; color: rgba(255,255,255,.9); }

/* 列表模式 */
.tags-list { list-style: none; padding: 0; margin: 20px 0; }
.tags-list li {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; border-radius: 8px; transition: all .2s; margin-bottom: 2px;
}
.tags-list li::before {
    content: ""; width: 6px; height: 6px; background: rgb(var(--c));
    border-radius: 50%; flex-shrink: 0; margin-right: 12px;
    opacity: .5; transition: all .2s;
}
.tags-list li:hover::before { opacity: 1; transform: scale(1.3); }
.tags-list li:hover { background: var(--bg-subtle); }
.tags-list li a { color: var(--text-primary); text-decoration: none; font-size: 15px; flex: 1; transition: color .2s; }
.tags-list li a:hover { color: rgb(var(--c)); }
.tags-list li .tag-name { font-weight: 500; }
.tags-list li .count {
    font-size: 12px; font-weight: 600; color: rgb(var(--c));
    background: rgba(var(--c),0.08); padding: 3px 12px; border-radius: 20px;
    white-space: nowrap; transition: all .2s;
}
.tags-list li:hover .count { background: rgb(var(--c)); color: #fff; }

/* 视图切换按钮 */
.view-toggle-wrap { text-align: center; margin-bottom: 24px; }
.view-toggle-wrap .view-toggle-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 22px; border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg); cursor: pointer;
    font-size: 13px; font-weight: 600; color: #fff;
    transition: all .25s; box-shadow: 0 4px 12px rgba(15,82,186,.25);
}
.view-toggle-wrap .view-toggle-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(15,82,186,.35); }
.view-toggle-wrap .view-toggle-btn:active { transform: translateY(0); }

/* 微语广场 - 微博风格 */
.tweets-page .page-body { max-width: 680px; margin: 0 auto; }
.tweets-page.with-sidebar { flex: 1; min-width: 0; margin-right: 30px !important; margin-bottom: 40px !important; }
.tweets-sidebar-left { gap: 0 30px; }
.tweets-sidebar-left > .sidebar { order: -1; }
.tweets-sidebar-left > .tweets-page.with-sidebar { margin-right: 0 !important; }
.tweet-card {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 24px 28px; margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid var(--border-color);
    transition: box-shadow .3s, transform .3s, border-color .3s;
}
.tweet-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.1), 0 2px 12px rgba(0,0,0,0.06);
    transform: translateY(-3px); border-color: var(--primary-light);
}
.tweet-main { display: flex; gap: 14px; }
.tweet-main:hover .tweet-author { color: var(--primary-light); }
.tweet-avatar-wrap { flex-shrink: 0; }
.tweet-avatar {
    width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
    transition: box-shadow .3s;
}
.tweet-card:hover .tweet-avatar {
    animation: avatar-spin .45s ease-out;
    transform: scale(1.08);
    box-shadow: 0 0 0 3px var(--bg-card), 0 0 0 5px var(--primary-light);
}
@keyframes avatar-spin {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(360deg) scale(1.08); }
}
.tweet-body { flex: 1; min-width: 0; }
.tweet-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.tweet-author { font-size: 15px; font-weight: 600; color: var(--primary); }
.tweet-time { font-size: 12px; color: var(--text-muted); }
.tweet-content {
    font-size: 15px; line-height: 1.7; color: var(--text-primary);
    word-wrap: break-word; overflow-wrap: break-word;
    overflow: hidden; min-width: 0;
}
.tweet-content p { margin: 0 0 10px; }
.tweet-content p:last-child { margin-bottom: 0; }
.tweet-content img {
    max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 8px 0;
}
.tweet-content blockquote {
    margin: 10px 0; padding: 8px 14px; border-left: 3px solid var(--primary);
    background: var(--bg-subtle); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary); font-size: 13px;
}
.tweet-content code {
    background: var(--bg-subtle); padding: 2px 6px; border-radius: 4px;
    font-size: 13px; color: var(--primary);
}
.tweet-content pre {
    background: #1e293b; color: #e2e8f0; padding: 14px 16px;
    border-radius: var(--radius-md); overflow-x: auto; font-size: 13px; margin: 10px 0;
}
.tweet-actions {
    margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-color);
    display: flex; align-items: center; gap: 16px;
}
.tweet-action-reply {
    font-size: 13px; color: var(--text-secondary); cursor: pointer; transition: color .2s;
}
.tweet-action-reply:hover { color: var(--primary); }
.tweet-action-reply .fa-comment { color: var(--primary); }
.tweet-action-like {
    font-size: 13px; color: var(--text-secondary); cursor: pointer; transition: color .2s;
}
.tweet-action-like .fa-heart { color: var(--text-secondary); transition: color .2s; }
.tweet-action-like.liked .fa-heart,
.tweet-action-like:hover .fa-heart { color: #e74c3c; }
.tweet-action-detail {
    margin-left: auto; font-size: 13px; color: var(--text-secondary);
    text-decoration: none; transition: color .2s; display: inline-flex; align-items: center; gap: 4px;
}
.tweet-action-detail:hover { color: var(--primary); }
.tweet-action-detail i { font-size: 12px; }
.tweet-content[data-href] { cursor: pointer; }

/* 微语编辑按钮 */
.tweet-edit-btn {
    margin-left: auto; font-size: 12px; color: var(--text-muted); cursor: pointer;
    transition: color .2s; white-space: nowrap;
}
.tweet-edit-btn:hover { color: var(--primary); }
.tweet-edit-btn.editing { display: none; }

/* 内联编辑样式 */
.tweet-edit-wrap { display: flex; flex-direction: column; gap: 8px; }
.tweet-edit-textarea {
    width: 100%; min-height: 80px; padding: 10px 12px;
    border: 1px solid var(--border-color); border-radius: var(--radius-md);
    font-size: 14px; line-height: 1.6; resize: vertical;
    background: var(--bg-input); color: var(--text-primary);
    font-family: inherit;
}
.tweet-edit-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(15,82,186,.15); }
.tweet-edit-actions { display: flex; gap: 8px; justify-content: flex-end; }
.tweet-edit-save, .tweet-edit-cancel {
    padding: 6px 16px; border-radius: var(--radius-sm); font-size: 13px;
    cursor: pointer; border: 1px solid transparent; transition: all .2s;
    font-family: inherit;
}
.tweet-edit-save {
    background: var(--primary); color: #fff; border-color: var(--primary);
}
.tweet-edit-save:hover { opacity: .9; }
.tweet-edit-save:disabled { opacity: .6; cursor: not-allowed; }
.tweet-edit-cancel {
    background: transparent; color: var(--text-secondary); border-color: var(--border-color);
}
.tweet-edit-cancel:hover { background: var(--bg-subtle); color: var(--text-primary); }

/* 微语长内容展开/收回 */
.tweet-ellipsis { color: var(--text-muted); }
.tweet-content-preview { display: inline; color: var(--text-primary); }
.tweet-expand-bar { margin-top: 4px; }
.tweet-expand-btn, .tweet-collapse-btn {
    font-size: 13px; color: var(--primary); cursor: pointer;
    text-decoration: none; transition: color .2s;
}
.tweet-expand-btn:hover, .tweet-collapse-btn:hover { color: var(--primary-light); }
.tweet-expand-btn i, .tweet-collapse-btn i { font-size: 11px; margin-left: 2px; }

/* 回复区域 - 默认隐藏 */
.tweet-replies {
    padding: 16px; border-top: 1px solid var(--border-color);
    margin-top: 14px; margin-bottom: -4px;
    background: var(--bg-subtle); border-radius: 0 0 var(--radius-md) var(--radius-md);
    display: none;
}
.tweet-replies.active { display: block; }
.replies-list { display: flex; flex-direction: column; gap: 10px; }
.reply-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.reply-item.extra { display: none; }
.replies-expanded .reply-item.extra { display: flex; }
.reply-item.is-nested {
    padding-left: 28px; border-left: 2px solid var(--border-color);
    margin-top: 2px; margin-bottom: 2px;
}
.reply-item.is-nested .reply-avatar { width: 20px; height: 20px; }
.reply-avatar {
    width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.reply-body { flex: 1; min-width: 0; }
.reply-author { font-size: 12px; font-weight: 600; color: var(--primary); margin-right: 6px; }
.reply-text { font-size: 13px; color: var(--text-primary); line-height: 1.5; }
.reply-text .reply-mention { color: var(--primary); font-weight: 500; }
.reply-meta {
    display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
    flex-shrink: 0; white-space: nowrap;
}
.reply-time { font-size: 11px; color: var(--text-muted); }
.reply-reply-btn {
    font-size: 11px; color: var(--text-secondary); cursor: pointer;
    text-decoration: none; transition: color .2s; display: none;
}
.reply-item:hover .reply-reply-btn { display: inline; }
.reply-reply-btn:hover { color: var(--primary); }
.replies-expand { text-align: center; padding-top: 8px; }
.replies-expand-btn {
    background: none; border: none; color: var(--primary); font-size: 13px;
    cursor: pointer; padding: 4px 12px; border-radius: var(--radius-sm);
    transition: background .2s;
}
.replies-expand-btn:hover { background: var(--bg-subtle); }
.replies-expand-btn i { font-size: 11px; margin-left: 4px; transition: transform .2s; }
.replies-expanded .replies-expand-btn i { transform: rotate(180deg); }

/* 回复表单 - 默认隐藏 */
.reply-form {
    padding: 16px; display: none;
    background: var(--bg-subtle); border-radius: var(--radius-md);
    margin-top: 10px; border: 1px solid var(--border-color);
}
.reply-form.active { display: block; }
.reply-form-inner { display: flex; flex-direction: column; gap: 8px; }
.reply-form-anonymous .reply-form-fields { display: flex; gap: 8px; }
.reply-form-anonymous .reply-form-fields input {
    flex: 1; padding: 8px 12px; border: 1px solid var(--border-color);
    border-radius: var(--radius-md); background: #fff8ec;
    font-size: 13px; color: var(--text-primary); outline: none; transition: border-color .2s;
}
.reply-form-anonymous .reply-form-fields input:focus { border-color: var(--primary); }
.reply-form-row { display: flex; gap: 8px; align-items: flex-start; }
.reply-form-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: none; }
.reply-form-left {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; flex-shrink: 0;
}
.reply-form-inner:not(.reply-form-anonymous) { flex-direction: row; align-items: stretch; gap: 10px; }
.reply-form-inner:not(.reply-form-anonymous) .reply-form-avatar { display: block; }
.reply-form-inner:not(.reply-form-anonymous) .reply-submit { align-self: center; }
.reply-form-name { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; text-align: center; }
.reply-input {
    flex: 1; padding: 8px 12px; border: 1px solid var(--border-color);
    border-radius: var(--radius-md); background: #fff8ec;
    font-size: 13px; color: var(--text-primary); outline: none; resize: none;
    min-height: 36px; line-height: 1.5; font-family: inherit; transition: border-color .2s;
}
.reply-input:focus { border-color: var(--primary); }
.reply-submit {
    padding: 8px 18px; background: var(--primary); color: #fff;
    border: none; border-radius: var(--radius-xl); font-size: 13px;
    cursor: pointer; white-space: nowrap; transition: opacity .2s; flex-shrink: 0;
}
.reply-submit:hover { opacity: .85; }
.reply-submit:disabled { opacity: .5; cursor: not-allowed; }

/* 微语发表表单 */
.tweet-post-form {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 20px 24px; margin: 0 auto 20px;
    max-width: 680px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 2px 12px rgba(0,0,0,0.04);
    transition: box-shadow .3s, transform .3s, border-color .3s;
}
.tweet-post-form:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.1), 0 2px 12px rgba(0,0,0,0.06);
    transform: translateY(-3px); border-color: var(--primary-light);
}
.tweet-post-inner { display: flex; gap: 14px; }
.tweet-post-form:hover .tweet-post-avatar {
    animation: avatar-spin .45s ease-out;
    transform: scale(1.08);
    box-shadow: 0 0 0 3px var(--bg-card), 0 0 0 5px var(--primary-light);
}
.tweet-post-avatar {
    width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.tweet-post-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tweet-post-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.tweet-post-input {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border-color);
    border-radius: var(--radius-md); background: #fff8ec;
    font-size: 14px; color: var(--text-primary); outline: none; resize: vertical;
    min-height: 80px; line-height: 1.6; font-family: inherit; transition: border-color .2s;
}
.tweet-post-input:focus { border-color: var(--primary); }
.tweet-post-actions { display: flex; }
.tweet-post-submit {
    padding: 8px 22px; background: var(--primary); color: #fff;
    border: none; border-radius: var(--radius-xl); font-size: 14px; font-weight: 500;
    cursor: pointer; transition: opacity .2s; display: inline-flex; align-items: center; gap: 6px;
}
.tweet-post-submit:hover { opacity: .85; }
.tweet-post-submit:disabled { opacity: .5; cursor: not-allowed; }

/* 归档页深色模式 */
[data-theme="dark"] .archive-year { border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .archive-year:hover { box-shadow: 0 2px 12px rgba(0,0,0,.2); }
[data-theme="dark"] .archive-year .year-header { color: var(--text-primary); background: var(--bg-subtle); border-left-color: var(--primary-light); }
[data-theme="dark"] .archive-year .year-header:hover { background: var(--bg-card); }
[data-theme="dark"] .archive-year .year-header .year-count { color: var(--text-secondary); background: var(--bg-card); }
[data-theme="dark"] .archive-year .year-header .toggle-icon { color: var(--text-muted); }
[data-theme="dark"] .archive-year .year-header:hover .toggle-icon { color: var(--primary-light); }
[data-theme="dark"] .year-body { background: var(--bg-card); border-top-color: rgba(255,255,255,.06); }
[data-theme="dark"] .archive-month { border-bottom-color: rgba(255,255,255,.04); }
[data-theme="dark"] .month-header { color: var(--text-primary); }
[data-theme="dark"] .month-header:hover { background: rgba(255,255,255,.04); }
[data-theme="dark"] .month-header .toggle-icon { color: var(--text-muted); }
[data-theme="dark"] .month-header:hover .toggle-icon { color: var(--primary-light); }
[data-theme="dark"] .month-header .month-count { color: var(--primary-light); background: rgba(79,130,235,.2); }
[data-theme="dark"] .month-articles li a { color: var(--text-primary); }
[data-theme="dark"] .month-articles li a:hover { color: var(--primary-light); }
[data-theme="dark"] .month-articles li:hover { background: rgba(255,255,255,.04); }
[data-theme="dark"] .month-articles li .date { color: var(--text-muted); }
[data-theme="dark"] .month-articles li:hover .date { color: var(--primary-light); }

/* 标签页深色模式 */
[data-theme="dark"] .tags-cloud .tag-item { color: var(--text-primary); }
[data-theme="dark"] .tags-cloud .tag-item:hover { color: #fff; }
[data-theme="dark"] .tags-list li a { color: var(--text-primary); }
[data-theme="dark"] .tags-list li a:hover { color: rgb(var(--c)); }
[data-theme="dark"] .tags-list li::before { opacity: .7; }
[data-theme="dark"] .tags-list li:hover { background: rgba(255,255,255,.05); }
[data-theme="dark"] .tags-list li .count { background: rgba(var(--c),0.2); }
[data-theme="dark"] .tags-list li:hover .count { background: rgb(var(--c)); color: #fff; }
[data-theme="dark"] .view-toggle-wrap .view-toggle-btn { background: linear-gradient(135deg, var(--primary-light), #64b5f6); }

/* 微语广场深色模式 */
[data-theme="dark"] .tweet-card {
    border-color: rgba(255,255,255,.08);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2), 0 2px 12px rgba(0,0,0,0.15);
}
[data-theme="dark"] .tweet-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.35), 0 2px 12px rgba(0,0,0,0.2);
    border-color: rgba(79,130,235,.4);
}
[data-theme="dark"] .tweet-card:hover .tweet-avatar {
    box-shadow: 0 0 0 3px var(--bg-card), 0 0 0 5px rgba(79,130,235,.6);
}
[data-theme="dark"] .tweet-post-form {
    border-color: rgba(255,255,255,.08);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2), 0 2px 12px rgba(0,0,0,0.15);
}
[data-theme="dark"] .tweet-post-form:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.35), 0 2px 12px rgba(0,0,0,0.2);
    border-color: rgba(79,130,235,.4);
}
[data-theme="dark"] .tweet-post-form:hover .tweet-post-avatar {
    box-shadow: 0 0 0 3px var(--bg-card), 0 0 0 5px rgba(79,130,235,.6);
}
[data-theme="dark"] .tweet-post-input { background: #2d2818; border-color: rgba(255,255,255,.12); color: var(--text-primary); }
[data-theme="dark"] .tweet-post-input:focus { border-color: var(--primary-light); }
[data-theme="dark"] .tweet-author { color: var(--primary-light); }
[data-theme="dark"] .tweet-actions { border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .tweet-replies {
    background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08);
}
[data-theme="dark"] .reply-form {
    background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08);
}
[data-theme="dark"] .tweet-content code { background: rgba(255,255,255,.08); }
[data-theme="dark"] .tweet-content blockquote { background: rgba(255,255,255,.04); color: var(--text-secondary); }
[data-theme="dark"] .tweet-content pre { background: #0f172a; color: #e2e8f0; }
[data-theme="dark"] .reply-author { color: var(--primary-light); }
[data-theme="dark"] .reply-form-anonymous .reply-form-fields input,
[data-theme="dark"] .reply-input { background: #2d2818; border-color: rgba(255,255,255,.12); color: var(--text-primary); }
[data-theme="dark"] .reply-input:focus { border-color: var(--primary-light); }
[data-theme="dark"] .replies-expand-btn:hover { background: rgba(255,255,255,.06); }

/* 微语发表工具栏 - 图片上传 & 插入链接 */
.tweet-post-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.tweet-toolbar-left { display: flex; align-items: center; gap: 6px; }
.tweet-toolbar-btn {
    width: 34px; height: 34px; border-radius: var(--radius-sm);
    border: 1px solid var(--border-color); background: var(--bg-card);
    color: var(--text-secondary); cursor: pointer; display: flex;
    align-items: center; justify-content: center; transition: all .2s; font-size: 15px;
}
.tweet-toolbar-btn:hover { background: var(--bg-subtle); color: var(--primary); border-color: var(--primary-light); }
.tweet-image-preview {
    display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; width: 100%;
}
.tweet-image-preview-item {
    position: relative; width: 72px; height: 72px; border-radius: var(--radius-sm);
    overflow: hidden; border: 1px solid var(--border-color);
}
.tweet-image-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.tweet-image-preview-uploading,
.tweet-image-preview-ok {
    position: absolute; bottom: 0; left: 0; right: 0; text-align: center;
    font-size: 10px; padding: 2px 0; color: #fff;
}
.tweet-image-preview-uploading { background: rgba(0,0,0,.5); }
.tweet-image-preview-ok { background: rgba(16,185,129,.8); }

/* 微语内容图片 */
.tweet-content img {
    max-width: 100%; height: auto; border-radius: var(--radius-md);
    margin: 8px 0; display: block;
}
.tweet-content img:hover { opacity: .95; }
.tweet-detail-content img { max-width: 100%; }

/* 微语视频嵌入容器 */
.tweet-video-container {
    position: relative; width: 100%; max-width: 100%; height: 0; padding-bottom: 56.25%; /* 16:9 */
    margin: 10px 0; border-radius: var(--radius-md); overflow: hidden;
    background: #000;
}
.tweet-video-container iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border: 0;
}

/* 微语图片九宫格布局 */
.tweet-image-grid {
    display: grid; gap: 4px; margin: 8px 0;
    border-radius: var(--radius-md); overflow: hidden;
}
.tweet-image-grid.grid-1 { grid-template-columns: 1fr; }
.tweet-image-grid.grid-2 { grid-template-columns: 1fr 1fr; }
.tweet-image-grid.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.tweet-image-grid.grid-4 { grid-template-columns: 1fr 1fr; }
.tweet-image-grid.grid-5-6,
.tweet-image-grid.grid-7-9 { grid-template-columns: 1fr 1fr 1fr; }

.tweet-image-grid .tweet-image-grid-item {
    overflow: hidden; position: relative;
}
.tweet-image-grid.grid-2 .tweet-image-grid-item,
.tweet-image-grid.grid-3 .tweet-image-grid-item,
.tweet-image-grid.grid-4 .tweet-image-grid-item,
.tweet-image-grid.grid-5-6 .tweet-image-grid-item,
.tweet-image-grid.grid-7-9 .tweet-image-grid-item {
    aspect-ratio: 1;
}
.tweet-image-grid .tweet-image-grid-item img {
    width: 100%; height: 100%; object-fit: cover;
    margin: 0 !important; border-radius: 0; display: block;
}
.tweet-image-grid .tweet-image-grid-item img:hover {
    opacity: .95;
}

/* 深色模式 - 工具栏 & 图片 */
[data-theme="dark"] .tweet-toolbar-btn {
    border-color: rgba(255,255,255,.12); background: var(--bg-card);
    color: var(--text-muted);
}
[data-theme="dark"] .tweet-toolbar-btn:hover {
    border-color: var(--primary-light); color: var(--primary-light); background: rgba(79,130,235,.1);
}
[data-theme="dark"] .tweet-image-preview-item { border-color: rgba(255,255,255,.12); }

/* 归档/标签页/微语广场 移动端适配 */
@media(max-width:640px) {
    .archive-year .year-header { font-size: 18px; padding: 12px 14px; }
    .month-header { padding: 11px 14px 11px 26px; }
    .month-articles li { padding: 9px 12px 9px 40px; }
    .month-articles li a { font-size: 13px; }
    .tags-cloud { gap: 8px; }
    .tags-cloud .tag-item { padding: 6px 14px; font-size: 13px; }
    .tags-list li { padding: 8px 10px; }
    .tweet-card { padding: 16px; }
    .tweet-avatar { width: 36px; height: 36px; }
    .tweet-replies, .reply-form { padding-left: 0; }
    .reply-form-anonymous .reply-form-fields { flex-direction: column; gap: 6px; }
    .tweet-content { font-size: 14px; }
    .tweet-content pre { font-size: 12px; }
}

/* 微语详情页 */
.tweet-detail-page .page-body { max-width: 740px; }
.tweet-detail-header { margin-bottom: 20px; }
.tweet-back-link {
    color: var(--primary); text-decoration: none; font-size: 14px;
    display: inline-flex; align-items: center; gap: 6px; transition: color .2s;
}
.tweet-back-link:hover { color: var(--primary-light); }
.tweet-back-link i { font-size: 13px; }
.tweet-detail-card .tweet-content { font-size: 16px; line-height: 1.8; }
.tweet-detail-card .reply-form { display: block; }
.tweet-detail-card .tweet-replies { display: block; }
.tweet-detail-card .tweet-actions { cursor: default; }
.no-replies { text-align: center; padding: 20px 0; color: var(--text-muted); font-size: 14px; }
.no-replies p { margin: 0; }
.no-replies i { font-size: 28px; display: block; margin-bottom: 8px; opacity: .4; }
[data-theme="dark"] .no-replies { color: var(--text-muted); }

/* ========== index.html 独有样式 ========== */

/* ===== 最新文章区 + 快捷入口�?白色大容�?===== */
.hero-quick-wrapper { padding: 20px 0; }
.hero-quick-inner { background: #fff; border-radius: var(--radius-xl); padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid #eef1f6; }
.latest-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1200px; margin: 0 auto; }

/* 左侧轮播 */
.latest-hero-carousel { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #0f172a; min-height: 380px; }
.lh-carousel-wrapper { position: relative; width: 100%; height: 100%; min-height: 380px; }
.lh-carousel-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s ease; }
.lh-carousel-item.active { opacity: 1; z-index: 1; }
.lh-carousel-link { display: block; width: 100%; height: 100%; position: relative; overflow: hidden; }
.lh-carousel-link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lh-carousel-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 24px 24px; background: linear-gradient(transparent, rgba(0,0,0,0.75)); color: #fff; }
.lh-carousel-tag { display: inline-block; background: rgba(99,102,241,0.9); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: var(--radius-xl); margin-bottom: 10px; font-weight: 500; }
.lh-carousel-overlay h2 { font-size: 20px; font-weight: 700; margin: 0 0 10px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lh-carousel-meta { display: flex; gap: 16px; font-size: 13px; opacity: 0.85; }
.lh-carousel-meta i { margin-right: 4px; }
.lh-carousel-dots { position: absolute; bottom: 14px; right: 20px; z-index: 5; display: flex; gap: 8px; }
.lh-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s; }
.lh-carousel-dot.active { background: #fff; width: 24px; border-radius: var(--radius-sm); }

/* 右侧最新文章列�?*/
.latest-hero-list { background: #fff; border-radius: var(--radius-lg); padding: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid #eef1f6; display: flex; flex-direction: column; }
.lh-list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid #f0f2f5; }
.lh-list-header h3 { font-size: 17px; font-weight: 700; color: #1a202c; margin: 0; }
.lh-list-header h3 i { color: #f59e0b; margin-right: 6px; }
.lh-list-header a { font-size: 13px; color: #6366f1; text-decoration: none; font-weight: 500; }
.lh-list-header a:hover { color: #4f46e5; }

/* 首篇文章 */
.lh-list-first { display: block; padding: 14px 16px; background: linear-gradient(135deg, #f8fafc, #eef2ff); border-radius: var(--radius-lg); margin-bottom: 12px; text-decoration: none; transition: all 0.3s; border: 1px solid #e8edf5; }
.lh-list-first:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(99,102,241,0.12); border-color: #c7d2fe; }
.lh-list-first h4 { font-size: 16px; font-weight: 600; color: #1a202c; margin: 0 0 8px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lh-list-first-meta { display: flex; gap: 14px; font-size: 12px; color: #94a3b8; margin-bottom: 8px; }
.lh-list-first-meta i { margin-right: 3px; }
.lh-list-first p { font-size: 13px; color: #64748b; margin: 0; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 其他文章列表 */
.lh-list-others { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.lh-list-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-md); text-decoration: none; transition: all 0.2s; }
.lh-list-item:hover { background: #f1f5f9; }
.lh-list-rank { width: 22px; height: 22px; border-radius: var(--radius-sm); background: #e2e8f0; color: #64748b; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lh-list-item:nth-child(1) .lh-list-rank { background: #fee2e2; color: #ef4444; }
.lh-list-item:nth-child(2) .lh-list-rank { background: #ffedd5; color: #f97316; }
.lh-list-item:nth-child(3) .lh-list-rank { background: #fef3c7; color: #f59e0b; }
.lh-list-item:nth-child(4) .lh-list-rank { background: #dbeafe; color: #3b82f6; }
.lh-list-item:nth-child(5) .lh-list-rank { background: #e0e7ff; color: #6366f1; }
.lh-list-item:nth-child(6) .lh-list-rank { background: #f3e8ff; color: #a855f7; }
.lh-list-item:nth-child(7) .lh-list-rank { background: #fce7f3; color: #ec4899; }
.lh-list-item:nth-child(8) .lh-list-rank { background: #d1fae5; color: #10b981; }
.lh-list-item:nth-child(9) .lh-list-rank { background: #ccfbf1; color: #14b8a6; }
.lh-list-item:nth-child(10) .lh-list-rank { background: #ffe4e6; color: #e11d48; }
.lh-list-title { flex: 1; font-size: 14px; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.lh-list-date { font-size: 12px; color: #94a3b8; flex-shrink: 0; }

/* 响应�?*/
@media (max-width: 768px) {
    .latest-hero-grid { grid-template-columns: 1fr; gap: 16px; overflow: hidden; }
    .latest-hero-carousel { min-height: 200px; }
    .lh-carousel-wrapper { min-height: 200px; }
    .lh-carousel-overlay { padding: 20px 16px 16px; }
    .lh-carousel-overlay h2 { font-size: 16px; }
    .lh-carousel-dots { right: 12px; bottom: 10px; }
    .lh-carousel-dot { width: 6px; height: 6px; }
    .lh-carousel-dot.active { width: 18px; }
    .latest-hero-list { padding: 16px; min-width: 0; }
    .lh-list-header { margin-bottom: 12px; padding-bottom: 10px; }
    .lh-list-first { padding: 12px 14px; }
    .lh-list-first h4 { font-size: 15px; }
    .lh-list-item { padding: 8px 10px; min-width: 0; }
    .lh-list-title { font-size: 13px; }
    .lh-list-rank { width: 20px; height: 20px; font-size: 11px; }
}

/* ===== 快捷入口�?===== */
.hero-quick-inner .quick-access-section { padding: 20px 0 0; margin-top: 20px; border-top: 1px solid #f0f2f5; }
/* 当没有最新文章区时，快捷入口不需要上边距和分隔线 */
.hero-quick-inner .quick-access-section:first-child { padding: 0; margin-top: 0; border-top: none; }
.quick-access-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1200px; margin: 0 auto; }
.quick-access-item { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius-lg); text-decoration: none; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.08); border: none; cursor: pointer; }
.quick-access-item:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,0.15); }
/* 4个不同的鲜艳渐变背景 */
.quick-access-item:nth-child(1) { background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%); }
.quick-access-item:nth-child(2) { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.quick-access-item:nth-child(3) { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.quick-access-item:nth-child(4) { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.qa-icon { width: 44px; height: 44px; border-radius: var(--radius-lg); background: rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; flex-shrink: 0; backdrop-filter: blur(4px); }
.qa-icon i { font-size: 20px; color: #fff; }
.qa-name { font-size: 15px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0,0,0,0.1); }
@media (max-width: 768px) {
    .quick-access-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .quick-access-item { padding: 14px 16px; }
    .qa-icon { width: 38px; height: 38px; border-radius: var(--radius-md); }
    .qa-icon i { font-size: 17px; }
    .qa-name { font-size: 14px; }
}

/* ===== 热门推荐跑马�?白色大容�?===== */
.featured-marquee-wrapper { padding: 20px 0; }
.featured-marquee-inner { background: #fff; border-radius: var(--radius-xl); padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid #eef1f6; overflow: hidden; }
.featured-marquee-header { text-align: center; margin-bottom: 20px; }
.featured-marquee-header h2 { font-size: 24px; font-weight: 700; color: #1a202c; margin: 0 0 8px; display: inline-block; }
.featured-marquee-header h2 i { color: #ef4444; margin-right: 8px; }
.featured-marquee-header p { color: #718096; font-size: 14px; margin: 0; }
.featured-marquee-track-wrapper { overflow: hidden; position: relative; padding: 4px 0; }
.featured-marquee-track-wrapper::before,
.featured-marquee-track-wrapper::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none;
}
.featured-marquee-track-wrapper::before { left: 0; background: linear-gradient(to right, #f5f7fa, transparent); }
.featured-marquee-track-wrapper::after { right: 0; background: linear-gradient(to left, #f5f7fa, transparent); }
.featured-marquee-track {
    display: flex; gap: 18px; width: max-content;
    animation: marqueeScroll 30s linear infinite;
}
.featured-marquee-track:hover { animation-play-state: paused; }
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.featured-marquee-card {
    flex-shrink: 0; width: 240px; background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid #eef1f6;
    text-decoration: none; transition: all 0.3s ease; cursor: pointer;
}
.featured-marquee-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.12); border-color: transparent; }
.fmc-cover { position: relative; width: 100%; height: 140px; overflow: hidden; }
.fmc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.featured-marquee-card:hover .fmc-cover img { transform: scale(1.06); }
.fmc-sort-tag { position: absolute; top: 10px; left: 10px; background: rgba(99,102,241,0.9); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: var(--radius-md); font-weight: 500; }
.fmc-info { padding: 14px 14px 16px; }
.fmc-info h4 { font-size: 14px; font-weight: 600; color: #1e293b; margin: 0 0 8px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fmc-meta { display: flex; gap: 12px; font-size: 12px; color: #94a3b8; }
.fmc-meta i { margin-right: 3px; }
@media (max-width: 768px) {
    .featured-marquee-card { width: 200px; }
    .fmc-cover { height: 110px; }
    .fmc-info h4 { font-size: 13px; }
}

/* Featured Section (旧版保留) */
.comment-avatar::after { content: ''; position: absolute; bottom: -2px; right: -2px; width: 12px; height: 12px; background: #10b981; border-radius: 50%; border: 2px solid #fff; }
.comment-content { flex: 1; min-width: 0; }
.comment-header { margin-bottom: 6px; }
.comment-author { font-weight: 600; color: #1a1a2e; font-size: 14px; }
.comment-time { color: #94a3b8; font-size: 12px; }
.comment-text { color: #64748b; font-size: 13px; line-height: 1.6; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.comment-meta a { color: #6366f1; text-decoration: none; font-size: 12px; font-weight: 500; }
.comment-meta a:hover { color: #4f46e5; }


/* === Category Articles === */
.category-articles { padding: 16px 0; }

.category-block { background: #fff; border-radius: var(--radius-lg); padding: 20px 22px 22px; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); border: 1px solid #eef1f6; transition: box-shadow 0.3s; }
.category-block:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.category-block:last-child { margin-bottom: 0; }
.category-block-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid #f0f2f5; }
.category-block-header h3 { font-size: 20px; color: #1a202c; display: flex; align-items: center; gap: 10px; font-weight: 700; margin: 0; }
.category-block-header h3 i { font-size: 18px; }
.category-block-header a { color: #6366f1; text-decoration: none; font-size: 13px; font-weight: 500; transition: color 0.2s; }
.category-block-header a:hover { color: #4f46e5; }

/* 各布局类型图标颜色 */
.category-default .category-block-header h3 i { color: #6366f1; }
.category-news .category-block-header h3 i { color: #f59e0b; }
.category-live .category-block-header h3 i { color: #0f52ba; }
.category-tutorial .category-block-header h3 i { color: #4facfe; }
.category-software .category-block-header h3 i { color: #10b981; }
.live-dense-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.live-dense-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid #eef1f6; transition: all 0.3s; }
.live-dense-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); border-color: transparent; }
.live-dense-card-image { position: relative; height: 130px; overflow: hidden; }
.live-dense-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.live-dense-card:hover .live-dense-card-image img { transform: scale(1.06); }
.live-dense-card-content { padding: 10px 12px 12px; }
.live-dense-card-content h4 { font-size: 14px; margin-bottom: 4px; line-height: 1.4; min-height: 39px; font-weight: 600; }
.live-dense-card-content h4 a { color: #1e293b; text-decoration: none; }
.live-dense-card-content h4 a:hover { color: #6366f1; }
.live-dense-card-content p { color: #94a3b8; font-size: 12px; line-height: 1.4; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-dense-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px solid #f1f5f9; font-size: 11px; color: #94a3b8; }
.live-dense-card-footer i { margin-right: 3px; }

.category-tutorial .category-block-header h3 i { color: #4facfe; }
.tutorial-mixed-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tutorial-main { grid-row: span 2; }
.tutorial-main-card { border-radius: var(--radius-lg); color: #fff; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; transition: all 0.3s; position: relative; overflow: hidden; background-image: var(--bg-image); background-size: cover; background-position: center; }
.tutorial-main-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(79,172,254,0.25); }
.tutorial-main-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.72) 100%); padding: 24px 20px; border-radius: var(--radius-lg); z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.tutorial-main-card h4 { font-size: 18px; margin-bottom: 8px; line-height: 1.4; }
.tutorial-main-card h4 a { color: #fff; text-decoration: none; }
.tutorial-main-card p { font-size: 13px; opacity: 0.9; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
.tutorial-main-card .tutorial-meta { display: flex; gap: 16px; font-size: 13px; opacity: 0.85; }
.tutorial-side-cards { display: flex; flex-direction: column; gap: 16px; }
.tutorial-side-card { background: #f8fafc; border-radius: var(--radius-lg); padding: 16px; border: 1px solid #eef1f6; transition: all 0.3s; display: flex; gap: 14px; }
.tutorial-side-card:hover { border-color: #c7d2fe; transform: translateX(4px); box-shadow: 0 4px 16px rgba(99,102,241,0.1); }
.tutorial-side-icon { width: 56px; min-height: 100%; border-radius: var(--radius-lg); background: linear-gradient(135deg, #4facfe, #00f2fe); display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; flex-shrink: 0; align-self: stretch; overflow: hidden; }
.tutorial-side-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.tutorial-side-info h4 { font-size: 15px; margin-bottom: 6px; font-weight: 600; }
.tutorial-side-info h4 a { color: #1e293b; text-decoration: none; }
.tutorial-side-info h4 a:hover { color: #4facfe; }
.tutorial-side-info p { color: #94a3b8; font-size: 12px; line-height: 1.6; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tutorial-side-info .tutorial-meta { font-size: 11px; color: #94a3b8; }
.tutorial-bottom-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.tutorial-bottom-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid #eef1f6; transition: all 0.3s; }
.tutorial-bottom-card:hover { border-color: #c7d2fe; transform: translateY(-4px); box-shadow: 0 6px 20px rgba(99,102,241,0.1); }
.tutorial-bottom-card-image { height: 110px; overflow: hidden; }
.tutorial-bottom-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.tutorial-bottom-card:hover .tutorial-bottom-card-image img { transform: scale(1.05); }
.tutorial-bottom-card-body { padding: 10px 12px 12px; }
.tutorial-bottom-card-body h4 { font-size: 14px; margin-bottom: 4px; font-weight: 600; }
.tutorial-bottom-card-body h4 a { color: #1e293b; text-decoration: none; }
.tutorial-bottom-card-body h4 a:hover { color: #6366f1; }
.tutorial-bottom-card-body p { color: #94a3b8; font-size: 12px; line-height: 1.4; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tutorial-bottom-card-body .tutorial-meta { font-size: 11px; color: #94a3b8; display: flex; gap: 10px; }

.category-software .category-block-header h3 i { color: #43e97b; }

/* ========== articles.html 独有样式 ========== */


.main-content.container { max-width: 1200px !important; margin: 20px auto 0 !important; display: flex !important; align-items: flex-start; gap: 30px; }

.article-content { flex: 1; min-width: 0; max-width: 100%; margin-bottom: 40px; background: #fff; border-radius: var(--radius-lg); padding: 24px 20px; box-shadow: 0 2px 15px rgba(0,0,0,0.06); align-self: flex-start; }
.articles-section { flex: 1; min-width: 0; margin-bottom: 40px; background: #fff; border-radius: var(--radius-lg); padding: 24px 20px; box-shadow: 0 2px 15px rgba(0,0,0,0.06); align-self: flex-start; }
.sidebar { width: 320px; flex-shrink: 0; position: sticky; top: 90px; align-self: flex-start; margin-bottom: 40px; }

.article-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.article-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: all 0.3s ease; border: 1px solid #eee; display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); border-color: #ddd; }

.article-thumbnail { width: 100%; height: 200px; overflow: hidden; position: relative; }
.article-thumbnail img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.4s ease; display: block; }
.article-card:hover .article-thumbnail img { transform: scale(1.05); }

.article-card-body { padding: 4px 12px; flex: 1; display: flex; flex-direction: column; }

.article-category-tag { display: none; }

.article-card .article-title { font-size: 13px; font-weight: 600; margin-bottom: 0; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card .article-title a { color: #1a1a1a; text-decoration: none; transition: color 0.3s; }
.article-card .article-title a:hover { color: #0f52ba; }

.article-meta { display: flex; align-items: center; gap: 16px; color: #999; font-size: 12px; margin-top: auto; padding-top: 6px; }
.article-meta-item { display: flex; align-items: center; gap: 4px; }
.article-meta-item i { font-size: 11px; }
.article-meta-item span { font-weight: 400; }

.sidebar-widget { background: #fff; border-radius: var(--radius-lg); padding: 22px; margin-bottom: 20px; box-shadow: 0 2px 15px rgba(0,0,0,0.06); }
.sidebar-widget:last-child { margin-bottom: 0; }
.widget-title { font-size: 18px; font-weight: 600; color: #1a1a2e; margin: 0 0 12px 0; display: flex; align-items: center; gap: 10px; padding: 0 0 16px; border-bottom: 2px solid #f0f0f0; }
.widget-title i { color: #0f52ba; font-size: 18px; }

.hot-articles-list { list-style: none; padding: 0; }
.hot-article-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #e8e8e8; transition: all 0.3s; }
.hot-article-item:last-child { border-bottom: none; }
.hot-article-item:hover { padding-left: 6px; }
.hot-article-rank { width: 24px; height: 24px; border-radius: var(--radius-sm); background: var(--rank-default); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.hot-article-rank.top1 { background: var(--rank-1); }
.hot-article-rank.top2 { background: var(--rank-2); }
.hot-article-rank.top3 { background: var(--rank-3); }
.hot-article-rank.top4 { background: var(--rank-4); }
.hot-article-rank.top5 { background: var(--rank-5); }
.hot-article-rank.top6 { background: var(--rank-6); }
.hot-article-rank.top7 { background: var(--rank-7); }
.hot-article-rank.top8 { background: var(--rank-8); }
.hot-article-rank.top9 { background: var(--rank-9); }
.hot-article-rank.top10 { background: var(--rank-10); }
.hot-article-item .hot-article-title { font-size: 14px; font-weight: 500; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; cursor: default; }
.hot-article-item .hot-article-title a { color: #333; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative; }
.hot-article-item .hot-article-title:hover a { color: #0f52ba; z-index: 99; position: relative; display: inline; white-space: normal; word-break: break-all; }

.latest-articles-list { list-style: none; padding: 0; }
.latest-article-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px dashed #e8e8e8; transition: all 0.3s; position: relative; }
.latest-article-item:last-child { border-bottom: none; }
.latest-article-item:hover { padding-left: 8px; }
.latest-article-rank { width: 24px; height: 24px; border-radius: var(--radius-sm); background: var(--rank-default); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.latest-article-rank.top1 { background: var(--rank-1); }
.latest-article-rank.top2 { background: var(--rank-2); }
.latest-article-rank.top3 { background: var(--rank-3); }
.latest-article-rank.top4 { background: var(--rank-4); }
.latest-article-rank.top5 { background: var(--rank-5); }
.latest-article-rank.top6 { background: var(--rank-6); }
.latest-article-rank.top7 { background: var(--rank-7); }
.latest-article-rank.top8 { background: var(--rank-8); }
.latest-article-rank.top9 { background: var(--rank-9); }
.latest-article-rank.top10 { background: var(--rank-10); }
.latest-article-item:hover .latest-article-rank { transform: translateX(3px); }
.latest-article-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; font-size: 14px; font-weight: 500; }
.latest-article-title a { color: #333; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.latest-article-item:hover .latest-article-title { overflow: visible; white-space: normal; }
.latest-article-item:hover .latest-article-title a { color: #0f52ba; display: inline; white-space: normal; word-break: break-all; z-index: 99; position: relative; }

.hot-comments-list { list-style: none; padding: 0; }
.hot-comment-item { padding: 12px 0; border-bottom: 1px dashed #e8e8e8; }
.hot-comment-item:last-child { border-bottom: none; }
.hot-comment-item .hot-comment-title { display: block; font-size: 14px; font-weight: 600; color: #1a1a2e; text-decoration: none; margin-bottom: 4px; }
.hot-comment-item .hot-comment-title:hover { color: #0f52ba; }
.hot-comment-text { color: #64748b; font-size: 13px; line-height: 1.5; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.profile-widget { text-align: center; }
.profile-avatar { border-radius: 50%; background: linear-gradient(135deg, #0f52ba 0%, #42a5f5 100%); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; box-shadow: 0 4px 15px rgba(15,82,186,0.3); }
.profile-widget .profile-avatar { width: 80px; height: 80px; margin: 0 auto 15px; font-size: 32px; }
.profile-name { font-size: 18px; font-weight: 700; color: #1a1a2e; margin-bottom: 5px; }
.profile-desc { font-size: 13px; color: #64748b; margin-bottom: 15px; }
.profile-stats { display: flex; justify-content: center; gap: 25px; padding-top: 15px; border-top: 1px solid #f0f0f0; }
.profile-stat-item { text-align: center; }
.profile-stat-item span { display: block; font-size: 18px; font-weight: 700; color: #0f52ba; }
.profile-stat-item label { font-size: 12px; color: #94a3b8; }

.microblog-list { list-style: none; padding: 0; }
.microblog-item { padding: 12px 0; border-bottom: 1px dashed #e8e8e8; }
.microblog-item:last-child { border-bottom: none; }
.microblog-text { color: #475569; font-size: 14px; line-height: 1.6; word-break: break-all; overflow-wrap: anywhere; }
.microblog-text a { color: #0f52ba; text-decoration: none; }
.microblog-text a:hover { text-decoration: underline; }
.microblog-time { font-size: 12px; color: #94a3b8; margin-top: 8px; display: block; }

/* 侧边栏分�?*/
.categories-list { list-style: none; padding: 0; margin: 0; }
.category-item { border-bottom: 1px solid #f0f4f8; }
.category-item:last-child { border-bottom: none; }
.category-link { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; color: #374151; text-decoration: none; font-size: 14px; gap: 8px; }
.category-link:hover { color: #0f52ba; }
.category-link span:first-child { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-count { flex-shrink: 0; background: var(--rank-default); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: var(--radius-md); min-width: 28px; text-align: center; font-weight: 600; }
.category-item:nth-child(1) .category-count { background: var(--rank-1); }
.category-item:nth-child(2) .category-count { background: var(--rank-2); }
.category-item:nth-child(3) .category-count { background: var(--rank-3); }
.category-item:nth-child(4) .category-count { background: var(--rank-4); }
.category-item:nth-child(5) .category-count { background: var(--rank-5); }
.category-item:nth-child(6) .category-count { background: var(--rank-6); }
.category-item:nth-child(7) .category-count { background: var(--rank-7); }
.category-item:nth-child(8) .category-count { background: var(--rank-8); }
.category-arrow { flex-shrink: 0; font-size: 10px; color: #94a3b8; transition: transform 0.2s; }

/* 二级分类下拉 */
.category-sublist { list-style: none; padding: 0; margin: 0; display: none; }
.category-item.has-children:hover .category-sublist { display: block; }
.category-item.has-children:hover .category-arrow { transform: rotate(180deg); }
.category-subitem { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; }
.category-subitem a { display: block; color: #555; text-decoration: none; font-size: 13px; transition: color 0.2s; }
.category-subitem a:hover { color: #0f52ba; }
.category-count.sub-count { font-size: 11px; padding: 1px 6px; }
.category-subitem:nth-child(1) .sub-count { background: var(--rank-1); }
.category-subitem:nth-child(2) .sub-count { background: var(--rank-2); }
.category-subitem:nth-child(3) .sub-count { background: var(--rank-3); }
.category-subitem:nth-child(4) .sub-count { background: var(--rank-4); }
.category-subitem:nth-child(5) .sub-count { background: var(--rank-5); }
.category-subitem:nth-child(6) .sub-count { background: var(--rank-6); }
.category-subitem:nth-child(7) .sub-count { background: var(--rank-7); }
.category-subitem:nth-child(8) .sub-count { background: var(--rank-8); }

.tags-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item { padding: 5px 12px; background: #f1f5f9; border-radius: var(--radius-xl); font-size: 13px; color: #64748b; text-decoration: none; transition: all 0.3s; }
.tag-item:hover { background: #e8f4fd; color: #0f52ba; }

.archives-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.archive-item { padding: 10px; background: #f8f9fa; border-radius: var(--radius-md); display: flex; justify-content: space-between; align-items: center; }
.archive-item a { color: #333; text-decoration: none; font-size: 13px; transition: color 0.3s; }
.archive-item a:hover { color: #0f52ba; }
.archive-count { background: var(--rank-default); padding: 2px 8px; border-radius: var(--radius-md); font-size: 12px; color: #fff; font-weight: 600; }
.archive-item:nth-child(1) .archive-count { background: var(--rank-1); }
.archive-item:nth-child(2) .archive-count { background: var(--rank-2); }
.archive-item:nth-child(3) .archive-count { background: var(--rank-3); }
.archive-item:nth-child(4) .archive-count { background: var(--rank-4); }
.archive-item:nth-child(5) .archive-count { background: var(--rank-5); }
.archive-item:nth-child(6) .archive-count { background: var(--rank-6); }
.archive-item:nth-child(7) .archive-count { background: var(--rank-7); }
.archive-item:nth-child(8) .archive-count { background: var(--rank-8); }

/* Emlog Calendar */
.calendartop { width: 100%; text-align: center; margin-bottom: 10px; }
.calendartop td a { color: #0f52ba; text-decoration: none; font-weight: 600; cursor: pointer; margin: 0 8px; }
.calendartop td a:hover { color: #42a5f5; }
.calendar { width: 100%; border-collapse: collapse; font-size: 13px; }
.calendar td { padding: 6px 2px; text-align: center; position: relative; transition: background 0.2s; }

/* ========== 当前日期 - 蓝色底色圆圈 ========== */
/* 今天无文章（纯文字，无链接）*/
.calendar td.day {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    background: #0f52ba;
    color: #fff;
    border-radius: 50%;
    margin: 0 auto;
    font-weight: 600;
}
/* 今天+有文章（带链接）- 蓝色底色 */
.calendar td.day a {
    display: inline-block;
    background: #0f52ba;
    color: #fff;
    text-decoration: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    line-height: 28px;
    margin: 0 auto;
    font-weight: 600;
    position: relative;
}
.calendar td.day a:hover { background: #0d47a1; }

/* ========== 发布了博客的日期(非今�? - 红点标记 ========== */
.calendar td.day2 { background: transparent !important; }
.calendar td.day2 a {
    display: inline-block;
    color: #333;
    text-decoration: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    line-height: 28px;
    margin: 0 auto;
    transition: all 0.3s;
}
.calendar td.day2 a:hover { color: #0f52ba; background: #e8f4fd; }
/* 红点标记 */
.calendar td.day2::after,
.calendar td.day a::after {
    content: '';
    position: absolute;
    bottom: 3px;
    right: 6px;
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    pointer-events: none;
}


.sidebar-search { position: relative; border-radius: var(--radius-md); border: 1px solid #e8e8e8; overflow: hidden; }
.sidebar-search input { width: 100%; padding: 10px 40px 10px 14px; border: none; font-size: 14px; background: #fff; box-sizing: border-box; }
.sidebar-search input:focus,
.sidebar-search input:focus-visible { outline: none !important; }
.sidebar-search button { position: absolute; right: 0; top: 0; padding: 0 14px; background: #0f52ba; color: #fff; border: none; border-radius: 0 var(--radius-md) var(--radius-md) 0; cursor: pointer; height: 38px; font-size: 14px; }
.sidebar-search button:hover { background: #0d7acd; }

.links-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.link-item { padding: 10px; background: #f8f9fa; border-radius: var(--radius-md); text-align: center; transition: all 0.3s; }
.link-item:hover { background: #e8f4fd; transform: translateY(-2px); }
.link-item a { color: #333; text-decoration: none; font-size: 13px; }
.link-item a:hover { color: #0f52ba; }

/* ========== article.html 独有样式 ========== */


/* 置顶标记 */
.top-flag, .sort-top-flag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: var(--radius-sm);
    margin-right: 6px;
    vertical-align: middle;
    line-height: 1.6;
}
.top-flag {
    background: #ef4444;
    color: #fff;
}
.sort-top-flag {
    background: #f59e0b;
    color: #fff;
}

.article-header { background: none; border-radius: 0; padding: 0; margin-bottom: 25px; box-shadow: none; text-align: center; }
.article-header h1 { font-size: 28px; font-weight: 700; color: #1a1a2e; line-height: 1.4; margin-bottom: 18px; }
.article-header .article-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; padding-top: 16px; border-top: 1px solid #f0f0f0; }
.meta-item { display: flex; align-items: center; gap: 6px; color: #64748b; font-size: 14px; }
.meta-item i { color: #0f52ba; }
.meta-item a { color: #0f52ba; text-decoration: none; }
.meta-item a:hover { text-decoration: underline; }
.article-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 12px;
    background: #0f52ba;
    color: #fff !important;
    border-radius: var(--radius-xl);
    font-size: 13px;
    text-decoration: none !important;
    transition: background 0.2s;
}
.article-edit-link:hover {
    background: #0d3f94;
}
[data-theme="dark"] .article-edit-link {
    background: #2563eb;
    color: #fff !important;
}
[data-theme="dark"] .article-edit-link:hover {
    background: #1d4ed8;
}

/* 点赞/点踩 */
.vote-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 30px 0 10px;
    padding: 16px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
    border-radius: var(--radius-md);
}
.vote-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #475569;
}
.vote-btn-like.active {
    border-color: #0f52ba;
    background: #eef3ff;
    color: #0f52ba;
}
.vote-btn-like.active:hover {
    border-color: #0d47a1;
    background: #e0eaff;
}
.vote-btn-dislike.active {
    border-color: #ef4444;
    background: #fef2f2;
    color: #ef4444;
}
.vote-btn-dislike.active:hover {
    border-color: #dc2626;
    background: #fee2e2;
}
.vote-divider {
    width: 1px;
    height: 32px;
    background: #e2e8f0;
    margin: 0 4px;
}
.vote-count {
    font-size: 14px;
    min-width: 16px;
    text-align: center;
}
.vote-btn-loading {
    pointer-events: none;
    opacity: 0.6;
}
[data-theme="dark"] .vote-section {
    border-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .vote-btn {
    border-color: rgba(255,255,255,0.15);
    background: transparent;
    color: #94a3b8;
}
[data-theme="dark"] .vote-btn:hover {
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.05);
    color: #cbd5e1;
}
[data-theme="dark"] .vote-btn-like.active {
    border-color: #3b82f6;
    background: rgba(59,130,246,0.1);
    color: #60a5fa;
}
[data-theme="dark"] .vote-btn-like.active:hover {
    background: rgba(59,130,246,0.15);
}
[data-theme="dark"] .vote-btn-dislike.active {
    border-color: #ef4444;
    background: rgba(239,68,68,0.1);
    color: #f87171;
}
[data-theme="dark"] .vote-btn-dislike.active:hover {
    background: rgba(239,68,68,0.15);
}
[data-theme="dark"] .vote-divider {
    background: rgba(255,255,255,0.15);
}

.article-body { background: none; border-radius: 0; padding: 0; margin-bottom: 25px; box-shadow: none; overflow-wrap: break-word; }
.page-body { padding: 0; margin-bottom: 25px; overflow-wrap: break-word; }
.article-body p, .page-body p { font-size: 16px; line-height: 1.9; color: #374151; margin-bottom: 20px; text-indent: 2em; }
.article-body h1, .page-body h1 { font-size: 26px; font-weight: 700; color: #1a1a2e; margin: 35px 0 18px; padding-bottom: 10px; border-bottom: 2px solid #e2e8f0; }
.article-body h2, .page-body h2 { font-size: 22px; font-weight: 700; color: #1a1a2e; margin: 30px 0 15px; padding-left: 10px; border-left: 4px solid #0f52ba; }
.article-body h3, .page-body h3 { font-size: 18px; font-weight: 600; color: #1a1a2e; margin: 25px 0 12px; }
.article-body h4, .page-body h4 { font-size: 17px; font-weight: 600; color: #1a1a2e; margin: 22px 0 10px; }
.article-body h5, .page-body h5 { font-size: 16px; font-weight: 600; color: #374151; margin: 20px 0 10px; }
.article-body h6, .page-body h6 { font-size: 15px; font-weight: 600; color: #64748b; margin: 18px 0 10px; }
.article-body img, .page-body img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 15px auto; display: block; }
.article-body img { max-width: 600px; }
@media (max-width: 640px) { .article-body img { max-width: 100%; } }
.article-body ul, .article-body ol, .page-body ul, .page-body ol { padding-left: 30px; margin-bottom: 20px; }
.article-body li, .page-body li { font-size: 16px; line-height: 1.9; color: #374151; margin-bottom: 8px; }
.article-body li > ul, .article-body li > ol, .page-body li > ul, .page-body li > ol { margin-top: 8px; margin-bottom: 8px; }
.article-body blockquote, .page-body blockquote { border-left: 4px solid #0f52ba; padding: 15px 20px; margin: 20px 0; color: #64748b; font-style: italic; background: #f8fafc; border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.article-body blockquote p, .page-body blockquote p { text-indent: 0; margin-bottom: 10px; color: #64748b; }
.article-body blockquote p:last-child, .page-body blockquote p:last-child { margin-bottom: 0; }
.article-body pre, .page-body pre { background: #1e293b; color: #e2e8f0; padding: 18px 20px; padding-top: 42px; border-radius: var(--radius-md); overflow-x: auto; margin-bottom: 20px; font-family: 'Fira Code', 'Consolas', 'Monaco', monospace; font-size: 14px; line-height: 1.7; white-space: pre-wrap; word-wrap: break-word; position: relative; }
.article-body pre code, .page-body pre code { background: none; color: inherit; font-size: inherit; padding: 0; border-radius: 0; }
.article-body code, .page-body code { background: #f1f5f9; color: #e11d48; padding: 2px 7px; border-radius: var(--radius-sm); font-size: 14px; font-family: 'Fira Code', 'Consolas', 'Monaco', monospace; }
.article-body pre::-webkit-reveal, .article-body pre::-webkit-scrollbar-button, .page-body pre::-webkit-reveal, .page-body pre::-webkit-scrollbar-button { display: none !important; }
.article-body strong, .page-body strong { font-weight: 700; color: #1a1a2e; }
.article-body em, .page-body em { font-style: italic; }
.article-body del, .page-body del { text-decoration: line-through; color: #94a3b8; }
.article-body a, .page-body a { color: #0f52ba; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.article-body a:hover, .page-body a:hover { border-bottom-color: #0f52ba; }
.article-body hr, .page-body hr { height: 1px; border: none; border-top: 1px solid #e2e8f0; margin: 30px 0; background: none; }
.article-body table, .page-body table { width: 100%; max-width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; margin-bottom: 24px; font-size: 14px; line-height: 1.7; border-radius: var(--radius-md); border: 1px solid #e2e8f0; }
.article-body thead, .page-body thead { background: linear-gradient(135deg, #0f52ba 0%, #3b82f6 100%); }
.article-body thead th, .page-body thead th { padding: 12px 16px; border: none; font-weight: 600; color: #fff; text-align: left; white-space: nowrap; font-size: 14px; width: auto; }
.article-body thead th:last-child, .page-body thead th:last-child { border-radius: 0 var(--radius-md) 0 0; }
.article-body thead th:first-child, .page-body thead th:first-child { border-radius: var(--radius-md) 0 0 0; }
.article-body td, .page-body td { padding: 11px 16px; border-bottom: 1px solid #e2e8f0; border-right: 1px solid #e2e8f0; color: #374151; font-size: 14px; white-space: normal; word-break: break-word; min-width: 80px; transition: all 0.2s; }
.article-body td:last-child, .page-body td:last-child { border-right: none; white-space: normal; overflow: visible; text-overflow: clip; max-width: none; }
.article-body td:not(:last-child):hover, .page-body td:not(:last-child):hover { white-space: normal; overflow: visible; text-overflow: clip; max-width: none; position: relative; z-index: 1; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.article-body table tbody tr, .page-body table tbody tr { transition: background 0.2s; }
.article-body table tbody tr:hover, .page-body table tbody tr:hover { background: #eff6ff; }
.article-body table tbody tr:last-child td, .page-body table tbody tr:last-child td { border-bottom: none; }
.article-body table tbody tr:last-child td:first-child, .page-body table tbody tr:last-child td:first-child { border-radius: 0 0 0 var(--radius-md); }
.article-body table tbody tr:last-child td:last-child, .page-body table tbody tr:last-child td:last-child { border-radius: 0 0 var(--radius-md) 0; }
.article-body input[type="checkbox"], .page-body input[type="checkbox"] { margin-right: 6px; }
.article-body br + br, .page-body br + br { display: none; }

/* 文章正文中的附件链接美化样式 */
.attachment-inline {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-lg);
    text-decoration: none;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    text-indent: 0;
    line-height: 1;
}
.attachment-inline:hover {
    border-color: #0f52ba;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15,82,186,0.12);
}
.attach-inline-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    text-indent: 0;
    line-height: 1;
    text-align: center;
}
.attach-inline-icon i {
    line-height: 1;
    text-align: center;
    width: 1.25em;
}

/* 附件网格容器（连续内联附件两列布局�?*/
.attachment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
    min-width: 0;
}
.attachment-grid .attachment-inline {
    margin: 0;
    min-width: 0;
    overflow: hidden;
}
@media (max-width: 768px) {
    .attachment-grid {
        grid-template-columns: 1fr;
    }
}

.attach-inline-info {
    flex: 1;
    min-width: 0;
}
.attach-inline-name {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.attach-inline-desc {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}
.attach-inline-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    transition: all 0.3s;
}
.attachment-inline:hover .attach-inline-btn {
    transform: scale(1.05);
}

/* 需要登录下载的附件样式 */
.attachment-need-login {
    background: linear-gradient(135deg, #fffbeb 0%, #fef2f2 100%) !important;
    border-color: #fde68a !important;
    cursor: not-allowed;
}
.attachment-need-login:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}
.attachment-need-login .attach-inline-desc {
    color: #f59e0b;
    font-weight: 500;
}

/* 需要登录的附件按钮 */
.attach-action-login {
    background: #94a3b8 !important;
    cursor: not-allowed;
}
.attachment-inline:hover .attach-action-login {
    transform: none !important;
}

/* 媒体文件容器（播放器+下载按钮�?*/
.attachment-media-container {
    margin: 16px 0;
    padding: 16px;
    background: #f8fafc;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
}
.attachment-media-container audio,
.attachment-media-container video {
    display: block;
}
.attachment-media-container .attachment-inline-media {
    margin-top: 4px;
}

.article-tags { background: #fff; border-radius: var(--radius-lg); padding: 25px; margin-bottom: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.06); }
.article-tags h4 { font-size: 16px; font-weight: 600; color: #1a1a2e; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.article-tags h4 i { color: #0f52ba; }
.article-tags .tags-list { display: flex; flex-wrap: wrap; gap: 10px; }
.article-tags .tag-item { padding: 6px 16px; background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 100%); border-radius: var(--radius-xl); font-size: 14px; color: #0f52ba; text-decoration: none; transition: all 0.3s; border: 1px solid #d1e7ff; }
.article-tags .tag-item:hover { background: #0f52ba; color: #fff; border-color: #0f52ba; }

/* 社交分享�?*/
.share-bar { display: flex; align-items: center; gap: 12px; padding: 18px 25px; margin-bottom: 25px; background: #fff; border-radius: var(--radius-lg); box-shadow: 0 4px 15px rgba(0,0,0,0.06); flex-wrap: wrap; }
.share-label { font-size: 15px; font-weight: 600; color: #333; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.share-label i { color: #0f52ba; }
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px; border-radius: var(--radius-xl); font-size: 13px; color: #fff; text-decoration: none; transition: all 0.3s; cursor: pointer; white-space: nowrap; }
.share-btn i { font-size: 15px; }
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.share-wechat { background: #07c160; }
.share-wechat:hover { background: #06ad56; }
.share-wechat-moments { background: #07c160; }
.share-wechat-moments:hover { background: #06ad56; }
.share-qq { background: #12b7f5; }
.share-qq:hover { background: #0ea1db; }
.share-qzone { background: #fece00; color: #333 !important; }
.share-qzone:hover { background: #f0c000; }
.share-weibo { background: #e6162d; }
.share-weibo:hover { background: #cf1322; }
.share-x { background: #000; }
.share-x:hover { background: #333; }
.share-facebook { background: #1877f2; }
.share-facebook:hover { background: #1565c0; }

/* 微信分享弹窗 */
.share-wechat-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; }
.share-wechat-modal.active { display: flex; align-items: center; justify-content: center; }
.share-wechat-modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }
.share-wechat-modal-content { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 30px; text-align: center; max-width: 320px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,0.2); z-index: 1; }
.share-wechat-modal-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: none; background: #f5f5f5; border-radius: 50%; cursor: pointer; font-size: 14px; color: #999; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.share-wechat-modal-close:hover { background: #eee; color: #333; }
.share-wechat-modal-content h4 { font-size: 18px; color: #333; margin: 0 0 20px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.share-wechat-modal-content h4 i { color: #07c160; font-size: 22px; }
.share-wechat-qr { display: flex; justify-content: center; margin-bottom: 15px; }
.share-wechat-qr img { width: 200px; height: 200px; border-radius: var(--radius-md); border: 1px solid #eee; }
.share-wechat-tip { font-size: 13px; color: #999; margin: 0; line-height: 1.6; }

/* 文章版权信息 */
.copyright-box { display: flex; gap: 24px; padding: 25px; margin-bottom: 25px; background: #fff; border-radius: var(--radius-lg); box-shadow: 0 4px 15px rgba(0,0,0,0.06); }
.copyright-qr { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.copyright-qr img { width: 120px; height: 120px; border-radius: var(--radius-md); border: 1px solid #eee; }
.copyright-qr span { font-size: 12px; color: #999; }
.copyright-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.copyright-row { display: flex; align-items: flex-start; gap: 6px; font-size: 14px; line-height: 1.6; color: #555; }
.copyright-row label { flex-shrink: 0; font-weight: 600; color: #333; }
.copyright-row span { word-break: break-all; }
.copyright-link { color: #0f52ba; text-decoration: none; word-break: break-all; }
.copyright-link:hover { text-decoration: underline; }
.copyright-copy { flex-shrink: 0; background: none; border: 1px solid #ddd; border-radius: var(--radius-sm); padding: 2px 6px; cursor: pointer; color: #999; font-size: 12px; transition: all 0.3s; }
.copyright-copy:hover { border-color: #0f52ba; color: #0f52ba; }
.copyright-declare { font-size: 13px; color: #999; padding-top: 8px; border-top: 1px dashed #eee; }

.article-nav { background: #fff; border-radius: var(--radius-lg); padding: 25px; margin-bottom: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.06); display: flex; justify-content: space-between; gap: 20px; }
.article-nav .neighbor-link { flex: 1; padding: 15px; background: #f8fafc; border-radius: var(--radius-md); text-decoration: none; color: #333; font-size: 14px; line-height: 1.5; transition: all 0.3s; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-nav .neighbor-link:first-child { border-left: 4px solid #0f52ba; }
.article-nav .neighbor-link:last-child { border-left: 4px solid #42a5f5; text-align: right; }
.article-nav .neighbor-link:hover { background: #e8f4fd; color: #0f52ba; }

/* Emlog blog_tag 输出样式 */
.related-articles { background: #fff; border-radius: var(--radius-lg); padding: 15px 25px 18px; margin-bottom: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.06); }
.related-articles h4 { font-size: 18px; font-weight: 600; color: #1a1a2e; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.related-articles h4 i { color: #0f52ba; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.related-card { text-decoration: none; color: inherit; transition: transform 0.3s; }
.related-card:hover { transform: translateY(-3px); }
.related-thumb { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-md); background-image: var(--bg-image); background-size: cover; background-position: center; margin-bottom: 10px; overflow: hidden; }
.related-card .related-title { font-size: 13px; font-weight: 500; color: #333; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-card:hover .related-title { color: #0f52ba; }

/* 附件区域标题（与网盘下载标题风格统一�?*/
.attachments-section {
    margin: 30px 0 15px;
}
.attachments-section-heading {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.attachments-section-heading i {
    color: #4b5563;
    font-size: 18px;
}
[data-theme="dark"] .attachments-section-heading {
    color: #e2e8f0;
}

/* 网盘下载区域标题（与附件网格风格统一，无背景框） */
.download-section {
    margin: 30px 0 15px;
}
.download-section-heading {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.download-section-heading i {
    color: #0f52ba;
    font-size: 18px;
}
[data-theme="dark"] .download-section-heading {
    color: #e2e8f0;
}

/* 演示地址按钮（独立区域） */
.demo-section {
    margin: 25px 0;
}
.demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 16px 28px;
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    border-radius: var(--radius-lg);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
    max-width: 100%;
    box-sizing: border-box;
}
.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(5, 150, 105, 0.4);
    color: #fff;
}
.demo-btn-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}
.demo-btn-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.demo-btn-label {
    font-size: 17px;
    font-weight: 700;
}
.demo-btn-desc {
    font-size: 13px;
    opacity: 0.85;
}
.demo-btn-arrow {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    transition: all 0.3s;
}
.demo-btn:hover .demo-btn-arrow {
    transform: translateX(4px);
    background: rgba(255,255,255,0.3);
}
[data-theme="dark"] .demo-btn {
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.2);
}
[data-theme="dark"] .demo-btn:hover {
    box-shadow: 0 6px 25px rgba(5, 150, 105, 0.3);
}


.comments-section { background: #fff; border-radius: var(--radius-lg); padding: 15px 25px 18px; margin-bottom: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.06); }
.page-wrapper .comments-section { background: none; border-radius: 0; padding: 15px 0 0; margin-bottom: 0; box-shadow: none; }
.comments-section h4 { font-size: 18px; font-weight: 600; color: #1a1a2e; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.comments-section h4 i { color: #0f52ba; }

/* 评论表单 - 模板自定�?blog_comments_post 输出 */
#comment-form { background: #f8fafc; border-radius: var(--radius-lg); padding: 20px; margin-bottom: 25px; }
.page-wrapper #comment-form { background: #f8fafc; border-radius: var(--radius-lg); padding: 20px; margin-bottom: 25px; }
.comment-title { font-size: 16px; font-weight: 600; color: #1a1a2e; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.comment-title::before { content: '\f075'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: #0f52ba; }
#comment-form form textarea { width: 100%; padding: 14px; border: 1px solid #e2e8f0; border-radius: var(--radius-md); font-size: 14px; resize: vertical; min-height: 100px; font-family: inherit; box-sizing: border-box; margin-bottom: 15px; }
#comment-form form textarea:focus { outline: none; border-color: #0f52ba; }
#comment-form form input[type="text"], #comment-form form input[type="email"] { padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: var(--radius-md); font-size: 14px; width: calc(33.33% - 10px); box-sizing: border-box; margin-bottom: 10px; display: inline-block; }
#comment-form form input:focus { outline: none; border-color: #0f52ba; }
.btn-submit { background: linear-gradient(135deg, #0f52ba, #42a5f5); color: #fff; border: none; padding: 12px 30px; border-radius: var(--radius-md); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(15,82,186,0.3); }

/* 评论列表 - 模板自定�?blog_comments 输出 */
.comment-card { display: flex; gap: 15px; padding: 20px 0; border-bottom: 1px dashed #e2e8f0; }
.comment-card:last-child { border-bottom: none; }
.comment-card .comment-avatar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-card .comment-header { margin-bottom: 8px; }
.comment-card .comment-author { font-weight: 600; color: #1a1a2e; font-size: 15px; }
.comment-card .comment-time { font-size: 12px; color: #94a3b8; margin-left: 10px; }
.comment-card .comment-text { font-size: 15px; line-height: 1.7; color: #475569; word-break: break-word; display: block; -webkit-line-clamp: unset; overflow: visible; }
.comment-card .comment-meta { margin-top: 8px; }
.comment-card .comment-meta a { color: #0f52ba; text-decoration: none; font-size: 13px; }
.comment-card .comment-meta a:hover { text-decoration: underline; }
.comment-actions { margin-top: 10px; display: flex; gap: 12px; }
.reply-btn { background: none; border: 1px solid #e2e8f0; color: #64748b; cursor: pointer; padding: 5px 15px; border-radius: var(--radius-sm); font-size: 13px; transition: all 0.3s; display: inline-flex; align-items: center; gap: 5px; }
.reply-btn:hover { color: #0f52ba; border-color: #0f52ba; background: #f0f7ff; }
.reply-btn-small { font-size: 12px; padding: 3px 10px; }

/* 回复表单 */
.cancel-reply-btn { background: #f1f5f9; color: #64748b; border: none; padding: 12px 20px; border-radius: var(--radius-md); font-size: 14px; cursor: pointer; transition: all 0.3s; }
.cancel-reply-btn:hover { background: #e2e8f0; }

/* 子评�?*/
.comment-child { display: flex; gap: 10px; padding: 12px 0 12px 44px; margin-left: 22px; border-left: 2px solid #e2e8f0; }
.comment-child .comment-avatar img { width: 32px; height: 32px; }
.comment-child b { font-weight: 600; color: #1a1a2e; font-size: 13px; }
.comment-child .comment-date { font-size: 11px; color: #94a3b8; }
.comment-child .comment-content { font-size: 14px; line-height: 1.6; color: #475569; margin-top: 4px; }

/* 分页 */
.pagination { display: flex; justify-content: center; align-items: center; margin-top: 30px; padding-bottom: 30px; font-size: 13px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border-radius: var(--radius-sm); text-decoration: none; color: #666; font-size: 13px; background: #fff; border: 1px solid #e0e0e0; transition: all 0.2s; margin: 0 2px; text-align: center; }
.pagination a:hover { background: #f5f5f5; color: #333; border-color: #d0d0d0; }
.pagination span { background: #0f52ba !important; color: #fff !important; border-color: #0f52ba !important; }
.pagination a.prev, .pagination a.next { color: #999; font-size: 12px; padding: 0 12px; width: auto; }



/* ========== page.html 独有样式 ========== */

.page-content.container { max-width: 1200px !important; margin: 20px auto 40px !important; }
.main-content.container > .page-wrapper,
.page-content.container > .page-wrapper { background: #fff !important; border-radius: var(--radius-lg) !important; padding: 24px !important; box-shadow: 0 2px 15px rgba(0,0,0,0.06) !important; min-height: 100px !important; }

.page-wrapper .page-header { background: none !important; border-radius: 0 !important; padding: 0 !important; margin-bottom: 25px !important; box-shadow: none !important; text-align: center; }
.page-wrapper .page-body { background: none !important; border-radius: 0 !important; padding: 0 !important; margin-bottom: 25px !important; box-shadow: none !important; }
.page-wrapper .comments-section { background: none !important; border-radius: 0 !important; padding: 15px 0 0 !important; margin-bottom: 0 !important; box-shadow: none !important; }
.page-wrapper #comment-form { background: #f8fafc; border-radius: var(--radius-lg); padding: 20px; margin-bottom: 25px; box-shadow: none; }

.page-header { background: none; border-radius: 0; padding: 0; margin-bottom: 25px; box-shadow: none; text-align: center; }
.page-title { font-size: 28px; font-weight: 700; color: #1a1a2e; line-height: 1.4; margin-bottom: 15px; }
.page-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; color: #64748b; font-size: 14px; border-top: 1px solid #f0f0f0; padding-top: 18px; }
.menu-toggle { display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--header-text, #fff);
    cursor: pointer;
    padding: 6px 10px;
    margin-right: 10px;
}
.menu-toggle:hover { color: color-mix(in srgb, var(--header-text, #fff) 80%, transparent); }

/* ========== 响应式媒体查询（合并去重�?========= */

@media (max-width: 768px) {
    .main-content { flex-direction: column; }
    .container { padding: 0 16px; }
    .main-content.container { display: block !important; }
    .category-articles { padding: 20px 0; }
    .sidebar { display: none; }

    /* 汉堡菜单 */
    .menu-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 8px 25px rgba(0,0,0,0.12);
        padding: 12px 20px;
        flex-direction: column;
        gap: 0;
        z-index: 1000;
        box-sizing: border-box;
    }
    .nav-links.active { display: flex; }
    .nav-links a { color: #333; }
    .nav-links a:hover, .nav-links a.active { color: #0f52ba; }
    .nav-item > a { padding: 12px 0; border-bottom: 1px solid #f0f0f0; width: 100%; }
    .nav-item.has-submenu > a::after { border-top-color: #666; transform: rotate(90deg); }
    .nav-item.has-submenu:hover > a::after { transform: rotate(90deg); }
    .nav-item.has-submenu.active > a::after { transform: rotate(-90deg); }
    .nav-item.has-submenu::after { content: ''; border-top-color: transparent; transform: none; top: auto; bottom: 50%;}
    .submenu { position: static; box-shadow: none; background: transparent; padding-left: 16px; border-radius: var(--radius-md); }
    .nav-item.has-submenu:hover .submenu { display: none; }
    .nav-item.has-submenu.active .submenu { display: block; }

    /* header布局调整 */
    .header-content { flex-wrap: wrap; gap: 10px; }
    .search-box { display: none; }
    .category-block-header { flex-wrap: wrap; gap: 8px; }
    .live-dense-grid { grid-template-columns: 1fr; }
    .tutorial-bottom-row { grid-template-columns: 1fr; }
    .tutorial-mixed-layout { grid-template-columns: 1fr; }
    .tutorial-main { grid-row: span 1; }
    .tutorial-main-card { min-height: 220px; }
    .article-list { grid-template-columns: 1fr; }
    .article-thumbnail { width: 100%; height: 200px; }
    .article-title { font-size: 24px; }
    .article-meta { gap: 12px; }
    .comment-form .form-row { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .copyright-box { flex-direction: column; align-items: center; gap: 16px; }
    .copyright-info { width: 100%; }
    .page-title { font-size: 24px; }
    .profile-stats { justify-content: center; }
    .attachment-inline { padding: 12px 14px; gap: 10px; margin: 15px 0; }
    .attach-inline-icon { width: 40px; height: 40px; font-size: 18px; }
    .attach-inline-name { font-size: 13px; }
    .attach-inline-btn { padding: 6px 14px; font-size: 12px; }
    .article-content { margin-right: 0; width: 100%; padding: 20px 0; margin-top: 20px; border-radius: var(--radius-lg); box-sizing: border-box; }
    .articles-section { margin-right: 0; width: 100%; padding: 20px 0; margin-top: 20px; border-radius: var(--radius-lg); box-sizing: border-box; }
    .main-content.container { margin-top: 0 !important; }
}

/* ========== 登录/注册/找回密码弹窗样式（参考默认模板）========== */

body.scroll-fix { overflow: hidden; }

.auth-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    z-index: 1090;
}
.auth-modal-mask.hidden {
    display: none;
}
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.auth-modal.hidden {
    display: none;
}
.auth-modal-card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px 28px 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    position: relative;
}
.auth-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}
.auth-modal-close:hover {
    transform: none;
    filter: none;
    background: #f1f5f9;
    color: #475569;
}

.auth-modal-head h3 {
    margin-bottom: 4px;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a2e;
    text-align: center;
}
.auth-modal-head p {
    margin: 0 0 18px 0;
    color: #64748b;
    font-size: 14px;
    text-align: center;
}

.auth-modal-alert {
    display: none;
    margin-bottom: 14px;
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 13px;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}
.auth-modal-alert.show {
    display: block;
}
.auth-modal-alert.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.auth-form-row {
    margin-bottom: 12px;
}
.auth-form-row input {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s;
    box-sizing: border-box;
    outline: none;
}
.auth-form-row input:focus {
    border-color: #0f52ba;
    box-shadow: 0 0 0 3px rgba(15, 82, 186, 0.1);
}
.auth-form-row input::placeholder {
    color: #94a3b8;
}

.auth-captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.auth-captcha-row input {
    flex: 1;
}
.auth-captcha-row img {
    width: 110px;
    height: 46px;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1.5px solid #e2e8f0;
    flex-shrink: 0;
}

.auth-inline-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.auth-inline-row input {
    flex: 1;
}
.auth-inline-btn {
    flex-shrink: 0;
    height: 46px;
    padding: 0 16px;
    white-space: nowrap;
    background: linear-gradient(135deg, #0f52ba, #42a5f5);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: opacity 0.2s;
}
.auth-inline-btn:hover {
    opacity: 0.9;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    cursor: pointer;
    font-size: 13px;
    color: #64748b;
}
.auth-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0f52ba;
}

.btn.auth-submit {
    width: 100%;
    height: 48px;
    margin: 4px 0 0;
    background: linear-gradient(135deg, #0f52ba, #42a5f5);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.btn.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15, 82, 186, 0.35);
}
.btn.auth-submit:disabled,
.auth-inline-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.auth-modal-switch {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.auth-modal-switch a {
    color: #0f52ba;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}
.auth-modal-switch a:hover {
    color: #42a5f5;
    text-decoration: underline;
}

.auth-login-ext {
    margin-top: 16px;
    text-align: center;
}

/* 弹窗移动端适配 */
@media (max-width: 480px) {
    .auth-modal {
        align-items: flex-end;
        padding: 10px 10px calc(env(safe-area-inset-bottom, 0px) + 10px);
    }
    .auth-modal-card {
        max-width: none;
        max-height: min(86vh, 640px);
        border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-lg);
        overflow-y: auto;
        padding: 24px 20px 20px;
    }
    .auth-modal-close {
        top: 8px;
        right: 8px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .auth-form-row input {
        height: 44px;
    }
}

/* ========== 通用工具�?========== */
.hidden { display: none; }

/* ========== 侧边栏头像图�?========== */
.profile-widget .profile-avatar-img { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 15px; display: block; object-fit: cover; }

/* ========== 自定义文本小工具内容 ========== */
.custom-text-content { font-size: 13px; color: #555; line-height: 1.7; }

/* ========== 代码复制按钮（JS动态创建，CSS统一样式�?========== */
.code-copy-btn { position: absolute; top: 8px; right: 8px; z-index: 10; display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; background: rgba(255,255,255,0.12); color: #94a3b8; border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius-sm); font-size: 12px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; cursor: pointer; line-height: 1; white-space: nowrap; user-select: none; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.code-copy-btn.is-hover { background: rgba(255,255,255,0.22); color: #e2e8f0; border-color: rgba(255,255,255,0.35); }
.code-copy-btn.is-copied { background: rgba(16,185,129,0.25); color: #34d399; border-color: rgba(16,185,129,0.4); }

/* ========== 附件内联链接（JS动态创建） ========== */
.attach-inline-icon { background-color: var(--icon-bg); color: var(--icon-color); }
.attach-inline-btn { background: linear-gradient(135deg, var(--att-color, #0f52ba), var(--att-color-light, #42a5f5)); }

/* ========== 回到顶部按钮 ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    left: auto;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0f52ba, #42a5f5);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(15, 82, 186, 0.35);
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: linear-gradient(135deg, #0a4088, #2d8edb);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(15, 82, 186, 0.45);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* ========================================
   CMS分类板块布局样式
   ======================================== */

/* --- 1. 左图右文布局 (default) --- */
.default-article-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.default-article-item {
    display: flex;
    gap: 16px;
    padding: 14px;
    border-radius: var(--radius-lg);
    transition: all 0.25s;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
}
.default-article-item:hover {
    background: #f8fafc;
    border-color: #eef1f6;
}
.default-article-thumb {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.default-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.default-article-item:hover .default-article-thumb img {
    transform: scale(1.05);
}
.default-article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}
.default-article-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
}
.default-article-item:hover .default-article-info h4 { color: #6366f1; }
.default-article-info p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.default-article-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #94a3b8;
}
.default-article-meta i {
    margin-right: 4px;
}

/* --- 2. 新闻资讯布局 (news) --- */
.news-layout {
    display: flex;
    gap: 18px;
}
.news-slider {
    flex-shrink: 0;
    width: 45%;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 280px;
    background: #0f172a;
}
.news-slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}
.news-slider-item.active {
    opacity: 1;
}
.news-slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 16px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}
.news-slider-overlay h4 {
    font-size: 15px;
    margin: 0 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-slider-overlay span {
    font-size: 12px;
    opacity: 0.8;
}
.news-slider-dots {
    position: absolute;
    bottom: 10px;
    right: 12px;
    display: flex;
    gap: 6px;
}
.news-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}
.news-dot.active {
    background: #fff;
    width: 20px;
    border-radius: var(--radius-sm);
}
.news-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.news-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    border-bottom: 1px solid #f1f5f9;
}
.news-list-item:last-child {
    border-bottom: none;
}
.news-list-item:hover {
    background: #f8fafc;
}
.news-list-rank {
    width: 22px;
    height: 22px;
    border-radius: var(--radius-sm);
    background: #e2e8f0;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.news-list-item:nth-child(1) .news-list-rank { background: #fee2e2; color: #ef4444; }
.news-list-item:nth-child(2) .news-list-rank { background: #ffedd5; color: #f97316; }
.news-list-item:nth-child(3) .news-list-rank { background: #fef3c7; color: #f59e0b; }
.news-list-item:nth-child(4) .news-list-rank { background: #dbeafe; color: #3b82f6; }
.news-list-item:nth-child(5) .news-list-rank { background: #e0e7ff; color: #6366f1; }
.news-list-item:nth-child(6) .news-list-rank { background: #f3e8ff; color: #a855f7; }
.news-list-item:nth-child(7) .news-list-rank { background: #fce7f3; color: #ec4899; }
.news-list-item:nth-child(8) .news-list-rank { background: #d1fae5; color: #10b981; }
.news-list-item:nth-child(9) .news-list-rank { background: #ccfbf1; color: #14b8a6; }
.news-list-item:nth-child(10) .news-list-rank { background: #ffe4e6; color: #e11d48; }
.news-list-title {
    flex: 1;
    font-size: 14px;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}
.news-list-date {
    font-size: 12px;
    color: #94a3b8;
    flex-shrink: 0;
}

/* --- 3. 软件布局 - 横向卡片 (software) --- */
.software-card-layout {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.software-card-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    background: #f8fafc;
    border: 1px solid #eef1f6;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s;
}
.software-card-item:hover {
    box-shadow: 0 4px 16px rgba(16,185,129,0.1);
    transform: translateY(-2px);
    border-color: #a7f3d0;
    background: #fff;
}
.software-card-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}
.software-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.software-card-info {
    flex: 1;
    min-width: 0;
}
.software-card-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
}
.software-card-item:hover .software-card-info h4 { color: #10b981; }
.software-card-info p {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.software-card-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #94a3b8;
}
.software-card-meta i {
    margin-right: 3px;
}
.software-card-action {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    transition: all 0.25s;
}
.software-card-item:hover .software-card-action {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}

/* --- 响应式适配 --- */
@media (max-width: 768px) {
    .default-article-item {
        flex-direction: column;
    }
    .default-article-thumb {
        width: 100%;
        height: 160px;
    }
    .news-layout {
        flex-direction: column;
    }
    .news-slider {
        width: 100%;
        height: 200px;
    }
}

/* --- 加载动画 --- */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}

/* --- 深色模式切换按钮 --- */
.theme-toggle {
    position: fixed;
    bottom: 80px;
    right: 30px;
    z-index: 998;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #1a1a2e;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}
.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
[data-theme="dark"] .theme-toggle {
    background: #334155;
    color: #fbbf24;
}
/* 页面加载后渐入显�?*/
.theme-toggle {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- 导航栏后台管理图标 --- */
.nav-login-admin {
    margin-left: 6px !important;
    font-size: 14px !important;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.nav-login-admin:hover {
    opacity: 1;
}

/* ========================================
   无障碍：键盘焦点指示器
   ======================================== */
:focus-visible {
    outline: 2px solid var(--primary, #0f52ba);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}
/* 对表单元素使用更显眼的焦点样式 */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary, #0f52ba) !important;
    outline-offset: 0 !important;
}

/* ========================================
   无障碍：减少动画（面向前庭障碍用户）
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .back-to-top,
    .theme-toggle {
        transition: none !important;
    }
    .article-card:hover,
    .software-card-item:hover,
    .default-article-item:hover {
        transform: none !important;
    }
}


/* ========================================
   无障碍辅助
   ======================================== */
/* 屏幕阅读器专用（视觉隐藏） */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* 跳过导航链接 */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    z-index: 10000;
    transform: translateX(-50%);
    padding: 8px 16px;
    background: var(--primary, #0f52ba);
    color: #fff;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
    outline: 2px solid var(--primary-light, #42a5f5);
    outline-offset: 2px;
}

/* ========================================
   打印样式
   ======================================== */
@media print {
    /* 隐藏非内容区域 */
    header,
    .sidebar,
    .menu-toggle,
    .search-box,
    .nav-login-box,
    .back-to-top,
    .theme-toggle,
    .auth-modal,
    .auth-modal-mask,
    #auth-modal,
    #auth-modal-mask,
    footer .footer-links,
    .share-bar,
    .related-articles,
    .article-nav,
    .comments-section,
    #comment-form,
    .comment-reply,
    .cancel-reply-btn,
    .code-copy-btn,
    .copyright-copy,
    .category-articles,
    .sidebar-widget,
    .profile-widget,
    .article-tags {
        display: none !important;
    }
    /* 页面基础重置 */
    body {
        padding: 0 !important;
        background: #fff !important;
        color: #000 !important;
        font-size: 12pt;
        line-height: 1.6;
    }
    .page-wrapper,
    .main-content,
    .article-content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        background: #fff !important;
    }
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    /* 文章内容 */
    .article-header h1 {
        font-size: 20pt;
        color: #000 !important;
    }
    .article-body p,
    .page-body p {
        color: #000 !important;
        text-indent: 2em;
        orphans: 3;
        widows: 3;
    }
    .article-body a,
    .page-body a {
        color: #000 !important;
        border-bottom: 1px solid #999;
    }
    .article-body a::after,
    .page-body a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
    /* 防止分页切断 */
    .article-body pre,
    .page-body pre,
    .article-body blockquote,
    .page-body blockquote,
    .article-body table,
    .page-body table,
    .article-body img,
    .page-body img {
        page-break-inside: avoid;
        max-width: 100% !important;
    }
    .article-body h1,
    .article-body h2,
    .article-body h3,
    .article-body h4,
    .page-body h1,
    .page-body h2,
    .page-body h3,
    .page-body h4 {
        page-break-after: avoid;
        color: #000 !important;
    }
    .article-body pre,
    .page-body pre {
        border: 1px solid #ccc !important;
        background: #f9f9f9 !important;
        color: #000 !important;
        padding: 10px !important;
        white-space: pre-wrap !important;
    }
    .article-body code,
    .page-body code {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
    /* 深色模式打印时强制浅色 */
    [data-theme="dark"] body,
    [data-theme="dark"] .article-content,
    [data-theme="dark"] .page-wrapper,
    [data-theme="dark"] .main-content {
        background: #fff !important;
        color: #000 !important;
    }
    [data-theme="dark"] .article-body,
    [data-theme="dark"] .page-body,
    [data-theme="dark"] .article-body p,
    [data-theme="dark"] .page-body p,
    [data-theme="dark"] .article-header h1 {
        color: #000 !important;
    }
    /* 页脚版权信息 */
    footer {
        margin-top: 20pt;
        border-top: 1px solid #ccc;
        padding-top: 10pt;
    }
    .footer-copyright p {
        color: #666 !important;
        font-size: 9pt;
    }
}
