:root {
  --bg: #0a0a0c;
  --bg-soft: #111114;
  --surface: rgba(24, 24, 28, 0.86);
  --surface-solid: #18181c;
  --surface-2: #222228;
  --text: #f5f5f7;
  --muted: #a0a0aa;
  --line: rgba(255, 255, 255, 0.12);
  --primary: #e8402a;
  --accent: #ff9f1c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  --radius: 16px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f5f7fc;
  --bg-soft: #eef1f8;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --surface-2: #f0f3fa;
  --text: #141a2e;
  --muted: #5e6a86;
  --line: rgba(30, 45, 90, 0.12);
  --shadow: 0 24px 60px rgba(31, 45, 90, 0.12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--primary) 18%, transparent) 0, transparent 34%),
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--accent) 10%, transparent) 0, transparent 30%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.028) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.028) 0 1px, transparent 1px 80px);
  opacity: 0.85;
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(5, 7, 15, 0.72);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
:root[data-theme="light"] .site-header {
  background: rgba(245, 247, 252, 0.72);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
}
.nav-bar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0.14em; font-size: 20px; white-space: nowrap; }
.brand-mark {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 12px; font-size: 18px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 45%, transparent);
}
.brand-mark.has-logo { width: 44px; height: 44px; border-radius: 0; background: none; box-shadow: none; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.nav-links { display: flex; gap: 34px; align-items: center; color: var(--muted); font-size: 14px; }
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--accent); }
.nav-action { display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 24px; border-radius: 6px; border: 1px solid transparent;
  cursor: pointer; font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--primary); background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 60%, var(--accent))); box-shadow: 0 14px 34px color-mix(in srgb, var(--primary) 38%, transparent); }
