
body {
    background-color: var(--body-bg);
    padding-top: 80px; /* 防止导航遮挡 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 搜索框样式 */
.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: #218fce;
    border: none;
    padding: 12px 20px;
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.news-search-form .input-group-append {
    margin-left: 0;
}

/* 以下为原有的完整 CSS 代码 */
/* Banner 样式 */
.news-banner {
    position: relative;
    height: 250px;
    background-color: #218fce;
    overflow: hidden;
    margin-bottom: 40px;
}

.news-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), #1a6fb0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.news-banner-content {
    max-width: 700px;
    padding: 0 15px;
    text-align: center;
}

.news-banner-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.news-banner-content p {
    font-size: 1.2rem;
    opacity: 0.8;
}

.news-list-section {
    padding: 60px 0;
    background-color: var(--body-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.section-desc {
    color: var(--secondary-color);
    font-size: 1rem;
}

.news-filter-bar {
    margin-bottom: 20px;
}

.news-list-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-list-item {
    display: flex;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-list-item:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}

.news-item-image {
    width: 280px;
    flex-shrink: 0;
    display: block;
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-list-item:hover .news-item-image img {
    transform: scale(1.05);
}

.news-item-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.news-item-header {
    margin-bottom: 15px;
}

.news-item-title {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-desc {
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--secondary-color);
    font-size: 0.85rem;
}

.news-item-tags {
    display: flex;
    gap: 5px;
}

.news-item-tag {
    background-color: var(--light-color);
    color: var(--secondary-color);
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.75rem;
}

.hot-news-sidebar {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.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;
}

.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;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .news-list-container {
        flex-direction: column;
    }

    .news-main-content,
    .news-sidebar {
        width: 100%;
    }

    .news-list-item {
        flex-direction: column;
    }

    .news-item-image {
        width: 100%;
        height: 250px;
    }

    .news-banner {
        height: 250px;
    }

    .news-banner-content h1 {
        font-size: 1.8rem;
    }

    .news-banner-content p {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-top: 60px;
    }

    .news-list-section {
        padding: 30px 0;
    }

    .news-item-title {
        font-size: 1.1rem;
    }

    .news-item-image {
        height: 200px;
    }
}

/* 额外的布局调整 */
@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%;
    }
}