:root {
  --bg0: #060a12;
  --bg1: #0b1220;
  --bg2: #111a2c;
  --panel: rgba(12, 22, 40, 0.92);
  --line: rgba(56, 189, 248, 0.2);
  --line2: rgba(34, 197, 94, 0.28);
  --text: #e6f0ff;
  --muted: #91a4c4;
  --cyan: #38bdf8;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --radius: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Consolas", "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(56, 189, 248, 0.1), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(34, 197, 94, 0.08), transparent 45%),
    linear-gradient(180deg, #05080f 0%, #0a1220 40%, #070b14 100%);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button, .btn { font: inherit; cursor: pointer; border: none; }

.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }

.bg-rack {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
}

.bg-rack::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 80px,
      rgba(34, 197, 94, 0.03) 80px,
      rgba(34, 197, 94, 0.03) 82px
    );
  opacity: 0.5;
}

.site-header,
main,
.site-footer { position: relative; z-index: 1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 10, 18, 0.88);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(34, 197, 94, 0.12);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0ea5e9, #16a34a);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.logo-text { font-size: 1.05rem; }
.logo-text span { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(56, 189, 248, 0.1);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.25);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(17, 26, 44, 0.8);
}

.lang-switch button {
  background: transparent;
  color: var(--muted);
  padding: 0.4rem 0.65rem;
  font-size: 0.8rem;
  font-family: var(--mono);
}

.lang-switch button.active {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

.hero {
  padding: 3.2rem 0 2.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--line2);
  background: rgba(34, 197, 94, 0.08);
  color: #86efac;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 54ch;
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #16a34a);
  color: #041018;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); }

.btn-secondary {
  background: rgba(17, 26, 44, 0.9);
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

.btn-sm { padding: 0.55rem 0.9rem; font-size: 0.88rem; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.trust-item {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
}

.trust-item strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.hero-visual {
  position: relative;
}

.rack-panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(17, 26, 44, 0.95), rgba(8, 14, 26, 0.98));
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(34, 197, 94, 0.08);
  overflow: hidden;
}

.rack-panel img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }

.rack-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 12, 22, 0.9);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.leds {
  display: flex;
  gap: 0.35rem;
}

.led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 2.4s ease-in-out infinite;
}

