:root {
    --primary-bg: #f4f7fc;
    --secondary-bg: #ffffff;
    --card-bg: #e9edf5;
    --text-color: #333333;
    --accent-color: #007bff;
    --accent-hover: #0056b3;
    --border-color: #d1d9e6;
    --timeline-dot-color: var(--accent-color);
    --timeline-line-color: var(--border-color);
    --accent-color-rgb: 0, 123, 255; /* RGB值用于阴影效果 */

    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Orbitron', sans-serif; /* 科技感字体 */
    
    --sidebar-width: 250px; /* 侧边栏宽度 */
}

/* 可选的亮色主题变量 */
.light-theme {
    --primary-bg: #2b2147; /* 深紫色背景 */
    --secondary-bg: #3a2b5c; /* 稍浅的紫色 */
    --card-bg: #4a3670; /* 中性紫色卡片背景 */
    --text-color: #f5f5f5;
    --accent-color: #9d65ff; /* 亮紫色强调色 */
    --accent-hover: #8a4fff;
    --border-color: #5a4580;
    --timeline-dot-color: var(--accent-color);
    --timeline-line-color: var(--border-color);
    --accent-color-rgb: 157, 101, 255; /* 更新RGB值用于阴影效果 */
}


body {
    font-family: var(--font-main);
    background-color: var(--primary-bg);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

header {
    background-color: var(--secondary-bg);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8em;
    color: var(--accent-color);
}
.logo i {
    margin-right: 8px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 20px;
    font-size: 1em;
    transition: color 0.3s;
}
nav a:hover, nav a.active {
    color: var(--accent-color);
}
nav a i {
    font-size: 0.8em;
    margin-left: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
}

#theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 15px;
    transition: background-color 0.3s, color 0.3s;
}
#theme-toggle:hover {
    background-color: var(--accent-color);
    color: var(--primary-bg);
}

.search-bar {
    display: flex;
}
.search-bar input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px 0 0 5px;
    background-color: var(--primary-bg);
    color: var(--text-color);
    outline: none;
}
.search-bar button {
    padding: 8px 12px;
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: white;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}
.search-bar button:hover {
    background-color: var(--accent-hover);
}
/* 页面容器 - 用于侧边栏和主内容区域的布局 */
.page-container {
    display: flex;
    min-height: calc(100vh - 130px); /* 减去header和footer的高度 */
}

/* 侧边栏样式 */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--secondary-bg);
    border-right: 1px solid var(--border-color);
    padding: 20px;
    position: sticky;
    top: 70px; /* 头部导航栏下方 */
    height: calc(100vh - 70px);
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sidebar-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h3 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-category {
    margin-bottom: 20px;
}

.filter-category h4 {
    color: var(--text-color);
    margin-bottom: 12px;
    font-size: 1em;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-item:hover {
    background-color: rgba(var(--accent-color-rgb), 0.1);
    transform: translateX(3px);
}

.filter-item.active {
    background-color: var(--accent-color);
    color: white;
}

/* 添加这个新规则来解决激活项悬停时的文字可见性问题 */
.filter-item.active:hover {
    background-color: var(--accent-hover);
    color: white;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(var(--accent-color-rgb), 0.4);
}

.filter-item input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--accent-color);
}

.filter-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

.filter-actions button {
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    flex: 1;
}

.filter-actions .reset-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.filter-actions .reset-btn:hover {
    background-color: var(--border-color);
}

.filter-actions .apply-btn {
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: white;
}

.filter-actions .apply-btn:hover {
    background-color: var(--accent-hover);
}

/* 主内容区域 */
.content-area {
    flex: 1;
    padding: 20px;
    transition: all 0.3s ease;
}

/* 横向时间轴样式 */
.horizontal-timeline {
    background-color: var(--secondary-bg);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.horizontal-timeline h3 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.timeline-slider-container {
    padding: 10px 20px 20px;
}

#horizontal-date-slider {
    margin: 20px 10px;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    position: relative;
}

#horizontal-date-slider .ui-slider-range {
    background-color: var(--accent-color);
    border-radius: 4px;
}

#horizontal-date-slider .ui-slider-handle {
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 50%;
    border: 2px solid var(--primary-bg);
    top: -7px;
    margin-left: -10px;
    cursor: pointer;
    transition: transform 0.2s;
}

#horizontal-date-slider .ui-slider-handle:hover,
#horizontal-date-slider .ui-slider-handle:active {
    transform: scale(1.2);
}

.timeline-dates {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: var(--text-color);
    font-size: 0.9em;
}
main {
    display: flex;
    flex-direction: column; /* 改为纵向布局 */
    padding: 20px;
    max-width: 90%; /* 增加最大宽度至90% */
    margin: 0 auto; /* 居中显示 */
}

/* 改进筛选器样式 */
.filters {
    background-color: var(--secondary-bg);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.filters h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.filters h2 i {
    font-size: 0.9em;
}

.filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 10px;
}
/* 添加到style.css文件中 */
.timeline-container.scrolling {
    transition: all 0.5s ease;
}

