/* Banner基础样式 */
body {
    background: #f4f4f4;
}

.banner {
    width: 100%;
    height: 390px;
    background: url('https://cdn1.guoxinshujian.com/image/news/banner.png') no-repeat;
    background-size: cover;
    position: relative;
}

#news {
    position: relative;
    margin-top: -8.5%;
}

.no-results{
    width: 90%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0.75;
    color: #743F1E;
    text-align: center;
    margin: 7.5vh auto 2.5vh;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #E5E2DE;
    border-radius: 8px;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.2);
}

/* 页面头部样式 */
.page-header {
    padding: 0 120px 40px 170px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h1 {
    font-size: 40px;
    color: #743F1E;
    position: relative;
    top: -30px;
    padding-bottom: 12px;
    border-bottom: none;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80%;
    height: 3px;
    background: linear-gradient(to right, #AD7036, #6C421B);
}

/* 新闻过滤器样式 */
.news-filter {
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.news-filter .bottom-b {
    display: flex;
    align-items: center;
    gap: 22px;
    border-bottom: 2px solid #E5E2DE;
}

.news-filter a {
    color: #74481E;
    text-decoration: none;
    font-size: 16px;
    padding: 6px 0;
    position: relative;
    transition: color 0.3s ease;
    opacity: .4;
}

.news-filter a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #743F1E;
    transition: width 0.3s ease;
}

.news-filter a:hover {
    color: #743F1E;
}

.news-filter a:hover::after {
    width: 100%;
}

.news-filter a.active {
    color: #743F1E;
    font-weight: 500;
    opacity: 1;
    border-bottom: 2px solid #743F1E;
}

.news-filter a.active::after {
    width: 100%;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 180px;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 5px;
    border: 0;
    border-bottom: 2px solid #E5E2DE;
    font-size: 14px;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
}

.search-box .search-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.search-box .clear-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.search-box .clear-icon:hover {
    opacity: 1;
}

.search-box input::placeholder {
    color: #743F1E;
    opacity: .4;
    font-size: 16px;
}

.search-box input:focus {
    border-color: #743F1E;
}

/* 新闻列表样式 */
.news-list {
    padding: 0 120px 0 170px;
    background: #f4f4f4;
}

.news-item {
    position: relative;
    top: -44px;
    display: flex;
    gap: 24px;
    padding: 12px 0 12px 12px;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.news-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.news-item:hover .news-image img {
    opacity: 0.75;
}

.news-image {
    width: 326px;
    height: 148px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.news-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
    transform: translate(-50%, -50%) scale(1.05);
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.news-content h2 {
    font-size: 22px;
    color: #43403C;
    margin: 12px 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

.news-item:hover .news-date {
    opacity: .4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.news-date {
    position: absolute;
    top: -20px;
    right: 0;
    padding: 5px 10px;
    background: linear-gradient(0deg, #F1B174 0%, #AD7036 100%);
    font-size: 60px;
    border-radius: 0 0 0 10px;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    opacity: .2;
    font-family: "Noto Serif SC", serif;
}

.news-content p {
    font-size: 16px;
    color: #65625E;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 3;
}

.date {
    color: #9D8C7E;
    font-size: 14px;
}

.news-item:hover .news-details {
    opacity: 1;
    transform: translateY(0);
}

.news-details {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    position: relative;
    top: 88px;
    right: -22px;
    width: 125px;
    height: 38px;
    background: linear-gradient(rgba(173, 112, 53, 1), rgba(108, 66, 26, 1));
    padding: 6px 23px;
    margin: 10px;
    pointer-events: none;
}

.news-more {
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    font-family: "Noto Serif SC Regular", serif;
    font-weight: 700;
}

.news-more .fas{
    margin-left: 7px;
}

.news-more img {
    width: 12px;
    height: 12px;
}

/* 加载更多按钮样式 */
.load-more {
    padding: 0 0 40px;
    margin-top: -38px;
    text-align: center;
    color: #743F1E;
    font-size: 16px;
    cursor: pointer;
}

.load-more img{
    width: 12px;
    height: 12px;
}
/* 响应式布局 */
@media (max-width: 1440px) {
    .page-header,
    .news-filter,
    .news-list {
        padding: 0 80px;
        margin-bottom: 38px;
    }

    #news {
        position: relative;
        margin-top: -13%;
    }

    .no-results{
        margin: 140px auto -8px;
    }
}

@media (max-width: 1200px) {
    .page-header,
    .news-filter,
    .news-list {
        padding: 0 40px;
    }

    .news-image {
        width: 240px;
        height: 160px;
    }

    .search-box input {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .news-filter {
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .news-item {
        flex-direction: column;
    }

    .news-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .page-header,
    .news-filter,
    .news-list {
        padding: 0 20px;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        flex: 1;
    }

    .news-image {
        height: 180px;
    }
}
