/* 基础样式 */
body.popup-open {
  position: fixed;
  width: 100%;
}

/* 添加关键渲染路径 CSS */
html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background-color: #f8f9fa; /* 防止白屏闪烁 */
}

#app {
  min-height: 100vh;
}

/* 骨架屏基础样式 */
.skeleton {
  background: linear-gradient(90deg, rgba(74, 108, 247, 0.1) 25%, rgba(74, 108, 247, 0.2) 50%, rgba(74, 108, 247, 0.1) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

.skeleton-white {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 骨架屏容器样式 */
.skeleton-container {
  display: block;
}

/* 头部导航骨架屏 */
.skeleton-header {
  height: 60px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.skeleton-header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 100%;
}

.skeleton-logo {
  width: 100px;
  height: 30px;
}

.skeleton-spacer {
  flex: 1;
}

.skeleton-button {
  width: 100px;
  height: 36px;
  border-radius: 18px;
}

/* Hero区域骨架屏 */
.skeleton-hero {
  height: 400px;
  background: linear-gradient(135deg, #4A6CF7 0%, #3B82F6 50%, #6366F1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.skeleton-hero-content {
  text-align: center;
  color: white;
}

.skeleton-hero-title {
  width: 300px;
  height: 40px;
  margin: 0 auto 20px;
}

.skeleton-hero-subtitle {
  width: 200px;
  height: 20px;
  margin: 0 auto;
}

/* 统计数据区域骨架屏 */
.skeleton-stats {
  padding: 80px 20px;
  background: #fff;
}

.skeleton-stats-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.skeleton-section-title {
  width: 280px;
  height: 32px;
  margin: 0 auto 16px;
}

.skeleton-section-subtitle {
  width: 400px;
  height: 18px;
  margin: 0 auto 60px;
}

.skeleton-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.skeleton-stat-item {
  text-align: center;
}

.skeleton-stat-number {
  width: 80px;
  height: 48px;
  margin: 0 auto 12px;
}

.skeleton-stat-label {
  height: 16px;
  margin: 0 auto;
}

.skeleton-stat-label-1 { width: 100px; }
.skeleton-stat-label-2 { width: 120px; }
.skeleton-stat-label-3 { width: 90px; }
.skeleton-stat-label-4 { width: 110px; }

/* 核心能力区域骨架屏 */
.skeleton-capabilities {
  padding: 80px 20px;
  background: #f8f9fa;
}

.skeleton-capabilities-container {
  max-width: 1200px;
  margin: 0 auto;
}

.skeleton-capabilities-header {
  text-align: center;
  margin-bottom: 60px;
}

.skeleton-capabilities-title {
  width: 200px;
  height: 32px;
  margin: 0 auto 16px;
}

.skeleton-capabilities-subtitle {
  width: 350px;
  height: 18px;
  margin: 0 auto;
}

.skeleton-capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.skeleton-capability-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.skeleton-capability-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 24px;
  border-radius: 50%;
}

.skeleton-capability-title {
  height: 24px;
  margin: 0 auto 16px;
}

.skeleton-capability-title-1 { width: 120px; }
.skeleton-capability-title-2 { width: 140px; }
.skeleton-capability-title-3 { width: 130px; }

.skeleton-capability-desc {
  height: 16px;
  margin: 0 auto 20px;
}

.skeleton-capability-desc-1 { width: 160px; }
.skeleton-capability-desc-2 { width: 150px; }
.skeleton-capability-desc-3 { width: 140px; }

.skeleton-capability-link {
  width: 100px;
  height: 16px;
  margin: 0 auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .skeleton-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .skeleton-capabilities-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .skeleton-stats {
    padding: 60px 20px;
  }
  
  .skeleton-capabilities {
    padding: 60px 20px;
  }
  
  .skeleton-hero-title {
    width: 250px;
    height: 36px;
  }
  
  .skeleton-hero-subtitle {
    width: 180px;
    height: 18px;
  }
  
  .skeleton-section-title {
    width: 220px;
    height: 28px;
  }
  
  .skeleton-section-subtitle {
    width: 300px;
    height: 16px;
  }
  
  .skeleton-capabilities-title {
    width: 160px;
    height: 28px;
  }
  
  .skeleton-capabilities-subtitle {
    width: 280px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .skeleton-header-content {
    padding: 0 15px;
  }
  
  .skeleton-logo {
    width: 100px;
    height: 26px;
  }
  
  .skeleton-button {
    width: 80px;
    height: 32px;
  }
  
  .skeleton-stats {
    padding: 40px 15px;
  }
  
  .skeleton-capabilities {
    padding: 40px 15px;
  }
  
  .skeleton-capability-card {
    padding: 30px 20px;
  }
}
