/* =====================================================
   CSS DIRECTORY / 目录
   =====================================================
   1. Root Variables .......................... :root
   2. Global Reset ............................ body, *
   3. Container ............................... .container
   4. Header .................................. .site-header
   5. Nav Toggle Button ....................... .nav-toggle
   6. Navigation .............................. .site-nav
   7. Hero .................................... .hero
   8. Sections (Glass Background) ............. .main-glass-bg
   9. Sections ................................ .section, .event-list, .news-list
   10. Leadership Board ....................... .leadership-grid, .leader-card
   11. History................................. .history-item
   12. Gallery ................................ .gallery-grid
   12. Lightbox ............................... #lightbox-overlay
   13. Forms .................................. input, textarea, button
   14. Animation................................
   15. Footer ................................. .site-footer
   16. Responsive ............................. @media queries
   ===================================================== */


/* ===== ROOT VARIABLES ===== */
:root {
  --max-width: 1100px;
  --accent: #111827; /* 取消蓝色，改为深灰 */
  --muted: #6B7280;
  --bg-light: rgba(255, 255, 255, 0.8); /* 玻璃模糊用半透明白 */
  --hover-bg: rgba(200, 200, 200, 0.6);/* 浅灰悬停 */
  --text-color: #111827;
  --header-bg-img: url('header-bg.jpg'); /* header 背景图片，替换成你的图片路径 */
}




/* ===== GLOBAL RESET ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  color: var(--text-color);
  background:url("jpg") no-repeat center center fixed;
  background-size: cover;
  background-position: center 35%; 


  opacity: 0; /* 初始透明 */
  transition: opacity 1s ease; /* 平滑过渡 */
}

body.fade-in {
  opacity: 1; /* 页面载入后淡入 */
}

body.fade-out {
  opacity: 0; /* 页面离开时淡出 */
}


/* New feature */

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(2px); /* 让背景模糊 */
  -webkit-backdrop-filter: blur(8px);
  z-index: -1;
}

/* ===== CONTAINER ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 16px;
}




/* ===== HEADER ===== */
.site-header {
  background:linear-gradient(
    to right,
    rgba(245, 245, 245, 0.1),
    rgba(230, 230, 230, 0.5)
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(200, 200, 200, 0.6);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);

  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100vw;
  left: 0;
  right: 0;
  box-sizing: border-box;
  color: var(--text-color);

  position: sticky;   position: relative;
}

.site-header.hidden {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 80px;
  gap: 24px;
  padding: 8px 16px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand img {
  height: 80px;
  width: auto;
}




/* ===== NAV TOGGLE BUTTON ===== */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 28px;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
  margin-left: auto;
  color: var(--accent);
}




/* ===== NAVIGATION ===== */
.site-nav {
  display: flex;
  gap: 12px;
  flex-grow: 1;
  justify-content: flex-start;
  flex-wrap: nowrap;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-color);
  padding: 16px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  font-size: 0.9rem;
  text-align: center;
  line-height: 0.8;
  white-space: nowrap;
  display: flex;
  flex-direction: column; /* 英文在上，中文在下 */
  gap: 1px;
}

.site-nav a span:first-child {
  font-weight: 600;
}

.site-nav a:hover {
  background: var(--hover-bg);
  color: var(--text-color);
  transform: scale(1.15); 
}

.site-nav a.active {
  background: rgba(200, 200, 200, 0.4); /* 半透明白，玻璃感 */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}




