/* ============================================================
   DUPLEX VENTURES — Tech Style Website
   ============================================================ */
:root {
  --bg: #050b18;
  --bg-2: #0a1428;
  --panel: rgba(16, 28, 52, 0.55);
  --panel-2: rgba(22, 38, 68, 0.7);
  --line: rgba(96, 165, 250, 0.18);
  --cyan: #38bdf8;
  --blue: #6366f1;
  --violet: #8b5cf6;
  --text: #e8eefc;
  --text-dim: #93a4c4;
  --grad: linear-gradient(120deg, #38bdf8 0%, #6366f1 55%, #8b5cf6 100%);
  --radius: 18px;
  --font-cn: "Noto Sans SC", "Inter", sans-serif;
  --font-en: "Inter", "Orbitron", sans-serif;
  --font-disp: "Orbitron", "Noto Sans SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-cn);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- 背景装饰 ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(96,165,250,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,165,250,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
}
.glow {
  position: fixed; z-index: -1; border-radius: 50%;
  filter: blur(120px); opacity: .35; pointer-events: none;
}
.glow-a { width: 520px; height: 520px; background: #1d4ed8; top: -160px; left: -120px; }
.glow-b { width: 480px; height: 480px; background: #7c3aed; bottom: -140px; right: -100px; }

/* ---------- 导航 ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(5, 11, 24, 0.72);
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); }
.brand-name { font-family: var(--font-disp); font-weight: 900; letter-spacing: 2px; font-size: 1.05rem; }
.brand-name em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text-dim); font-size: .95rem; font-weight: 500; position: relative; transition: color .25s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); transition: width .3s;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 16px; }

.lang-switch {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; cursor: pointer; color: var(--text-dim);
  font-weight: 700; font-size: .9rem;
}
.lang-opt { transition: color .25s; }
.lang-opt.active { color: #fff; }
.lang-divider { width: 1px; height: 14px; background: var(--line); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 999px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s;
  font-size: .95rem;
}
.btn-small { padding: 9px 20px; font-size: .88rem; }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 28px rgba(99,102,241,.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(99,102,241,.55); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: rgba(96,165,250,.12); transform: translateY(-3px); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 140px 0 80px; position: relative;
}
.hero-inner { text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 20px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--text-dim); font-size: .88rem; margin-bottom: 28px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(56,189,248,.6); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(56,189,248,.6); }
  70% { box-shadow: 0 0 0 12px rgba(56,189,248,0); }
  100% { box-shadow: 0 0 0 0 rgba(56,189,248,0); }
}
.hero-title { font-family: var(--font-disp); font-size: clamp(2.2rem, 6vw, 4.2rem); font-weight: 900; line-height: 1.25; margin-bottom: 22px; }
.hero-title .line { display: block; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 760px; margin: 0 auto 36px; color: var(--text-dim); font-size: 1.05rem; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  max-width: 880px; margin: 0 auto;
}
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 10px; backdrop-filter: blur(8px);
}
.stat-num, .stat-suffix { display: inline; font-family: var(--font-disp); font-size: 2rem; font-weight: 900; color: var(--cyan); }
.stat-label { color: var(--text-dim); font-size: .9rem; margin-top: 6px; }
.hero-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 44px; border: 2px solid var(--line); border-radius: 14px; }
.hero-scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: var(--cyan); border-radius: 2px; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { top: 8px; opacity: 1; } 100% { top: 28px; opacity: 0; } }

/* ---------- 通用 Section ---------- */
.section { padding: 110px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; padding: 6px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--cyan); font-size: .82rem; letter-spacing: 2px; font-weight: 700; margin-bottom: 18px;
}
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 900; }
.section-sub { color: var(--text-dim); max-width: 620px; margin: 14px auto 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.about-visual { position: relative; }
.frame-3d {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--panel-2); border: 1px solid var(--line); padding: 30px;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.frame-3d img { border-radius: 12px; margin: 0 auto; max-width: 75%; }
.frame-corner { position: absolute; width: 34px; height: 34px; border-top: 3px solid var(--cyan); border-left: 3px solid var(--cyan); top: 14px; left: 14px; }
.frame-corner.c2 { top: auto; left: auto; bottom: 14px; right: 14px; border-top: 0; border-left: 0; border-bottom: 3px solid var(--violet); border-right: 3px solid var(--violet); }
.about-chip {
  position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; padding: 10px 26px; border-radius: 999px;
  font-weight: 700; font-size: .9rem; white-space: nowrap; box-shadow: 0 10px 30px rgba(99,102,241,.4);
}
.about-p { color: var(--text-dim); margin-bottom: 18px; font-size: 1.02rem; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: 26px; }
.point { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 500; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grad); flex-shrink: 0; box-shadow: 0 0 12px rgba(56,189,248,.7); }

/* ---------- Products ---------- */
.product-block {
  background: var(--panel); border: 1px solid var(--line); border-radius: 24px;
  padding: 36px; margin-bottom: 36px; backdrop-filter: blur(8px);
}
.product-block-head { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 26px; }
.pb-index {
  font-family: var(--font-disp); font-size: 2.4rem; font-weight: 900;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1; min-width: 70px;
}
.pb-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.pb-desc { color: var(--text-dim); }

.product-gallery { display: grid; gap: 18px; }
.gallery-3 { grid-template-columns: repeat(3, 1fr); }
.p-card {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); background: #0b1628;
  transition: transform .3s, box-shadow .3s;
}
.p-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(56,189,248,.18); }
.p-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.p-card.large img { aspect-ratio: 16 / 11; }
.p-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px;
  background: linear-gradient(transparent, rgba(3,8,18,.9));
  font-size: .9rem; font-weight: 600;
}
.feature-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.feature-chip {
  padding: 8px 18px; border-radius: 999px; font-size: .88rem; font-weight: 600;
  background: rgba(56,189,248,.08); border: 1px solid var(--line); color: var(--text);
}

