:root {
    --deep-green: #07624e;
    --light-green: #2e7d32;
    --white: #ffffff;
    --gray: #f5f5f5;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

body {
    background-color: var(--white);
    color: #333;
    font-size: 16px;
    overflow-x: hidden;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    line-height: 1.5;
}

/* 顶部导航栏 */
.top-nav {
    background-color: var(--deep-green);
    color: var(--white);
    padding: 0.375rem 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    min-height: 60px;
}

.logo-container {
    width: 120px;
    height: 60px;
    margin-right: 2.5rem;
    margin-left: 3.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.logo-container > span {
    position: relative;
    white-space: nowrap;
    font-size: 18px;
    margin-left: 1rem;
    color: #ffffff;
}

.logo-container img {
    filter: grayscale(100%) contrast(1000%) brightness(0) invert(1);
    width: 40px;
    height: 40px;
    max-width: 100%;
    height: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin-left: 17rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #a5d6a7;
}

.navbar-right {
    display: flex;
    gap: 0.75rem;
    margin-left: auto;
    flex-wrap: wrap;
}

.btn {
    padding: 0.5rem 1.125rem;
    border-radius: 0.25rem;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

.btn-apply, .btn-login {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.btn-apply:hover, .btn-login:hover {
    background-color: rgba(255,255,255,0.1);
}

/* 登录弹窗 */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.login-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 0.75rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 24px;
    color: #333;
}

.login-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.login-tabs .tab {
    font-size: 16px;
    cursor: pointer;
    color: #999;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.login-tabs .tab.active {
    color: var(--light-green);
    border-bottom-color: var(--light-green);
}

.input-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.input-group input {
    width: 100%;
    height: 3rem;
    padding: 0 2.5rem 0 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    font-size: 16px;
}

.input-group .icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.input-group .clear-btn, .input-group .eye-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
}

.login-links {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 14px;
}

.login-links a {
    color: var(--light-green);
    text-decoration: none;
}

.agreement {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-bottom: 1.5rem;
}

.agreement a {
    color: var(--light-green);
    text-decoration: none;
}

.login-btn {
    width: 100%;
    height: 3rem;
    background: var(--light-green);
    color: var(--white);
    border: none;
    border-radius: 0.5rem;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.login-btn:hover {
    background: var(--deep-green);
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    color: #666;
}

/* banner容器顶部 */
.banner {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding-top: 60px;
    background: url("首页图.jpg") no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.banner-content {
    position: relative;
    z-index: 1;
    padding: 0 1.25rem;
    max-width: 100%;
    width: 100%;
    max-width: 800px;
}

.banner-content h1 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.banner-content p {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.banner-btn {
    background: #07624e;
    color: white;
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 0.25rem;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.banner-btn:hover {
    background: #034605;
}

/* 整体服务区块容器 */
.service-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 60px 20px;
    box-sizing: border-box;
}

/* 每个服务卡片 */
.service-card {
    background-color: #f5f7fa;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    width: 1200px;
    height: 450px;
    margin:0 auto;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* 左侧文字区域 */
.service-text {
    flex: 1;
    min-width: 300px;
}

/* 标题样式 */
.service-title {
    font-size: 35px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: -200px;
    justify-content: flex-start;
    text-align: left;
    width: 100%;
}

/* 描述样式 */
.service-desc {
    font-size: 20px;
    line-height: 1.6;
    color: #555;
    text-align: left;
    margin-left: 14px;
    padding-left: 0;
}

/* 绿色圆点装饰 */
.green-dot {
    width: 8px;
    height: 30px;
    background-color: #115e3d;
    border-radius: 4px;
}

/* 右侧媒体区域 */
.service-media {
    flex-shrink: 0;
    width: 550px;
}

.video-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.video-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* 播放按钮覆盖层 */
.play-overlay {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.video-duration {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2px 8px;
    border-radius: 4px;
}

/* 响应式适配 - 服务卡片 */
@media (max-width: 992px) {
    .service-card {
        flex-direction: column;
        text-align: center;
    }
    .service-media {
        width: 100%;
    }
}

/* 热点新闻 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    font-family: "Microsoft YaHei", sans-serif;
}
a { text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 页面整体容器 */
.page#news {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
}
.news-page { width: 100%; }

/* 顶部等高布局：轮播2/3 + 热点1/3 */
.news-top {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    height: 400px; /* 统一高度，可自行调整 */
    margin-top: 6rem;
}

/* 轮播图核心样式（滑动必备，不可修改） */
#carousel {
    flex: 2;
    height: 100%;
    position: relative;
    overflow: hidden; /* 隐藏溢出轮播项，核心 */
    border-radius: 8px;
}
#carouselWrapper {
    width: 100%;
    height: 100%;
    display: flex; /* 子项横向排列，核心 */
    transition: transform 0.5s ease; /* 平滑滑动过渡，核心 */
}
.carousel-item {
    width: 100%;
    height: 100%;
    flex-shrink: 0; /* 禁止收缩，保证单张占满100%，核心 */
    position: relative;
}
/* 轮播文字遮罩 */
.carousel-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
}

/* 轮播按钮 + 指示器样式 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    color: #fff;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    z-index: 99;
    transition: background 0.3s;
}
.carousel-btn.prev { left: 1rem; }
.carousel-btn.next { right: 1rem; }
.carousel-btn:hover { background: rgba(255,255,255,0.5); }

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 99;
}
.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.3s;
}
.carousel-dot.active { background: #fff; }

/* 热点头条样式（不变） */
/* 热点头条容器 */
.hot-headlines {
    flex: 1;
    height: 100%;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 标题栏：热点头条 + 换一换按钮 */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title h3 {
    font-size: 1.2rem;
    color: #222;
    margin: 0;
}

.refresh-btn {
    color: #999;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.refresh-btn:hover {
    color: #0A7361;
}

/* 热点列表 */
.hot-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* 热点列表项 */
.hot-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0.3rem 0;
}

/* 头条特殊样式 */
.hot-item.top {
    color: #e53935;
    font-weight: 500;
}

/* 序号渐变样式 */
.hot-item:nth-child(2) .item-index { color: #e53935; }
.hot-item:nth-child(3) .item-index { color: #ff7d00; }
.hot-item:nth-child(4) .item-index { color: #ffb800; }
.hot-item:nth-child(n+5) .item-index { color: #999; }

/* 序号 */
.item-index {
    width: 1.2rem;
    text-align: center;
    flex-shrink: 0;
    font-weight: bold;
}

/* 文本 */
.item-text {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #333;
}

/* 标签样式 */
.tag {
    font-size: 0.75rem;
    padding: 0.1rem 0.4rem;
    border-radius: 2px;
    flex-shrink: 0;
}

.tag.hot {
    background: #ffebeb;
    color: #e53935;
}

.tag.new {
    background: #e8f4ff;
    color: #4285f4;
}
/* 下方新闻列表样式（不变） */
.news-content { width: 100%; }
.news-list { display: flex; flex-direction: column; gap: 2rem; }
.news-item { display: flex; gap: 1.5rem; align-items: flex-start; }
.news-item img {
    width: 266px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 6px;
}
.news-info { flex: 1; }
.news-info h4 {
    font-size: 1.3rem;
    color: #222;
    margin-bottom: 0.8rem;
}
.news-info p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.read-more {
    color: #0A7361;
    font-size: 0.95rem;
}
.read-more:hover { text-decoration: underline; }

/* 响应式适配 */
@media (max-width: 768px) {
    .news-top { flex-direction: column; height: auto; }
    #carousel, .hot-headlines { width: 100%; height: 300px; }
    .news-item { flex-direction: column; }
    .news-item img { width: 100%; height: 250px; }
}
/* 本校动态 - 核心样式（删除重复） */
.campus-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    color: #333;
    padding-top: 50px;  /* 适配固定导航栏，保留不变 */

}

/* 轮播图核心样式 - 平滑滑动（仅修改width，保留固定高度400px/圆角/边距） */
.campus-carousel {
    position: relative;
    width: 100%; /* 保留，适配父容器 */
    height: 400px; /* 保留你要的固定高度，不修改 */
    overflow: hidden;
    border-radius: 8px;
    margin: 2rem 0;
}

/* 关键修改1：移除固定宽度calc(100%*3)，改为100%，适配JS百分比滑动 */
.carousel-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* 原calc(100%*3) → 改为100%，核心修改 */
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out; /* 保留原有滑动动画，和JS一致 */
}

/* 保留你所有原有样式，无修改（relative定位/遮罩父级） */
.carousel-item {
    position: relative;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

/* 保留原有object-fit: cover，图片自动按400px高度适配，不拉伸、不变形 */
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 核心适配属性，已保留，无需修改 */
}

/* 遮罩层/标题/描述：完全保留你原有样式，无任何修改 */
.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 2rem;
    box-sizing: border-box;
    z-index: 5;
}
.carousel-overlay h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    white-space: normal;
    overflow: visible;
    line-height: 1.3;
    margin-top: 0;
}
.carousel-overlay p {
    font-size: 1rem;
    opacity: 0.9;
    white-space: normal;
    line-height: 1.5;
    margin-bottom: 0;
}


/* 切换按钮：完全保留你原有样式（位置/大小/hover/层级），无修改 */
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    /*align-items: center;*/
    justify-content: center;
    transition: background-color 0.3s;
    z-index: 10;
    align-items: flex-start; /* 取消默认垂直居中，改为顶部对齐为基准 */
    padding-top: 3px; /* 向上偏移的核心：值越大，箭头越靠上（可改5px/12px等） */
}
.carousel-prev {
    left: 1rem;
}
.carousel-next {
    right: 1rem;
}
.carousel-prev:hover, .carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

/* 指示器：完全保留你原有样式（位置/大小/active状态），无修改 */
.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}
.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}
.indicator.active {
    background-color: white;
}
/* 三列内容区 */
.campus-content {
    display: grid;
    grid-template-columns: 1fr; /* 修改为单列布局 */
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.content-column {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 1000px; /* 限制最大宽度 */
    margin: 0 auto; /* 让区块在页面中水平居中 */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    border-bottom: 2px solid #0A7361;
    padding-bottom: 0.6rem;
}

.section-header h3 {
    color: #0A7361;
    margin: 0;
    font-size: 1.3rem;
}

.more-link {
    color: #0A7361;
    font-size: 0.9rem;
    text-decoration: none;
}

.more-link:hover {
    text-decoration: underline;
}

/* 新闻列表样式（保留原有，无修改） */
.news-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    list-style: none;
}

