/*--------------------------*/
/*------- 公共部分 ----------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'PingFangSC-Regular', 'Microsoft YaHei', '微软雅黑', sans-serif;
}
html {
  font-size: 14px;
  height: 100vh;
}
body {
  /* min-height: 100vh; */
  display: flex;
  flex-direction: column;
}
p {
  line-height: 2;
}
/* 导航栏样式 */
header {
  width: 100%;
  padding: 20px;
  border-bottom: 1px solid #eee;
}
#index header, #about header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999; /* 最高层级，浮在最上面 */
  border-bottom: 0px solid #eee;
}
.nav-container {
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  height: 33px;
  background: url(/images/logo_w@2x.png) no-repeat;
  background-size: auto 33px;
}
.logo a img {
  height: 33px;
}
/* 首页隐藏logo图片 */
#index .logo img, #about .logo img {
  visibility: hidden;
}
/* 关闭按钮样式 */
.menu-close {
  position: fixed;
  top: 22px;
  right: 20px;
  font-size: 26px;
  background: none;
  border: none;
  color: #333;
  z-index: 10000;
  cursor: pointer;
  display: none;
}
.menu-close.active {
  display: block;
}
.nav-menu {
  display: flex;
  margin-left: auto;
  margin-right: 70px;
  list-style: none;
  gap: 35px;
}
.nav-menu a {
  display: inline-block;
  text-decoration: none;
  color: #AAA;
  font-size: 1.2rem;
  transition: color 0.3s;
}
.nav-menu a:hover {
  color: #474342;
}
#index .nav-menu a {
  color: #FFF;
}
#index .nav-menu a:hover {
  color: #AAA;
}
.lang-switch {
  display: flex;
  gap: 5px;
  color: #EEE;
  align-items: center; /* 垂直居中对齐 */
}
.lang-switch a {
  text-decoration: none;
  color: #AAA;
  font-size: 0.8rem;
}
.lang-switch a:hover {
  color: #EEE;
}
#index .lang-switch a {
  color: #FFF;
}
#index .lang-switch a:hover {
  color: #AAA;
}
.lang-switch .en {
  align-items: center; /* 垂直居中 */
}
/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}
/* 主内容区 */
main {
  min-height: 100vh;
  flex: 1;
  margin: 0 auto;
  width: 100%;
  position: relative; /* 绝对定位的父容器 */
  box-sizing: border-box;
}
/* 内容区域 */
.content-wrapper {
  padding: 20px;
}
/* 浮动图层 */
.floating-layer {
  background-color: #FFFFFF;
  margin: 0 auto;
  padding: 100px 20px;
  line-height: 1.8;
  color: #333;
  position: absolute;
  z-index: 1000;
  margin-top: 100vh; /* 初始藏在屏底 */
  opacity: 1;
  transition: all 0.6s ease;
  width: 100%; /* 固定宽度基准 */
}
/* 全屏轮播 */
.swiper-main {
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 1;
}
.swiper-main .swiper-slide img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}
/* 缩略图容器 底部居中 */
.swiper-thumb {
  position: absolute;
  display: flex;
  bottom: 160px;
  width: auto;
  left: 50%;
  transform: translateX(-50%);
  height: 90px;
  z-index: 99;
}
.swiper-thumb .swiper-wrapper {
  width: auto;
}
.swiper-thumb .swiper-slide {
  width: 130px;
  height: 90px;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  border-color: #333333;
  overflow: hidden;
}
.swiper-thumb .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 缩略图激活高亮 */
.swiper-thumb .swiper-slide-thumb-active {
  opacity: 1;
  border-color: #fff;
}
/* 自定义箭头按钮 */
.swiper-button-prev, .swiper-button-next {
  position: relative;
  color: white;
}
/* 清除默认箭头 */
.swiper-button-prev:after, .swiper-button-next:after {
  content: none !important;
}
.swiper-button-prev {
  background: url(/images/arrow-left.png) no-repeat 100%;
  background-position: left;
  background-size: auto 100px;
  margin-right: 20px;
}
.swiper-button-next {
  background: url(/images/arrow-right.png) no-repeat 100%;
  background-position: right;
  background-size: auto 100px;
  margin-left: 20px;
}
.swiper-button-style {
  position: absolute;
}
.swiper-arrow-down {
  width: 62px;
  height: 36px;
  background: url(/images/down.svg) no-repeat 50%;
  background-size: contain;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 30px;
  z-index: 2;
}
/* 底部版权 */
footer {
  padding: 100px 0 100px;
  text-align: center;
  color: #777;
  font-size: 14px;
}
.footer {
  padding: 100px 0 100px;
  text-align: center;
  color: #777;
  font-size: 14px;
}
/*---------------------------*/
/*------- 关于工作室 ----------*/
.content-aboutus {
  width: 70%;
  margin: 0 auto; /* 让内容居中 */
}
.content-aboutus h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #222;
  font-weight: 500;
}
.content-aboutus p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #555;
}
.content-aboutus .quote {
  margin: 40px 0;
  padding: 20px;
  border-left: 3px solid #999;
  font-style: italic;
  color: #666;
}
/*--------------------------*/
/*------- 项目部分 ----------*/
.project-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 30px;
  margin: 40px auto;
}
/* 图片项 */
.project-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.project-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 1s ease;
}
/* hover放大效果 */
.project-item:hover img {
  transform: scale(1.05);
}
/* 项目名称：左下角 白色文字 无遮罩 */
.project-name {
  position: absolute;
  left: 20px; /* 距离左边距离 */
  bottom: 20px; /* 距离底部距离 */
  color: #fff; /* 白色文字 */
  font-size: 16px;
  opacity: 0; /* 默认隐藏 */
  transition: opacity 0.3s ease;
  z-index: 10; /* 保证文字在图片上方 */
}
/* 鼠标移上显示文字 */
.project-item:hover .project-name {
  opacity: 1;
}
.project-content {}
.project-content p {}
.project-content-text {
  width: 60%;
  margin-top: 30px;
}
/* 画廊网格 */
.project-gallery {
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 16px
}
.project-gallery-item {
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-radius: 0px;
  cursor: pointer
}
.project-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease
}
.project-gallery-item:hover img {
  transform: scale(1.08)
}
/* 全屏灯箱 */
.project-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999 !important; /* 强制最高层级，覆盖任何冲突 */
  opacity: 0;
  visibility: hidden;
  transition: all .4s ease;
  /* 新增：确保 lightbox 是独立的定位上下文，不受父元素影响 */
  pointer-events: none; /* 未激活时不拦截点击 */
}
.project-lightbox.active {
  opacity: 1;
  visibility: visible;
  /* 激活后允许点击事件 */
  pointer-events: auto;
}
.project-lightbox-img {
  max-width: 90%;
  height: 80vh;
  object-fit: contain;
  transform: scale(.9);
  opacity: 0;
  transition: transform .4s ease, opacity .4s ease
}
.project-lightbox.active .project-lightbox-img {
  transform: scale(1);
  opacity: 1
}
/* 按钮 */
.project-lightbox .project-prev, .project-lightbox .project-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, .15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  /* 增强按钮层级，避免被遮挡 */
  z-index: 10000;
  /* 修复点击区域 */
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-lightbox .project-prev {
  left: 20px
}
.project-lightbox .project-next {
  right: 20px
}
.project-lightbox .project-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, .15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  /* 增强关闭按钮层级 */
  z-index: 10000;
  /* 修复点击区域 */
  display: flex;
  align-items: center;
  justify-content: center;
}
/*--------------------------*/
/*------- 相册部分 ----------*/
.album-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 30px;
  margin: 20px auto;
}
/* 图片项 */
.album-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.album-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 1s ease;
}
/* hover放大效果 */
.album-item:hover img {
  transform: scale(1.05);
}
/* 项目名称：左下角 白色文字 无遮罩 */
.album-name {
  position: absolute;
  left: 20px; /* 距离左边距离 */
  bottom: 20px; /* 距离底部距离 */
  color: #fff; /* 白色文字 */
  font-size: 16px;
  opacity: 0; /* 默认隐藏 */
  transition: opacity 0.3s ease;
  z-index: 10; /* 保证文字在图片上方 */
}
/* 鼠标移上显示文字 */
.album-item:hover .album-name {
  opacity: 1;
}
/* 视频容器：铺满整个屏幕 */
.album-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 1; /* 让视频在底层，不挡住其他内容 */
}
/* 视频本身：自适应拉伸，不变形 */
video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 关键：保持比例填满屏幕 */
}
/* 音量控制按钮：固定在右下角 */
.volume-control {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 18px;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.volume-control:hover {
  background: rgba(0, 0, 0, 0.8);
}
.video-name {
  position: fixed; /* 固定在视口 */
  left: 30px; /* 距离左侧 */
  bottom: 30px; /* 距离底部 */
  color: #fff; /* 白色文字（适配视频背景） */
  font-size: 20px; /* 文字大小 */
  font-weight: 500; /* 字体加粗 */
  z-index: 99; /* 层级高于视频，低于音量按钮 */
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* 文字阴影，提升可读性 */
}
/* 鼠标悬浮效果 */
/* 上一页、下一页按钮箭头 */
.album-button-prev, .album-button-next {
  position: fixed; /* 固定定位，相对于视口 */
  top: 50%; /* 垂直居中第一步：顶部距离50% */
  transform: translateY(-50%); /* 垂直居中第二步：向上偏移自身50% */
  width: 100px; /* 按钮宽度（根据箭头图大小调整） */
  height: 100px; /* 按钮高度（根据箭头图大小调整） */
  color: white;
  z-index: 9999; /* 置顶层级，确保在最上层 */
  cursor: pointer; /* 鼠标悬浮手型 */
  background-repeat: no-repeat;
  background-size: auto 100px;
  border: none; /* 清除默认边框 */
  padding: 0; /* 清除默认内边距 */
  background-color: transparent; /* 透明背景 */
}
/* 清除默认箭头 */
.album-button-prev:after, .album-button-next:after {
  content: none !important;
}
.album-button-prev {
  left: 20px; /* 距离左侧距离，可根据需求调整 */
  background-image: url(/images/arrow-left.png);
  background-position: left center;
}
.album-button-next {
  right: 20px; /* 距离右侧距离，可根据需求调整 */
  background-image: url(/images/arrow-right.png);
  background-position: right center;
}
/*--------------------------*/
/*------- 媒体部分 ----------*/
.media-wrapper {
  margin: 20px auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}
/* 单个相册（只显示封面） */
.media-item {
  cursor: pointer;
  transition: all 0.3s;
}
.media-cover {
  width: 100%;
  height: 425px;
  object-fit: cover;
  border-radius: 2px;
  transition: transform 0.3s ease;
}
.media-item:hover .media-cover {
  transform: scale(1.04);
}
.media-title {
  margin-top: 10px;
  color: #333;
}
/* 底层全屏半透明遮罩 */
.lightbox-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9998;
  display: none;
}
.lightbox-mask.show {
  display: block;
}
/* 弹出全屏轮播 */
.lightbox {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 1);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.lightbox.show {
  display: block;
}
.lightbox-image {
  height: 80vh;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease;
}
/* 左右箭头 */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  z-index: 10;
}
.prev {
  left: 30px;
  background: url(/images/arrow-left.png) no-repeat left 100%;
}
.next {
  right: 30px;
  background: url(/images/arrow-right.png) no-repeat right 100%;
}
.prev:hover, .next:hover {}
/* 关闭按钮 */
.close {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 36px;
  color: #000000;
  cursor: pointer;
  z-index: 10;
}
/*--------------------------*/
/*------- 招聘信息 ----------*/
.content-jobs {
  align-content: center;
  width: 60%;
  margin: 100px auto;
}
/*--------------------------*/
/*------- 联系我们 ----------*/
.content-contact-map {}
.content-contact-map img {
  width: 100%;
  height: auto;
}
.content-contact-txt {}
.map-pc {
  display: block
}
.map-mobile {
  display: none
}
/*--------------------------*/ :root {
  --swiper-navigation-size: 80px;
}
/* 响应式适配 */
@media (max-width: 768px) {
  .logo {
    height: 22px;
    background-size: auto 22px;
  }
  .logo a img {
    height: 22px;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    position: fixed; /* 固定全屏 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* 全屏 */
    background: #fff; /* 白色背景 */
    opacity: 0.9;
    padding: 80px 20px 30px;
    gap: 20px;
    box-shadow: none;
    z-index: 9999; /* 最高层级 */
  }
  .nav-menu li {
    text-align: right;
  }
  /* 弹出时显示 */
  .nav-menu.active {
    display: flex;
  }
  /* 手机菜单文字居中 */
  .nav-menu a {
    font-size: 1.2rem;
    color: #333 !important;
    text-align: center;
    padding: 10px 0;
  }
  .menu-toggle {
    position: absolute;
    right: 20px;
    display: block;
    z-index: 999;
  }
  #index .menu-toggle {
    color: #FFFFFF;
  }
  .lang-switch {
    display: none !important;
  }
  /* 轮播缩略图 */
  .swiper-thumb {
    width: 100%;
    height: 40px;
    left: 0;
    transform: none;
    bottom: 20px;
  }
  .swiper-thumb .swiper-slide {
    width: 60px;
    height: 40px;
  }
  .close {
    top: 0px;
    right: 10px;
  }
  /* 底部版权 */
  footer {
    padding: 40px 0 40px;
    font-size: 12px;
  }
  .footer {
    padding: 40px 0 40px;
    font-size: 12px;
  }
  .floating-layer {
    padding-top: 20px;
    padding-bottom: 0px;
  }
  .content-jobs {
    width: 100%;
    margin: 20px auto;
  }
  .content-aboutus {
    width: 100%;
  }
  .media-cover {
    height: 180px;
  }
  .lightbox {
    width: 90%;
    padding: 10px;
  }
  .lightbox-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease;
  }
  .project-wrapper {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    padding: 30px 15px;
  }
  .project-gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  .project-name {
    opacity: 1;
  }
  .project-content-text {
    width: 100%;
    margin-top: 20px;
  }
  .album-wrapper {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    padding: 30px 15px;
  }
  .album-name {
    opacity: 1;
  }
  .map-pc {
    display: none
  }
  .map-mobile {
    display: block
  }
}