/* 首页样式 - 科技感高端风格 (Structural Redesign) */
:root {
  --zh-primary: #00f2ff;
  --zh-secondary: #7000ff;
  --zh-accent: #ff0055;
  --zh-dark-bg: #030508;
  --zh-card-bg: rgba(255, 255, 255, 0.03);
  --zh-card-border: rgba(255, 255, 255, 0.05);
  --zh-text-main: #ffffff;
  --zh-text-muted: #8b9bb4;
  --zh-gradient: linear-gradient(135deg, #00f2ff 0%, #7000ff 100%);
  --zh-gradient-hover: linear-gradient(135deg, #00c8d4 0%, #5a00cc 100%);
  --zh-glow: 0 0 20px rgba(0, 242, 255, 0.3);
}

body {
  background-color: var(--zh-dark-bg);
  color: var(--zh-text-main);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #050a14;
}

::-webkit-scrollbar-thumb {
  background: #2d3748;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--zh-primary);
}

/* 通用容器 */
.zh_container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* 按钮样式 */
.zh_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.zh_btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.zh_btn:hover::before {
  left: 100%;
}

.zh_btn_primary {
  background: var(--zh-gradient);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
}

.zh_btn_primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(112, 0, 255, 0.4);
}

.zh_btn_outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(5px);
}

.zh_btn_outline:hover {
  border-color: var(--zh-primary);
  background: rgba(0, 242, 255, 0.1);
  color: var(--zh-primary);
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

/* Hero 区域 - Split Screen Layout */
.zh_hero {
  position: relative;
  height: 100vh;
  min-height: 800px;
  display: flex;
  align-items: center;
  background: #030508;
  overflow: hidden;
  padding-top: 80px;
  /* Header spacing */
}

/* 动态背景 */
.zh_hero_bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.zh_hero_bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(112, 0, 255, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  animation: pulse 10s infinite alternate;
}

.zh_hero_bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(0, 242, 255, 0.1) 0%, transparent 70%);
  filter: blur(60px);
  animation: pulse 8s infinite alternate-reverse;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.zh_hero_grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  z-index: 1;
}

.zh_hero_content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 10;
}

.zh_hero_text {
  text-align: left;
}

.zh_hero_visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 3D Visual Placeholder */
.zh_tech_sphere {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 242, 255, 0.1), transparent);
  border: 1px solid rgba(0, 242, 255, 0.2);
  position: relative;
  animation: rotate 20s linear infinite;
  box-shadow: 0 0 50px rgba(0, 242, 255, 0.1);
}

.zh_tech_sphere::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  border-radius: 50%;
  border: 1px dashed rgba(112, 0, 255, 0.4);
  animation: rotate 15s linear infinite reverse;
}

.zh_tech_sphere::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  height: 40%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 242, 255, 0.05);
  backdrop-filter: blur(5px);
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.zh_hero_subtitle {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--zh-primary);
  font-size: 14px;
  letter-spacing: 3px;
  margin-bottom: 30px;
  border-radius: 100px;
  backdrop-filter: blur(10px);
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}

.zh_hero_title {
  font-size: 72px;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 30px;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.zh_text_gradient {
  background: var(--zh-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

.zh_hero_desc {
  font-size: 20px;
  color: var(--zh-text-muted);
  margin-bottom: 50px;
  max-width: 600px;
  line-height: 1.8;
}

.zh_hero_actions {
  display: flex;
  gap: 24px;
}

/* 标题通用 */
.zh_section_header {
  text-align: left;
  margin-bottom: 60px;
  position: relative;
  padding-left: 20px;
  border-left: 4px solid var(--zh-primary);
}

.zh_section_title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  display: block;
}

.zh_section_subtitle {
  color: var(--zh-text-muted);
  font-size: 18px;
  max-width: 600px;
}

/* 卡片通用样式 (Glassmorphism) */
.zh_card {
  background: var(--zh-card-bg);
  border: 1px solid var(--zh-card-border);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  transition: all 0.4s ease;
  overflow: hidden;
  position: relative;
}

.zh_card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: 0.4s;
}

.zh_card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.zh_card:hover::before {
  opacity: 1;
}

/* 服务卡片 (Bento Grid Layout) */
.zh_services {
  padding: 120px 0;
  background: #030508;
  position: relative;
}

.zh_bento_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 300px;
  gap: 24px;
}

/* Make the first item span 2x2 */
.zh_bento_item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.zh_bento_item:first-child .zh_service_thumb {
  height: 60%;
}

.zh_bento_item:first-child .zh_service_title {
  font-size: 32px;
}

