/* 文章详情页面样式 */

/* 内容布局 */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

/* 文章内容 */
.article-content {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-detail {
    max-width: 100%;
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-category {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.article-category.policy {
    background: linear-gradient(45deg, #d32f2f, #f44336);
}

.article-category.c1 {
    background: linear-gradient(45deg, #d32f2f, #f44336);
}

.article-category.c2 {
    background: linear-gradient(45deg, #1976d2, #2196f3);
}

.article-category.c3 {
    background: linear-gradient(45deg, #ff9800, #ff5722);
}

.article-category.c4 {
    background: linear-gradient(45deg, #4caf50, #8bc34a);
}

.article-category.c5 {
    background: linear-gradient(45deg, #9c27b0, #e91e63);
}

.article-category.c6 {
    background: linear-gradient(45deg, #FF6D00, #FFAB00);
}

.article-date,
.article-views,
.article-author {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    margin-bottom: 20px;
}

.article-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 12px;
    background: #f0f0f0;
    color: #666;
    border-radius: 15px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #1976d2;
    color: white;
}

/* 文章正文 */
.article-body {
    line-height: 1.8;
}

.article-summary {
    background: #f8f9fa;
    border-left: 4px solid #1976d2;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 0 8px 8px 0;
}

.article-summary h3 {
    color: #1976d2;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.article-summary p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.article-content-text {
    font-size: 16px;
    color: #333;
}

.article-content-text h2 {
    color: #1976d2;
    font-size: 24px;
    font-weight: 600;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.article-content-text h3 {
    color: #333;
    font-size: 20px;
    font-weight: 600;
    margin: 25px 0 15px 0;
}

.article-content-text p {
    margin-bottom: 15px;
    text-align: justify;
}

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

.article-content-text li {
    margin-bottom: 8px;
}

.article-content-text ul li {
    list-style-type: disc;
}

.article-content-text ol li {
    list-style-type: decimal;
}

/* 文章操作 */
.article-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.article-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.action-btn {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #1976d2;
    color: white;
    border-color: #1976d2;
    transform: translateY(-2px);
}

.like-btn:hover {
    background: #d32f2f;
    border-color: #d32f2f;
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-articles,
.article-nav,
.contact-info {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.related-articles h3,
.article-nav h3,
.contact-info h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.related-list {
    list-style: none;
}

.related-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.related-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-list a {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-list a:hover {
    color: #1976d2;
}

.related-title {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

.related-date {
    font-size: 12px;
    color: #999;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-link:hover {
    background: #1976d2;
    color: white;
    transform: translateX(5px);
}

.nav-link.prev {
    text-align: left;
}

.nav-link.next {
    text-align: right;
    justify-content: flex-end;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    color: #1976d2;
    width: 20px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-content {
        padding: 25px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .article-actions {
        flex-wrap: wrap;
    }
    
    .action-btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .article-content {
        padding: 20px;
    }
    
    .article-title {
        font-size: 20px;
    }
    
    .article-content-text {
        font-size: 14px;
    }
    
    .article-content-text h2 {
        font-size: 20px;
    }
    
    .article-content-text h3 {
        font-size: 18px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .article-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
} 