.news-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-list img {
    width: 266px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.news-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.6rem;
    color: #222;
}

.news-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

.read-more {
    color: #176c19;
    text-decoration: none;
    font-size: 16px;
}

.read-more:hover {
    text-decoration: underline;
}

/* 科研列表样式（完全对齐要闻列表格式，重写适配） */
.research-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 与要闻列表li样式完全一致，统一布局/间距/边框 */
.research-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

/* 最后一项取消边框/间距，和要闻保持一致 */
.research-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* 科研图片容器：尺寸/圆角/不挤压，完全匹配要闻图片 */
.research-list .icon {
    width: 266px;
    height: 200px;
    border-radius: 4px;
    flex-shrink: 0; /* 防止被文字挤压，固定尺寸 */
}

/* 科研图片：和要闻图片样式统一，封面裁剪+无间隙 */
.research-list .icon img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 同要闻，裁剪成封面效果，不拉伸 */
    display: block;    /* 消除图片默认底部间隙 */
    border-radius: 4px;/* 继承容器圆角，和要闻图片一致 */
}

/* 科研信息区：文字大小/颜色/边距，完全对齐要闻info */
.research-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.6rem; /* 同步要闻标题字号1.6rem */
    color: #222;
}

/* 科研描述文字：行高/间距/颜色，和要闻完全统一 */
.research-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5; /* 同步要闻行高，提升可读性 */
    margin-bottom: 20px; /* 同要闻，与阅读原文保持间距 */
}
/* 通知公告样式 */
/* 通知公告列表容器 */
.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 单个通知项：水平布局 */
.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}
.notice-item:hover {
    background-color: #f9f9f9;
}

