

.nav a {
  font-size: 20px;
  font-weight: bolder;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  letter-spacing: normal;
}

.modal-content {
  animation: modalEntrance 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes modalEntrance {
  0% {
    opacity: 0;
    transform: translateY(50px) rotateX(30deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* 轮播图开始 */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slides {
  position: relative;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 130%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 1rem;
  cursor: pointer;
  font-size: 1.5rem;
  transition: 0.3s;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(106, 90, 249, 0.8);
}

.carousel-prev {
  left: 2rem;
}

.carousel-next {
  right: 2rem;
}

.carousel-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: 0.3s;
}

.carousel-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* 轮播图结束 */

:root {
  --primary: #6a5af9;
  --secondary: #ff66c4;
  --neon: #6efcfc;
  --dark: #080817;
  --content-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* font-family: "Orbitron", "Roboto", sans-serif; */
}

body {
  background: var(--dark);
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 增强导航 */
.nav {
  background: rgba(8, 8, 23, 0.95);
  padding: 1.5rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(106, 90, 249, 0.3);
  display: flex;
  gap: 2rem;
  padding: 1.5rem;
  background: rgba(8, 8, 23, 0.95);
}

.nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 2rem;
  position: relative;
  padding: 0.5rem 0;
  transition: 0.3s;
}

.nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: 0.3s;
}

.nav a:hover::after {
  width: 100%;
}

/* 主视觉全屏动画 */
.hero {
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary), transparent 60%);
  filter: blur(100px);
  opacity: 0.3;
  animation: pulse 6s infinite;
}



/* 公司简介 */
.about-section {
  padding: 8rem 10%;
  background: #13132e;
  position: relative;
}

.about-container {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  height: 400px;
  border-radius: 15px;
  /* background: url(https://picsum.photos/800/600?random=4) center/cover; */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.about-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(106, 90, 249, 0.2), transparent);
}

/* 作品分类 */
.portfolio-section {
  padding: 5rem 10%;
  position: relative;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--content-width);
  margin: 2rem auto;
}

.category-card {
  border: 1px solid rgba(106, 90, 249, 0.3);
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(106, 90, 249, 0.2);
}

.card-image {
  height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: 0.5s;
}

.card-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 60%, rgba(8, 8, 23, 0.9));
}

/* 模态框全息效果 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  padding: 2rem;
  overflow-y: auto;
}

.modal-content {
  max-width: 1000px;
  margin: 2rem auto;
  background: rgba(8, 8, 23, 0.95);
  border-radius: 15px;
  padding: 2rem;
  position: relative;
  animation: modalShow 0.3s ease;
  border: 1px solid rgba(106, 90, 249, 0.3);
  box-shadow: 0 0 50px rgba(106, 90, 249, 0.2);
  display: flex;
  flex-direction: column;
}

.modal-content::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    var(--primary),
    var(--secondary),
    transparent
  );
  z-index: -1;
  filter: blur(20px);
}

.contact-section {
  padding: 5rem 10%;
  text-align: center;
  position: relative;
}

@keyframes modalShow {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .nav a {
    margin: 0 1rem;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .about-container {
    grid-template-columns: 1fr;
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-header {
  text-align: center;
  margin-bottom: 3rem;
}

.category-filter {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  position: relative;
}

.category-filter::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(106, 90, 249, 0.2);
}

.filter-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  font-size: 18px;
}

.filter-btn.active {
  color: var(--neon);
  background: rgba(106, 90, 249, 0.1);
}

.filter-btn.active::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: var(--primary);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .category-filter {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

.contact-section {
  background: linear-gradient(45deg, #0a0a1a, #13132e);
  text-align: center;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto 3rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 2rem;
  transition: transform 0.3s ease;
  border: 1px solid rgba(106, 90, 249, 0.2);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(106, 90, 249, 0.1);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: rgba(106, 90, 249, 0.1);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--neon);
}

.contact-info h3 {
  color: var(--neon);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.icp-info {
  border-top: 1px solid rgba(106, 90, 249, 0.2);
  padding-top: 2rem;
}

.icp-info a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.icp-info a:hover {
  color: var(--neon);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .contact-card {
    padding: 1.5rem;
  }
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.portfolio-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  background: var(--dark);
}

.item-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* 悬停遮罩效果 */
.item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 40%,
    rgba(8, 8, 23, 0.9) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .item-overlay {
  opacity: 1;
}

