/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow-x: hidden;
  font-family: 'Noto Sans SC', sans-serif;
  background-color: #000;
  color: #fff;
  scroll-behavior: smooth;
  /* 避免双重滚动问题 */
  overflow-y: visible;
}

/* 确保页面内容不会被重复滚动 */
body {
  position: relative;
}

/* 主题配色 */
:root {
  --primary-color: #000;
  --secondary-color: #1a1a1a;
  --accent-color: #00ffaa;
  --text-color: #ffffff;
  --text-secondary: #b0b0b0;
  --nav-bg: rgba(0, 0, 0, 0.7);
  --nav-bg-light: rgba(0, 0, 0, 0.4);
  --transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* 通用样式 */
a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, var(--accent-color), #00cc88);
  color: #000;
  font-weight: 500;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 255, 170, 0.3);
}

/* 首屏英雄区域 - 确保完全黑色背景 */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 视频背景 - 初始完全隐藏，只在动画触发后显示 */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0; /* 初始完全隐藏视频 */
  transform: scale(1.2);
  transition: all 1.5s ease-out;
  filter: blur(15px);
  z-index: 1;
}

.hero-video.playing {
  opacity: 1;
  transform: scale(1);
  filter: blur(0px); /* 播放时变得清晰 */
}

.hero-video.blur {
  filter: blur(8px);
  transform: scale(0.9);
}

/* 圆形遮罩 - 确保小全以外区域完全黑色 */
.circle-mask {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  /* 径向渐变：中心透明，边缘完全黑色，确保外部区域全黑 */
  background: radial-gradient(circle, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 1) 100%);
  transform: translate(-50%, -50%) scale(1);
  transition: all 1.8s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 2;
}

.circle-mask.expanded {
  /* 放大并淡出，模拟水墨消散效果 */
  transform: translate(-50%, -50%) scale(10);
  opacity: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 40%, rgba(0, 0, 0, 0) 80%);
  transition: all 1.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* 白色点缀圆圈 */
.white-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.3) 70%, rgba(255, 255, 255, 0) 100%);
  transform: translate(-50%, -50%);
  z-index: 1; /* 确保在森霖传媒文字后面 */
  animation: fadeInOut 4s ease-out forwards; /* 2秒出现，2秒消失 */
}

/* 白色圆圈淡入淡出动画 */
@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
}

/* 品牌文字放大翻转效果 */
.brand-text.fade-out {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5) rotateY(180deg); /* 缩小一倍的最终状态 */
  transition: all 1.5s cubic-bezier(0.6, -0.28, 0.735, 0.045); /* 增强动画效果的缓动函数 */
}

/* 品牌文字 */
.brand-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
  animation-delay: 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(2); /* 载入时放大一倍 */
  }
}

.brand-text h1 {
  font-size: 4rem;
  font-weight: 700;
  color: #fff;
  /* 增强发光效果并添加色散效果 */
  text-shadow: 
    /* 强烈的白色发光 */
    0 0 20px rgba(255, 255, 255, 0.8),
    0 0 40px rgba(255, 255, 255, 0.7),
    0 0 80px rgba(255, 255, 255, 0.6),
    0 0 160px rgba(255, 255, 255, 0.5),
    /* 色散效果 - 红、绿、蓝光偏移 */
    -2px 0 2px rgba(255, 0, 0, 0.5),
    2px 0 2px rgba(0, 255, 255, 0.5),
    0 -2px 2px rgba(0, 255, 0, 0.5);
  letter-spacing: 2px;
  transition: var(--transition);
  /* 添加微弱的动画效果增强色散感 */
  animation: glowPulse 2s ease-in-out infinite alternate;
}

/* 发光脉冲动画增强色散效果 */
@keyframes glowPulse {
  from {
    text-shadow: 
      0 0 20px rgba(255, 255, 255, 0.8),
      0 0 40px rgba(255, 255, 255, 0.7),
      0 0 80px rgba(255, 255, 255, 0.6),
      0 0 160px rgba(255, 255, 255, 0.5),
      -2px 0 2px rgba(255, 0, 0, 0.5),
      2px 0 2px rgba(0, 255, 255, 0.5),
      0 -2px 2px rgba(0, 255, 0, 0.5);
  }
  to {
    text-shadow: 
      0 0 30px rgba(255, 255, 255, 0.9),
      0 0 60px rgba(255, 255, 255, 0.8),
      0 0 120px rgba(255, 255, 255, 0.7),
      0 0 200px rgba(255, 255, 255, 0.6),
      -3px 0 3px rgba(255, 0, 0, 0.6),
      3px 0 3px rgba(0, 255, 255, 0.6),
      0 -3px 3px rgba(0, 255, 0, 0.6);
  }
}