/* 修改水平时间轴样式，适应单点滑块 */
.timeline-dates {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

#date-start-display {
    font-weight: bold;
    color: var(--accent-color);
}

/* 增强标签视觉效果 */
.timeline-item__tags .tag {
    display: inline-block;
    margin-bottom: 5px;
    transition: all 0.2s ease;
}

.timeline-item__tags .tag:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}


.filter-group {
    flex: 1;
    min-width: 200px;
    background-color: var(--primary-bg);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.filter-group h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--accent-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.2s, transform 0.1s;
    padding: 5px;
    border-radius: 4px;
}

.filter-group label:hover {
    color: var(--accent-color);
    background-color: rgba(0, 168, 255, 0.1);
    transform: translateX(3px);
}

.filter-group input[type="checkbox"] {
    margin-right: 10px;
    accent-color: var(--accent-color);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.date-range {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.date-range input[type="date"] {
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s;
}

.date-range input[type="date"]:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 168, 255, 0.2);
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    gap: 10px;
}

.filter-actions button {
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-actions .reset-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.filter-actions .reset-btn:hover {
    background-color: var(--border-color);
}

.filter-actions .apply-btn {
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: white;
}

.filter-actions .apply-btn:hover {
    background-color: var(--accent-hover);
}

/* 响应式设计调整 */
@media (max-width: 992px) {
    .sidebar {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        min-width: 100%;
    }
}
.filter-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-right: 15px;
}

.filter-group input[type="checkbox"] {
    margin-right: 5px;
    accent-color: var(--accent-color);
    background-color: var(--accent-hover);
}

/* 时间轴容器 */
.timeline-container {
    position: relative;
    padding: 20px 0;
}

/* 垂直时间轴 */
.timeline-axis {
    position: absolute;
    left: 20px;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent-color), var(--timeline-line-color) 30%, var(--timeline-line-color));
    height: 100%;
    z-index: 1;
}

.timeline-date-marker {
    text-align: center;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    margin: 20px 0 20px 40px;
    position: relative;
    z-index: 2;
    width: fit-content;
    font-family: var(--font-heading);
}

.timeline-item {
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 30px;
    margin-left: 40px;
    position: relative;
    z-index: 2;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 95%;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(var(--accent-color-rgb), 0.3);
}

/* 连接点和线 */
.timeline-item::before {
    content: '';
    position: absolute;
    top: 25px;
    left: -28px;
    width: 12px;
    height: 12px;
    background-color: var(--timeline-dot-color);
    border: 3px solid var(--primary-bg);
    border-radius: 50%;
    z-index: 3;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 30px;
    left: -20px;
    width: 20px;
    height: 2px;
    background-color: var(--timeline-line-color);
    z-index: 1;
}

.timeline-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}
.timeline-item__title {
    font-family: var(--font-heading);
    font-size: 1.4em;
    margin: 0;
    color: var(--accent-color);
}
.timeline-item__meta {
    font-size: 0.85em;
    color: #a0a0a0;
}
.timeline-item__source {
    font-weight: bold;
}

.timeline-item__content img {
    max-width: 100%;
    border-radius: 6px;
    margin-bottom: 10px;
}
.timeline-item__content video-thumbnail {
    display: block;
    position: relative;
    cursor: pointer;
    margin-bottom: 10px;
}
.timeline-item__content video-thumbnail img {
    display: block;
    width: 100%;
    border-radius: 6px;
}
.timeline-item__content video-thumbnail .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(0,0,0,0.4);
    border-radius: 50%;
    padding: 10px;
    line-height: 0;
}
.timeline-item__content video-thumbnail:hover .play-icon {
    color: white;
    background-color: rgba(0,0,0,0.6);
}

.timeline-item__snippet {
    font-size: 0.95em;
    margin-bottom: 15px;
}
.timeline-item__tags {
    margin-bottom: 15px;
}
.timeline-item__tags .tag {
    background-color: var(--secondary-bg);
    color: var(--accent-color);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-right: 5px;
    border: 1px solid var(--border-color);
}

.timeline-item__readmore {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-size: 0.9em;
}
.timeline-item__readmore:hover {
    background-color: var(--accent-hover);
}

/* 视频 Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}
.modal-content {
    background-color: var(--secondary-bg);
    margin: auto;
    padding: 20px;
    border: 1px solid var(--border-color);
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
}
.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-button:hover, .close-button:focus {
    color: var(--text-color);
    text-decoration: none;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
}

/* 侧边栏过滤菜单样式 */
.page-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--secondary-bg);
    border-right: 1px solid var(--border-color);
    padding: 20px;
    position: sticky;
    top: 70px; /* 头部导航栏下方 */
    height: calc(100vh - 70px);
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sidebar-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h3 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-category {
    margin-bottom: 20px;
}

