/* =====================================
   四川旅游学院图书馆官网样式表
   基于主站UI风格设计
   ===================================== */

/* 主色调定义 */
:root {
    --primary-color: #1a7a3e;      /* 学校绿色 - 主色 */
    --secondary-color: #ffffff;     /* 白色 */
    --accent-color: #2d8f4f;        /* 亮绿色 - 强调色 */
    --text-color: #333333;          /* 深灰色 - 文字 */
    --nav-text: #555555;            /* 导航文字颜色 */
    --bg-light: #f5f5f5;            /* 浅灰色 - 背景 */
    --border-color: #e0e0e0;        /* 边框颜色 */
}

/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--secondary-color);
    line-height: 1.6;
    font-size: 14px;
}

/* 容器最大宽度 */
.container {
    max-width: 1200px;
}

/* ===== 顶部导航样式 ===== */
.navbar-custom {
    background-color: var(--secondary-color);
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-bottom: 1px solid #e8e8e8;
}

/* 导航容器左侧留白 */
.navbar-custom .container-fluid {
    padding-left: 40px;
    padding-right: 40px;
}

/* Logo和品牌文字 */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.navbar-brand img {
    height: 60px;
    width: auto;
}

/* Logo与文字之间的渐变分割线 */
.brand-divider {
    width: 2px;
    height: 50px;
    margin: 0 20px;
    background: linear-gradient(to bottom, 
        rgba(26, 122, 62, 0) 0%, 
        rgba(26, 122, 62, 0.8) 20%, 
        rgba(26, 122, 62, 1) 50%, 
        rgba(26, 122, 62, 0.8) 80%, 
        rgba(26, 122, 62, 0) 100%);
}

/* 品牌文字样式 - 仿学校官网 */
.brand-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-text-cn {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1.2;
    letter-spacing: 2px;
}

.brand-text-en {
    font-size: 11px;
    color: #666;
    letter-spacing: 1px;
    margin-top: 2px;
}

.brand-text-dept {
    font-size: 22px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 2px;
}

/* 导航链接 */
.navbar-nav .nav-link {
    color: var(--nav-text) !important;
    padding: 10px 20px !important;
    margin: 0 2px;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 400;
    position: relative;
}

/* 一级菜单之间的分割线 */
.navbar-nav .nav-item:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #d0d0d0;
    font-size: 14px;
    pointer-events: none;
}

/* 导航项需要相对定位（用于分割线定位） */
.navbar-nav .nav-item {
    position: relative;
}

/* 导航链接悬停效果 */
.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: #f8f9fa;
}

/* 下拉菜单箭头 - 完全隐藏 */
.navbar-nav .dropdown-toggle::after {
    display: none !important;
}

/* 当前激活导航项 */
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 500;
}

/* 鼠标悬停触发下拉菜单 */
.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeInDown 0.3s ease;
}

/* 下拉菜单动画 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 下拉菜单容器定位 */
.navbar-nav .dropdown {
    position: relative;
}

/* 下拉菜单样式 */
.dropdown-menu {
    border: 1px solid #e0e0e0;
    border-top: 3px solid var(--primary-color); /* 绿色顶部横条 */
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 8px 0;
    margin-top: 0;
    min-width: 100%; /* 至少与父元素同宽 */
    width: max-content; /* 根据内容自适应，但不小于父元素 */
    max-width: 200px; /* 最大宽度限制 */
    background-color: #fff;
    left: 0; /* 左对齐父元素 */
    position: absolute;
}

.dropdown-item {
    padding: 10px 16px;
    font-size: 14px;
    color: var(--nav-text);
    transition: all 0.2s ease;
    white-space: nowrap; /* 防止文字换行 */
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    padding-left: 20px;
}

.carousel-caption-bottom a {
    color: #ffffff;
}
.carousel-caption-bottom a:hover {
    color: #ffffff;
}

/* 移动端导航按钮 */
.navbar-toggler {
    border-color: #ddd;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ===== Banner轮播图样式 ===== */
.banner-section {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

.carousel {
    width: 100%;
}

.carousel-item {
    height: 500px;
    background-size: cover;
    background-position: center;
}

.carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* 轮播图标题 - 隐藏原有的说明文字 */
.carousel-caption {
    display: none; /* 已在搜索框中添加标题，隐藏原有说明 */
    background-color: rgba(26, 122, 62, 0.85);
    padding: 20px;
    border-radius: 5px;
}

.carousel-caption h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

/* 轮播控制按钮 */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(26, 122, 62, 0.6);
    padding: 20px;
    border-radius: 50%;
}

/* ===== 快速导航区域样式 - 毛玻璃效果 ===== */
/* 快速导航区域容器：设置负的上边距，让导航区覆盖在轮播图底部 */
.quick-nav-section {
    position: relative;
    margin-top: -80px;           /* 负边距，向上偏移80px，覆盖在轮播图底部 */
    z-index: 10;                 /* 层级高于轮播图，确保显示在轮播图之上 */
    padding: 0 0 40px 0;         /* 底部留出40px间距 */
}

.quick-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px 0px;
    box-shadow: 0 0px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-wrap: wrap;
}

