/* ===== Design Tokens ===== */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2035;
  --color-primary: #6366f1;
  --color-accent: #06b6d4;
  --gradient-main: linear-gradient(135deg, #6366f1, #06b6d4);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --border-color: rgba(99, 102, 241, 0.2);
  --radius-card: 12px;
  --radius-btn: 8px;
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);
  --transition: 0.3s ease;
  --max-width: 1200px;
  --nav-height: 72px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--color-primary);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  background: rgba(10, 14, 23, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.navbar.scrolled {
  background: rgba(10, 14, 23, 0.95);
  box-shadow: 0 1px 0 var(--border-color);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand img {
  height: 36px;
  width: auto;
}

.nav-brand span {
  font-size: 18px;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 8px 20px;
  background: var(--gradient-main);
  color: #fff !important;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 14px;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  opacity: 0.9;
  color: #fff !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
  animation: heroBgFloat 20s ease-in-out infinite;
}

@keyframes heroBgFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2%, 2%); }
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 0 24px;
  transition: transform 0.6s ease-out;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 13px;
  color: var(--color-accent);
  margin-bottom: 24px;
  background: rgba(6, 182, 212, 0.05);
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  background-size: 200% auto;
}

.btn-primary:hover {
  background-position: right center;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  background: rgba(99, 102, 241, 0.1);
  color: var(--text-primary);
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s infinite;
}

.scroll-hint svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-secondary);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* Floating orbs */
.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  transition: transform 0.8s ease-out;
}
  width: 400px;
  height: 400px;
  background: var(--color-primary);
  top: 10%;
  left: 15%;
  animation: orbFloat 15s ease-in-out infinite;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: var(--color-accent);
  bottom: 20%;
  right: 10%;
  animation: orbFloat 18s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -30px); }
  66% { transform: translate(-20px, 20px); }
}

/* Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0;
  animation: particleRise linear infinite;
}

.particle:nth-child(1)  { left: 10%; animation-duration: 8s;  animation-delay: 0s; }
.particle:nth-child(2)  { left: 20%; animation-duration: 10s; animation-delay: 1.5s; }
.particle:nth-child(3)  { left: 30%; animation-duration: 7s;  animation-delay: 3s; }
.particle:nth-child(4)  { left: 42%; animation-duration: 9s;  animation-delay: 0.8s; }
.particle:nth-child(5)  { left: 55%; animation-duration: 11s; animation-delay: 2.2s; }
.particle:nth-child(6)  { left: 65%; animation-duration: 8s;  animation-delay: 4s; }
.particle:nth-child(7)  { left: 75%; animation-duration: 10s; animation-delay: 1s; }
.particle:nth-child(8)  { left: 85%; animation-duration: 7s;  animation-delay: 2.8s; }
.particle:nth-child(9)  { left: 15%; animation-duration: 12s; animation-delay: 3.5s; }
.particle:nth-child(10) { left: 50%; animation-duration: 9s;  animation-delay: 0.5s; }
.particle:nth-child(11) { left: 70%; animation-duration: 8s;  animation-delay: 2s; }
.particle:nth-child(12) { left: 90%; animation-duration: 10s; animation-delay: 1.2s; }

@keyframes particleRise {
  0%   { bottom: -5%; opacity: 0; transform: translateX(0); }
  10%  { opacity: 0.6; }
  50%  { opacity: 0.3; }
  90%  { opacity: 0; }
  100% { bottom: 105%; transform: translateX(40px); }
}

/* Grid lines background */
.hero-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 70%);
}

/* Hero content entrance animation */
.hero-badge {
  animation: heroFadeInUp 0.8s ease both;
  animation-delay: 0.2s;
}

.hero h1 {
  animation: heroFadeInUp 0.8s ease both;
  animation-delay: 0.4s;
}

.hero p {
  animation: heroFadeInUp 0.8s ease both;
  animation-delay: 0.6s;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: heroFadeInUp 0.8s ease both;
  animation-delay: 0.8s;
}

@keyframes heroFadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Section Shared ===== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
}

.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Features (核心优势) ===== */
.features {
  background: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 14px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* ===== Products (产品服务) ===== */
.product-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.product-item:last-child {
  margin-bottom: 0;
}

.product-item.reverse .product-info {
  order: 2;
}

.product-item.reverse .product-image {
  order: 1;
}

.product-info h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 20px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.product-tag {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.product-desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.product-features {
  list-style: none;
  margin-bottom: 28px;
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.product-features li svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 2px;
}

.product-image {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-color);
  position: relative;
}

.product-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(6, 182, 212, 0.05));
  pointer-events: none;
}

.product-image img {
  width: 100%;
  height: auto;
  transition: transform 0.6s ease;
}

.product-item:hover .product-image img {
  transform: scale(1.03);
}

/* ===== Contact ===== */
.contact {
  background: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-info h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.5;
}

.contact-text {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.contact-value {
  font-size: 15px;
  color: var(--text-primary);
}

.contact-value a {
  color: var(--text-primary);
}

.contact-value a:hover {
  color: var(--color-accent);
}

/* QR Code side */
.contact-qr {
  text-align: center;
}

.qr-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 40px;
  display: inline-block;
}

.qr-card img {
  width: 180px;
  height: 180px;
  margin-bottom: 16px;
  border-radius: 8px;
}

.qr-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ===== Footer ===== */
.footer {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-content a {
  color: var(--text-secondary);
}

.footer-content a:hover {
  color: var(--text-primary);
}

.footer-content img {
  width: 16px;
  height: 16px;
  display: inline;
  vertical-align: middle;
  margin-right: 4px;
}

.footer-divider {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.15);
}

/* ===== Scroll Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .product-item {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-item.reverse .product-info {
    order: 1;
  }

  .product-item.reverse .product-image {
    order: 2;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section {
    padding: 72px 0;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .orb-1 {
    width: 200px;
    height: 200px;
  }

  .orb-2 {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