.brand-text.fade-out {
  transform: translate(-50%, -50%) scale(1.5);
  opacity: 0;
}

/* Slogan文本 */
.slogan-text {
  position: absolute;
  top: 75%; /* 从65%增加到75%，使元素再往下移动 */
  left: 50%;
  transform: translate(-50%, 50%) scale(0.8); /* 增加初始位置向下偏移和缩小效果 */
  z-index: 3;
  text-align: center;
  opacity: 0;
  transition: all 1.2s cubic-bezier(0.25, 0.1, 0.25, 1); /* 增加过渡时间 */
  pointer-events: none;
}

.slogan-text.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1); /* 增加放大效果 */
}

.slogan-text h2 {
  font-size: 2.5rem;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.slogan-text p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 300;
  letter-spacing: 2px;
}

/* 滚动指示器 */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 2s;
  cursor: pointer;
  transition: var(--transition);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.scroll-indicator span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.scroll-indicator i {
  display: block;
  font-size: 1.5rem;
  color: var(--text-color);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* 页面容器样式 */
.page-container {
  display: none;
  position: relative;
  min-height: 100vh;
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 0;
  transform: translateY(20px);
}

.page-container.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* 导航栏 */
.navbar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
  transition: var(--transition);
  opacity: 0;
  /* 确保导航栏不会产生额外滚动 */
  max-height: 80px;
  overflow: visible;
}

.navbar.visible {
  opacity: 1;
}

.navbar.sticky {
  position: fixed;
  top: 0;
  bottom: auto;
  background: var(--nav-bg-light);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  /* 确保吸顶时导航栏高度一致 */
  max-height: 70px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  /* 减小导航栏高度 */
  height: auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.logo:hover {
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-color);
  position: relative;
  padding: 8px 0;
  transition: var(--transition);
}

.nav-item > a:hover {
  color: var(--accent-color);
  text-shadow: 0 0 15px rgba(0, 255, 170, 0.5);
}

.nav-item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition);
}

.nav-item > a:hover::after {
  width: 100%;
}

/* 下拉菜单 */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 10px;
  padding: 15px 0;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition);
  z-index: 1000;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(10px);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: var(--transition);
}

.dropdown-menu a:hover {
  color: var(--accent-color);
  background: rgba(0, 255, 170, 0.1);
  text-shadow: 0 0 10px rgba(0, 255, 170, 0.5);
}

/* 汉堡菜单 */
.burger {
  display: none;
  cursor: pointer;
  /* 调整汉堡菜单位置 */
  padding: 5px;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px;
  transition: var(--transition);
}

/* 移动端导航样式 */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: auto;
}

.close-burger {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--text-color);
  font-size: 2rem;
  cursor: pointer;
}

.mobile-nav .nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.mobile-nav .nav-item a {
  font-size: 1.5rem;
  color: var(--text-color);
}

/* 主要内容区域 */
.main-content {
  background: var(--secondary-color);
  position: relative;
  z-index: 1;
  /* 确保内容不会被导航栏遮挡 */
  padding-top: 0;
  margin-top: 0;
}

/* 服务部分 */
.services-section {
  padding: 100px 0;
  text-align: center;
}

/* 响应式修复：在小屏幕设备上减少services-section的底部padding，避免与concept-section之间出现过大缝隙 */
@media screen and (max-width: 768px) {
  .services-section {
    padding: 80px 0 40px;
  }
}

.services-section h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--text-color);
  position: relative;
  display: inline-block;
}

.services-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-color);
}

.service-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.icon-item {
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.icon-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-color);
}

.icon-item i {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(0, 255, 170, 0.5);
}

.icon-item span {
  display: block;
  font-size: 1.2rem;
  color: var(--text-color);
  font-weight: 500;
}

/* 品牌理念部分 */
.concept-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  text-align: center;
}

/* 响应式修复：在小屏幕设备上减少concept-section的顶部padding，确保与services-section更好地衔接 */
@media screen and (max-width: 768px) {
  .concept-section {
    padding: 60px 0 80px;
  }
}

