/* 全局样式 */
* { 
  box-sizing: border-box; 
  margin: 0;
  padding: 0;
}

body { 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #0b0f18;  /* 深色背景 */
  color: #f5f5f7;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;  /* 防止水平滚动条 */
}

/* 头部样式 */
.header { 
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #38bdf8 100%);  /* 更丰富的渐变色 */
  padding: 120px 20px 160px;  /* 增加垂直内边距 */
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);  /* 增加阴影效果 */
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0) 70%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0) 70%);  /* 多重径向渐变 */
  z-index: 1;
}

/* 添加闪光效果 */
.header::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: linear-gradient(to right, rgba(255,255,255,0) 20%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 80%);
  animation: shine 8s infinite linear;  /* 闪光动画 */
  transform: rotate(30deg);
  z-index: 1;
}

@keyframes shine {
  0% {
    transform: rotate(30deg) translateX(-100%);
  }
  100% {
    transform: rotate(30deg) translateX(100%);
  }
}

.header-content {
  position: relative;
  z-index: 5;
  max-width: 900px;
  margin: 0 auto;
}

.header h1 {
  font-size: 4rem;  /* 增大标题字体 */
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  background: linear-gradient(to right, #ffffff, #bfdbfe, #ffffff);  /* 更丰富的文字渐变色 */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 5px 15px rgba(0,0,0,0.2);
  letter-spacing: -0.5px;  /* 字母间距 */
}

/* 文字动画 */
.text-animate {
  display: inline-block;
}

.char-animate {
  display: inline-block;
  opacity: 0;  /* 初始透明度为0 */
  transform: translateY(40px);
  animation: fadeInUp 0.8s forwards ease-out;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header p {
  font-size: 1.3rem;  /* 增大副标题字体 */
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto 30px;
  position: relative;
  z-index: 2;
  font-weight: 300;  /* 更轻的字重 */
  letter-spacing: 0.5px;  /* 增加字母间距 */
}

.highlight {
  color: #38bdf8;
  font-weight: 500;
}

/* 头部按钮 */
.header-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.9);
  color: #1a3a8f;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover, .btn-secondary:hover {
  transform: translateY(-3px);
}

.btn-primary:hover {
  background: white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* 头部装饰元素 */
.header-decor {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  opacity: 0.6;
}

.decor-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.3) 0%, rgba(56, 189, 248, 0) 70%);
  top: 20%;
  left: 10%;
  animation: float-slow 15s infinite alternate ease-in-out;
}

.decor-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, rgba(37, 99, 235, 0) 70%);
  bottom: -200px;
  right: -100px;
  animation: float-slow 10s infinite alternate-reverse ease-in-out;
}

@keyframes float-slow {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-30px) scale(1.05);
  }
}

/* 容器样式 */
.container {
  max-width: 1400px;
  margin: -90px auto 0;  /* 提高容器位置 */
  padding: 0 30px 80px;
  position: relative;
  z-index: 10;
}

/* 统计数据展示 */
.stats-container {
  display: flex;
  justify-content: space-around;
  margin-bottom: 60px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 30px 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-item {
  text-align: center;
  padding: 0 20px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
}

/* 分隔栏 */
.section-divider {
  display: flex;
  align-items: center;
  margin: 50px 0 40px;
  position: relative;
}

.section-divider::before, .section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.section-divider span {
  padding: 0 20px;
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  display: inline-block;
}

.section-divider span::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(to right, transparent, #38bdf8, transparent);
}

/* 应用网格 */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));  /* 略宽的卡片 */
  gap: 35px;  /* 增加间距 */
  perspective: 1000px;  /* 3D视角效果 */
}

/* 应用卡片 */
.app-card {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0;
  transform: translateY(30px);
}

.app-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.app-card-inner {
  background: rgba(255, 255, 255, 0.03);  /* 更暗的背景 */
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 15px 35px rgba(0,0,0,0.3),
    0 3px 10px rgba(0,0,0,0.1);  /* 多层阴影 */
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);  /* 更平滑的过渡 */
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transform: translateZ(0);  /* 初始3D变换状态 */
  height: 100%;
  position: relative;
}

.app-card:hover .app-card-inner {
  transform: translateY(-15px) rotateX(5deg);  /* 3D悬浮效果 */
  box-shadow: 
    0 25px 45px rgba(0,0,0,0.35),
    0 5px 15px rgba(0,0,0,0.2);
  background: rgba(255, 255, 255, 0.06);
}

/* 卡片徽章 */
.app-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  z-index: 2;
}

.app-header {
  height: 200px;  /* 更高的头部 */
  background-size: cover !important;
  background-position: center !important;
  position: relative;
  overflow: hidden;
  transition: transform 1.2s ease;  /* 背景变换动画 */
  background-blend-mode: overlay;
}

.app-card:hover .app-header {
  transform: scale(1.08);  /* 悬停时背景放大 */
}

.app-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;  /* 更长的渐变 */
  background: linear-gradient(to top, rgba(11, 15, 24, 0.9), transparent);
}

.app-icon {
  width: 80px;  /* 更大的图标 */
  height: 80px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));  /* 图标渐变背景 */
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: -40px;
  left: 30px;
  box-shadow: 
    0 5px 20px rgba(0,0,0,0.2),
    0 0 0 5px rgba(15, 23, 40, 0.5);  /* 双层阴影 */
  z-index: 10;
  transition: all 0.3s ease;
  color: #1e3a8a;
  font-size: 32px;
}

