html, body {
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    background: #f5f5f7;
    font-family: Arial, sans-serif;
}

a{
    text-decoration: none;
}

* {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
}

/* HEADER 置顶抬头 */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 2000;
    transition: background 0.4s ease;
    display: flex;
    justify-content: center; /* 让 Logo 置中 */
    align-items: center;
    background: linear-gradient(rgba(0,0,0,1), rgba(0,0,0,0));
    color: #fff;
}

.form_header {
    position: fixed;
    width: 100%;
    height: 80px;
    z-index: 2000;
    transition: background 0.4s ease;
    display: flex;
    justify-content: center; /* 让 Logo 置中 */
    align-items: center;
    background: #fff;
    color: #fff;
}

.header.scrolled {
    background: rgba(0,0,0,0.85); /* 滚动后完全变黑 */
}

/* LOGO 居中 */
.logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo-img {
    height: clamp(34px, 4vw, 48px);
    width: auto;
    object-fit: contain;
}

/* 菜单按钮定位在右上，适当向左缩 */
.menu-btn {
    position: absolute;
    right: 2%;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(26px, 3vw, 36px);
    border: none;
    background: none;
    color: white;
    cursor: pointer;
}

.form-menu-btn {
    position: absolute;
    right: 2%;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(24px, 3vw, 36px);
    border: none;
    background: none;
    color: #1e218c;
    cursor: pointer;
}


/* HERO 视频部分 */
.hero {
    position: relative; 
    width: 100%;
    height: 100vh; /* 根据你的实际高度调整 */
    overflow: hidden;
}

/* 2. 视频样式 (保持原样，确保铺满) */
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0; /* 视频在最底层 */
}

/* 3. 【核心】黑色渐变遮罩 */
.hero::after {
    content: '';
    position: absolute;
    
    /* 关键点 1：定位到底部 */
    bottom: 0;
    left: 0;
    
    /* 关键点 2：设置你想要的高度 (例如只占屏幕高度的 30% 或 40%) */
    width: 100%;
    height: 40%;  /* 你可以随意调整这个百分比，比如 30% 或 50% */
    
    /* 关键点 3：渐变方向 */
    /* 从上(透明) 到 下(黑色) */
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.9) 100%);
    
    z-index: 1; /* 必须高于 video (0)，但低于 text (2) */
    pointer-events: none; /* 允许鼠标穿透 */
}

.hero-text {
    z-index: 2; /* 内容层级：在遮罩之上，保持文字清晰亮白 */
    position: absolute;
    font-size: clamp(18px, 2.5vw, 32px);
    bottom: 12%; /* 调整这个值来控制距底部的距离 */
    left: 7%; /* 调整这个值来控制距左侧的距离 */
    text-align: left;
    color: white;
}

.join-btn {
    padding: 12px 28px;
    border: 2px solid white;
    background: transparent;
    color: white;
    font-size: clamp(12px, 2vw, 24px);
    font-style: normal;
    cursor: pointer;
    transition: 0.25s ease;
    border-radius: 8px;
}

.button-container {
    display: flex;
    gap: 20px; /* 按钮之间的间距 */
    margin-top: 20px; /* 文字和按钮之间的间距 */
}


.join-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 0 14px rgba(255,255,255,0.7);
}

.join-btn:active {
    transform: scale(0.9);
    background: rgba(255,255,255,0.2);
}


/* 内容1 */
.content1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 50px;
    padding: 3%;
}

@media (orientation: landscape) {
    .content1 {
        grid-template-columns: repeat(5, 1fr);
    }
}

.img-box {
    position: relative;
    width: 100%;
    max-height: 300px;
    border-radius: 16px;
    overflow: hidden;
}

/* 新增：图片底部渐变遮罩 */
.img-box::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75),
        rgba(0, 0, 0, 0)
    );
    pointer-events: none;
}

.img-box img {
    height: 100%;
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.img-label {
    position: absolute;
    bottom: 12px;      /* 距离底部 */
    left: 0;
    width: 100%;
    z-index: 2;
    padding: 0 16px;   /* 左右内边距，防止溢出 */
    box-sizing: border-box; /* 确保 padding 不影响宽度 */
}

.img-label-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: white;
    font-size: 16px;
    font-weight: bold;  /* 修正 font-style 错误 */
}

/* 箭头按钮 */
.img-label .img-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.25s ease;
}

.img-label .img-arrow:hover {
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(2px);
}

.img-label .img-arrow:active {
    transform: scale(0.95);
}

/* 移动端适配 */
@media (max-width: 800px) {
    .img-label-inner {
        font-size: 14px;
    }

    .img-label .img-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}