.concept-section h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--text-color);
  position: relative;
  display: inline-block;
}

.concept-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-color);
}

.concept-section p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 20px auto;
}

/* 精选案例预览 */
.cases-preview {
  padding: 100px 0;
  text-align: center;
  background: var(--primary-color);
}

.cases-preview h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.cases-preview p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* 页脚 */
footer {
  background: var(--primary-color);
  padding: 50px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

/* 页面容器样式 */
.page-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  z-index: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  background: var(--primary-color);
}

.page-container.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  z-index: 10;
  animation: pageIn 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@keyframes pageIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 快速链接样式 */
.footer-links ul li,
.footer-column ul li {
  margin-bottom: 0.8rem; /* 添加行间距 */
}

.footer-links ul li a,
.footer-column ul li a {
  position: relative;
  text-decoration: none;
  padding-bottom: 3px;
}

.footer-links ul li a::after,
.footer-column ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.footer-links ul li a:hover::after,
.footer-column ul li a:hover::after {
  transform: scaleX(1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--text-color);
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--accent-color);
}

.footer-column p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent-color);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 255, 170, 0.3);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .hero-section {
    height: 100vh;
  }
  
  .brand-text h1 {
    font-size: 3.5rem;
  }
  
  .slogan-text h2 {
    font-size: 2rem;
  }
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  
  .burger {
    display: block;
  }
  
  .brand-text h1 {
    font-size: 3rem;
  }
  
  .slogan-text h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .circle-mask {
    width: 150px;
    height: 150px;
  }
  
  .brand-text h1 {
    font-size: 2.5rem;
  }
  
  .slogan-text h2 {
    font-size: 1.5rem;
  }
  
  .slogan-text p {
    font-size: 1rem;
  }
  
  .services-section,
  .concept-section,
  .cases-preview {
    padding: 80px 0;
  }
  
  .service-icons {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 576px) {
  .circle-mask {
    width: 120px;
    height: 120px;
  }
  
  .brand-text h1 {
    font-size: 2rem;
  }
  
  .slogan-text h2 {
    font-size: 1.2rem;
  }
  
  .scroll-indicator {
    bottom: 30px;
  }
  
  .nav-container {
    padding: 15px 0;
  }
  
  .logo {
    font-size: 1.5rem;
  }
}

/* 移动端菜单 */
@media (max-width: 992px) {
  .mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1001;
  }
  
  .mobile-nav.active {
    right: 0;
  }
  
  .mobile-nav .nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .mobile-nav .nav-item {
    width: 100%;
  }
  
  .mobile-nav .nav-item > a {
    font-size: 1.5rem;
    display: block;
  }
  
  .close-burger {
    position: absolute;
    top: 30px;
    right: 30px;
    cursor: pointer;
  }
}

