:root {
  color-scheme: dark;
  --ink: #02050a;
  --ink-2: #06101b;
  --panel: rgba(8, 17, 29, 0.78);
  --panel-solid: #0a121d;
  --panel-2: #101b2a;
  --line: rgba(92, 211, 255, 0.28);
  --line-strong: rgba(92, 211, 255, 0.68);
  --cyan: #5cd3ff;
  --cyan-soft: #a7ecff;
  --gold: #d8a94b;
  --gold-soft: #ffe0a1;
  --pink: #ff7aa8;
  --text: #f5f7fb;
  --muted: #a8b4c4;
  --dim: #728092;
  --success: #5ee79a;
  --danger: #ff6570;
  --radius: 8px;
  --nav-height: 58px;
  --shadow-deep: 0 34px 90px rgba(0, 0, 0, 0.52);
  font-family: "Bahnschrift", "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(2, 5, 10, 0.2), rgba(2, 5, 10, 1) 760px),
    var(--ink);
  overflow-x: hidden;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
canvas,
iframe {
  max-width: 100%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(3, 7, 12, 0.72);
  backdrop-filter: blur(22px);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(2, 5, 10, 0.92);
  border-color: rgba(92, 211, 255, 0.18);
}

.nav-shell {
  width: min(1120px, calc(100% - 32px));
  height: var(--nav-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--gold-soft);
}

.brand-emblem {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 224, 161, 0.42);
  border-radius: 50%;
  background: #0b0f18;
  color: var(--cyan-soft);
  font-size: 13px;
  box-shadow: 0 0 26px rgba(92, 211, 255, 0.2);
}

.brand-text {
  font-size: 15px;
  letter-spacing: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(245, 247, 251, 0.78);
  font-size: 14px;
}

.nav-menu a,
.nav-action {
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-menu a:hover,
.nav-action:hover,
.nav-menu a:focus-visible,
.nav-action:focus-visible {
  color: var(--gold-soft);
  border-color: rgba(216, 169, 75, 0.42);
  background: rgba(216, 169, 75, 0.08);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-height) + 64px) 24px 64px;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2, 5, 10, 0), var(--ink));
}

.hero-primary {
  background:
    radial-gradient(circle at 50% 56%, rgba(92, 211, 255, 0.12), transparent 560px),
    linear-gradient(180deg, #03070c, #040a12 72%, var(--ink));
}

.ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-content {
  width: min(980px, 100%);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-soft);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: 6.2rem;
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 0 42px rgba(92, 211, 255, 0.18);
}

h2 {
  margin-bottom: 14px;
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  width: min(690px, 100%);
  margin: 0 auto;
  color: rgba(245, 247, 251, 0.82);
  font-size: 1.28rem;
  line-height: 1.55;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.link-pill,
.project-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border: 1px solid rgba(92, 211, 255, 0.56);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--cyan-soft);
  font-size: 0.96rem;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.link-pill:hover,
.link-pill:focus-visible,
.project-link:hover,
.project-link:focus-visible {
  transform: translateY(-1px);
  border-color: var(--gold);
  color: var(--gold-soft);
  background: rgba(216, 169, 75, 0.09);
  outline: none;
}

.link-pill-primary,
.project-link {
  background: #0a84ff;
  border-color: #0a84ff;
  color: #fff;
  box-shadow: 0 14px 38px rgba(10, 132, 255, 0.26);
}

.hero-device {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 24px));
  margin: 54px auto 0;
  padding: 14px;
  border: 1px solid rgba(92, 211, 255, 0.32);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(13, 29, 46, 0.86), rgba(5, 10, 17, 0.96)),
    var(--panel-solid);
  box-shadow: var(--shadow-deep), 0 0 80px rgba(92, 211, 255, 0.16);
}

.device-toolbar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px 10px;
  color: var(--dim);
  font-size: 0.75rem;
  font-weight: 700;
}

.device-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
}

.device-toolbar span:nth-child(2) {
  background: var(--gold);
}

.device-toolbar span:nth-child(3) {
  background: var(--success);
}

.device-toolbar strong {
  margin-left: auto;
  letter-spacing: 0;
}

.product-switcher {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 14px;
}

