
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #191c24;
  color: #eee;
}
header {
  width: 90%; /* 调整宽度，让左右留出空间 */
  background: rgba(20,20,25,0.85); /* 半透明更高级 */
  position: fixed;
  top: 20px; /* 从顶部留出一点距离 */
  left: 50%; /* 让header居中 */
  transform: translateX(-50%); /* 配合居中显示 */
  z-index: 100;
  border-radius: 12px; /* 圆角效果更现代 */
  backdrop-filter: blur(10px); /* 毛玻璃效果（可选） */
  box-shadow: 0 4px 20px rgba(0,0,0,0.2); /* 立体阴影感 */
  border-bottom: none; /* 去除原边框 */
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  height: 68px;
  position: relative; /* ✅ 添加这行 */
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px; /* logo与文字间距 */
}

.logo-text {
  font-size: 1.4em; /* 比导航菜单文字大一些 */
  font-weight: 600; /* 字体稍粗一些 */
  color: #ffffff; /* 白色清晰显示 */
  letter-spacing: 1px; /* 字间距，增强高级感 */
}
.logo img {
  height: 48px;
  width: auto;
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links li {
  position: relative;
}
.nav-links a {
  color: #eee;
  text-decoration: none;
  padding: 8px 12px;
  font-weight: 500;
  font-size: 1.05em;
  border-radius: 6px;
  transition: background 0.15s;
}
.nav-links a:hover {
  background: #292e39;
}
.dropdown-content {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  background: #252732;
  min-width: 180px;
  z-index: 1;
  border-radius: 8px;
  margin-top: 6px;
  box-shadow: 0 8px 24px #0005;
  transform: translateY(-10px);
  transition: all 0.3s ease-in-out;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-content li a {
  display: block;
  padding: 12px 18px;
}
.hero {
  position: relative;
  height: 70vh;
  min-height: 440px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px; /* 渐变高度，可自由调整 */
  background: linear-gradient(to bottom, transparent, #21232d); /* 视频到下面背景色的渐变 */
  z-index: 1;
}
#bg-video {
  position: absolute;
  top: 0; left: 0;
  width: 100vw;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.55);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 700px;
  margin: 0 auto;
}
.hero-content h1 {
  font-size: 2.7em;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.2em;
  text-shadow: 0 4px 20px #000c;
}
.hero-content p {
  font-size: 1.3em;
  margin-bottom: 1.5em;
  color: #dde0ea;
}
.cta-btn {
  padding: 0.65em 2.2em;
  font-size: 1em;
  background: #4c8ff7;
  color: #fff;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin: 0 8px;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 14px #0003;
  cursor: pointer;
  display: inline-block;
}
.cta-btn.secondary {
  background: #222b3b;
  color: #b8c9fa;
}
.cta-btn:hover {
  background: #425ecc;
}
.services {
  background: #21232d;
  padding: 60px 0 50px;
  text-align: center;
}
.services h2 {
  font-size: 2em;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 36px;
  color:  #ffffff;
}
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 32px;
  max-width: 1050px;
  margin: 0 auto;
}

.service-item {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  margin: 20px;
  background: #2b2f3a;
  z-index: 0; /* 保证正常图层顺序 */
min-height: 270px;
}

.service-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid transparent;
  border-radius: 5px;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1;
}
.service-item:hover::after {
  border-color: rgba(76, 143, 247, 0.8);
  box-shadow: 0 0 12px 4px rgba(76, 143, 247, 0.6);
}


.service-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.service-item:hover img {
  transform: scale(1.05); /* 放大图片，容器大小不变，超出部分裁剪隐藏 */
}

.service-item h3 {
  position: relative;
  z-index: 1; /* 标题在最上方，确保清晰显示 */
  margin: 0 0 16px 0;
  font-size: 1.2em;
  color: #aad2ff;
}
.service-item p {
  position: relative;
  z-index: 1; /* 文字也要在最上方 */
  font-size: 1em;
  color: #c2e0ff;
}

.featured-expanding {
  text-align: center;
  background: #181a20;
  padding: 60px 20px;
}