/* 蓝色日期块 */
.notice-date {
    background-color: #0a7361;
    color: white;
    width: 60px;
    height: 70px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}
.notice-date .day {
    font-size: 1.5rem;
    line-height: 1;
}
.notice-date .month {
    font-size: 0.8rem;
    margin-top: 2px;
}

/* 通知内容区 */
.notice-content {
    flex: 1;
    min-width: 0;
}
.notice-content h4 {
    font-size: 1rem;
    color: #333;
    margin: 0 0 0.3rem 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.notice-desc {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

/* 保持原有专题专栏样式不变 */
.topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}
.topic-item {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s ease;
}
.topic-item:hover {
    opacity: 0.9;
}
/* 专题专栏样式 */
.topic-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.topic-item {
    display: block;
    padding: 1.2rem;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1.05rem;
    transition: background-color 0.3s ease;
}

.topic-item:hover {
    opacity: 0.9;
}


/* 资源库 */
.resource-page {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 80px;
}

.resource-sidebar {
    width: 100%;
    max-width: 426px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--gray);
    padding: 1.25rem;
    border-radius: 0.75rem;
    flex-shrink: 0;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--deep-green);
    font-size: 16px;
}

.filter-group select {
    width: 100%;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    background: var(--white);
    font-size: 16px;
}

