/* --- 全局重置与基础样式 --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; 
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
  /* 核心改动：为body添加padding-top，为固定的header预留空间 */
  padding-top: 60px; /* 桌面端header的高度大约是60px */
}

/* --- 头部 Header --- */
header {
  position: fixed;
  top: 0;
  left: 0; /* 确保从左侧0点开始 */
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95); 
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.header-content {
  max-width: 1400px; 
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  flex-wrap: wrap; 
}

.header-content img {
  height: 40px;
}

nav {
  display: flex;
  gap: 15px;
  flex-wrap: wrap; 
  justify-content: center;
}

nav a {
  text-decoration: none;
  color: #007acc;
  font-size: 16px;
  font-weight: bold;
  padding: 8px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

nav a:hover {
  color: #ffffff;
  background-color: #007acc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px) scale(1.05);
}

/* --- 主内容区域 --- */
.main-section {
  display: flex;
  align-items: center;
  justify-content: center;
  /* 核心改动：移除了顶部的padding，因为它已经应用到body上了 */
  padding: 60px 20px; 
  min-height: calc(100vh - 60px); /* 确保首屏高度依然撑满（减去body的padding-top） */
  gap: 40px; 
}

.content {
  flex: 1;
  max-width: 600px;
}

.content h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem); 
  color: #007acc;
  line-height: 1.3;
}

.content p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-family: "KaiTi", "Arial", sans-serif; 
  font-weight: normal;
  line-height: 1.8;
  margin-top: 20px;
}

.logo {
  flex: 1;
  max-width: 500px;
}

.logo img {
  width: 100%;
  height: auto; 
  border-radius: 8px;
}

/* --- 战队介绍 --- */
.team-intro-section {
  background-color: #f0f4f8;
  padding: 80px 20px;
}

.team-intro-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap; 
}

.team-logo img {
  width: 100%;
  max-width: 350px;
  height: auto;
}

.team-description {
  flex: 1;
  min-width: 300px; 
}

.team-description h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: #007acc;
  margin-bottom: 20px;
}

.team-description p {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-family: "KaiTi", "Arial", sans-serif;
  line-height: 1.8;
}

/* --- 通用 Section 样式 --- */
.honor-section, .members-section {
  padding: 80px 20px;
  text-align: center;
}
.honor-section { background-color: #ffffff; }
.members-section { background-color: #f0f4f8; }

.honor-section h2, .members-section h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: #007acc;
  margin-bottom: 40px;
}

.year-group h3 {
  font-size: clamp(1.8rem, 3.5vw, 2.2rem);
  color: #555;
  margin-top: 40px;
  margin-bottom: 30px;
}

.honor-list {
  list-style: none;
}

.honor-list li {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 10px;
}

/* --- 成员网格 --- */
.members-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.member-card {
  text-align: center;
  width: 200px;
}

.member-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.member-card img:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 122, 204, 0.3);
}

.member-card strong {
  display: block;
  margin: 15px 0 5px;
  font-size: 18px;
}

.member-card p {
  font-size: 14px;
  color: #666;
  padding: 0 5px;
}

/* --- Footer 页脚 --- */
.footer-separator-container {
  background-color: #f0f4f8; 
}
.footer-separator {
  width: 90%; height: 2px; margin: 0 auto;
  background: linear-gradient(to right, transparent, #007acc, transparent);
}
.footer {
  background-color: #ffffff;
  padding: 40px 20px;
  text-align: center;
}
.wechat-container { position: relative; display: inline-block; }
.wechat-icon { width: 160px; height: 40px; cursor: pointer; transition: transform 0.3s ease; }
.wechat-icon:hover { transform: scale(1.1); }
.wechat-qrcode {
  position: absolute; bottom: 120%; left: 50%;
  transform: translateX(-50%) scale(0.8);
  opacity: 0;
  visibility: hidden;
  background: #fff; padding: 10px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: 8px; transition: all 0.3s ease;
}
.wechat-container:hover .wechat-qrcode {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  visibility: visible;
}
.wechat-qrcode img { width: 150px; height: 150px; display: block; }
.footer-text { margin: 15px 0; }
.copyright { font-size: 14px; color: #666; }

/* --- 响应式设计：媒体查询 --- */
@media (max-width: 768px) {
  /* 核心改动：为手机端预留一个更大的头部空间 */
  body {
    padding-top: 130px; /* 估算一个足够容纳两行导航的高度 */
  }

  .header-content {
    justify-content: center; 
    gap: 10px;
  }
  
  /* 核心改动：同样调整min-height的计算 */
  .main-section {
    flex-direction: column; 
    text-align: center;
    padding: 40px 20px; /* 调整手机端的上下padding */
    min-height: calc(100vh - 130px);
  }

  .team-intro-content {
    flex-direction: column; 
    text-align: center;
  }

  .content {
    padding-right: 0;
  }

  .team-logo img {
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .member-card {
    width: calc(50% - 20px); 
  }
  
  .member-card img {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .member-card {
    width: 100%;
  }
}