.featured-expanding h2 {
  font-size: 2em;
  color: #aad2ff;
  margin-bottom: 30px;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.tab-button {
  background: #2b2f3a;
  color: #fff;
  padding: 10px 20px;
  border: none;
  font-size: 1em;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s ease;
}

.tab-button:hover,
.tab-button.active {
  background: #4c8ff7;
}

.tab-contents {
  position: relative;
  height: 700px;
  display: flex;
  justify-content: center; /* ✅ 水平居中内容 */
}

.tab-content {
  position: absolute;
  top: 0;
  left: 50%; /* 从左侧一半起始 */
  transform: translate(-50%, 0); /* 向左偏移自身宽度一半，居中 */
  width: 100%;
  max-width: 1500px;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.tab-content.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transform: translate(-50%, 0); /* 保持居中 */
}

.image-wrapper {
  position: relative;
}

.image-wrapper img {
  width: 100%;
  height: 700px;           /* ✅ 统一高度 */
  object-fit: cover;       /* ✅ 超出裁切不拉伸 */
  display: block;
  border-radius: 8px;
}

.tab-content .description {
  position: absolute;
  bottom: 20px;
  left: 30px;
  background: rgba(0,0,0,0.5);
  padding: 20px 25px;
  border-radius: 10px;
  max-width: 60%;
  color: white;
  text-align: left;
}


.image-wrapper .description h3 {
  font-size: 1.8em;
  color: #aad2ff;
  margin-bottom: 10px;
}

.image-wrapper .description p {
  font-size: 1em;
  line-height: 1.4;
  color: #e6f2ff;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.contact {
  background: #222;
  color: #e8e8e8;
  padding: 55px 0 45px;
  text-align: center;
}
.contact h2 {
  font-size: 2em;
  color: #a3bbff;
  margin-bottom: 30px;
}
.quote-form {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}
.quote-form input, .quote-form textarea, .quote-form select {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 7px;
  border: 1px solid #434a6b;
  background: #181b22;
  color: #e8e8e8;
  font-size: 1em;
  resize: none;
  box-sizing: border-box;
  font-family: inherit;
}
.quote-form textarea { min-height: 110px; }
.quote-form button {
  padding: 12px 32px;
  border-radius: 8px;
  background: #4273f7;
  color: #fff;
  font-size: 1.1em;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.14s;
}
.quote-form button:hover { background: #365dc8; }
footer {
  background: #17181f;
  text-align: center;
  padding: 26px 0 14px;
  color: #7e889d;
  border-top: 1px solid #202226;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footer-logo {
  height: 36px;
  margin-bottom: 10px;
  opacity: 0.85;
}
@media (max-width: 768px) {
  .navbar { padding: 0 12px; height: 56px; }
  .logo img { height: 36px; }
  .hero-content h1 { font-size: 1.5em; }
  .service-list { grid-template-columns: 1fr; }
  .portfolio-gallery img { width: 98vw; height: 140px; }
  .quote-form { padding: 0 10px; }
}



/* === Testimonial Slider === */
.testimonials-slider {
  background: #1c1e26;
  padding: 60px 20px;
  color: white;
  text-align: center;
}
.testimonials-slider h2 {
  margin-bottom: 40px;
  font-size: 2em;
  color: #aad2ff;
}
.slider {
  display: flex;
  overflow: hidden;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}
.slide {
  flex: 0 0 100%;
  opacity: 0;
  transform: translateX(100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.6s ease;
}
.slide img {
  width: 250px;
  height: 250px;
  border-radius: 10px;
  object-fit: cover;
  margin-right: 40px;
}
.testimonial-text {
  max-width: 500px;
  text-align: left;
}
.slide.active {
  opacity: 1;
  transform: translateX(0);
}
.slider-controls {
  margin-top: 20px;
}
.slider-controls button {
  background-color: transparent;
  border: 2px solid #aad2ff;
  color: #aad2ff;
  padding: 10px 16px;
  font-size: 20px;
  cursor: pointer;
  margin: 0 8px;
  border-radius: 4px;
}

.testimonials-slider {
  background: #1c1e26;
  padding: 60px 20px;
  color: white;
  text-align: center;
}
.testimonials-slider h2 {
  margin-bottom: 40px;
  font-size: 2em;
  color: #aad2ff;
}
.slider {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 0 auto;
  overflow: hidden;
}
.slide {
  width: 100%;
  position: absolute;
  top: 0;
  left: 100%;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.6s ease;
}
.slide.active {
  left: 0;
  opacity: 1;
  position: relative;
}
.slide img {
  width: 250px;
  height: 250px;
  border-radius: 10px;
  object-fit: cover;
  margin-right: 40px;
}
.testimonial-text {
  max-width: 500px;
  text-align: left;
}
.slider-controls {
  margin-top: 20px;
}
.slider-controls button {
  background-color: transparent;
  border: 2px solid #aad2ff;
  color: #aad2ff;
  padding: 10px 16px;
  font-size: 20px;
  cursor: pointer;
  margin: 0 8px;
  border-radius: 4px;
}

.portfolio {
  background: #181a20;
  padding: 60px 20px;
  text-align: center;
}
.portfolio h2 {
  font-size: 2em;
  color: #aad2ff;
  margin-bottom: 40px;
}
.portfolio-gallery {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.portfolio-item {
  position: relative;
  width: 300px;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
  filter: grayscale(100%); /* 初始灰色 */
}
.portfolio-item:hover img {
  transform: scale(1.05);
  filter: grayscale(0%); /* 变彩色 */
}
.overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px); /* 模糊背景 */
  color: #fff;
  width: 100%;
  text-align: center;
  padding: 12px;
  font-size: 1.1em;
  transition: all 0.3s ease;
}

.hamburger {
  display: none;
}

.work-process {
  background: #1b1d25;
  color: #e0e6f0;
  padding: 60px 20px;
  text-align: center;
}
.work-process h2 {
  font-size: 2em;
  color: #aad2ff;
  margin-bottom: 40px;
}
.process-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}
.step {
  background: #232530;
  padding: 25px;
  border-radius: 10px;
  width: 240px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}
.step:hover {
  transform: translateY(-5px);
}
.step-number {
  display: block;
  font-size: 1.4em;
  font-weight: bold;
  color: #4c8ff7;
  margin-bottom: 10px;
}
.step h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #ffffff;
}
.step p {
  font-size: 0.95em;
  line-height: 1.4;
  color: #ccd4e2;
}

