/* 基础样式 */
:root {
  --header-height: 80px;
  --transition-speed: 0.3s;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 头部导航样式 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.header-inner {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  /* 减小logo和菜单的间距 */
}

.logo-section {
  flex-shrink: 0;
}

.logo-img {
  height: 20px;
}

.nav-menu {
  display: flex;
  gap: 20px;
  /* 减小菜单项间距 */
  flex-wrap: wrap;
  /* 允许菜单项换行 */
  align-items: center;
}

.nav-item {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  padding: 5px 10px;
  white-space: nowrap;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1000;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
}

/* 移动端菜单 */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 999;
  transition: right 0.3s ease;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo {
  height: 30px;
}

.mobile-close-btn {
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  padding: 10px;
}

.mobile-nav {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-nav-item {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.mobile-nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .header-inner {
      padding: 0 15px;
      gap: 20px;
  }

  .nav-menu {
      display: none;
      /* 隐藏原导航 */
  }

  .mobile-menu-btn {
      display: flex;
      /* 显示移动端菜单按钮 */
  }

  .header-inner {
      justify-content: space-between;
  }

}


@media (max-width: 480px) {
  .header {
      min-height: var(--header-height);
  }

  .header-inner {
      flex-wrap: wrap;
      padding: 10px;
  }

}

@media (max-width: 890px) {

  /* 导航相关 */
  .nav-menu {
      display: none;
      /* 隐藏原导航 */
  }

  .mobile-menu-btn {
      display: flex;
      /* 显示移动端菜单按钮 */
  }

  .header-inner {
      justify-content: space-between;
  }

}

/* 菜单打开时的按钮样式 */
.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.gc-case {
  padding: 100px 0;
  background: linear-gradient(to bottom, #f8fafc, #ffffff);
  position: relative;
  overflow: hidden;
}

/* 背景装饰 */
.gc-case::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(59, 130, 246, 0.02));
  transform: rotate(-12deg);
  border-radius: 100px;
}

.gc-case::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 150%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.02), rgba(59, 130, 246, 0.01));
  transform: rotate(12deg);
  border-radius: 100px;
}

.gc-case__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

/* 头部样式 */
.gc-case__header {
  text-align: center;
  margin-bottom: 80px;
}

.gc-case__badge {
  display: inline-block;
  padding: 10px 30px;
  background: linear-gradient(135deg, #02615e, #00928c);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border-radius: 30px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

.gc-case__title {
  font-size: 42px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.gc-case__desc {
  font-size: 16px;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* 列表样式 */
.gc-case__list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* 案例项样式 */
.gc-case__item {
  position: relative;
  padding: 60px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  transition: all 0.4s ease;
  z-index: 2;
}

.gc-case__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(to bottom, #02615e, #00928c);
  transition: height 0.6s ease;
}

.gc-case__item:hover::before {
  height: 100%;
}

/* 标签组样式 */
.gc-case__item-tags {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.gc-case__tag {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #00928c;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 30px;
  transition: all 0.3s ease;
}

.gc-case__tag:hover {
  background: rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

/* 标题样式 */
.gc-case__item-title {
  font-size: 32px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 20px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.gc-case__item:hover .gc-case__item-title {
  color: #00928c;
}

/* 描述文字样式 */
.gc-case__item-desc {
  font-size: 16px;
  line-height: 1.8;
  color: #64748b;
  margin-bottom: 30px;
  max-width: 800px;
}

/* 链接样式 */
.gc-case__item-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #00928c;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.gc-case__item-link:hover {
  border-bottom-color: currentColor;
  gap: 16px;
}

.gc-case__item-arrow {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.gc-case__item-link:hover .gc-case__item-arrow {
  transform: translateX(4px);
}

/* 分隔线 */
.gc-case__item::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(37, 99, 235, 0.1) 20%,
    rgba(37, 99, 235, 0.1) 80%,
    transparent
  );
}

.gc-case__item:last-child::after {
  display: none;
}

/* 渐入动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gc-case__item {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: calc(var(--item-index, 0) * 0.2s);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .gc-case {
    padding: 60px 0;
  }

  .gc-case__container {
    padding: 0 20px;
  }

  .gc-case__title {
    font-size: 32px;
  }

  .gc-case__item {
    padding: 40px 20px;
  }

  .gc-case__item-title {
    font-size: 26px;
  }

  .gc-case__list {
    gap: 60px;
  }

  .gc-case__item::after {
    bottom: -30px;
  }
}