/* 全新科技商务风格官网 - 主样式文件 */

/* ========== CSS变量定义 ========== */
:root {
  /* 明亮科技色彩系统 - 主色 */
  --primary-blue: #0066ff;
  --primary-cyan: #00d9ff;
  --primary-purple: #7c3aed;
  --primary-pink: #ec4899;
  --primary-green: #10b981;
  
  /* 渐变背景 */
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  
  /* 背景色 */
  --bg-primary: #ffffff;
  --bg-secondary: #f8faff;
  --bg-dark: #0a0e27;
  --bg-glass: rgba(255, 255, 255, 0.1);
  --bg-glass-strong: rgba(255, 255, 255, 0.25);
  
  /* 文字色 */
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-light: #718096;
  --text-white: #ffffff;
  --text-white-90: rgba(255, 255, 255, 0.9);
  --text-white-70: rgba(255, 255, 255, 0.7);
  
  /* 边框颜色 */
  --border-light: rgba(255, 255, 255, 0.2);
  --border-dark: rgba(0, 0, 0, 0.15);
  --border-dark-hover: rgba(0, 0, 0, 0.25);
  --border-dark-light: rgba(0, 0, 0, 0.08);
  --border-dark-medium: rgba(0, 0, 0, 0.1);
  
  /* 背景色 - 渐变透明度 */
  --bg-gradient-1-10: rgba(102, 126, 234, 0.1);
  --bg-gradient-1-5: rgba(102, 126, 234, 0.05);
  --bg-gradient-3-10: rgba(79, 172, 254, 0.1);
  --bg-gradient-2-10: rgba(236, 72, 153, 0.1);
  --bg-gradient-4-10: rgba(67, 233, 123, 0.1);
  
  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.4);
  
  /* 间距 */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  /* 过渡 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* 透明度 */
  --opacity-30: 0.3;
  --opacity-70: 0.7;
  --opacity-90: 0.9;
}

/* ========== 基础重置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========== 导航栏 ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: padding var(--transition-normal), box-shadow var(--transition-normal);
  will-change: padding, box-shadow;
}

.navbar.scrolled {
  padding: 1rem 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

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

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary-blue);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
  padding: 0.5rem;
  z-index: 1001;
  position: relative;
}

/* ========== Hero区域（通用样式） ========== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 60vh;
  padding: 120px 2rem 4rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  width: 100%;
  box-sizing: border-box;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-white);
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  animation: fadeInUp 1s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.hero-title .gradient-text {
  display: inline-block;
  white-space: nowrap;
  width: 100%;
  text-align: center;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  position: relative;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero-title .gradient-text {
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}

.hero-subtitle {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  margin-bottom: 2.5rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.4s both;
}

/* ========== 按钮样式 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-3);
  color: var(--text-white);
  box-shadow: 0 8px 24px rgba(79, 172, 254, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(79, 172, 254, 0.6);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* ========== 容器和布局 ========== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== 玻璃态卡片 ========== */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.9);
}


/* ========== Footer ========== */
.footer {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: var(--spacing-lg) 0 var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-white);
}

.footer-text {
  color: var(--text-white-70);
  margin-top: var(--spacing-sm);
}

.footer-link {
  color: var(--text-white-70);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--text-white);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* 统计数据区域 */
.stats-section {
  padding: var(--spacing-xl) 0;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 77px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
  
  .mobile-menu-toggle {
    display: block !important;
    position: relative;
    z-index: 1001;
  }
  
  /* 确保导航栏在移动端正确显示 */
  .nav-container {
    width: 100%;
  }
  
  .navbar {
    padding: 1rem !important;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    width: 100%;
  }
  
  /* 通用响应式调整 */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .section {
    padding: 3rem 0 !important;
  }
  
  .section-title {
    font-size: 2rem !important;
  }
  
  h2.section-title {
    text-align: center !important;
  }
  
  /* 覆盖所有内联样式的网格布局 */
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  
  /* 覆盖固定宽度 */
  div[style*="width: 300px"],
  div[style*="width: 200px"] {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* 覆盖固定高度 */
  div[style*="height: 300px"],
  div[style*="height: 500px"],
  div[style*="height: 200px"] {
    height: auto !important;
    min-height: 250px !important;
    aspect-ratio: 1 / 1 !important;
  }
  
  /* 覆盖gap间距 */
  div[style*="gap: 4rem"],
  div[style*="gap: 3rem"] {
    gap: 2rem !important;
  }
  
  /* 字体大小调整 */
  h3[style*="font-size: 2.5rem"] {
    font-size: 1.75rem !important;
  }
  
  h3[style*="font-size: 2rem"] {
    font-size: 1.5rem !important;
  }
  
  h3[style*="font-size: 1.25rem"] {
    font-size: 1.125rem !important;
  }
  
  p[style*="font-size: 1.125rem"] {
    font-size: 1rem !important;
  }
  
  /* 图标大小调整 */
  div[style*="font-size: 5rem"] {
    font-size: 4rem !important;
  }
  
  div[style*="font-size: 8rem"] {
    font-size: 5rem !important;
  }
  
  div[style*="font-size: 10rem"] {
    font-size: 6rem !important;
  }
  
  /* Hero区域在移动端 */
  .hero {
    padding: 100px 1rem 3rem !important;
    min-height: 50vh !important;
  }
  
  .hero-content {
    padding: 1rem !important;
  }
  
  .footer-content {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .glass-card {
    padding: 1.5rem !important;
  }
  
  .btn-primary,
  .btn-outline {
    padding: 0.875rem 1.5rem !important;
    font-size: 0.9375rem !important;
  }
  
  /* 列表项间距 */
  ul[style*="list-style: none"] li {
    padding: 0.5rem 0 !important;
  }
  
  /* 最大宽度容器 */
  div[style*="max-width: 1200px"],
  div[style*="max-width: 1000px"] {
    max-width: 100% !important;
    padding: 0 1rem !important;
  }
  
  /* 文本对齐 */
  h2[style*="text-align: left"] {
    text-align: center !important;
  }
}

/* ========== 工具类 ========== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

