/* 全局变量 */
:root {
    --primary-color: #0B268F;
    --secondary-color: #1976D2;
    --text-color: #333;
    --light-text: #666;
    --border-color: #e0e0e0;
    --background-color: #f5f5f5;
    --white: #fff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* 基础样式 */
body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    background: #f5f5f5;
}

.sidebar-header

/* Banner样式 */
.banner {
    height: 420px;
    position: relative;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 主体内容区域 */
.main-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* 面包屑导航 */
.breadcrumbs {
    margin-bottom: 30px;
    margin-left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--light-text);
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs i {
    font-size: 0.8rem;
}

/* 内容容器 */
.content-container {
    display: flex;
    gap: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

/* 侧边栏 */
.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.sidebar-header {
    /* background: var(--gradient-primary); */
    background-color: #0B268F;
    color: white;
    padding: 15px;
    margin-bottom: 0;
}

.sidebar-header h2 {
    color: white;
    font-size: 1.3rem;
    margin: 0;
    display: flex;
    align-items: center;
}

.sidebar-header h2 i {
    margin-right: 10px;
    font-size: 1.4rem;
    color: white;
}

.sidebar-list {
    padding: 0;
    margin: 0;
}

.sidebar-list-item {
    margin-top: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.sidebar-list-item:last-child {
    margin-bottom: 0;
}

.sidebar-list-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.sidebar-list-item a i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.sidebar-list-item:hover a {
    background: var(--background-color);
    transform: translateX(5px);
    color: var(--primary-color);
}

.sidebar-list-item.active a {
    background: var(--primary-color);
    color: white;
}

.sidebar-list-item.active a i {
    color: white;
}

.quick-links {
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.quick-links-title {
    margin-bottom: 15px;
    padding: 0 15px;
}

.quick-links-title h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.quick-links-title h3 i {
    margin-right: 10px;
}

.quick-links-list-container {
    padding: 0 15px 15px;
}

.quick-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links-list li {
    margin-bottom: 10px;
}

.quick-links-list li:last-child {
    margin-bottom: 0;
}

.quick-links-list li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 5px;
    background: var(--background-color);
    transition: all 0.3s ease;
}

.quick-links-list li a i {
    margin-right: 10px;
    color: var(--secondary-color);
    width: 18px;
    text-align: center;
}

.quick-links-list li a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quick-links-list li a:hover i {
    color: white;
}

/* 文章列表 */
.article-list {
    flex: 1;
}

.article-list-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.article-header {
    padding: 15px 20px 10px;
    border-bottom: 1px solid #eee;
}

.article-items-container {
    padding: 15px 20px;
}

.article-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-item {
    padding: 15px 10px 0 10px;
    transition: all 0.3s ease;
}

.article-item:last-child {
    border-bottom: none;
}

.article-link {
    position: relative;
    padding-left: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.article-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.article-link:hover {
    color: var(--primary-color);
}

.article-link span {
    color: #999;
    font-size: 0.9rem;
    white-space: nowrap;
    right: 5px;
}

.notice-content {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 640px;
}

.article-date i {
    margin-right: 5px;
    color: var(--primary-color);
}

.article-item:hover {
    background-color: rgba(11, 38, 143, 0.05);
    transform: translateX(5px);
}

/* 分页 */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding-bottom: 20px;
}

.pagination {
    display: flex;
    align-items: center;
}

.pagination a {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    margin: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: var(--background-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.pagination a.active {
    background: var(--primary-color);
    color: white;
}

.pagination a:hover:not(.active) {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-toggle{display:none;}

/* 移动端适配优化 */
@media screen and (max-width: 768px) {

    /* 侧边栏优化 */
    .sidebar {
        position: fixed;
        top: 80px;
        left: -280px;
        bottom: 0;
        width: 280px;
        background: white;
        z-index: 999;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-toggle {
        display: flex;
        position: fixed;
        right: 20px;
        bottom: 20px;
        left: auto;
        top: auto;
        z-index: 1001;
        background: var(--primary-color);
        color: white;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
    }

    .sidebar-toggle:hover {
        transform: scale(1.1);
        background: var(--secondary-color);
    }

    .sidebar-toggle i {
        font-size: 24px;
    }

    /* 内容区域优化 */
    .main-container {
        margin-top: 20px;
        padding: 15px;
    }

    .content-container {
        margin: 0;
        padding: 0;
    }

    .article-list {
        width: 100%;
        margin: 0;
    }

    .article-item {
        margin-bottom: 15px;
        padding: 15px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .notice-content {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .article-date {
        font-size: 14px;
        color: #666;
    }

    /* 面包屑导航优化 */
    .breadcrumbs {
        padding: 10px 0;
        font-size: 14px;
    }

    .breadcrumbs a {
        color: var(--primary-color);
    }

    /* 分页导航优化 */
    .pagination {
        margin-top: 20px;
        justify-content: center;
    }

    .pagination a {
        width: 36px;
        height: 36px;
        line-height: 36px;
        font-size: 14px;
    }

    

    /* Banner响应式缩放 */
    .banner {
        height: 300px;
    }

    .banner-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}