/* 极视光 LuxVix Gear — 全局样式（纯手写静态站）
   设计风格：暗夜战术 Tactical Nightfall
   底色：炭黑带极淡绿调；强调色：夜视荧光绿 #3DDC84
   标题字：Saira（窄体硬朗）+ 思源黑体；正文：Noto Sans SC；数据：JetBrains Mono */

:root {
  --bg: #0c1310;
  --bg-2: #111a16;
  --card: #15201b;
  --card-2: #1a2620;
  --border: rgba(120, 150, 135, 0.18);
  --border-strong: rgba(120, 150, 135, 0.3);
  --primary: #3ddc84;
  --primary-dim: #2bbd6e;
  --fg: #e8ede9;
  --fg-muted: #93a39a;
  --fg-dim: #6c7c73;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --maxw: 1100px;
  --font-display: "Saira", "Noto Sans SC", sans-serif;
  --font-sans: "Noto Sans SC", "Saira", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 80% -10%, rgba(61, 220, 132, 0.12), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(43, 189, 110, 0.08), transparent 40%);
  background-attachment: fixed;
  color: var(--fg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.01em; line-height: 1.1; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: rgba(61, 220, 132, 0.3); }

.container { width: 100%; max-width: var(--maxw); margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem; }
@media (min-width: 640px) { .container { padding-left: 2rem; padding-right: 2rem; } }
@media (min-width: 1024px) { .container { padding-left: 2.5rem; padding-right: 2.5rem; } }
/* 超大屏：进一步增加两侧留白，内容更聚焦舒展 */
@media (min-width: 1600px) { .container { max-width: 1240px; } }

/* ===== HUD 元素 ===== */
.hud-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--primary);
}
.hud-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.section-label { display: flex; align-items: center; gap: 0.75rem; }
.section-label::before { content: ""; height: 1px; width: 2rem; background: rgba(61,220,132,0.7); }