.filter-category h4 {
    color: var(--text-color);
    margin-bottom: 12px;
    font-size: 1em;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-item:hover {
    background-color: rgba(var(--accent-color-rgb), 0.1);
    transform: translateX(3px);
}

.filter-item.active {
    background-color: var(--accent-color);
    color: white;
}

/* 添加这个新规则来解决激活项悬停时的文字可见性问题 */
.filter-item.active:hover {
    background-color: var(--accent-hover);
    color: white;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(var(--accent-color-rgb), 0.4);
}

.filter-item input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--accent-color);
}

.content-area {
    flex: 1;
    padding: 20px;
    transition: all 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }
    
    .content-area {
        padding: 10px;
    }
    
    .timeline-item {
        margin-left: 30px;
        padding: 15px;
    }
    
    .timeline-axis {
        left: 15px;
    }
    
    .timeline-item::before {
        left: -23px;
    }
    
    .timeline-item::after {
        left: -15px;
    }
}

body {
    font-family: var(--font-main);
    background-color: var(--primary-bg);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

header {
    background-color: var(--secondary-bg);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8em;
    color: var(--accent-color);
}
.logo i {
    margin-right: 8px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 20px;
    font-size: 1em;
    transition: color 0.3s;
}
nav a:hover, nav a.active {
    color: var(--accent-color);
}
nav a i {
    font-size: 0.8em;
    margin-left: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
}

#theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 15px;
    transition: background-color 0.3s, color 0.3s;
}
#theme-toggle:hover {
    background-color: var(--accent-color);
    color: var(--primary-bg);
}

.search-bar {
    display: flex;
}
.search-bar input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px 0 0 5px;
    background-color: var(--primary-bg);
    color: var(--text-color);
    outline: none;
}
.search-bar button {
    padding: 8px 12px;
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: white;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}
.search-bar button:hover {
    background-color: var(--accent-hover);
}

main {
    display: flex;
    flex-direction: column; /* 改为纵向布局 */
    padding: 20px;
    max-width: 90%; /* 增加最大宽度至90% */
    margin: 0 auto; /* 居中显示 */
}

/* 改进筛选器样式 */
.filters {
    background-color: var(--secondary-bg);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.filters h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.filters h2 i {
    font-size: 0.9em;
}

.filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 10px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
    background-color: var(--primary-bg);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.filter-group h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--accent-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.2s, transform 0.1s;
    padding: 5px;
    border-radius: 4px;
}

.filter-group label:hover {
    color: var(--accent-color);
    background-color: rgba(0, 168, 255, 0.1);
    transform: translateX(3px);
}

.filter-group input[type="checkbox"] {
    margin-right: 10px;
    accent-color: var(--accent-color);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.date-range {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.date-range input[type="date"] {
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s;
}

.date-range input[type="date"]:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 168, 255, 0.2);
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    gap: 10px;
}

.filter-actions button {
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-actions .reset-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.filter-actions .reset-btn:hover {
    background-color: var(--border-color);
}

.filter-actions .apply-btn {
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: white;
}

.filter-actions .apply-btn:hover {
    background-color: var(--accent-hover);
}

/* 响应式设计调整 */
@media (max-width: 992px) {
    .sidebar {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        min-width: 100%;
    }
}
.filter-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-right: 15px;
}

.filter-group input[type="checkbox"] {
    margin-right: 5px;
    accent-color: var(--accent-color);
}

/* 时间轴容器 */
.timeline-container {
    position: relative;
    padding: 20px 0;
}

/* 垂直时间轴 */
.timeline-axis {
    position: absolute;
    left: 20px;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent-color), var(--timeline-line-color) 30%, var(--timeline-line-color));
    height: 100%;
    z-index: 1;
}

.timeline-date-marker {
    text-align: center;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    margin: 20px 0 20px 40px;
    position: relative;
    z-index: 2;
    width: fit-content;
    font-family: var(--font-heading);
}

.timeline-item {
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 30px;
    margin-left: 40px;
    position: relative;
    z-index: 2;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 95%;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(var(--accent-color-rgb), 0.3);
}

/* 连接点和线 */
.timeline-item::before {
    content: '';
    position: absolute;
    top: 25px;
    left: -28px;
    width: 12px;
    height: 12px;
    background-color: var(--timeline-dot-color);
    border: 3px solid var(--primary-bg);
    border-radius: 50%;
    z-index: 3;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 30px;
    left: -20px;
    width: 20px;
    height: 2px;
    background-color: var(--timeline-line-color);
    z-index: 1;
}

.timeline-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}
.timeline-item__title {
    font-family: var(--font-heading);
    font-size: 1.4em;
    margin: 0;
    color: var(--accent-color);
}
.timeline-item__meta {
    font-size: 0.85em;
    color: #a0a0a0;
}
.timeline-item__source {
    font-weight: bold;
}

