* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    background: #f9f9f9;
}

/* 顶部导航样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: #9a0000;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #9a0000;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: #9a0000;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* 页面内容区域 */
.page-content {
    margin-top: 80px;
    padding: 40px 5%;
    min-height: calc(100vh - 200px);
}

/* 新闻列表页样式 */
.news-list-header {
    background: linear-gradient(135deg, #9a0000 0%, #7a0000 100%);
    color: white;
    padding: 40px 5%;
    margin: 0 -5% 40px;
    text-align: center;
}

.news-list-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.news-list-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.news-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active, .filter-btn:hover {
    background: #9a0000;
    color: white;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 30px;
    padding: 5px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-box input {
    border: none;
    outline: none;
    padding: 8px;
    width: 200px;
}

.search-box button {
    background: none;
    border: none;
    color: #9a0000;
    cursor: pointer;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.news-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-content {
    padding: 20px;
}

.news-card-category {
    display: inline-block;
    background: #f0f0f0;
    color: #9a0000;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.news-card-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.news-card-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.pagination a.active, .pagination a:hover {
    background: #9a0000;
    color: white;
}

/* 新闻详情页样式 */
.news-detail-header {
    background: linear-gradient(135deg, #9a0000 0%, #7a0000 100%);
    color: white;
    padding: 40px 5%;
    margin: 0 -5% 40px;
}

.news-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.news-detail-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.news-detail-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

.news-detail-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
}

.news-detail-content p {
    margin-bottom: 20px;
}

.news-detail-content h2 {
    margin: 30px 0 15px;
    color: #9a0000;
    font-size: 1.5rem;
}

.news-detail-content blockquote {
    border-left: 4px solid #9a0000;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
}

.news-detail-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.back-to-list {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9a0000;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-to-list:hover {
    gap: 12px;
}

.social-share {
    display: flex;
    gap: 10px;
}

.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 50%;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-share a:hover {
    background: #9a0000;
    color: white;
}

.related-news {
    margin-top: 60px;
}

.related-news h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #9a0000;
    display: inline-block;
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.related-news-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.related-news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-news-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.related-news-content h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    line-height: 1.3;
}

.related-news-date {
    font-size: 0.8rem;
    color: #999;
}

/* 底部页脚 */
.footer {
    background: #222;
    color: #fff;
    padding: 60px 5% 30px;
    margin-top: 80px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: #fff;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #9a0000;
}

.footer-col p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #ccc;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #9a0000;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #333;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #9a0000;
    transform: translateY(-3px);
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: #ccc;
}

.contact-info i {
    margin-right: 15px;
    color: #9a0000;
    font-size: 1.2rem;
    width: 20px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #ccc;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .news-detail-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 5%;
    }
    
    .news-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-detail-image {
        height: 250px;
    }
    
    .news-detail-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .news-detail-actions {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.5rem;
    }
    
    .news-list-header h1 {
        font-size: 2rem;
    }
    
    .news-detail-title {
        font-size: 1.5rem;
    }
    
    .related-news-grid {
        grid-template-columns: 1fr;
    }
}

/* 页面切换效果 */
.page {
    display: block;
}