.product-tabs,
.project-detail,
.video-panel,
.compare-panel,
.ui-preview,
.admin-form,
.admin-records,
.feature-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012)),
    rgba(2, 8, 15, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.product-tabs {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.product-tab {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 3px 14px;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(92, 211, 255, 0.08), rgba(255, 255, 255, 0.01));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.product-tab span {
  grid-row: span 2;
  color: var(--gold-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.product-tab strong {
  font-size: 1rem;
}

.product-tab small {
  color: var(--muted);
}

.product-tab:hover,
.product-tab:focus-visible,
.product-tab.is-active {
  transform: translateY(-1px);
  border-color: rgba(92, 211, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(92, 211, 255, 0.15), rgba(216, 169, 75, 0.06)),
    rgba(6, 16, 28, 0.9);
  outline: none;
}

.project-detail {
  padding: 24px;
}

.project-owner {
  margin-bottom: 8px;
  color: var(--cyan-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-detail h2 {
  font-size: 2rem;
}

.project-detail p[data-product-subtitle] {
  color: rgba(245, 247, 251, 0.75);
  line-height: 1.7;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 22px 0;
}

.metric-grid span {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(92, 211, 255, 0.12);
  border-radius: 14px;
  background: rgba(92, 211, 255, 0.04);
  color: var(--muted);
  font-size: 0.78rem;
}

.metric-grid strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold-soft);
  font-size: 1rem;
}

.section-shell,
.stage-section,
.admin-section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

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

.feature-card {
  overflow: hidden;
  min-height: 100%;
  transition: transform 180ms ease, border-color 180ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 211, 255, 0.32);
}

.feature-media {
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.feature-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.feature-content {
  padding: 18px;
}

.feature-content h3 {
  margin-bottom: 8px;
  font-size: 1.14rem;
}

.feature-content p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.stage-section {
  padding-top: 46px;
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 16px;
}

.video-panel {
  min-height: 430px;
  overflow: hidden;
}

.video-panel iframe,
.video-placeholder {
  width: 100%;
  height: 100%;
  min-height: 430px;
  border: 0;
  display: grid;
  place-items: center;
}

.video-placeholder {
  color: var(--muted);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(92, 211, 255, 0.1), rgba(216, 169, 75, 0.04)),
    rgba(0, 0, 0, 0.2);
}

.compare-panel {
  padding: 10px;
}

.compare-row {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.95fr;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.92rem;
}

.compare-row:last-child {
  border-bottom: 0;
}

.compare-row span:first-child,
.compare-row strong {
  color: var(--text);
}

.compare-row strong {
  color: var(--gold-soft);
}

.compare-head {
  color: var(--cyan-soft);
  font-weight: 800;
}

.ui-preview {
  overflow: hidden;
  margin: 16px 0 0;
}

.ui-preview img {
  width: 100%;
  display: block;
}

.admin-section {
  padding-bottom: 90px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
}

.admin-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.console-badge {
  width: max-content;
  padding: 5px 10px;
  border: 1px solid rgba(255, 224, 161, 0.32);
  border-radius: 999px;
  color: var(--gold-soft);
  font-size: 0.74rem;
  font-weight: 800;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-form input,
.admin-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(92, 211, 255, 0.18);
  border-radius: 14px;
  background: rgba(2, 8, 15, 0.72);
  color: var(--text);
  padding: 0 13px;
}

.admin-form input:focus,
.admin-form select:focus {
  outline: 2px solid rgba(92, 211, 255, 0.34);
  border-color: rgba(92, 211, 255, 0.5);
}

.admin-form button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: #0a84ff;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.admin-records {
  padding: 18px;
}

.record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.record-head span {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 800;
}

.record-head strong {
  min-width: 44px;
  min-height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(92, 211, 255, 0.1);
  color: var(--cyan-soft);
}

.record-table {
  overflow-x: auto;
  max-width: 100%;
}

.record-row {
  min-width: 680px;
  display: grid;
  grid-template-columns: 0.9fr 1.6fr 1.1fr 0.45fr;
  gap: 12px;
  align-items: center;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.9rem;
}

.record-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-title {
  color: var(--cyan-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-footer {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--dim);
  font-size: 0.86rem;
}

@media (max-width: 900px) {
  h1 {
    font-size: 4.2rem;
  }

  h2 {
    font-size: 2.4rem;
  }

  .product-switcher,
  .preview-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: calc(var(--nav-height) + 8px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid rgba(92, 211, 255, 0.16);
    border-radius: 20px;
    background: rgba(2, 5, 10, 0.96);
    backdrop-filter: blur(22px);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a,
  .nav-action {
    width: 100%;
    text-align: left;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + 44px) 12px 42px;
  }

  h1 {
    font-size: 2.72rem;
  }

  .hero-copy {
    font-size: 1rem;
    width: min(330px, 100%);
  }

  .hero-content {
    max-width: calc(100vw - 24px);
  }

  .hero-actions {
    width: min(250px, 100%);
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: 1fr;
  }

  .link-pill,
  .project-link {
    width: 100%;
  }

  .hero-device,
  .section-shell,
  .stage-section,
  .admin-section {
    width: min(342px, calc(100vw - 24px));
    max-width: min(342px, calc(100vw - 24px));
    margin-left: 12px;
    margin-right: 12px;
  }

  .hero-device {
    justify-self: start;
    margin-top: 38px;
    padding: 10px;
    border-radius: 22px;
    overflow: hidden;
  }

  .device-toolbar strong {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .project-detail {
    padding: 18px;
  }

  .project-detail h2 {
    font-size: 1.62rem;
  }

  .project-detail p[data-product-subtitle] {
    overflow-wrap: anywhere;
  }

  .record-row {
    min-width: 560px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .compare-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
