/* ==================== 全局重置 ==================== */
:root {
    --primary-color: #D32F2F; /* 团委红 */
    --primary-dark: #B71C1C;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f4f4f4;
    --white: #ffffff;
    --border-color: #ddd;
    --gap: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* ==================== 通用容器 ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==================== 头部与搜索框 ==================== */
.site-header {
    background-color: var(--white);
    padding: 15px 0;
    border-bottom: 3px solid var(--primary-color);
}

/* Header 布局调整：允许折行以适配移动端 */
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* 关键：允许子元素换行 */
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 28px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #FFD700;
}

.logo-text h1 {
    font-size: 24px;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-text p {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 搜索框样式 --- */
.search-box-wrapper {
    /* 在 PC 端，它只占内容宽度 */
    display: flex;
    align-items: center;
}

.search-box {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 20px; /* 圆角矩形 */
    overflow: hidden;
    background-color: #fff;
    transition: box-shadow 0.3s;
}

.search-box:focus-within {
    box-shadow: 0 0 5px rgba(211, 47, 47, 0.3);
    border-color: var(--primary-color);
}

.search-box input {
    border: none;
    outline: none;
    padding: 6px 15px;
    font-size: 14px;
    width: 200px; /* PC端默认宽度 */
    color: #555;
}

.search-box button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s;
}

.search-box button:hover {
    background-color: var(--primary-dark);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--primary-color);
    cursor: pointer;
}

/* ==================== 导航栏 ==================== */
.main-nav {
    background-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
}

.nav-list li a {
    display: block;
    padding: 15px 20px;
    color: var(--white);
    font-weight: bold;
    font-size: 16px;
}

.nav-list li a:hover,
.nav-list li a.active {
    background-color: var(--primary-dark);
}

/* ==================== 主体内容 ==================== */
.main-content {
    margin-top: 20px;
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    border-left: 5px solid var(--primary-color);
    padding-left: 10px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 15px;
    background-color: #fafafa;
}

.card-header h3 {
    font-size: 16px;
    color: var(--primary-color);
}

.more-link {
    font-size: 12px;
    color: var(--text-light);
}

/* ==================== 第一部分：分栏布局 ==================== */
.split-section {
    display: flex;
    gap: var(--gap);
    margin-bottom: 30px;
    height: 360px;
}

.carousel-wrapper {
    flex: 4;
    background: var(--white);
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.carousel {
    flex: 1;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    border-radius: 4px;
}

.carousel-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: none;
}

.carousel-item.active {
    opacity: 1;
    display: block;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}
.c1 { background: linear-gradient(45deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%); }
.c2 { background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%); }
.c3 { background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%); }

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px;
    font-size: 14px;
    text-align: center;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    z-index: 2;
}
.carousel-control:hover { background: rgba(0,0,0,0.6); }
.prev { left: 0; }
.next { right: 0; }

.notice-wrapper {
    flex: 6;
    background: var(--white);
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

/* ==================== 第二部分：网格布局 ==================== */
.grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--gap);
}

.card {
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 320px;
}

.card-body {
    flex: 1;
    padding: 15px;
}

/* ==================== 滚动与内容样式 ==================== */
.scroll-content {
    overflow-y: auto;
    height: 100%;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f0f0f0;
}

.scroll-content::-webkit-scrollbar {
    width: 6px;
}
.scroll-content::-webkit-scrollbar-track {
    background: #f0f0f0;
}
.scroll-content::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.article-list li, .simple-list li {
    border-bottom: 1px dashed #eee;
    padding: 8px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.article-list li:last-child, .simple-list li:last-child {
    border-bottom: none;
}

.article-list .date {
    color: #999;
    font-size: 12px;
    margin-right: 10px;
    min-width: 80px;
}

.article-list a, .simple-list a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-item {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}
.news-item h4 {
    font-size: 15px;
    margin-bottom: 5px;
}
.news-item p {
    font-size: 13px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.org-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.org-item {
    background-color: #f9f9f9;
    text-align: center;
    padding: 15px 5px;
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-color);
    border-radius: 4px;
    border: 1px solid #eee;
    transition: all 0.3s;
}
.org-item:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.download-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}
.file-icon {
    display: inline-block;
    padding: 2px 6px;
    background: #eee;
    color: #555;
    font-size: 10px;
    border-radius: 3px;
    margin-right: 8px;
    font-weight: bold;
    min-width: 35px;
    text-align: center;
}

