/* 本级CSS */
body, html {
    height: 100%;
    width: 100%;
    margin: 0;
    overflow: hidden; /* 隐藏所有溢出内容 */
}

.first-div {
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-rows: 60px 1fr 30px;
}

/* 导航栏样式 */
.row1 {
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 第一行平分四列 */
    grid-gap: 5px; /* 网格间距 */
    background-color: #0066ff; /* 仅为示例，你可以根据需要更改颜色 */
}

.row1-item {
    height: 60px;
    width: 100%;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    text-align: center; /* 确保文本也水平居中（对于非Flex子项也有效） */
}

.row1-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap; /* 防止内容换行 */
    color: #ffffff; /* 字体颜色为白色 */
    font-weight: bold; /* 字体加粗 */
    font-size: 1.8vw; /* 设置字体大小 */
    letter-spacing: 8px; /* 设置字符间距为2像素 */
}

.row1-logo img {
    height: 100%;
    filter: brightness(0) invert(1);
}

/* 显示区样式 */
.row2 {
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-rows: 220px 1fr;
    grid-gap: 5px; /* 网格间距 */
}

/* 轮播容器：只显示5张图片的区域 */
.carousel-wrapper {
    height: 100%;
    width: 100%;
    margin: 0 auto;
    overflow: hidden; /* 隐藏视野外的图片 */
    position: relative;
}

/* 轮播轨道：存放所有图片（包括备用图） */
.carousel-track {
    height: 100%;
    width: 100%;
    display: flex;
    gap: 10px; /* 图片间距，固定值避免计算误差 */
    padding: 10px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); /* 平滑动画 */
    will-change: transform; /* 硬件加速，减少闪烁 */
}

/* 图片卡片：宽度固定为1/5视野 */
.image-card {
    min-width: calc((100% - 40px) / 5); /* 减去4个间隙(10px×4)后的1/5，正好显示5张 */
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background-color: #fff;
    /* 边框美化核心样式 */
    border: 2px solid transparent; /* 透明边框占位，避免hover时布局抖动 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), /* 基础阴影 */ 0 0 0 1px rgba(255, 255, 255, 0.6) inset, /* 内发光边框，增强立体感 */ 0 0 0 2px rgba(0, 0, 0, 0.03); /* 外层细边框，凸显轮廓 */
    /* 过渡动画，让边框变化更平滑 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* 消除图片底部间隙 */
}

/* 标题覆盖层 */
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 5px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    /* 新增：启用flex布局实现内容居中 */
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    min-height: 30px; /* 确保有足够高度容纳文字，避免垂直居中失效 */
}

.image-caption {
    font-size: 14px;
    font-weight: 500;
    color: white;
    text-align: center;
    white-space: nowrap; /* 禁止换行 */
    overflow: hidden; /* 隐藏超出部分 */
    text-overflow: ellipsis; /* 超出显示省略号 */
}

/* 宣传与招生区 */
.promotion-Enrollment {
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px; /* 网格间距 */
}

/* 宣传区 */
.promotion {
    height: 100%;
    width: 100%;
    padding: 10px;
}

