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

:root {
  --primary: #0066FF;
  --secondary: #00F0FF;
  --accent: #00C6FF;
  --dark: #0F172A;
  --darker: #020617;
  --glow-color: rgba(0, 240, 255, 0.6);
  --text-gradient-start: #00F0FF;
  --text-gradient-end: #7B61FF;
}

body {
  font-family: 'Inter', system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: #E2E8F0;
  background-color: #0F172A;
}

/* === 文字效果增强 === */

/* 渐变文字效果 */
.text-gradient {
  background: linear-gradient(135deg, var(--text-gradient-start) 0%, var(--text-gradient-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-primary {
  background: linear-gradient(135deg, #0066FF 0%, #00C6FF 50%, #00F0FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-rainbow {
  background: linear-gradient(90deg, #00F0FF, #7B61FF, #00C6FF, #00F0FF);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbow-flow 3s ease infinite;
}

@keyframes rainbow-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 发光文字效果 */
.text-glow {
  text-shadow: 
    0 0 10px var(--glow-color),
    0 0 20px var(--glow-color),
    0 0 40px rgba(0, 240, 255, 0.3),
    0 0 80px rgba(0, 240, 255, 0.1);
}

.text-glow-subtle {
  text-shadow: 
    0 0 5px rgba(0, 198, 255, 0.5),
    0 0 10px rgba(0, 198, 255, 0.3);
}

.text-glow-intense {
  text-shadow: 
    0 0 15px rgba(0, 240, 255, 0.8),
    0 0 30px rgba(0, 240, 255, 0.6),
    0 0 60px rgba(0, 240, 255, 0.4),
    0 0 100px rgba(0, 240, 255, 0.2);
}

/* 文字阴影效果 */
.text-shadow-deep {
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(0, 102, 255, 0.3);
}

.text-shadow-inset {
  text-shadow: 
    inset 0 0 10px rgba(0, 240, 255, 0.5);
}

/* 霓虹文字效果 */
.text-neon {
  color: #fff;
  text-shadow: 
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 20px var(--glow-color),
    0 0 40px var(--glow-color),
    0 0 80px var(--glow-color);
}

.text-neon-cyan {
  color: #00F0FF;
  text-shadow: 
    0 0 5px #00F0FF,
    0 0 10px #00F0FF,
    0 0 20px #00F0FF,
    0 0 40px rgba(0, 240, 255, 0.5);
}

.text-neon-purple {
  color: #7B61FF;
  text-shadow: 
    0 0 5px #7B61FF,
    0 0 10px #7B61FF,
    0 0 20px rgba(123, 97, 255, 0.5);
}

/* 描边文字效果 */
.text-stroke {
  -webkit-text-stroke: 1px #00F0FF;
  color: transparent;
  text-shadow: none;
}

.text-stroke-white {
  -webkit-text-stroke: 1px #fff;
  color: transparent;
}

.text-stroke-glow {
  -webkit-text-stroke: 2px rgba(0, 240, 255, 0.8);
  color: #0F172A;
  text-shadow: 
    0 0 10px rgba(0, 240, 255, 0.5),
    0 0 20px rgba(0, 240, 255, 0.3);
}

/* 悬停文字效果 */
.text-hover-glow {
  transition: all 0.3s ease;
}

.text-hover-glow:hover {
  text-shadow: 
    0 0 10px var(--glow-color),
    0 0 20px var(--glow-color),
    0 0 40px rgba(0, 240, 255, 0.3);
  transform: scale(1.02);
}

.text-hover-underline {
  position: relative;
  display: inline-block;
}

.text-hover-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00F0FF, transparent);
  transition: width 0.3s ease;
}

.text-hover-underline:hover::after {
  width: 100%;
}

.text-hover-lift {
  transition: all 0.3s ease;
}

.text-hover-lift:hover {
  transform: translateY(-3px);
  text-shadow: 
    0 5px 20px rgba(0, 240, 255, 0.3);
}

/* 动画文字效果 */
.text-pulse {
  animation: text-pulse 2s ease-in-out infinite;
}

@keyframes text-pulse {
  0%, 100% {
    opacity: 1;
    text-shadow: 
      0 0 10px var(--glow-color),
      0 0 20px rgba(0, 240, 255, 0.3);
  }
  50% {
    opacity: 0.8;
    text-shadow: 
      0 0 20px var(--glow-color),
      0 0 40px rgba(0, 240, 255, 0.5);
  }
}

.text-flicker {
  animation: text-flicker 3s linear infinite;
}

@keyframes text-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
    text-shadow: 
      0 0 10px var(--glow-color),
      0 0 20px rgba(0, 240, 255, 0.3);
  }
  20%, 24%, 55% {
    opacity: 0.4;
    text-shadow: none;
  }
}

.text-wave {
  display: inline-block;
  animation: text-wave 1.5s ease-in-out infinite;
}

@keyframes text-wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* 打字机效果 */
.text-typing {
  overflow: hidden;
  border-right: 2px solid var(--glow-color);
  white-space: nowrap;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--glow-color); }
}

