/* ===== CSS变量定义 ===== */
:root {
  /* 颜色变量 */
  --primary-bg: #000;
  --secondary-bg: #2c2c2c;
  --text-color: #fff;
  --accent-color: #929292;
  --hover-color: #aaa;
  --card-bg: #ffffff;
  --footer-bg: #000000;
  
  /* 字体大小 */
  --font-xs: 0.9rem;
  --font-sm: 1rem;
  --font-md: 1.1rem;
  --font-lg: 1.2rem;
  --font-xl: 1.5rem;
  --font-xxl: 2rem;
  --font-xxxl: 2.5rem;
  --font-hero: 3rem;
  
  /* 间距 */
  --space-xs: 10px;
  --space-sm: 15px;
  --space-md: 20px;
  --space-lg: 30px;
  --space-xl: 40px;
  --space-xxl: 50px;
  --space-section: 80px;
  
  /* 断点 */
  --mobile: 768px;
  --small-mobile: 480px;
  
  /* 边框圆角 */
  --radius-sm: 5px;
  --radius-md: 10px;
  --radius-lg: 15px;
  
  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* ===== 重置与基础样式 ===== */
* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  scroll-behavior: smooth;
  background-color: var(--primary-bg);
  color: var(--text-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ===== 轮播图区域 ===== */
.hero-section-slideshow {
  position: relative;
  width: 100%;
  height: calc(80vh - 40px);
  overflow: hidden;
  margin-top: var(--space-xxl);
}

.slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: none;
  transition: opacity 0.8s ease;
}

.slide.active {
  display: block;
  opacity: 1;
}

/* 轮播图按钮 */
.slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 20;
}

.slideshow-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.slideshow-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.slideshow-prev {
  left: var(--space-md);
}

.slideshow-next {
  right: var(--space-md);
}

/* 轮播图指示器 */
.slideshow-indicators {
  position: absolute;
  bottom: var(--space-md);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  z-index: 15;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background-color: #fff;
  transform: scale(1.2);
}

.indicator:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* 轮播图文字容器 */
.hero-section-slideshow .container {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  color: #fff;
  text-shadow: var(--shadow-sm);
}

.hero-section-slideshow h1 {
  font-size: var(--font-hero);
  margin: 0 0 1rem 0;
}

.hero-section-slideshow p {
  font-size: var(--font-xl);
  margin: 0;
}

/* 轮播图背景图片 - 桌面版 */
.slide-1 { background-image: url('img/hero_img/desktop/1.jpg'); }
.slide-2 { background-image: url('img/hero_img/desktop/2.jpg'); }
.slide-3 { background-image: url('img/hero_img/desktop/3.jpg'); }
.slide-4 { background-image: url('img/hero_img/desktop/4.jpg'); }
.slide-5 { background-image: url('img/hero_img/desktop/5.jpg'); }
.slide-6 { background-image: url('img/hero_img/desktop/6.jpg'); }
.slide-7 { background-image: url('img/hero_img/desktop/7.jpg'); }

