/* ========== 全局重置与变量 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #FDF8F5;
    color: #2D2A2E;
    line-height: 1.5;
    scroll-behavior: smooth;
}

:root {
    --primary-dark: #722751;
    --primary-light: #F8F4F7;
    --accent-gold: #D4AF37;
    --accent-muted: #9B8E6E;
    --shadow-sm: 0 12px 28px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
    --gray-light: #F0EAE5;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ========== 导航栏 (共用) ========== */
.navbar {
    background-color: rgba(248, 244, 247, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(114, 39, 81, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.8rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.logo span {
    font-size: 0.8rem;
    color: var(--accent-muted);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links li a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links li a:hover {
    color: var(--accent-gold);
}

.menu-btn {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: var(--primary-dark);
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background 0.2s;
}

.menu-btn:active {
    background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 75%;
        height: calc(100vh - 70px);
        background: rgba(248, 244, 247, 0.98);
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1.8rem;
        transition: left 0.3s ease;
        z-index: 99;
        border-right: 1px solid rgba(114, 39, 81, 0.2);
        backdrop-filter: blur(4px);
    }
    .nav-links.show {
        left: 0;
    }
    .nav-links li a {
        font-size: 1.2rem;
        display: block;
        padding: 8px 0;
    }
}

/* ========== 面包屑导航 (共用) ========== */
.breadcrumb {
    margin: 1.5rem 0 1rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.breadcrumb a {
    color: var(--primary-dark);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent-gold);
}

.breadcrumb span {
    margin: 0 6px;
}

/* ========== 页面主标题 (共用) ========== */
.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    border-left: 6px solid var(--accent-gold);
    padding-left: 1rem;
}

/* ========== 底部 (共用) ========== */
footer {
    background: var(--primary-dark);
    color: #FDF8F5;
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
    border-top: 4px solid var(--accent-gold);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

.footer-info {
    flex: 1.2;
}

.footer-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.footer-info p {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-info i {
    color: var(--accent-gold);
}

.footer-links {
    flex: 1;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.footer-links ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
}

.footer-links a {
    color: #FDF8F5;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
}

/* ========== 共用工具类 ========== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    padding-left: 1rem;
    border-left: 6px solid var(--accent-gold);
}

.section-more {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.section-more:hover {
    color: var(--accent-gold);
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-dark);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-gold);
    transform: translateY(-3px);
}

/* ========== 首页专用样式 ========== */
/* Banner轮播 */
.banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 0;
}

.swiper-container {
    width: 100%;
    height: 500px;      /* 原首页高度500px，已恢复 */
}

.banner .swiper-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.banner .swiper-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 700px;
    padding: 0 20px;
}

.slide-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.banner .swiper-pagination-bullet {
    background: white;
    opacity: 0.6;
}

.banner .swiper-pagination-bullet-active {
    background: var(--accent-gold);
    opacity: 1;
}

/* 服务导航按钮 */
.service-nav {
    margin: 3rem 0 4rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.service-btn {
    background: white;
    border-radius: 60px;
    padding: 1rem 0.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0e9df;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.service-btn i {
    font-size: 1.8rem;
    color: var(--accent-gold);
}

.service-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-gold);
    background: #fffbf5;
}

/* 阅读推广板块 */

.reading-wrapper {
    margin: 3rem 0;
}

.reading-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* 左侧图文卡片 */
.feature-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0e9df;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-gold);
}

.feature-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.feature-text {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.feature-text p {
    color: #5b6c7e;
    margin-bottom: 1rem;
    line-height: 1.5;
    flex: 1;
}

.read-link {
    background: none;
    border: 1px solid var(--primary-dark);
    padding: 6px 18px;
    border-radius: 40px;
    color: var(--primary-dark);
    font-weight: 500;
    display: inline-block;
    text-decoration: none;
    transition: 0.2s;
    align-self: flex-start;
}

.read-link:hover {
    background: var(--primary-dark);
    color: white;
}

/* 右侧文章列表 - 修复长标题换行问题 */
.article-list {
    background: white;
    border-radius: 28px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0e9df;
    display: flex;
    flex-direction: column;
}

.article-list h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
}

