:root {
    --primary-color: #115bb4;
    --primary-dark: #0d4a93;
    --primary-light: #3478d3;
    --text-light: #ffffff;
    --text-dark: #333333;
    --border-color: #dee2e6;
    --shadow: 0 2px 12px rgba(0,0,0,0.1);
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: "Microsoft YaHei", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 顶部区域样式 */
.header {
    border-top:#115bb4 4px solid;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 0;
    color: var(--text-light);
    text-align: center;
}

.banner-bg {
    top: 0;
    left: 0;
    width: 100%;
    height: 133px;
    background-size: cover;
    background-position: center;
}




.site-title {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* 导航菜单样式 */
.navbar {
    padding: 0;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.navbar-nav {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.navbar-nav .nav-item {
    position: relative;
    flex: 1;
    text-align: center;
}

.navbar-nav .nav-link {
    padding: 1rem 1.5rem;
    color: var(--text-light);
    font-weight: 500;
    transition: background-color 0.3s;
}

.navbar-nav .nav-link:hover {
    background-color: var(--primary-dark);
}

/* 下拉菜单样式 */
.dropdown-menu {
    border: none;
    border-radius: 0;
    margin-top: 0;
    box-shadow: var(--shadow);
    padding: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* 鼠标悬停时显示下拉菜单 */
.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s;
    position: relative;
}

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

.dropdown-item:hover {
    background-color: rgba(17, 91, 180, 0.1);
    padding-left: 2rem;
    color: var(--primary-color);
}

/* 添加悬停指示器 */
.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    opacity: 0;
    border-left: 4px solid var(--primary-color);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transition: all 0.3s ease;
}

.dropdown-item:hover::before {
    opacity: 1;
    left: 1rem;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 0.25rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 主体内容 */
main {
    flex: 1 0 auto;
}


.card-header {
    border-bottom: none;
    padding: 0.75rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
    min-height: 360px;
    display: flex;
    flex-direction: column;
}

.article-list {
    margin: 0;
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-list .list-group-item {
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
    background-color: transparent;
}

.article-list .list-group-item:last-child {
    border-bottom: none;
}

.article-list .list-group-item:hover {
    background-color: rgba(17, 91, 180, 0.08);
    transform: translateX(5px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding-left: 1rem;
}

.article-list .list-group-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background-color: var(--primary-color);
    transition: height 0.3s ease;
    opacity: 0;
    border-radius: 3px;
}

.article-list .list-group-item:hover::before {
    height: 70%;
    opacity: 1;
}

.article-list .article-title {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    flex: 1;
    margin-right: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    padding-left: 1.2rem;
    transition: all 0.3s ease;
}

.article-list .article-title::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scale(0.7);
    color: var(--primary-color);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.article-list .article-title:hover {
    color: var(--primary-color);
}

.article-list .article-date {
    color: #6c757d;
    font-size: 0.875rem;
    white-space: nowrap;
    background-color: #f8f9fa;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-left: 2px solid var(--primary-light);
    letter-spacing: 0.5px;
}

.article-list .list-group-item:hover .article-date {
    background-color: var(--primary-light);
    color: var(--text-light);
    border-left-color: var(--primary-dark);
}

/* 轮播图样式 */
.carousel {
    border-radius: 0.25rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    position: relative;
}

.carousel-item {
    height: 414px;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 0.75rem 1rem;
    text-align: left;
}

.carousel-title a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    display: block;
    transition: all 0.3s ease;
}

.carousel-title a:hover {
    color: #f8f9fa;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 0.25rem;
    padding: 1rem;
    bottom: 20px;
    display: none;
}

/* 分页控件样式 */
.pagination {
    margin-bottom: 0;
}

.page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    color: #6c757d;
}

/* 文章详情页样式 */
.article-meta {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

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

.article-attachment {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.attachment-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    color: var(--text-dark);
    text-decoration: none;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.attachment-link:hover {
    background-color: var(--primary-light);
    color: var(--text-light);
    border-color: var(--primary-light);
}

.attachment-link i {
    margin-right: 0.5rem;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .site-title {
        font-size: 1.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .carousel-item {
        height: 300px;
    }
    
    .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* 平板导航菜单优化 */
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
        transition: all 0.3s ease;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        transition: transform 0.3s ease;
    }
    
    .navbar-collapse {
        transition: all 0.3s ease;
    }
}

@media (max-width: 767.98px) {
    .header {
        padding: 0;
    }
    
    .site-title {
        font-size: 1.25rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-info {
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .carousel-item {
        height: 250px;
    }
    
    .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* 移动端导航菜单优化 */
    .navbar-nav {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .navbar-nav .nav-item {
        flex: none;
        width: 100%;
        text-align: left;
    }
    
    .navbar-nav .nav-link {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    /* 移动端下拉菜单样式 */
    .dropdown-menu {
        background-color: rgba(13, 74, 147, 0.9);
        border-radius: 0;
        margin: 0;
        padding: 0;
        position: static !important;
        transform: none !important;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.3s ease;
    }
    
    .nav-item.dropdown.show .dropdown-menu {
        max-height: 500px;
    }
    
    .dropdown-item {
        padding: 0.7rem 1.5rem 0.7rem 2rem;
        color: var(--text-light);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-item:hover {
        background-color: var(--primary-dark);
        color: var(--text-light);
    }
    
    .dropdown-item::before {
        border-left-color: var(--text-light);
    }
}

@media (max-width: 575.98px) {
    .header {
        padding: 0;
    }
    .header .banner-bg{
        height: 50px;
    }
    
    .carousel-item {
        height: 250px;
    }
    
    .carousel-item img {
        height: 250px;
    }
    
    .carousel-title {
        padding: 0.5rem 0.75rem;
    }
    
    .carousel-title a {
        font-size: 0.95rem;
    }
    
    /* 小屏幕移动端导航优化 */
    .navbar-toggler {
        padding: 0.4rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.95rem;
        padding: 0.7rem 1rem;
    }
    
    .dropdown-item {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem 0.6rem 2rem;
    }
}

/* 汉堡菜单动画 */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    transform: rotate(90deg);
}

/* 移动端导航展开/收起动画 */
@media (max-width: 991.98px) {
    .navbar-collapse.collapsing {
        height: auto;
        overflow: hidden;
        transition: height 0.3s ease;
    }
    
    .navbar-collapse.show {
        overflow-y: auto;
        max-height: 80vh;
    }
}

/* 查看更多链接样式 */
.more-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    text-decoration: none;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.more-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateX(3px);
}

.more-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.more-link:hover i {
    transform: translateX(2px);
}

/* 侧边栏导航菜单样式 */
#sidebarNav {
    margin: 0;
    padding: 0;
}

#sidebarNav .list-group-item {
    border: none;
    border-left: 3px solid transparent;
    border-radius: 0;
    padding: 0.85rem 1rem;
    margin-bottom: 2px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

#sidebarNav .list-group-item:hover {
    background-color: #edf2f7;
    border-left-color: var(--primary-light);
    padding-left: 1.5rem;
}

#sidebarNav .list-group-item.active {
    background-color: #edf2f7;
    border-left-color: var(--primary-light);
    padding-left: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#sidebarNav .list-group-item a {
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    font-weight: 500;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

#sidebarNav .list-group-item:hover a {
    color: var(--primary-color);
}

#sidebarNav .list-group-item.active a {
    color: var(--primary-color) !important;
}

#sidebarNav .list-group-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

#sidebarNav .list-group-item:hover::before {
    left: 10px;
    opacity: 1;
}

#sidebarNav .list-group-item.active::before {
    background-color: var(--primary-color);
    left: 10px;
    opacity: 1;
}

#sidebarNav .list-group-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(222, 226, 230, 0), rgba(222, 226, 230, 0.8), rgba(222, 226, 230, 0));
}

#sidebarNav .list-group-item:last-child::after {
    display: none;
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.arrow-up {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid var(--text-light);
}

/* 面包屑导航样式 */
.breadcrumb {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    border-left: 3px solid var(--primary-color);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    position: relative;
    padding-right: 0.75rem;
    margin-right: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: 0.75rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '\f285';
    font-family: 'bootstrap-icons';
    color: var(--primary-color);
    opacity: 0.7;
    font-size: 0.8rem;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.breadcrumb-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
}

.breadcrumb-item a:hover::after {
    width: 100%;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 500;
}

/* 响应式面包屑导航 */
@media (max-width: 767.98px) {
    .breadcrumb {
        padding: 0.6rem 1rem;
    }
    
    .breadcrumb-item {
        font-size: 0.9rem;
    }
}