/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

a {
    text-decoration: none;
}

a:hover {
    color: #e70101;
}

img {
    border: none;
    text-indent: 0px;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f7f3f0;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.clear {
    clear: both;
}

/* 顶部导航样式 */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top {
    height: 32px;
    background: #265119;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.header-content-wrapper {
    max-width: 1500px;
    width: 85%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header-info {
max-width: 1500px;
width: 75%;
    margin: 0 auto;
    color: #fff;
    font-size: 14px;
    text-align: right;
}

@media screen and (max-width:800px)
 { 
 .xidinggepc{ display:none;}

}
@media screen and (min-width:800px)
 { 
 .xidinggeyidong{ display:none;}

}

/* 移动端顶部文字居中 */
@media (max-width: 992px) {
    .header-top {
        justify-content: center;
        padding-right: 0;
        width: 100%;
        max-width: none;
    }
    
    .header-info {
        
		max-width: 992px;
width: 75%;
    margin: 0 auto;
    color: #fff;
    font-size: 14px;
    text-align: right;
    }
}

.header-main {
    padding: 15px 0;
}

.header-container {
    max-width: 1500px; /* 增加宽度 */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 手机端header间距调整 */
@media (max-width: 992px) {
    .header-container {
        gap: 10px;
    }
}

.logo {
    flex-shrink: 0;
}

.logo img {
    max-width: 531px;
    max-height: 100px;
    width: auto;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    object-fit: contain;
}

/* 桌面端导航 */
.desktop-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: -25px; /* 让两行菜单更紧凑，从-10改为-25 */
}

.nav-row {
    display: flex;
    justify-content: flex-end;
}

.nav-row:first-child {
    margin-bottom: -7px; /* 调整到合适的间距，稍微大一点 */
}

.nav-row:last-child {
    position: relative;
    left: -45px; /* 向左移动45px来对齐菜单项 */
}

.nav-row ul {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.desktop-nav ul li {
    text-align: center;
}

.desktop-nav ul li a {
    display: block;
    color: #666;
    font-size: 16px;
    padding: 10px 18px 8px 18px; /* 减少底部内边距让下划线上移 */
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    z-index: 10;
}

.desktop-nav ul li a:hover {
    border-bottom: 3px solid #0c9c78;
    color: #0c9c78;
}

/* 下拉菜单样式 - 不影响一级菜单布局 */
.has-dropdown {
    position: relative;
}

.has-dropdown > a::after {
    content: '▼';
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 120px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #e8f5e8;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    display: block;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    background: transparent;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background: #f0f7ee;
    color: #265119;
}

/* 修复第二行下拉菜单位置 - 向下展开而不是向上 */
.nav-row:last-child .dropdown-menu {
    top: 100%;
    bottom: auto;
}

/* 响应式处理 */
@media (max-width: 992px) {
    .dropdown-menu {
        display: none !important;
    }
    
    .has-dropdown > a::after {
        display: none;
    }
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #265119;
    cursor: pointer;
    padding: 10px 3px 10px 10px;
    z-index: 1001;
}

/* 移动端导航菜单 */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    transform: translateX(0);
    opacity: 0;
    visibility: hidden;
}

.mobile-nav.active {
    right: 0;
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2); /* 调试时增加阴影深度 */
}

/* 调试用的遮罩层 */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-header {
    background-color: #265119;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
}

.mobile-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.mobile-nav-menu {
    padding: 20px 0;
}

.mobile-nav-menu li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #333;
    font-size: 16px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.mobile-nav-menu li a:hover {
    background-color: #f0f7ee;
    border-left: 4px solid #399210;
    color: #399210;
}

.mobile-nav-menu li a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* 轮播图 */
.banner-section {
    position: relative;
    height: 678px; /* 增加60px */
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.banner-dots {
    display: flex;
    gap: 12px;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 8px 15px;
    border-radius: 20px;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dot.active {
    background-color: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

/* 主要内容容器 */
.container {
    max-width: 1500px; /* 增加宽度 */
    width: 85%;
    margin: 50px auto 0px;
    flex: 1;
}

.main-row {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
}

/* 左侧图片切换区域 */
.image-slider {
    flex: 0 0 calc(55% - 12.5px);
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    height: 420px;
}

.slider-container {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px;
    color: white;
}

.slide-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.slide-link {
    color: white;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* 小圆点放在图片上 */
.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.slider-dots {
    display: flex;
    gap: 12px;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 8px 15px;
    border-radius: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

/* 右侧新闻列表区域 */
.news-sidebar {
    flex: 0 0 calc(45% - 12.5px);
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.news-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #399210;
    background-color: #f9f9f9;
}

.news-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
}

.news-title i {
    margin-right: 8px;
}



.more-link {
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}

.more-link:hover {
    color: #399210;
}

.news-list {
    list-style: none;
    padding: 0;
}

.news-item {
    padding: 12px 20px;
    border-bottom: 1px dashed #eee;
    transition: background-color 0.2s;
}

/* 校务公开模块新闻标题高度调整 */
.news-sidebar .news-item {
    padding: 13px 20px;
}

.news-item:hover {
    background-color: #f9f9f9;
}

.news-item:last-child {
    border-bottom: none;
}

.news-link {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    color: #333;
}

.news-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
}

.news-date {
    color: #999;
    font-size: 13px;
    white-space: nowrap;
}

/* 下方六个新闻模块 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.news-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.card-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
}

.card-title i {
    margin-right: 7px;
}

/* 校务信息 - 顶部渐变条 */
.news-card:nth-child(1) .card-header {
    border-top: 4px solid #399210;
    background: linear-gradient(to right, #f9f9f9, #e8f5e8);
}



/* 党群工作 - 红色主题 */
.news-card:nth-child(2) .card-header {
    border-top: 4px solid #c62828;
    background: linear-gradient(to right, #f9f9f9, #ffebee);
}



/* 教师发展 - 蓝色主题 */
.news-card:nth-child(3) .card-header {
    border-top: 4px solid #1565c0;
    background: linear-gradient(to right, #f9f9f9, #e3f2fd);
}



/* 教育科研 - 紫色主题 */
.news-card:nth-child(4) .card-header {
    border-top: 4px solid #6a1b9a;
    background: linear-gradient(to right, #f9f9f9, #f3e5f5);
}



/* 学生发展 - 橙色主题 */
.news-card:nth-child(5) .card-header {
    border-top: 4px solid #ef6c00;
    background: linear-gradient(to right, #f9f9f9, #fff3e0);
}



/* 德育天地 - 绿色主题 */
.news-card:nth-child(6) .card-header {
    border-top: 4px solid #2e7d32;
    background: linear-gradient(to right, #f9f9f9, #e8f5e9);
}



/* 新闻列表样式调整 */
.news-card .news-list {
    padding: 10px 0;
}

.news-card .news-item {
    padding: 12px 20px;
    position: relative;
}

/* 校务信息 - 左侧小圆点 */
.news-card:nth-child(1) .news-item::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #399210;
    border-radius: 50%;
}

.news-card:nth-child(1) .news-item {
    padding-left: 25px;
}

/* 党群工作 - 左侧小方块 */
.news-card:nth-child(2) .news-item::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #c62828;
}

.news-card:nth-child(2) .news-item {
    padding-left: 25px;
}

/* 教师发展 - 左侧竖线 */
.news-card:nth-child(3) .news-item {
    border-left: 3px solid #1565c0;
    padding-left: 17px;
}

/* 教育科研 - 图标样式 */
.news-card:nth-child(4) .news-item::before {
    content: '◆';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #6a1b9a;
    font-size: 18px;
}

.news-card:nth-child(4) .news-item {
    padding-left: 25px;
}

/* 学生发展 - 数字序号 */
.news-card:nth-child(5) {
    counter-reset: item;
}

.news-card:nth-child(5) .news-item {
    counter-increment: item;
    padding-left: 45px;
}

.news-card:nth-child(5) .news-item::before {
    content: counter(item);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-color: #ef6c00;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 德育天地 - 特殊图标 */
.news-card:nth-child(6) .news-item::before {
    content: '❀';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #2e7d32;
    font-size: 12px;
}

.news-card:nth-child(6) .news-item {
    padding-left: 25px;
}

/* 底部图片滚动模块 */
.image-scroll-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #399210;
}

.section-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 22px;
    margin-right: 20px;
    background-color: #399210;
    border-radius: 2px;
}

.image-scroll-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    overflow: hidden;
    position: relative;
}

.image-scroll-wrapper {
    display: flex;
    gap: 20px;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.image-scroll-item {
    flex: 0 0 auto;
    width: 220px; /* 220px的1.33倍，增加三分之一 */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.image-scroll-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.image-scroll-item img {
    width: 100%;
    height: 286px; /* 150px的1.33倍，增加三分之一 */
    object-fit: cover;
    display: block;
}

.image-scroll-item1 {
    flex: 0 0 auto;
    width: 300px; /* 220px的1.33倍，增加三分之一 */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.image-scroll-item1:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.image-scroll-item1 img {
    width: 100%;
    height: 225px; /* 150px的1.33倍，增加三分之一 */
    object-fit: cover;
    display: block;
}

/* 名师风采第二版(图片尺寸与校园风采一致) */
.image-scroll-item2 {
    flex: 0 0 auto;
    width: 270px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.image-scroll-item2:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.image-scroll-item2 img {
    width: 100%;
    height: 202.5px;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 10px;
    color: white;
    font-size: 14px;
    text-align: center;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.image-scroll-container:hover .image-scroll-wrapper {
    animation-play-state: paused;
}

/* 学校简介与视频模块 */
.intro-video-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.intro-video-row {
    display: flex;
    gap: 25px;
}

.intro-card {
    flex: 0 0 calc(50% - 12.5px);
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 505px; /* 再增加20px，总共增加40px */
}

.intro-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #399210;
}

.intro-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
}

.intro-title::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 22px;
    margin-right: 10px;
    background-color: #399210;
    border-radius: 2px;
}

.intro-content {
    flex: 1;
    line-height: 1.8;
    color: #555;
}

.intro-content p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.video-card {
    flex: 0 0 calc(50% - 12.5px);
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 505px; /* 再增加20px，总共增加40px */
}

.video-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #399210;
}

.video-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
}

.video-title::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 22px;
    margin-right: 10px;
    background-color: #399210;
    border-radius: 2px;
}

.video-container {
    flex: 1;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    background-color: #000;
}

.video-container video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s;
}

.video-overlay.hidden {
    opacity: 0;
}

.play-button {
    width: 70px;
    height: 70px;
    background-color: rgba(57, 146, 16, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
    position: relative;
}

.play-button:hover {
    transform: scale(1.1);
    background-color: rgba(57, 146, 16, 1);
}

.play-button::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

.pause-button {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-container:hover .pause-button {
    opacity: 1;
}

.pause-button::before,
.pause-button::after {
    content: '';
    display: block;
    width: 4px;
    height: 16px;
    background-color: white;
    margin: 0 2px;
}

/* 校园生活展示模块 */
.campus-life-section {
    margin-top: 40px; /* 恢复原来的边距 */
    margin-bottom: 15px; /* 恢复原来的边距 */
}

.campus-life-row {
    display: flex;
    gap: 25px;
    align-items: stretch; /* 确保左右两栏高度一致 */
}

.life-images-card {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.life-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    height: 100%;
    align-items: center; /* 垂直居中对齐 */
    justify-items: center; /* 水平居中对齐 */
}

.life-image-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    aspect-ratio: 4/3; /* 改为4:3比例，更宽一些 */
    display: flex;
    align-items: center; /* 图片在容器内垂直居中 */
    justify-content: center; /* 图片在容器内水平居中 */
}

.life-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    border-color: #399210;
}

.life-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 8px;
    color: white;
    font-size: 12px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.life-image-item:hover .image-caption {
    opacity: 1;
}

.life-intro-card {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直居中 */
    align-items: center; /* 水平居中 */
    position: relative;
}

.life-intro-header {
    margin-bottom: 20px;
}

.life-intro-title {
    font-size: 26px;
    font-weight: bold;
    color: #399210;
    margin-bottom: 10px;
    display: inline-block;
}

.life-intro-content {
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
    margin-left: 20px; /* 左边距增加20px */
    margin-right: 20px; /* 右边距增加20px */
    font-size: 16px;
    text-align: left; /* 文字内容居中对齐 */
}

.life-detail-btn {
    display: inline-block;
    background-color: #399210;
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(57, 146, 16, 0.3);
    align-self: center; /* 按钮也居中对齐 */
}

.life-detail-btn:hover {
    background-color: #2e7a0d;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(57, 146, 16, 0.4);
}

.life-detail-btn::after {
    content: ' →';
    font-size: 18px;
    margin-left: 5px;
}

/* 友情链接模块 */
.friend-links-section {
    margin-top: 40px;
    margin-bottom: -15px; /* 再减少20px间距 */
}

.friend-links-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 25px;
}

.friend-links-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #399210;
    display: flex;
    align-items: center;
}

.friend-links-title::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 22px;
    margin-right: 10px;
    background-color: #399210;
    border-radius: 2px;
}

.friend-links-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
}

