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

:root {
  --bg-primary: #0a192f;
  --bg-secondary: #112240;
  --bg-card: #1d3557;
  --accent: #00d4ff;
  --accent-glow: rgba(0, 212, 255, 0.3);
  --text-primary: #ccd6f6;
  --text-secondary: #8892b0;
  --text-white: #e6f1ff;
  --border: rgba(0, 212, 255, 0.15);
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #33e0ff; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ========== Navbar ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; color: var(--text-white); }
.nav-logo-img { height: 50px; width: auto; }
.logo-icon {
  width: 36px; height: 36px; background: var(--accent); color: var(--bg-primary);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.logo-text { font-size: 18px; font-weight: 600; letter-spacing: 1px; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: block; padding: 8px 14px; color: var(--text-secondary);
  font-size: 14px; border-radius: 6px; transition: all var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--accent); background: rgba(0,212,255,0.08); }
.nav-btn-shop {
  background: var(--accent) !important; color: var(--bg-primary) !important;
  font-weight: 600; border-radius: 20px; padding: 8px 20px !important;
}
.nav-btn-shop:hover { background: #33e0ff !important; box-shadow: 0 0 20px var(--accent-glow); }

/* Dropdown */
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px; min-width: 160px; opacity: 0; visibility: hidden;
  transition: all var(--transition); pointer-events: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.dropdown-item { display: block; padding: 8px 16px; color: var(--text-secondary); font-size: 13px; border-radius: 6px; transition: all var(--transition); white-space: nowrap; }
.dropdown-item:hover { color: var(--accent); background: rgba(0,212,255,0.08); }

/* 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-secondary); border-radius: 2px; transition: all 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 { position: relative; height: 100vh; min-height: 500px; overflow: hidden; }
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.8s ease; cursor: pointer;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide-bg { position: absolute; inset: 0; }
.hero-slide-bg::after { content: ''; position: absolute; inset: 0; background: rgba(10, 25, 47, 0.55); }
.hero-content {
  position: relative; z-index: 2; text-align: center; padding: 0 24px;
  animation: fadeInUp 0.8s ease;
}
.hero-content h1 { font-size: 48px; font-weight: 700; color: var(--text-white); margin-bottom: 16px; letter-spacing: 2px; }
.hero-content p { font-size: 18px; color: var(--text-secondary); margin-bottom: 32px; }
.hero-btn {
  display: inline-block; padding: 12px 32px; background: var(--accent);
  color: var(--bg-primary); font-weight: 600; border-radius: 30px; font-size: 15px;
  transition: all var(--transition);
}
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); color: var(--bg-primary); }

.hero-arrow {
  position: absolute; top: 50%; z-index: 10; transform: translateY(-50%);
  background: rgba(0,0,0,0.3); border: 1px solid var(--border); color: var(--text-white);
  width: 48px; height: 48px; border-radius: 50%; font-size: 20px; cursor: pointer;
  transition: all var(--transition); display: flex; align-items: center; justify-content: center;
}
.hero-arrow:hover { background: var(--accent); color: var(--bg-primary); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }

.hero-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.3);
  cursor: pointer; transition: all var(--transition);
}
.hero-dot.active { background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }

/* ========== Sections ========== */
.section { padding: 100px 0; }
.section-title {
  text-align: center; font-size: 32px; font-weight: 700; color: var(--text-white);
  margin-bottom: 8px;
}
.section-subtitle {
  text-align: center; color: var(--text-secondary); margin-bottom: 48px; font-size: 15px;
}

/* ========== Products ========== */
.product-filters { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
  padding: 8px 24px; background: transparent; border: 1px solid var(--border);
  color: var(--text-secondary); border-radius: 20px; cursor: pointer; font-size: 14px;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--accent); color: var(--bg-primary); border-color: var(--accent); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.product-card {
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; transition: all var(--transition); cursor: pointer;
}
.product-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 8px 40px rgba(0,212,255,0.12); }

.product-img { height: 200px; background: var(--bg-card); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-img-placeholder {
  font-size: 28px; font-weight: 700; color: var(--accent); letter-spacing: 2px;
  opacity: 0.5;
}

.product-info { padding: 20px; }
.product-info h3 { font-size: 16px; color: var(--text-white); margin-bottom: 8px; }
.product-info p { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.product-link { font-size: 13px; font-weight: 500; }

/* ========== Scenarios ========== */
.scenarios { background: var(--bg-secondary); }
.scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.scenario-card {
  background: var(--bg-primary); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; transition: all var(--transition); text-decoration: none; color: inherit; display: block;
}
.scenario-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,212,255,0.1); }
.scenario-img { width: 100%; height: 200px; object-fit: cover; }
.scenario-img-placeholder {
  width: 100%; height: 200px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
  font-size: 64px;
}
.scenario-info { padding: 20px; }
.scenario-info h3 { font-size: 18px; color: var(--text-white); margin-bottom: 8px; }
.scenario-info p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ========== Support ========== */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.support-card {
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 16px;
  padding: 40px 24px; text-align: center; transition: all var(--transition);
}
.support-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.support-icon { font-size: 40px; margin-bottom: 16px; }
.support-card h3 { font-size: 18px; color: var(--text-white); margin-bottom: 8px; }
.support-card p { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.support-link { font-size: 14px; font-weight: 500; }

/* ========== About ========== */
.about-content { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: center; }
.about-text h3 { font-size: 24px; color: var(--text-white); margin-bottom: 16px; }
.about-text p { color: var(--text-secondary); margin-bottom: 12px; font-size: 15px; }
.about-stats { display: flex; gap: 32px; }
.stat-item { text-align: center; }
.stat-number { display: block; font-size: 36px; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 13px; color: var(--text-secondary); }

/* ========== Footer ========== */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 16px; color: var(--text-white); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 14px; color: var(--text-secondary); }
.footer-col a { color: var(--text-secondary); transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 0; text-align: center;
  font-size: 13px; color: var(--text-secondary);
}

/* ========== Sidebar Float ========== */
.sidebar-float {
  position: fixed; right: 20px; bottom: 80px;
  z-index: 999; display: flex; flex-direction: column; gap: 12px;
}
.float-item { position: relative; }
.float-btn {
  width: 44px; height: 44px; background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--accent); cursor: pointer; transition: all var(--transition);
}
.float-btn:hover { background: var(--accent); color: var(--bg-primary); box-shadow: 0 0 20px var(--accent-glow); }

