/* 重置和基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
  padding: 10px 0;
  background-color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 24px;   /* 控制文字大小 */
  font-weight: 700;
  color: black;
  transition: transform 0.3s ease;
  transform: scale(1.2);  /* 整体放大 1.2 倍 */
  transform-origin: left center; /* 从左边放大，不会跑位 */
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  width: 40px;   /* 控制图片大小 */
  height: auto;  /* 自动保持比例 */
  margin-right: 10px;
}


.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 35px;
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: #e63946;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #e63946;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* 移动端菜单按钮 */
.menu-btn {
  display: none;
  color: #333;
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
  transition: transform 0.3s ease;
}

.menu-btn:hover {
  transform: rotate(90deg);
}

/* 首页头部样式 */
.header {
  background-image: url('image/LWJ1.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 220px 0 180px;
  margin-top: 70px;
  position: relative;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.header .container {
  position: relative;
  z-index: 1;
}

.header h1 {
  font-size: 50px;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.5s forwards;
}

.header p {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto 40px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.7s forwards;
}

.btn-primary {
  display: inline-block;
  background-color: #e63946;
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.9s forwards;
}

.btn-primary:hover {
  background-color: #d62828;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

/* 动画效果 */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 通用部分样式 */
.about-section, .events-section, .team-section, .download-section {
  padding: 100px 0;
}

h2 {
  font-size: 36px;
  margin-bottom: 40px;
  text-align: center;
  color: #1d3557;
  position: relative;
  padding-bottom: 15px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #e63946;
  border-radius: 2px;
}

/* 关于我们部分 */
.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.about-img {
  width: 40%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.about-img:hover {
  transform: translateY(-10px);
}

.about-text {
  width: 55%;
}

.about-text p {
  font-size: 18px;
  margin-bottom: 20px;
  color: #457b9d;
}

/* 活动展示部分 */
.events-section {
  background-color: #f1faee;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.event-item {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.event-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-item:hover .event-img {
  transform: scale(1.1);
}

.event-item div {
  padding: 25px;
}

.event-item h3 {
  margin-top: 0;
  font-size: 22px;
  color: #1d3557;
  margin-bottom: 15px;
}

.event-item p {
  font-size: 16px;
  color: #457b9d;
}

/* 团队成员部分 */
/* 团队成员部分 - 重新设计 */
.team-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

.team-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23e63946" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 1;
}

.team-member {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 20px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.team-member::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(230, 57, 70, 0.1), transparent);
  transition: left 0.6s ease;
}

.team-member:hover::before {
  left: 100%;
}

.team-member:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 8px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(230, 57, 70, 0.3);
}

/* 成就卡片特殊样式 */
.team-member:last-child {
  grid-column: 1 / -1; /* 第二行整行显示 */
  max-width: 100%;
  margin: 0;
  background: linear-gradient(135deg, rgba(29, 53, 87, 0.95) 0%, rgba(69, 123, 157, 0.95) 100%);
  color: white;
  border: 2px solid rgba(230, 57, 70, 0.3);
}

.team-member:last-child::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.team-member:last-child:hover {
  border-color: rgba(230, 57, 70, 0.6);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.2),
    0 8px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.member-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 25px;
  border: 4px solid #fff;
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.15),
    0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  position: relative;
}

.member-img::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: linear-gradient(45deg, #e63946, #f77f00, #e63946);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-member:hover .member-img::after {
  opacity: 1;
}

.team-member:hover .member-img {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 
    0 12px 35px rgba(0, 0, 0, 0.2),
    0 6px 15px rgba(0, 0, 0, 0.15);
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.team-member h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1d3557;
  margin-bottom: 15px;
  line-height: 1.4;
  position: relative;
  padding-bottom: 10px;
}

.team-member h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #e63946, #f77f00);
  border-radius: 1px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-member:hover h3::after {
  opacity: 1;
}

/* 顶部两个卡片：图片在左，标题在右 */
.team-grid .team-member:nth-child(-n+3) {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  padding: 20px 20px;
}

.team-grid .team-member:nth-child(-n+3) .member-img {
  width: 96px;
  height: 96px;
  margin: 0;
  flex: 0 0 auto;
}

.team-grid .team-member:nth-child(-n+2) h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

