/* ========== 🌐 全局基础样式 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* 让 padding 和 border 不会增加元素实际宽度 */
}

body, html {
  height: 100%;
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  background-size: 100% 100%;
  user-select: none; /* 禁止选择文本 */
  max-width: 2500px;
}

a {
color: inherit; /* 继承父元素的颜色 */
text-decoration: none; /* 去除下划线 */
}

div {
  white-space: nowrap;
}


/* ========== 📌 顶部导航栏样式 ========== */

/* 初始：透明导航栏，白色文字 */


.navbar.transparent .menu-item,
.navbar.transparent .mobile-menu-btn {
  color: white;
}


.navbar.solid .menu-item,
.navbar.solid .mobile-menu-btn {
  color: black;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s, color 0.3s;
  z-index: 999;
}

/* 导航栏透明样式（通常用于首页初始） */
.navbar.transparent {
  background: transparent;
  color: white;
}

/* 导航栏滑动后变白底黑字 */
.navbar.solid {
  background: white;
  color: black;
}

/* logo 样式 */
.navbar .logo {
  height: 40px;
}

/* 横向菜单布局 */
.navbar .menu {
  display: flex;
  gap: 2rem;
}

/* 菜单项可点击 */
.navbar .menu-item {
  cursor: pointer;
}

/* ========== 🎥 视频背景区 ========== */
.video-section {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.video-section2 {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* 视频铺满整个区域 */
.video-section video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 2500px;
}

.video-section2 img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 2500px;
}

/* 视频上覆盖的文字与按钮 */
.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

/* 大标题响应式大小 */
.overlay h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.3s;
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.overlay h2 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.3s;
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.3s;
  margin-top: 15px;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 按钮样式 */
.overlay button {
  background: transparent;
  border: 2px solid #ffffff;
  color: white;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  padding: 0.5rem 3rem;
  cursor: pointer;
  border-radius: 10px;
}

.overlay button:hover {
  background-color: #ed7d31;
  border: 3px solid #ed7d31;
}

/* ========== 📱 移动端菜单按钮 ========== */
.mobile-menu-btn {
  display: none; /* 默认隐藏 */
  cursor: pointer;
}

.mobile-menu-btn:hover {
  color: #ed7d31;
  font-size: 1.5rem;
}

.close-btn:hover {
  color: #ed7d31;
  font-size: 1.5rem;
}

/* ========== 📱 移动端滑出导航栏 ========== */
.mobile-nav {
  position: fixed;
  right: -200%; /* 默认隐藏在右侧屏幕外 */
  top: 0;
  height: 100vh;
  width: 100vw;
  background: white;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  transition: right 0.3s;
  z-index: 1000;
}

/* 当添加 open 类时滑出到屏幕中 */
.mobile-nav.open {
  right: 0;
}

/* 关闭按钮右对齐 */
.mobile-nav .close-btn {
  align-self: flex-end;
  font-size: 1.5rem;
  cursor: pointer;
}


/* logo 居中 */
.mobile-nav .logo {
  margin: 1rem auto;

}

/* 菜单项上下排列 */
.mobile-nav .menu-item {
  margin: 1rem auto;
}

.menu-item {
  font-size: 20px;
  color: #000000;
}

.menu .menu-item {
  margin-right: 1em;
  font-size: 1em;
  color: #ffffff;
}

.menu-item :hover {
  color: #ed7d31;
  font-size: 1.5rem;
}

/* ========== 📱 响应式设置 ========== */
@media (max-width: 768px) {
  .navbar .menu {
    display: none; /* 小屏隐藏横向菜单 */
  }
  .mobile-menu-btn {
    display: block; /* 显示移动端菜单按钮 */
  }
  .navbar .logo {
    margin: 0 auto;
  }
}

/* 评测活动 */