/* 动画效果增强 */
@keyframes breathing {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

.slogan-text.show h2 {
  animation: breathing 3s ease-in-out infinite;
}

/* 关于我们页面样式 */
.about-hero {
  height: 50vh;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/about-hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.about-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.about-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.about-content {
  padding: 4rem 0;
}

.company-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.company-intro h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.company-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.company-values {
  margin: 3rem 0;
}

.company-values h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.value-item {
  text-align: center;
  padding: 2rem;
  background: var(--secondary-color);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.value-item:hover {
  transform: translateY(-10px);
}

.value-item i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.value-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.value-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.development-history {
  background: var(--secondary-color);
  padding: 4rem 0;
}

.development-history h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--accent-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-year {
  position: absolute;
  top: 15px;
  width: 80px;
  padding: 5px;
  background: var(--accent-color);
  color: #000;
  text-align: center;
  font-weight: bold;
  border-radius: 4px;
}

.timeline-item:nth-child(odd) .timeline-year {
  right: -40px;
}

.timeline-item:nth-child(even) .timeline-year {
  left: -40px;
}

.timeline-content {
  padding: 20px;
  background-color: var(--primary-color);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
  margin-top: 0;
  color: var(--text-color);
}

.timeline-content p {
  margin-bottom: 0;
  color: var(--text-secondary);
}

.office-environment {
  padding: 4rem 0;
}

.office-environment h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.office-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.office-gallery img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.office-gallery img:hover {
  transform: scale(1.05);
}

/* 案例作品页面样式 */
.cases-hero {
  height: 50vh;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/cases-hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.cases-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.cases-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.cases-content {
  padding: 4rem 0;
}

.cases-filter {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.cases-filter button {
  padding: 0.8rem 1.5rem;
  border: 1px solid #333;
  background: transparent;
  color: var(--text-color);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.cases-filter button:hover {
  background: var(--accent-color);
  color: #000;
  border-color: var(--accent-color);
}

.cases-filter button.active {
  background: var(--accent-color);
  color: #000;
  border-color: var(--accent-color);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.case-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  background: var(--secondary-color);
}

.case-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-container,
.image-container {
  height: 480px;
  aspect-ratio: 9/16;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.video-container video,
.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-card:hover .video-container video,
.case-card:hover .image-container img {
  transform: scale(1.05);
}

.case-info {
  padding: 1.5rem;
}

.case-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--accent-color);
  color: #000;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.case-info h3 {
  margin: 0 0 0.8rem 0;
  color: var(--text-color);
  font-size: 1.3rem;
}

.case-info p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.case-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.load-more {
  text-align: center;
  margin-top: 3rem;
}

.load-more button {
  padding: 1rem 2rem;
  border: 1px solid var(--accent-color);
  background: transparent;
  color: var(--accent-color);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.load-more button:hover {
  background: var(--accent-color);
  color: #000;
}

/* 灯箱样式 */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  overflow: hidden;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 100%;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: var(--accent-color);
}

.lightbox-nav {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
}

.lightbox-nav button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox-nav button:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* 联系我们页面样式 */
.contact-hero {
  height: 50vh;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/contact-hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.contact-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.contact-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.contact-content {
  padding: 4rem 0;
}

.contact-content .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h2,
.contact-form-container h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.info-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-card {
  padding: 2rem;
  background: var(--secondary-color);
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.info-card i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.info-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.info-card p {
  color: var(--text-secondary);
  margin: 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--secondary-color);
  border-radius: 50%;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--accent-color);
  color: #000;
  transform: translateY(-5px);
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 0.8rem;
  border: 1px solid #333;
  background: transparent;
  color: var(--text-color);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

.btn-submit {
  padding: 1rem;
  background: var(--accent-color);
  color: #000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.btn-submit:hover {
  background: #00cc88;
}

.map-section {
  padding: 3rem 0;
  background: var(--secondary-color);
}

.map-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.map-container {
  height: 400px;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
}

.map-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
}

/* 团队介绍页面样式 */
.team-hero {
  height: 50vh;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/team-hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.team-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.team-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.team-section {
  padding: 4rem 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.team-card {
  background: var(--secondary-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-image {
  height: 450px;
  aspect-ratio: 9/16;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-image img {
  transform: scale(1.05);
}

.team-info {
  padding: 1.5rem;
  text-align: center;
}

.team-info h3 {
  margin: 0 0 0.5rem 0;
  color: var(--text-color);
  font-size: 1.3rem;
}

.team-info .position {
  color: var(--accent-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

.team-info .quote {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.team-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.team-social a:hover {
  background: var(--accent-color);
  color: #000;
}

/* 服务内容页面样式 */
.works-hero {
  height: 50vh;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/works-hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.works-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.works-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.works-content {
  padding: 4rem 0;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.work-item {
  background: var(--secondary-color);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.work-icon {
  width: 80px;
  height: 80px;
  background: rgba(0, 255, 170, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
  font-size: 2.5rem;
}

.work-item h3 {
  margin: 0 0 1rem 0;
  color: var(--text-color);
  font-size: 1.4rem;
}

.work-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.work-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.work-item li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
}

.work-item li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

.process-section {
  background: var(--secondary-color);
  padding: 4rem 0;
}

.process-section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  color: var(--text-color);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.process-step {
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  background: var(--accent-color);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 auto 1.5rem;
  transition: transform 0.3s ease;
}

.process-step:hover .step-number {
  transform: scale(1.1);
}

.process-step h3 {
  margin: 0 0 0.8rem 0;
  color: var(--text-color);
  font-size: 1.2rem;
}

.process-step p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .about-hero h1,
  .cases-hero h1,
  .contact-hero h1,
  .team-hero h1,
  .works-hero h1 {
    font-size: 2.5rem;
  }
  
  .contact-content .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-year {
    left: 0 !important;
    right: auto !important;
  }
  
  .cases-grid,
  .works-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .process-steps {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

/* 性能优化 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}