* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    color: #494949;
    line-height: 1.6;
    background-color: #f5f5f5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.header {
    background: #8F4382;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 10px;
    border-radius: 5px;
    transition: all 0.3s;
    display: block;
}

.nav a:hover,
.nav a.active {
    background: #C48E5F;
    color: #fff;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #fff;
    min-width: 130px;
    width: max-content;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 8px;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
    padding: 10px 0;
    border: 1px solid #eee;
}

.dropdown-content::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border: 0.5rem solid transparent;
    border-bottom-color: #fff;
    border-bottom-color: #eee;
}

.dropdown-content a {
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    border-radius: 0;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
}

.dropdown-content a:hover {
    background: #C48E5F;
    color: #8F4382;
    padding-left: 25px;
}

.dropdown:hover .dropdown-content {
    display: block;
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.dropdown:hover .dropdown-content::after {
    transform: translateX(-50%) translateY(0);
}

.dropdown:hover .dropbtn {
    background: #C48E5F;
}

.dropbtn {
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    background: transparent;
    border-radius: 5px;
    transition: all 0.3s;
}

/* 焦点图轮播 */
.banner-section {
    position: relative;
    margin-bottom: 50px;
}

.banner-swiper {
    height: 600px;
}

.banner-swiper .swiper-slide {
    position: relative;
}

.banner-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
}

.banner-content h2 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInDown 1s;
}

.banner-content p {
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s;
}

.swiper-button-prev,
.swiper-button-next {
    color: #C48E5F; /* 从白色改为新主色 */
}

.swiper-pagination-bullet-active {
    background: #8F4382;
}

/* 学院特色 */
.features-section {
    padding: 60px 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-card h3 {
    font-size: 24px;
    color: #8F4382;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

/* 学院介绍 */
.intro-section {
    padding: 60px 0;
    background: #f9f9f9;
}

.intro-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.intro-text {
    flex: 1;
}

.intro-text h2 {
    font-size: 32px;
    color: #8F4382;
    margin-bottom: 20px;
}

.intro-text p {
    color: #666;
    margin-bottom: 15px;
    line-height: 2;
}

.intro-image {
    flex: 0 0 400px;
}

.intro-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.btn-more {
    display: inline-block;
    padding: 12px 30px;
    background: #8F4382;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: all 0.3s;
}

.btn-more:hover {
    background: #C48E5F; /* 使用辅助色 */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(153, 51, 101, 0.4);
}

/* 系部设置 */
.departments-section {
    padding: 60px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: #8F4382;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #8F4382;
}

.dept-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.dept-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.dept-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dept-img-text {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    z-index: 1;
}

.dept-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.dept-card:hover .dept-img img {
    transform: scale(1.1);
}

.dept-card h3 {
    font-size: 16px;
    margin: 20px 20px 10px;
    color: #333;
}

.dept-card h3 a {
    color: #333;
    text-decoration: none !important;
    transition: color 0.3s;
}

.dept-card h3 a:hover {
    color: #8F4382;
}

.dept-card p {
    font-size: 14px;
    padding: 0 20px 20px;
    color: #666;
    line-height: 1.6;
}

/* 校园新闻 */
.news-section {
    padding: 60px 0;
    /* background: #f9f9f9; */
}

.news-layout {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

/* 左侧特色图片 */
.news-featured {
    flex: 0 0 45%; /* 从55%调整为45% */
}

.news-featured-static {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    width: 100%;
}

.news-featured-carousel {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    width: 100%;
    position: relative;
}

.carousel-container {
    display: flex;
    width: 300%; /* 3 slides * 100% */
    animation: carousel 15s infinite;
}

.carousel-slide {
    width: 33.3333%; /* 100% / 3 slides */
    flex-shrink: 0;
}

@keyframes carousel {
    0%, 25% {
        transform: translateX(0);
    }
    33.33%, 58.33% {
        transform: translateX(-33.3333%);
    }
    66.66%, 91.66% {
        transform: translateX(-66.6666%);
    }
    100% {
        transform: translateX(0);
    }
}

.carousel-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #fff;
}

.news-featured-swiper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    width: 100%;
}

.news-featured-swiper .swiper-wrapper {
    width: 100%;
}

.news-featured-swiper .swiper-slide {
    width: 100%;
    flex-shrink: 0;
}

.featured-item {
    position: relative;
    width: 100%;
    height: 400px; /* 从500px调整为400px */
}

.featured-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 20px;
}