/* 成就卡片标题样式 */
.team-member:last-child h2 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 30px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.team-member:last-child h2::after {
  background: linear-gradient(90deg, #fff, #e63946);
  width: 60px;
  height: 3px;
}

/* 时间轴样式优化：双列网格，上下更紧凑 */
.timeline {
  position: relative;
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
}

.timeline-item {
  margin-bottom: 25px;
  position: relative;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.timeline-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(10px);
  border-color: rgba(230, 57, 70, 0.5);
}

/* 双列布局下移除小圆点装饰，更简洁 */
.timeline-item::before { display: none; }

.timeline-year {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.timeline-content {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 根据内容标注的金色样式（由脚本添加 rank-gold 类） */
.timeline .timeline-item.rank-gold {
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.15) inset, 0 8px 20px rgba(255, 215, 0, 0.12);
}
.timeline .timeline-item.rank-gold .timeline-year { color: #FFD700; }
.timeline .timeline-item.rank-gold::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, #FFD700, #ffe680);
  border-top-left-radius: 10px; border-top-right-radius: 10px;
}

/* 银色（第二名） */
.timeline .timeline-item.rank-silver {
  border-color: rgba(192, 192, 192, 0.5);
  box-shadow: 0 0 0 1px rgba(192, 192, 192, 0.15) inset, 0 8px 20px rgba(192, 192, 192, 0.12);
}
.timeline .timeline-item.rank-silver .timeline-year { color: #C0C0C0; }
.timeline .timeline-item.rank-silver::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, #C0C0C0, #e6e6e6);
  border-top-left-radius: 10px; border-top-right-radius: 10px;
}

/* 铜色（第三名） */
.timeline .timeline-item.rank-bronze {
  border-color: rgba(205, 127, 50, 0.5);
  box-shadow: 0 0 0 1px rgba(205, 127, 50, 0.15) inset, 0 8px 20px rgba(205, 127, 50, 0.12);
}
.timeline .timeline-item.rank-bronze .timeline-year { color: #CD7F32; }
.timeline .timeline-item.rank-bronze::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, #CD7F32, #e3a66a);
  border-top-left-radius: 10px; border-top-right-radius: 10px;
}

/* 人气/最喜爱特别标记（favourite/favorite） */
.timeline .timeline-item.rank-favorite {
  border-color: rgba(193, 53, 132, 0.5);
  box-shadow: 0 0 0 1px rgba(193, 53, 132, 0.15) inset, 0 8px 20px rgba(193, 53, 132, 0.12);
}
.timeline .timeline-item.rank-favorite .timeline-year { color: #C13584; }
.timeline .timeline-item.rank-favorite::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, #C13584, #E1306C);
  border-top-left-radius: 10px; border-top-right-radius: 10px;
}

/* 响应式设计优化 */
@media screen and (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .team-member {
    padding: 30px 20px;
  }
  
  .member-img {
    width: 100px;
    height: 100px;
  }
  
  .team-member h3 {
    font-size: 16px;
  }
  
  .team-member:last-child h2 {
    font-size: 24px;
  }
  
  .timeline { grid-template-columns: 1fr; }
  
  .timeline-item {
    padding: 12px 15px;
  }
}

/* 平板断点：两列时间轴 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 480px) {
  .team-member {
    padding: 25px 15px;
  }
  
  .member-img {
    width: 80px;
    height: 80px;
  }
  
  .team-member h3 {
    font-size: 14px;
  }
  
  .timeline-year {
    font-size: 14px;
  }
  
  .timeline-content {
    font-size: 12px;
  }
}

/* 下载APP部分 */
.download-section {
    text-align: center;
    background-color: #f1faee;
    color: white;
    margin-top: 60px;
}

.download-section h2 {
  color: #1d3557;
}

.download-section h2::after {
  background-color: #1d3557;
}

.download-section p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #457b9d;
}

.download-button {
  display: inline-block;
  background-color: #e63946;
  color: white;
  padding: 15px 35px;
  text-decoration: none;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.download-button:hover {
  background-color: #d62828;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

/* 页脚样式 */
.footer {
  background-color: #1d3557;
  color: white;
  text-align: center;
  padding: 20px 0 20px;
  margin-top: 200px;
}

.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 30px;
}

.social-links li {
  margin: 0 15px;
}

.social-links a {
  color: white;
  text-decoration: none;
  font-size: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* Facebook */
.social-links a.facebook:hover {
  background-color: #1877F2; /* Facebook 蓝 */
  transform: translateY(-5px);
}

/* Instagram */
.social-links a.instagram:hover {
  background-color: #E1306C; /* Instagram 粉/洋红色 */
  transform: translateY(-5px);
}

.footer p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* 图片懒加载效果 */
img {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img.loaded {
  opacity: 1;
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #e63946;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(100px);
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: #d62828;
  transform: translateY(-5px);
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 20px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 10px 10px;
  }
  
  .nav-links.show {
    display: flex;
  }
  
  .nav-links li {
    margin: 15px 0;
    margin-left: 0;
  }
  
  .menu-btn {
    display: block;
  }
  
  .header {
    padding: 150px 0 100px;
    margin-top: 70px;
  }
  
  .header h1 {
    font-size: 36px;
  }
  
  .header p {
    font-size: 16px;
  }
  
  .about-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .about-img, .about-text {
    width: 100%;
  }
  
  .event-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* 小屏顶部两个卡片保持左右布局，缩小头像 */
  .team-grid .team-member:nth-child(-n+3) {
    flex-direction: row;
    align-items: center;
  }
  
  .team-grid .team-member:nth-child(-n+3) .member-img {
    width: 72px;
    height: 72px;
  }
  
  .container {
    padding: 0 15px;
  }
}

@media screen and (max-width: 480px) {
  .header h1 {
    font-size: 28px;
  }
  
  .header p {
    font-size: 14px;
  }
  
  h2 {
    font-size: 28px;
  }
  
  .about-section, .events-section, .team-section, .download-section {
    padding: 60px 0;
  }
}

