
.news-detail {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.news-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.news-category {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    color: #666;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.news-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-meta-item i {
    color: var(--accent-color);
}

.news-image {
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
}

.news-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
}

.news-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin: 1.5rem 0 0.8rem 0;
}

.news-content p {
    margin-bottom: 1rem;
}

.news-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.share-wechat {
    background: #07c160;
}

.share-wechat:hover {
    background: #06a050;
    transform: translateY(-2px);
}

.share-weibo {
    background: #e6162d;
}

.share-weibo:hover {
    background: #d11426;
    transform: translateY(-2px);
}

.share-qq {
    background: #12b7f5;
}

.share-qq:hover {
    background: #0ea5e9;
    transform: translateY(-2px);
}

.share-link {
    background: var(--primary-color);
}

.share-link:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.sidebar {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.popular-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popular-item:last-child {
    border-bottom: none;
}

.popular-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.popular-content {
    flex-grow: 1;
}

.popular-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

.popular-item:hover .popular-title {
    color: var(--primary-color);
}

/* 修改后的评论表单样式 */
.comment-input-field {
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    padding: 0.6rem 1rem;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.comment-input-field:focus {
    background-color: #fff;
    border-color: #0d6efd; /* 使用您的主色调 */
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.comment-input-textarea {
    border-radius: 15px;
    border: 1px solid #e0e0e0;
    padding: 1rem;
    background-color: #f8f9fa;
    resize: none; /* 禁止拖动大小 */
    width: 100%;
}

.comment-input-textarea:focus {
    background-color: #fff;
    border-color: #0d6efd;
    outline: none;
}

.comment-user-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comments-section {
    margin-top: 3rem;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comments-count {
    background: var(--accent-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.comment-form {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.comment-form textarea {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
}

.comment-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.1);
    outline: none;
}

.comment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.comment-user-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.comment-input-group {
    flex: 1;
}

.comment-input {
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.comment-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.1);
    outline: none;
}

.btn-submit-comment {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-submit-comment:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.comment-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 2rem 0;
    transition: all 0.3s ease;
}

.comment-item:hover {
    background: rgba(0, 86, 179, 0.02);
    margin: 0 -1rem;
    padding: 2rem 1rem;
    border-radius: 10px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-meta {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.2rem;
}

.comment-time {
    font-size: 0.85rem;
    color: #999;
}

.comment-content {
    margin-left: 65px;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1rem;
}

.comment-actions {
    margin-left: 65px;
    display: flex;
    gap: 1rem;
}

.comment-action {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.comment-action:hover {
    color: var(--primary-color);
}

.comment-action.liked {
    color: var(--accent-color);
}

.load-more {
    text-align: center;
    margin: 2rem 0;
}

.btn-load-more {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-load-more:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .news-title {
        font-size: 1.8rem;
    }

    .news-meta {
        gap: 1rem;
    }

    .sidebar {
        position: static;
        margin-top: 2rem;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .comment-content, .comment-actions {
        margin-left: 0;
    }

    .share-buttons {
        flex-wrap: wrap;
    }
}