.item-title {
  color: #ffd700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.view-btn {
  background: linear-gradient(45deg, #ffd700, #ffa500);
  border: none;
  padding: 0.8rem 1.5rem;
  color: var(--dark);
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.view-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
  }

  .item-overlay {
    padding: 1rem;
  }

  .item-title {
    font-size: 1.2rem;
  }
}

/* 在css/styles.css中添加以下样式 */
.category-filter {
  position: relative;
  padding: 1.5rem 0;
  margin: 2rem 0;
}

.filter-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  /* font-family: "Orbitron", sans-serif; */
  font-weight: 500;
  letter-spacing: 1px;
}

.filter-btn::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.filter-btn:hover {
  color: var(--neon);
  background: rgba(106, 90, 249, 0.1);
}

.filter-btn.active {
  color: var(--neon);
  background: linear-gradient(45deg, rgba(106, 90, 249, 0.15), transparent);
}

.filter-btn.active::after {
  width: 60%;
}

/* 新增背景光效 */
.category-filter::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(106, 90, 249, 0.5),
    transparent
  );
  filter: blur(1px);
}

/* 内容容器 */
.modal-content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  min-height: 300px;
  background: #080817;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 图片容器终极居中方案 */
.image-container {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 30px;
}

/* 图片显示优化 */
#detail-image {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

/* 导航按钮新布局 */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

.nav-btn:hover {
  background: rgba(106, 90, 249, 0.8);
  transform: translateY(-50%) scale(1.1);
}

/* 移动端优化 */
@media (max-width: 768px) {
  .modal-content {
    max-width: 95vw;
    min-height: 50vh;
  }

  .image-container {
    padding: 20px 10px;
  }

  #detail-image {
    max-height: 70vh;
  }

  .nav-btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
    bottom: 10px;
    top: auto;
    transform: none;
  }

  .prev-btn {
    left: 50%;
    margin-left: -50px;
  }

  .next-btn {
    right: 50%;
    margin-right: -50px;
  }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
  #detail-image {
    max-height: 60vh;
  }
  .nav-btn {
    bottom: 5px;
    margin: 0 10px;
  }
}

.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  transition: 0.3s;
}

.modal-close:hover {
  color: var(--secondary);
}

/* 切换语言 */
.language-switcher {
  position: fixed;
  top: 1rem;
  right: 2rem;
  z-index: 1001;
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

.lang-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  transition: 0.3s;
}

.lang-btn:hover {
  background: var(--primary);
}

.lang-btn.active {
  background: var(--secondary);
  box-shadow: 0 0 10px rgba(255, 102, 196, 0.3);
}

/* 移动端样式 */
@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  .menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(8, 8, 23, 0.98);
  }

  .hamburger {
    color: white;
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .menu-items {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 70%;
    height: calc(100vh - 70px);
    background: rgba(8, 8, 23, 0.98);
    backdrop-filter: blur(10px);
    transition: 0.3s;
    padding: 1rem;
  }

  /* 激活状态 */
  .mobile-menu.active .menu-items {
    left: 0;
  }

  /* 菜单项样式 */
  .menu-items a {
    display: block;
    color: white;
    padding: 1.2rem;
    position: relative;
    border-left: 3px solid transparent;
    transition: 0.3s;
    text-decoration: none;
    font-size: 16px;
  }

  /* 当前选中项 */
  .menu-items a.active {
    border-left-color: #6a5af9;
    padding-left: 1.5rem;
  }

  /* 文字截断 */
  .menu-items a:nth-child(2) {
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.trusted-clients-static {
  border-bottom: 1px solid rgba(106, 90, 249, 0.3);
  padding: 1.5rem 0;
  margin: 0 2rem;
}

.trusted-header {
  max-width: 1200px;
  text-align: center;
  margin: 0 auto 3rem;
}

.trusted-header h2 {
  font-size: 2.5rem;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 3rem;
  text-align: center;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
  max-width: 1440px;
  margin: 0 auto;
}

.client-grid img {
  width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: filter 0.3s ease;
}

.client-grid img:hover {
  filter: grayscale(30%);
}

@media (min-width: 1200px) {
  .client-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 1200px) {
  .client-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .client-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .client-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

#about {
  scroll-margin: 10vh 0;
}

#portfolio {
  scroll-margin: 10vh 0;
}
#cooperate {
  scroll-margin: 10vh 0;
}

#contact {
  scroll-margin: 5vh 0;
}
