/* 全局样式 */
:root {
  --primary-color: #6c63ff;
  --secondary-color: #00d4ff;
  --accent-color: #ff00e5;
  --dark-color: #1a1a2e;
  --light-color: #f5f5f7;
  --text-color: #333;
  --text-light: #f5f5f7;
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
  --gradient-bg: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: 1px solid rgba(255, 255, 255, 0.18);
  --transition: all 0.3s ease;
  --font-main: 'Segoe UI', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'SF Mono', 'Cascadia Code', Consolas, monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background-color: var(--light-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient-bg);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.5);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(108, 99, 255, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: rgba(108, 99, 255, 0.1);
  transform: translateY(-3px);
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-bg);
  border-radius: 2px;
}

/* 头部导航 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(108, 99, 255, 0.2);
  transition: var(--transition);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav ul {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-weight: 500;
  position: relative;
  color: var(--text-light);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-bg);
  transition: var(--transition);
}

.nav a:hover::after {
  width: 100%;
}

.language-switch {
  display: flex;
  gap: 5px;
}

.language-switch button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.9rem;
  transition: var(--transition);
  color: var(--text-light);
}

.language-switch button.active {
  background: var(--primary-color);
  color: white;
}

/* 英雄区域 */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: var(--text-light);
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  animation: titleGlow 3s infinite alternate;
}

@keyframes titleGlow {
  0% {
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  }
  100% {
    text-shadow: 0 0 20px rgba(255, 0, 229, 0.7);
  }
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

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

.hero-image {
  flex: 1;
  max-width: 500px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* 特性部分 */
.features {
  padding: 100px 0;
  background-color: var(--light-color);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom right, #1a1a2e 49%, transparent 51%);
}

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

.feature-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  border: var(--glass-border);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(31, 38, 135, 0.2);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--gradient-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: white;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 应用场景 */
.use-cases {
  padding: 100px 0;
  background: linear-gradient(135deg, #f5f7fa, #e4e7eb);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.use-case-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: var(--transition);
}

.use-case-card:hover {
  transform: scale(1.05);
}

.use-case-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--light-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--primary-color);
}

.use-case-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 技术栈 */
.tech-stack {
  padding: 100px 0;
  background-color: var(--dark-color);
  color: var(--text-light);
}

.tech-stack .section-title {
  color: var(--text-light);
}

.tech-stack-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 50px;
}

.tech-stack-text {
  flex: 1;
  min-width: 300px;
}

.tech-stack-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.tech-stack-text ul {
  margin-bottom: 30px;
}

.tech-stack-text li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.tech-stack-text li::before {
  content: '⚡';
  margin-right: 10px;
  color: var(--accent-color);
}

.tech-name {
  font-weight: 600;
  color: var(--secondary-color);
  font-family: var(--font-code);
}

.tech-stack-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

/* 下载部分 */
.download {
  padding: 100px 0;
  background: linear-gradient(135deg, #f5f7fa, #e4e7eb);
}

.download-options {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.download-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 30px;
  background: white;
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  width: 200px;
}

.download-option:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(31, 38, 135, 0.2);
}

.download-option img {
  height: 60px;
}

.download-option span {
  font-weight: 600;
  color: var(--dark-color);
  white-space: nowrap;
}

.download-instructions {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.download-instructions h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.installation-steps {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.step {
  flex: 1;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

/* 页脚 */
.footer {
  background-color: var(--dark-color);
  color: var(--text-light);
  padding: 80px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.footer-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.footer-logo h2 {
  font-size: 1.8rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-links {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.footer-links-column h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-links-column ul li {
  margin-bottom: 10px;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 20px;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-5px);
}

/* 响应式设计 */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    margin-bottom: 50px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .tech-stack-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .header .container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  .nav ul {
    gap: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .feature-card, .use-case-card {
    padding: 20px;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-logo {
    align-items: center;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .download-options {
    flex-direction: column;
    align-items: center;
  }
  
  .installation-steps {
    flex-direction: column;
  }
}