header-right/* 基础设置 */
html,
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 顶部深蓝色导航栏 */
header {
  background-color: #00264d;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 左侧：logo + 名字 */
.header-left {
  display: flex;
  align-items: center;
  text-decoration: none; /* 去除下划线 */
  color: inherit; /* 保持原有字体颜色 */
}

.logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.school-name {
  font-size: 22px;
  color: #ffffff;
  font-weight: bold;
}

/* 右侧导航链接 */
.header-right a {
  margin-left: 20px;
  text-decoration: none;
  color: #ffffff;
  font-size: 16px;
  transition: opacity 0.2s;
}

.header-right a:hover {
  opacity: 0.8;
}

/* 中间内容区 */
main {
  background-color: #f0f0f0;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
  text-align: left; /* 设置为左对齐 */
}
/* 介绍文字区域 */
.description p {
  max-width: 700px;
  font-size: 18px;
  line-height: 1.7;
  color: #444;
  margin: 0 auto;
}

/* 底部版权栏 */
footer {
  background-color: #00264d;
  color: white;
  text-align: center;
  padding: 15px 0;
}

/* 图片样式 */
.intro-image {
  max-width: 100%;
  /* 确保图片不会超出容器 */
  height: auto;
  /* 保持图片的纵横比 */
  margin-top: 20px;
  /* 给图片上方添加一些间距 */
  border-radius: 8px;
  /* 可选，添加圆角效果 */
}

.language-switcher {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.language-switcher a {
  color: #ccc;
  text-decoration: none;
}

.language-switcher a:hover {
  color: #fff;
}



@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center; /* 水平居中 header 的所有子元素 */
    text-align: center;
    padding: 20px 10px;
  }

  .header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* 关键：水平居中 */
    width: 100%; /* 关键：让它占满父容器 */
    text-decoration: none;
    color: inherit;
    margin-bottom: 10px;
  }

  .header-left img {
    width: 60px;
    height: 60px;
    margin: 0 auto 5px auto;
  }

  .school-name {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
  }

  .header-right {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .header-right a {
    margin: 0;
  }

  .intro-image {
    width: 100%;
    /* 在小屏设备上让图片宽度适应屏幕 */
  }
}