/* 快速导航单个项样式 */
.quick-nav-item {
    display: flex;               /* 弹性布局 */
    flex-direction: column;      /* 子元素垂直排列（图标在上，文字在下） */
    align-items: center;         /* 水平居中对齐 */
    text-decoration: none;       /* 移除链接下划线 */
    color: var(--text-color);    /* 文字颜色使用主题色 */
    transition: all 0.3s ease;   /* 所有属性平滑过渡动画 */
    padding: 0px 20px;          /* 内边距：上下15px，左右25px，增加点击区域 */
    border-radius: 12px;         /* 圆角12px */
    flex: 1;                     /* 弹性增长，均分空间 */
    min-width:144px ;          
}

/* 快速导航项悬停效果：背景色变化 */
.quick-nav-item:hover {
    background: rgba(26, 122, 62, 0.1); /* 浅绿色背景，透明度10% */
    transform: translateY(-5px); /* 向上移动5px，悬浮效果 */
    color: var(--primary-color); /* 文字变为主题绿色 */
}

/* 快速导航项悬停时图标颜色变化 */
.quick-nav-item:hover .nav-icon i {
    color: var(--primary-color); /* 图标变为主题绿色 */
    transform: scale(1.1);       /* 图标放大1.1倍 */
}

/* 导航图标容器 */
.nav-icon {
    margin-bottom: 0px;         /* 与下方文字保持10px间距 */
}

/* 导航图标样式 */
.nav-icon img {
    width: 50px;
    height: 50px;
}

/* 导航文字样式 */
.nav-text {
    font-size: 14px;             /* 字体大小16px */
    font-weight: 600;            /* 字重600，半粗体 */
    text-align: center;          /* 文字居中对齐 */
    white-space: nowrap;         /* 文字不换行 */
}

/* ===== 主要内容区域 ===== */
.main-content {
    padding: 40px 0;
    min-height: 500px;
}

/* ===== Banner轮播图搜索框叠加样式 ===== */
/* 搜索框叠加层：定位在轮播图中部 */
.banner-search-overlay {
    position: absolute;
    top: 70%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none; /* 允许点击穿透到轮播图 */
}

/* 搜索框容器：启用交互 */
.search-box-wrapper {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    pointer-events: auto; /* 恢复交互功能 */
    text-align: center;
}

/* 搜索框标题 */
.search-title {
    color: var(--primary-color);
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* 搜索框副标题 */
.search-subtitle {
    color: var(--text-color);
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* Banner搜索表单样式 */
.banner-search-form {
    margin: 0;
}

/* Banner搜索输入框样式 */
.banner-search-form .form-control {
    border: 2px solid var(--border-color);
    border-radius: 50px 0 0 50px;
    padding: 18px 25px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

/* Banner搜索输入框获得焦点时的样式 */
.banner-search-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 122, 62, 0.15);
    outline: none;
}

/* Banner搜索按钮样式 */
.banner-search-form .btn-search {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: white;
    border-radius: 0 50px 50px 0;
    padding: 18px 35px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* Banner搜索按钮悬停效果 */
.banner-search-form .btn-search:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 122, 62, 0.3);
}

/* ===== 知网文献搜索框样式（备用，已移除） ===== */
/* 知网搜索表单样式：简洁紧凑 */
.cnki-search-form {
    margin-top: 0;
}

/* 搜索输入框样式优化 */
.cnki-search-form .form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px 0 0 8px;
    padding: 15px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
}

/* 搜索输入框获得焦点时的样式 */
.cnki-search-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 122, 62, 0.15);
}

