:root {
  --bg: #07090f;
  --panel: #0d121c;
  --ink: #e8eefc;
  --muted: #8b97b3;
  --line: rgba(120, 200, 255, 0.16);
  --grid: rgba(120, 200, 255, 0.06);
  --accent: #39d2ff;
  --accent-2: #a3ff5c;
  --ok: #3ddc97;
  --warn: #f0c75e;
  --radius: 12px;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  --font: "Segoe UI Variable Display", "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Mono", "Consolas", monospace;
  --max: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    radial-gradient(ellipse 70% 40% at 50% -5%, rgba(57, 210, 255, 0.14), transparent 55%),
    radial-gradient(circle at 90% 30%, rgba(163, 255, 92, 0.08), transparent 28%),
    var(--bg);
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 15, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border: 1px solid var(--accent);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  font-family: var(--mono);
  box-shadow: 0 0 18px rgba(57, 210, 255, 0.25);
}

.logo-text span { color: var(--accent-2); }

.nav-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-family: var(--mono);
}

.lang-switch button.active {
  background: rgba(57, 210, 255, 0.12);
  color: var(--accent);
}

.hero {
  padding: 68px 0 52px;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.ia-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeUp 0.6s ease both;
}

.ia-label::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  padding: 5px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  font-family: var(--mono);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 900;
  animation: fadeUp 0.75s ease 0.05s both;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  margin: 16px 0 0;
  color: var(--muted);
  max-width: 540px;
  animation: fadeUp 0.85s ease 0.1s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
  animation: fadeUp 0.9s ease 0.15s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-weight: 800;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.84rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(90deg, var(--accent), #2aa8ff);
  color: #041018;
  box-shadow: 0 0 24px rgba(57, 210, 255, 0.28);
}

.btn-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.trust-item {
  border: 1px solid var(--line);
  padding: 12px;
  background: rgba(13, 18, 28, 0.7);
}

.trust-item strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 900;
  font-family: var(--mono);
}

.trust-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.arch-frame {
  border: 1px solid var(--line);
  background: rgba(13, 18, 28, 0.75);
  padding: 14px;
  position: relative;
  animation: fadeUp 1s ease 0.1s both;
}

.arch-frame::before,
.arch-frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent);
}

.arch-frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.arch-frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.arch-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.arch-top b { color: var(--accent-2); font-weight: 700; }

.arch-frame img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border: 1px solid var(--line);
}

.arch-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.arch-map span {
  border: 1px solid var(--line);
  padding: 8px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.section { padding: 74px 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(13, 18, 28, 0.55), transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--mono);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.2;
  font-weight: 900;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
}

.grid-5,
.grid-3,
.grid-2,
.compat-grid,
.scene-grid {
  display: grid;
  gap: 12px;
}

.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.compat-grid { grid-template-columns: repeat(4, 1fr); }
.scene-grid { grid-template-columns: repeat(3, 1fr); }

.platform-card,
.feature-card,
.plan-card,
.step-card,
.scene-card,
.compat-item,
.faq-item,
.panel,
.dl-card {
  background: rgba(13, 18, 28, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.platform-card:hover,
.feature-card:hover,
.plan-card:hover,
.scene-card:hover,
.dl-card:hover {
  transform: translateY(-2px);
  border-color: rgba(57, 210, 255, 0.45);
  box-shadow: 0 0 24px rgba(57, 210, 255, 0.08);
}

.node-id {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  text-transform: uppercase;
}

.platform-card h3,
.feature-card h3,
.plan-card h3,
.step-card h3,
.scene-card h3,
.dl-card h3,
.compat-item h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 900;
}

.meta-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.meta-line span:last-child {
  color: var(--ink);
  text-align: right;
  font-weight: 700;
}

.status { color: var(--ok) !important; }

.feature-card p,
.scene-card p,
.compat-item p,
.step-card p,
.plan-card p,
.dl-card p,
.panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.flow-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 12px;
  background: rgba(7, 9, 15, 0.4);
}

.flow-num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 900;
}

.flow-list h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.flow-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.panel-media { padding: 0; overflow: hidden; }

.panel-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.code-block {
  margin: 0;
  padding: 14px 16px;
  background: #06080e;
  color: #d4dcf0;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.code-block .c { color: #6f7b95; }
.code-block .k { color: var(--accent); }
.code-block .v { color: var(--accent-2); }

.capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.capability-list span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  font-family: var(--mono);
}

.plan-card .btn,
.dl-card .btn {
  margin-top: 14px;
  width: 100%;
}

.step-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  font-family: var(--mono);
}

.tips {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(240, 199, 94, 0.3);
  background: rgba(240, 199, 94, 0.08);
  color: #f0d9a0;
}

.tips strong { color: var(--warn); }

.faq-list { display: grid; gap: 10px; }

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
  margin: 10px 0 0;
  color: var(--muted);
}

.cta { padding: 20px 0 10px; }

.cta-panel {
  border: 1px solid rgba(57, 210, 255, 0.3);
  padding: 40px 28px;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(57, 210, 255, 0.08), transparent 40%),
    linear-gradient(270deg, rgba(163, 255, 92, 0.08), transparent 40%),
    rgba(13, 18, 28, 0.9);
}

.cta-panel h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 900;
}

.cta-panel p {
  margin: 10px auto 0;
  max-width: 520px;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.site-footer {
  margin-top: 40px;
  padding: 56px 0 28px;
  border-top: 1px solid var(--line);
  background: #06080e;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 24px;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.92rem;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--muted);
  font-family: var(--mono);
}

.page-hero { padding: 54px 0 12px; }

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  font-weight: 900;
  line-height: 1.15;
}

.page-hero p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 640px;
}

.media-strip {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.media-strip img {
  width: 100%;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.inline-shot {
  margin-top: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.inline-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .compat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero-grid,
  .how-grid,
  .grid-3,
  .grid-2,
  .scene-grid,
  .media-strip,
  .footer-grid,
  .trust-row { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: auto; padding: 48px 0; }
  .section { padding: 56px 0; }
}

@media (max-width: 560px) {
  .grid-5,
  .compat-grid { grid-template-columns: 1fr; }
  .container { width: min(var(--max), calc(100% - 24px)); }
}
