:root {
  --bg: #07111f;
  --bg-deep: #030813;
  --panel: rgba(8, 18, 34, 0.84);
  --panel-strong: rgba(6, 14, 28, 0.94);
  --line: rgba(55, 104, 163, 0.34);
  --line-strong: rgba(73, 132, 201, 0.44);
  --text: #eef5ff;
  --muted: #8ea6c1;
  --cyan: #25bbff;
  --cyan-soft: rgba(37, 187, 255, 0.12);
  --orange: #ff9a3d;
  --orange-soft: rgba(255, 154, 61, 0.12);
  --font-ui: "Chakra Petch", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-display: "Orbitron", var(--font-ui);
  --radius-panel: 10px;
  --radius-soft: 8px;
  --shadow-panel: 0 24px 60px rgba(1, 6, 17, 0.48);
}

* {
  box-sizing: border-box;
  scrollbar-color: rgba(143, 220, 255, 0.36) transparent;
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(143, 220, 255, 0.28);
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 154, 61, 0.46);
}

html,
body {
  min-height: 100%;
}

html {
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-ui);
  background: var(--bg);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  position: relative;
  width: min(1280px, calc(100% - 24px));
  margin: 0 auto 28px;
}

.page-scrollbar {
  position: fixed;
  top: 10px;
  right: 4px;
  bottom: 10px;
  z-index: 80;
  width: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.page-scrollbar.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.page-scrollbar__thumb {
  position: absolute;
  right: 2px;
  top: 0;
  width: 4px;
  min-height: 42px;
  border: 1px solid rgba(143, 220, 255, 0.18);
  border-radius: 999px;
  background: rgba(143, 220, 255, 0.24);
  backdrop-filter: blur(8px);
  cursor: grab;
  transition: width 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.page-scrollbar:hover .page-scrollbar__thumb,
.page-scrollbar.is-dragging .page-scrollbar__thumb {
  right: 1px;
  width: 6px;
  border-color: rgba(255, 154, 61, 0.36);
  background: rgba(255, 154, 61, 0.42);
}

.page-scrollbar.is-dragging .page-scrollbar__thumb {
  cursor: grabbing;
}

.hero-mount {
  margin-top: 12px;
}

.hero-banner,
.panel-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
}

.hero-banner {
  margin-top: 18px;
  min-height: 244px;
  padding: 16px 24px 20px;
}

.hero-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.hero-toolbar-left,
.hero-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin-top: 54px;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: clamp(36px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.hero-subtitle {
  margin: 10px 0 0;
  max-width: 440px;
  font-size: 13px;
  line-height: 1.75;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-stat {
  min-width: 92px;
  padding: 6px 10px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  background: rgba(4, 10, 20, 0.08);
}

.hero-stat span {
  display: block;
  font-size: 11px;
  color: #79a0c8;
}

.hero-stat strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--text);
}

.hero-chip,
.hero-submit-btn,
.nav-btn,
.sub-nav-btn {
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hero-chip,
.hero-submit-btn,
.sub-nav-btn,
.list-card,
.mount-card,
.mount-rail-card,
.module-advice-card {
  border-radius: var(--radius-soft);
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 154, 61, 0.08);
}

.hero-user,
.hero-submit-btn,
.hero-chip {
  margin: 0;
}

.hero-user {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  background: rgba(4, 10, 20, 0.16);
  color: #c6d7ea;
  font-size: 13px;
  font-weight: 600;
}

.hero-submit-btn {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 154, 61, 0.8);
  background: rgba(255, 154, 61, 0.07);
  color: #ffd4af;
}

.hero-chip:hover,
.hero-submit-btn:hover,
.nav-btn:hover,
.sub-nav-btn:hover {
  transform: translateY(-1px);
}

.primary-nav {
  position: sticky;
  top: 10px;
  z-index: 40;
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.nav-btn {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-soft);
  background: linear-gradient(180deg, rgba(14, 31, 56, 0.92), rgba(8, 20, 38, 0.92));
  color: #a9c3e3;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nav-btn.active {
  color: #fff4e7;
}

.main-shell {
  margin-top: 10px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.panel-shell {
  padding: 18px;
  background: linear-gradient(180deg, rgba(9, 20, 38, 0.94), rgba(6, 14, 28, 0.94));
}

.section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.section-head.split {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
}

.section-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #67c9ff;
}

.section-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.sub-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sub-nav-btn {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(10, 21, 38, 0.9);
  color: #97b5d6;
}

.sub-nav-btn.active {
  color: #09111d;
  background: linear-gradient(90deg, rgba(255, 154, 61, 0.96), rgba(255, 123, 32, 0.96));
  border-color: rgba(255, 154, 61, 0.88);
}

.sub-panels {
  display: grid;
}

.sub-panel {
  display: none;
}

.sub-panel.active {
  display: block;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  min-width: 160px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 154, 61, 0.42);
  border-radius: var(--radius-soft);
  background: rgba(5, 12, 22, 0.94);
  color: #f5d7b5;
  box-shadow: 0 12px 32px rgba(1, 6, 17, 0.42);
}

.hidden {
  display: none !important;
}

@media (max-width: 1040px) {
  .hero-banner {
    min-height: 228px;
    padding: 15px 18px 18px;
  }

  .hero-copy {
    margin-top: 34px;
  }

  .section-head.split {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: calc(100% - 16px);
  }

  .hero-mount {
    margin-top: 10px;
  }

  .hero-banner {
    min-height: 220px;
    padding: 14px;
  }

  .hero-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero-toolbar-right {
    justify-content: flex-start;
  }

  .hero-copy {
    margin-top: 24px;
    max-width: 100%;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .hero-stat {
    min-width: calc(50% - 4px);
  }

  .primary-nav {
    grid-template-columns: 1fr;
  }

  .nav-btn {
    min-height: 42px;
    font-size: 14px;
  }

  .panel-shell {
    padding: 12px;
  }
}