.grid-overlay {
  background-image:
    linear-gradient(rgba(61,220,132,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,220,132,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hud-frame { position: relative; }
.hud-frame::before, .hud-frame::after {
  content: ""; position: absolute; width: 18px; height: 18px;
  border-color: var(--primary); opacity: 0.8; pointer-events: none;
}
.hud-frame::before { top: 0; left: 0; border-top: 2px solid; border-left: 2px solid; }
.hud-frame::after { bottom: 0; right: 0; border-bottom: 2px solid; border-right: 2px solid; }

.text-primary { color: var(--primary); }
.text-glow { text-shadow: 0 0 24px rgba(61,220,132,0.45); }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: 4px; font-weight: 600;
  font-size: 0.95rem; cursor: pointer; transition: all 0.2s var(--ease);
  border: 1px solid transparent;
}
.btn svg { width: 1rem; height: 1rem; }
.btn-primary { background: var(--primary); color: #0c1310; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-primary:active { transform: scale(0.97); }
.btn-ghost { border-color: var(--border-strong); color: var(--fg); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost:active { transform: scale(0.97); }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: all 0.3s var(--ease);
  background: linear-gradient(to bottom, rgba(12,19,16,0.8), transparent);
}
.site-header.scrolled {
  background: rgba(12,19,16,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 0.625rem; }
.brand img { height: 36px; width: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-cn { font-family: var(--font-display); font-size: 1.125rem; font-weight: 800; }
.brand-en { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.32em; color: rgba(61,220,132,0.9); margin-top: 2px; }

.nav { display: none; align-items: center; gap: 0.25rem; }
.nav a {
  position: relative; padding: 0.5rem 1rem; font-size: 0.9rem; font-weight: 500;
  color: var(--fg-muted); transition: color 0.2s var(--ease);
}
.nav a:hover { color: var(--fg); }
.nav a.active { color: var(--primary); }
.nav a.active::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: -1px; height: 1px; background: var(--primary); }
.header-cta { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-btn { display: none; }
}

.menu-btn { background: none; border: none; color: var(--fg); cursor: pointer; padding: 0.5rem; }
.menu-btn svg { width: 1.5rem; height: 1.5rem; }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: rgba(12,19,16,0.97); backdrop-filter: blur(16px); }
.mobile-nav.open { display: block; }
.mobile-nav nav { display: flex; flex-direction: column; padding: 0.5rem 0; }
.mobile-nav a { padding: 0.875rem 0.5rem; font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .btn { margin-top: 0.75rem; justify-content: center; }

/* ===== 通用 section ===== */
main { padding-top: 64px; }
.section { padding-top: 5rem; padding-bottom: 5rem; }
.section-sm { padding-top: 3rem; padding-bottom: 3rem; }
.eyebrow { margin-top: 1.25rem; }
.h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; }
.h2 { font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 800; }
.lead { margin-top: 1rem; font-size: 1.125rem; color: var(--fg-muted); max-width: 42rem; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; }
.hero .grid-overlay { position: absolute; inset: 0; opacity: 0.4; }
.hero-inner { position: relative; display: grid; gap: 3rem; align-items: center; min-height: 86vh; padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 0.95fr 1.05fr; } }
.hero h1 { margin-top: 1.5rem; }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-stats { margin-top: 3rem; display: flex; gap: 2rem; }
.hero-stats .v { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.hero-stats .l { margin-top: 0.25rem; font-size: 0.75rem; color: var(--fg-muted); }
.hero-img { position: relative; padding: 0.5rem; }
.hero-img .frame { overflow: hidden; border-radius: 4px; border: 1px solid var(--border-strong); aspect-ratio: 3/4; }
.hero-img .frame img { width: 100%; height: 100%; object-fit: contain; background: var(--bg); }
.hero-img .tag { position: absolute; bottom: -12px; left: 24px; background: var(--bg); padding: 4px 12px; border: 1px solid var(--border); font-size: 0.6rem; }

/* ===== Features grid ===== */
.feature-grid { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature { background: var(--card); padding: 1.5rem; }
.feature svg { width: 1.75rem; height: 1.75rem; color: var(--primary); }
.feature h3 { margin-top: 1rem; font-size: 1rem; }
.feature p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--fg-muted); }

/* ===== 区块标题行 ===== */
.section-head { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 768px) { .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 600; color: var(--primary); transition: gap 0.2s var(--ease); }
.link-arrow:hover { gap: 0.75rem; }
.link-arrow svg { width: 1rem; height: 1rem; }

/* ===== 产品卡片网格 ===== */
.product-grid { margin-top: 2.5rem; display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
.product-card { position: relative; display: block; overflow: hidden; border-radius: 4px; border: 1px solid var(--border); background: var(--card); transition: border-color 0.3s var(--ease); }
.product-card:hover { border-color: rgba(61,220,132,0.6); }
.product-card .no { position: absolute; left: 1rem; top: 1rem; z-index: 2; font-family: var(--font-mono); font-size: 0.75rem; color: rgba(61,220,132,0.8); }
.product-card .img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg); }
.product-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.product-card:hover .img img { transform: scale(1.05); }
.product-card .img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--card), transparent 60%); }
.product-card .body { position: relative; padding: 1.25rem; }
.product-card .cat { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--fg-muted); }
.product-card .name { margin-top: 0.5rem; display: flex; align-items: center; justify-content: space-between; font-size: 1.125rem; font-weight: 700; }
.product-card .name svg { width: 1rem; height: 1rem; color: var(--fg-muted); transition: all 0.3s var(--ease); }
.product-card:hover .name svg { color: var(--primary); transform: translate(2px, -2px); }
.product-card .tagline { margin-top: 0.375rem; font-size: 0.875rem; color: var(--fg-muted); }

/* ===== 应用场景图卡 ===== */
.app-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .app-grid { grid-template-columns: repeat(3, 1fr); } }
.app-card { position: relative; overflow: hidden; border-radius: 4px; border: 1px solid var(--border); }
.app-card .img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.app-card .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.app-card:hover .img img { transform: scale(1.05); }
.app-card .img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg), rgba(12,19,16,0.4) 40%, transparent); }
.app-card .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem; z-index: 2; }
.app-card h3 { font-size: 1.125rem; }
.app-card p { margin-top: 0.25rem; font-size: 0.875rem; color: var(--fg-muted); }