/* ========== 🧭 线下活动模块 ========== */
  .image-container {
    margin: 15px auto;
    position: relative;
    height: 600px;
    width: 100%;
    max-width: 2560px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
    background: #444;
  }

  .image-container.show {
    opacity: 1;
    transform: translateY(0);
  }

  .image-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
  }

  .image-text {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    z-index: 2;
    text-shadow: 0 0 5px rgba(0,0,0,0.7);
    line-height: 1.4;
  }

  .image-text .line1 {
    font-size: clamp(2rem, 6vw, 2.5rem);
    margin-bottom: 8px;
  }

.bottom-button {
  align-self: center;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #ffffff;
  width: 10em;
  border: none;
  border-radius: 5px;
  color: rgb(0, 0, 0);
  cursor: pointer;
  transition: transform 1s ease;
}

.bottom-button:hover {
    background-color: #ed7d31;
    color: rgb(255, 255, 255);
}

/* ========== 📺 视频发布模块 ========== */
.carousel-container {
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 20px;
}

.carousel-track {
  display: grid;
  grid-template-columns: 1fr; /* 默认竖屏：一列 */
  gap: 1rem;
}

.carousel-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.carousel-card-program {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.carousel-card img:hover {
  transform: scale(1.05);
  
}

/* 播放按钮居中 + 动效 */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  background: rgba(0, 0, 0, 0);
  border: none;
  border-radius: 50%;
  padding: 0.2em 0.2em;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.25);
  color: #ed7d31;
}

/* 横屏适配：2x2 网格 */
@media (orientation: landscape) and (min-width: 768px) {
  .carousel-track {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
  }
}




/* ========== 🔻 页脚样式 ========== */
  .follow-us-text-h1{
    font-size: 1.5em;
    font-style: bold;
    margin: 15px;
  }

  .follow-us-text-p{
    font-size: 1.2em;
    font-style: bold;
    margin: 15px;
  }

  footer {
    padding: 100px;
    background: #0e0e12;
    color: #ffffff;
  }
  .footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
  }
  .footer-module {
    min-width: 120px;
  }
  .language button {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 18px;
    margin: 10px;
  }
  .flag-icon {
  width: 48px;
  height: auto;
  margin: 10px 2px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.flag-icon:hover {
  transform: scale(1.1);
}

.language-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

  .languagetext{
    font-size: 25px;
  }
  
.social-icons {
  display: flex;
  justify-content: center; /* 水平居中 */
  align-items: center;     /* 垂直居中 */
  gap: 20px;               /* 图标间距，可调整 */
  margin-top: 10px;        /* 可选：上下边距 */
}

.social-icons img {
  width: 48px;
  height: 48px;
  transition: transform 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.1);
}

  .about div {
    margin: 15px 0;
  }
  .about a {
    color: #ffffff;
    text-decoration: none;
  }
  .about a:hover {
    text-decoration: underline;
  }

  .footer-bottom {
    margin-top: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .copyright {
    margin-top: 30px;
    font-size: 14px;
    color: #999;
  }
  .logo img {
    margin-top: 30px;
    height: 40px;
  }

  /* 竖屏（窄屏）布局 */
  @media (max-width: 768px) {
    .footer-top {
      flex-direction: column;
      align-items: center;
    }
    .footer-module {
      text-align: center;
    }
    .footer-bottom {
      margin-top: 20px;
    }
  }

  /* 横屏（宽屏）布局 */
  @media (min-width: 769px) {
    .footer-top {
      flex-direction: row;
      justify-content: space-around;
      align-items: flex-start;
    }
    .footer-bottom {
      flex-direction: column;
      align-items: center;
    }
  }




.program {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.program button {
  padding: 12px 30px;
  width: 50%;
  font-size: 1.5em;
  background-color: #ed7d31;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.program button:hover {
  background-color: #cc6a2a;
}

/* 弹窗样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  word-wrap: break-word;   /* 如果有长单词强制换行 */
  word-break: break-word;  /* 中文英文都能断行 */
  white-space: normal;     /* 默认值，允许自动换行 */
}

.modal-content h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 20px;
}

.modal-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.modal-content button {
  padding: 10px 20px;
  background-color: #007acc;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.modal-content button:hover {
  background-color: #005eaa;
}

/* 禁止滚动 */
body.no-scroll {
  overflow: hidden;
}
