* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Poppins", "Microsoft YaHei", system-ui, -apple-system,
    sans-serif;
  background: #0a0a0a;
  color: #fff;
  overflow-x: hidden;
}

/* 导航栏 - 与index.html保持一致 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.02);
  backdrop-filter: blur(10px);
  padding: 15px 30px;
  transition: all 0.3s ease;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  color: white;
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 30px;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 30px;
}

.active_link {
  font-size: 20px;
  font-weight: 600;
}

.nav-menu li a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* 全屏案例容器 */
.cases-container {
  width: 100vw;
  min-height: 100vh;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
}

/* 布局行 */
.layout-row {
  display: flex;
  width: 100%;
  margin-bottom: 0;
}

/* 布局模式1: 左大右两小 */
.layout-left-big {
  display: flex;
  width: 100%;
  height: 600px;
}

.layout-left-big .big-card {
  flex: 2;
  height: 100%;
}

.layout-left-big .small-cards {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.layout-left-big .small-card {
  flex: 1;
  height: 50%;
}

/* 布局模式2: 三个小 */
.layout-three-small {
  display: flex;
  width: 100%;
  height: 300px;
}

.layout-three-small .small-card {
  flex: 1;
  height: 100%;
}

/* 布局模式3: 左两小右大 */
.layout-right-big {
  display: flex;
  width: 100%;
  height: 400px;
}

.layout-right-big .small-cards {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.layout-right-big .small-card {
  flex: 1;
  height: 50%;
}

.layout-right-big .big-card {
  flex: 2;
  height: 100%;
}

/* 案例卡片样式 */
.case-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.case-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  z-index: 10;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.case-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.5s ease-out;
}

.case-card:hover .case-image {
  transform: scale(1.2);
}

.case-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  opacity: 0;
  transition: all 0.4s ease;
  transform: translateY(20px);
}

.case-card:hover .case-overlay {
  opacity: 1;
  transform: translateY(0);
}

.case-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: white;
  transform: translateY(10px);
  transition: transform 0.3s ease 0.1s;
}

.case-card:hover .case-title {
  transform: translateY(0);
}

.case-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  transform: translateY(15px);
  transition: transform 0.3s ease 0.2s;
  max-width: 70%;
  margin: 0 auto;
}

.case-card:hover .case-description {
  transform: translateY(0);
}

.case-tag {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  backdrop-filter: blur(10px);
}

.banner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  height: 300px;
  background: #191f25;
  text-align: center;
}

.banner-title {
  font-size: 28px;
  font-weight: 500;
  color: white;
}

.banner-description {
  margin-top: 10px;
  color: #8c8f8f;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 20px;
    gap: 10px;
    border-radius: 0 0 15px 15px;
  }

  .nav-menu.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .navbar {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
  }

  .banner {
    height: 250px !important;
    padding: 30px 20px;
  }

  .banner-title {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .banner-description {
    font-size: 13px;
    opacity: 0.8;
  }

  /* 强制重写布局行 */
  .cases-container .layout-row {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 15px;
  }

  /* 强制重写左大右两小布局 */
  .cases-container .layout-left-big {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
  }

  .cases-container .layout-left-big .big-card {
    width: 100% !important;
    height: 300px !important;
    margin-bottom: 10px;
    flex: none !important;
  }

  .cases-container .layout-left-big .small-cards {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    height: 160px !important;
    gap: 10px;
    flex: none !important;
  }

  .cases-container .layout-left-big .small-card {
    flex: 1 !important;
    height: 100% !important;
  }

  /* 强制重写右大左两小布局 */
  .cases-container .layout-right-big {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    gap: 12px;
  }

  .cases-container .layout-right-big .big-card {
    width: 100% !important;
    height: 300px !important;
    margin-bottom: 10px;
    flex: none !important;
  }

  .cases-container .layout-right-big .small-cards {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    height: 160px !important;
    gap: 10px;
    flex: none !important;
  }

  .cases-container .layout-right-big .small-card {
    flex: 1 !important;
    height: 100% !important;
  }

  /* 强制重写三个小卡片布局 */
  .cases-container .layout-three-small {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    height: 180px !important;
    gap: 10px;
  }

  .cases-container .layout-three-small .small-card {
    flex: 1 !important;
    height: 100% !important;
  }

  .case-title {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .case-description {
    font-size: 12px;
    line-height: 1.3;
  }

  .case-overlay {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 12px 15px;
  }

  .logo {
    font-size: 20px;
  }

  .banner {
    height: 200px !important;
    padding: 35px 15px 0;
  }

  .banner-title {
    font-size: 18px;
    line-height: 1.4;
  }

  .banner-description {
    font-size: 12px;
    margin-top: 8px;
  }

  .cases-container .layout-row {
    margin-bottom: 12px;
  }

  .cases-container .layout-left-big .big-card {
    height: 250px !important;
    margin-bottom: 12px;
  }

  .cases-container .layout-left-big .small-cards {
    flex-direction: column !important;
    height: 524px !important;
    gap: 12px;
  }

  .cases-container .layout-left-big .small-card {
    flex: 1 !important;
    height: calc(50% - 6px) !important;
  }

  .cases-container .layout-right-big .big-card {
    height: 250px !important;
    margin-bottom: 12px;
  }

  .cases-container .layout-right-big .small-cards {
    flex-direction: column !important;
    height: 524px !important;
    gap: 12px;
  }

  .cases-container .layout-right-big .small-card {
    flex: 1 !important;
    height: calc(50% - 6px) !important;
  }

  .cases-container .layout-three-small {
    flex-direction: column !important;
    /* height: 750px !important; */
    height: 250px !important;
    gap: 12px;
  }

  .cases-container .layout-three-small .small-card {
    flex: 1 !important;
    height: calc(33.33% - 8px) !important;
  }

  .case-title {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .case-description {
    font-size: 11px;
    line-height: 1.3;
  }

  .case-overlay {
    padding: 12px;
  }

  .case-card:hover .case-image {
    transform: scale(1.1);
  }
}

/* 动画效果 */
.layout-row {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #111;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}
