/* 全局样式文件 - 企业级网络技术服务网站 */

/* Tailwind CSS 配置 */
@layer base {
  * {
    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', sans-serif;
    color: #1E2A3A;
    background-color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
  }
}

/* 自定义配色变量 */
:root {
  --color-primary: #FFFFFF;
  --color-secondary: #F5F7FA;
  --color-accent-start: #1CC6A0;
  --color-accent-end: #14B89A;
  --color-highlight: #5F7F9E;
  --color-text: #1E2A3A;
  --color-text-light: #6B7280;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* 全局导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.navbar-menu a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-start), var(--color-accent-end));
  transition: width 0.3s ease;
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
  width: 100%;
}

.navbar-menu a:hover {
  color: var(--color-accent-start);
}

/* Hero 区域 */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #F5F7FA 0%, #E8EDF3 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-highlight) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* 卡片样式 */
.card {
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.04);
  height: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent-start);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.card-description {
  color: var(--color-text-light);
  line-height: 1.8;
}

/* 网格布局 */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 时间线样式 */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-marker {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.timeline-content {
  flex: 1;
  background: var(--color-primary);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* 页脚样式 */
.footer {
  background: var(--color-secondary);
  padding: 3rem 2rem 2rem;
  margin-top: 5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-accent-start);
}

.footer-copyright {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .navbar-menu {
    gap: 1.5rem;
    font-size: 0.9rem;
  }

  .card {
    padding: 2rem;
  }

  .grid-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .timeline-item {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .navbar-container {
    padding: 1rem;
  }

  .navbar-menu {
    gap: 1rem;
    font-size: 0.85rem;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }
}

/* 图片懒加载优化 */
img[data-src] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img[data-src].loaded {
  opacity: 1;
}

/* 渐变按钮样式 */
.btn-gradient {
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  color: white;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-lg);
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 分隔线样式 */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
  margin: 5rem 0;
}