/**
 * 文章页面样式
 * 模仿截图设计，简洁现代的布局
 * 主体色：#3665f9
 */

/* 主容器 */
.article-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    background: #fff;
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '>';
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb-list a {
    color: #3665f9;
    text-decoration: none;
}

.breadcrumb-list a:hover {
    text-decoration: none;
    color: #1e40af;
}

.breadcrumb-list .current {
    color: #333;
}

/* 文章主内容区域 */
.article-main {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 20px;
}

/* 文章头部 */
.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item i {
    font-size: 12px;
    color: #999;
}

/* 文章标签 */
.article-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.article-tags .tags-label {
    color: #666;
    font-size: 14px;
}

.tag-link {
    display: inline-block;
    padding: 4px 8px;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #3665f9;
    color: #fff;
}

/* 首页热门文章内容 */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin: 0px 0 5px 0;
    font-weight: 600;
    color: #333;
}

.article-content h2 {
    font-size: 24px;
    border-bottom: 2px solid #3665f9;
    padding-bottom: 10px;
}

.article-content h3 {
    font-size: 16px;
}

.article-content p {
    margin: 15px 0;
}

.article-content img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 600px;
    border-radius: 12px;
    margin: 20px auto;
    display: block;
    object-fit: contain;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 文章内容特殊区块样式 */
.article-content blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 100%);
    border-left: 4px solid #3665f9;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #2c3e50;
    position: relative;
}

.article-content blockquote::before {
    content: '"';
    font-size: 60px;
    color: #3665f9;
    position: absolute;
    top: -10px;
    left: 10px;
    opacity: 0.3;
    font-family: Georgia, serif;
}

/* 高亮区块 */
.article-content .highlight-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #f39c12;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
}

.article-content .highlight-box::before {
    content: '💡';
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 20px;
}

.article-content .highlight-box p {
    margin-left: 35px;
    margin-bottom: 0;
}

/* 信息提示框 */
.article-content .info-box {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 1px solid #17a2b8;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
}

.article-content .info-box::before {
    content: 'ℹ️';
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 20px;
}

.article-content .info-box p {
    margin-left: 35px;
    margin-bottom: 0;
    color: #0c5460;
}

/* 警告框 */
.article-content .warning-box {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #dc3545;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
}

.article-content .warning-box::before {
    content: '⚠️';
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 20px;
}

.article-content .warning-box p {
    margin-left: 35px;
    margin-bottom: 0;
    color: #721c24;
}

/* 代码块样式 */
.article-content pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
    position: relative;
}

.article-content pre::before {
    content: 'CODE';
    position: absolute;
    top: 8px;
    right: 15px;
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
}

.article-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #e83e8c;
}