.upload-btn {
    background: var(--light-green);
    color: var(--white);
    cursor: pointer;
    height: 3rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 16px;
    margin-top: 1rem;
}

.resource-list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.resource-item {
    height: 12.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray);
}

/* 搜索框：自适应 */
.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
    width: 100%;
}

.search-icon img {
    width: 1rem;
    height: 1rem;
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

/* 收藏/录音按钮 */
.save-btn {
    border: none;
    background: none;
    padding: 0;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.save-btn img {
    width: 1rem;
    height: 1rem;
    filter: grayscale(100%) brightness(80%);
    transition: filter 0.2s;
    max-width: 100%;
    height: auto;
}

.save-btn:hover img {
    filter: grayscale(0%) brightness(100%);
}

/* 输入框 */
.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
}

/* 清除按钮 */
.clear-btn {
    border: none;
    background: none;
    color: #9ca3af;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 智能体 */
.ai-agent-page {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    margin-top: 80px;
}

.ai-chat-container {
    height: 31.25rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-y: auto;
    background: var(--gray);
    min-height: 200px;
}

.ai-input-area {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ai-input-area input {
    flex: 1;
    min-width: 200px;
    height: 3rem;
    padding: 0 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e0e0e0;
    font-size: 16px;
}

.ai-input-area button {
    width: 100%;
    max-width: 100px;
    background: var(--light-green);
    color: var(--white);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 16px;
    flex-shrink: 0;
}
/*联系我们*/
/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
}

/* 页面容器 */
.page#contact {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #f8f9fa;
}

/* 顶部标题 */
.contact-header {
    text-align: center;
    margin-bottom: 50px;
    margin-top: 40px;
}
.contact-header h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 8px;
}
.contact-header p {
    color: #666;
    font-size: 1rem;
}

/* 联系卡片 */
.contact-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}
.contact-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 300px;
    text-align: center;
}
.card-icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #6c757d;
}
.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
}
.contact-card p {
    color: #666;
    font-size: 0.95rem;
}
.contact-card a {
    color: #52a675;
    text-decoration: none;
}
.contact-card a:hover {
    text-decoration: underline;
}

/* 留言反馈区 */
.feedback-section {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.feedback-form {
    flex: 1;
    /*min-width: 300px;*/
max-width: 600px;
    margin: 0 auto;
}
.form-title {
    color: #52a675;
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}
.feedback-form form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.feedback-form input,
.feedback-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}
.feedback-form input:focus,
.feedback-form textarea:focus {
    border-color: #52a675;
}
.submit-btn {
    width: fit-content;
    padding: 12px 30px;
    background-color: #52a675;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0 auto;
    display: block;
}
.submit-btn:hover {
    background-color: #428a5f;
}

/* 右侧图片 */
.feedback-image {
    flex: 0 0 400px;
    min-width: 300px;
}
.feedback-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .feedback-section {
        flex-direction: column;
        align-items: center;
    }
    .feedback-image {
        width: 100%;
        margin-top: 30px;
    }
}
/* 页脚 */
footer {
    background-color: var(--deep-green);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
    margin-top: 2.5rem;
    font-size: 14px;
    width: 100%;
}

/* 页面隐藏类 */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* 响应式断点适配 */
@media (max-width: 1200px) {
    .campus-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .content-column {
        padding: 1.8rem;
    }
    .news-list img {
        width: 120px;
        height: 90px;
    }
}

@media (max-width: 992px) {
    .nav-links {
        margin-left: 5rem;
        gap: 1.25rem;
    }
    .campus-content {
        grid-template-columns: 1fr;
    }
    .content-column {
        max-width: 750px;
        padding: 1.5rem;
        margin: 0 auto;
    }
    .news-list img {
        width: 100px;
        height: 75px;
    }
}

@media (max-width: 768px) {
    .top-nav {
        padding: 0.375rem 1rem;
    }
    .logo-container {
        margin-right: 1rem;
        margin-left: 1rem;
        width: 80px;
    }
    .nav-links {
        margin-left: 1rem;
        gap: 0.75rem;
    }
    .navbar-right {
        gap: 0.5rem;
    }
    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 12px;
    }
    .banner {
        min-height: 80vh;
    }
    .campus-carousel {
        height: 220px;
    }
    .carousel-overlay h2 {
        font-size: 1.2rem;
    }
    .carousel-overlay p {
        font-size: 0.9rem;
    }
    .news-list img {
        width: 80px;
        height: 60px;
    }
    .ai-input-area button {
        max-width: 100%;
        margin-top: 0.625rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: none;
    }
    .banner-content h1 {
        font-size: 1.5rem;
    }
}