:root {
  --bg: #08101b;
  --bg-soft: #111e31;
  --text: #eaf2ff;
  --muted: #b6c6df;
  --line: #233854;
  --brand: #2fc29b;
  --brand-2: #f2b45a;
  --card: rgba(10, 21, 35, 0.75);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Manrope", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 15% 10%, #163257 0%, var(--bg) 35%), var(--bg);
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  z-index: -1;
}
.bg-shape-a { width: 360px; height: 360px; background: #1b7f8f66; top: -120px; right: -80px; }
.bg-shape-b { width: 280px; height: 280px; background: #9d7f2360; bottom: -100px; left: -90px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: rgba(8, 16, 27, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.brand img { width: 34px; height: 34px; object-fit: contain; }
.top-links {
  display: flex;
  align-items: center;
  gap: 14px;
}
.top-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: 8px;
}
.top-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.top-links a.active {
  color: var(--text);
  background: rgba(47, 194, 155, 0.16);
  border: 1px solid #2fc29b66;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

main { max-width: 1160px; margin: 0 auto; padding: 20px 20px 72px; }
.section { padding: 56px 0; }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
}
.tag {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border: 1px solid #2fc29b77;
  border-radius: 999px;
  color: #8de6d1;
}
h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}
.subtitle { color: var(--muted); line-height: 1.7; margin-top: 14px; }

.hero-strip {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-strip span {
  border: 1px solid #2fc29b5c;
  background: rgba(47, 194, 155, 0.12);
  color: #9df0db;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.hero-media video {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.45);
}

h2 {
  margin: 0 0 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}
h3 { margin: 0 0 8px; font-size: 1.1rem; }
p { margin: 0; }
.hint { color: var(--muted); margin-bottom: 14px; }

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  line-height: 1.7;
}
.feature-link {
  display: block;
  text-decoration: none;
  color: var(--text);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.feature-link:hover {
  transform: translateY(-2px);
  border-color: #2fc29b88;
  background: rgba(20, 36, 57, 0.86);
}
.case-video video {
  width: 100%;
  margin: 10px 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #08101b;
}

.arch {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0c1727;
  padding: 8px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #3cc8e8);
  color: #072018;
}
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  margin-left: 0;
}

.cta {
  text-decoration: none;
  color: #051d18;
  background: var(--brand);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
}

.cta-secondary {
  color: var(--text);
  background: transparent;
  border: 1px solid #2fc29b88;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.section-action {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.page-hero {
  padding-top: 40px;
}
.metrics {
  margin-top: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.metric h3 {
  margin-bottom: 6px;
}
.metric p {
  color: var(--muted);
}
.flow {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.flow span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #3a5d83;
  background: rgba(16, 35, 56, 0.75);
  color: #c8ddff;
  font-size: 0.86rem;
  font-weight: 700;
}
.emphasis {
  margin-top: 14px;
  border-color: #2fc29b88;
  background: linear-gradient(140deg, rgba(47, 194, 155, 0.12), rgba(10, 21, 35, 0.8));
}

.control-pipeline {
  margin-top: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.pipeline-step {
  position: relative;
  overflow: hidden;
  min-height: 178px;
}
.pipeline-step::after {
  content: "";
  position: absolute;
  right: -32px;
  top: -32px;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(47, 194, 155, 0.2), rgba(60, 200, 232, 0.04));
}
.step-index {
  margin-bottom: 12px;
  font-family: "Space Grotesk", sans-serif;
  color: #8de6d1;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.8px;
}
.switch-grid {
  margin-top: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.switch-matrix-panel {
  margin-top: 14px;
  border: 1px solid #2e496d;
  border-radius: 16px;
  padding: 18px;
  background:
    radial-gradient(circle at 8% -10%, rgba(60, 200, 232, 0.12), transparent 40%),
    radial-gradient(circle at 92% 120%, rgba(47, 194, 155, 0.12), transparent 40%),
    rgba(8, 18, 30, 0.88);
}
.switch-card {
  min-height: 158px;
}
.switch-tag {
  margin-top: 14px;
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid #3a5d83;
  background: rgba(16, 35, 56, 0.75);
  color: #c8ddff;
  font-size: 0.78rem;
  font-weight: 700;
}
.capability-table-wrap {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(10, 21, 35, 0.7);
}
.capability-table {
  width: 100%;
  border-collapse: collapse;
}
.capability-table th,
.capability-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #1f334d;
  font-size: 0.92rem;
}
.capability-table th {
  background: rgba(16, 35, 56, 0.84);
  color: #d7e8ff;
  font-weight: 800;
}
.capability-table td {
  color: #c4d7f1;
}
.capability-table tbody tr:last-child td {
  border-bottom: 0;
}
.table-link {
  color: #86e8d0;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px dashed #86e8d088;
}
.table-link:hover {
  color: #b7ffec;
  border-bottom-color: #b7ffec;
}

.contact {
  text-align: center;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

.mobile-nav {
  display: block;
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 40;
}
.mobile-nav-fab {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: #072018;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand), #3cc8e8);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}
.mobile-nav-menu {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid #2f4c71;
  background: rgba(8, 17, 29, 0.95);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.mobile-nav.open .mobile-nav-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.mobile-nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid #2d4668;
  background: rgba(17, 31, 48, 0.88);
  padding: 10px 12px;
}
.mobile-nav-link:active,
.mobile-nav-link:hover {
  border-color: #2fc29b88;
  background: rgba(47, 194, 155, 0.16);
}
.mobile-nav-link.active {
  border-color: #2fc29bcc;
  background: rgba(47, 194, 155, 0.22);
}

footer {
  text-align: center;
  color: var(--muted);
  padding: 24px 12px 36px;
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .control-pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .switch-grid { grid-template-columns: 1fr; }
  .capability-table-wrap { overflow-x: auto; }
  .capability-table { min-width: 760px; }
  .top-links { display: none; }
  .top-actions .cta-secondary { display: none; }
  main { padding: 12px 16px 112px; }
}