.friend-link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
    height: 80px;
}

.friend-link-item:hover {
    transform: translateY(-5px);
    background-color: #f0f7ee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.friend-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.friend-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 二维码模块 */
.qr-code-section {
    margin-top: 18px;
    margin-bottom: 9px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.qr-code-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 50px 40px;
}

.qr-code-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #eaeaea;
    padding: 140px 40px 140px 40px;
    border-radius: 0;
    max-width: 1500px;
    margin: 0 auto;
}

.qr-code-images {
    display: flex;
    flex-direction: column;
    gap: 35px;
    flex: 0 0 60%;
    margin-left: 40px;
}

.qr-code-row {
    display: flex;
    gap: 35px;
}

/* 第一行3个，左对齐 */
.qr-code-row:first-child {
    justify-content: flex-start;
}

/* 第二行2个，居中显示 */
.qr-code-row:last-child {
    justify-content: flex-start;
    padding-left: 0;
}

.qr-code-images img {
    width: 220px;
    height: 230px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    padding: 15px;
}

.qr-code-images img:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.qr-code-info {
    flex: 1;
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 0;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.qr-code-info h3 {
    font-size: 38px;
    color: #FF6B35;
    margin-bottom: 40px;
    margin-top: 0;
    font-weight: bold;
    line-height: 1.5;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
    margin-top: 0;
    font-size: 22px;
    line-height: 2;
}

.info-item .icon {
    margin-right: 15px;
    font-size: 20px;
    min-width: 24px;
}

/* 页脚 */
.footer {
    background-color: #265119;
    color: white;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-content {
    max-width: 1500px; /* 增加宽度 */
    width: 85%;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 14px; /* 电脑端第一行字号 */
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-info {
    font-size: 14px; /* 电脑端第二行字号 */
    color: #ccc;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 1550px) {
    .container, .header-container, .footer-content {
        width: 90%;
    }
    
    .desktop-nav ul {
        gap: 2px;
    }
    
    .desktop-nav ul li a {
        padding: 10px 12px;
        font-size: 14px;
    }
}

@media (max-width: 1200px) {
    .friend-links-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .desktop-nav ul li a {
        padding: 10px 10px;
        font-size: 13px;
    }

    .qr-code-container {
        padding: 30px 20px;
    }

    .qr-code-images {
        gap: 15px;
    }

    .qr-code-row {
        gap: 15px;
    }

    .qr-code-images img {
        width: 110px;
        height: 120px;
    }
    
    .qr-code-info {
        order: 1;
        padding-left: 0;
        text-align: center;
        margin-bottom: 25px;
    }
    
    .qr-code-info h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .info-item {
        justify-content: center;
        font-size: 14px;
        margin-bottom: 10px;
    }
}

@media (max-width: 992px) {
    .container, .header-container, .footer-content {
        width: 95%;
    }

    .logo img {
        max-width: 450px;
        max-height: 85px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .desktop-nav {
        display: none;
    }

    /* 移动端二维码 - 垂直布局 */
    .qr-code-content {
        flex-direction: column;
        padding: 30px 25px;
    }

    .qr-code-info {
        padding-left: 0;
        padding-top: 20px;
        text-align: center;
    }

    .info-item {
        justify-content: center;
    }

    .qr-code-info h3 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .info-item {
        justify-content: center;
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .logo img {
        height: 80px;
    }
    
    .main-row {
        flex-direction: column;
    }
    
    .image-slider, .news-sidebar {
        flex: 1 1 100%;
        width: 100%;
    }
    
    .image-slider {
        height: 300px;
    }
    
    .qr-code-container {
        padding: 15px 15px 25px 15px;
    }
    
    .banner-section {
        height: 400px;
    }
    
    .image-scroll-item {
        width: 240px; /* 180px的1.33倍 */
    }
    .image-scroll-item1 {
        width: 240px; /* 180px的1.33倍 */
    }
    .image-scroll-item2 {
        width: 270px; /* 从240px增加到270px */
    }
    .image-scroll-item2 img {
        width: 270px;
        height: 202.5px;
    }
    .image-scroll-item1 img {
        width: 240px; /* 180px的1.33倍 */
        height:180px;
    }
    
    .intro-video-row, .campus-life-row {
        flex-direction: column;
    }
    
    .intro-card, .video-card, .life-intro-card, .life-images-card {
        flex: 1 1 100%;
    }
    
    .life-images-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .friend-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .qr-code-container {
        padding: 15px 15px 25px 15px;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .slider-container, .banner-section {
        height: 300px;
    }
    
    .image-scroll-item {
        width: 213px; /* 160px的1.33倍 */
    }
    .image-scroll-item1 {
        width: 240px; /* 160px的1.33倍 */
    }
    .image-scroll-item2 {
        width: 270px; /* 从240px增加到270px */
    }
    .image-scroll-item2 img {
        width: 270px;
        height: 202.5px;
    }
    .image-scroll-item1 img {
        width: 240px; /* 180px的1.33倍 */
        height:180px;
    }
    
    .life-images-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
    
    .friend-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .qr-code-container {
        padding: 15px 15px 25px 15px;
    }
}

@media (max-width: 576px) {
    .container, .header-container, .footer-content {
        width: 100%;
        padding: 0 15px;
    }

    .header-info {
        font-size: 12px;
    }

    .logo img {
        height: 60px;
    }

    .news-header, .card-header {
        padding: 12px 15px;
    }

    .qr-code-container {
        padding: 15px 15px 25px 15px;
    }

    /* 移动端二维码优化 - 3列布局 */
    .qr-code-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .qr-code-images img {
        width: 90px;
        height: 100px;
        padding: 5px;
    }

    /* 第二行只有2个图片时居中显示 */
    .qr-code-row:last-child {
        justify-content: center;
    }
}
    
    .qr-code-content {
        flex-direction: column;
        padding: 25px 20px;
    }
    
    .qr-code-images {
        order: 2;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-top: -8px;
    }
    
    .qr-code-images img {
        width: 100px;
        height: 110px;
    }
    
    .qr-code-info {
        order: 1;
        padding-left: 0;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .qr-code-info h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .info-item {
        justify-content: center;
        font-size: 14px;
        margin-bottom: 6px;
        line-height: 1.3;
    }
    
    .news-item {
        padding: 10px 15px;
    }
    
    .slider-container, .banner-section {
        height: 250px;
    }
    
    .image-scroll-item {
        width: 186px; /* 140px的1.33倍 */
    }
    .image-scroll-item1 {
        width: 240px; /* 140px的1.33倍 */
    }
    .image-scroll-item2 {
        width: 270px; /* 从240px增加到270px */
    }
    .image-scroll-item2 img {
        width: 270px;
        height: 202.5px;
    }
    .image-scroll-item1 img {
        width: 240px; /* 180px的1.33倍 */
        height:180px;
    }
    
    .life-images-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
    }
    
    .life-intro-title {
        font-size: 22px;
    }
    
    .life-intro-content {
        font-size: 15px;
    }
    
    .friend-links-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
        line-height: 1.2; /* 手机端行距减少三分之一（1.8 - 0.6 = 1.2） */
        font-size: 15px; /* 手机端字号加一个号 */
    }
    
    .footer-links span {
        display: block;
        margin: 2px 0; /* 调整手机端间距 */
    }
    
    /* 新增模块的响应式设计 */
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .announcement-section,
    .monthly-highlights-section,
    .core-features-section,
    .principal-message-section,
    .quick-links-section {
        margin-bottom: 25px;
    }
}

/* 实时公告模块 */
.announcement-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.announcement-title {
    font-size: 22px;
    color: #265119;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.announcement-container {
    background: white;
    border-radius: 8px;
    padding: 15px;
    overflow: hidden;
    height: 45px;
}

.announcement-scroll {
    animation: scrollUp 20s linear infinite;
}

@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

.announcement-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-tag {
    background: #265119;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 12px;
    min-width: 60px;
    text-align: center;
}

.announcement-content {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.announcement-time {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

/* 月度亮点速递模块 */
.monthly-highlights-section {
    margin-bottom: 30px;
    margin-top: 46px;
}

.highlights-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.highlights-title {
    font-size: 24px;
    color: #265119;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.highlight-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.highlight-image {
    width: 100%;
    height: 210px;
    overflow: hidden;
}

.highlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.highlight-content {
    padding: 20px;
}

.highlight-tag {
    background: #265119;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 18px;
}

.highlight-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 18px;
    font-weight: bold;
}

.highlight-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 核心特色矩阵 */
.core-features-section {
    margin-bottom: 30px;
    margin-top: 52px;
}

.features-header {
    margin-bottom: 25px;
}

.features-title {
    font-size: 24px;
    color: #265119;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #265119 0%, #3a6b2f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 24px;
    color: white;
}

.feature-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.feature-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
	text-align:left;
}

/* 校长寄语 */
.principal-message-section {
    background: linear-gradient(135deg, #265119 0%, #3a6b2f 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 55px;
    margin-top: 55px;
    color: white;
}

.message-header {
    margin-bottom: 25px;
}

.message-title {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.message-quote {
    font-size: 16px;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.message-quote::before {
    content: '"';
    font-size: 48px;
    position: absolute;
    left: -10px;
    top: -10px;
    opacity: 0.3;
}

.message-signature {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.principal-name {
    font-size: 16px;
    font-weight: bold;
}

.read-more-link {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}
.read-more-link a {
    color: white;
    text-decoration: none;
  
}
.read-more-link a:hover {
    color: white;
    text-decoration: none;
  
}

.read-more-link:hover {
color: white;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 底部快捷链接 */
.quick-links-section {
    margin-bottom: 30px;
}

.quick-links-header {
    margin-bottom: 25px;
}

.quick-links-title {
    font-size: 24px;
    color: #265119;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.quick-link-item {
    background: white;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.quick-link-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.quick-link-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #265119 0%, #3a6b2f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.quick-link-icon i {
    font-size: 20px;
    color: white;
}

.quick-link-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}