/* 每个列表项 */
.article-item {
    display: flex;
    align-items: flex-start;   /* 改为顶部对齐，适应多行标题 */
    gap: 12px;
    padding: 0.8rem 0;
    border-bottom: 1px dashed #efe5d8;
}

/* 日期标签 - 始终保持紧凑 */
.article-date {
    background: #f0e4d4;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
    margin-top: 2px;  /* 微调与首行文字对齐 */
}

/* 标题链接 - 允许换行，正常显示 */
/* 修复近期活动标题文字过大 */
.article-list .article-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0.6rem 0;          /* 稍微减小上下内边距 */
    border-bottom: 1px dashed #efe5d8;
}

.article-list .article-date {
    background: #f0e4d4;
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 0.7rem;          /* 日期保持小字号 */
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.3;
    margin-top: 2px;
}

.article-list .article-title {
    color: #3a4a5c;
    text-decoration: none;
    font-size: 0.85rem;         /* 关键：将标题字号调小 */
    line-height: 1.4;
    flex: 1;
    word-break: break-word;
    transition: color 0.2s;
}

.article-list .article-title:hover {
    color: var(--accent-gold);
}
/* 移动端适配 */
@media (max-width: 768px) {
    .reading-two-cols {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .feature-img {
        height: 180px;
    }
    .feature-text {
        padding: 1.2rem;
    }
    .feature-text h3 {
        font-size: 1.3rem;
    }
    .article-list {
        padding: 1.2rem;
    }
    .article-item {
        gap: 10px;
        padding: 0.7rem 0;
    }
    .article-date {
        padding: 3px 8px;
        font-size: 0.65rem;
    }
   .article-list .article-title {
        font-size: 0.8rem;
        line-height: 1.35;
    }
    .article-list .article-date {
        font-size: 0.65rem;
        padding: 2px 8px;
    }
    .article-list .article-item {
        gap: 8px;
        padding: 0.5rem 0;
    }
}

/* 通知公告 + 常用资源 (首页) */
.info-resource-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.notice-box {
    background: white;
    border-radius: 28px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0e9df;
}

.notice-box h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
}

/* 首页公告条目样式 (保持原样) */
        /* 通知公告 + 常用资源 */
        .info-resource-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 3rem 0; }
        .info-resource-row  .notice-box {
            background: white;
            border-radius: 28px;
            padding: 1.5rem;
            box-shadow: var(--shadow-sm);
            border: 1px solid #f0e9df;
        }
        .info-resource-row .notice-box h3 { font-size: 1.4rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 8px; color: var(--primary-dark); }
        .info-resource-row .notice-box .notice-item { display: flex; align-items: center; gap: 12px; padding: 0.8rem 0; border-bottom: 1px dashed #efe5d8; }
        .info-resource-row .notice-box .notice-date { background: #f0e4d4; padding: 4px 12px; border-radius: 30px; font-size: 0.7rem; white-space: nowrap; }
        .info-resource-row .notice-box .notice-title-link {
            color: #3a4a5c;
            text-decoration: none;
            transition: color 0.2s;
            flex: 1;
        }
        .info-resource-row .notice-box .notice-title-link:hover { color: var(--accent-gold); }

.resource-box {
    background: #f7f3ef;
    border-radius: 28px;
    padding: 1.5rem;
}

.resource-box h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.resource-item {
    background: white;
    border-radius: 60px;
    padding: 0.6rem 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid #e9e0d6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.resource-item i {
    color: var(--accent-gold);
    font-size: 0.9rem;
}

.resource-item:hover {
    background: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.resource-item:hover i {
    color: white;
}

/* 新书推荐轮播 */
.newbook-swiper {
    width: 100%;
    overflow: hidden;
    padding: 0.5rem 0 1rem;
    background: transparent;
}

.newbook-swiper .swiper-slide,
.newbook-swiper .swiper-slide::before,
.newbook-swiper .swiper-slide::after {
    background: transparent !important;
    background-image: none !important;
    content: none !important;
    display: block;
}

.newbook-swiper .swiper-slide {
    width: auto;
    height: auto;
    border-radius: 0 !important;
    overflow: visible;
}

.book-card {
    width: 210px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1ede5;
    margin: 0 auto;
}

.book-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-gold);
}

.book-cover {
    height: 220px;
    background: #f3ede7;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary-dark);
    color: white;
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: bold;
}

.book-info {
    background: #ffffff;
    padding: 1rem;
}

.book-info h4 {
    font-weight: 700;
    margin-bottom: 0.2rem;
    font-size: 1rem;
    color: var(--primary-dark);
}

.book-info .author {
    font-size: 0.75rem;
    color: #7b6b57;
}

.book-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.status {
    background: #f0ede8;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
}

.reserve-link {
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.reserve-link:hover {
    color: var(--accent-gold);
}

.newbook-swiper .swiper-pagination {
    display: none;
}

.newbook-swiper {
    cursor: default;
}

/* ========== 文章详情页专用样式 ========== */
.article-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ede0d4;
    padding-bottom: 1rem;
}

.article-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: #9b8b7a;
    flex-wrap: wrap;
}