.app-card:hover .app-icon {
  transform: scale(1.1) translateY(-5px);  /* 悬停时图标动效 */
  box-shadow: 
    0 8px 25px rgba(0,0,0,0.3),
    0 0 0 5px rgba(15, 23, 40, 0.5);
}

.app-content {
  padding: 55px 30px 35px;  /* 更宽松的内边距 */
  position: relative;
}

.app-title {
  font-size: 24px;  /* 更大的标题 */
  font-weight: 700;
  margin: 0 0 18px 0;
  background: linear-gradient(to right, #fff, #93c5fd, #ffffff);  /* 更好看的文字渐变 */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.2px;
}

.app-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  margin-bottom: 30px;
  line-height: 1.7;  /* 增加行高 */
}

.app-link {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #2563eb, #38bdf8);  /* 配合标题的渐变色 */
  color: white;
  padding: 14px 28px;  /* 更大的按钮 */
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.35s ease;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.3);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.app-link i {
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.app-link:hover i {
  transform: translateX(5px);
}

/* 按钮光效 */
.app-link::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.app-link:hover {
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);  /* 更深的渐变色 */
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.5);
  transform: translateY(-3px);
}

.app-link:hover::before {
  opacity: 1;
  animation: ripple 1.5s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0.3);
    opacity: 0.1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* 技术元素 */
.tech-element {
  position: absolute;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
  transition: all 0.8s ease;
}

.app-card:hover .tech-element {
  opacity: 0.3;
  transform: scale(1.1);
}

.tech-circles {
  top: 20px;
  right: 20px;
  width: 100px;
  height: 100px;
  background-image: radial-gradient(circle, rgba(56, 189, 248, 0.8) 2px, transparent 2px),
    radial-gradient(circle, rgba(56, 189, 248, 0.8) 2px, transparent 2px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

.tech-dots {
  bottom: 20px;
  right: 20px;
  width: 120px;
  height: 60px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.8) 2px, transparent 2px);
  background-size: 10px 10px;
}

.tech-waves {
  bottom: 20px;
  left: 20px;
  width: 100px;
  height: 50px;
  background: repeating-linear-gradient(
    0deg,
    rgba(56, 189, 248, 0.8),
    rgba(56, 189, 248, 0.8) 1px,
    transparent 1px,
    transparent 10px
  );
}

.tech-grid {
  top: 20px;
  left: 20px;
  width: 80px;
  height: 80px;
  background-image: linear-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 10px 10px;
}

.tech-code {
  bottom: 30px;
  right: 30px;
  font-family: monospace;
  color: rgba(56, 189, 248, 0.8);
  font-size: 10px;
  white-space: pre;
  content: "function ai() {\n  return data;\n}";
}

/* 技术横幅 */
.tech-banner {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 40px 30px;
  margin-bottom: 50px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tech-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.tech-item {
  padding: 20px;
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-5px);
}

.tech-icon {
  font-size: 36px;
  margin-bottom: 15px;
  color: #38bdf8;
}

.tech-item h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.tech-item p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* 页脚样式 */
.footer {
  background: rgba(0, 0, 0, 0.25);  /* 更深的背景 */
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(56, 189, 248, 0.3) 50%,
    transparent 100%
  );
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 30px;
}

.logo-text {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.logo-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  grid-column: 1 / -1;
  margin-bottom: 30px;
}

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

.footer-links a:hover {
  color: #38bdf8;
}

.footer-copyright {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 14px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.social-icons a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: #38bdf8;
  transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 992px) {
  .app-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .tech-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    background: linear-gradient(to right, #ffffff, #bfdbfe, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0,0,0,0.2);
    letter-spacing: -0.5px;
  }
  
  .header p {
    font-size: 1.1rem;
  }
  
  .app-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
  }
  
  .container {
    padding: 0 20px 50px;
    margin-top: -50px;
  }
  
  .stats-container {
    flex-direction: column;
    gap: 30px;
  }
  
  .header-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 576px) {
  .header h1 {
    font-size: 2.3rem;
  }
  
  .header {
    padding: 80px 20px 120px;
  }
  
  .app-grid {
    grid-template-columns: 1fr;
  }
  
  .app-header {
    height: 180px;
  }
  
  .tech-items {
    grid-template-columns: 1fr;
  }
}

/* 漂浮粒子效果 */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));  /* 粒子渐变 */
  animation: float 20s infinite ease-in-out;
  opacity: 0;  /* 初始不可见 */
  animation-fill-mode: both;  /* 保持动画结束状态 */
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.1;
  }
  40% {
    opacity: 0.08;
  }
  60% {
    transform: translateY(-40px) translateX(40px) rotate(120deg);
    opacity: 0.06;
  }
  80% {
    opacity: 0.03;
  }
  100% {
    transform: translateY(0) translateX(0) rotate(360deg);
    opacity: 0;
  }
}

/* 鼠标跟踪效果 */
.cursor-effect {
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(53, 150, 240, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 页面背景渐变 */
.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.4;
  background: 
    linear-gradient(45deg, transparent 65%, rgba(56, 189, 248, 0.1) 100%),
    linear-gradient(135deg, transparent 65%, rgba(37, 99, 235, 0.1) 100%);
  animation: bgshift 30s infinite alternate;
}

@keyframes bgshift {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

/* 滚动指示器 */
.scroll-indicator {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 150px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  z-index: 100;
  display: none;
}

@media (min-width: 1200px) {
  .scroll-indicator {
    display: block;
  }
}

.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: linear-gradient(to bottom, #3b82f6, #38bdf8);
  border-radius: 3px;
  animation: scrollIndicate 2.5s ease-in-out infinite;
}

@keyframes scrollIndicate {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(120px);
  }
}