/* ===== HERO ===== */
.hero {
  background: linear-gradient(90deg, #f0f7ff, #fff);
  padding: 32px 16px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
  margin-bottom: 1px;
  color: var(--text-color);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.hero p {
  margin: 0 auto 30px;
  max-width: 600px;
  color: #111111;
  font-size: 1rem;  
  line-height: 1.8; 
  margin-top: 0;
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgb(0 0 0 / 0.15);
}

.hero-title-wrapper {
  position: relative;
  display: inline-block; /* 根据标题宽度 */
  margin-bottom: 40px;
}

.hero-title-wrapper h1 {
  font-size: 55px; /* 改成你想要的大小 */
  font-weight: 420; /* 更粗一点 */
  line-height: 1.2;
  top: 20px;
  position: relative;
  z-index: 1;
  color: var(--text-color);
  font-family: 'Montserrat', sans-serif;
}

@media (max-width: 600px) {
  .hero-title-wrapper h1 {
    font-size: 36px; /* 或者 32px, 看你要多小 */
  }
}

.hero-title-wrapper p {
	margin-top: 0; 
	top: -10px;
}

.hero-bg-logo {
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
  width : 100%;
  max-width: 650px; /*根据需要调整大小 */
  height: auto;
  opacity: 0.5; /* 透明度低，不抢眼 */
  filter: blur(2px);
  pointer-events: none; /* 不影响鼠标操作 */
  user-select: none; /* 不可选中 */
  z-index: 0;
  border-radius: 20px; /* 圆角，增强玻璃感 */
  background: rgba(255 255 255 / 0.3); /* 半透明白背景 */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 480px) {
  .hero-bg-logo {
    width: 90%; /* 在小屏上占更大比例 */
  }
}




/* ===== SECTIONS 玻璃背景 ===== */
.main-glass-bg {
  background: var(--bg-light);
  border-radius: 0 0 16px 16px;
  padding: 20px 24px;
  box-shadow:0 8px 20px rgba(0, 0, 0, 0.3),    /* 深阴影：模拟浮起 */
    0 4px 10px rgba(255, 255, 255, 0.2) inset; /* 内阴影：模拟玻璃厚度 */

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}




/* ===== SECTIONS ===== */
.section {
  padding: 10px 0;
  scroll-margin-top: 90px;
}

.section-subtitle {
  display: inline-block;      /* shrink underline to text width */
  border-bottom: 2px solid var(--accent); /* underline color */
  padding-bottom: 4px;        /* space between text and line */
  margin-bottom: 10px;        /* spacing below the underline */
  font-size: 1.6rem;
}


.section h2 {	
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
}

.section ul li {
  font-size: 1.1rem; /* 比默认大 */
  margin-bottom: 8px; /* 每个 li 之间加点间距 */
  line-height: 1.6; /* 让文字更舒服 */
}

/* ==== info-grid ==== */

.info-grid article {
  margin-bottom: 60px; /* 两个 article 之间的距离 */
}



/* === Button for Contact === */

.h2-link {
  margin-left: 20px;
}

.btn-contact {
  display: inline-block;
  padding: 10px 14px;
  background: rgba(70, 130, 180, 0.4); /* 浅蓝透明背景 */
  color: #ffffff;                       /* 白色文字 */
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;                  /* 圆角 */
  backdrop-filter: blur(6px);           /* 磨砂玻璃效果 */
  -webkit-backdrop-filter: blur(6px);   /* Safari 兼容 */
  text-decoration: none;                /* 去掉下划线 */
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 阴影 */
}

.btn-contact:hover {
  background: rgba(173, 216, 230, 0.6); /* 鼠标悬停更亮 */
  transform: scale(1.05); 
}



.event-list,
.news-list {
  list-style-type: none;
  padding-left: 0;
}

.event-list li,
.news-list li {
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.4;
}

.event-item,
.news-item {
  background: rgba(245, 245, 245, 0.7);
  backdrop-filter: blur(6px); 
  padding: 20px;
  margin-bottom: 16px;
  border-radius: 12px;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
  color: #222222;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-item:hover,
.news-item:hover {
  transform: translateY(-6px); 
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

/* 标题部分 */
.event-item h3,
.news-item h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #003366;   /* 深蓝色，显得专业 */
}

.event-item h2,
.news-item h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #003366;   /* 深蓝色，显得专业 */
  border-bottom: 2px solid #003366;
  width: 40%;
}


/* 内容文字 */
.event-item p,
.news-item p {
  margin: 0;
  line-height: 1.6;
  font-size: 1rem;
}


.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.leadership-gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5张照片一行 */
  gap: 24px;
  margin-top: 20px;
}

.leader-card {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.1);
  color: var(--text-color);
}

