/* 主样式文件 - 3D玻璃拟态企业网站 */

/* CSS 变量定义 */
:root {
  /* 颜色系统 - 白色主题配紫色背景 */
  --primary-white: #ffffff;
  --secondary-white: #f8f9fa;
  --accent-white: #f1f3f4;
  --glass-white: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.18);

  /* 文字颜色 - 针对紫色背景优化 */
  --text-primary: #1f2937;
  --text-secondary: #374151;
  --text-light: #6b7280;
  
  /* 阴影系统 - 紫色背景优化 */
  --shadow-light: 0 8px 32px 0 rgba(139, 92, 246, 0.3);
  --shadow-medium: 0 15px 35px rgba(139, 92, 246, 0.25);
  --shadow-heavy: 0 25px 50px rgba(139, 92, 246, 0.2);
  
  /* 字体系统 */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* 间距系统 */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* 边框半径 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* 过渡动画 */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

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

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-primary);
  background: #f0f0f0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 排版系统 */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  opacity: 0.8;
}

/* 容器系统 */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--spacing-md);
}

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

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

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

/* 导航样式 */
.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
}

/* 移动端导航高度减少 */
@media (max-width: 768px) {
  .nav-content {
    padding: var(--spacing-xs) 0; /* 减少移动端导航内边距 */
  }
}

.nav-brand {
  flex: 0 0 auto;
}

.nav-brand .brand-link {
  color: var(--text-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  text-decoration: none;
}

.brand-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-fast);
  display: block;
}

.brand-logo:hover {
  transform: scale(1.05);
}

/* 确保桌面端logo正确定位 */
@media (min-width: 769px) {
  .nav-brand {
    margin-right: auto;
    margin-left: -var(--spacing-sm);
  }

  .nav-content {
    position: relative;
  }
}

/* 1920×1080 桌面分辨率优化 */
@media (min-width: 1600px) {
  .brand-logo {
    height: 60px;
  }

  .brand-text {
    font-size: 1.75rem;
  }

  .nav-content {
    padding: var(--spacing-md) 0;
  }

  .nav-menu {
    gap: var(--spacing-xl);
  }

  .nav-link {
    font-size: 1.1rem;
  }
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--spacing-lg);
}

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-fast);
}

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

/* 移动端菜单按钮 */
.mobile-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: var(--transition-fast);
}

/* 英雄区块 */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xxl) 0;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(139, 92, 246, 0.1);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* 区块样式 */
.section {
  padding: var(--spacing-xxl) 0;
}

.section-title {
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

/* 表单样式 */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--text-primary);
}

/* 1920×1080 表单优化 */
@media (min-width: 1600px) {
  .form-group {
    margin-bottom: var(--spacing-lg);
  }

  .form-group label {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
  }
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--text-primary);
}

/* 页脚 */
.footer {
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-xxl);
}

.footer-content p {
  margin-bottom: var(--spacing-xs);
  color: var(--text-light);
}

/* 计数器样式 */
.counter {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

/* 响应式断点 */
@media (max-width: 768px) {
  :root {
    --spacing-xl: 2rem;
    --spacing-xxl: 2.5rem;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }

  .container {
    padding: 0 var(--spacing-sm);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .nav-desktop {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .brand-logo {
    height: 36px; /* 减少移动端logo高度 */
  }

  .brand-text {
    font-size: 1.25rem;
  }

  .nav-brand .brand-link h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }

  .hero-title {
    font-size: 2rem;
  }

  .counter {
    font-size: 2rem;
  }

  .brand-logo {
    height: 36px;
  }

  .brand-text {
    font-size: 1.1rem;
  }

  .nav-brand .brand-link h3 {
    font-size: 1.25rem;
  }
}