/* 搜索按钮样式 */
.cnki-search-form .btn {
    border-radius: 0 8px 8px 0;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

/* 页面标题 */
.page-title {
    color: var(--text-color);
    font-size: 32px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    width: 100%;
}

/* 标题左侧的简笔画图标 */
.page-title .title-icon {
    width: 150px;
    height: auto;
    margin-right: 20px;
    opacity: 0.9;
    vertical-align: middle;
}

/* ===== 链接样式统一设置 ===== */
/* 全局链接颜色：统一为深灰色，不使用蓝色 */
a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* 链接悬停效果：变为学校绿色 */
a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* 覆盖Bootstrap的.text-primary类，改为使用绿色而不是蓝色 */
.text-primary {
    color: var(--primary-color) !important;
}

/* 特殊链接样式：附件下载、上下篇导航等 */
a.text-primary {
    color: var(--text-color) !important;
}

a.text-primary:hover {
    color: var(--primary-color) !important;
}

/* 面包屑导航 */
.breadcrumb {
    background-color: var(--bg-light);
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* 面包屑导航中的链接样式 */
.breadcrumb-item a {
    color: var(--text-color);
    text-decoration: none;
}

/* 面包屑导航中的链接悬停效果 */
.breadcrumb-item a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* 面包屑导航的分隔符：从斜线改为竖线 */
.breadcrumb-item + .breadcrumb-item::before {
    content: "|";
    color: #d0d0d0;
    padding: 0 8px;
}

/* ===== 卡片样式 ===== */
.card-custom {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.card-custom:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.card-custom .card-header {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-weight: bold;
    padding: 15px;
    border-radius: 8px 8px 0 0;
}

.card-custom .card-body {
    padding: 20px;
}

/* ===== 新闻列表样式 ===== */
.news-list {
    list-style: none;
    padding: 0;
}

.news-item {
    border-bottom: 1px dashed var(--border-color);
    padding: 15px 0;
    transition: background-color 0.3s ease;
}

.news-item:hover {
    background-color: var(--bg-light);
    padding-left: 10px;
}

.news-item a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-item a:hover {
    color: var(--primary-color);
}

.news-title {
    flex: 1;
    cursor: pointer;
}

.news-date {
    color: #999;
    font-size: 13px;
    margin-left: 20px;
}

/* ===== 阅读推广轮播图样式 ===== */
.reading-promotion-carousel {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.reading-promotion-carousel .carousel-inner {
    border-radius: 8px;
}

.reading-promotion-carousel .carousel-item {
    height: 400px;
}

.reading-promotion-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 轮播图底部标题 */
.carousel-caption-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 122, 62, 0.9);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

/* 轮播指示器样式 */
.reading-promotion-carousel .carousel-indicators {
    bottom: 60px;
}

.reading-promotion-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
}

.reading-promotion-carousel .carousel-indicators button.active {
    background-color: white;
}

/* ===== 新闻标签样式 ===== */
.news-tabs {
    /* border-bottom: 1px solid var(--border-color); */
    display: flex;
    padding: 1px ;
    border-bottom: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.news-tabs .nav-link {
    color: var(--text-color);
    border: none;
    padding: 12px 24px;
    font-weight: 500;
    position: relative;
}

.news-tabs .nav-link:hover {
    color: var(--primary-color);
    background-color: transparent;
}

.news-tabs .nav-link.active {
    color: white;
    background-color: var(--primary-color);
    border-radius: 0;
}

.news-tab-content {
    padding: 20px 0;
    min-height: 400px;
}

/* ===== 新闻列表紧凑版样式 ===== */
.news-list-compact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item-compact {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.news-item-compact:hover {
    background-color: var(--bg-light);
    padding-left: 10px;
}

.news-item-compact:last-child {
    border-bottom: none;
}

/* 日期标签样式 */
.news-date-tag {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    border-radius: 4px;
    flex-shrink: 0;
    margin-right: 15px;
    font-size: 22px;
    font-weight: bold;
    line-height: 32px;
    padding-top: 6px;
}

.news-date-tag small {
    display: block;
    font-size: 11px;
    font-weight: normal;
    line-height: 12px;
}

/* 新闻内容文字区域 */
.news-content-text {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-content-text a:first-child {
    flex: 1;
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.6;
    margin-right: 15px;
}

.news-content-text a:first-child:hover {
    color: var(--primary-color);
}

/* 详情链接样式 */
.news-link-detail {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.news-link-detail:hover {
    text-decoration: underline;
}

/* ===== 资源分类展示样式 ===== */
/* 资源分类盒子容器 */
.resource-category-box {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0;
    height: 100%;
    transition: all 0.3s ease;
    overflow: hidden;
}

.resource-category-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* 资源分类头部 */
.resource-category-header {
    background-color: var(--bg-light);
    padding: 15px 20px;
    border-bottom: 2px solid var(--primary-color);
    text-align: center;
}

.resource-category-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

/* 资源列表样式 */
.resource-list {
    list-style: none;
    padding: 15px 20px;
    margin: 0;
}

.resource-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #ebebeb;
}

.resource-list li:last-child {
    border-bottom: none;
}

.resource-list li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.resource-list li a i {
    color: var(--primary-color);
    font-size: 6px;
    margin-right: 8px;
    margin-top: 6px;
    flex-shrink: 0;
}

.resource-list li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* ===== 按钮样式 ===== */
.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 10px 25px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--secondary-color);
}

/* ===== 页脚样式 ===== */
.footer {
    background: linear-gradient(135deg, #1a7a3e 0%, #2d8f4f 50%, #1a7a3e 100%);
    color: var(--secondary-color);
    padding: 60px 0 30px;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

/* 页脚容器 - 充分利用页面宽度 */
.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    padding-left: 100px;
    padding-right: 100px;
}

/* 页脚背景装饰图案 */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.04) 0%, transparent 40%),
        repeating-linear-gradient(90deg, transparent, transparent 100px, rgba(255, 255, 255, 0.01) 100px, rgba(255, 255, 255, 0.01) 101px);
    pointer-events: none;
}

/* 中央翻开的书籍装饰 */
.footer .row::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 300px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><g opacity="0.06"><path d="M 50 80 Q 100 60 200 70 Q 300 60 350 80 L 350 250 Q 300 230 200 240 Q 100 230 50 250 Z" fill="white" stroke="white" stroke-width="1"/><path d="M 200 70 L 200 240" stroke="white" stroke-width="2" opacity="0.5"/><path d="M 80 100 L 170 105" stroke="white" stroke-width="1" opacity="0.4"/><path d="M 230 105 L 320 100" stroke="white" stroke-width="1" opacity="0.4"/><path d="M 80 130 L 170 133" stroke="white" stroke-width="1" opacity="0.4"/><path d="M 230 133 L 320 130" stroke="white" stroke-width="1" opacity="0.4"/><path d="M 80 160 L 170 162" stroke="white" stroke-width="1" opacity="0.4"/><path d="M 230 162 L 320 160" stroke="white" stroke-width="1" opacity="0.4"/><path d="M 80 190 L 170 191" stroke="white" stroke-width="1" opacity="0.4"/><path d="M 230 191 L 320 190" stroke="white" stroke-width="1" opacity="0.4"/></g></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    pointer-events: none;
}

