:root {
  --bg-0: #040611;
  --bg-1: #071636;
  --bg-2: #0d2b64;
  --line: rgba(116, 162, 255, 0.24);
  --card: rgba(8, 19, 45, 0.7);
  --text: #ecf4ff;
  --muted: #9fb6da;
  --cyan: #64d6ff;
  --mint: #64f4bf;
  --amber: #ffbf65;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: radial-gradient(circle at 16% 0%, var(--bg-2) 0%, var(--bg-1) 40%, var(--bg-0) 100%);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  scroll-behavior: smooth;
}

a {
  color: #a7d5ff;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(128, 174, 255, 0.35);
  backdrop-filter: blur(10px);
  background: rgba(3, 10, 28, 0.72);
}

.brand {
  font-family: "Orbitron", sans-serif;
  font-size: 19px;
  letter-spacing: 0.4px;
  color: #eaf2ff;
  text-decoration: none;
  display: inline-block;
}

nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

nav > a,
.dropdown-trigger {
  color: #deebff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  transition: 0.2s ease;
}

nav > a:hover,
.nav-dropdown:hover .dropdown-trigger {
  background: rgba(85, 146, 255, 0.2);
}

.nav-active {
  background: rgba(93, 180, 255, 0.34);
  border: 1px solid rgba(122, 206, 255, 0.7);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  display: grid;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: 0.18s ease;
  background: rgba(7, 17, 43, 0.95);
  border: 1px solid rgba(131, 178, 255, 0.3);
  border-radius: 12px;
  overflow: hidden;
}

.dropdown-menu a {
  color: #dceeff;
  text-decoration: none;
  padding: 10px 12px;
  border-top: 1px solid rgba(131, 178, 255, 0.15);
}

.dropdown-menu a:first-child {
  border-top: none;
}

.dropdown-menu a:hover {
  background: rgba(95, 160, 255, 0.2);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding-bottom: 72px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 96px);
  border: 1px solid rgba(136, 178, 255, 0.33);
  border-radius: 22px;
  overflow: hidden;
  margin-top: 18px;
  background: radial-gradient(circle at 72% 22%, rgba(98, 186, 255, 0.18), transparent 48%),
    linear-gradient(150deg, rgba(11, 30, 72, 0.7), rgba(4, 10, 28, 0.9));
}

.hero-stage {
  position: relative;
  min-height: calc(100vh - 96px);
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  padding: clamp(28px, 5vw, 58px);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.hero-kicker {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 1.8px;
  color: var(--cyan);
}

.hero h1 {
  margin: 12px 0;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.2;
}

.hero p {
  margin: 10px 0;
  color: #d7e7ff;
  line-height: 1.8;
}

.motto {
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--cyan), var(--mint), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.scene-steps {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  width: min(420px, 100%);
}

.scene-step {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(130, 178, 255, 0.28);
  border-radius: 12px;
  padding: 8px 10px;
  color: #b9cdee;
  background: rgba(13, 30, 65, 0.32);
  transition: 0.25s ease;
}

.scene-step span {
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  color: #88bfff;
}

.scene-step.active {
  border-color: rgba(120, 224, 255, 0.72);
  background: rgba(44, 112, 176, 0.34);
  color: #eaf7ff;
  box-shadow: 0 8px 22px rgba(54, 140, 221, 0.26);
}

.ghost-link,
.ghost-btn,
.submit-btn {
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s ease;
}

.sound-icon-btn {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(135, 192, 255, 0.72);
  background: rgba(17, 46, 92, 0.58);
  color: #d6ebff;
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.sound-icon-btn:hover {
  transform: translateY(-1px);
  background: rgba(40, 93, 164, 0.64);
}

.sound-icon-btn.is-on {
  border-color: rgba(117, 242, 206, 0.75);
  box-shadow: 0 8px 22px rgba(53, 170, 142, 0.3);
}

.sound-icon-btn .icon-wrap {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.sound-icon-btn .icon-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.ghost-link,
.ghost-btn {
  text-decoration: none;
  border: 1px solid rgba(122, 177, 255, 0.7);
  color: #dceeff;
  background: rgba(55, 103, 173, 0.2);
}

.ghost-link:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
  background: rgba(75, 141, 233, 0.35);
}

.section-title {
  margin: 54px 0 14px;
}

.section-title p {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 1.4px;
  color: #8ec7ff;
}

.section-title h2,
.section-title h1 {
  margin: 8px 0 0;
  font-size: clamp(26px, 3vw, 40px);
}

.products,
.about {
  margin-top: 8px;
}

.product-card,
.about-card,
.neo-form {
  border: 1px solid rgba(123, 169, 255, 0.34);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(20, 43, 91, 0.82), var(--card));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 20px 48px rgba(0, 7, 24, 0.45);
}

.product-card {
  padding: 20px;
  margin-bottom: 16px;
}

.product-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.product-head ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: #d0e3ff;
  line-height: 1.7;
}