.featured-caption p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

/* 右侧新闻列表 */
.news-list-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    align-items: center; /* 垂直居中对齐 */
    line-height: 1.6; /* 增加行高样式 */
}

.news-item-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.news-number {
    flex: 0 0 70px;
    font-size: 36px;
    font-weight: bold;
    color: #C48E5F;
    line-height: 1;
    text-align: center; /* 水平居中 */
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直居中对齐内容 */
}

.news-content h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-content h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.news-content h4 a:hover {
    color: #8F4382;
}

.news-number .news-date {
    color: #999;
    font-size: 15px;
    margin-bottom: 8px;
    text-align: center; /* 日期居中对齐 */
    line-height: 1.4; /* 增加日期行高 */
    border-top: 1px solid #aea3a3; /* 在.news-date上方添加横线 */
    padding-top: 5px; /* 添加一些顶部内边距 */
    margin-top: 5px; /* 添加一些顶部外边距 */
}

.news-content .news-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-content .news-desc a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.news-content .news-desc a:hover {
    color: #8F4382;
}

.news-more {
    text-align: center;
    margin-top: 30px;
}

.btn-more-news {
    display: inline-block;
    padding: 12px 40px;
    background: #8F4382;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
    font-size: 14px;

}

.btn-more-news:hover {
    background: #C48E5F; /* 使用辅助色 */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(153, 51, 101, 0.4);
}

/* 数据统计 */
.stats-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #C48E5F 0%, #8F4382 100%);
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.stat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-number::after {
    content: '%';
    font-size: 32px;
    margin-left: 5px;
}

.stat-label {
    font-size: 18px;
    opacity: 0.9;
}

/* 荣誉展示 */
.honors-section {
    padding: 60px 0;
    background: #fff;
}

.honors-content {
    text-align: center;
}

.honors-content ul {
    list-style: none;
    margin: 30px 0;
}

.honors-content li {
    font-size: 20px;
    color: #666;
    padding: 15px 0;
    border-bottom: 1px dashed #ddd;
}

.honors-content li:last-child {
    border-bottom: none;
}

/* 师资队伍 */
.teachers-section {
    padding: 60px 0;
    background: #f9f9f9;
}