.footer .row {
    position: relative;
}

/* 页脚背景阴影底纹（书籍图案） */
.footer::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: 8%;
    width: 500px;
    height: 500px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300"><g opacity="0.08"><rect x="50" y="80" width="45" height="180" fill="white" transform="rotate(-15 72.5 170)"/><rect x="95" y="70" width="50" height="190" fill="white" transform="rotate(-8 120 165)"/><rect x="145" y="75" width="48" height="185" fill="white" transform="rotate(5 169 167.5)"/><rect x="193" y="65" width="52" height="195" fill="white" transform="rotate(12 219 162.5)"/><path d="M 60 260 Q 150 250 240 260" stroke="white" stroke-width="2" fill="none"/></g></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 1;
    pointer-events: none;
}

/* 左侧书籍装饰 */
.footer .container::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -5%;
    width: 350px;
    height: 350px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><g opacity="0.06"><rect x="20" y="100" width="30" height="90" fill="white" rx="2"/><rect x="55" y="95" width="35" height="95" fill="white" rx="2"/><rect x="95" y="90" width="32" height="100" fill="white" rx="2"/><rect x="132" y="93" width="38" height="97" fill="white" rx="2"/><circle cx="100" cy="60" r="25" fill="white" opacity="0.3"/></g></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}

/* 顶部小书籍装饰 */
.footer .container::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 10%;
    width: 200px;
    height: 120px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 120"><g opacity="0.05"><path d="M 20 40 Q 60 25 100 35 Q 140 25 180 40 L 180 100 Q 140 85 100 95 Q 60 85 20 100 Z" fill="white"/><line x1="100" y1="35" x2="100" y2="95" stroke="white" stroke-width="1.5"/><path d="M 40 50 L 85 52" stroke="white" stroke-width="0.8" opacity="0.6"/><path d="M 115 52 L 160 50" stroke="white" stroke-width="0.8" opacity="0.6"/><path d="M 40 65 L 85 66" stroke="white" stroke-width="0.8" opacity="0.6"/><path d="M 115 66 L 160 65" stroke="white" stroke-width="0.8" opacity="0.6"/></g></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}

.footer h5 {
    color: var(--secondary-color);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
}

