:root {
  --bg: #050b14;
  --panel: #0b1626;
  --panel2: #122033;
  --line: rgba(34, 211, 238, 0.22);
  --text: #e6f7ff;
  --muted: #7f9cb5;
  --cyan: #22d3ee;
  --green: #4ade80;
  --amber: #fbbf24;
  --red: #f87171;
  --blue: #38bdf8;
  --radius: 10px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Mono", "Consolas", "Courier New", monospace;
  --glow: 0 0 24px rgba(34, 211, 238, 0.18);
}

* { 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 50% -10%, rgba(34, 211, 238, 0.1), transparent 50%),
    linear-gradient(180deg, #03070e 0%, var(--bg) 40%, #07111d 100%);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
}

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(1200px, calc(100% - 2rem)); margin: 0 auto; position: relative; z-index: 1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 11, 20, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.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: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: #041016;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: var(--glow);
}

.logo-text span { color: var(--cyan); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.nav-links a {
  padding: 0.42rem 0.75rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-family: var(--mono);
  transition: 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.25);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.lang-switch button {
  background: transparent;
  color: var(--muted);
  padding: 0.38rem 0.65rem;
  font-size: 0.78rem;
  font-family: var(--mono);
}

.lang-switch button.active {
  background: rgba(74, 222, 128, 0.15);
  color: var(--green);
}

.hero { padding: 2.6rem 0 2rem; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.6rem;
  align-items: stretch;
}

.hero-copy {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 32, 51, 0.9), rgba(11, 22, 38, 0.95));
  box-shadow: var(--glow);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.95rem;
}

.tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 4px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: var(--green);
  background: rgba(74, 222, 128, 0.08);
}

.hero h1 {
  font-size: clamp(1.85rem, 3.8vw, 2.85rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.35);
}

.hero-lead {
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.82rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  transition: 0.15s ease;
}

.btn-primary {
  color: #041016;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.28);
}

.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }

.btn-secondary {
  color: var(--text);
  background: rgba(18, 32, 51, 0.9);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-sm { padding: 0.55rem 0.9rem; font-size: 0.86rem; }

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.trust-item {
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(34, 211, 238, 0.14);
  background: rgba(5, 11, 20, 0.55);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.trust-item strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.12rem;
}

.screen {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  box-shadow: var(--glow);
}

.screen-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid rgba(34, 211, 238, 0.14);
  background: #08121f;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--green);
}

.live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(34, 211, 238, 0.1);
}

.metric {
  padding: 0.65rem;
  border-radius: 8px;
  background: rgba(5, 11, 20, 0.7);
  border: 1px solid rgba(34, 211, 238, 0.1);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}

.metric b {
  display: block;
  margin-top: 0.2rem;
  color: var(--cyan);
  font-size: 1.05rem;
}

.metric.ok b { color: var(--green); }
.metric.warn b { color: var(--amber); }

.screen img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.node-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.node-table th,
.node-table td {
  padding: 0.45rem 0.7rem;
  text-align: left;
  border-top: 1px solid rgba(34, 211, 238, 0.08);
}

.node-table th {
  color: var(--muted);
  font-weight: 600;
  background: rgba(8, 18, 31, 0.8);
}

.node-table td { color: var(--text); }
.lat-ok { color: var(--green); }
.lat-mid { color: var(--amber); }
.lat-bad { color: var(--red); }

.section { padding: 3rem 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(11, 22, 38, 0.65), rgba(5, 11, 20, 0.3));
  border-top: 1px solid rgba(34, 211, 238, 0.08);
  border-bottom: 1px solid rgba(34, 211, 238, 0.08);
}

.section-head { margin-bottom: 1.4rem; max-width: 64ch; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}

.section-head h2 {
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  margin-bottom: 0.45rem;
  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: 0.95rem;
}

.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,
.step-grid { grid-template-columns: repeat(3, 1fr); }

.card {
  background: linear-gradient(180deg, rgba(18, 32, 51, 0.95), rgba(11, 22, 38, 0.98));
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: var(--radius);
  padding: 1.1rem;
  transition: 0.15s ease;
}

.card:hover {
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.card p,
.card li { color: var(--muted); font-size: 0.92rem; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
  background: rgba(5, 11, 20, 0.7);
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.status-ok { color: var(--green); }
.status-warn { color: var(--amber); }

.meta-list {
  display: grid;
  gap: 0.3rem;
  margin: 0.65rem 0 0.95rem;
  font-size: 0.86rem;
  color: var(--muted);
  font-family: var(--mono);
}

.meta-list strong { color: var(--text); font-family: var(--font); }

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.flow-list { display: grid; gap: 0.7rem; }

.flow-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  padding: 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(34, 211, 238, 0.12);
  background: rgba(8, 18, 31, 0.8);
}

.flow-num {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #041016;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.console {
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: var(--radius);
  background: #02070e;
  overflow: hidden;
}

.console-bar {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid rgba(74, 222, 128, 0.15);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  background: #07111d;
}

.console pre {
  padding: 0.95rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.7;
  color: var(--green);
  overflow-x: auto;
}

.console .cmt { color: #64748b; }
.console .k { color: var(--cyan); }
.console .v { color: var(--amber); }

.how-shot {
  margin-top: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.points {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.point {
  padding: 0.85rem;
  border-radius: 8px;
  border: 1px dashed rgba(34, 211, 238, 0.25);
  background: rgba(11, 22, 38, 0.7);
  color: var(--muted);
  font-size: 0.88rem;
}

.point strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.2rem;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.compat-item h3 { font-size: 0.95rem; }
.compat-item p { font-size: 0.86rem; }

.step-index {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}

.tips {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.06);
}

.tips h3 {
  color: var(--amber);
  font-size: 0.98rem;
  margin-bottom: 0.45rem;
  font-family: var(--mono);
}

.tips ul { display: grid; gap: 0.35rem; }
.tips li {
  color: var(--muted);
  font-size: 0.9rem;
  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: 145px; }

.faq-item details {
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 0.95rem 1.05rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  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.65rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.cta { padding: 2.8rem 0; }

.cta-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  padding: 1.7rem 1.8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 0% 50%, rgba(34, 211, 238, 0.12), transparent 40%),
    radial-gradient(circle at 100% 50%, rgba(74, 222, 128, 0.1), transparent 40%),
    var(--panel);
  box-shadow: var(--glow);
}

.cta-box h2 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  margin-bottom: 0.35rem;
}

.cta-box p { color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

.page-hero { padding: 2.2rem 0 1rem; }
.page-hero .screen { padding: 1.25rem 1.4rem; }
.page-hero h1 {
  font-size: clamp(1.65rem, 3.3vw, 2.4rem);
  margin: 0.35rem 0 0.5rem;
}
.page-hero p { color: var(--muted); max-width: 62ch; }

.breadcrumb {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--cyan); }

.content-block { display: grid; gap: 0.95rem; }
.content-block .card ol,
.content-block .card ul {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.05rem;
}
.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: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #03070e;
  padding: 2.3rem 0 1.3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 1.1rem;
  margin-bottom: 1.3rem;
}

.footer-col h4 {
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  font-family: var(--mono);
  color: var(--cyan);
}

.footer-col p,
.footer-col a {
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-col ul { display: grid; gap: 0.35rem; }
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid rgba(34, 211, 238, 0.1);
  padding-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
  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; }
  .metrics { grid-template-columns: repeat(2, 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,
  .trust-row,
  .metrics { grid-template-columns: 1fr; }
}