.timeline-item__content img {
    max-width: 100%;
    border-radius: 6px;
    margin-bottom: 10px;
}
.timeline-item__content video-thumbnail {
    display: block;
    position: relative;
    cursor: pointer;
    margin-bottom: 10px;
}
.timeline-item__content video-thumbnail img {
    display: block;
    width: 100%;
    border-radius: 6px;
}
.timeline-item__content video-thumbnail .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(0,0,0,0.4);
    border-radius: 50%;
    padding: 10px;
    line-height: 0;
}
.timeline-item__content video-thumbnail:hover .play-icon {
    color: white;
    background-color: rgba(0,0,0,0.6);
}

.timeline-item__snippet {
    font-size: 0.95em;
    margin-bottom: 15px;
}
.timeline-item__tags {
    margin-bottom: 15px;
}
.timeline-item__tags .tag {
    background-color: var(--secondary-bg);
    color: var(--accent-color);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-right: 5px;
    border: 1px solid var(--border-color);
}

.timeline-item__readmore {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-size: 0.9em;
}
.timeline-item__readmore:hover {
    background-color: var(--accent-hover);
}

/* 视频 Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}
.modal-content {
    background-color: var(--secondary-bg);
    margin: auto;
    padding: 20px;
    border: 1px solid var(--border-color);
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
}
.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-button:hover, .close-button:focus {
    color: var(--text-color);
    text-decoration: none;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
}

/* 侧边栏过滤菜单样式 */
.page-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--secondary-bg);
    border-right: 1px solid var(--border-color);
    padding: 20px;
    position: sticky;
    top: 70px; /* 头部导航栏下方 */
    height: calc(100vh - 70px);
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sidebar-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h3 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-category {
    margin-bottom: 20px;
}

.filter-category h4 {
    color: var(--text-color);
    margin-bottom: 12px;
    font-size: 1em;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-item:hover {
    background-color: rgba(var(--accent-color-rgb), 0.1);
    transform: translateX(3px);
}

.filter-item.active {
    background-color: var(--accent-color);
    color: white;
}

/* 添加这个新规则来解决激活项悬停时的文字可见性问题 */
.filter-item.active:hover {
    background-color: var(--accent-hover);
    color: white;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(var(--accent-color-rgb), 0.4);
}

.filter-item input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--accent-color);
}

.content-area {
    flex: 1;
    padding: 20px;
    transition: all 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }
    
    .content-area {
        padding: 10px;
    }
    
    .timeline-item {
        margin-left: 30px;
        padding: 15px;
    }
    
    .timeline-axis {
        left: 15px;
    }
    
    .timeline-item::before {
        left: -23px;
    }
    
    .timeline-item::after {
        left: -15px;
    }
}

body {
    font-family: var(--font-main);
    background-color: var(--primary-bg);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

header {
    background-color: var(--secondary-bg);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8em;
    color: var(--accent-color);
}
.logo i {
    margin-right: 8px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 20px;
    font-size: 1em;
    transition: color 0.3s;
}
nav a:hover, nav a.active {
    color: var(--accent-color);
}
nav a i {
    font-size: 0.8em;
    margin-left: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
}

#theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 15px;
    transition: background-color 0.3s, color 0.3s;
}
#theme-toggle:hover {
    background-color: var(--accent-color);
    color: var(--primary-bg);
}

.search-bar {
    display: flex;
}
.search-bar input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px 0 0 5px;
    background-color: var(--primary-bg);
    color: var(--text-color);
    outline: none;
}
.search-bar button {
    padding: 8px 12px;
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: white;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}
.search-bar button:hover {
    background-color: var(--accent-hover);
}

main {
    display: flex;
    flex-direction: column; /* 改为纵向布局 */
    padding: 20px;
    max-width: 90%; /* 增加最大宽度至90% */
    margin: 0 auto; /* 居中显示 */
}

/* 改进筛选器样式 */
.filters {
    background-color: var(--secondary-bg);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.filters h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.filters h2 i {
    font-size: 0.9em;
}

.filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 10px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
    background-color: var(--primary-bg);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.filter-group h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--accent-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.2s, transform 0.1s;
    padding: 5px;
    border-radius: 4px;
}

.filter-group label:hover {
    color: var(--accent-color);
    background-color: rgba(0, 168, 255, 0.1);
    transform: translateX(3px);
}

.filter-group input[type="checkbox"] {
    margin-right: 10px;
    accent-color: var(--accent-color);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.date-range {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.date-range input[type="date"] {
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s;
}

.date-range input[type="date"]:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 168, 255, 0.2);
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    gap: 10px;
}

.filter-actions button {
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-actions .reset-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.filter-actions .reset-btn:hover {
    background-color: var(--border-color);
}

.filter-actions .apply-btn {
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: white;
}

.filter-actions .apply-btn:hover {
    background-color: var(--accent-hover);
}

/* 响应式设计调整 */
@media (max-width: 992px) {
    .sidebar {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        min-width: 100%;
    }
}
.filter-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-right: 15px;
}

.filter-group input[type="checkbox"] {
    margin-right: 5px;
    accent-color: var(--accent-color);
}

/* 时间轴容器 */
.timeline-container {
    position: relative;
    padding: 20px 0;
}

