/* 新闻详情页样式 */
.news-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

/* 新闻头部 */
.news-header {
    margin-bottom: 2rem;
}

.news-header h1 {
    font-size: 2.5rem;
    color: #2c5530;
    margin-bottom: 1rem;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.news-stats {
    margin-left: auto;
    display: flex;
    gap: 1rem;
}

.news-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.news-stats i {
    font-size: 1.1rem;
}

/* 新闻内容 */
.news-content {
    margin-bottom: 3rem;
}

.news-summary {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.news-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.news-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 2rem auto;
    display: block;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.news-image:hover {
    transform: scale(1.02);
}

/* 分享按钮 */
.share-buttons {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.share-buttons h3 {
    margin-bottom: 1rem;
    color: #333;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    margin-right: 1rem;
    transition: opacity 0.3s ease;
}

.share-btn:hover {
    opacity: 0.8;
}

.weixin {
    background-color: #2dc100;
}

.weibo {
    background-color: #e6162d;
}

.qq {
    background-color: #12b7f5;
}

/* 评论区 */
.comments-section {
    margin-bottom: 3rem;
}

.comments-section h2 {
    color: #2c5530;
    margin-bottom: 1.5rem;
}

.comment-form {
    margin-bottom: 2rem;
}

.comment-form textarea {
    width: 100%;
    height: 100px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    margin-bottom: 1rem;
}

.comment-form button {
    padding: 0.8rem 2rem;
    background-color: #2c5530;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.comment-form button:hover {
    background-color: #1e3c22;
}

.comment-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment-content {
    flex: 1;
}

.comment-info {
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: bold;
    color: #333;
    margin-right: 1rem;
}

.comment-date {
    color: #666;
    font-size: 0.9rem;
}

.comment-text {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.comment-actions button {
    padding: 0.3rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: none;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-actions button:hover {
    background-color: #f5f5f5;
    color: #2c5530;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a, .pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #f5f5f5;
    color: #2c5530;
}

.pagination a.active {
    background-color: #2c5530;
    color: #fff;
    border-color: #2c5530;
}

/* 相关新闻 */
.related-news {
    margin-top: 3rem;
}

.related-news h2 {
    color: #2c5530;
    margin-bottom: 1.5rem;
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.related-news-item {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.related-news-item:hover {
    transform: translateY(-5px);
}

.related-news-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.related-news-info h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.related-news-info p {
    color: #666;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-header h1 {
        font-size: 2rem;
    }

    .news-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .news-stats {
        margin-left: 0;
        margin-top: 1rem;
    }

    .share-buttons {
        text-align: center;
    }

    .share-btn {
        margin-bottom: 0.5rem;
    }

    .related-news-grid {
        grid-template-columns: 1fr;
    }
} 