/* 暗黑模式变量覆盖 */
body.dark-mode {
    background-color: #1a1a2e;
    color: #e0e0e0;
}
body.dark-mode .news-card {
    background-color: #212134;
    border-color: #333344;
}
body.dark-mode .tag {
    background-color: rgba(212, 177, 106, 0.2);
    color: #d4b16a;
}
body.dark-mode .filter-option {
    background-color: #212134;
    color: #e0e0e0;
    border-color: #333344;
}
body.dark-mode .filter-option.active {
    background-color: #00338d;
    color: white;
}
body.dark-mode .timeline-item::before {
    background-color: #212134;
}
body.dark-mode .timeline-item::after {
    border-color: #212134;
}
body.dark-mode .header {
    background-color: #1a1a2e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
/* 页面基础 */
body {
    background-color: #f9f9fb;
    color: #333333;
    overflow-x: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
/* 模式切换按钮 */
.mode-toggle {
    background: none;
    border: none;
    color: #00245d;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-left: 20px;
}
.mode-toggle:hover {
    transform: rotate(180deg);
    color: #d4b16a;
}
/* 沉浸式头部 */
.hero-section {
    height: 500px;
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00245d 0%, #00338d 100%);
    z-index: 1;
}
.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://picsum.photos/id/1073/1920/1080');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 2;
    animation: zoom 20s infinite alternate;
}
@keyframes zoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}
.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    padding: 0 5%;
}
.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s forwards 0.3s;
}
.hero-subtitle {
    font-size: 20px;
    max-width: 700px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s forwards 0.6s;
}
.hero-search {
    max-width: 600px;
    display: flex;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s forwards 0.9s;
}
.hero-search-input {
    flex: 1;
    height: 56px;
    padding: 0 20px;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
    outline: none;
}
.hero-search-btn {
    width: 120px;
    height: 56px;
    background-color: #d4b16a;
    color: #00245d;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.hero-search-btn:hover {
    background-color: #c49f58;
    transform: scale(1.02);
}
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* 筛选区域 */
.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.filter-option {
    padding: 8px 20px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.filter-option:hover {
    border-color: #d4b16a;
    color: #d4b16a;
    transform: translateY(-2px);
}
.filter-option.active {
    background-color: #00338d;
    color: white;
    border-color: #00338d;
}
.sort-selector {
    position: relative;
}
.sort-select {
    padding: 8px 20px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    appearance: none;
    padding-right: 35px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.sort-selector::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #666666;
    pointer-events: none;
}
/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}
.tag {
    padding: 6px 16px;
    background-color: rgba(0, 51, 141, 0.1);
    color: #00338d;
    border-radius: 50px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.tag:hover {
    background-color: #00338d;
    color: white;
    transform: scale(1.05);
}
.tag.active {
    background-color: #00338d;
    color: white;
}
/* 主内容区布局 */
.main-content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}
/* 新闻列表 - 瀑布流 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.news-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #e0e0e0;
    position: relative;
    transform: scale(1);
    opacity: 1;
}
.news-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px) scale(1.02);
}
.news-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.news-card:hover .news-card-img {
    transform: scale(1.05);
}
.news-card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #d4b16a;
    color: #00245d;
    padding: 4px 12;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}
.news-card-content {
    padding: 25px;
}
.news-card-category {
    font-size: 12px;
    color: #d4b16a;
    margin-bottom: 10px;
    font-weight: 500;
}
.news-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #333333;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.news-card:hover .news-card-title {
    color: #00338d;
}
.news-card-excerpt {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}
.news-card-read {
    color: #00338d;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.news-card-read:hover {
    color: #d4b16a;
}
/* 侧边栏 - 热门新闻时间轴 */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}
.sidebar-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #00245d;
    position: relative;
    padding-bottom: 15px;
}
.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #d4b16a;
}
.timeline {
    position: relative;
    padding-left: 30px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, #00338d, #d4b16a);
}
.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 10px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #00338d;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.timeline-item::after {
    content: '';
    position: absolute;
    left: -26px;
    top: 9px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #00338d;
    border: 2px solid white;
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.timeline-item:hover {
    transform: translateX(10px);
}
.timeline-item:hover::before {
    background-color: #d4b16a;
    border-color: #d4b16a;
}
.timeline-item:hover::after {
    background-color: white;
}
.timeline-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}
.timeline-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.timeline-title:hover {
    color: #d4b16a;
}
.timeline-views {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}
/* 分页控件 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 60px 0;
    flex-wrap: wrap;
}
.pagination a{
	 text-decoration: none; 
		 color: inherit;
}
.page-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 1px solid #e0e0e0;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.page-btn:hover:not(.active):not(.disabled) {
    border-color: #d4b16a;
    color: #d4b16a;
    transform: scale(1.1);
}
.page-btn.active {
    background-color: #00338d;
    color: white;
    border-color: #00338d;
}
.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* 加载更多按钮 */
.load-more {
    display: block;
    margin: 0 auto;
    padding: 15px 40px;
    background-color: #00338d;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-bottom: 60px;
}
.load-more:hover {
    background-color: #00245d;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 51, 141, 0.2);
}

/* 加载动画 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.loading {
    animation: pulse 1.5s infinite;
}
/* 响应式 */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: none;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    .hero-subtitle {
        font-size: 18px;
    }
    .filter-section {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-section {
        height: 400px;
    }
    .page-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}
@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    .hero-search {
        flex-direction: column;
    }
    .hero-search-input, .hero-search-btn {
        width: 100%;
        border-radius: 8px;
    }
    .hero-search-btn {
        margin-top: 10px;
    }
    .hero-section {
        height: 350px;
    }
    .news-card-content {
        padding: 20px;
    }
    .news-card-title {
        font-size: 18px;
    }
}
