/* ========== CSS Reset & Base ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #0a0e1a;
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ========== Scrollbar ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0e1a; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #ff4655, #ff6b7a); border-radius: 4px; }

/* ========== Navigation ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 70, 85, 0.3);
  transition: all 0.3s ease;
}
.navbar .nav-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 65px;
}
.navbar .logo {
  font-size: 22px; font-weight: 800;
  background: linear-gradient(135deg, #ff4655, #ff8a9e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}
.navbar .logo span { font-size: 12px; display: block; letter-spacing: 3px; opacity: 0.7; }
.navbar nav ul { display: flex; gap: 28px; }
.navbar nav a {
  font-size: 14px; font-weight: 500; color: #aaa;
  transition: color 0.3s; position: relative;
  padding: 5px 0;
}
.navbar nav a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: #ff4655;
  transition: width 0.3s;
}
.navbar nav a:hover { color: #ff4655; }
.navbar nav a:hover::after { width: 100%; }
.mobile-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 5px;
}
.mobile-menu-btn span {
  width: 24px; height: 2px; background: #ff4655;
  border-radius: 2px; transition: all 0.3s;
}

/* ========== Hero Section ========== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative;
  padding: 80px 20px 40px;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 70, 85, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(100, 50, 200, 0.1) 0%, transparent 50%),
              #0a0e1a;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ff4655' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
  display: inline-block;
  background: rgba(255, 70, 85, 0.15);
  border: 1px solid rgba(255, 70, 85, 0.4);
  color: #ff4655;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 24px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 70, 85, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(255, 70, 85, 0); }
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, #ff8a9e 50%, #ff4655 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: clamp(15px, 2.5vw, 18px);
  color: #8892a4;
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  letter-spacing: 0.5px;
}
.btn-primary {
  background: linear-gradient(135deg, #ff4655, #e0364a);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 70, 85, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 70, 85, 0.6);
}
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 70, 85, 0.5);
  color: #ff4655;
}
.btn-outline:hover {
  background: rgba(255, 70, 85, 0.1);
  border-color: #ff4655;
}

/* ========== Section Common ========== */
section { padding: 80px 20px; }
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: ''; position: absolute; bottom: -8px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: linear-gradient(90deg, #ff4655, #ff8a9e);
  border-radius: 2px;
}
.section-title p {
  color: #6b7a8d;
  font-size: 15px;
  margin-top: 16px;
}
.container { max-width: 1200px; margin: 0 auto; }

