/* ========== 1. 页面基础设置 ========== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

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


/* ========== 2. Header（顶部横幅） ========== */
header {
  position: relative;        /* 创建定位上下文，供 ::before 覆盖层使用 */
  background-color: #004080; /* 备用纯色背景 */
  color: white;
  text-align: center;
  padding: 20px 0;
  z-index: 2;                /* 确保在背景层之上 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* 背景图层 + 渐变遮罩 */
header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;                          /* 适当扩展宽度防止两侧留白 */
  height: 100%;
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
    url('../banner.png');              /*  替换为实际 banner 图路径 */
  background-size: cover;
  background-position: Center 40%;        /*  精准控制显示位置 */
  opacity: 0.25;                       /*  控制整体亮度 */
  z-index: 1;                          /* 位于 header 背后 */
  pointer-events: none;               /*  不阻挡按钮等交互操作 */

  animation: moveBackground 26s ease-in-out infinite;
}

/* Logo 图标 */
header .logo {
  height: 160px;
  margin-bottom: 10px;
  position: relative;
  z-index: 3;
}

/* 多语言切换按钮 */
#langToggle {
  position: absolute;
  top: 20px;
  right: 20px;
  background: white;
  color: #004080;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  z-index: 3; /*  保证按钮在顶层可点击 */
}

/* 头部标题文字样式 */
header h1 {
  font-size: 28px;
  font-weight: bold;
  position: relative;
  z-index: 3; /* 确保不被背景遮盖 */
}


/* ========== 3. 提示信息条（网站公告） ========== */
.notice {
  background-color: #fff3cd;
  padding: 10px;
  border-left: 5px solid #ffa500;
  margin-bottom: 20px;
}


/* ========== 4. 内容板块通用样式 ========== */
section {
  background: white;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}


/* ========== 5. 新闻卡片 ========== */
.news-item {
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease;
}

.news-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-item img {
  max-height: 180px;
  object-fit: cover;
  border-radius: 4px;
}


/* ========== 6. 页脚 ========== */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: #888;
}


/* ========== 7. 响应式适配 ========== */
@media (max-width: 600px) {
  header h1 {
    font-size: 20px;
  }
  .container {
    padding: 10px;
  }
}

/* ========== 添加动画样式 ========== */
@keyframes moveBackground {
  0% {
    background-position: center 60%;
  }
  50% {
    background-position: center 40%;
  }
  100% {
    background-position: center 60%;
  }
}








/* ========== 8. 中英文切换控制（可启用） ========== */
/*
.lang-zh, .lang-en {
  display: none;
}

body[lang="zh"] .lang-zh {
  display: block;
}

body[lang="en"] .lang-en {
  display: block;
}
*/


/* ========== 9. 理事会信息样式（可启用） ========== */
/*
.section-title {
  text-align: center;
  margin-bottom: 20px;
}

body[lang="zh"] .section-title,
body[lang="zh"] .council-text {
  font-family: 'SimSun', serif;
}

body[lang="en"] .section-title,
body[lang="en"] .council-text {
  font-family: 'Georgia', 'Times New Roman', serif;
}

.council-text {
  text-align: center;
  line-height: 1.8;
  white-space: pre-line;
}
*/
