.article-page {
    background: #f5f5f5;
    min-height: 100vh;
}

.article-container {
    width: 95%;
    margin: 0 auto;
    display: flex;
    gap: 2%;
    padding: 0;
    box-sizing: border-box;
}
.article-main {
    flex: 75;
    min-width: 0;
}
.article-sidebar {
    flex: 20;
    min-width: 0;
    position: sticky;
    top: 10px;
    align-self: flex-start;
}
.article-sidebar .article-card:first-child {
    margin-top: 20px;
}
.article-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.article-card-heading {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    padding-left: 8px;
    border-left: 3px solid #FF6B00;
    line-height: 1.4;
}
.article-title {
    font-size: 22px;
    font-weight: bold;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 6px;
}
.article-header-card {
    width: 95%;
    margin: 10px auto 12px;
    display: flex;
    gap: 16px;
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    align-items: stretch;
    box-sizing: border-box;
}
.article-header-title {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.article-header-cover {
    width: 360px;
    height: 280px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}
.article-header-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}
.article-meta-bar .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.article-meta-bar .meta-item i {
    font-size: 14px;
}
.article-tags-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 16px;
}
.article-tag-link {
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 4px;
    background: #f0f5ff;
    color: #2563eb;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}
.article-tag-link:hover {
    background: #2563eb;
    color: #fff;
}
.article-header-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 8px 0;
    padding: 10px 12px;
    background: #f8f9fb;
    border-radius: 6px;
}
.article-content {
    font-size: 14px;
    color: #333;
    line-height: 1.8;
    word-break: break-word;
}
.article-content p {
    margin-bottom: 14px;
}
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    font-weight: bold;
    color: #1a1a1a;
    line-height: 1.4;
    padding-top: 8px;
}
.article-content h1 { font-size: 22px; margin: 24px 0 12px; padding-bottom: 8px; border-bottom: 2px solid #ff7800; }
.article-content h2 { font-size: 20px; margin: 20px 0 10px; padding-bottom: 6px; border-bottom: 1px solid #eee; }
.article-content h3 { font-size: 18px; margin: 18px 0 8px; }
.article-content h4 { font-size: 16px; margin: 16px 0 6px; }
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
    display: block;
}
.article-content a {
    color: #2563eb;
    text-decoration: none;
}
.article-content a:hover {
    text-decoration: underline;
}
.article-content ul,
.article-content ol {
    margin: 10px 0 14px;
    padding-left: 24px;
}
.article-content li {
    margin-bottom: 6px;
}
.article-content blockquote {
    margin: 14px 0;
    padding: 12px 16px;
    background: #f8f9fa;
    border-left: 3px solid #ff7800;
    border-radius: 4px;
    color: #555;
}
.article-content pre {
    margin: 14px 0;
    padding: 12px 16px;
    background: #1e1e2e;
    color: #e0e0e0;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.5;
}
.article-content code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
    font-family: Consolas, monospace;
}
.article-content pre code {
    background: none;
    padding: 0;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
}
.article-content th,
.article-content td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}
.article-content th {
    background: #f5f7fa;
    font-weight: 600;
}
.article-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.article-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg,#ff7800,#ff9a44);
    color: #fff;
    border: none;
    transition: all 0.2s;
}
.article-download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,120,0,0.3);
}
.article-vip-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg,#d4af37,#f5d76e);
    color: #fff;
    border: none;
    transition: all 0.2s;
}
.article-vip-download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212,175,55,0.4);
}
.article-related {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.article-related-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e8ecf0;
    text-decoration: none;
    color: #333;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    transition: all 0.2s;
}
.article-related-card:hover {
    background: #f0f7ff;
    border-color: #91d5ff;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(24,144,255,0.12);
}
.article-related-info {
    flex: 1;
    min-width: 0;
}
.article-related-name {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.article-related-date {
    font-size: 11px;
    color: #999;
}

.article-ad-slot {
    border-radius: 8px;
    overflow: hidden;
}
.article-ad-slot img {
    max-width: 100%;
    height: auto;
    display: block;
}
.article-ad-slot iframe {
    max-width: 100%;
}
.image-ads-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.image-ad-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.image-ad-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.image-ad-item img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    transition: transform 0.3s ease;
}
.image-ad-item:hover img {
    transform: scale(1.08);
}
@media (max-width: 900px) {
    .article-container {
        flex-direction: column;
        padding-bottom: 70px;
    }
    .article-sidebar {
        width: 100%;
    }
    .article-related {
        grid-template-columns: 1fr;
    }
    .article-header-card {
        display: none;
    }
    .article-mobile-bar {
        display: flex;
    }
}
.article-mobile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
    align-items: center;
    justify-content: center;
}
.article-mobile-dl {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg,#ff7800,#ff9a44);
    color: #fff;
}
.article-mobile-vip {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg,#d4af37,#f5d76e);
    color: #fff;
}
.article-mobile-back {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    background: #f0f0f0;
    color: #666;
}
[data-theme="dark"] .article-page { background: #1a1a2e; color: #e0e0e0; }

[data-theme="dark"] .article-card { background: #232342 !important; border-color: #444; }
[data-theme="dark"] .article-card-heading { color: #f0f0f0; border-color: #444; }
[data-theme="dark"] .article-title { color: #f0f0f0; }
[data-theme="dark"] .article-meta-bar { color: #aaa; border-color: #444; }
[data-theme="dark"] .article-content { color: #ccc; }
[data-theme="dark"] .article-content h1,
[data-theme="dark"] .article-content h2,
[data-theme="dark"] .article-content h3,
[data-theme="dark"] .article-content h4 { color: #f0f0f0; }
[data-theme="dark"] .article-content blockquote { background: #2a2a4a; color: #ccc; }
[data-theme="dark"] .article-content pre { background: #2a2a4a; }
[data-theme="dark"] .article-content code { background: #2a2a4a; color: #ccc; }
[data-theme="dark"] .article-content th { background: #2a2a4a; }
[data-theme="dark"] .article-content th,
[data-theme="dark"] .article-content td { border-color: #444; }
[data-theme="dark"] .article-related-card { background: #2a2a4a !important; border-color: #444; }
[data-theme="dark"] .article-related-card:hover { background: #353560 !important; }
[data-theme="dark"] .article-related-name { color: #e0e0e0; }
[data-theme="dark"] .article-related-date { color: #999; }
[data-theme="dark"] .article-tag-link { background: #2a2a4a; color: #ccc; border-color: #444; }
[data-theme="dark"] .article-tag-link:hover { background: #353560; color: #ff9c4d; }
[data-theme="dark"] .article-header-card { background: #232342 !important; }
[data-theme="dark"] .article-header-cover { border-color: #444; }[data-theme="dark"] .article-header-summary { background: #2a2a4a; color: #aaa; }