.promotion-main {
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-rows: 50px 1fr;
    /* 圆角边框 */
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* 立体卡片效果 - 使用多层阴影和渐变 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* 标题 */
.promotion-main .title-area {
    height: 100%;
    width: 100%;
    /* 圆角边框 */
    border-radius: 1rem 1rem 0 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* 浅暖色系背景 - 采用温暖的米橙色 */
    background-color: #FFF3E0;
    /* 文字颜色与背景形成良好对比 */
    color: #ff6102;
    /* 内边距让标题区域更舒适 */
    padding: 10px;
    /* 字体加粗突出标题 */
    font-weight: 800;
    font-size: 20px;
    /* 文字居中 */
    text-align: center;
    align-items: center;
    /* 加大字符间隔（字间距） */
    letter-spacing: 10px;
    /* 轻微阴影增强层次感 */
    box-shadow: 0 2px 4px rgba(245, 124, 0, 0.1);
}

/* 内容 */
.promotion-main .content-area {
    width: 100%;
    height: calc(100vh - 60px - 30px - 220px - 5px - 20px - 50px);
    padding: 5px;
    overflow-y: auto;
    -ms-overflow-style: none; /* IE 和 Edge 隐藏滚动条 */
    scrollbar-width: none; /* Firefox 隐藏滚动条 */
    /* 网格布局设置 */
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    align-content: start;
}

.promotion-main .content-area-main {
    width: 100%;
    height: 120px;
    /* 启用网格布局 */
    display: grid;
    grid-template-columns: 120px 1fr;
    column-gap: 5px;
    /* 边框美化 - 用浅灰色替代纯黑，更柔和 */
    border: 1px solid #e2e8f0;
    /* 轻微阴影增强立体感，不突兀 */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    /* 背景色确保内容清晰 */
    background-color: #ffffff;
}

.promotion-main .content-area-main-a {
    height: 100%;
    width: 100%;
    /* 启用网格布局 */
    display: grid;
    grid-template-rows: 40px 1fr 25px;
    row-gap: 2px;
}

.promotion-main .content-area-main-image {
    height: 100%;
    width: 100%;
    padding: 10px;
}

.promotion-main .content-area-main-image img {
    height: 100%;
    width: 100%;
    /* 保持图片比例并覆盖容器，避免拉伸变形 */
    object-fit: cover;
    /* 圆角处理，与卡片风格统一 */
    border-radius: 6px;
    /* 添加轻微阴影增强层次感 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    /* 防止图片边缘模糊 */
    backface-visibility: hidden;
}

.promotion-main .content-area-main-a div:first-child {
    font-weight: 800;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    color: #1e293b;
    font-size: 15px;
}

/* 公告链接美化 */
.promotion-main .content-area-main-a div:nth-child(2) {
    height: 100%;
    width: 100%;
    color: #3b82f6;
    text-indent: 2em;
    white-space: normal;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 最多显示2行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
}

/* 移除链接默认样式 */
.promotion-main .content-area-main-a div:nth-child(2) a {
    color: inherit;
    text-decoration: none;
}

/* 日期区域美化 */
.promotion-main .content-area-main-a div:last-child {
    color: #64748b;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    width: 100%;
    font-size: 12px;
}

/* 招生区 */
.enrollment {
    height: 100%;
    width: 100%;
    padding: 10px;
}

.enrollment-main {
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-rows: 50px 1fr;
    /* 圆角边框 */
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* 立体卡片效果 - 使用多层阴影和渐变 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* 标题 */
.enrollment-main .title-area {
    height: 100%;
    width: 100%;
    /* 圆角边框 */
    border-radius: 1rem 1rem 0 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* 浅暖色系背景 - 采用柔和浅杏色 */
    background-color: #FEFBE9; /* 浅杏色，温暖柔和带点浅黄色调 */
    /* 文字颜色保持与背景的良好对比 */
    color: #ff6102;
    /* 内边距让标题区域更舒适 */
    padding: 10px;
    /* 字体加粗突出标题 */
    font-weight: 800;
    font-size: 20px;
    /* 文字居中 */
    text-align: center;
    align-items: center;
    /* 加大字符间隔（字间距） */
    letter-spacing: 10px;
    /* 轻微阴影增强层次感 */
    box-shadow: 0 2px 4px rgba(245, 124, 0, 0.1);
}

/* 内容 */
.enrollment-main .content-area {
    width: 100%;
    height: calc(100vh - 60px - 30px - 220px - 5px - 20px - 50px);
    padding: 5px;
    overflow-y: auto;
    -ms-overflow-style: none; /* IE 和 Edge 隐藏滚动条 */
    scrollbar-width: none; /* Firefox 隐藏滚动条 */
    /* 网格布局设置 */
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    align-content: start;
}

/* 底部样式 */
.row3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 第一行平分四列 */
    grid-gap: 5px; /* 网格间距 */
    background-color: #0066ff; /* 仅为示例，你可以根据需要更改颜色 */
}

.row3-item {
    display: flex; /* 使用Flexbox来居中文本 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    text-align: center; /* 确保文本也水平居中（对于非Flex子项也有效） */
}

/* 引入字体 */
@font-face {
    font-family: 'YunFengFeiYunTi'; /* 自定义字体名称 */
    src: url("/static/Typeface/YunFengFeiYunTi.ttf") format('truetype'); /* 字体文件路径和格式 */
    /* 只加载必要字符（通过工具提取子集） */
    unicode-range: U+4E00-9FFF; /* 仅包含中文字符范围 */
}

.school-motto {
    font-family: 'YunFengFeiYunTi', sans-serif;
    color: white; /* 字体颜色为白色 */
    font-size: 16px; /* 字体大小为16px */
}

.school-motto span {
    flex: 1;
    text-align: center;
}

.copyright {
    color: white; /* 字体颜色为白色 */
    font-size: 16px; /* 字体大小为16px */
    white-space: nowrap; /* 禁止内容换行 */
}

/* 顶部导航栏下拉组件 */
.ManagementButton, .UserSideButton, .OtherButtons {
    width: 100%;
    height: 100%;
    border: none;
    background-color: transparent;
    color: gray;
    font-weight: bold;
    font-size: 1.8vw;
}

.ManagementButton:hover, .UserSideButton:hover, .OtherButtons:hover {
    color: white;
}

.layui-dropdown-menu li {
    text-align: center; /* 让每个 data 项水平居中 */
    font-size: 1.3vw;
}