/* 下期活动图片容器，限制放大不撑开布局 */
/* --- 覆盖文字层 --- */
.next-event {
    margin: 20px 20px 20px 20px;
}
.next-event-img-wrapper {
    position: relative;
    width: 100%;
    max-height: 900px;
    border-radius: 16px;
    overflow: hidden;
}

/* --- 覆盖文字层：居中，上方 --- */
.next-event-overlay {
    position: absolute;
    top: 12%;          /* ← 关键：从顶部往下 12%，可调 */
    left: 50%;         /* 定位中心 */
    transform: translateX(-50%);  
    width: 100%;
    text-align: center;   /* 居中文本 */

    color: white;
    padding: 0 24px;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* 文字行样式 */
.event-line1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.event-line2 {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* 按钮容器 */
.event-btn-group {
    display: flex;
    gap: 16px;
}

/* 按钮基础样式 */
.event-btn {
    padding: 10px 22px;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s ease;
    display: inline-block;
}

/* 白底按钮 */
.btn-white {
    background: white;
    color: #000;
}

.btn-white:hover {
    transform: scale(1.06);
    box-shadow: 0 0 10px rgba(255,255,255,0.6);
}

.btn-white:active {
    transform: scale(0.92);
}

/* 透明描边按钮 */
.btn-outline {
    background: rgba(255,255,255,0.1);
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    transform: scale(1.06);
    background: rgba(255,255,255,0.25);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.btn-outline:active {
    transform: scale(0.92);
}

/* 下期活动图片本体保持容器放大的逻辑 */
.next-event-img {
    height: 100%;
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.next-event-img-wrapper:hover .next-event-img {
    transform: scale(1.06);
}

.next-event-img-wrapper:active .next-event-img {
    transform: scale(1.10);
}

/* 横屏：2:1 */
@media (orientation: landscape) {
    .next-event-img-wrapper {
        aspect-ratio: 2 / 1;
    }

    .event-line1 { font-size: 36px; }
    .event-line2 { font-size: 20px; }
}

/* 竖屏：3:4 */
@media (max-width: 800px) {
    .next-event-img-wrapper {
        aspect-ratio: 3 / 4;
    }

    .event-line1 { font-size: 28px; }
    .event-line2 { font-size: 16px; }
}



/* =========================
   Partners 区域
========================= */
.partners {
    background: #0e0e12;
    padding: 80px 0;
    overflow: hidden;
}

.partners .section-title {
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 500;
}

/* 翻页视窗 */
.logo-flip-viewport {
    position: relative;
    height: 120px; /* 控制显示高度 */
    overflow: hidden;
    max-width: 1200px; /* 限制最大宽度，防止太宽 */
    margin: 0 auto;
}

/* 翻页轨道 */
.logo-flip-track {
    position: absolute;
    top: 0;
    width: 100%;
    will-change: transform;
    transition: transform 0.8s cubic-bezier(.4,0,.2,1);
}

/* 每一页（由JS生成） */
.logo-page {
    display: flex;
    justify-content: center; /* 改为居中，防止不满5个时很难看 */
    align-items: center;
    gap: 60px; /* Logo 之间的间距 */
    height: 120px; /* 必须固定高度，用于计算翻页 */
    width: 100%;
    box-sizing: border-box;
    padding: 0 40px;
}

/* LOGO 样式 */
.logo-page img {
    height: 48px; /* 固定高度 */
    width: auto;  /* 宽度自适应 */
    max-width: 160px; /* 限制最大宽度 */
    object-fit: contain;

    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    filter: brightness(1);
}

/* 激活状态样式 */
.logo-page.active img {
    opacity: 1;
    transform: translateY(0);
}

/* 依次出现的动画延迟 */
.logo-page.active img:nth-child(1) { transition-delay: 0.05s; }
.logo-page.active img:nth-child(2) { transition-delay: 0.15s; }
.logo-page.active img:nth-child(3) { transition-delay: 0.25s; }
.logo-page.active img:nth-child(4) { transition-delay: 0.35s; }
.logo-page.active img:nth-child(5) { transition-delay: 0.45s; }

/* 手机适配 */
@media (max-width: 800px) {
    .logo-flip-viewport, .logo-page {
        height: 90px;
    }
    .logo-page {
        gap: 15px;
        padding: 0 15px;
    }
    .logo-page img {
        height: 32px;
        max-width: 18%; /* 手机上强制限制宽度，防止挤压 */
    }
}


/* 入场动画基础 */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}
.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* 鼠标悬停放大 */
.img-box img,
.next-event-img {
    transition: transform 0.35s ease;
}

.img-box:hover img,
.next-event-img:hover {
    transform: scale(1.06);
}

.img-box:active img,
.next-event-img:active {
    transform: scale(1.10);
}


/* 倒计时浮层：固定在图片底部 */
.event-countdown {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    gap: 14px;
    z-index: 3;
}

/* 单个卡片 */
.cd-card {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 8px 14px;
    background: rgba(0,0,0,0.35);         /* 半透明黑卡片 */
    backdrop-filter: blur(8px);           /* 毛玻璃 */
    border-radius: 10px;
    min-width: 58px;

    border: 1px solid rgba(255,255,255,0.25);
}

/* 数字 */
.cd-card span {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}

/* 单位文字 */
.cd-card label {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
}

/* 竖屏适配 */
@media (max-width: 800px) {
    .cd-card {
        min-width: 54px;
        padding: 6px 12px;
    }

    .cd-card span {
        font-size: 20px;
    }

    .cd-card label {
        font-size: 11px;
    }
}


/*内容2*/
.content2 {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1; /* 横屏比例 2:1 */
  overflow: hidden;
  border-radius: 16px;

}

.content2 img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 文字底板 */
.content2 .overlay2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%; /* 桌面左侧占比 */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.3); /* 半透明白色 */
  backdrop-filter: blur(8px); /* 毛玻璃效果 */
  padding: 20px;
  box-sizing: border-box;
}

.content2 .overlay2 .text {
  color: #000;
  font-size: 1.5rem;
  line-height: 1.4;
  outline: none; /* 去掉编辑边框 */
}

/* 手机竖屏样式 */
@media (max-width: 800px) {
  .content2 {
    aspect-ratio: 3 / 4; /* 竖屏比例 */
  }

  .content2 .overlay2 {
    width: 100%;
    height: auto;
    bottom: 0;
    top: auto;
    padding: 15px;
  }

  .content2 .overlay2 .text {
    font-size: 1.2rem;
  }
}



/*////组织功能卡片CSS////*/
:root {
  --brand-gradient: linear-gradient(30deg, #8ef1f9, #0917e2);
}


/* ===== 组件区块 & 背景感知 ===== */
.gallery-section {
  transition: background 0.6s ease;
  padding-bottom: 80px;
  padding-top: 80px;
}

.gallery-section.active {
  background: #000;
}


/* ===== 文本 ===== */

.gallery-title {
  text-align: left;
  font-size: clamp(45px, 3vw, 60px);
  padding-left: 50px;
  margin: 30px 0;
  font-weight: 600;
  color: #111;
  transition: color 0.6s ease;
}

/* 当组件进入中心视野 */
.gallery-section.active .gallery-title {
  color: #fff;
}


/* ===== 容器 ===== */
.gallery-wrapper {
  max-width: 1500px;
  margin: 0px auto;
  padding: 58px 0px;
  overflow: hidden;

}

/* ===== 横屏：2 × 3 ===== */
.gallery-track {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  padding: 0 24px;
}



/* ===== 卡片 ===== */
.card {
  text-decoration: none;
  color: #fff;
}

.media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05; /* 横屏比例 */
  min-width: 400px;
  max-width: 80vw;
  margin: auto;
  border-radius: 18px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.35s ease;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* ===== hover 放大 + 轻微视差 ===== */

.card:hover img {
  transform: scale(1.08);
}

/* ===== 渐变遮罩 ===== */
.gradient {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

.gradient.top {
  top: 0;
  height: 10%;
  background: linear-gradient(to bottom, rgba(0,0,0,.8), transparent);
}

.gradient.bottom {
  bottom: 0;
  height: 10%;
  background: linear-gradient(to top, rgba(0,0,0,.8), transparent);
}

/* ===== 文案 ===== */
.title-top {
  position: absolute;
  top: 14px;
  width: 100%;
  font-size: clamp(18px, 3vw, 28px);
  text-align: center;
  font-weight: 600;
}

.title-bottom {
  position: absolute;
  left: 16px;
  bottom: 20px;
}

.line1 {
  background: #00000073;
  font-size: clamp(10px, 3vw, 16px);
  font-weight: 600;
  border-radius: 8px;
  padding: 10px;
}

.line2 {
  margin-top: 10px;
  font-size: 15px;
  opacity: 0.85;
}

/* ===== 竖屏：滑动卡片 ===== */
@media (max-width: 800px) {
  .gallery-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 0 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-track::-webkit-scrollbar {
    display: none;
  }

  .card {
    flex: 0 0 auto;
  }

  .media {
    aspect-ratio: 3 / 4; /* 竖屏比例 */
    min-width: 240px;
    max-width: 80vw;
    scroll-snap-align: center;
  }
}

/* ===== 进度点（品牌渐变） ===== */
.dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  transition: all .3s ease;
}

.dot.active {
  width: 26px;
  border-radius: 14px;
  background: var(--brand-gradient);
}

/* 横屏隐藏进度点 */
@media (min-width: 769px) {
  .dots {
    display: none;
  }
}
