@charset "utf-8";
/* 基础样式 - 三页通用 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}
a {
text-decoration: none;
}
body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部和导航 - 三页通用 */
header {
    background-color: #1a365d;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

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

.logo i {
    font-size: 28px;
    margin-right: 10px;
    color: #4dabf7;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
}

.logo span {
    color: #4dabf7;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 5px;
    transition: color 0.3s;
    position: relative;
}

nav ul li a:hover {
    color: #4dabf7;
}

nav ul li a.active {
    color: #4dabf7;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #4dabf7;
    bottom: -5px;
    left: 0;
    border-radius: 2px;
}

.date-display {
    font-size: 14px;
    color: #b3d4fc;
    margin-top: 5px;
}


/* 面包屑导航 - 详情页 */
.breadcrumb {
    background-color: #f0f7ff;
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #e1e8f0;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    align-items: center;
}

.breadcrumb-list li {
    font-size: 14px;
    color: #666;
}

.breadcrumb-list li a {
    color: #4dabf7;
    text-decoration: none;
}

.breadcrumb-list li a:hover {
    text-decoration: underline;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: #999;
}

/* 主要内容区域布局 - 列表页和详情页 */
.main-content {
   max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
.main-list {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.left-content {
    flex: 3;
}
.right-sidebar {
    flex: 1;
}

/* 新闻列表 - 列表页 */
.news-list {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.news-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background-color: #f9f9f9;
}

.news-index {
    width: 40px;
    height: 40px;
    background-color: #e6f7e9;
    color: #1e7b34;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: 700;
    font-size: 18px;
    margin-right: 20px;
    flex-shrink: 0;
}

.news-index.top {
    background-color: #fff7e6;
    color: #ad6800;
}

.news-content {
    flex: 1;
}

.news-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-content h3 a {
    color: #1a365d;
    text-decoration: none;
}

.news-content h3 a:hover {
    color: #4dabf7;
}

.news-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 13px;
}

.news-time {
    display: flex;
    align-items: center;
}

.news-time i {
    margin-right: 5px;
    font-size: 12px;
}

/* 侧边栏小工具 - 列表页和详情页 */
.sidebar-widget {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 25px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.widget-title i {
    font-size: 18px;
    color: #4dabf7;
    margin-right: 10px;
}

.widget-title h3 {
    font-size: 18px;
    color: #1a365d;
    font-weight: 600;
}

.hot-news-list, .recommend-list {
    list-style: none;
}

.hot-news-item, .recommend-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.hot-news-item:last-child, .recommend-item:last-child {
    border-bottom: none;
}


.hot-news-title, .recommend-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.hot-news-title a, .recommend-title a {
    color: #333;
    text-decoration: none;
}

.hot-news-title a:hover, .recommend-title a:hover {
    color: #4dabf7;
}

.hot-news-time, .recommend-time {
    color: #999;
    font-size: 12px;
    margin-top: 4px;
}

/* 翻页功能 - 列表页 */
.pagination-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 40px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
}

.pagination li {
    margin: 0 5px;
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination a {
    color: #666;
    border: 1px solid #e0e0e0;
    background-color: white;
}

.pagination a:hover {
    background-color: #f0f7ff;
    border-color: #4dabf7;
    color: #4dabf7;
}

.pagination .active a {
    background-color: #4dabf7;
    border-color: #4dabf7;
    color: white;
}

.pagination .prev, .pagination .next {
    width: auto;
    padding: 0 15px;
}

.pagination .disabled a {
    color: #ccc;
    cursor: not-allowed;
}

.pagination .disabled a:hover {
    background-color: white;
    border-color: #e0e0e0;
    color: #ccc;
}

/* 文章详情 - 详情页 */
.article-detail {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.article-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.article-category {
    display: inline-block;
    padding: 6px 15px;
    background-color: #e6f7e9;
    color: #1e7b34;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 15px;
}

.article-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a365d;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.article-time, .article-source, .article-author, .article-views {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.article-time i, .article-source i, .article-author i, .article-views i {
    margin-right: 5px;
    font-size: 13px;
}

.article-body {
    line-height: 1.8;
}

.article-intro {
    font-size: 18px;
    color: #444;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 4px solid #4dabf7;
    border-radius: 4px;
}

.article-content {
    font-size: 16px;
    color: #333;
}

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

.article-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a365d;
    margin: 30px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.article-content ul, .article-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-image {
    margin: 30px 0;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.article-image figcaption {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

.article-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-tags span {
    font-weight: 600;
    color: #666;
    margin-right: 10px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: #f0f7ff;
    color: #4dabf7;
    font-size: 13px;
    border-radius: 20px;
    margin-right: 8px;
    margin-bottom: 8px;
    text-decoration: none;
}

.tag:hover {
    background-color: #e1f0ff;
}

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

.nav-prev, .nav-next {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #666;
    width: 45%;
}

.nav-prev:hover, .nav-next:hover {
    color: #4dabf7;
}

.nav-prev i {
    margin-right: 10px;
}

.nav-next i {
    margin-left: 10px;
}

.nav-next {
    text-align: right;
    justify-content: flex-end;
}

.nav-label {
    font-size: 13px;
    color: #999;
    display: block;
}

.nav-title {
    font-weight: 500;
    font-size: 15px;
    line-height: 1.4;
}

/* 首页特有样式 */
.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.section-title h2 {
    font-size: 22px;
    color: #1a365d;
}

.section-title i {
    margin-right: 10px;
    color: #4dabf7;
    font-size: 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.news-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.news-category {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    margin: 15px 0 10px 15px;
}

.news-category.politics {
    background-color: #e7f5ff;
    color: #1a365d;
}

.news-category.tech {
    background-color: #e6f7e9;
    color: #1e7b34;
}

.news-category.finance {
    background-color: #fff7e6;
    color: #ad6800;
}

.news-category.sports {
    background-color: #ffe6e6;
    color: #c41e3a;
}

.news-content {
    padding: 0 15px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #1a365d;
    flex-grow: 1;
}

.news-title a {
    color: inherit;
    text-decoration: none;
}

.news-title a:hover {
    color: #4dabf7;
}

.news-excerpt {
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 底部样式 - 三页通用 */
footer {
    background-color: #1a365d;
    color: #b3d4fc;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2d4a7c;
}

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

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

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

.footer-links a:hover {
    color: #4dabf7;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2d4a7c;
    font-size: 14px;
    color: #8bb4f7;
}

/* 响应式设计 - 三页通用 */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    
    .right-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .article-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 10px 10px;
    }
    
    .right-sidebar {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title h2 {
        font-size: 20px;
    }
    
    .article-meta {
        flex-wrap: wrap;
    }
    
    .article-time, .article-source, .article-author, .article-views {
        margin-bottom: 8px;
    }
    
    .article-navigation {
        flex-direction: column;
    }
    
    .nav-prev, .nav-next {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-index {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 {
        font-size: 18px;
    }
    
    .page-title h1 {
        font-size: 24px;
    }
    
    .article-detail {
        padding: 20px;
    }
    
    .article-title {
        font-size: 22px;
    }
    
    .article-intro {
        font-size: 16px;
        padding: 15px;
    }
    
    .article-content {
        font-size: 15px;
    }
    
    .news-card {
        max-width: 100%;
    }
    
    .pagination a, .pagination span {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .pagination .prev, .pagination .next {
        padding: 0 10px;
    }
}