.portfolio-gallery-page {
  background: #181a20;
  padding: 60px 20px;
  text-align: center;
}
.portfolio-gallery-page h2 {
  font-size: 2em;
  color: #aad2ff;
  margin-bottom: 40px;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.portfolio-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  cursor: pointer;
}
.portfolio-item img:hover {
  transform: scale(1.03);
}
#lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px #000;
}

.hero-portfolio {
 background: url('../media/portfoliocover.jpg') center center/cover no-repeat;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-portfolio::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}

.hero-portfolio .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.hero-portfolio h1 {
  font-size: 2.5em;
  margin-bottom: 0.5em;
}

.hero-portfolio p {
  font-size: 1.2em;
  color: #dde4f0;
}

}

/* ----------- Responsive Design for Mobile ----------- */

@media (min-width: 769px) {
  .hamburger {
    display: none !important;  /* ✅ 强制隐藏 */
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    background-color: #1a1b23;
    padding: 20px 10px;
    z-index: 150;
  }

.logo-text {
  display: none;
}
  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
    position: absolute;
    right: 20px;
    top: 16px;
    font-size: 28px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 200;
  }


  .nav-links li {
    text-align: left;
    padding: 10px 20px;
  }

.dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* PC 悬浮展开 */
.dropdown:hover .dropdown-content {
  max-height: 1000px;
}

/* 移动端点击展开：你需要添加 .open 类控制 */
.nav-links .dropdown.open .dropdown-content {
  max-height: 1000px;
}

 .tab-contents {
    position: relative;
    height: auto;
    display: block;
  }

  .tab-content {
    position: relative !important;
    width: 100%;
    max-width: 100%;
    transform: none !important;
    left: auto !important;
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    transition: none;
  }

  .tab-content.active {
    opacity: 1;
    visibility: visible;
    height: auto;
    overflow: visible;
    margin-bottom: 30px;
  }


  .image-wrapper img {
    height: auto;
    max-height: 60vh;
    object-fit: cover;
  }

  .image-wrapper .description {
    position: static;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 8px;
    margin-top: -10px;
    max-width: 100%;
    text-align: left;
  }

  .image-wrapper .description h3 {
    font-size: 1.2em;
  }

  .image-wrapper .description p {
    font-size: 0.95em;
  }
}