/* ==================== 底部 ==================== */
.site-footer {
    background-color: #333;
    color: #ccc;
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
}
.site-footer p {
    margin-bottom: 5px;
}

/* ==================== 响应式适配 ==================== */

@media (max-width: 992px) {
    .split-section {
        height: auto;
        flex-direction: column;
    }
    
    .carousel-wrapper, .notice-wrapper {
        height: 300px;
        flex: none;
        width: 100%;
    }
}

/* 手机端适配 (小于 768px) */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    /* 手机端头部布局重组 */
    .header-inner {
        position: relative;
    }
    
    /* Logo 占左侧 */
    .logo {
        flex: 1; /* 占据剩余空间 */
    }

    /* 搜索框：在手机端强制换行到第二排，并占满宽度 */
    .search-box-wrapper {
        order: 3; /* 排在最后 (Logo是1, MenuBtn是2) */
        width: 100%;
        margin-top: 15px; /* 与上方的Logo/菜单留出间距 */
    }
    
    .search-box {
        width: 100%; /* 搜索条充满整行 */
    }
    
    .search-box input {
        width: 100%; /* 输入框自动伸缩 */
    }

    /* 菜单按钮保持在第一排右侧 */
    .mobile-menu-btn {
        order: 2;
        margin-left: 10px;
    }

    /* 导航菜单样式 */
    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--primary-color);
        z-index: 100;
        margin-top: 10px; /* 补偿搜索框高度 */
    }

    .nav-list.show {
        display: flex;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .main-nav .container {
        position: relative;
        padding: 0;
    }

    /* 字体和间距调整 */
    .logo-text h1 { font-size: 20px; }
    .logo-text p { display: none; }
    
    .grid-section {
        grid-template-columns: 1fr;
    }
    
    .card {
        height: auto;
        max-height: 350px;
    }
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    font-family: "Microsoft Yahei", "微软雅黑", "PingFang SC", Arial, sans-serif;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* 布局工具类 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* 顶部导航 */
.top-nav {
    background-color: #c8102e;
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

.top-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-nav-left, .top-nav-right {
    display: flex;
    align-items: center;
}

.top-nav-left a, .top-nav-right a {
    color: #fff;
    margin: 0 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.divider {
    color: rgba(255,255,255,0.6);
}

.search-box {
    display: flex;
    background: #fff;
    border-radius: 15px;
    padding: 2px 10px;
    margin-left: 15px;
}

.search-box input {
    border: none;
    outline: none;
    font-size: 12px;
    width: 120px;
}

.search-box button {
    border: none;
    background: none;
    cursor: pointer;
    color: #c8102e;
}

/* 头部 Header */
.header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 3px solid #c8102e;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.school-logo {
    width: 70px;
    height: 70px;
    background: #c8102e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
}

.text-h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.text-p.highlight {
    color: #c8102e;
    font-size: 16px;
    font-weight: 500;
}

.header-banner img {
    height: 80px;
    border-radius: 5px;
}

/* 主导航 Main Nav */
.main-nav {
    background: linear-gradient(to right, #c8102e, #a00c24);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
}

.nav-item a {
    display: block;
    padding: 15px 25px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.nav-item a:hover, .nav-item a.active {
    background: rgba(0,0,0,0.1);
    color: #ffd700;
}

/* 面包屑 Breadcrumb */
.breadcrumb {
    background: #f0f0f0;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-inner {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.breadcrumb-inner .sep {
    margin: 0 8px;
    color: #999;
}

.breadcrumb-inner .current {
    color: #333;
    font-weight: bold;
}

/* 内容区域 */
.content-inner {
    display: flex;
    margin-top: 20px;
    gap: 20px;
}

/* 侧边栏 Sidebar */
.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-title {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: #c8102e;
    font-size: 16px;
}

.sidebar-title {
    background: #fbfbfb;
}

.vertical-nav {
    padding: 10px 0;
}

.v-nav-item a {
    display: block;
    padding: 12px 20px;
    color: #333;
    border-left: 3px solid transparent;
}

.v-nav-item a:hover, .v-nav-item a.active {
    background: #fff5f7;
    color: #c8102e;
    border-left-color: #c8102e;
}

.sidebar-contact {
    padding-bottom: 15px;
}

.contact-info {
    padding: 15px 20px;
}

.contact-info .text-p {
    margin-bottom: 10px;
    color: #555;
    font-size: 13px;
    display: flex;
    gap: 8px;
}

.contact-info i {
    color: #c8102e;
    width: 16px;
}

/* 主内容 Main Body */
.main-body {
    flex-grow: 1;
}

.intro-header {
    padding: 30px;
    text-align: center;
}

.text-h2 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.title-line {
    width: 60px;
    height: 3px;
    background: #c8102e;
    margin: 0 auto;
}

.section-card {
    padding: 20px;
}

.article-content {
    padding: 10px 0;
    color: #444;
    font-size: 15px;
    line-height: 1.8;
}

.text-p {
    margin-bottom: 15px;
}

.text-p.indent {
    text-indent: 2em;
}

.img-wrapper {
    margin: 20px 0;
    text-align: center;
}

.img-wrapper img {
    margin: 0 auto;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.img-caption {
    margin-top: 8px;
    font-size: 13px;
    color: #888;
}

/* 理念列表 */
.idea-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 15px;
}

.idea-item {
    display: flex;
    gap: 15px;
}

.idea-icon {
    width: 50px;
    height: 50px;
    background: #c8102e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.idea-text .text-h4 {
    font-size: 16px;
    font-weight: bold;
    color: #222;
    margin-bottom: 5px;
}

.idea-text .text-p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

/* 列表样式 */
.custom-list {
    margin: 15px 0;
    padding-left: 20px;
}

.list-row {
    margin-bottom: 10px;
    color: #333;
}

.list-row i {
    color: #c8102e;
    margin-right: 8px;
}

.highlight-box {
    margin-top: 20px;
    font-weight: 500;
    color: #c8102e;
    background: #fff5f7;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #c8102e;
}

/* 底部 Footer */
.footer {
    background: #2d2d2d;
    color: #ccc;
    margin-top: 30px;
    padding: 40px 0 20px 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 1px solid #444;
    margin-bottom: 20px;
}

.footer-contact .text-h4 {
    color: #ffd700;
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-contact .text-p {
    margin-bottom: 8px;
    font-size: 13px;
}

.qrcode-box {
    width: 120px;
    height: 120px;
    background: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.footer-bottom {
    text-align: center;
    font-size: 12px;
    color: #888;
}

/* 响应式 */
@media (max-width: 768px) {
    .content-inner {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .top-nav-inner {
        flex-direction: column;
        gap: 10px;
    }

    .top-nav-right {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-list {
        flex-direction: column;
    }

    .nav-item {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}


/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    font-family: "Microsoft Yahei", "微软雅黑", "PingFang SC", Arial, sans-serif;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* 布局工具类 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航 */
.top-nav {
    background-color: #c8102e;
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

.top-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-nav-left, .top-nav-right {
    display: flex;
    align-items: center;
}

.top-nav-left a, .top-nav-right a {
    color: #fff;
    margin: 0 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.divider {
    color: rgba(255,255,255,0.6);
}

.search-box {
    display: flex;
    background: #fff;
    border-radius: 15px;
    padding: 2px 10px;
    margin-left: 15px;
}

.search-box input {
    border: none;
    outline: none;
    font-size: 12px;
    width: 120px;
}

.search-box button {
    border: none;
    background: none;
    cursor: pointer;
    color: #c8102e;
}

/* 头部 Header */
.header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 3px solid #c8102e;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.school-logo {
    width: 70px;
    height: 70px;
    background: #c8102e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
}

.text-h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.text-p.highlight {
    color: #c8102e;
    font-size: 16px;
    font-weight: 500;
}

.header-banner img {
    height: 80px;
    border-radius: 5px;
}

/* 主导航 Main Nav */
.main-nav {
    background: linear-gradient(to right, #c8102e, #a00c24);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
}

.nav-item a {
    display: block;
    padding: 15px 25px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.nav-item a:hover, .nav-item a.active {
    background: rgba(0,0,0,0.1);
    color: #ffd700;
}

/* 面包屑 Breadcrumb */
.breadcrumb {
    background: #f0f0f0;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-inner {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.breadcrumb-inner .sep {
    margin: 0 8px;
    color: #999;
}

.breadcrumb-inner .current {
    color: #333;
    font-weight: bold;
}

/* 内容区域 */
.content-inner {
    display: flex;
    margin-top: 20px;
    gap: 20px;
}

/* 侧边栏 Sidebar */
.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-title {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: #c8102e;
    font-size: 16px;
}

.sidebar-title {
    background: #fbfbfb;
}

.vertical-nav {
    padding: 10px 0;
}

.v-nav-item a {
    display: block;
    padding: 12px 20px;
    color: #333;
    border-left: 3px solid transparent;
}

.v-nav-item a:hover, .v-nav-item a.active {
    background: #fff5f7;
    color: #c8102e;
    border-left-color: #c8102e;
}

/* 热门推荐 */
.hot-list {
    padding: 15px;
}

.hot-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.hot-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.hot-item a {
    display: flex;
    gap: 10px;
}

.hot-img {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.hot-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-content {
    flex-grow: 1;
}

.hot-title {
    font-size: 13px;
    color: #333;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.hot-item a:hover .hot-title {
    color: #c8102e;
}

.text-span.date {
    font-size: 12px;
    color: #999;
}

/* 主内容 Main Body */
.main-body {
    flex-grow: 1;
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.filter-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-title {
    font-size: 14px;
    color: #666;
}

.filter-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    color: #666;
}

.filter-tag:hover, .filter-tag.active {
    background: #c8102e;
    color: #fff;
}

.filter-select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    outline: none;
}

/* 列表内容 */
.list-section {
    padding: 20px;
}

.news-card-item {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.news-card-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.news-card-item a {
    display: flex;
    gap: 20px;
}

.news-card-img {
    width: 200px;
    height: 140px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card-item a:hover .news-card-img img {
    transform: scale(1.05);
}

.news-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.news-card-item a:hover .news-card-title {
    color: #c8102e;
}

.news-card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 13px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.page-btn, .page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    background: #f8f9fa;
    color: #666;
    border-radius: 4px;
    font-size: 14px;
}

.page-btn {
    padding: 0 15px;
    gap: 5px;
}

.page-num {
    width: 36px;
    border-radius: 50%;
}

.page-btn:hover:not(.disabled), .page-num:hover, .page-num.active {
    background: #c8102e;
    color: #fff;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-ellipsis {
    color: #999;
}

/* 底部 Footer */
.footer {
    background: #2d2d2d;
    color: #ccc;
    margin-top: 30px;
    padding: 40px 0 20px 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 1px solid #444;
    margin-bottom: 20px;
}

.footer-contact .text-h4 {
    color: #ffd700;
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-contact .text-p {
    margin-bottom: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qrcode-box {
    width: 120px;
    height: 120px;
    background: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.footer-bottom {
    text-align: center;
    font-size: 12px;
    color: #888;
}

/* 响应式 */
@media (max-width: 992px) {
    .content-inner {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .news-card-item a {
        flex-direction: column;
    }
    .news-card-img {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }
    .top-nav-inner {
        flex-direction: column;
        gap: 10px;
    }
    .top-nav-right {
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-list {
        flex-direction: column;
    }
    .nav-item {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .filter-left {
        flex-wrap: wrap;
    }
    .pagination {
        flex-wrap: wrap;
    }
}

/* --- 基础重置 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B0000; /* 中医药风格深红 */
    --secondary-color: #e3f2fd;
    --text-color: #333;
    --light-text: #666;
    --border-color: #eee;
    --card-height: 300px; /* 统一卡片内容高度 */
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    color: var(--text-color);
    background-color: #f9f9f9;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

/* 容器通用样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- 滚动条美化 --- */
.scroll-y::-webkit-scrollbar,
.scrollable-list-box::-webkit-scrollbar {
    width: 6px;
}
.scroll-y::-webkit-scrollbar-thumb,
.scrollable-list-box::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}
.scroll-y::-webkit-scrollbar-track,
.scrollable-list-box::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* --- 顶部工具栏 --- */
.top-bar {
    background-color: var(--primary-color);
    font-size: 14px;
    border-bottom: 1px solid #ddd;
    padding: 8px 0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.top-links a, .top-tools a {
    color: #ffffff;
    margin: 0 5px;
}
.divider { color: #ccc; }
.search-box {
    display: inline-flex;
    margin-left: 15px;
}
.search-box input {
    border: 1px solid #ccc;
    padding: 4px 8px;
    border-radius: 4px 0 0 4px;
    font-size: 12px;
}
.search-box button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* --- 头部 --- */
.main-header {
    background: white;
    padding: 20px 0;
}
.logo-text {
    display: flex;
    align-items: center;
}
.logo-icon {
    font-size: 40px;
    margin-right: 15px;
    color: var(--primary-color);
}
.logo-text h1 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 4px;
}
.logo-text p {
    font-size: 14px;
    color: #666;
    letter-spacing: 2px;
}

/* --- 导航栏 --- */
.main-nav {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.nav-list {
    display: flex;
    flex-wrap: wrap;
}
.nav-list li {
    flex: 1; /* 平均分布 */
    text-align: center;
    min-width: 80px;
}
.nav-list a {
    display: block;
    color: white;
    padding: 15px 5px;
    font-weight: 500;
}
.nav-list a:hover, .nav-list a.active {
    background-color: rgba(255,255,255,0.2);
}

/* --- 主要内容区 --- */
.main-content {
    margin-top: 20px;
    margin-bottom: 40px;
}

/* --- 重点展示区 (通知+轮播) --- */
.hero-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.section-header h2 {
    font-size: 18px;
    color: var(--primary-color);
}
.more-link {
    font-size: 14px;
    color: #888;
}

/* 轮播与列表的 Grid 布局 */
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* 左侧略宽 */
    gap: 20px;
    height: 350px; /* 固定高度确保对齐 */
}

/* 左侧轮播图 */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
    background-color: #eee; /* 空状态背景 */
}
.carousel-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}
.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-end; /* 文字在底部 */
    justify-content: center;
    /* 背景色在HTML内联定义，模拟图片 */
}
.slide-content {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 100%;
    padding: 15px;
    text-align: center;
}
.carousel-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    z-index: 2;
}
.carousel-controls .prev-btn { left: 0; }
.carousel-controls .next-btn { right: 0; }
.carousel-controls button:hover { background: rgba(0,0,0,0.6); }

.carousel-indicators {
    position: absolute;
    bottom: 50px; /* 位于文字上方或下方均可，根据需要调整 */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.indicator {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}
.indicator.active { background: white; }

/* 右侧列表区域 */
.scrollable-list-box {
    height: 100%; /* 继承父级高度 */
    overflow-y: auto; /* 超出滚动 */
    padding-right: 5px;
}

/* 通用文章列表样式 */
.article-list li {
    border-bottom: 1px dashed #eee;
    padding: 10px 0;
}
.article-list a {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: #444;
}
.article-list a:hover {
    color: var(--primary-color);
}
.article-list .title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.article-list .date {
    color: #999;
    font-size: 13px;
    margin-right: 10px;
    min-width: 45px;
}

/* --- 第二部分：多列 Grid 布局 --- */
.grid-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* PC端3列 */
    gap: 20px;
}

.info-card {
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}
.card-header {
    background: #fafafa;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-header h3 {
    font-size: 16px;
    color: var(--text-color);
}
.card-header a {
    font-size: 12px;
    color: #999;
}
.card-body {
    padding: 10px 15px;
    height: var(--card-height); /* 强制高度对齐 */
    overflow-y: auto; /* 允许内部滚动 */
}

/* --- 底部 --- */
.main-footer {
    background-color: #333;
    color: #bbb;
    padding: 40px 0 20px;
    margin-top: auto;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #444;
}
.footer-left h4 {
    color: white;
    margin-bottom: 15px;
}
.footer-left p {
    font-size: 14px;
    margin-bottom: 8px;
}
.qrcode-placeholder {
    width: 100px;
    height: 100px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 12px;
}
.copyright {
    text-align: center;
    padding-top: 20px;
    font-size: 13px;
}

/* --- 响应式适配 --- */

/* 平板设备 (最大宽度 1024px) */
@media (max-width: 1024px) {
    .grid-section {
        grid-template-columns: repeat(2, 1fr); /* 变为2列 */
    }
}

/* 手机设备 (最大宽度 768px) */
@media (max-width: 768px) {
    .nav-list {
        display: none; /* 简化处理，实际项目可用JS做汉堡菜单 */
    }
    /* 简单的手机端菜单替代 */
    .nav-list {
        display: flex;
        flex-direction: column;
    }
    .nav-list li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .hero-grid {
        grid-template-columns: 1fr; /* 轮播和通知垂直堆叠 */
        height: auto; /* 高度自适应 */
    }
    .carousel-container {
        height: 200px; /* 手机端轮播高度 */
    }
    .scrollable-list-box {
        height: 300px; /* 手机端列表固定高度，允许滚动 */
        margin-top: 10px;
    }
    
    .grid-section {
        grid-template-columns: 1fr; /* 变为1列 */
    }
    
    .top-bar-inner {
        flex-direction: column;
        gap: 10px;
    }
    .search-box {
        margin-left: 0;
        margin-top: 5px;
        width: 100%;
        display: flex;
    }
    .search-box input {
        flex: 1;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}