/* 新闻列表页基础样式 */
:root {
    --primary-yellow: #f9b100;
    --dark-blue: #0a1c30;
    --light-gray: #f8f9fa;
    --border-gray: #e0e0e0;
    --text-gray: #666;
    --text-dark: #333;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* 面包屑样式 */
.breadcrumbs-section {
    background-color: var(--light-gray);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-gray);
}

.breadcrumbs {
    font-size: 14px;
    color: var(--text-gray);
}

.breadcrumbs a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--primary-yellow);
}

.breadcrumbs span {
    color: var(--dark-blue);
    font-weight: 500;
}

/* 顶部Banner区 */
.news-banner {
    background-color: var(--white);
    padding: 30px 0;
    border-bottom: 1px solid var(--border-gray);
}

.banner-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    align-items: center;
}

.banner-text h1 {
    font-size: 42px;
    color: var(--dark-blue);
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.banner-text h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-yellow);
}

.banner-text p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.5;
}

.banner-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 新闻主体区 */
.news-main {
    padding: 40px 0;
    background-color: var(--white);
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
}

/* 左侧侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: var(--light-gray);
    padding: 25px;
    border-radius: 5px;
}

.sidebar-widget h3 {
    font-size: 18px;
    color: var(--dark-blue);
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 分类列表 */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    padding: 12px 15px;
    background-color: var(--white);
    margin-bottom: 5px;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.category-list li.active a {
    background-color: var(--primary-yellow);
    color: var(--white);
    border-left-color: var(--dark-blue);
}

.category-list li a:hover:not(.active) {
    border-left-color: var(--primary-yellow);
    color: var(--primary-yellow);
}

.category-list li span {
    font-size: 12px;
    background-color: rgba(0,0,0,0.05);
    padding: 2px 8px;
    border-radius: 10px;
}

.category-list li.active span {
    background-color: rgba(255,255,255,0.2);
}

/* 订阅通讯 */
.newsletter-widget {
    text-align: center;
}

.newsletter-widget i {
    font-size: 32px;
    color: var(--primary-yellow);
    margin-bottom: 15px;
}

.newsletter-widget p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    gap: 0;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-gray);
    border-right: none;
    font-size: 14px;
    color: var(--text-dark);
    border-radius: 3px 0 0 3px;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-yellow);
}

.newsletter-form button {
    background-color: var(--primary-yellow);
    color: var(--white);
    border: none;
    padding: 0 15px;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--dark-blue);
}

/* 热门文章 */
.popular-list {
    list-style: none;
}

.popular-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border-gray);
}

.popular-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-list li img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 3px;
}

.post-info a {
    color: var(--dark-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: var(--transition);
}

.post-info a:hover {
    color: var(--primary-yellow);
}

.post-info p {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 5px;
}

/* 右侧新闻列表区 */
.news-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 搜索框 */
.search-bar {
    display: flex;
    gap: 0;
    max-width: 400px;
}

.search-bar input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-gray);
    border-right: none;
    font-size: 14px;
    color: var(--text-dark);
    border-radius: 3px 0 0 3px;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-yellow);
}

.search-bar button {
    background-color: var(--white);
    color: var(--text-gray);
    border: 1px solid var(--border-gray);
    border-left: none;
    padding: 0 15px;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
    transition: var(--transition);
}

.search-bar button:hover {
    color: var(--primary-yellow);
    border-color: var(--primary-yellow);
}

/* 新闻网格 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-item {
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    transition: var(--transition);
}

.news-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.news-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-gray);
}

.news-item h4 {
    font-size: 16px;
    color: var(--dark-blue);
    padding: 0 20px;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}




.news-item h4 a {
    font-size: 16px;
    color: var(--dark-blue);
    padding: 0 20px;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}




.news-item p {
    font-size: 14px;
    color: var(--text-gray);
    padding: 0 20px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.read-more {
    display: inline-block;
    color: var(--dark-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px 20px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-yellow);
}

.read-more i {
    font-size: 12px;
    margin-left: 5px;
}

/* 分页控件 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-gray);
    background-color: var(--white);
    color: var(--text-dark);
    font-size: 14px;
    cursor: pointer;
    border-radius: 3px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(.active):not(.disabled) {
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
}

.page-btn.active {
    background-color: var(--primary-yellow);
    color: var(--white);
    border-color: var(--primary-yellow);
}

.ellipsis {
    font-size: 14px;
    color: var(--text-gray);
    padding: 0 5px;
}

/* 页脚样式适配 */
.footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 40px;
}

.footer-col h4 {
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-yellow);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-yellow);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.contact-info li i {
    color: var(--primary-yellow);
    margin-top: 3px;
}

.get-directions-btn {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid var(--white);
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.get-directions-btn:hover {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
}

.footer-newsletter-form {
    display: flex;
    margin-top: 15px;
}

.footer-newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    font-size: 14px;
}

.footer-newsletter-form button {
    background-color: var(--primary-yellow);
    color: var(--white);
    border: none;
    padding: 0 15px;
    cursor: pointer;
}

.footer-bottom {
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: #ccc;
    font-size: 14px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin-left: 15px;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-yellow);
}

/* ========== 响应式适配 ========== */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banner-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .banner-text h1::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 992px) {
    .layout-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .sidebar {
        order: -1; /* 侧边栏移到新闻列表上方 */
    }
    
    .search-bar {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-text h1 {
        font-size: 32px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .banner-text h1 {
        font-size: 24px;
    }
    
    .sidebar-widget {
        padding: 20px 15px;
    }
    
    .news-item img {
        height: 150px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links a {
        margin: 0 8px;
    }
}