/* ==================== 基础样式重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body { 
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6; 
    color: #333;
    background-color: #f5f5f5;
    background-image: url('../images/body.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    /*! background-attachment: fixed; */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #1a5fb4;
}

ul, li {
    list-style: none;
}

img:not(.img_vsb_content) {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==================== 配色辅助变量 ==================== */
:root {
    /* 主蓝色系 */
    --primary-blue: #1a5fb4;
    --secondary-blue: #3584e4;
    --light-blue: #62a0ea;
    --dark-blue: #0d3a6e;
    
    /* 辅助色 */
    --accent-gold: #d4af37;
    --accent-orange: #ff8c00;
    --accent-teal: #00a896;
    --accent-purple: #7b4397;
    --accent-pink: #e91e63;
    
    /* 功能色 */
    --hover-gradient: linear-gradient(135deg, #ff8c00 0%, #ff6b00 100%);
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f5d76e 100%);
    --teal-gradient: linear-gradient(135deg, #00a896 0%, #00b4a0 100%);
}

/* ==================== 第一行：顶部区域 ==================== */
.top-header {
    background: url('../images/header.png'),linear-gradient(135deg, rgba(26,95,180,0.95) 0%, rgba(53,132,228,0.95) 100%) center center/cover no-repeat;
    background-size:100% 100%;
    padding: 20px 0;
    color: #fff; 
    position: relative;
}

/* 金色装饰线 */
.top-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    /*! background: linear-gradient(90deg, #d4af37, #f5d76e, #d4af37); */ 
}

.header-top-links {
    position: absolute;
    top: 40px;
    right: calc(50% - 555px);
    display: flex; 
    gap: 20px;
}

.header-top-links a {
    color: #fff;
    font-size: 14px;
    padding: 5px 15px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.header-top-links a:hover {
    background-color: rgba(255,255,255,0.2);
    border-color: #fff;
}

.logo-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 70px;
    width: auto;
}

.college-name {
    flex: 1;
    min-width: 200px;
}

.college-name h1 {
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 5px;
    /* 添加金色高亮 */
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.university-name {
    font-size: 19px;
    opacity: 0.9; 
} 

.motto {
    text-align: right;
    font-size: 18px;
    font-style: italic;
    opacity: 0.95;
}

/* ==================== 第二行：导航栏 ==================== */
.main-nav {
    background-color: #1a5fb4;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    position: sticky; 
    top: 0;
    z-index: 1000;
}

/* 导航栏底部金色装饰线 */ 
.main-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0; 
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, #f5d76e, #d4af37);
}

.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: block;
    padding: 15px 25px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-item > a:hover,
.nav-item.active > a {
    background: linear-gradient(180deg, rgba(255, 140, 0, 0.62) 0%, rgba(255,140,0,0.2) 100%); 
}

.nav-item.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background-color: #fff;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
    border-radius: 0 0 5px 5px;
    overflow: hidden;
    border-top: 2px solid #d4af37;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: #1a5fb4;
    color: #fff;
    padding-left: 25px;
}

/* ==================== 第三行：焦点图轮播 ==================== */
.banner-slider {
    position: relative;
    width: 100%;
    height: 615px;
    overflow: hidden; 
    background-color: #000;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    width: 80%;
}

.slide-caption h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.slide-caption p {
    font-size: 20px;
    opacity: 0.9;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
}

.prev-btn,
.next-btn {
    background-color: rgba(255,255,255,0.5);
    border: none;
    color: #fff;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.3s ease;
    font-size: 16px;
}

.prev-btn:hover,
.next-btn:hover {
    background-color: rgba(255,255,255,0.8);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #fff;
}