/* 垂直时间轴 */
.timeline-axis {
    position: absolute;
    left: 20px;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent-color), var(--timeline-line-color) 30%, var(--timeline-line-color));
    height: 100%;
    z-index: 1;
}

.timeline-date-marker {
    text-align: center;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    margin: 20px 0 20px 40px;
    position: relative;
    z-index: 2;
    width: fit-content;
    font-family: var(--font-heading);
}

.timeline-item {
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 30px;
    margin-left: 40px;
    position: relative;
    z-index: 2;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 95%;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(var(--accent-color-rgb), 0.3);
}

/* 连接点和线 */
.timeline-item::before {
    content: '';
    position: absolute;
    top: 25px;
    left: -28px;
    width: 12px;
    height: 12px;
    background-color: var(--timeline-dot-color);
    border: 3px solid var(--primary-bg);
    border-radius: 50%;
    z-index: 3;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 30px;
    left: -20px;
    width: 20px;
    height: 2px;
    background-color: var(--timeline-line-color);
    z-index: 1;
}

.timeline-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}
.timeline-item__title {
    font-family: var(--font-heading);
    font-size: 1.4em;
    margin: 0;
    color: var(--accent-color);
}
.timeline-item__meta {
    font-size: 0.85em;
    color: #a0a0a0;
}
.timeline-item__source {
    font-weight: bold;
}

.timeline-item__content img {
    max-width: 100%;
    border-radius: 6px;
    margin-bottom: 10px;
}
.timeline-item__content video-thumbnail {
    display: block;
    position: relative;
    cursor: pointer;
    margin-bottom: 10px;
}
.timeline-item__content video-thumbnail img {
    display: block;
    width: 100%;
    border-radius: 6px;
}
.timeline-item__content video-thumbnail .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(0,0,0,0.4);
    border-radius: 50%;
    padding: 10px;
    line-height: 0;
}
.timeline-item__content video-thumbnail:hover .play-icon {
    color: white;
    background-color: rgba(0,0,0,0.6);
}

.timeline-item__snippet {
    font-size: 0.95em;
    margin-bottom: 15px;
}
.timeline-item__tags {
    margin-bottom: 15px;
}
.timeline-item__tags .tag {
    background-color: var(--secondary-bg);
    color: var(--accent-color);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-right: 5px;
    border: 1px solid var(--border-color);
}

.timeline-item__readmore {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-size: 0.9em;
}
.timeline-item__readmore:hover {
    background-color: var(--accent-hover);
}

/* 视频 Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}
.modal-content {
    background-color: var(--secondary-bg);
    margin: auto;
    padding: 20px;
    border: 1px solid var(--border-color);
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
}
.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-button:hover, .close-button:focus {
    color: var(--text-color);
    text-decoration: none;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
}

/* 侧边栏过滤菜单样式 */
.page-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--secondary-bg);
    border-right: 1px solid var(--border-color);
    padding: 20px;
    position: sticky;
    top: 70px; /* 头部导航栏下方 */
    height: calc(100vh - 70px);
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sidebar-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h3 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-category {
    margin-bottom: 20px;
}

.filter-category h4 {
    color: var(--text-color);
    margin-bottom: 12px;
    font-size: 1em;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-item:hover {
    background-color: rgba(var(--accent-color-rgb), 0.1);
    transform: translateX(3px);
}

.filter-item.active {
    background-color: var(--accent-color);
    color: white;
}

/* 添加这个新规则来解决激活项悬停时的文字可见性问题 */
.filter-item.active:hover {
    background-color: var(--accent-hover);
    color: white;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(var(--accent-color-rgb), 0.4);
}

.filter-item input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--accent-color);
}

.content-area {
    flex: 1;
    padding: 20px;
    transition: all 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }
    
    .content-area {
        padding: 10px;
    }
    
    .timeline-item {
        margin-left: 30px;
        padding: 15px;
    }
    
    .timeline-axis {
        left: 15px;
    }
    
    .timeline-item::before {
        left: -23px;
    }
    
    .timeline-item::after {
        left: -15px;
    }
}

body {
    font-family: var(--font-main);
    background-color: var(--primary-bg);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

header {
    background-color: var(--secondary-bg);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8em;
    color: var(--accent-color);
}
.logo i {
    margin-right: 8px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 20px;
    font-size: 1em;
    transition: color 0.3s;
}
nav a:hover, nav a.active {
    color: var(--accent-color);
}
nav a i {
    font-size: 0.8em;
    margin-left: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
}

#theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 15px;
    transition: background-color 0.3s, color 0.3s;
}
#theme-toggle:hover {
    background-color: var(--accent-color);
    color: var(--primary-bg);
}

.search-bar {
    display: flex;
}
.search-bar input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px 0 0 5px;
    background-color: var(--primary-bg);
    color: var(--text-color);
    outline: none;
}
.search-bar button {
    padding: 8px 12px;
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: white;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}
.search-bar button:hover {
    background-color: var(--accent-hover);
}