/* 分享按钮 */
.article-share {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.article-share h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.share-btn:hover {
    background: #3665f9;
    color: #fff;
    border-color: #3665f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(54, 101, 249, 0.3);
}

.share-btn i {
    font-size: 16px;
}

/* 不同平台图标颜色 */
.share-btn .fa-weibo {
    color: #ff6b2c;
}

.share-btn .fa-weixin {
    color: #2dc100;
}

.share-btn .fa-qq {
    color: #1984ff;
}

.share-btn .fa-link {
    color: #666;
}

.share-btn:hover .fa-weibo,
.share-btn:hover .fa-weixin,
.share-btn:hover .fa-qq,
.share-btn:hover .fa-link {
    color: #fff;
}

/* 文章底部标签 */
.article-bottom-tags {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
}

.article-bottom-tags .tags-title {
    font-size: 13px;
    font-weight: 500;
    color: #888;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-bottom-tags .tags-title i {
    color: #999;
    font-size: 12px;
}

.article-bottom-tags .tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.article-bottom-tags .tag-item {
    display: inline-block;
    padding: 4px 10px;
    background: #f8f8f8;
    color: #777;
    text-decoration: none;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 400;
    border: 1px solid #eeeeee;
    transition: all 0.2s ease;
}

.article-bottom-tags .tag-item::before {
    content: '#';
    color: #aaa;
    margin-right: 1px;
    font-size: 11px;
}

.article-bottom-tags .tag-item:hover {
    background: #f0f0f0;
    color: #555;
    border-color: #ddd;
}

/* 微信二维码弹窗 */
.wechat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.wechat-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wechat-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 300px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.wechat-modal.show .wechat-modal-content {
    transform: scale(1);
}

.wechat-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.wechat-modal-close:hover {
    color: #333;
}

.wechat-qr-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.wechat-qr-code {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.wechat-qr-tip {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 侧边栏样式 */
.sidebar {
    background: #fff;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.widget-title {
    background: linear-gradient(135deg, #3665f9 0%, #4c7bfa 100%);
    padding: 15px 20px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    border-bottom: none;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #fff 0%, transparent 100%);
    opacity: 0.3;
}

.widget-content {
    padding: 15px 20px;
}

/* 热门文章列表 */
.post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.post-item:last-child {
    border-bottom: none;
}

.post-item:hover {
    background-color: #f8f9fa;
    border-radius: 6px;
    margin: 0 -10px;
    padding: 12px 10px;
}

.post-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #3665f9 0%, #4c7bfa 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(54, 101, 249, 0.3);
}

.post-info {
    flex: 1;
    min-width: 0;
}

.post-title {
    margin: 0 0 5px 0;
    font-size: 14px;
    line-height: 1.4;
}

.post-title a {
    color: #333;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #3665f9;
}

.post-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    gap: 10px;
}

/* 简单文章列表 */
.post-list.simple .post-item {
    display: block;
    padding: 10px 0;
}

.post-list.simple .post-title {
    font-size: 14px;
    margin-bottom: 5px;
}

/* 分类列表 */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    border-bottom: 1px solid #f0f0f0;
}

.category-item:last-child {
    border-bottom: none;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: #3665f9;
}

.category-count {
    color: #999;
    font-size: 12px;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 10px;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud .tag-link {
    display: inline-block;
    padding: 5px 10px;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    border-radius: 15px;
    font-size: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.tag-cloud .tag-link:hover {
    background: #3665f9;
    color: #fff;
    border-color: #3665f9;
    transform: translateY(-1px);
}

/* 广告位 */
.ad-banner {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    color: #666;
    border: 1px solid #dee2e6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-container {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
        max-width: 100%;
    }
    
    .article-main {
        padding: 15px 10px;
        border-radius: 8px;
    }
    
    .breadcrumb {
        padding: 5px 5px;
        margin-bottom: 10px;
    }
    
    .breadcrumb-list {
        font-size: 14px;
        gap: 8px;
    }
    
    .article-title {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .article-meta {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .meta-item {
        font-size: 13px;
    }
    
    .article-tags {
        margin-bottom: 20px;
    }
    
    .tag-link {
        font-size: 12px;
        padding: 4px 8px;
        margin: 2px 4px 2px 0;
    }
    
    .article-content {
        font-size: 16px;
        line-height: 1.7;
        padding: 0 5px;
    }
    
    .article-content h1 {
        font-size: 22px;
        margin: 25px 0 15px 0;
    }
    
    .article-content h2 {
        font-size: 20px;
        margin: 20px 0 12px 0;
    }
    
    .article-content h3 {
        font-size: 18px;
        margin: 18px 0 10px 0;
    }
    
    .article-content p {
        margin-bottom: 15px;
    }
    
    .article-content img {
        border-radius: 6px;
    }
    
    .article-content blockquote {
        margin: 20px 0;
        padding: 15px;
        font-size: 15px;
    }
    
    .article-content .highlight-box,
    .article-content .info-box,
    .article-content .warning-box {
        margin: 15px 0;
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .article-content pre {
        margin: 15px 0;
        padding: 15px;
        font-size: 13px;
        border-radius: 6px;
    }
    
    .article-content code {
        font-size: 13px;
        padding: 2px 4px;
    }
    
    .article-share {
        margin: 25px 0;
        padding: 15px;
    }
    
    .article-share h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .article-bottom-tags {
        margin: 20px 0;
        padding: 15px;
    }
    
    .article-bottom-tags .tags-title {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .article-bottom-tags .tag-item {
        font-size: 12px;
        padding: 4px 8px;
        margin: 3px 6px 3px 0;
    }
    
    .sidebar {
        margin-top: 0;
    }
    
    .sidebar-widget {
        margin-bottom: 15px;
        border-radius: 8px;
    }
    
    .widget-title {
        font-size: 16px;
        padding: 12px 15px;
    }
    
    .widget-content {
        padding: 15px;
    }
    
    .post-item {
        padding: 10px 0;
    }
    
    .post-number {
        width: 20px;
        height: 20px;
        font-size: 11px;
        margin-right: 10px;
    }
    
    .post-title {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .post-meta {
        font-size: 12px;
        margin-top: 5px;
    }
    
    .category-item {
        padding: 8px 0;
    }
    
    .category-link {
        font-size: 14px;
    }
    
    .category-count {
        font-size: 11px;
        padding: 2px 6px;
    }
    
    .tag-cloud .tag-link {
        font-size: 12px;
        padding: 4px 8px;
        margin: 2px 4px 2px 0;
    }
    
    .ad-banner {
        padding: 15px;
        margin: 15px 0;
        font-size: 14px;
    }
    
    .wechat-modal-content {
        width: 90%;
        max-width: 300px;
        padding: 20px;
        margin: 20px;
    }
    
    .wechat-qr-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .wechat-qr-code {
        width: 150px;
        height: 150px;
        margin-bottom: 10px;
    }
    
    .wechat-qr-tip {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .article-container {
        padding: 5px;
        gap: 8px;
    }
    
    .article-main {
        padding: 12px 8px;
    }
    
    .article-title {
        font-size: 20px;
        line-height: 1.25;
        margin-bottom: 12px;
    }
    
    .article-meta {
        gap: 6px;
        margin-bottom: 15px;
    }
    
    .meta-item {
        font-size: 12px;
    }
    
    .article-content {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .article-content h1 {
        font-size: 20px;
        margin: 20px 0 12px 0;
    }
    
    .article-content h2 {
        font-size: 18px;
        margin: 18px 0 10px 0;
    }
    
    .article-content h3 {
        font-size: 16px;
        margin: 15px 0 8px 0;
    }
    
    .article-content p {
        margin-bottom: 12px;
    }
    
    .sidebar-widget {
        margin-bottom: 12px;
    }
    
    .widget-title {
        font-size: 15px;
        padding: 10px 12px;
    }
    
    .widget-content {
        padding: 12px;
    }
    
    .post-number {
        width: 18px;
        height: 18px;
        font-size: 10px;
        margin-right: 8px;
    }
    
    .post-title {
        font-size: 13px;
        line-height: 1.3;
    }
    
    .post-meta {
        font-size: 11px;
        margin-top: 4px;
    }
    
    .category-count {
        font-size: 10px;
        padding: 1px 4px;
    }
    
    .tag-cloud .tag-link {
        font-size: 11px;
        padding: 3px 6px;
        margin: 1px 3px 1px 0;
    }
}



/* 黑夜模式支持 */
[data-theme="dark"] .article-container,
[data-theme="dark"] .article-main,
[data-theme="dark"] .sidebar,
[data-theme="dark"] .sidebar-widget {
    background: #1a1a1a;
    color: #e0e0e0;
}

/* 夜间模式下的文章主内容区域边框 */
[data-theme="dark"] .article-main {
    border-color: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 夜间模式下的文章内容文字 */
[data-theme="dark"] .article-content {
    color: #d0d0d0;
}

[data-theme="dark"] .article-content p {
    color: #c8c8c8;
}

[data-theme="dark"] .article-title,
[data-theme="dark"] .article-content h1,
[data-theme="dark"] .article-content h2,
[data-theme="dark"] .article-content h3,
[data-theme="dark"] .article-content h4,
[data-theme="dark"] .article-content h5,
[data-theme="dark"] .article-content h6 {
    color: #fff;
}

[data-theme="dark"] .breadcrumb-list .current {
    color: #e0e0e0;
}

[data-theme="dark"] .sidebar-widget {
    border-color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

[data-theme="dark"] .widget-title {
    background: linear-gradient(135deg, #4c7bfa 0%, #6c8cff 100%);
    color: #fff;
}

[data-theme="dark"] .post-title a {
    color: #e0e0e0;
}

[data-theme="dark"] .post-title a:hover {
    color: #6c8cff;
}

[data-theme="dark"] .post-item:hover {
    background-color: #2a2a2a;
}

[data-theme="dark"] .post-number {
    background: linear-gradient(135deg, #4c7bfa 0%, #6c8cff 100%);
    box-shadow: 0 2px 4px rgba(76, 123, 250, 0.3);
}

[data-theme="dark"] .category-link {
    color: #e0e0e0;
}

[data-theme="dark"] .category-link:hover {
    color: #6c8cff;
}

[data-theme="dark"] .category-count {
    background: #333;
    color: #ccc;
}

[data-theme="dark"] .tag-link,
[data-theme="dark"] .tag-cloud .tag-link {
    background: #333;
    color: #e0e0e0;
    border-color: #444;
}

[data-theme="dark"] .tag-link:hover,
[data-theme="dark"] .tag-cloud .tag-link:hover {
    background: #6c8cff;
    color: #fff;
    border-color: #6c8cff;
}

[data-theme="dark"] .article-share {
    background: linear-gradient(135deg, #2a2a2a 0%, #333 100%);
    border-color: #444;
}

[data-theme="dark"] .article-share h4 {
    color: #e0e0e0;
}

[data-theme="dark"] .share-btn {
    background: #333;
    color: #e0e0e0;
    border-color: #444;
}

[data-theme="dark"] .share-btn:hover {
    background: #6c8cff;
    border-color: #6c8cff;
}

/* 夜间模式下的图标颜色 */
[data-theme="dark"] .share-btn .fa-weibo {
    color: #ff7a47;
}

[data-theme="dark"] .share-btn .fa-weixin {
    color: #4ecb32;
}

[data-theme="dark"] .share-btn .fa-qq {
    color: #3d9bff;
}

[data-theme="dark"] .share-btn .fa-link {
    color: #ccc;
}

[data-theme="dark"] .share-btn:hover .fa-weibo,
[data-theme="dark"] .share-btn:hover .fa-weixin,
[data-theme="dark"] .share-btn:hover .fa-qq,
[data-theme="dark"] .share-btn:hover .fa-link {
    color: #fff;
}

[data-theme="dark"] .ad-banner {
    background: linear-gradient(135deg, #2a2a2a 0%, #333 100%);
    color: #ccc;
    border-color: #444;
}

/* 黑夜模式下的文章内容区块 */
[data-theme="dark"] .article-content blockquote {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c4a6b 100%);
    color: #e0e0e0;
    border-left-color: #6c8cff;
}

[data-theme="dark"] .article-content blockquote::before {
    color: #6c8cff;
}

[data-theme="dark"] .article-content .highlight-box {
    background: linear-gradient(135deg, #3d3d1a 0%, #4a4a20 100%);
    border-color: #f39c12;
}

[data-theme="dark"] .article-content .highlight-box p {
    color: #e0e0e0;
}

[data-theme="dark"] .article-content .info-box {
    background: linear-gradient(135deg, #1a3d3d 0%, #204a4a 100%);
    border-color: #17a2b8;
}

[data-theme="dark"] .article-content .info-box p {
    color: #e0e0e0;
}

[data-theme="dark"] .article-content .warning-box {
    background: linear-gradient(135deg, #3d1a1a 0%, #4a2020 100%);
    border-color: #dc3545;
}

[data-theme="dark"] .article-content .warning-box p {
    color: #e0e0e0;
}

[data-theme="dark"] .article-content pre {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

[data-theme="dark"] .article-content pre::before {
    color: #999;
}

[data-theme="dark"] .article-content code {
    background: #333;
    color: #ff6b9d;
}

/* THE END 样式 */
.article-end {
    text-align: center;
    position: relative;
    padding: 20px 0;
}

.article-end::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #3665f9 20%, #3665f9 80%, transparent 100%);
    transform: translateY(-50%);
    border-radius: 2px;
}

.article-end-text {
    display: inline-block;
    background: #fff;
    padding: 8px 20px;
    color: #999;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 2px solid #3665f9;
    border-radius: 25px;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(54, 101, 249, 0.2);
}

/* 夜间模式下的 THE END */
[data-theme="dark"] .article-end::before {
    background: linear-gradient(90deg, transparent 0%, #6c8cff 20%, #6c8cff 80%, transparent 100%);
}

[data-theme="dark"] .article-end-text {
    background: #1a1a1a;
    color: #b0b0b0;
    border-color: #6c8cff;
    box-shadow: 0 2px 8px rgba(108, 140, 255, 0.3);
}

/* 夜间模式下的文章底部标签 */
[data-theme="dark"] .article-bottom-tags {
    border-top-color: #333;
}

[data-theme="dark"] .article-bottom-tags .tags-title {
    color: #999;
}

[data-theme="dark"] .article-bottom-tags .tags-title i {
    color: #666;
}

[data-theme="dark"] .article-bottom-tags .tag-item {
    background: #2a2a2a;
    color: #aaa;
    border-color: #333;
}

[data-theme="dark"] .article-bottom-tags .tag-item::before {
    color: #666;
}

[data-theme="dark"] .article-bottom-tags .tag-item:hover {
    background: #333;
    color: #ccc;
    border-color: #444;
}

/* 夜间模式下的微信弹窗 */
[data-theme="dark"] .wechat-modal-content {
    background: #1a1a1a;
    border: 1px solid #333;
}

[data-theme="dark"] .wechat-qr-title {
    color: #e0e0e0;
}

[data-theme="dark"] .wechat-qr-code {
    background: #2a2a2a;
    border-color: #444;
}

[data-theme="dark"] .wechat-qr-tip {
    color: #c8c8c8;
}

[data-theme="dark"] .wechat-modal-close {
    color: #999;
}

[data-theme="dark"] .wechat-modal-close:hover {
    color: #e0e0e0;
}

/* 夜间模式下的图片优化 */
[data-theme="dark"] .article-content img {
    border: 1px solid #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}



/* 优化主题切换按钮的夜间模式样式 */
[data-theme="dark"] .theme-toggle {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%) !important;
    border-color: #444 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .theme-toggle::before {
    background: linear-gradient(135deg, #6c8cff, #3665f9) !important;
}

[data-theme="dark"] .theme-toggle:hover {
    border-color: #6c8cff !important;
    box-shadow: 0 6px 20px rgba(108, 140, 255, 0.3) !important;
}

[data-theme="dark"] .theme-icon {
    color: #e0e0e0 !important;
}

/* THE END 样式 */
