/* ===== 页面基础样式 ===== */
/* 初始化 */
* {
  box-sizing: border-box;
}
/* 设置 HTML 元素：鼠标光标为默认，滚动行为为平滑 */
html {
    cursor: default; /* 鼠标指针为默认箭头 */
    scroll-behavior: smooth; /* 页面滚动时采用平滑过渡效果 */
    height: 100%;
    margin: 0;
}

/* 设置 body 主体：清除默认边距，设置字体、背景色和字体颜色 */
body {
    margin: 0; /* 去除默认外边距 */
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif; /* 设置中文字体优先为微软雅黑 */
    background-color: #eee; /* 背景为浅灰色 */
    color: #333; /* 默认文字颜色为深灰色 */
}


/* ===== 页头部分 ===== */

/* 设置 header 页头容器 */
header {
    background-image: url('https://xxgl2403.oss-cn-beijing.aliyuncs.com/top.jpg'); /* 设置背景图片 */
    background-size: cover; /* 背景图片覆盖整个容器 */
    background-position: center; /* 背景图片居中显示 */
    padding: 10px; /* 内边距为20px */
    display: flex; /* 启用 Flex 布局 */
    align-items: center; /* 垂直居中对齐内容 */
    justify-content: flex-start; /* 内容水平从左开始排列 */
    color: #000; /* 文字颜色为黑色 */
}

/* 设置 header 内部的 img 图像（如 logo） */
header img {
    height: 70px; /* 高度为70像素 */
    margin-right: 20px; /* 右边留出20像素间距 */
}


/* ===== 导航栏 ===== */

/* 设置 nav 导航栏整体样式 */
nav {
    background-color: #2e8b57; /* 背景为绿色（海洋绿） */
    padding: 10px 0; /* 上下内边距10px，左右为0 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 底部投影阴影 */
}

/* 设置导航栏中 ul 列表容器 */
nav ul {
    list-style: none; /* 去除默认项目符号 */
    margin: 0; /* 去除外边距 */
    padding: 0; /* 去除内边距 */
    display: flex; /* 使用 Flex 布局 */
    justify-content: center; /* 内容水平居中 */
    gap: 30px; /* 每个导航项之间的间隔为30px */
}

/* 设置导航栏每一个列表项 */
nav ul li {
    display: inline-block; /* 使 li 元素呈现为行内块状 */
}

/* 设置导航链接样式 */
nav ul li a {
    color: white; /* 字体颜色为白色 */
    text-decoration: none; /* 去除下划线 */
    font-size: 18px; /* 字体大小为18px */
    padding: 8px 16px; /* 内边距上下8px，左右16px */
    border-radius: 8px; /* 设置圆角 */
    transition: background 0.3s ease; /* 背景色渐变过渡效果 */
}

/* 设置导航链接的悬停状态样式 */
nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* 半透明白色背景 */
}


/* ===== 文章区 ===== */

/* 设置 article 主体内容区域 */
article {
    max-width: 1000px; /* 最大宽度为1000像素 */
    margin: auto; /* 上下外边距40px，左右居中 */
    padding: 0 20px; /* 左右内边距20px */
    padding-bottom: 200px; /* 必须大于 footer 高度（通常 60~80px） */
}


/* ===== 轮播图样式 ===== */

/* 设置轮播图最外层容器 */
.slider-container {
    position: relative; /* 用于子元素绝对定位 */
    margin: 40px auto; /* 上下40px，左右居中 */
    width: 100%; /* 宽度占满容器 */
    max-width: 700px; /* 最大宽度为700px */
    overflow: hidden; /* 超出部分隐藏 */
    border-radius: 10px; /* 圆角10px */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* 添加阴影 */
}

/* 设置轮播滑动容器 */
.slider {
    display: flex; /* 幻灯片横向排列 */
    transition: transform 0.5s ease-in-out; /* 设置滑动动画过渡 */
}

/* 单张幻灯片样式 */
.slide {
    min-width: 100%; /* 宽度为容器100% */
    height: 400px; /* 高度为400px */
}

/* 幻灯片内的图片样式 */
.slide img {
    width: 100%; /* 宽度填满容器 */
    height: 100%; /* 高度填满容器 */
    object-fit: cover; /* 保持图片比例裁切填满区域 */
}
/* 滑动文字 */
.scroll-box-horizontal {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background-color: #f0f0f0;
    padding: 0;
}

.scroll-content-horizontal {
  display: inline-block;
  animation: scroll-left 10s linear infinite;
}

.scroll-content-horizontal p {
  display: inline-block;
  padding: 0 5px;
  line-height: 0px;
  font-size: 18px;
  color: #333;
  white-space: nowrap;
}

@keyframes scroll-left {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}


/* 可选样式美化文本 */
.scroll-content p {
  height: 30px;
  line-height: 30px;
  text-align: center;
  margin: 0;
  font-size: 14px;
  color: #333;
}


/* ===== 轮播图箭头 ===== */

/* 设置左右箭头的通用样式 */
.arrow {
    position: absolute; /* 绝对定位 */
    top: 50%; /* 垂直居中 */
    transform: translateY(-50%); /* 修正垂直居中位置 */
    background: rgba(0, 0, 0, 0.5); /* 半透明黑色背景 */
    color: white; /* 白色图标 */
    padding: 10px 15px; /* 内边距 */
    font-size: 24px; /* 字体图标大小 */
    cursor: pointer; /* 鼠标指针变成可点击状态 */
    border: none; /* 去除默认边框 */
    z-index: 10; /* 保证在最上层显示 */
    transition: background 0.3s; /* 背景颜色过渡 */
}

/* 鼠标悬停箭头时背景颜色变深 */
.arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* 设置左侧箭头位置 */
.prev {
    left: 0; /* 左对齐 */
    border-radius: 0 5px 5px 0; /* 左边直角，右边圆角 */
}

/* 设置右侧箭头位置 */
.next {
    right: 0; /* 右对齐 */
    border-radius: 5px 0 0 5px; /* 右边直角，左边圆角 */
}


/* ===== 页脚 ===== */

/* 页脚固定在底部，不管页面内容多少 */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #2e8b57;
  color: white;
  text-align: center;
  z-index: 999; /* 确保在最上面 */
  padding: 5px 2px;
  font-size: 14px;
  width: 100%;
}

footer a {
  line-height: 1.6;
  color: #ffffff;
  text-decoration: none;
}

.schoolname{
    line-height: 0px;
    font-weight: 800;
    font-size: 20px;
    font-family: "宋体";
}
.schooldz{
    font-family: "隶书";
    line-height: 0px;
    font-weight: 500;
    font-size: 19px;
}
.footera{
    margin: auto;
    width: 300px;
}
.bah{
    line-height: 0px;
}

/* ===== 链接统一样式 ===== */

/* 所有链接默认无下划线，继承父元素颜色 */
a {
    text-decoration: none;
    color: inherit;
}

/* ===== 加载提示样式 ===== */
#loading-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 20px 30px;
  z-index: 9999;
}
#loading-content {
  text-align: center;
}
#loading-text {
  margin-bottom: 10px;
  font-size: 18px;
  color: #333;
}
#progress-container {
  width: 300px;
  height: 10px;
  background: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  margin: 0 auto;
}
#progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #81c784);
  transition: width 0.2s linear;
}