.float-panel {
  position: absolute; right: 56px; top: 50%; transform: translateY(-50%);
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; min-width: 200px; opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s; pointer-events: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.float-item.active .float-panel {
  opacity: 1; visibility: visible; transform: translateY(-50%) translateX(-8px); pointer-events: auto;
}

.float-panel-title { font-size: 14px; font-weight: 600; color: var(--text-white); margin-bottom: 12px; }
.float-panel p { font-size: 13px; color: var(--text-secondary); }
.float-panel-info p { margin-bottom: 6px; }
.qrcode-placeholder {
  width: 120px; height: 120px; background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 13px; margin-bottom: 8px;
}

/* ========== Animations ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .scenario-grid { grid-template-columns: repeat(2, 1fr); }
  .about-content { grid-template-columns: 1fr; }
  .about-stats { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: rgba(10, 25, 47, 0.98); backdrop-filter: blur(12px);
    flex-direction: column; padding: 24px; gap: 0;
    transform: translateX(100%); transition: transform var(--transition);

@media (max-width: 768px) {
  .nav-menu {
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: rgba(10, 25, 47, 0.98); backdrop-filter: blur(12px);
    flex-direction: column; padding: 24px; gap: 0;
    transform: translateX(100%); transition: transform var(--transition);
  }
  .nav-menu.active { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-item { width: 100%; }
  .nav-link { padding: 12px 16px; font-size: 16px; }
  .dropdown { position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto; display: none; border: none; box-shadow: none; padding: 0 0 0 16px; min-width: auto; background: transparent; }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown-item { font-size: 14px; padding: 10px 16px; }
  .nav-btn-shop { text-align: center; margin-top: 8px; }

  .hero-content h1 { font-size: 28px; }
  .hero-content p { font-size: 15px; }
  .hero-arrow { width: 40px; height: 40px; font-size: 16px; }

  .section { padding: 60px 0; }
  .section-title { font-size: 24px; }
  .form-row { grid-template-columns: 1fr; }

  .scenario-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .sidebar-float { right: 12px; }
  .float-btn { width: 40px; height: 40px; }
  .float-panel { min-width: 180px; padding: 16px; right: 48px; }
  #floatTop { display: none; }

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

@media (max-width: 480px) {
  .hero-content h1 { font-size: 22px; }
  .container { padding: 0 16px; }
}
