/* /app/static/front/css/news-detail.css */
body {
    background-color: var(--body-bg);
    padding-top: 120px; /* 防止导航遮挡 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.news-detail-section {
    padding: 60px 0;
    background-color: var(--body-bg);
}

.news-detail-header {
    margin-bottom: 30px;
    text-align: center;
}

.news-title {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 700;
}

.news-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.news-meta span {
    display: flex;
    align-items: center;
}

.news-meta i {
    margin-right: 5px;
    font-size: 1rem;
}

.news-cover-image {
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.news-cover-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-content {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.news-summary {
    background-color: rgba(33, 143, 206, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--secondary-color);
    line-height: 1.7;
}

.news-body {
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.05rem;
}

.news-content,
.news-body {
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.news-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 15px 0;
}

.news-navigation {
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.news-nav-link {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

/* 强制视频响应式，无论原始设置如何 */
.news-body div[data-w-e-type="video"] video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
}

/* 视频容器也要有限制 */
.news-body div[data-w-e-type="video"] {
    max-width: 100%;
    overflow: hidden;
}

.news-nav-link:hover {
    color: var(--primary-color);
}

.news-nav-link i {
    margin: 0 10px;
}

.related-news-section {
    padding: 60px 0;
    background-color: var(--light-color);
}

.related-news-section .section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: var(--text-color);
}

.news-detail-content {
    max-width: 800px;
    margin: 0 auto;
}


.news-filter-bar {
    margin-bottom: 20px;
}

.news-search-form .input-group {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.news-search-form .form-control {
    border: none;
    padding: 12px 15px;
    background-color: white;
}

.news-search-form .btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 20px;
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.search-recommend {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.search-recommend h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-tags .btn {
    margin-bottom: 5px;
}

.hot-news-sidebar {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.hot-news-title {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.hot-news-title h3 {
    margin: 0;
    font-size: 1.2rem;
}

.hot-news-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    text-decoration: none;
    color: var(--text-color);
}

.hot-news-image {
    width: 80px;
    height: 60px;
    margin-right: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.hot-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-news-content h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-news-content span {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .news-list-container {
        flex-direction: column;
    }

    .news-main-content,
    .news-sidebar {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .news-detail-section {
        padding: 30px 0;
    }

    .news-title {
        font-size: 1.5rem;
    }

    .news-meta {
        display: flex;
        gap: 20px;
        color: var(--secondary-color);
        font-size: 0.95rem;
        margin-top: 15px;
    }

    .news-content {
        padding: 20px;
    }

    .news-body {
        font-size: 0.95rem;
    }
}

@media (min-width: 992px) {
    .news-list-container {
        display: flex;
    }

    .news-main-content {
        flex: 0 0 70%;
        padding-right: 30px;
    }

    .news-sidebar {
        flex: 0 0 30%;
    }
}