/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
  padding: 0 1rem;
}

/* Header 与导航 */
header {
  background-color: #005A3D;
  color: #fff;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

header nav h1 {
  font-size: 1.8rem;
  margin-left: 1rem;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin-right: 1rem;
}

header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem;
  transition: color 0.3s;
}

header nav a:hover,
header nav a:focus {
  color: #FFD700;
}

header nav ul li {
  position: relative; /* 为下拉菜单定位 */
}

/* 下拉菜单容器 */
header nav ul li .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #005A3D;
  padding: 0.5rem 0;
  border-radius: 4px;
  z-index: 10;
}

/* 悬停显示下拉菜单 */
header nav ul li:hover .dropdown {
  display: block;
}

/* 下拉菜单项（优化版） */
header nav ul li .dropdown a {
  display: block;
  padding: 0.6rem 1.2rem;
  color: #fff;
  font-size: 1rem;
  white-space: nowrap;
  min-width: 180px;
  transition: background-color 0.3s ease;
}

header nav ul li .dropdown a:hover {
  background-color: #004c34;
}

/* 辅助跳转链接 */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #005A3D;
  color: #fff;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Hero 区块 - 第二种方式：使用图片容器与绝对定位文字 */
/* 图片容器 */
/* 可选：添加遮罩层 */
/* 文字容器，绝对定位在图片上方 */
/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #005A3D;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #00432b;
}

/* 主体内容布局 */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
}

section {
  margin-bottom: 2rem;
  padding: 1rem;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Quick Links 区块 */
.quick-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.quick-links a {
  padding: 0.5rem 1rem;
  background-color: #00796b;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.quick-links a:hover {
  background-color: #00695c;
}

/* News & Updates 区块 - 使用网格布局 */
.news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.news article {
  background: #f0f0f0;
  padding: 1rem;
  border-radius: 4px;
}

.news article h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.news article p {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.news article a {
  font-weight: 500;
  color: #005A3D;
  text-decoration: underline;
}

/* Footer 样式 */
footer {
  background: #eee;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
  header nav {
    flex-direction: column;
  }
  
  header nav ul {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  /* Hero 区块在移动端可适当调整高度 */
  }

.contact-form-section {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fefefe;
  transition: border 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00796b;
  box-shadow: 0 0 0 3px rgba(0,121,107,0.1);
}

.form-group .btn {
  align-self: flex-start;
}

/* 时间线样式 */
.timeline {
  list-style: none;
  padding-left: 1rem;
  margin-bottom: 2rem;
  border-left: 4px solid #00796b;
}

.timeline li {
  margin-bottom: 1rem;
  padding-left: 1rem;
  position: relative;
  font-size: 1rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  background-color: #00796b;
  border-radius: 50%;
}

.team-photo-wrapper {
  text-align: center;
  margin-top: 1.5rem;
}

.team-photo-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.team-caption {
  margin-top: 1rem;
  font-style: italic;
  color: #555;
}

.involvement-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.involve-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.involve-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.involve-card p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.involve-card .btn {
  padding: 0.6rem 1.2rem;
}

.involve-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.resource-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.resource-card p {
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.resource-card a.btn {
  padding: 0.5rem 1rem;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

/* Hero Slider - Cleaned and Corrected */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: 500px;
}

.slider {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.75);
  padding: 1.5rem 2rem;
  max-width: 600px;
  border-radius: 8px;
  text-align: center;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
/* === Enhanced Contact Page Styles === */

.hero-image img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.styled-involvement {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  margin-top: 2rem;
}

.involve-card {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  flex: 1 1 30%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.involve-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.involve-card a {
  display: inline-block;
  margin-top: 1rem;
  background: #004d26;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.involve-card a:hover {
  background: #006e35;
}

.footer-dark {
  background: #004d26;
  color: #fff;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

.hero-image {
  margin-top: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.hero-image img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.hero-caption {
  font-size: 1.1rem;
  color: #444;
  margin-top: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-style: italic;
  line-height: 1.6;
}

.info-card {
  background: #f8f8f8;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.info-card h2 {
  margin-top: 0;
  color: #004d26;
  font-size: 1.6rem;
}

.info-card ul {
  padding-left: 1.5rem;
  line-height: 1.7;
  font-size: 1rem;
}

.info-card ul li::marker {
  color: #2e7d32;
}