/* ========== Image Showcase (三张主图) ========== */
.image-showcase {
  background: linear-gradient(180deg, #0a0e1a 0%, #111628 50%, #0a0e1a 100%);
}
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.image-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, #1a1f35, #131829);
  border: 1px solid rgba(255, 70, 85, 0.15);
  transition: all 0.4s ease;
}
.image-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 70, 85, 0.4);
  box-shadow: 0 20px 40px rgba(255, 70, 85, 0.15);
}
.image-placeholder {
  width: 100%; aspect-ratio: 16/10;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a1f35 0%, #1e2545 100%);
  position: relative;
  overflow: hidden;
}
.image-placeholder::before {
  content: ''; position: absolute;
  width: 80px; height: 80px;
  border: 3px solid rgba(255, 70, 85, 0.3);
  border-radius: 12px;
  transform: rotate(45deg);
}
.image-placeholder .icon { font-size: 36px; z-index: 1; }
.image-placeholder .label { font-size: 13px; color: #6b7a8d; margin-top: 12px; z-index: 1; }
.image-card-info { padding: 20px; }
.image-card-info h3 { font-size: 17px; color: #fff; margin-bottom: 6px; }
.image-card-info p { font-size: 13px; color: #6b7a8d; line-height: 1.6; }

/* ========== Features (功能介绍) ========== */
.features {
  background: #0d1224;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: linear-gradient(145deg, #151b30, #111625);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff4655, #ff8a9e, #a855f7);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
  border-color: rgba(255, 70, 85, 0.2);
  transform: translateY(-4px);
}
.feature-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  background: rgba(255, 70, 85, 0.1);
  border: 1px solid rgba(255, 70, 85, 0.2);
}
.feature-card h3 { font-size: 18px; color: #fff; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: #6b7a8d; line-height: 1.7; }

/* ========== Stats ========== */
.stats-section {
  background: linear-gradient(135deg, #ff4655, #e0364a);
  padding: 50px 20px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.stat-item .stat-number {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  color: #fff;
}
.stat-item .stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
}

/* ========== Cards Module ========== */
.cards-section { background: #0a0e1a; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.info-card {
  background: linear-gradient(145deg, #151b30, #111625);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 28px;
  transition: all 0.3s;
}
.info-card:hover {
  border-color: rgba(255, 70, 85, 0.2);
  transform: translateY(-3px);
}
.info-card .card-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
}
.info-card .card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.info-card h3 { font-size: 17px; color: #fff; }
.info-card p { font-size: 14px; color: #6b7a8d; line-height: 1.7; }
.info-card .tag {
  display: inline-block;
  background: rgba(255, 70, 85, 0.1);
  color: #ff4655;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  margin-top: 12px;
}

/* ========== Download Section ========== */
.download-section {
  background: linear-gradient(180deg, #111628 0%, #0a0e1a 100%);
  text-align: center;
}
.download-box {
  max-width: 700px;
  margin: 0 auto;
  background: linear-gradient(145deg, #1a2038, #141c30);
  border: 1px solid rgba(255, 70, 85, 0.2);
  border-radius: 20px;
  padding: 50px 30px;
  position: relative;
  overflow: hidden;
}
.download-box::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 70, 85, 0.05) 0%, transparent 50%);
  pointer-events: none;
}
.download-icon { font-size: 56px; margin-bottom: 20px; }
.download-box h2 {
  font-size: 28px; color: #fff; margin-bottom: 12px;
}
.download-box p {
  color: #6b7a8d; font-size: 15px; margin-bottom: 30px;
}
.btn-download {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #ff4655, #e0364a);
  color: #fff;
  padding: 16px 42px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  box-shadow: 0 4px 24px rgba(255, 70, 85, 0.4);
  position: relative;
  z-index: 1;
}
.btn-download:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 40px rgba(255, 70, 85, 0.6);
}
.btn-download .arrow { transition: transform 0.3s; }
.btn-download:hover .arrow { transform: translateY(3px); }
.version-info {
  margin-top: 20px;
  font-size: 13px;
  color: #4a5568;
}

/* ========== Tutorial (部署教程) ========== */
.tutorial {
  background: linear-gradient(180deg, #0a0e1a 0%, #0d1224 100%);
}
.tutorial-steps {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
.tutorial-steps::before {
  content: ''; position: absolute;
  left: 28px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #ff4655, #a855f7);
}
.step-item {
  display: flex; gap: 24px;
  margin-bottom: 32px;
  position: relative;
}
.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4655, #e0364a);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(255, 70, 85, 0.3);
  position: relative;
  z-index: 1;
}
.step-content {
  background: linear-gradient(145deg, #151b30, #111625);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 24px;
  flex: 1;
  transition: all 0.3s;
}
.step-content:hover {
  border-color: rgba(255, 70, 85, 0.15);
}
.step-content h3 { font-size: 17px; color: #fff; margin-bottom: 8px; }
.step-content p { font-size: 14px; color: #6b7a8d; line-height: 1.7; }
.step-content code {
  display: inline-block;
  background: rgba(255, 70, 85, 0.1);
  color: #ff4655;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'Courier New', monospace;
}

/* ========== FAQ ========== */
.faq { background: #0d1224; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: linear-gradient(145deg, #151b30, #111625);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item:hover { border-color: rgba(255, 70, 85, 0.15); }
.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
.faq-question h3 { font-size: 16px; color: #fff; font-weight: 600; }
.faq-arrow {
  font-size: 18px; color: #ff4655;
  transition: transform 0.3s;
  display: inline-block;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}
.faq-answer p { font-size: 14px; color: #6b7a8d; line-height: 1.8; }

/* ========== Footer ========== */
.footer {
  background: #070a14;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 50px 20px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-size: 16px; color: #fff; margin-bottom: 16px;
  position: relative;
  display: inline-block;
}
.footer-col h4::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 30px; height: 2px; background: #ff4655; border-radius: 1px;
}
.footer-col ul li {
  margin-bottom: 10px;
  font-size: 14px;
  color: #5a6778;
  transition: color 0.3s;
}
.footer-col ul li:hover { color: #ff4655; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #4a5568;
}
.footer-bottom a { color: #ff4655; }

/* ========== Back to Top ========== */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4655, #e0364a);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 70, 85, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  border: none;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); }

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .image-grid { grid-template-columns: 1fr; }
  .navbar nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .navbar nav.active {
    display: block;
    position: absolute; top: 65px; left: 0; right: 0;
    background: rgba(10, 14, 26, 0.98);
    border-bottom: 1px solid rgba(255, 70, 85, 0.3);
    padding: 20px;
  }
  .navbar nav.active ul {
    flex-direction: column; gap: 16px;
  }
  .tutorial-steps::before { left: 20px; }
  .step-number { width: 40px; height: 40px; font-size: 16px; }
}
@media (max-width: 480px) {
  section { padding: 60px 15px; }
  .hero { padding: 80px 15px 30px; }
  .download-box { padding: 36px 20px; }
  .btn { padding: 12px 24px; font-size: 14px; }
}