/* 新闻详情页样式 */
.news-detail {
    padding: 120px 0 60px;
    background: var(--light-gray);
}

.news-detail-header {
    text-align: center;
    margin-bottom: 40px;
}

.news-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.news-meta {
    color: #666;
    font-size: 0.9em;
}

.news-meta span {
    margin: 0 15px;
    display: inline-flex;
    align-items: center;
}

.news-meta i {
    margin-right: 5px;
}

.news-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.news-main-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.news-text {
    line-height: 1.8;
    color: var(--secondary-color);
}

.news-text h2 {
    margin: 30px 0 15px;
    color: var(--primary-color);
}

.news-text p {
    margin-bottom: 20px;
}

.news-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.news-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.news-gallery img:hover {
    transform: scale(1.02);
}

.news-navigation {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
}

.news-navigation a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--secondary-color);
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.news-navigation a:hover {
    background: var(--primary-color);
    color: white;
}

.news-navigation i {
    margin: 0 10px;
}

.related-news {
    margin-top: 60px;
}

.related-news h2 {
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 分享和评论区域样式 */
.news-actions {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.share-section {
    margin-bottom: 40px;
}

.share-section h3,
.comments-section h3 {
    font-size: 1.2em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    gap: 15px;
}

.share-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    border: none;
    background: var(--light-gray);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-button i {
    font-size: 24px;
}

.share-button span {
    font-size: 12px;
}

.share-button:hover {
    background: var(--primary-color);
    color: white;
}

/* 评论区样式 */
.comment-form {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.comment-form .form-group {
    margin-bottom: 15px;
}

.comment-form textarea {
    width: 100%;
    height: 100px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.comment-form input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.comments-list {
    margin-top: 30px;
}

.comment-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 500;
    color: var(--primary-color);
}

.comment-date {
    color: #666;
    font-size: 0.9em;
}

.comment-content {
    color: var(--secondary-color);
    line-height: 1.6;
}

.comment-actions {
    margin-top: 10px;
    display: flex;
    gap: 15px;
}

.comment-action {
    color: #666;
    font-size: 0.9em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.comment-action:hover {
    color: var(--primary-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .news-title {
        font-size: 1.8em;
    }

    .news-meta span {
        display: block;
        margin: 10px 0;
    }

    .news-content {
        padding: 20px;
    }

    .news-gallery {
        grid-template-columns: 1fr;
    }

    .news-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .related-news-grid {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .share-button {
        flex: 1;
        min-width: calc(50% - 10px);
    }
} 