/* ===== CTA ===== */
.cta { position: relative; overflow: hidden; border-radius: 4px; border: 1px solid rgba(61,220,132,0.3); background: linear-gradient(to bottom right, var(--card), var(--bg)); padding: 2.5rem; }
@media (min-width: 640px) { .cta { padding: 4rem; } }
.cta .radar { position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; color: rgba(61,220,132,0.1); }
.cta-inner { position: relative; max-width: 40rem; }
.cta p { margin-top: 1rem; color: var(--fg-muted); }
.cta .btn { margin-top: 2rem; }

/* ===== 产品总览大列表 ===== */
.product-row { display: grid; overflow: hidden; border-radius: 4px; border: 1px solid var(--border); background: var(--card); transition: border-color 0.3s var(--ease); margin-bottom: 1.5rem; }
.product-row:hover { border-color: rgba(61,220,132,0.5); }
@media (min-width: 768px) { .product-row { grid-template-columns: repeat(2, 1fr); } }
.product-row .img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.product-row .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.product-row:hover .img img { transform: scale(1.05); }
.product-row .body { display: flex; flex-direction: column; justify-content: center; padding: 2rem; }
@media (min-width: 1024px) { .product-row .body { padding: 3rem; } }
.product-row.reverse .img { order: 2; }
.product-row .meta { display: flex; align-items: center; gap: 0.75rem; }
.product-row .meta .no { font-family: var(--font-mono); font-size: 0.875rem; color: var(--primary); }
.product-row .meta .cat { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--fg-muted); }
.product-row h2 { margin-top: 0.75rem; font-size: 1.875rem; }
.product-row .tagline { margin-top: 0.375rem; color: var(--primary); font-weight: 500; }
.product-row p.sum { margin-top: 1rem; font-size: 0.9rem; color: var(--fg-muted); }
.chips { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { border: 1px solid var(--border); border-radius: 4px; padding: 0.25rem 0.625rem; font-size: 0.75rem; color: var(--fg-muted); }
.chip-accent { border-color: rgba(61,220,132,0.3); background: rgba(61,220,132,0.05); color: var(--primary); padding: 0.5rem 1rem; font-size: 0.875rem; }

/* ===== 详情页 ===== */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--fg-muted); }
.breadcrumb a:hover { color: var(--primary); }
.detail-hero { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .detail-hero { grid-template-columns: 1fr 1fr; } }
.detail-hero .img-frame { padding: 0.5rem; }
.detail-hero .img-frame .inner { overflow: hidden; border-radius: 4px; border: 1px solid var(--border-strong); background: var(--card); }
.detail-hero h1 { margin-top: 1rem; font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 800; }
.detail-hero .tagline { margin-top: 0.75rem; font-size: 1.25rem; color: var(--primary); font-weight: 500; }
.detail-hero .sum { margin-top: 1.5rem; color: var(--fg-muted); }

.highlight-grid { margin-top: 2rem; display: grid; gap: 1rem; }
@media (min-width: 640px) { .highlight-grid { grid-template-columns: repeat(2, 1fr); } }
.highlight { display: flex; align-items: flex-start; gap: 0.75rem; border: 1px solid var(--border); background: var(--card); border-radius: 4px; padding: 1.25rem; }
.highlight svg { margin-top: 2px; width: 1.25rem; height: 1.25rem; color: var(--primary); flex-shrink: 0; }
.highlight span { font-size: 0.9rem; }

.spec-table { margin-top: 2rem; width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 4px; border: 1px solid var(--border); }
.spec-table td { padding: 0.875rem 1.25rem; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td:first-child { width: 40%; color: var(--fg-muted); font-weight: 500; }
.spec-table td:last-child { font-family: var(--font-mono); }
.spec-table tr:nth-child(odd) { background: rgba(21,32,27,0.6); }
.spec-table tr:nth-child(even) { background: rgba(21,32,27,0.3); }
.spec-note { margin-top: 0.75rem; font-size: 0.75rem; color: var(--fg-dim); }

.next-product { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border); background: var(--card); border-radius: 4px; padding: 1.5rem; transition: border-color 0.3s var(--ease); }
.next-product:hover { border-color: rgba(61,220,132,0.5); }
.next-product svg { width: 1.5rem; height: 1.5rem; color: var(--fg-muted); transition: all 0.3s var(--ease); }
.next-product:hover svg { color: var(--primary); transform: translateX(4px); }