/* ===== 内容区域样式 ===== */
.text-section {
  padding: var(--space-section) 0;
  text-align: center;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.text-section h2 {
  font-size: var(--font-xxxl);
  margin-bottom: var(--space-md);
}

.text-section p {
  font-size: var(--font-lg);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* 图片网格区域 */
.image-grid-section {
  padding: var(--space-section) 0;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.image-grid a {
  display: block;
  width: 100%;
  height: 100%;
}

.image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 特性框区域 */
.feature-boxes-section {
  padding: var(--space-section) 0;
  background-color: #000000;
  color: #ffffff;
}

.feature-boxes-section .container {
  display: flex;
  justify-content: space-around;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.feature-box {
  text-align: center;
  max-width: 300px;
  flex: 1;
  min-width: 250px;
}

.feature-box img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.feature-box h3 {
  font-size: var(--font-xl);
  margin-bottom: var(--space-xs);
}

/* 全屏区域 */
.fullscreen {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.fullscreen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.fullscreen .content {
  position: relative;
  z-index: 1;
}

.fullscreen .content h2 {
  font-size: 3rem;
  margin: 0;
}

.fullscreen .content p {
  font-size: var(--font-xl);
  margin-top: var(--space-xs);
}

/* 文字框区域 */
.text-boxes-section {
  padding: var(--space-section) 0;
}

.text-boxes-section .container {
  display: flex;
  justify-content: space-around;
  gap: var(--space-md);
}

.text-box {
  padding: var(--space-lg);
  border: 1px solid #ddd;
  border-radius: var(--radius-md);
  max-width: 300px;
  text-align: center;
}

.text-box h3 {
  font-size: var(--font-xl);
  margin-bottom: var(--space-xs);
}

/* 子页面内容区域 */
.subpage-content {
  padding: var(--space-xxl) var(--space-md) 60px;
  margin: 0 auto;
  color: #ffffff;
  background: linear-gradient(135deg, #142aa3 0%, #00f1bd 50%, #ff00ee 100%);
  background-size: 200% 200%;
  width: 100%;
  box-sizing: border-box;
  animation: gradientShift 8s ease infinite;
}

/* 定义渐变动画关键帧 */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.subpage-content .content {
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
}

.subpage-content h2 {
  font-size: var(--font-xxxl);
  border-bottom: 2px solid #ffffff;
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-md);
  text-align: center;
}

.subpage-content p {
  font-size: var(--font-lg);
  line-height: 1.6;
  text-align: center;
}

/* 内容流程卡片布局 */
.content-process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
  width: 100%;
}

.process-card {
  background: var(--card-bg);
  padding: var(--space-lg) 25px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.process-card i {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: var(--space-md);
  display: block;
}

.process-card h3 {
  color: #333;
  margin-bottom: var(--space-sm);
  font-size: 1.4rem;
  font-weight: 600;
}

.process-card p {
  color: #666;
  line-height: 1.6;
  margin: 0;
  font-size: var(--font-sm);
}

/* 数据统计区域 */
.stats-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin: var(--space-xxl) 0;
  padding: var(--space-xl) var(--space-md);
  background: rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-lg);
  color: rgb(255, 255, 255);
}

.stat-card {
  text-align: center;
  padding: var(--space-md);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: var(--space-xs);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-text {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* 内容类型区域 */
.content-types {
  padding: var(--space-section) 0;
  background-color: #ffffff;
}

.content-types h2 {
  text-align: center;
  font-size: var(--font-xxxl);
  margin-bottom: var(--space-xl);
  color: #333;
}

/* 全屏图片网格 */
.type-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.type-item {
  display: flex;
  flex-direction: column;
  border-radius: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #fff;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.type-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.type-item a {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 60vh;
  overflow: hidden;
  position: relative;
  width: 100vw;
}

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

.type-item:hover img {
  transform: scale(1.03);
}

/* 图片上的标题和描述 */
.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  text-align: center;
  padding: var(--space-md);
  transition: all 0.3s ease;
}

.type-item:hover .image-overlay {
  background: rgba(0, 0, 0, 0.6);
}

.image-title {
  font-size: clamp(2rem, 8vh, 6rem);
  font-weight: 100;
  margin: 0 0 var(--space-sm) 0;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  letter-spacing: 1px;
  transition: all 0.5s ease;
  position: relative;
  animation: titleAppear 1s ease-out;
}

/* 悬停时标题动画 */
.type-item:hover .image-title {
  transform: scale(1.55);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  color: #fff;
}

.image-description {
  font-size: clamp(0.9rem, 2.5vh, 1.2rem);
  font-weight: 300;
  margin: 0;
  max-width: 80%;
  line-height: 1.5;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  opacity: 0.9;
  transition: all 0.5s ease;
  animation: descriptionAppear 1s ease-out 0.3s both;
}

/* 描述出现动画 */
@keyframes descriptionAppear {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 0.9;
    transform: translateY(0);
  }
}

/* 悬停时描述动画 */
.type-item:hover .image-description {
  opacity: 1;
  transform: translateY(-5px);
}

.type-content {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.service-tags {
  color: #d5d5d5;
  font-weight: 300;
  margin-top: 15px;
  font-size: clamp(1.5rem, 2vw, 0.8rem);
  line-height: 1.6;
  text-align: center;
  transition: all 0.3s ease;
}

/* 悬停时服务标签动画 */
.type-item:hover .service-tags {
  color: #000000;
  transform: scale(1.02);
}


  /* ===== 头部与导航 ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: block;
  width: 60px;
  height: auto;
}

.logo img {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 16px;
  padding: 10px 0;
  display: block;
  transition: color 0.3s;
  position: relative;
}

nav ul li a:hover {
  color: var(--hover-color);
}

nav ul li a.active {
  color: var(--hover-color);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

/* 菜单按钮样式 */
.menu-button {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}

.menu-button .dot {
  width: 100%;
  height: 2px;
  background-color: white;
  border-radius: 1px;
  transition: all 0.3s ease;
}

/* 移动端导航样式 - 统一版本 */
@media (max-width: 768px) {
  .header-container {
    padding: 15px 20px;
  }
  
  .menu-button {
    display: flex;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  nav.active {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  
  nav ul li a {
    font-size: 18px;
    padding: 15px 0;
  }
  /* 轮播图 */
  .slideshow-btn {
    width: 40px;
    height: 40px;
  }
  
  .slideshow-prev {
    left: var(--space-xs);
  }
  
  .slideshow-next {
    right: var(--space-xs);
  }
  
  /* 轮播图背景图片 - 手机版 */
  .slide-1 { background-image: url('img/hero_img/mobile/1.jpg'); }
  .slide-2 { background-image: url('img/hero_img/mobile/2.jpg'); }
  .slide-3 { background-image: url('img/hero_img/mobile/3.jpg'); }
  .slide-4 { background-image: url('img/hero_img/mobile/4.jpg'); }
  .slide-5 { background-image: url('img/hero_img/mobile/5.jpg'); }
  .slide-6 { background-image: url('img/hero_img/mobile/6.jpg'); }
  .slide-7 { background-image: url('img/hero_img/mobile/7.jpg'); }
  
  /* 文字区域 */
  .text-section {
    padding: var(--space-xl) 0;
  }
  
  .text-section h2 {
    font-size: var(--font-xxl);
    margin-bottom: var(--space-sm);
  }
  
  .text-section p {
    font-size: var(--font-md);
    line-height: 1.5;
    padding: 0 var(--space-sm);
  }
  
  /* 图片网格 */
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* 特性框 */
  .feature-boxes-section .container {
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
  }
  
  .feature-box {
    max-width: 100%;
    width: 100%;
  }
  
  /* 文字框 */
  .text-boxes-section .container {
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
  }
  
  .text-box {
    max-width: 100%;
    width: 100%;
  }
  
  /* 子页面内容 */
  .content-process {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .process-card {
    padding: 25px 20px;
  }
  
  .process-card i {
    font-size: 2.5rem;
  }
  
  .subpage-content h2 {
    font-size: var(--font-xxl);
  }
  
  .subpage-content p {
    font-size: var(--font-md);
  }
  
  /* 数据统计 */
  .stats-section {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-sm);
    margin: var(--space-xl) 0;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .stat-text {
    font-size: var(--font-sm);
  }
  
  /* 内容类型区域 */
  .image-title {
    font-size: clamp(1.5rem, 6vh, 4rem);
    margin-bottom: var(--space-xs);
  }
  
  .image-description {
    font-size: clamp(0.8rem, 2vh, 1rem);
    max-width: 90%;
  }
  
  .type-content {
    padding: var(--space-lg);
  }
  
  

@media (max-width: 576px) {
  .image-title {
    font-size: clamp(1.2rem, 5vh, 3rem);
  }
  
  .image-description {
    font-size: clamp(0.7rem, 1.8vh, 0.9rem);
  }
  
  .service-tags {
    font-size: clamp(0.7rem, 1.8vw, 0.9rem);
  }
}

@media (max-width: 480px) {
  /* 文字区域 */
  .text-section {
    padding: var(--space-lg) 0;
  }
  
  .text-section h2 {
    font-size: 1.8em;
  }
  
  .text-section p {
    font-size: var(--font-sm);
  }
  
  /* 图片网格 */
  .image-grid {
    grid-template-columns: 1fr;
  }
  
  /* 特性框 */
  .feature-box {
    margin-bottom: var(--space-lg);
  }
  
  /* 数据统计 */
  .stats-section {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xs);
    margin: var(--space-lg) 0;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-text {
    font-size: var(--font-xs);
  }
}