/* 导航栏样式更新 */
.navbar-transparent {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    padding-top: 15px;
    padding-bottom: 15px;
}

/* ===== 视频区域 ===== */
.hero-video {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.video-container video {
  position: absolute;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.desktop-only { display: block; }
.mobile-only { display: none; }

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.mega-title {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.btn-hero {
  padding: 12px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  background-color: var(--primary-color);
  border: none;
  box-shadow: 0 5px 15px rgba(33, 143, 206, 0.4);
  transition: all 0.3s ease;
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(33, 143, 206, 0.6);
  background-color: var(--primary-dark);
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.scroll-down a {
  display: block;
  font-size: 2rem;
  color: white;
  text-align: center;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

/* ===== 主内容区域 ===== */
#main-content {
  position: relative;
  z-index: 3;
  box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.1);
}

/* 通用区块标题 */
.section-title {
  position: relative;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #333;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-top: 25px;
  margin-bottom: 50px;
}

/* 案例卡片样式 */
.case-card-new {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  height: 280px;
}

.case-card-new:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.case-thumbnail {
  position: relative;
  width: 100%;
  height: 100%;
}

.case-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.case-card-new:hover .case-thumbnail img {
  transform: scale(1.05);
}

.case-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.case-card-new:hover .case-overlay {
  opacity: 1;
}

.play-icon-new {
  font-size: 4rem;
  color: white;
  transition: transform 0.3s ease;
}

.case-card-new:hover .play-icon-new {
  transform: scale(1.1);
}

.case-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  transition: all 0.3s ease;
}

.case-title-overlay h5 {
  color: white;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 关于我们区域 */
.about-section {
  background-color: #fff;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.about-section .section-title::after {
  left: 0;
  transform: none;
}

.about-image-container {
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image-container img {
  width: 100%;
  transition: transform 0.5s ease;
}

.about-shape {
  position: absolute;
  width: 300px;
  height: 300px;
  background-color: rgba(33, 143, 206, 0.1);
  border-radius: 50%;
  bottom: -100px;
  left: -100px;
  z-index: -1;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
}

.stats-row {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: #666;
  margin-top: 5px;
}

/* 浮动形状分隔区域 */
.floating-shapes-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -50px;
  animation: float 8s ease-in-out infinite;
}

.shape-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  right: 10%;
  animation: float 10s ease-in-out infinite;
}

.shape-3 {
  width: 150px;
  height: 150px;
  top: 20%;
  right: -50px;
  animation: float 12s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}

/* 新闻卡片 */
.news-card {
  transition: all 0.3s ease;
  border: none;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.news-date {
  color: var(--primary-color);
  font-size: 0.9rem;
  margin-bottom: 10px;
  font-weight: 500;
}

.news-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.news-link i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.news-link:hover {
  color: var(--primary-dark);
}

.news-link:hover i {
  transform: translateX(5px);
}

.placeholder-img {
  background-color: #e9ecef;
  width: 100%;
  height: 100%;
  min-height: 150px;
}

/* 招聘卡片 */
.job-card {
  transition: all 0.3s ease;
  border: none;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.job-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.job-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(33, 143, 206, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.job-icon i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.job-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #666;
}

.job-meta i {
  margin-right: 5px;
  color: var(--primary-color);
}

/* ===== 视频模态框和背景层样式 ===== */
/* 视频背景遮罩层 */
.video-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85); /* 更深的背景色 */
  z-index: 1999999; /* 视频模态框z-index的前一位 */
  display: none;
}

/* 视频模态框样式 */
#videoModal {
  z-index: 2000000 !important;
}

#videoModal .modal-content {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background-color: transparent; /* 透明背景 */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

#videoModal .modal-body {
  padding: 0;
  position: relative;
}

/* 视频关闭按钮 */
.video-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 2100001;
  transition: all 0.2s ease;
}

.video-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* 确保视频播放器在最高层并居中 */
#caseVideo {
  width: 100%;
  height: auto;
  max-height: 75vh;
  z-index: 2100000 !important;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

/* 强制模态框不受任何遮挡 */
#videoModal,
#videoModal .modal-dialog,
#videoModal .modal-content,
#videoModal .modal-body,
#videoModal video {
  pointer-events: auto !important;
}

/* 禁用Bootstrap模态框的默认背景 */
.modal-backdrop {
  display: none !important;
}

/* ===== 密码提示框样式 ===== */
/* 背景遮罩层 */
.password-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9000;
  display: none;
}

/* 密码提示框容器 */
.password-prompt {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  z-index: 9100;
  overflow: hidden;
  display: none;
}

/* 用于复制的模板，不显示 */
.password-prompt-template {
  display: none !important;
}

/* 密码提示框标题 */
.password-prompt-header {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 15px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 关闭按钮 */
.password-close {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  margin: 0;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 密码提示框内容 */
.password-prompt-body {
  padding: 20px;
}

/* 输入框容器 */
.password-input-container {
  margin-bottom: 15px;
}

/* 密码输入框 */
.password-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border 0.3s ease;
}

.password-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(33, 143, 206, 0.2);
}

/* 错误消息 */
.password-error {
  color: #e74c3c;
  font-size: 13px;
  margin-top: 8px;
  display: none;
}

/* 提交按钮 */
.password-submit {
  width: 100%;
  padding: 10px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.password-submit:hover {
  background-color: var(--primary-dark);
}

/* 淡入淡出动画 */
@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -60%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translate(-50%, -50%); }
  to { opacity: 0; transform: translate(-50%, -60%); }
}

.password-prompt.show {
  display: block;
  animation: fadeIn 0.3s ease forwards;
}

.password-prompt.hide {
  animation: fadeOut 0.3s ease forwards;
}

/* ===== 确保模态框中心定位 ===== */
.modal-dialog-centered {
  display: flex !important;
  align-items: center !important;
  min-height: calc(100% - 1rem);
}

/* 视频播放提示样式 */
.video-play-prompt {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 3;
  cursor: pointer;
}

.video-play-prompt div {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.video-play-prompt i {
  font-size: 3rem;
  margin-bottom: 10px;
}

.video-play-prompt span {
  font-size: 1.2rem;
  font-weight: 500;
}

/* ===== 响应式调整 ===== */
@media (max-width: 767.98px) {
  .desktop-only { display: none; }
  .mobile-only { display: block; }

  .mega-title { font-size: 3rem; }
  .hero-subtitle { font-size: 1.2rem; }

  .stats-row {
    flex-wrap: wrap;
    gap: 20px;
  }

  .stat-number { font-size: 2rem; }
  .section-title { font-size: 2rem; }
  .section-title::after { width: 60px; }

  .password-prompt {
    width: 90%;
    max-width: 300px;
  }
}

@media (max-width: 576px) {
  .mega-title { font-size: 2.3rem; }
  .hero-subtitle { font-size: 1rem; }

  .btn-hero {
    padding: 10px 30px;
    font-size: 1rem;
  }

  .hero-video { margin-bottom: -30px; }
  #main-content { padding-top: 30px; }

  .section-title { font-size: 1.8rem; }
  .section-title::after {
    width: 50px;
    height: 2px;
  }

  /* 调整移动端视频模态框 */
  #videoModal .modal-dialog {
    margin: 0.5rem;
  }
}