main {
    display: flex;
    flex-direction: column; /* 改为纵向布局 */
    padding: 20px;
    max-width: 90%; /* 增加最大宽度至90% */
    margin: 0 auto; /* 居中显示 */
}

/* 改进筛选器样式 */
.filters {
    background-color: var(--secondary-bg);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.filters h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.filters h2 i {
    font-size: 0.9em;
}

.filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 10px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
    background-color: var(--primary-bg);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.filter-group h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--accent-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.2s, transform 0.1s;
    padding: 5px;
    border-radius: 4px;
}

.filter-group label:hover {
    color: var(--accent-color);
    background-color: rgba(0, 168, 255, 0.1);
    transform: translateX(3px);
}

.filter-group input[type="checkbox"] {
    margin-right: 10px;
    accent-color: var(--accent-color);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.date-range {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.date-range input[type="date"] {
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s;
}

.date-range input[type="date"]:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 168, 255, 0.2);
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    gap: 10px;
}

.filter-actions button {
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-actions .reset-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.filter-actions .reset-btn:hover {
    background-color: var(--border-color);
}

.filter-actions .apply-btn {
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: white;
}

.filter-actions .apply-btn:hover {
    background-color: var(--accent-hover);
}

/* 响应式设计调整 */
@media (max-width: 992px) {
    .sidebar {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        min-width: 100%;
    }
}
.filter-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-right: 15px;
}

.filter-group input[type="checkbox"] {
    margin-right: 5px;
    accent-color: var(--accent-color);
}

/* 时间轴容器 */
.timeline-container {
    position: relative;
    padding: 20px 0;
}

/* 垂直时间轴 */
.timeline-axis {
    position: absolute;
    left: 20px;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent-color), var(--timeline-line-color) 30%, var(--timeline-line-color));
    height: 100%;
    z-index: 1;
}

.timeline-date-marker {
    text-align: center;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    margin: 20px 0 20px 40px;
    position: relative;
    z-index: 2;
    width: fit-content;
    font-family: var(--font-heading);
}

.timeline-item {
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 30px;
    margin-left: 40px;
    position: relative;
    z-index: 2;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 95%;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(var(--accent-color-rgb), 0.3);
}

/* 连接点和线 */
.timeline-item::before {
    content: '';
    position: absolute;
    top: 25px;
    left: -28px;
    width: 12px;
    height: 12px;
    background-color: var(--timeline-dot-color);
    border: 3px solid var(--primary-bg);
    border-radius: 50%;
    z-index: 3;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 30px;
    left: -20px;
    width: 20px;
    height: 2px;
    background-color: var(--timeline-line-color);
    z-index: 1;
}

.timeline-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}
.timeline-item__title {
    font-family: var(--font-heading);
    font-size: 1.4em;
    margin: 0;
    color: var(--accent-color);
}
.timeline-item__meta {
    font-size: 0.85em;
    color: #a0a0a0;
}
.timeline-item__source {
    font-weight: bold;
}

.timeline-item__content img {
    max-width: 100%;
    border-radius: 6px;
    margin-bottom: 10px;
}
.timeline-item__content video-thumbnail {
    display: block;
    position: relative;
    cursor: pointer;
    margin-bottom: 10px;
}
.timeline-item__content video-thumbnail img {
    display: block;
    width: 100%;
    border-radius: 6px;
}
.timeline-item__content video-thumbnail .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(0,0,0,0.4);
    border-radius: 50%;
    padding: 10px;
    line-height: 0;
}
.timeline-item__content video-thumbnail:hover .play-icon {
    color: white;
    background-color: rgba(0,0,0,0.6);
}

.timeline-item__snippet {
    font-size: 0.95em;
    margin-bottom: 15px;
}
.timeline-item__tags {
    margin-bottom: 15px;
}
.timeline-item__tags .tag {
    background-color: var(--secondary-bg);
    color: var(--accent-color);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-right: 5px;
    border: 1px solid var(--border-color);
}

.timeline-item__readmore {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-size: 0.9em;
}
.timeline-item__readmore:hover {
    background-color: var(--accent-hover);
}

/* 视频 Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}
.modal-content {
    background-color: var(--secondary-bg);
    margin: auto;
    padding: 20px;
    border: 1px solid var(--border-color);
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
}
.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-button:hover, .close-button:focus {
    color: var(--text-color);
    text-decoration: none;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
}

/* 侧边栏过滤菜单样式 */
.page-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--secondary-bg);
    border-right: 1px solid var(--border-color);
    padding: 20px;
    position: sticky;
    top: 70px; /* 头部导航栏下方 */
    height: calc(100vh - 70px);
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sidebar-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h3 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-category {
    margin-bottom: 20px;
}

.filter-category h4 {
    color: var(--text-color);
    margin-bottom: 12px;
    font-size: 1em;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-item:hover {
    background-color: rgba(var(--accent-color-rgb), 0.1);
    transform: translateX(3px);
}

.filter-item.active {
    background-color: var(--accent-color);
    color: white;
}

/* 添加这个新规则来解决激活项悬停时的文字可见性问题 */
.filter-item.active:hover {
    background-color: var(--accent-hover);
    color: white;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(var(--accent-color-rgb), 0.4);
}

.filter-item input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--accent-color);
}

