/* Article Detail Page Styles */
.article-page {
    background-color: #0a0a0a;
    color: #e0e0e0;
    font-family: "Microsoft YaHei", SimHei, sans-serif;
    min-height: 100vh;
}

/* Breadcrumb */
.breadcrumb {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

.breadcrumb .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #ffd700;
}

.breadcrumb .separator {
    color: #555;
}

.breadcrumb .current {
    color: #ffd700;
}

/* Main Layout */
.article-main {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.article-main .container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar - Left */
.article-sidebar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.article-sidebar::-webkit-scrollbar {
    width: 6px;
}

.article-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.article-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
}

.sidebar-title {
    color: #ffd700;
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.random-articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.random-article-item {
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border-left: 3px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.random-article-item:hover {
    background: rgba(255, 215, 0, 0.05);
    border-left-color: #ffd700;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.1);
}

.random-article-item a {
    color: #ccc;
    text-decoration: none;
    display: block;
    font-size: 13px;
    line-height: 1.5;
    transition: color 0.3s;
}

.random-article-item a:hover {
    color: #ffd700;
}

.random-article-date {
    display: block;
    font-size: 11px;
    color: #666;
    margin-top: 6px;
}

/* Article Content Area */
.article-detail {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid #333;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Article Header */
.article-header {
    margin-bottom: 30px;
}

.article-category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.article-title {
    color: #ffd700;
    font-size: 32px;
    font-weight: bold;
    margin: 0 0 20px 0;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.article-meta-bar {
    display: flex;
    gap: 25px;
    color: #888;
    font-size: 14px;
    padding: 15px 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item svg {
    color: #ffd700;
}

/* Featured Image */
.article-featured-image {
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Content */
.article-content-wrapper {
    color: #ddd;
    font-size: 16px;
    line-height: 1.8;
    margin: 30px 0;
}

.article-content-wrapper p {
    margin-bottom: 20px;
}

.article-content-wrapper h2,
.article-content-wrapper h3 {
    color: #ffd700;
    margin: 30px 0 15px 0;
}

.article-content-wrapper a {
    color: #667eea;
    text-decoration: underline;
}

.article-content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Article Tags */
.article-footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #333;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-tags .tag {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s;
}

.article-tags .tag:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

/* Related Articles */
.related-articles {
    margin-top: 50px;
}

.section-title {
    color: #ffd700;
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.related-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
    transition: all 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
}

.related-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-image {
    height: 150px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content {
    padding: 15px;
}

.related-content h3 {
    color: #fff;
    font-size: 16px;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.related-date {
    color: #888;
    font-size: 13px;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .article-main .container {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .article-detail {
        padding: 25px;
    }

    .article-title {
        font-size: 24px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}