.footer p {
    color: var(--secondary-color);
    font-size: 15px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

.footer a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer a:hover {
    color: rgba(255, 255, 255, 1);
    text-decoration: none;
    transform: translateX(5px);
}

.footer ul {
    padding-left: 0;
    position: relative;
    z-index: 1;
}

.footer ul li {
    margin-bottom: 12px;
    font-size: 15px;
}

.footer .container {
    position: relative;
}

.footer .copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin: 0;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

/* 版权信息上方的分割线样式 */
.border-top-custom {
    border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* 页脚Logo与品牌样式 */
.footer-brand {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    min-width: 350px;
}

.footer-brand img {
    height: 50px;
    width: auto;
    flex-shrink: 0;
}

/* 页脚Logo白色滤镜效果 */
.footer-logo {
    height: 60px;
    width: auto;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    /* 
    filter说明：
    brightness(0) - 先将图片变为全黑
    invert(1) - 然后反转颜色变为全白
    这样可以将任何颜色的logo转换为白色
    */
}

/* 页脚Logo与文字之间的分割线 - 增强可见度 */
.footer-brand-divider {
    width: 1px;  /* 分割线宽度：可调整为 1px-4px */
    height: 55px;  /* 分割线高度：建议与logo高度相近 */
    margin: 0 25px;  /* 左右间距：数值越大，logo和文字距离越远 */
    flex-shrink: 0;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.9) 15%, 
        rgba(255, 255, 255, 1) 50%, 
        rgba(255, 255, 255, 0.9) 85%, 
        rgba(255, 255, 255, 0) 100%);
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.5);  /* 发光效果：可以删除此行取消发光 */
}

/* 页脚品牌文字样式 */
.footer-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.footer-brand-dept {
    font-size: 22px;
    font-weight: bold;
    color: var(--secondary-color);
    line-height: 1.4;
    letter-spacing: 2px;
}

.footer-brand-subdept {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    letter-spacing: 1px;
    margin-top: 3px;
}