.gallery {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.gallery.three {
  grid-template-columns: repeat(3, 1fr);
}

.gallery.two {
  grid-template-columns: repeat(2, 1fr);
}

.gallery img {
  width: 100%;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(139, 183, 255, 0.4);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 16px;
}

.about-card {
  padding: 18px;
}

.about-card h3 {
  margin-top: 0;
}

label,
legend {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: #d9e8ff;
}

input,
textarea,
select {
  width: 100%;
  margin-top: 8px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(137, 180, 255, 0.34);
  background: rgba(3, 10, 28, 0.58);
  color: #e8f3ff;
  font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(121, 181, 255, 0.72);
  outline-offset: 1px;
}

fieldset {
  margin: 0 0 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(137, 183, 255, 0.3);
}

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

.checkbox-grid label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.checkbox-grid input {
  width: auto;
  margin: 0;
}

.submit-btn {
  width: 100%;
  border: none;
  color: #071129;
  font-weight: 800;
  background: linear-gradient(90deg, #63d5ff, #76f5c5, #ffc675);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.submit-btn:hover {
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.tip {
  margin: 10px 0 0;
  min-height: 20px;
  color: #bae7ff;
  font-size: 14px;
}

footer {
  width: min(1180px, calc(100% - 36px));
  margin: 20px auto 38px;
  border-top: 1px solid rgba(130, 173, 255, 0.28);
  color: #95add2;
  font-size: 14px;
  line-height: 1.8;
  padding-top: 12px;
}

.trial-page .trial-main {
  width: min(900px, calc(100% - 36px));
}

.trial-title {
  margin-top: 38px;
}

.trial-form {
  padding: 22px;
}

.partner-cta-card {
  padding: 18px;
}

.partner-btn {
  margin-top: 8px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 980px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .gallery.three {
    grid-template-columns: repeat(2, 1fr);
  }

  .checkbox-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 10px 12px;
  }

  .brand {
    font-size: 16px;
  }

  nav {
    gap: 4px;
  }

  nav > a,
  .dropdown-trigger {
    padding: 7px 8px;
    font-size: 13px;
  }

  main,
  .trial-page .trial-main,
  footer {
    width: calc(100% - 18px);
  }

  .hero {
    min-height: calc(100vh - 78px);
    margin-top: 10px;
  }

  .hero-stage {
    min-height: calc(100vh - 78px);
  }

  .hero-overlay {
    padding: 22px 16px;
  }

  .product-head,
  .grid-2,
  .gallery.two,
  .gallery.three,
  .checkbox-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .dropdown-menu {
    min-width: 180px;
  }
}

.admin-main {
  width: min(1240px, calc(100% - 36px));
}

.admin-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.admin-refresh {
  border-radius: 12px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.admin-stat-card {
  padding: 16px;
}

.admin-count {
  margin: 8px 0 0;
  font-size: 34px;
  font-weight: 800;
  color: #9ee6ff;
}

.admin-meta {
  margin: 8px 0 0;
  color: #bcd2ef;
}

.admin-table-section {
  margin-top: 14px;
}

.admin-table-wrap {
  padding: 14px;
}

.admin-scroll {
  overflow: auto;
  border: 1px solid rgba(134, 178, 255, 0.22);
  border-radius: 12px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  font-size: 14px;
}

.admin-table thead th {
  position: sticky;
  top: 0;
  background: rgba(10, 24, 54, 0.95);
  color: #d9ecff;
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid rgba(129, 178, 255, 0.3);
}

.admin-table tbody td {
  vertical-align: top;
  padding: 10px;
  border-bottom: 1px solid rgba(114, 161, 236, 0.2);
  color: #c8dcf8;
  line-height: 1.5;
}

.admin-table tbody tr:hover {
  background: rgba(76, 128, 208, 0.13);
}

.admin-empty {
  display: none;
  padding: 10px 0 12px;
  color: #95aed3;
}

@media (max-width: 900px) {
  .admin-main {
    width: calc(100% - 18px);
  }

  .admin-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }
}