/* Make the whole card clickable */
.zh_service_card {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  /* Ensure positioning context for the link */
  cursor: pointer;
  /* Show pointer on the whole card */
}

.zh_service_thumb {
  height: 180px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  /* Prevent shrinking */
}

.zh_service_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensure image covers the area without distortion */
  object-position: center;
  transition: transform 0.6s ease;
}

.zh_service_card:hover .zh_service_thumb img {
  transform: scale(1.1);
}

.zh_service_content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  /* Enable truncation in flex child */
}

.zh_service_title {
  font-size: 20px;
  color: #fff;
  margin-bottom: 10px;
  font-weight: 600;
  /* Title Truncation */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zh_service_desc {
  color: var(--zh-text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zh_service_link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--zh-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: gap 0.3s ease;
}

/* Stretched Link to make the whole card clickable */
.zh_service_link::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.zh_service_link:hover {
  gap: 15px;
  color: #fff;
}

/* 特性区域 (Pipeline Layout) */
.zh_features {
  padding: 120px 0;
  background: #05080f;
  position: relative;
  overflow: hidden;
}

.zh_features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.zh_pipeline_grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  position: relative;
}

/* Connecting Line */
.zh_pipeline_grid::before {
  content: '';
  position: absolute;
  top: 100px;
  /* Adjust based on icon center */
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.3), transparent);
  z-index: 0;
}

.zh_feature_item {
  flex: 1;
  padding: 40px 30px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
}

.zh_feature_item:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-10px);
  border-color: var(--zh-primary);
  box-shadow: 0 0 30px rgba(0, 242, 255, 0.1);
}

.zh_feature_icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
  background: #05080f;
  /* Cover the line */
  border: 2px solid rgba(0, 242, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--zh-primary);
  font-size: 40px;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.zh_feature_title {
  font-size: 24px;
  color: #fff;
  margin-bottom: 16px;
}

.zh_feature_text {
  color: var(--zh-text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* web开发 (Horizontal Scroll Snap) */
.zh_scroll_section {
  overflow-x: auto;
  padding-bottom: 40px;
  margin: 0 -24px;
  /* Break container padding */
  padding: 0 24px 40px 24px;
  /* Restore padding */
  scroll-snap-type: x mandatory;
  display: flex;
  gap: 24px;
}

.zh_scroll_item {
  min-width: 350px;
  scroll-snap-align: start;
}

/* 数据统计 (Floating Dock) */
.zh_stats {
  position: relative;
  z-index: 20;
  margin-top: -100px;
  /* Overlap Hero */
  margin-bottom: 60px;
}

.zh_stats_container {
  background: rgba(10, 15, 30, 0.9);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 50px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.zh_stats_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.zh_stat_item {
  position: relative;
}

.zh_stat_item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.zh_stat_number {
  font-size: 56px;
  font-weight: 800;
  background: var(--zh-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  font-family: 'Oswald', sans-serif;
}

.zh_stat_label {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
}

/* CTA 区域 */
.zh_cta {
  padding: 150px 0;
  text-align: center;
  position: relative;
  background: #030508;
  overflow: hidden;
}

.zh_cta_bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  background: radial-gradient(circle at 50% 50%, #1a2a4a 0%, #030508 100%);
}

.zh_cta_content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.zh_cta_title {
  font-size: 56px;
  color: #fff;
  margin-bottom: 30px;
  font-weight: 800;
}

.zh_cta_desc {
  color: var(--zh-text-muted);
  font-size: 20px;
  margin-bottom: 50px;
}

/* 响应式 */
@media (max-width: 1024px) {
  .zh_hero_title {
    font-size: 56px;
  }

  .zh_hero_content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .zh_hero_text {
    text-align: center;
  }

  .zh_hero_visual {
    display: none;
    /* Hide 3D visual on tablet/mobile */
  }

  .zh_hero_actions {
    justify-content: center;
  }

  .zh_bento_grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .zh_bento_item:first-child {
    grid-column: span 2;
  }

  .zh_pipeline_grid {
    flex-direction: column;
  }

  .zh_pipeline_grid::before {
    display: none;
  }

  .zh_stats_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .zh_stat_item:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .zh_hero_title {
    font-size: 42px;
  }

  .zh_hero_actions {
    flex-direction: column;
  }

  .zh_bento_grid {
    grid-template-columns: 1fr;
  }

  .zh_bento_item:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }

  .zh_stats_container {
    padding: 30px;
  }

  .zh_stats {
    margin-top: -50px;
  }
}