.article-meta i {
    margin-right: 4px;
    color: var(--accent-gold);
}

.article-content {
    font-size: 1rem;
    color: #2D2A2E;
    margin: 2rem 0;
}

.article-content p {
    margin-bottom: 1.2rem;
}

.article-content h2 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.8rem;
    color: var(--primary-dark);
}

.article-content img {
    max-width: 100%;
    border-radius: 16px;
    margin: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.article-content blockquote {
    border-left: 4px solid var(--accent-gold);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #5a6874;
    font-style: italic;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid #ede0d4;
}

.nav-links-article {
    display: flex;
    gap: 1rem;
}

.nav-link {
    background: none;
    border: 1px solid var(--primary-dark);
    padding: 8px 20px;
    border-radius: 40px;
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    background: var(--primary-dark);
    color: white;
}

.back-list {
    background: var(--primary-light);
    border: 1px solid #e0d6cc;
}

.back-list:hover {
    background: var(--primary-dark);
    color: white;
}

/* ========== 图书馆简介页专用样式 ========== */
.intro-section {
    margin: 2rem 0;
}

.intro-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #3a4a5c;
    margin-bottom: 1.5rem;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    align-items: center;
}

.intro-img img {
    width: 100%;
    border-radius: 28px;
    box-shadow: var(--shadow-sm);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0e9df;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.stat-label {
    font-size: 0.85rem;
    color: #5a6874;
    margin-top: 0.3rem;
}

.section-subtitle {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-gold);
    display: inline-block;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.feature-item {
    background: white;
    border-radius: 20px;
    padding: 1.2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0e9df;
    transition: all 0.2s;
}

.feature-item:hover {
    border-color: var(--accent-gold);
    transform: translateY(-3px);
}

.feature-item i {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 0.8rem;
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--primary-dark);
}

.feature-item p {
    font-size: 0.85rem;
    color: #6a7a8a;
}

.contact-info {
    background: white;
    border-radius: 28px;
    padding: 1.8rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0e9df;
}

.contact-info h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.contact-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #4f5a65;
}

.contact-item i {
    width: 28px;
    color: var(--accent-gold);
    font-size: 1.2rem;
}