/* 缩放进入效果 */
.text-scale-in {
  animation: text-scale-in 0.5s ease-out forwards;
}

@keyframes text-scale-in {
  0% {
    transform: scale(0.8);
    opacity: 0;
    text-shadow: none;
  }
  100% {
    transform: scale(1);
    opacity: 1;
    text-shadow: 
      0 0 10px var(--glow-color),
      0 0 20px rgba(0, 240, 255, 0.3);
  }
}

/* 滑入效果 */
.text-slide-in-left {
  animation: slide-in-left 0.6s ease-out forwards;
}

.text-slide-in-right {
  animation: slide-in-right 0.6s ease-out forwards;
}

.text-slide-in-up {
  animation: slide-in-up 0.6s ease-out forwards;
}

@keyframes slide-in-left {
  0% {
    transform: translateX(-30px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-in-right {
  0% {
    transform: translateX(30px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-in-up {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 标题样式增强 */
.heading-primary {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.heading-secondary {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.heading-tertiary {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
}

/* 段落样式增强 */
.paragraph-large {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #94A3B8;
}

.paragraph-medium {
  font-size: 1rem;
  line-height: 1.6;
  color: #A1AFC9;
}

.paragraph-small {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #94A3B8;
}

/* 强调文字 */
.text-emphasis {
  color: #00F0FF;
  font-weight: 500;
}

.text-highlight {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2) 0%, rgba(123, 97, 255, 0.2) 100%);
  padding: 0.2em 0.4em;
  border-radius: 4px;
}

/* 代码文字样式 */
.text-code {
  font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  color: #00F0FF;
}

/* 数字文字样式 */
.text-number {
  font-family: 'Fira Code', 'Monaco', monospace;
  color: #00F0FF;
  font-weight: 600;
}

/* 成功/警告/错误文字 */
.text-success {
  color: #10B981;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.text-warning {
  color: #F59E0B;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.text-error {
  color: #EF4444;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.bg-grid {
  background-image: 
    linear-gradient(rgba(0, 102, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

.text-shadow-glow {
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5), 0 0 20px rgba(0, 240, 255, 0.3);
}

.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}

@keyframes pulse-slow {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

/* 导航栏 */
header {
  background-color: #000;
  color: #fff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #00f0ff;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #00f0ff;
}

.nav-links a.active {
  color: #00f0ff;
  border-bottom: 2px solid #00f0ff;
}

/* 英雄区域 */
.hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
  color: #fff;
  padding: 8rem 0 4rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(0, 102, 255, 0.15), transparent 50%);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: #00f0ff;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #a8b2d1;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background-color: #00f0ff;
  color: #0a192f;
}

.btn-primary:hover {
  background-color: #00d4e0;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: #00f0ff;
  border: 1px solid #00f0ff;
}

.btn-secondary:hover {
  background-color: rgba(0, 240, 255, 0.1);
  transform: translateY(-2px);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.rotating-card {
  width: 400px;
  height: 500px;
  position: relative;
  perspective: 1000px;
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.card-face {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #00f0ff 0%, #0a192f 100%);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  box-shadow: 0 20px 40px rgba(0, 240, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.card-face::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

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

.card-face h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #fff;
  z-index: 1;
}

.stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  z-index: 1;
}

.stat-item {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 8px;
  min-width: 100px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: bold;
  color: #00f0ff;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.card-description {
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  z-index: 1;
  max-width: 300px;
}

/* 特性区域 */
.features {
  padding: 6rem 0;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
  position: relative;
  overflow: hidden;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(123, 97, 255, 0.08) 0%, transparent 50%);
}

.features-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.features-header {
  text-align: center;
  margin-bottom: 4rem;
}

.features-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #00f0ff 0%, #7b61ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.features-subtitle {
  font-size: 1.1rem;
  color: #8892b0;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f0ff, transparent);
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.feature-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(0, 240, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.feature-icon-box {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1) 0%, rgba(123, 97, 255, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon-box {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2) 0%, rgba(123, 97, 255, 0.2) 100%);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.feature-icon {
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon::before {
  content: attr(data-icon);
}

.feature-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
}

.feature-card p {
  color: #8892b0;
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
}

.feature-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card:hover .feature-glow {
  opacity: 1;
  transform: scale(1);
}

/* 卡片序号装饰 */
.feature-card::after {
  content: attr(data-index);
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(0, 240, 255, 0.05);
  transition: color 0.4s ease;
}

.feature-card:hover::after {
  color: rgba(0, 240, 255, 0.1);
}

/* 内容区域 */
.content {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.content h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #0a192f;
}

.content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.content ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.content li {
  margin-bottom: 0.5rem;
}

/* 页脚 */
footer {
  background-color: #0a192f;
  color: #a8b2d1;
  padding: 2rem 0;
  margin-top: 4rem;
}

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

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: #a8b2d1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #00f0ff;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
    margin-bottom: 2rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 1rem;
  }
}