/* ==================== 文章页面专用样式 ==================== */
/* 注意：header、footer、nav等通用样式在 common.css 中定义 */

.article-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.article-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffd700;
    line-height: 1.3;
    text-align: center;
}

.article-content {
    font-size: 18px;
    line-height: 1.5;
    color: #e0e0e0;
    margin-top: 30px;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    color: #ffd700;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content a {
    color: #ffd700;
    text-decoration: underline;
}

.article-content a:hover {
    color: #ffed4e;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

.article-meta {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #0a0e27;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.back-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

/* footer 样式在 common.css 中定义 */

/* 相关文章样式 */
.related-articles-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
}

.related-title {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 25px;
    color: #ffd700;
    text-align: center;
}

.related-articles-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.related-article-item {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s;
}

.related-article-item:hover {
    transform: translateY(-5px);
    border-color: #ffd700;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    background: rgba(255, 215, 0, 0.15);
}

.related-article-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.related-article-title a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s;
}

.related-article-title a:hover {
    color: #ffed4e;
    text-decoration: underline;
}

.related-article-meta {
    font-size: 14px;
    color: #999;
}

@media (max-width: 768px) {
    .article-container {
        padding: 20px;
        margin: 20px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-content {
        font-size: 16px;
    }
    
    .related-title {
        font-size: 22px;
    }
    
    .related-article-item {
        padding: 15px;
    }
    
    .related-article-title {
        font-size: 16px;
    }
}

/* ==================== Markdown 样式支持 ==================== */
.article-content pre {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    overflow-x: auto;
    margin: 15px 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.4;
}

.article-content pre code {
    background: transparent;
    padding: 0;
    border: none;
    font-size: inherit;
    color: #333;
}

.article-content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    color: #d63384;
}

.article-content h2 {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 12px;
    font-weight: bold;
    line-height: 1.3;
}

.article-content ul, 
.article-content ol {
    margin: 15px 0;
    padding-left: 30px;
    line-height: 1.5;
}

.article-content li {
    margin: 6px 0;
    line-height: 1.5;
}

.article-content blockquote {
    border-left: 4px solid #ddd;
    padding-left: 15px;
    margin: 15px 0;
    color: #666;
    font-style: italic;
    line-height: 1.5;
}

.article-content hr {
    border: none;
    border-top: 2px solid #eee;
    margin: 30px 0;
}

.article-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 15px 0;
}

.article-content table th,
.article-content table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
    line-height: 1.5;
}

.article-content table th {
    background: #f4f4f4;
    font-weight: bold;
}

.article-content p {
    line-height: 1.5;
    margin-bottom: 15px;
}

