:root {
    --primary: #15336e;
    --secondary: #866A2D;
    --accent: #c9a145;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --transition: all 0.3s ease;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.w {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

.space {
    height: 60px;
}

.header-placeholder {
    height: 80px;
    background: linear-gradient(to right, var(--primary), #2a5298);
}

/* 新闻分类导航 */
.news-categories {
    background: white;
    padding: 30px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.categories-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.category-btn {
    padding: 12px 25px;
    background-color: var(--light-gray);
    border: none;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
}

.category-btn:hover, .category-btn.active {
    background: linear-gradient(to right, var(--secondary), var(--accent));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(134, 106, 45, 0.3);
}

/* 新闻列表区域 */
.news-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    position: relative;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    flex: 0 0 300px;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.news-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.news-title {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 15px;
    transition: var(--transition);
}

.news-title:hover {
    color: var(--secondary);
}

.news-excerpt {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray);
    font-size: 0.95rem;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
}

.read-more {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary);
    gap: 12px;
}

/* 侧边栏 */
.news-sidebar {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 1.5rem;
    color: var(--primary);
    padding-bottom: 15px;
    margin-bottom: 25px;
    border-bottom: 3px solid var(--accent);
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--secondary);
}

.popular-news {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.popular-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--light-gray);
}

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

.popular-rank {
    flex: 0 0 30px;
    height: 30px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--dark);
}

.popular-item:nth-child(1) .popular-rank {
    background: var(--accent);
    color: white;
}

.popular-item:nth-child(2) .popular-rank {
    background: #c9a145cc;
    color: white;
}

.popular-item:nth-child(3) .popular-rank {
    background: #c9a14599;
    color: white;
}

.popular-content {
    flex: 1;
}

.popular-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    transition: var(--transition);
}

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

.popular-date {
    color: var(--gray);
    font-size: 0.9rem;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-tag {
    background: var(--light-gray);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
}

.category-tag:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}

.category-tag.active {
    background: var(--secondary);
    color: white;
}

/* 分页控件 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 10px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: white;
    border: 1px solid var(--light-gray);
    color: var(--dark);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover, .page-btn.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
    transform: translateY(-3px);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .news-image {
        flex: 0 0 250px;
    }
}

@media (max-width: 992px) {
    .news-container {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        position: static;
    }

    .banner-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }

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

    .banner-content h1 {
        font-size: 2.2rem;
    }

    .banner-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .banner-content h1 {
        font-size: 1.8rem;
    }

    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