.led.amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); animation-delay: 0.4s; }
.led.cyan { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation-delay: 0.8s; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero-float {
  position: absolute;
  right: -0.5rem;
  bottom: -0.8rem;
  width: min(240px, 70%);
  border-radius: 10px;
  border: 1px solid var(--line2);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: floaty 5s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.section { padding: 3.2rem 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(8, 14, 26, 0.4), rgba(12, 22, 40, 0.55));
  border-top: 1px solid rgba(56, 189, 248, 0.08);
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
}

.section-head {
  margin-bottom: 1.6rem;
  max-width: 62ch;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.45rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-head p { color: var(--muted); }

.platform-grid,
.feature-grid,
.compat-grid,
.reco-grid,
.scene-grid,
.faq-grid,
.step-grid,
.download-grid {
  display: grid;
  gap: 1rem;
}

.platform-grid { grid-template-columns: repeat(5, 1fr); }
.feature-grid,
.scene-grid,
.faq-grid { grid-template-columns: repeat(3, 1fr); }
.compat-grid { grid-template-columns: repeat(4, 1fr); }
.reco-grid,
.download-grid { grid-template-columns: repeat(3, 1fr); }
.step-grid { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.04);
  transition: 0.2s ease;
}

.card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 24px rgba(56, 189, 248, 0.08);
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.card p,
.card li { color: var(--muted); font-size: 0.94rem; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.status-ok { color: #86efac; background: rgba(34, 197, 94, 0.12); }
.status-warn { color: #fcd34d; background: rgba(245, 158, 11, 0.12); }

.meta-list {
  display: grid;
  gap: 0.35rem;
  margin: 0.7rem 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.meta-list strong { color: var(--text); font-weight: 600; }

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

.flow-list { display: grid; gap: 0.8rem; }

.flow-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  padding: 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(8, 14, 26, 0.7);
}

.flow-num {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.8rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid var(--line);
  color: var(--cyan);
}

.console {
  border-radius: var(--radius);
  border: 1px solid var(--line2);
  background: #050a12;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  background: #0a1322;
}

.console pre {
  padding: 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: #86efac;
  overflow-x: auto;
}

.console .cmt { color: #64748b; }
.console .key { color: #38bdf8; }
.console .val { color: #fbbf24; }

.how-visual {
  margin-top: 0.9rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.points {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.point {
  padding: 0.85rem;
  border-radius: 10px;
  border: 1px dashed rgba(56, 189, 248, 0.25);
  background: rgba(12, 22, 40, 0.6);
  color: var(--muted);
  font-size: 0.9rem;
}

.point strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.compat-item h3 {
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.compat-item p { font-size: 0.88rem; }

.step-card {
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--green));
}

.step-index {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--cyan);
  margin-bottom: 0.45rem;
  letter-spacing: 0.08em;
}

.tips {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.tips h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #fcd34d;
}

.tips ul { display: grid; gap: 0.4rem; }
.tips li {
  color: var(--muted);
  font-size: 0.92rem;
  padding-left: 1rem;
  position: relative;
}

.tips li::before {
  content: "!";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-family: var(--mono);
  font-weight: 700;
}

.scene-card {
  min-height: 150px;
  background:
    linear-gradient(160deg, rgba(14, 165, 233, 0.08), transparent 50%),
    var(--panel);
}

.faq-item details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1rem 1.1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--cyan);
  font-family: var(--mono);
}

.faq-item details[open] summary::after { content: "-"; }
.faq-item details p {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.cta {
  padding: 3.5rem 0;
}

.cta-box {
  border-radius: 16px;
  padding: 2.2rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(56, 189, 248, 0.15), transparent 55%),
    radial-gradient(ellipse 50% 70% at 100% 50%, rgba(34, 197, 94, 0.12), transparent 50%),
    linear-gradient(135deg, #0b1528, #08101c);
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.cta-box h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.4rem;
}

.cta-box p { color: var(--muted); }

.cta-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.page-hero {
  padding: 2.4rem 0 1.2rem;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0.4rem 0 0.7rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 60ch;
}

.breadcrumb {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.breadcrumb a { color: var(--cyan); }

.content-block {
  display: grid;
  gap: 1rem;
}

.content-block .card h3 { margin-bottom: 0.55rem; }
.content-block .card ol,
.content-block .card ul {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.1rem;
}

.content-block .card ol { list-style: decimal; }
.content-block .card ul { list-style: disc; }
.content-block .card li { color: var(--muted); }

.inline-img {
  margin-top: 0.9rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #05080f;
  padding: 2.6rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

.footer-col h4 {
  font-size: 0.92rem;
  margin-bottom: 0.7rem;
  color: var(--text);
}

.footer-col p,
.footer-col a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-col ul { display: grid; gap: 0.4rem; }
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid rgba(56, 189, 248, 0.1);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-family: var(--mono);
}

@media (max-width: 1024px) {
  .platform-grid { grid-template-columns: repeat(3, 1fr); }
  .compat-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid,
  .scene-grid,
  .faq-grid,
  .reco-grid,
  .download-grid,
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid,
  .how-grid { grid-template-columns: 1fr; }
  .points { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav { flex-wrap: wrap; }
  .nav-links { width: 100%; }
  .platform-grid,
  .feature-grid,
  .scene-grid,
  .faq-grid,
  .reco-grid,
  .download-grid,
  .step-grid,
  .compat-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .hero-float { position: static; width: 100%; margin-top: 0.8rem; }
  .cta-box { padding: 1.4rem; }
}