.content-area {
    flex: 1;
    padding: 20px;
    transition: all 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }
    
    .content-area {
        padding: 10px;
    }
    
    .timeline-item {
        margin-left: 30px;
        padding: 15px;
    }
    
    .timeline-axis {
        left: 15px;
    }
    
    .timeline-item::before {
        left: -23px;
    }
    
    .timeline-item::after {
        left: -15px;
    }
}

body {
    font-family: var(--font-main);
    background-color: var(--primary-bg);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

header {
    background-color: var(--secondary-bg);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8em;
    color: var(--accent-color);
}
.logo i {
    margin-right: 8px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 20px;
    font-size: 1em;
    transition: color 0.3s;
}
nav a:hover, nav a.active {
    color: var(--accent-color);
}
nav a i {
    font-size: 0.8em;
    margin-left: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
}

#theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 15px;
    transition: background-color 0.3s, color 0.3s;
}
#theme-toggle:hover {
    background-color: var(--accent-color);
    color: var(--primary-bg);
}

.search-bar {
    display: flex;
}
.search-bar input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px 0 0 5px;
    background-color: var(--primary-bg);
    color: var(--text-color);
    outline: none;
}
.search-bar button {
    padding: 8px 12px;
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: white;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}
.search-bar button:hover {
    background-color: var(--accent-hover);
}

main {
    display: flex;
    flex-direction: column; /* 改为纵向布局 */
    padding: 20px;
    max-width: 90%; /* 增加最大宽度至90% */
    margin: 0 auto; /* 居中显示 */
}

/* 改进筛选器样式 */
.filters {
    background-color: var(--secondary-bg);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.filters h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.filters h2 i {
    font-size: 0.9em;
}

.filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 10px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
    background-color: var(--primary-bg);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.filter-group h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--accent-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.2s, transform 0.1s;
    padding: 5px;
    border-radius: 4px;
}

.filter-group label:hover {
    color: var(--accent-color);
    background-color: rgba(0, 168, 255, 0.1);
    transform: translateX(3px);
}

.filter-group input[type="checkbox"] {
    margin-right: 10px;
    accent-color: var(--accent-color);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.date-range {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.date-range input[type="date"] {
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s;
}

.date-range input[type="date"]:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 168, 255, 0.2);
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    gap: 10px;
}

.filter-actions button {
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-actions .reset-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.filter-actions .reset-btn:hover {
    background-color: var(--border-color);
}

.filter-actions .apply-btn {
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: white;
}

.filter-actions .apply-btn:hover {
    background-color: var(--accent-hover);
}

/* 响应式设计调整 */
@media (max-width: 992px) {
    .sidebar {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        min-width: 100%;
    }
}
.filter-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-right: 15px;
}

.filter-group input[type="checkbox"] {
    margin-right: 5px;
    accent-color: var(--accent-color);
}

.timeline-container {
    position: relative;
    padding: 20px 0;
}

.timeline-axis {
    position: absolute;
    left: 20px; /* 将轴线移到左侧 */
    width: 4px;
    background: linear-gradient(to bottom, var(--accent-color), var(--timeline-line-color) 30%, var(--timeline-line-color));
    height: 100%;
    z-index: 1;
}

/* 详情页样式 */
.detail-content {
    max-width: 85%;
    margin: 0 auto;
}