/* ===== 关于页 ===== */
.about-hero { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .about-hero { grid-template-columns: 1fr 1fr; } }
.about-hero p { margin-top: 1.5rem; color: var(--fg-muted); }
.stats-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(21,32,27,0.3); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat .v { font-family: var(--font-mono); font-size: 2.25rem; font-weight: 800; color: var(--primary); }
.stat .l { margin-top: 0.5rem; font-size: 0.875rem; color: var(--fg-muted); }
.pillar-grid { margin-top: 2.5rem; display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pillar-grid { grid-template-columns: repeat(4, 1fr); } }
.pillar { border: 1px solid var(--border); background: var(--card); border-radius: 4px; padding: 1.75rem; }
.pillar svg { width: 2rem; height: 2rem; color: var(--primary); }
.pillar h3 { margin-top: 1rem; font-size: 1.125rem; }
.pillar p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--fg-muted); }

/* ===== 细分场景网格 ===== */
.scene-grid { margin-top: 2rem; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
@media (min-width: 640px) { .scene-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .scene-grid { grid-template-columns: repeat(3, 1fr); } }
.scene { background: var(--card); padding: 1.75rem; }
.scene svg { width: 2rem; height: 2rem; color: var(--primary); }
.scene h3 { margin-top: 1rem; font-size: 1.125rem; }
.scene p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--fg-muted); }
.scene .rec { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid rgba(61,220,132,0.3); background: rgba(61,220,132,0.05); border-radius: 4px; padding: 0.25rem 0.625rem; }
.scene .rec .k { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-muted); }
.scene .rec .v { font-size: 0.75rem; color: var(--primary); }

/* ===== 联系页 ===== */
.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.qr-box { text-align: center; border: 1px solid rgba(61,220,132,0.3); background: rgba(21,32,27,0.6); border-radius: 4px; padding: 2rem; }
@media (min-width: 640px) { .qr-box { padding: 2.5rem; } }
.qr-box .wechat { display: inline-flex; align-items: center; gap: 0.5rem; }
.qr-box .wechat svg { width: 1rem; height: 1rem; }
.qr-img { margin: 1.5rem auto 0; display: inline-block; background: #fff; border-radius: 8px; padding: 0.75rem; }
.qr-img img { width: 224px; height: 224px; object-fit: contain; }
.qr-box .t { margin-top: 1.5rem; font-size: 1rem; font-weight: 600; }
.qr-box .d { margin-top: 0.25rem; font-size: 0.875rem; color: var(--fg-muted); }
.contact-list { display: flex; flex-direction: column; gap: 1rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; border: 1px solid var(--border); background: var(--card); border-radius: 4px; padding: 1.5rem; }
.contact-item svg { margin-top: 4px; width: 1.5rem; height: 1.5rem; color: var(--primary); }
.contact-item .k { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--fg-muted); }
.contact-item .v { margin-top: 0.25rem; font-size: 1.125rem; }
.contact-note { border: 1px solid var(--border); background: rgba(21,32,27,0.3); border-radius: 4px; padding: 1.5rem; font-size: 0.875rem; color: var(--fg-muted); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); background: rgba(21,32,27,0.4); margin-top: 6rem; }
.footer-main { display: grid; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 768px) { .footer-main { grid-template-columns: 2fr 1fr 1fr; } }
.footer-main .intro { margin-top: 1rem; max-width: 28rem; font-size: 0.875rem; color: var(--fg-muted); }
.footer-col h4 { margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.footer-col a, .footer-col li { font-size: 0.875rem; color: var(--fg-muted); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); }
.footer-bottom .inner { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 1.25rem; padding-bottom: 1.25rem; font-size: 0.75rem; color: var(--fg-muted); }
@media (min-width: 640px) { .footer-bottom .inner { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ===== 进场动画 =====
   仅当 JS 可用（html.js）时才初始隐藏，避免无 JS 或观察器未触发时内容保持透明。 */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  html.js .reveal.in { opacity: 1; transform: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
