/* ===== 基础样式 ===== */
:root {
  --primary: #c8ff00;
  --primary-dark: #a8d900;
  --bg-dark: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #888888;
  --text-muted: #555555;
  --border: #222222;
  --danger: #ff4444;
  --warning: #ff9900;
  --success: #00ff88;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== 背景效果 ===== */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(200, 255, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 255, 0, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -2;
}

.bg-glow {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(200, 255, 0, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 70% 80%, rgba(200, 255, 0, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
  animation: glowMove 20s ease-in-out infinite alternate;
}

@keyframes glowMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-5%, -5%); }
}

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200, 255, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
}

.logo-icon {
  font-size: 24px;
}

.logo-text {
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

/* ===== 主视觉区 ===== */
.hero {
  min-height: 100vh;
  padding: 120px 24px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(200, 255, 0, 0.1);
  border: 1px solid rgba(200, 255, 0, 0.3);
  border-radius: 100px;
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.title-line {
  display: block;
  color: var(--text-primary);
}

.title-highlight {
  display: block;
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-desc .highlight {
  color: var(--primary);
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(200, 255, 0, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-icon {
  font-size: 18px;
}

.hero-stats {
  display: flex;
  gap: 48px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== 应用预览 ===== */
.hero-visual {
  flex: 1;
  max-width: 500px;
}

.app-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #0f0f0f;
  border-bottom: 1px solid var(--border);
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
}

.preview-dots span:first-child { background: #ff5f57; }
.preview-dots span:nth-child(2) { background: #ffbd2e; }
.preview-dots span:last-child { background: #28ca42; }

.preview-title {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.preview-content {
  display: flex;
  min-height: 300px;
}

.preview-sidebar {
  width: 140px;
  background: #0f0f0f;
  padding: 12px;
  border-right: 1px solid var(--border);
}

.preview-item {
  padding: 8px 12px;
  font-size: 11px;
  color: var(--text-muted);
  border-radius: 6px;
  margin-bottom: 4px;
  cursor: default;
}

.preview-item.active {
  background: rgba(200, 255, 0, 0.1);
  color: var(--primary);
  border: 1px solid rgba(200, 255, 0, 0.3);
}

.preview-main {
  flex: 1;
  padding: 20px;
}

.preview-card {
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
}

.card-label {
  font-size: 11px;
  color: var(--text-muted);
}

.card-value {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}

.preview-providers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.preview-providers .provider {
  padding: 10px;
  font-size: 11px;
  text-align: center;
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
}

.preview-providers .provider.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg-dark);
  font-weight: 600;
}

.preview-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: var(--bg-dark);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
}

/* ===== 通用区块 ===== */
.section {
  padding: 100px 24px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 64px;
}

/* ===== 功能特点 ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: rgba(200, 255, 0, 0.3);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 255, 0, 0.1);
  border: 1px solid rgba(200, 255, 0, 0.3);
  border-radius: 8px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--primary);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== 服务商 ===== */
.providers {
  background: linear-gradient(180deg, transparent, rgba(200, 255, 0, 0.02), transparent);
}

.providers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.provider-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  transition: all 0.3s;
}

.provider-card:hover {
  border-color: rgba(200, 255, 0, 0.3);
}

.provider-card.recommended {
  border-color: rgba(200, 255, 0, 0.5);
  background: linear-gradient(135deg, rgba(200, 255, 0, 0.05), transparent);
}

.provider-card.warning {
  opacity: 0.6;
  border-color: rgba(255, 68, 68, 0.3);
}

.provider-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  padding: 4px 12px;
  background: var(--primary);
  color: var(--bg-dark);
  font-size: 11px;
  font-weight: 600;
  border-radius: 100px;
}

.provider-badge.warning {
  background: var(--danger);
  color: white;
}

/* 移除了 provider-logo 因为不再使用 */

.provider-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.provider-card > p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.provider-features {
  list-style: none;
}

.provider-features li {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.provider-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.provider-card.warning .provider-features li::before {
  content: '⚠';
  color: var(--danger);
}

/* ===== 下载区域 ===== */
.download {
  background: linear-gradient(180deg, transparent, rgba(200, 255, 0, 0.03));
}

.download-card {
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  box-shadow: 0 20px 60px rgba(200, 255, 0, 0.1);
}

.download-info {
  display: flex;
  align-items: center;
  gap: 24px;
}

.download-icon {
  font-size: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--bg-dark);
  background: var(--primary);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.download-details h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.download-details p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.download-meta {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: var(--text-muted);
}

.download-buttons {
  display: flex;
  gap: 12px;
}

.btn-download, .btn-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-download {
  background: var(--primary);
  color: var(--bg-dark);
}

.btn-download:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-github {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-github:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.download-note {
  text-align: center;
  padding: 16px;
  background: rgba(255, 153, 0, 0.1);
  border: 1px solid rgba(255, 153, 0, 0.3);
  border-radius: 12px;
}

.download-note p {
  font-size: 14px;
  color: var(--warning);
}

/* ===== 使用指南 ===== */
.steps {
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 24px;
  top: 60px;
  bottom: -24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), transparent);
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--bg-dark);
  font-size: 24px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.step-content p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.code-block {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
}

.code-block code {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--primary);
}

.copy-btn {
  padding: 6px 12px;
  background: var(--border);
  border: none;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: var(--primary);
  color: var(--bg-dark);
}

.api-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.api-links a {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.api-links a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== 页脚 ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 24px;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.footer-links {
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-links .divider {
  color: var(--text-muted);
  margin: 0 16px;
}

.footer-copyright {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .providers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-visual {
    display: none;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .providers-grid {
    grid-template-columns: 1fr;
  }
  
  .download-card {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  
  .download-info {
    flex-direction: column;
  }
  
  .step {
    flex-direction: column;
    gap: 16px;
  }
  
  .step::after {
    display: none;
  }
}