.news-detail {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.news-detail-header {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.news-title {
    font-family: var(--font-heading);
    font-size: 2.2em;
    color: var(--accent-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #888;
    font-size: 0.9em;
}

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

.news-meta i {
    margin-right: 5px;
}

.news-image-container {
    margin-bottom: 25px;
}

.news-main-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.image-caption {
    text-align: center;
    font-size: 0.9em;
    color: #777;
    margin-top: 10px;
}

.news-content {
    line-height: 1.8;
    font-size: 1.05em;
}

.news-summary {
    font-size: 1.1em;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.6;
    padding: 15px;
    background-color: rgba(var(--accent-color-rgb), 0.05);
    border-left: 4px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
}

.news-content h2 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin: 30px 0 15px;
    font-size: 1.6em;
}

.feature-list {
    padding-left: 20px;
    margin-bottom: 25px;
}

.feature-list li {
    margin-bottom: 10px;
    position: relative;
}

.expert-quote {
    font-style: italic;
    padding: 20px;
    background-color: rgba(var(--accent-color-rgb), 0.05);
    border-radius: 8px;
    margin: 25px 0;
    position: relative;
}

.expert-quote::before {
    content: '"';
    font-size: 4em;
    color: rgba(var(--accent-color-rgb), 0.2);
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: serif;
}

.expert-quote cite {
    display: block;
    text-align: right;
    margin-top: 10px;
    font-weight: bold;
    font-style: normal;
}

.application-examples {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.application-item {
    background-color: var(--secondary-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.application-item h3 {
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.news-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

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

.share-btn {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.share-btn:hover {
    background-color: var(--accent-color);
    color: white;
}

.tags-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-label {
    color: #888;
}

.tag {
    display: inline-block;
    padding: 5px 10px;
    background-color: rgba(var(--accent-color-rgb), 0.1);
    color: var(--accent-color);
    border-radius: 15px;
    font-size: 0.85em;
    text-decoration: none;
    transition: all 0.3s;
}

.tag:hover {
    background-color: var(--accent-color);
    color: white;
}

/* 评论区样式 */
.comments-section {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.comments-section h2 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.comments-container {
    margin-bottom: 30px;
}

.comment {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.comment:last-child {
    border-bottom: none;
}

.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: bold;
    color: var(--accent-color);
}

.comment-date {
    font-size: 0.85em;
    color: #888;
}

.comment-text {
    margin-bottom: 10px;
    line-height: 1.6;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.comment-reply-btn, .comment-like-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.9em;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-reply-btn:hover, .comment-like-btn:hover {
    color: var(--accent-color);
}

.add-comment h3 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin-bottom: 15px;
}

.comment-form {
    display: grid;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 500;
}

.form-group input, .form-group textarea {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--primary-bg);
    color: var(--text-color);
}

.submit-comment {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
    justify-self: start;
}

.submit-comment:hover {
    background-color: var(--accent-hover);
}

/* 相关新闻样式 */
.related-news {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-news-item {
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s;
}

.related-news-item:hover {
    background-color: rgba(var(--accent-color-rgb), 0.1);
}

.related-news-link {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    margin-bottom: 5px;
    font-weight: 500;
}

.related-news-link:hover {
    color: var(--accent-color);
}

.related-news-date {
    font-size: 0.8em;
    color: #888;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.back-to-timeline {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.back-btn:hover {
    transform: translateX(-5px);
}

/* 首页阅读更多按钮 */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: 500;
    transition: all 0.3s;
}

.read-more-btn:hover {
    background-color: var(--accent-hover);
    transform: translateX(5px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-title {
        font-size: 1.8em;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .application-examples {
        grid-template-columns: 1fr;
    }
    
    .news-footer {
        flex-direction: column;
    }
    
    .comment {
        flex-direction: column;
        gap: 10px;
    }
    
    .comment-header {
        flex-direction: column;
        gap: 5px;
    }
}

.timeline-date-marker {
    text-align: center;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    margin: 20px 0 20px 40px; /* 调整左边距 */
    position: relative;
    z-index: 2;
    width: fit-content;
    font-family: var(--font-heading);
}

.timeline-item {
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 30px;
    margin-left: 40px; /* 统一放在轴线右侧 */
    position: relative;
    z-index: 2;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 95%; /* 增加最大宽度 */
}


/* ... existing styles ... */

.knowledge-base-section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: var(--card-bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.knowledge-base-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

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

.resource-card {
    background-color: var(--timeline-item-bg-color);
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.resource-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.resource-card h3 a {
    text-decoration: none;
    color: var(--accent-color);
}

.resource-card h3 a:hover {
    text-decoration: underline;
}

.resource-card p {
    font-size: 0.9em;
    color: var(--text-color-secondary);
    line-height: 1.6;
}

.resource-subsection {
    margin-top: 30px;
    padding-left: 15px;
    border-left: 3px solid var(--primary-color-light);
}

.resource-subsection h3 {
    font-size: 1.3em;
    color: var(--text-color);
    margin-bottom: 15px;
}

.resource-subsection h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.1em;
}
.resource-subsection h4 a {
    text-decoration: none;
    color: var(--accent-color);
}
.resource-subsection h4 a:hover {
    text-decoration: underline;
}

/* Adjust main content area if no sidebar */
.content-area.full-width {
    width: 100%;
    margin-left: 0;
    padding: 20px; /* Add some padding */
}

/* Ensure header nav links are styled correctly */
header nav a {
    color: var(--text-color); /* Or your desired nav link color */
    text-decoration: none;
    padding: 10px 15px;
    transition: background-color 0.3s ease;
}

header nav a.active {
    background-color: var(--accent-color);
    color: white; /* Or a contrasting color */
    border-radius: 4px;
}

header nav a:hover {
    background-color: var(--primary-color-light);
    color: var(--accent-color);
}


/* 建议添加到 static/style.css */
footer {
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    flex-wrap: wrap; /* 允许在小屏幕上换行 */
    max-width: 80%;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 200px; /* 确保在小屏幕上不会太窄 */
    margin: 10px;
    text-align: center;
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
    /* border-bottom: 1px solid var(--accent-color); */
    padding-bottom: 10px;
    font-size: 1.2em;
    transition: color 0.3s;
}



.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li a {
    color: var(--accent-color);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: var(--accent-color);
    padding-top: 15px;
    margin-top: 15px;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}