/* 轮播渐变背景幻灯片 */
.slide-gradient {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-gradient .slide-caption {
    position: static;
    transform: none;
    text-align: center;
}

.slide-bg-1 {
    background: linear-gradient(135deg, #0d3a6e 0%, #1a5fb4 40%, #3584e4 70%, #62a0ea 100%);
}

.slide-bg-2 {
    background: linear-gradient(135deg, #1a5fb4 0%, #7b4397 50%, #e91e63 100%);
}

/* ==================== 第四行：新闻区域 ==================== */
.news-section {
    padding: 40px 0;
    /*! background-color: #fff; */
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.news-image-box,
.college-news,
.notice-announcement {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-image-box:hover,
.college-news:hover,
.notice-announcement:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(26,95,180,0.15);
}

/* 统一区块标题配色 */
.section-title {
    /*! background: linear-gradient(135deg, #fafdff 0%, #f9fdff 100%); */ 
    color: #1a5fb4;
    padding: 12px 20px;
    font-size: 18px; 
    font-weight: 500;
    display: flex;
    align-items: center; 
    gap: 10px;
    border-bottom: 1px solid #1a5fb4;
    box-shadow: 0px 5px 24px -23px #1a5fb4;
}

.section-title .icon {
    font-size: 20px;
}

/* 新闻图片轮播 */
.news-image-slider {
    position: relative;
    height: 100%; 
    overflow: hidden;
}

.news-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.news-slide.active {
    opacity: 1;
}

.news-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.news-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 40px 15px 12px;
}

.news-slide-caption p {
    font-size: 14px; 
    line-height: 4.4;
}

.news-slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.news-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.news-dot.active {
    background-color: #d4af37;
}

/* 新闻列表和通知列表 */
.news-list,
.notice-list {
    padding: 12px 15px;
    max-height: 240px;
    overflow: hidden;
}

.news-list li,
.notice-list li {
    border-bottom: 1px dashed #ddd;
    padding: 8px 0;
}

.news-list li:last-child,
.notice-list li:last-child {
    border-bottom: none;
}

.news-list a,
.notice-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.news-title,
.notice-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
}

.news-date,
.notice-date {
    flex-shrink: 0;
    color: #888;
    font-size: 13px;
}

.news-list a:hover .news-title,
.notice-list a:hover .notice-title {
    color: #ff8c00;
}

.more-link {
    display: block;
    text-align: right;
    padding: 10px 20px;
    color: #1a5fb4;
    font-size: 13px;
    border-top: 1px solid #eee;
}

.notice-announcement .more-link {
    /*! color: #ff8c00; */ 
}

.more-link:hover {
    text-decoration: underline;
}

/* ==================== 第五行：动态区域 ==================== */
.dynamic-section {
    padding: 40px 0;
    /*! background-color: #f5f5f5; */
}

.dynamic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.dynamic-box {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dynamic-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* 动态区块标题 - 统一蓝紫渐变 */
.research-dynamic .section-title,
.teaching-dynamic .section-title,
.youth-dynamic .section-title {
    /*! background: linear-gradient(135deg, #1a5fb4 0%, #74a5e5 100%); */
}  

.dynamic-list {
    padding: 12px 15px;
    max-height: 240px;
    overflow: hidden;
}

.dynamic-list li {
    border-bottom: 1px dashed #eee;
    padding: 8px 0;
}

.dynamic-list li:last-child {
    border-bottom: none;
}

.dynamic-list a {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.dynamic-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #333;
    line-height: 1.5;
}

.dynamic-date {
    flex-shrink: 0;
    color: #888;
    font-size: 12px;
    margin-top: 2px;
}

.dynamic-list a:hover .dynamic-title {
    color: #ff8c00;
}

/* ==================== 第六行：人物风采 ==================== */
.people-section {
    padding: 40px 0;
    /*! background-color: #fff; */ 
}

.section-main-title {
    text-align: left;
    font-size: 20px;
    color: #1a5fb4;  
    margin-bottom: 30px;  
    padding-bottom: 5px;
    border-bottom: 3px solid #1a5fb4;
    display: inline-block;
    width: 100%;
    font-weight: normal;
}

.people-list {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.person-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9; 
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 174px; 
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08); 
}

/* 卡片顶部装饰条 - 交替颜色 */
.person-card:nth-child(1) .person-avatar::after,
.person-card:nth-child(4) .person-avatar::after {
    background: linear-gradient(135deg, #1a5fb4 0%, #3584e4 100%);
}

.person-card:nth-child(2) .person-avatar::after,
.person-card:nth-child(5) .person-avatar::after {
    background: linear-gradient(135deg, #d4af37 0%, #f5d76e 100%);
}

.person-card:nth-child(3) .person-avatar::after,
.person-card:nth-child(6) .person-avatar::after {
    background: linear-gradient(135deg, #00a896 0%, #00b4a0 100%);
}

.person-card:hover {
    box-shadow: 0 5px 20px rgba(26,95,180,0.2);
    transform: translateY(-8px);
}

.person-avatar {
    width: 100px;
    height: 100px; 
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid #d4af37;
    margin-bottom: 12px;
    position: relative;
}

.person-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-info h5 {
    font-size: 16px;
    color: #333;
    margin-bottom: 6px;
}

.person-info p {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

/* ==================== 第七行：页脚 ==================== */
.main-footer {
    background: url('../images/foot_bg.png');
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 40px;
    position: relative;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

/* 页脚顶部装饰 */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #f5d76e, #00a896, #f5d76e, #d4af37);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-box h4 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(212,175,55,0.5);
    color: #d4af37;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.85);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #d4af37;
    padding-left: 5px;
}

.contact-info li {
    margin-bottom: 10px;
    color: rgba(255,255,255,0.85);
}

.contact-info strong {
    color: #dbdbdb;
} 

.qrcode-box {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.qrcode {
    text-align: center;
}

.qrcode img {
    width: 100px;
    height: 100px;
    background-color: #fff;
    padding: 5px;
    border-radius: 5px;
}

.qrcode p {
    margin-top: 10px;
    font-size: 13px;
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.footer-bottom p {
    margin-bottom: 8px;
    font-size: 13px;
    opacity: 0.85;
}

.footer-bottom a {
    color: rgba(255,255,255,0.85);
}

.footer-bottom a:hover {
    color: #d4af37;
    text-decoration: underline;
}

/* ==================== 回到顶部按钮 ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a5fb4 0%, #3584e4 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 20px;
    box-shadow: 0 3px 15px rgba(26,95,180,0.4);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #ff8c00 0%, #e65100 100%);
    transform: translateY(-5px);
}

/* ==================== 响应式设计 ==================== */
/* 移动端导航汉堡按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 4px;
    cursor: pointer;
    padding: 6px;
    gap: 5px;
    margin: 8px 0;
    transition: border-color 0.3s ease;
}

.nav-toggle:hover {
    border-color: #fff;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 汉堡按钮激活态 */
.nav-open .nav-toggle .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-open .nav-toggle .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media screen and (max-width: 1024px) {
    .news-grid,
    .dynamic-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .news-grid > *:last-child {
        grid-column: span 2;
    }
    
    .people-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
.header-top-links {
    display: none; 
}
}

@media screen and (max-width: 768px) {
    .logo-area {
        flex-direction: column;
        text-align: center;
    }
    .header-top-links {
    display: none; 
}
    .motto {
        text-align: center;
    }

    /* 移动端导航：默认隐藏，汉堡按钮显示 */
    .main-nav .container {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-open .nav-menu {
        display: flex;
    }
    
    .nav-item > a {
        padding: 12px 20px;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: rgba(0,0,0,0.1);
    }
    
    .dropdown-menu li a {
        color: #fff;
        border-bottom-color: rgba(255,255,255,0.1);
    }
    
    .banner-slider {
        height: 300px;
    }
    
    .slide-caption h2 {
        font-size: 28px;
    }
    
    .slide-caption p {
        font-size: 16px;
    }
    
    .news-grid,
    .dynamic-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid > *:last-child {
        grid-column: span 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .qrcode-box {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .college-name h1 {
        font-size: 24px;
    }
    .header-top-links {
    display: none; 
}
    .banner-slider {
        height: 250px;
    }
    
    .slide-caption {
        width: 95%;
    }
    
    .slide-caption h2 {
        font-size: 22px;
    }
    
    .slide-caption p {
        font-size: 14px;
    }
    
    .person-card {
        flex-direction: column;
        text-align: center;
    }
    
    .person-avatar {
        width: 80px;
        height: 80px;
    }
}

/* ==================== 子页面通用样式 ==================== */
.page-banner {
    height: 200px;
    background: linear-gradient(135deg, #1a5fb4 0%, #7b4397 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.page-banner h1 {
    font-size: 36px;
    letter-spacing: 3px;
}

.page-content {
    padding: 40px 0;
    background-color: #fff;
    min-height: 400px;
}

.content-wrapper {
    display: flex;
    gap: 30px;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-menu {
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-title {
    background: linear-gradient(135deg, #1a5fb4 0%, #3584e4 100%);
    color: #fff;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 500;
}

.sidebar-menu ul li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.sidebar-menu ul li:last-child a {
    border-bottom: none;
}

.sidebar-menu ul li a:hover,
.sidebar-menu ul li a.active {
    background-color: #1a5fb4;
    color: #fff;
}

.main-content {
    flex: 1;
}

.breadcrumb {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    font-size: 13px;
    color: #888;
}

.breadcrumb a {
    color: #1a5fb4;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.article-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1a5fb4;
}

.article-content {
    line-height: 1.8;
    color: #444;
}

.article-content p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.article-content h2 {
    font-size: 20px;
    color: #1a5fb4;
    margin: 25px 0 15px;
    padding-left: 10px;
    border-left: 4px solid #1a5fb4;
}

.article-content ul,
.article-content ol {
    margin: 15px 0 15px 2em;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-content th,
.article-content td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.article-content th {
    background: linear-gradient(135deg, #1a5fb4 0%, #3584e4 100%);
    color: #fff;
}

.article-content tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* ==================== 列表页样式（旧版简单列表） ==================== */
.list-page {
    padding: 20px 0;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-item-title::before {
    content: "•";
    color: #1a5fb4;
    margin-right: 10px;
}

.list-item:hover .list-item-title {
    color: #ff8c00;
}

.list-item-date {
    flex-shrink: 0;
    color: #888;
    font-size: 13px;
    margin-left: 20px;
}

/* ==================== 文章列表页（list.html） ==================== */
/* 列表页主区域 */
.list-section {
    padding: 40px 0;
}

.list-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* ---------- 左侧：子栏目导航 ---------- */
.subnav-sidebar {
    width: 240px;
    flex-shrink: 0;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.subnav-title {
    background: linear-gradient(135deg, #1a5fb4 0%, #3584e4 100%);
    color: #fff;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subnav-list {
    padding: 8px 0;
}

.subnav-item a {
    display: block;
    padding: 13px 20px;
    color: #333;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.subnav-item:last-child a {
    border-bottom: none;
}

.subnav-item a:hover {
    background-color: #e8f0fe;
    color: #1a5fb4;
    padding-left: 25px;
}

.subnav-item.active a {
    background-color: #1a5fb4;
    color: #fff;
    font-weight: 500;
}

/* 侧栏快捷链接 */
.subnav-info {
    border-top: 1px solid #eee;
    padding: 16px 20px;
}

.subnav-info h4 {
    font-size: 15px;
    color: #1a5fb4;
    margin-bottom: 10px;
    font-weight: 500;
}

.quick-links li {
    margin-bottom: 6px;
}

.quick-links a {
    display: block;
    color: #666;
    font-size: 13px;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.quick-links a:hover {
    color: #ff8c00;
}

/* 移动端子栏目切换按钮（默认隐藏） */
.subnav-toggle {
    display: none;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1a5fb4 0%, #3584e4 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    margin-bottom: 8px;
}

.subnav-toggle .toggle-arrow {
    float: right;
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* ---------- 右侧：文章列表 ---------- */
.article-list {
    flex: 1;
    min-width: 0;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* 列表顶部栏 */
.list-header {
    padding: 16px 20px;
    border-bottom: 2px solid #1a5fb4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.list-title {
    font-size: 20px;
    color: #1a5fb4;
    font-weight: 500;
    margin: 0;
    padding: 0;
    border: none;
}

.list-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.total-articles {
    font-size: 13px;
    color: #999;
}

.sort-select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    background-color: #fff;
    cursor: pointer;
    outline: none;
}

.sort-select:focus {
    border-color: #1a5fb4;
}

/* 文章列表容器 */
.articles {
    padding: 10px 20px;
}

/* 单篇文章 */
.article-item {
    padding: 18px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.article-item:last-child {
    border-bottom: none;
}

/* 文章标题行 */
.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 10px;
}

.article-item .article-title {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    border: none;
    flex: 1;
}

.article-item .article-title a {
    color: #333;
    transition: color 0.3s ease;
}

.article-item .article-title a:hover {
    color: #ff8c00;
}

.article-date {
    flex-shrink: 0;
    color: #999;
    font-size: 13px;
    white-space: nowrap;
}

/* 文章摘要 */
.article-excerpt {
    margin-bottom: 10px;
}

.article-excerpt p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 文章底部元信息 */
.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.article-category {
    display: inline-block;
    padding: 2px 10px;
    background-color: #e8f0fe;
    color: #1a5fb4;
    border-radius: 3px;
    font-size: 12px;
}

.article-views {
    color: #bbb;
}

.read-more {
    margin-left: auto;
    color: #1a5fb4;
    font-size: 13px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #ff8c00;
    text-decoration: underline;
}

/* ---------- 分页导航 ---------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    margin: 0 20px;
}

.page-item,
.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-item:hover,
.pagination a:hover {
    background-color: #e8f0fe;
    border-color: #1a5fb4;
    color: #1a5fb4;
}

.page-item.active {
    background: linear-gradient(135deg, #1a5fb4 0%, #3584e4 100%);
    border-color: #1a5fb4;
    color: #fff;
    font-weight: 500;
}

.page-ellipsis {
    color: #999;
    padding: 0 2px;
    display: inline-flex;
    align-items: center;
}

.page-next {
    font-weight: 500;
}

.pagination span.current {
    background: linear-gradient(135deg, #1a5fb4 0%, #3584e4 100%);
    border-color: #1a5fb4;
    color: #fff;
}

/* ---------- 响应式：文章列表页 ---------- */
@media screen and (max-width: 768px) {
    .list-container {
        flex-direction: column;
        gap: 20px;
    }
.header-top-links {
    display: none; 
}
    .subnav-sidebar {
        width: 100%;
    }

    /* 移动端显示折叠按钮，隐藏菜单 */
    .subnav-toggle {
        display: block;
    }

    .subnav-list {
        display: none;
    }

    .subnav-list.expanded {
        display: block;
    }

    .article-list {
        width: 100%;
    }

    .article-header {
        flex-direction: column;
        gap: 5px;
    }

    .article-item .article-title {
        font-size: 15px;
    }

    .list-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .list-meta {
        width: 100%;
        justify-content: space-between;
    }

    .pagination {
        gap: 4px;
        flex-wrap: wrap;
    }

    .page-item,
    .pagination a {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
        padding: 0 8px;
    }
}

@media screen and (max-width: 480px) {
    .list-section {
        padding: 20px 0;
    }
.header-top-links {
    display: none; 
}
    .article-item {
        padding: 14px 0;
    }

    .article-excerpt p {
        -webkit-line-clamp: 3;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* ==================== 打印样式 ==================== */
@media print {
    .main-nav,
    .banner-slider,
    .back-to-top,
    .sidebar {
        display: none !important;
    }
    
    .top-header {
        background: none !important;
        color: #000 !important;
    }
    
    .main-content {
        width: 100% !important;
    }
}