/* 文章页面样式 - post_article.html 专用 */

/* 百科样式布局 */
.wiki-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 侧边导航 */
.wiki-sidebar {
    position: sticky;
    top: 80px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.wiki-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.wiki-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wiki-nav li {
    margin-bottom: 8px;
}

.wiki-nav a {
    display: block;
    padding: 8px 12px;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.wiki-nav a:hover {
    background: #f8f9fa;
    color: #667eea;
    padding-left: 16px;
}

.wiki-nav a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

/* 文章主体 */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    color: #666;
    font-size: 14px;
}

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

.article-category {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* 封面图 */
.article-cover {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 文章简介 - 从内联样式提取 */
.article-description {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
    font-style: italic;
}

/* 文章内容 */
.article-content {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 600;
    color: #1a1a1a;
}

.article-content h2 {
    font-size: 1.8em;
    padding-bottom: 0.3em;
    border-bottom: 2px solid #f0f0f0;
}

.article-content h3 {
    font-size: 1.5em;
}

.article-content p {
    margin-bottom: 1.5em;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2em 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

.article-content li {
    margin-bottom: 0.5em;
}

.article-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin: 2em 0;
    color: #666;
    font-style: italic;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

.article-content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid #667eea;
    transition: all 0.3s;
}

.article-content a:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

.article-content pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2em 0;
}

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

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

.article-content table th,
.article-content table td {
    border: 1px solid #e0e0e0;
    padding: 12px;
    text-align: left;
}

.article-content table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* 相关内容 */
.related-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.related-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

.related-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.related-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.related-post-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* 相关文章封面占位符 - 从内联样式提取 */
.related-post-cover-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 100%;
    height: 180px;
}

.related-post-content {
    padding: 20px;
}

.related-post-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-meta {
    font-size: 13px;
    color: #999;
}

/* 相关模特 */
.related-model-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
    text-align: center;
}

.related-model-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.related-model-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: white;
    color: #667eea;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.related-model-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* 响应式 */
@media (max-width: 768px) {
    .wiki-layout {
        padding: 20px 15px;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-content {
        font-size: 16px;
    }
    
    .article-container {
        padding: 25px 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .article-container {
        max-width: 800px;
    }
}

