/* ========== Reset & Base ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #0a0e17;
  color: #c8d6e5;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ========== Variables ========== */
:root {
  --bg-primary: #0a0e17;
  --bg-card: rgba(15, 23, 42, 0.85);
  --bg-card-hover: rgba(20, 30, 55, 0.95);
  --accent: #00d4ff;
  --accent2: #0066ff;
  --accent-glow: rgba(0, 212, 255, 0.15);
  --text-primary: #e8f0fe;
  --text-secondary: #8899aa;
  --border: rgba(0, 212, 255, 0.12);
  --gradient: linear-gradient(135deg, #00d4ff, #0066ff);
  --radius: 12px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Utility ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-title {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 56px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
section { padding: 100px 0; position: relative; }

/* ========== Animated Grid Background ========== */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ========== Navbar ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled { background: rgba(10, 14, 23, 0.95); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 900;
}
.logo-text { color: var(--text-primary); }
.logo-text span { color: var(--accent); }
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}
.nav-cta {
  padding: 10px 24px;
  background: var(--gradient);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}
.nav-cta:hover { box-shadow: 0 0 24px rgba(0, 212, 255, 0.4); transform: translateY(-1px); }

/* ========== Hero ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.hero h1 .highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 560px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  padding: 14px 36px;
  background: var(--gradient);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { box-shadow: 0 0 32px rgba(0, 212, 255, 0.45); transform: translateY(-2px); }
.btn-outline {
  padding: 14px 36px;
  background: transparent;
  border: 1.5px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(0, 212, 255, 0.06);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

/* Hero visual */
.hero-visual {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  pointer-events: none;
}
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.1);
  animation: spin 20s linear infinite;
}
.hero-ring:nth-child(1) { width: 100%; height: 100%; }
.hero-ring:nth-child(2) { width: 75%; height: 75%; top: 12.5%; left: 12.5%; animation-duration: 15s; animation-direction: reverse; border-color: rgba(0, 102, 255, 0.1); }
.hero-ring:nth-child(3) { width: 50%; height: 50%; top: 25%; left: 25%; animation-duration: 25s; }
.hero-ring .node {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  top: -5px;
  left: 50%;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Stats */
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat-item .stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ========== About ========== */
.about { background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(8, 12, 22, 1) 100%); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: 700;
}
.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.02rem;
}
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.about-tags span {
  padding: 8px 18px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 100px;
  font-size: 0.88rem;
  color: var(--accent);
  transition: var(--transition);
}
.about-tags span:hover {
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.3);
}
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.feature-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 212, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 212, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--accent);
}
.feature-card h4 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 600;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== Products ========== */
.products { background: var(--bg-primary); }
.product-cards { display: flex; flex-direction: column; gap: 80px; }
.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: var(--transition);
}
.product-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.product-card:nth-child(even) { direction: rtl; }
.product-card:nth-child(even) > * { direction: ltr; }
.product-img {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
}
.product-img img {
  width: 100%;
  height: auto;
  display: block;
}
.product-info .product-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.product-info h3 {
  font-size: 1.7rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-weight: 700;
}
.product-info p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 1rem;
}
.product-features { display: flex; flex-direction: column; gap: 12px; }
.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.product-features li::before {
  content: "✦";
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.product-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 12px 28px;
  background: var(--gradient);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}
.product-btn:hover {
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.4);
  transform: translateY(-2px);
}

/* ========== Cases ========== */
.cases {
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(8, 12, 22, 1) 100%);
}
.case-showcase {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.case-showcase img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== Contact ========== */
.contact { background: var(--bg-primary); }
.contact-grid {
  display: flex;
  justify-content: center;
}
.contact-info {
  max-width: 600px;
  width: 100%;
  text-align: center;
}
.contact-info h3 {
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: 700;
}
.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.contact-items { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.contact-item:hover {
  border-color: rgba(0, 212, 255, 0.2);
  background: var(--bg-card-hover);
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 212, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-detail h4 {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 2px;
}
.contact-detail p {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0;
}
.contact-form {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--gradient);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.form-submit:hover { box-shadow: 0 0 28px rgba(0, 212, 255, 0.45); }

/* ========== Footer ========== */
.footer {
  padding: 48px 0 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-copy { font-size: 0.85rem; color: var(--text-secondary); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--accent); }

/* ========== Scroll Animations ========== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.8rem; }
  .hero-visual { width: 400px; height: 400px; right: -120px; }
  .about-grid, .product-card { grid-template-columns: 1fr; gap: 40px; }
  .product-card:nth-child(even) { direction: ltr; }
  .product-card { padding: 32px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 2.2rem; }
  .hero-visual { display: none; }
  .hero-stats { gap: 28px; }
  .section-title { font-size: 1.8rem; }
  section { padding: 72px 0; }
  .about-features { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline { text-align: center; justify-content: center; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .product-card { padding: 20px; }
  .contact-form { padding: 24px; }
}

/* ========== Modal ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 720px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  transition: var(--transition);
  line-height: 1;
}
.modal-close:hover { color: var(--accent); }
.modal-content h3 {
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.modal-content h4 {
  font-size: 1.1rem;
  color: var(--accent);
  margin: 24px 0 12px;
  font-weight: 600;
}
.modal-content p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.8;
}
.modal-content ul {
  list-style: none;
  padding: 0;
}
.modal-content ul li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.7;
}
.modal-content ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.modal-content ul li strong { color: var(--text-primary); }

/* ========== Mobile Nav ========== */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 23, 0.97);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1.3rem;
  color: var(--text-primary);
  font-weight: 600;
}
.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2rem;
  color: var(--text-primary);
  cursor: pointer;
  background: none;
  border: none;
}