/* ---------- Why Us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; transition: transform .3s, border-color .3s;
}
.why-card:hover { transform: translateY(-6px); border-color: rgba(56,189,248,.5); }
.why-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad); font-size: 1.4rem; margin-bottom: 18px; color: #fff;
}
.why-card h4 { font-size: 1.12rem; margin-bottom: 10px; }
.why-card p { color: var(--text-dim); font-size: .94rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 40px; }
.contact-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; text-align: center;
}
.c-icon { font-size: 1.9rem; margin-bottom: 12px; }
.contact-card h4 { margin-bottom: 10px; }
.contact-card p { color: var(--text-dim); font-size: .96rem; }
.contact-card .muted { font-size: .85rem; }
.contact-cta { text-align: center; }
.btn-wa { background: linear-gradient(120deg, #16a34a, #22c55e); box-shadow: 0 8px 28px rgba(34,197,94,.35); font-size: 1.05rem; padding: 16px 44px; }
.btn-wa:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(34,197,94,.55); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: rgba(3,8,18,.6); padding: 56px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-bottom: 36px; }
.footer-brand img { width: 56px; border-radius: 12px; margin-bottom: 14px; }
.footer-brand p, .footer-col p { color: var(--text-dim); font-size: .92rem; }
.footer-col h5 { margin-bottom: 14px; font-size: 1rem; }
.footer-col a { display: block; color: var(--text-dim); margin-bottom: 8px; transition: color .25s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 20px 0; text-align: center;
  color: var(--text-dim); font-size: .88rem; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
}

/* ---------- Reveal 动画 ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: rgba(5,11,24,.96); flex-direction: column; padding: 20px 6%; gap: 18px;
    border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .gallery-3 { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .gallery-3 { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .product-block { padding: 22px; }
  .pb-index { min-width: 52px; font-size: 1.8rem; }
}