.btn-ghost { color: var(--text); border-color: var(--line); background: var(--surface); }
:root[data-theme="light"] .btn-ghost { color: #141a2e; border-color: rgba(30, 45, 90, 0.2); background: #ffffff; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 13px; }

.hero { position: relative; padding: 110px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 70px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 4px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 0.24em;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero h1 { margin: 26px 0 24px; font-size: clamp(42px, 5.4vw, 76px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.hero h1 .highlight { background: linear-gradient(120deg, var(--accent), #fff 55%, var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="light"] .hero h1 .highlight { background: linear-gradient(120deg, #0a9c8a, #202744 55%, #4a3cc4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 620px; color: var(--muted); font-size: 18px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.hero-visual { position: relative; min-height: 480px; display: grid; place-items: center; }
.hero-orbit {
  position: absolute; width: 440px; height: 440px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255,159,28,0.14) 0deg 2deg, transparent 2deg 15deg);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow: inset 0 0 80px color-mix(in srgb, var(--primary) 16%, transparent);
}
.hero-orbit::before, .hero-orbit::after {
  content: ""; position: absolute; inset: 42px; border-radius: 50%; border: 1px dashed var(--line);
}
.hero-orbit::after { inset: 96px; }
.hero-image {
  position: relative; width: 86%; aspect-ratio: 4 / 3; object-fit: contain;
  border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow);
  background: var(--surface-solid);
}
.hero-float {
  position: absolute; right: 2%; bottom: 12%; padding: 14px 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(12px);
  box-shadow: var(--shadow); font-size: 13px; color: var(--muted);
}
.hero-float strong { display: block; color: var(--text); font-size: 18px; margin-bottom: 4px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 70px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { text-align: center; }
.stat-value { font-size: 32px; font-weight: 800; color: var(--text); }
.stat-label { margin-top: 6px; color: var(--muted); font-size: 13px; }

.section { padding: 110px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-kicker { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; }
.section h2 { margin: 14px 0 14px; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.2; }
.section-head p { color: var(--muted); font-size: 16px; line-height: 1.8; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature-card {
  display: flex; flex-direction: column; min-height: 280px;
  padding: 34px 32px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface), transparent);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.feature-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: var(--accent); font-weight: 800; font-size: 14px; background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); }
.feature-card h3 { margin: 20px 0 10px; font-size: 21px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.feature-points { list-style: none; margin: auto 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.feature-points li { position: relative; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.feature-points li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.products-wrap { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--primary) 8%, transparent), transparent); }
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.product-card {
  display: grid; grid-template-columns: 0.92fr 1.08fr; min-height: 340px; overflow: hidden; border-radius: 12px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
  color: inherit; cursor: pointer; transition: transform 0.25s ease, border-color 0.25s ease;
}
.product-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.product-media { position: relative; overflow: hidden; background: #101013; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; background: #101013; }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-badge { position: absolute; top: 14px; left: 14px; padding: 5px 10px; border-radius: 3px; font-size: 11px; font-weight: 800; color: #fff; background: var(--primary); letter-spacing: 0.05em; }
.product-body { padding: 30px 28px; display: flex; flex-direction: column; }
.product-body h3 { margin: 0 0 6px; font-size: 24px; }
.product-subtitle { color: var(--accent); font-size: 13px; font-weight: 700; }
.product-body p { color: var(--muted); line-height: 1.75; font-size: 14px; margin: 16px 0; }
.specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.spec { padding: 6px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 12px; }
.card-cta { color: var(--accent); font-size: 14px; font-weight: 700; }
.card-cta span { display: inline-block; transition: transform 0.2s ease; }
.product-card:hover .card-cta span { transform: translateX(5px); }

/* Product detail */
.detail-main { padding-top: 36px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 13px; margin-bottom: 34px; }
.breadcrumb a:hover { color: var(--accent); }
.detail-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; padding-bottom: 80px; }
.detail-gallery {
  position: relative; min-height: 520px; display: grid; place-items: center; overflow: hidden;
  border-radius: 32px; border: 1px solid var(--line); background: var(--surface);
}
.detail-gallery::before {
  content: ""; position: absolute; width: 72%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  box-shadow: inset 0 0 100px color-mix(in srgb, var(--primary) 18%, transparent);
}
.detail-gallery img { position: relative; width: 82%; border-radius: 24px; box-shadow: var(--shadow); }
.detail-gallery .product-badge { top: 26px; left: 26px; }
.detail-info h1 { margin: 18px 0 10px; font-size: clamp(36px, 4vw, 56px); line-height: 1.15; letter-spacing: -0.02em; }
.detail-subtitle { color: var(--accent); font-size: 16px; font-weight: 700; }
.detail-lead { margin: 22px 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.detail-divider { height: 1px; margin: 26px 0; background: var(--line); }
.detail-body p { margin: 0 0 14px; color: var(--muted); font-size: 15px; line-height: 2; }
.detail-spec-title { margin: 30px 0 14px; font-size: 16px; }
.detail-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.detail-spec { padding: 18px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-align: center; font-size: 14px; }
.detail-spec::before { content: "◆"; display: block; margin-bottom: 8px; color: var(--accent); font-size: 12px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.related-section { padding-bottom: 90px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); transition: transform 0.25s ease, border-color 0.25s ease; }
.related-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.related-card img { width: 88px; height: 72px; border-radius: 12px; object-fit: cover; }
.related-card h3 { margin: 0 0 6px; font-size: 15px; }
.related-card p { margin: 0; color: var(--muted); font-size: 12px; }
.related-card .arrow { margin-left: auto; color: var(--accent); font-size: 18px; }

.story { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.story-panel { position: relative; padding: 46px; border-radius: 30px; border: 1px solid var(--line); background: linear-gradient(145deg, var(--surface), transparent); box-shadow: var(--shadow); }
.story-panel::before { content: ""; position: absolute; inset: 18px; border-radius: 22px; border: 1px dashed color-mix(in srgb, var(--accent) 32%, transparent); pointer-events: none; }
.story-quote { font-size: 64px; line-height: 1; color: var(--accent); opacity: 0.6; }
.story-panel p { margin: 18px 0 0; font-size: 20px; line-height: 1.8; font-weight: 600; }
.story h2 { margin: 0 0 20px; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.2; }
.story p { color: var(--muted); line-height: 1.9; font-size: 16px; }

.cta-band { margin: 0 auto 100px; padding: 64px; border-radius: 32px; text-align: center; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 28%, var(--surface-solid)), color-mix(in srgb, var(--accent) 14%, var(--surface-solid))); box-shadow: var(--shadow); }
.cta-band h2 { margin: 0 0 14px; font-size: clamp(28px, 3vw, 42px); }
.cta-band p { color: var(--muted); margin-bottom: 28px; }

.site-footer { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, #000); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { color: var(--muted); font-size: 14px; line-height: 1.8; max-width: 320px; }
.footer-col h4 { margin: 0 0 18px; font-size: 14px; letter-spacing: 0.08em; }
.footer-col p, .footer-col a { display: block; color: var(--muted); font-size: 14px; line-height: 2; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; max-width: 380px; padding: 14px 18px; border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--line); color: var(--text); box-shadow: var(--shadow); font-size: 14px; opacity: 0; transform: translateY(12px); transition: opacity 0.25s ease, transform 0.25s ease; pointer-events: none; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { border-color: #ff6b6b; }

.menu-toggle { white-space: nowrap; display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 12px; cursor: pointer; }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 400px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .story { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 32px, 1200px); }
  .brand { font-size: 15px; letter-spacing: 0.08em; gap: 9px; }
  .brand-mark { width: 32px; height: 32px; font-size: 14px; }
  .brand-mark.has-logo { width: 36px; height: 36px; }
  .nav-action { gap: 8px; }
  .nav-links { display: none; position: absolute; top: 76px; left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border-radius: 16px; background: var(--surface-solid); border: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .menu-toggle { display: block; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: clamp(32px, 9vw, 40px); }
  .hero p { font-size: 16px; }
  .hero-visual { min-height: 300px; }
  .hero-orbit { width: 300px; height: 300px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 76px 0; }
  .features { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .product-card { grid-template-columns: 1fr; }
  .product-media { height: 240px; }
  .cta-band { padding: 42px 24px; margin-bottom: 70px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 1024px) {
  .detail-hero { grid-template-columns: 1fr; gap: 40px; }
  .detail-gallery { min-height: 400px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .detail-main { padding-top: 24px; }
  .detail-gallery { min-height: 300px; }
  .detail-specs { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .detail-actions .btn { width: 100%; }
}

/* Scene sections */
.scene-block { margin-bottom: 84px; }
.scene-block:last-child { margin-bottom: 0; }
.scene-head { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.scene-no { flex: none; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 4px; border: 1px solid color-mix(in srgb, var(--primary) 55%, transparent); color: var(--accent); font-size: 20px; font-weight: 800; font-family: ui-monospace, Menlo, monospace; background: color-mix(in srgb, var(--primary) 12%, transparent); }
.scene-head h3 { margin: 0 0 6px; font-size: clamp(22px, 2.4vw, 32px); }
.scene-head p { margin: 0; color: var(--muted); font-size: 14px; }
.scene-count { margin-left: auto; flex: none; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; }
.series-tag { display: inline-block; margin-bottom: 10px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.model-line { margin: -6px 0 14px; color: var(--muted); font-size: 12px; font-family: ui-monospace, Menlo, monospace; }
.detail-meta { margin-top: 26px; }
.model-list { display: grid; gap: 8px; }
.model-item { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 13px; }
.model-item strong { color: var(--accent); font-family: ui-monospace, Menlo, monospace; }
.model-item span { color: var(--muted); }
.compliance-list { padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 13px; line-height: 1.9; }
@media (max-width: 760px) {
  .scene-head { gap: 14px; }
  .scene-no { width: 44px; height: 44px; font-size: 16px; }
  .scene-count { display: none; }
}

/* Application gallery */
.gallery-wrap { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 6%, transparent), transparent); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-card {
  position: relative; display: block; overflow: hidden; border-radius: 4px; border: 1px solid var(--line);
  background: var(--surface); color: inherit; cursor: pointer; box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.gallery-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.gallery-card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.45s ease; }
.gallery-card:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(6, 8, 12, 0.88));
  color: #fff;
}
.gallery-caption strong { display: block; font-size: 14px; letter-spacing: 0.02em; }
.gallery-caption span { display: block; margin-top: 4px; font-size: 11px; color: rgba(255,255,255,0.72); letter-spacing: 0.08em; }
.detail-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.detail-thumbs[hidden] { display: none; }
.detail-thumb {
  width: 78px; height: 56px; padding: 0; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; border-radius: 4px; background: var(--surface-2);
}
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-thumb.active { border-color: var(--accent); }
@media (max-width: 980px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 14px; }
  .detail-thumb { width: 64px; height: 48px; }
}