.leader-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 12px;
}

.leader-card h3 {
  margin: 0 0 6px;
}

.leader-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}




/* ===== LEADERSHIP BOARD (overridden styles) ===== */
.leader-card {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 0px;
  text-align: center;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.1);
  color: var(--text-color);
}

.leader-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 2px;
}

.leader-card h3 {
  margin: 0 0 1px;
  font-size: 1rem;
}

.leader-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.8;
}

/* ===== History ===== */

.history-item {
  background: rgba(245, 245, 245, 0.2);  /* 半透明白底，做玻璃感 */
  backdrop-filter: blur(6px);           /* 毛玻璃效果 */
  border-radius: 16px;                  /* 圆角 */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05); /* 阴影 */
  padding: 20px;                        /* 内边距 */
  margin-bottom: 20px;                  /* 每块之间的间距 */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* hover 效果：卡片浮起 */
.history-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 标题部分 */
.history-item h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.3rem;
  font-weight: bold;
  color: #003366;   /* 深蓝色，显得专业 */
}

/* 内容文字 */
.history-item p {
  margin: 0;
  line-height: 1.6;
  font-size: 1rem;
}


/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery-grid figure {
  margin: 0; /* 去掉默认margin */
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-light);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.15);
  padding: 2px;
}

.gallery-grid img.gallery-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.gallery-grid figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
}

.gallery-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.15);
}




/* ===== LIGHTBOX ===== */
#lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none; /* 默认隐藏 */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px #000;
  cursor: pointer;
}




/* ===== FORMS ===== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
  width: 100%;
  padding: 8px 10px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
  color: var(--text-color);
  background: rgba(255, 255, 255, 0.8);
}

button {
  background-color: var(--accent);
  color: white;
  border: none;
  padding: 10px 18px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #999999;
}


/* ==== Contact ==== */

.contact-info {
  margin-top: 32px;
  font-size: 1rem;
  color: var(--muted);
}


/* ===== ANIMATION==== */

.animate__delay-0-3s {
  animation-delay: 0.3s;
}
.animate__delay-0-6s {
  animation-delay: 0.6s;
}
.animate__delay-0-9s {
  animation-delay: 0.9s;
}
.animate__delay-1-2s {
  animation-delay: 1.2s;
}
.animate__delay-1-5s {
  animation-delay: 1.5s;
}
.animate__delay-1-8s {
  animation-delay: 1.8s;
}
.animate__delay-2-1s {
  animation-delay: 2.1s;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 16px 16px;
  text-align: center;
  color: #ffffff; /* pure white for better contrast */
  border-top: 1px solid rgba(255,255,255,0.3);
  font-size: 0.9rem;

  background: rgba(0, 0, 0, 0.3); /* semi-transparent dark background */
  backdrop-filter: blur(5px); /* optional: adds a blur behind it */
  border-radius: 8px 8px 0 0; /* optional rounded top corners */
}




/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {
  .nav-toggle {
    display: block;
    position: fixed;
    top: 20px;
    right: 30px;
    margin: 0;
    
    width: auto;       /* 确保不是 100% */
    margin: 0;
    padding: 8px 12px;
    text-align: right; /* 避免文字或图标被居中 */
    transform: none;
    z-index: 2000;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    right: 16px;
    top: 68px;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    gap: 10px;
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
    width: 220px;
    z-index: 150;
  }

  .site-nav.show {
    display: flex;
  }
}

@media (max-width: 600px) {
  input,
  textarea,
  button {
    width: 100%;
    box-sizing: border-box;
  }
  
}