/* ========== 通知公告页面专用样式 ========== */
/* 为避免与首页冲突，使用独立类名 .notice-list-page */
.notice-page-list {
            display: flex;
            flex-direction: column;
            gap: 1.2rem;
            margin: 2rem 0;
        }
        .notice-page-list .notice-item {
            background: white;
            border-radius: 20px;
            padding: 1.2rem 1.5rem;
            transition: all 0.2s;
            box-shadow: var(--shadow-sm);
            border: 1px solid #f1ede5;
        }
        .notice-page-list .notice-item:hover {
            transform: translateX(4px);
            box-shadow: var(--shadow-md);
            border-color: var(--accent-gold);
        }
        .notice-page-list .notice-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--primary-dark);
            margin-bottom: 0.4rem;
        }
        .notice-page-list .notice-title a {
            text-decoration: none;
            color: inherit;
        }
        .notice-page-list .notice-title a:hover {
            color: var(--accent-gold);
        }
        .notice-page-list .notice-meta {
            display: flex;
            gap: 1rem;
            font-size: 0.75rem;
            color: #9b8b7a;
            margin-bottom: 0.5rem;
        }
        .notice-page-list .notice-summary {
            font-size: 0.85rem;
            color: #4f5a65;
            line-height: 1.4;
        }.notice-page-list {
            display: flex;
            flex-direction: column;
            gap: 1.2rem;
            margin: 2rem 0;
        }
        .notice-page-list .notice-item {
            background: white;
            border-radius: 20px;
            padding: 1.2rem 1.5rem;
            transition: all 0.2s;
            box-shadow: var(--shadow-sm);
            border: 1px solid #f1ede5;
        }
        .notice-page-list .notice-item:hover {
            transform: translateX(4px);
            box-shadow: var(--shadow-md);
            border-color: var(--accent-gold);
        }
        .notice-page-list .notice-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--primary-dark);
            margin-bottom: 0.4rem;
        }
        .notice-page-list .notice-title a {
            text-decoration: none;
            color: inherit;
        }
        .notice-page-list .notice-title a:hover {
            color: var(--accent-gold);
        }
        .notice-page-list .notice-meta {
            display: flex;
            gap: 1rem;
            font-size: 0.75rem;
            color: #9b8b7a;
            margin-bottom: 0.5rem;
        }
        .notice-page-list .notice-summary {
            font-size: 0.85rem;
            color: #4f5a65;
            line-height: 1.4;
        }
 @media (max-width: 768px) {
           
            .notice-page-list .notice-item {
                padding: 1rem;
            }
          
        }




/* 分页 (共用，放在此处) */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 500;
    transition: 0.2s;
}

.page-link.active {
    background: var(--primary-dark);
    color: white;
}

.page-link:hover:not(.active) {
    background: #f0e4d4;
}

/* ========== 响应式调整 (全局) ========== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* 首页移动端 */
    .swiper-container {
        height: 350px;
    }
    .slide-content h2 {
        font-size: 1.8rem;
    }
    .slide-content p {
        font-size: 0.9rem;
    }
    .service-nav {
        margin: 2rem 0 2rem;
    }
    .service-grid {
        gap: 0.8rem;
    }
    .service-btn {
        padding: 0.7rem 0.3rem;
        font-size: 0.8rem;
    }
    .service-btn i {
        font-size: 1.4rem;
    }
    .reading-two-cols, .info-resource-row {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .reading-wrapper {
        margin: 2rem 0;
    }
    .feature-img {
        height: 180px;
    }
    .feature-text, .article-list, .notice-box, .resource-box {
        padding: 1.2rem;
    }
    .feature-text h3 {
        font-size: 1.3rem;
    }
    .section-title {
        font-size: 1.4rem;
    }
    .resources-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.7rem;
    }
    .resource-item {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }
    .book-card {
        width: 160px;
    }
    .book-cover {
        height: 180px;
    }

    /* 文章详情页移动端 */
    .article-title {
        font-size: 1.6rem;
    }
    .article-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-links-article {
        justify-content: space-between;
    }

    /* 图书馆简介页移动端 */
    .page-title {
        font-size: 1.8rem;
    }
    .intro-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        gap: 1rem;
    }
    .stat-number {
        font-size: 1.8rem;
    }
    .section-subtitle {
        font-size: 1.4rem;
    }
    .feature-list {
        grid-template-columns: 1fr;
    }
    .contact-detail {
        flex-direction: column;
        gap: 1rem;
    }

    /* 通知公告页移动端 */
    .notice-list-page .notice-item {
        padding: 1rem;
    }

    /* 底部共用 */
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-info p {
        justify-content: center;
    }
    .footer-links ul {
        justify-content: center;
    }

    /* 回到顶部 */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}