.teachers-swiper {
    padding: 40px 0; /* 从20px 0调整为40px 0 */
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.teacher-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.teacher-img {
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.teacher-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.teacher-card:hover .teacher-img img {
    transform: scale(1.1);
}

.teacher-card h3 {
    padding: 20px 20px 0;
    font-size: 16px;
    text-align: center;
    color: #494949;
}

.teacher-card h3 a {
    color: #333;
    text-decoration: none !important;
    transition: color 0.3s;
}

.teacher-card h3 a:hover {
    color: #8F4382;
}

.teacher-card p {
    padding: 0 20px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.teachers-more {
    text-align: center;
    margin-top: 30px;
}

.btn-more-teachers {
    display: inline-block;
    padding: 12px 40px;
    background: #8F4382;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-more-teachers:hover {
    background: #C48E5F; /* 使用辅助色 */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(153, 51, 101, 0.4);
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0px 20px 0px; 
}

/* 专业设置轮播 */
.departments-swiper {
    padding: 40px 0; /* 增加padding使高度更合适 */
}

/* 项目式教学 */
.projects-section {
    padding: 60px 0;
    background: #fff;
}

.projects-swiper {
    padding: 40px 0; /* 从20px 0调整为40px 0 */
}

.project-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.project-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-card h4 {
    padding: 20px;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.project-card h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.project-card h4 a:hover {
    color: #8F4382;
}

.projects-more {
    text-align: center;
    margin-top: 30px;
}

.btn-more-projects {
    display: inline-block;
    padding: 12px 40px;
    background: #8F4382;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-more-projects:hover {
    background: #C48E5F; /* 使用辅助色 */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(153, 51, 101, 0.4);
}

/* 底部 */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 50px;
}

.footer-info {
    flex: 1;
    -webkit-text-size-adjust: 100%; /* 防止iOS Safari调整文本大小 */
}

.footer-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-info p {
    margin-bottom: 20px;
    opacity: 0.9;
    color: #fff; /* 明确设置颜色 */
    -webkit-font-smoothing: antialiased; /* Safari字体渲染优化 */
}

/* 页脚中的链接样式 */
.footer-info p a,
.footer-info a {
    color: #fff;
    text-decoration: none;
}

.footer-info p a:hover,
.footer-info a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer-links h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
    display: block;
    padding: 5px 0;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #8F4382;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.back-to-top:hover {
    background: #C48E5F;
    transform: translateY(-3px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* 向上的箭头图标 */
.arrow-up {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-left: 2px solid #fff;
    border-top: 2px solid #fff;
    transform: rotate(45deg);
}

/* 新闻详情页面特定样式 */
.news-detail-section {
    padding: 40px 0;
    background: #fff;
}

.news-detail-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd6d6;
    padding: 50px 0;
}

.news-detail-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #999;
    font-size: 14px;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.news-detail-content p {
    margin-bottom: 20px;
}
/* 覆盖CMS系统添加的内联样式，确保图片响应式显示 */
.news-detail-content img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
}
.news-detail-content p img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
}
.news-detail-image {
    width: 100%;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

.news-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.news-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #8F4382;
    font-weight: 500;
    transition: all 0.3s;
    padding: 10px 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    background: #fff;
}

.news-nav-link:hover {
    color: #C48E5F;
    border-color: #8F4382;
    background: #f9f9f9;
    transform: translateY(-2px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-nav-link:first-child span:first-child {
    font-size: 18px;
    font-weight: bold;
}

.news-nav-link:last-child span:last-child {
    font-size: 18px;
    font-weight: bold;
}

.back-to-list {
    display: inline-block;
    margin-top: 30px;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: #8F4382;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.back-to-list:hover {
    background: #C48E5F;
    transform: translateY(-2px);
}

/* 师资队伍列表页面特定样式 */
.teachers-list-section {
    padding: 40px 0;
    /* background: #f9f9f9; */
}

/* 通知公告列表页面特定样式 */
.sub-time {
    flex: 0 0 120px;
    text-align: center;
    padding: 10px;
    border: 1px solid #f0e9f0;
    border-radius: 8px;
    background: #fff;
}

.sub-time b {
    display: block;
    font-size: 36px;
    color: #8F4382;
    line-height: 1;
}

.sub-time span {
    display: block;
    font-size: 18px;
    color: #666;
    margin-top: 5px;
    border-top: 1px solid #f0e9f0; /* 在.news-date上方添加横线 */
    padding-top: 5px; /* 添加一些顶部内边距 */
    margin-top: 5px; /* 添加一些顶部外边距 */
}

/* 新闻列表页面特定样式 */
.news-list {
    margin-top: 30px;
}

.news-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    display: flex;
    gap: 20px;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.news-thumbnail {
    flex: 0 0 300px;
}

.news-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.news-text {
    flex: 1;
}

.news-item h3 {
    margin: 0 0 10px 0;
}

.news-item h3 a {
    color: #494949;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    transition: color 0.3s;
}

.news-item h3 a:hover {
    color: #8F4382;
}

.news-date {
    color: #8F4382;
    font-size: 14px;
    margin: 0 0 10px 0;
    
}

.news-desc {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.news-desc a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.news-desc a:hover {
    color: #8F4382;
}

/* 动画 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
/* 平板端: 768px - 1024px, 每行2列 */
@media (max-width: 1024px) and (min-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
    
    .nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #8F4382;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 10px 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .nav ul.show {
        display: flex;
    }
    
    .nav ul li {
        width: 100%;
        text-align: center;
        position: relative;
    }
    
    .nav a {
        display: block;
        padding: 15px;
        border-radius: 0;
    }
  /* Logo区域响应式调整 */
  .logo img {
      height: 50px; /* 在平板端适当减小logo高度 */
      width: auto; /* 保持宽高比 */
  }
    
    /* 移动端下拉菜单 */
    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        background: rgba(255,255,255,0.1);
        margin-left: 20px;
        border-radius: 0;
        border: none;
        min-width: auto;
        padding: 0;
        transform: none;
        opacity: 1;
        transition: none;
    }
    
    .dropdown-content a {
        padding: 10px 16px;
        text-align: left;
        color: #fff;
        font-size: 14px;
    }
    
    .dropdown-content a:hover {
        background: rgba(255,255,255,0.1);
        color: #fff;
        padding-left: 20px;
    }
    
    .dropdown:hover .dropdown-content {
        display: none; /* 移动端不使用hover */
    }
    
    .dropdown.show .dropdown-content {
        display: block; /* 移动端使用点击展开 */
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-layout {
        flex-direction: column;
    }
    
    .news-featured {
        flex: 1;
    }
    
    .featured-item {
        height: 400px;
    }
    
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }
    
    .news-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .news-nav-link {
        justify-content: center;
        text-align: center;
    }
}

/* 横幅区域样式 */
.ban {
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end; /* 靠下对齐 */
    justify-content: center;
}

.ban .container {
    color: #fff;
    z-index: 1;
    background: rgba(216, 155, 78, 0.49);
    padding: 20px 40px;
    width: 100%;
    max-width: 1400px;
}

.ban .wp {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.ban .tit {
    font-size: 36px;
    margin-bottom: 0;
    font-weight: bold;
    flex: 1;
    text-align: left;
}

.ban .cur {
    font-size: 16px;
    text-align: right;
    white-space: nowrap;
    margin-left: 20px; /* 与标题保持间距 */
}

.ban .cur a {
    color: #fff;
    text-decoration: none;
}

.ban .cur a:hover {
    color: #C48E5F;
}

.ban .cur i {
    margin: 0 10px;
}

/* 汉堡菜单 */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* 手机端: < 768px, 每行1列 */
@media (max-width: 767px) {
    .hamburger-menu {
        display: flex;
    }
    
    .nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #8F4382;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 10px 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .nav ul.show {
        display: flex;
    }
    
    .nav ul li {
        width: 100%;
        text-align: center;
        position: relative;
    }
    
    .nav a {
        display: block;
        padding: 15px;
        border-radius: 0;
    }
        /* Logo区域响应式调整 */
.logo img {
        height: 35px; /* 在手机端减小logo高度 */
        width: auto; /* 保持宽高比 */
    }
    
    /* 学院特色手机端响应式调整 - 每行2列 */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .feature-card h3 {
        font-size: 20px;
    }
    /* 学院介绍手机端响应式调整 - 上下排列 */
    .intro-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .intro-image {
        flex: 1;
        width: 100%;
    }
    
    /* 校园新闻手机端响应式调整 - 上下排列 */
    .news-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .news-featured {
        flex: 1;
    }
/* 页脚手机端响应式调整 - 确保文本颜色一致 */
.footer-info p {
    color: #fff;
    opacity: 0.9;
}
    /* 新闻列表手机端响应式调整 */
    .news-item {
        flex-direction: column;
        padding: 15px;
    }
    
    .news-thumbnail {
        flex: 0 0 auto;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .news-thumbnail img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    .news-text {
        flex: 1;
    }
    /* 新闻详情图片响应式调整 */
    .news-detail-image {
        margin: 15px 0;
    }
    
    .news-detail-image img {
        max-width: 100%;
        height: auto;
    }
    /* 分页手机端响应式调整 */
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
        margin: 20px 0;
    }
    
    .pagination a {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .pagination .page {
        display: none;
    }
    
    .pagination .page.active,
    .pagination .prev,
    .pagination .next {
        display: inline-block;
    }
    /* 覆盖CMS系统添加的内联样式，确保手机端图片响应式显示 */
    .news-detail-content p img {
        max-width: 100% !important;
        height: auto !important;
        width: auto !important;
    }
    /* 覆盖CMS系统添加的内联样式，确保手机端图片响应式显示 */
    .news-detail-content span img {
        max-width: 100% !important;
        height: auto !important;
        width: auto !important;
    }
    /* 移动端下拉菜单 */
    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        background: rgba(255,255,255,0.1);
        margin-left: 20px;
        border-radius: 0;
        border: none;
        min-width: auto;
        padding: 0;
        transform: none;
        opacity: 1;
        transition: none;
    }
    
    .dropdown-content a {
        padding: 10px 16px;
        text-align: left;
        color: #fff;
        font-size: 14px;
    }
    
    .dropdown-content a:hover {
        background: rgba(255,255,255,0.1);
        color: #fff;
        padding-left: 20px;
    }
    
    .dropdown:hover .dropdown-content {
        display: none; /* 移动端不使用hover */
    }
    
    .dropdown.show .dropdown-content {
        display: block; /* 移动端使用点击展开 */
    }
    
    .banner-swiper {
        height: 400px;
    }
    
    .banner-content h2 {
        font-size: 32px;
    }
    
    .banner-content p {
        font-size: 18px;
    }
    
    .intro-content {
        flex-direction: column;
    }
    
    .intro-image {
        flex: 1;
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }
    
    .news-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .news-nav-link {
        justify-content: center;
        text-align: center;
        padding: 15px;
    }
    
    .news-nav-link span {
        display: block;
        width: 100%;
    }
    /* 新闻导航手机端进一步优化 */
    .news-nav-link {
        padding: 12px;
        font-size: 14px;
    }

    .news-nav-link:first-child span:first-child,
    .news-nav-link:last-child span:last-child {
        font-size: 16px;
    }
    /* 横幅区域手机端响应式调整 */
    .ban {
        height: 200px;
    }
    
    .ban .container {
        padding: 15px 20px;
    }
    
    .ban .tit {
        font-size: 28px;
    }
    
    .ban .cur {
        font-size: 14px;
    }
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    gap: 10px;
    list-style: none;
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    text-decoration: none;
    color: #494949;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #8F4382;
    color: #fff;
    border-color: #8F4382;
}

.pagination .active {
    background: #8F4382;
    color: #fff;
    border-color: #8F4382;
}
.pagination .active a {
    background: #8F4382;
    color: #fff;
    border-color: #8F4382;
}

.pagination .prev,
.pagination .next {
    font-weight: bold;
}
/* 专业设置列表样式 */
.majors-list-section {
    padding: 40px 0;
}

.majors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.major-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.major-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.major-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.major-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.major-card:hover .major-img img {
    transform: scale(1.1);
}

.major-card h3 {
    padding: 20px 20px 0;
    font-size: 20px;
    text-align: center;
    color: #494949;
}

.major-card h3 a {
    color: #333;
    text-decoration: none !important;
    transition: color 0.3s;
}

.major-card h3 a:hover {
    color: #8F4382;
}

.major-card p {
    padding: 0 20px 20px;
    text-align: center;
    color: #999;
}

/* 平板端响应式调整 */
@media (max-width: 1024px) and (min-width: 768px) {
    .majors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .major-img {
        height: 180px;
    }
}

/* 手机端响应式调整 */
@media (max-width: 767px) {
    .majors-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .major-img {
        height: 200px;
    }
    
    .major-card h3 {
        font-size: 18px;
    }
}