/* 公众号二维码区域样式 */
.footer-qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.footer-qrcode-img {
    max-width: 140px;
    height: auto;
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    background-color: white;
    padding: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-qrcode-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.footer-qrcode-text {
    font-size: 14px;
    color: var(--secondary-color);
    margin-top: 10px;
    font-weight: 500;
}

/* 公众号二维码占位区域样式 */
.footer-qrcode-placeholder {
    width: 140px;
    height: 140px;
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.footer-qrcode-placeholder:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.footer-qrcode-placeholder i {
    font-size: 56px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-qrcode-placeholder p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
}

/* ===== 返回顶部按钮 ===== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 12px 18px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

#back-to-top:hover {
    background-color: #2d8f4f;
    transform: scale(1.1);
}

/* ===== 表单样式 ===== */
.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.form-label {
    color: var(--primary-color);
    font-weight: bold;
}

/* ===== 分页样式 ===== */
/* 分页按钮基础样式：统一使用学校绿色主题 */
.pagination .page-link {
    color: var(--text-color);
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    margin: 0 3px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* 分页按钮悬停效果：浅绿色背景 + 绿色文字 */
.pagination .page-link:hover {
    color: var(--primary-color);
    background-color: rgba(26, 122, 62, 0.1);
    border-color: var(--primary-color);
}

/* 当前激活页码：绿色背景 + 白色文字 */
.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
    font-weight: bold;
}

/* 禁用状态的分页按钮：灰色 */
.pagination .page-item.disabled .page-link {
    color: #999;
    background-color: var(--bg-light);
    border-color: var(--border-color);
    cursor: not-allowed;
}

/* 禁用状态的按钮不显示悬停效果 */
.pagination .page-item.disabled .page-link:hover {
    color: #999;
    background-color: var(--bg-light);
    border-color: var(--border-color);
}

/* ===== 表格样式 ===== */
.table-custom {
    border: 1px solid var(--border-color);
}

.table-custom thead {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.table-custom tbody tr:hover {
    background-color: var(--bg-light);
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    /* 快速导航响应式 - 平板设备 */
    .quick-nav-section {
        margin-top: -60px;       /* 减小负边距到60px */
        padding: 0 0 30px 0;     /* 减小底部间距到30px */
    }
    
    .quick-nav-container {
        flex-wrap: wrap;         /* 允许换行，适应小屏幕 */
        padding: 25px 15px;      /* 减小内边距 */
        border-radius: 12px;     /* 减小圆角 */
    }
    
    .quick-nav-item {
        flex: 0 0 45%;           /* 每行显示2个项目，占45%宽度 */
        max-width: 45%;          /* 最大宽度45% */
        margin-bottom: 15px;     /* 项目之间垂直间距 */
        padding: 12px 15px;      /* 减小内边距 */
    }
    
    .nav-icon i {
        font-size: 40px;         /* 减小图标大小到40px */
    }
    
    .nav-text {
        font-size: 14px;         /* 减小文字大小到14px */
    }
    
    /* 移动端轮播图高度调整 */
    .carousel-item,
    .carousel-item img {
        height: 400px;
    }
    
    .carousel-caption h3 {
        font-size: 20px;
    }
    
    .carousel-caption p {
        display: none;
    }
    
    /* 移动端Banner搜索框样式调整 */
    .search-box-wrapper {
        padding: 25px 20px;
        margin: 0 15px;
    }
    
    .search-title {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .search-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .banner-search-form .form-control {
        padding: 14px 18px;
        font-size: 14px;
    }
    
    .banner-search-form .btn-search {
        padding: 14px 25px;
        font-size: 14px;
    }
    
    /* 页面标题 */
    .page-title {
        font-size: 24px;
    }
    
    /* 标题图标在移动端缩小 */
    .page-title .title-icon {
        width: 60px;
        height: auto;
        margin-right: 12px;
    }
    
    /* 页脚响应式调整 */
    .footer {
        padding: 40px 0 25px;
    }
    
    .footer-container {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .footer-brand {
        justify-content: center;
        margin-bottom: 20px;
        min-width: auto;
    }
    
    .footer-logo {
        height: 50px;
    }
    
    .footer-brand-divider {
        width: 2px;  /* 平板端分割线宽度 */
        height: 45px;
        margin: 0 18px;
    }
    
    .footer-brand-dept {
        font-size: 20px;
    }
    
    .footer-brand-subdept {
        font-size: 15px;
    }
    
    .footer h5 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .footer p,
    .footer ul li {
        font-size: 14px;
    }
    
    .footer-qrcode-placeholder,
    .footer-qrcode-img {
        width: 120px;
        height: 120px;
    }
    
    .footer-qrcode-placeholder i {
        font-size: 48px;
    }
    
    .footer .copyright {
        font-size: 12px;
    }
    
    /* 返回顶部按钮 */
    #back-to-top {
        bottom: 20px;
        right: 20px;
        padding: 10px 15px;
        font-size: 18px;
    }
    
    /* 页脚 */
    .footer-column {
        margin-bottom: 30px;
    }
    
    /* 知网搜索框移动端优化 */
    .cnki-search-form .btn {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .cnki-search-form .form-control {
        font-size: 15px;
        padding: 12px 15px;
    }
    
    /* 阅读推广轮播图移动端 */
    .reading-promotion-carousel .carousel-item {
        height: 250px;
    }
    
    .carousel-caption-bottom {
        font-size: 14px;
        padding: 10px;
    }
    
    /* 新闻标签移动端 */
    .news-tabs .nav-link {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .news-tab-content {
        min-height: 300px;
    }
    
    /* 日期标签移动端 */
    .news-date-tag {
        width: 45px;
        height: 45px;
        font-size: 18px;
        line-height: 28px;
        padding-top: 5px;
    }
    
    .news-date-tag small {
        font-size: 10px;
    }
    
    .news-content-text a:first-child {
        font-size: 14px;
    }
    
    /* 资源分类盒子移动端 */
    .resource-category-box {
        margin-bottom: 15px;
    }
    
    .resource-category-header {
        padding: 12px 15px;
    }
    
    .resource-category-header h5 {
        font-size: 15px;
    }
    
    .resource-list {
        padding: 12px 15px;
    }
    
    .resource-list li a {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    /* 快速导航响应式 - 手机设备 */
    .quick-nav-section {
        margin-top: -50px;       /* 进一步减小负边距到50px */
        padding: 0 0 20px 0;     /* 进一步减小底部间距到20px */
    }
    
    .quick-nav-container {
        padding: 20px 10px;      /* 进一步减小内边距 */
        border-radius: 10px;     /* 进一步减小圆角 */
    }
    
    .quick-nav-item {
        flex: 0 0 48%;           /* 每行显示2个项目，占48%宽度 */
        max-width: 48%;          /* 最大宽度48% */
        margin-bottom: 12px;     /* 项目之间垂直间距 */
        padding: 10px 8px;       /* 进一步减小内边距 */
    }
    
    .nav-icon {
        margin-bottom: 8px;      /* 减小图标与文字间距 */
    }
    
    .nav-icon i {
        font-size: 32px;         /* 进一步减小图标大小到32px */
    }
    
    .nav-text {
        font-size: 12px;         /* 进一步减小文字大小到12px */
    }
    
    /* 导航栏 */
    .navbar-nav {
        padding: 10px 0;
    }
    
    .navbar-nav .nav-link {
        margin: 5px 0;
    }
    
    /* 主要内容 */
    .main-content {
        padding: 20px 0;
    }
    
    /* 页脚小屏幕优化 */
    .footer-container {
        padding-left: 25px;
        padding-right: 25px;
    }
    
    .footer-brand {
        min-width: auto;
    }
    
    .footer-logo {
        height: 45px;
    }
    
    .footer-brand-divider {
        width: 2px;  /* 移动端分割线宽度 */
        margin: 0 15px;
        height: 40px;
    }
    
    .footer-brand-dept {
        font-size: 18px;
    }
    
    .footer-brand-subdept {
        font-size: 14px;
    }
    
    .footer h5 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .footer p,
    .footer ul li {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .footer-qrcode-placeholder,
    .footer-qrcode-img {
        width: 100px;
        height: 100px;
    }
    
    .footer-qrcode-placeholder i {
        font-size: 40px;
    }
    
    .footer-qrcode-placeholder p {
        font-size: 12px;
    }
}

/* ===== 特殊页面样式 ===== */

/* 关于我们页面 */
.about-section {
    margin-bottom: 40px;
}

.about-section h3 {
    color: var(--text-color);
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid var(--primary-color);
}

/* 资源卡片 */
.resource-card {
    text-align: center;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.resource-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.resource-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.resource-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 服务指南表格 */
.services-table {
    margin-top: 20px;
}

.services-table th {
    width: 30%;
}

/* 在线咨询表单 */
.consultation-form {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
}

/* ===== 动画效果 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== 数字人形象挂件样式 ===== */
/* 数字人挂件容器：固定定位，始终显示在页面右侧，点击可跳转到AI机器人 */
.ai-agent-widget {
    position: fixed;           /* 固定定位，不随滚动条滚动而消失 */
    right: 30px;               /* 距离右边30px */
    bottom: 75px;             /* 距离底部75px，避免遮挡返回顶部按钮 */
    z-index: 999;              /* 层级设置为999，确保显示在其他内容之上，但低于导航栏(1000) */
    transition: all 0.3s ease; /* 平滑过渡动画 */
    text-decoration: none;     /* 移除链接下划线 */
    display: block;            /* 块级元素 */
    outline: none;             /* 移除焦点轮廓 */
}

/* 数字人图片样式 */
.ai-agent-image {
    width: 250px;              /* 图片宽度250px，PC端大小 */
    height: auto;              /* 高度自动，保持图片比例 */
    display: block;            /* 块级元素，消除图片底部空隙 */
    cursor: pointer;           /* 鼠标悬停时显示手型光标，暗示可点击 */
    transition: transform 0.3s ease; /* 添加变换动画效果 */
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15)); /* 添加阴影效果，增加立体感 */
}

/* 数字人图片悬停效果：轻微放大并上移，增加互动感 */
.ai-agent-image:hover {
    transform: scale(1.05) translateY(-5px); /* 放大1.05倍并向上移动5px */
}

/* ===== 数字人悬浮提示框样式 ===== */
/* 提示框主体：使用::before伪元素创建提示文字框 */
.ai-agent-widget::before {
    content: attr(data-tooltip);  /* 从data-tooltip属性获取提示文字内容 */
    position: absolute;            /* 绝对定位，相对于.ai-agent-widget容器 */
    bottom: 0;                     /* 定位在挂件底部 */
    left: 50%;                     /* 水平居中对齐 */
    transform: translateX(-50%) translateY(15%); /* 水平居中，向上偏移15%覆盖数字人底部 */
    padding: 12px 18px;            /* 内边距：上下12px，左右18px */
    background-color: var(--primary-color); /* 使用学校绿色作为背景 */
    color: white;                  /* 白色文字，确保对比度 */
    font-size: 16px;               /* 字体大小16px，清晰可读 */
    font-weight: 500;              /* 字重500，稍微加粗 */
    white-space: nowrap;           /* 文字不换行，保持一行显示 */
    border-radius: 8px;            /* 圆角8px，现代美观 */
    box-shadow: 0 4px 15px rgba(26, 122, 62, 0.3); /* 绿色阴影，增加立体感 */
    opacity: 0;                    /* 初始状态透明，不可见 */
    visibility: hidden;            /* 初始状态隐藏 */
    transition: all 0.3s ease;     /* 所有属性平滑过渡动画 */
    pointer-events: none;          /* 不响应鼠标事件，避免干扰交互 */
    z-index: 1000;                 /* 层级高于挂件本身，确保显示在最上层 */
}

/* 提示框小箭头：使用::after伪元素创建指向上方的三角形箭头 */
.ai-agent-widget::after {
    content: '';                   /* 空内容，纯装饰性元素 */
    position: absolute;            /* 绝对定位 */
    bottom: 0;                     /* 定位在挂件底部 */
    left: 50%;                     /* 水平居中对齐 */
    transform: translateX(-50%) translateY(-100%); /* 水平居中，定位在提示框上方 */
    margin-bottom: 12px;           /* 与提示框顶部保持间距 */
    border: 8px solid transparent; /* 创建透明边框，用于形成三角形 */
    border-bottom-color: var(--primary-color); /* 底边框为绿色，形成指向上方的箭头 */
    opacity: 0;                    /* 初始状态透明 */
    visibility: hidden;            /* 初始状态隐藏 */
    transition: all 0.3s ease;     /* 平滑过渡动画 */
    pointer-events: none;          /* 不响应鼠标事件 */
    z-index: 999;                  /* 层级略低于提示框，箭头在下层 */
}

/* 鼠标悬停时显示提示框和箭头：通过改变opacity和visibility实现淡入效果 */
.ai-agent-widget:hover::before,
.ai-agent-widget:hover::after {
    opacity: 1;                    /* 完全不透明，完全显示 */
    visibility: visible;           /* 可见 */
}
/* 分类检索 */
.serch-class {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 20px 0;
}

.serch-item {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-width: 90px;
    padding: 6px 8px;
    border-radius: 6px;
    margin: 0 10px;
    font-size: 12px;
    cursor: pointer;
}

.on {
  min-width: 90px;
  padding: 6px 8px;
  position: relative;
  color: #e2e0e0;
  background-color: #1a7a3e;
}

.on::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 18px solid transparent; 
  border-right: 18px solid transparent; 
  border-top: 18px solid #1a7a3e; 
  top:20px;
  z-index: -1;
}

/* ===== 响应式设计 - 平板设备 ===== */
@media (max-width: 992px) {
    .ai-agent-widget {
        right: 20px;           /* 距离右边缩小到20px */
        bottom: 100px;         /* 距离底部缩小到100px */
    }
    
    .ai-agent-image {
        width: 120px;          /* 图片宽度缩小到120px */
    }
    
    /* 平板设备提示框样式调整 */
    .ai-agent-widget::before {
        font-size: 14px;       /* 字体缩小到14px */
        padding: 10px 15px;    /* 内边距缩小 */
    }
    
    .ai-agent-widget::after {
        border-width: 6px;     /* 箭头尺寸缩小 */
        margin-bottom: 10px;   /* 箭头与提示框间距调整 */
    }
}

/* ===== 响应式设计 - 手机设备 ===== */
@media (max-width: 768px) {
    .ai-agent-widget {
        right: 15px;           /* 距离右边进一步缩小到15px */
        bottom: 80px;          /* 距离底部缩小到80px */
    }
    
    .ai-agent-image {
        width: 90px;           /* 图片宽度缩小到90px，适配小屏幕 */
    }
    
    /* 手机设备提示框样式调整 */
    .ai-agent-widget::before {
        font-size: 12px;       /* 字体进一步缩小到12px */
        padding: 8px 12px;     /* 内边距进一步缩小 */
    }
    
    .ai-agent-widget::after {
        border-width: 5px;     /* 箭头尺寸进一步缩小 */
        margin-bottom: 8px;    /* 箭头与提示框间距调整 */
    }
}

/* ===== 响应式设计 - 超小屏幕设备 ===== */
@media (max-width: 576px) {
    .ai-agent-widget {
        right: 10px;           /* 距离右边缩小到10px */
        bottom: 70px;          /* 距离底部缩小到70px */
    }
    
    .ai-agent-image {
        width: 70px;           /* 图片宽度缩小到70px，避免占用过多屏幕空间 */
    }
    
    /* 超小屏幕提示框样式调整 */
    .ai-agent-widget::before {
        font-size: 11px;       /* 字体最小化到11px */
        padding: 6px 10px;     /* 内边距最小化 */
    }
    
    .ai-agent-widget::after {
        border-width: 4px;     /* 箭头尺寸最小化 */
        margin-bottom: 6px;    /* 箭头与提示框间距最小化 */
    }
}