:root {
  --bg-1: #060a1a;
  --bg-2: #101a37;
  --text: #edf3ff;
  --muted: #bdc8ea;
  --line: rgba(152, 180, 255, 0.34);
  --glass-a: rgba(255, 255, 255, 0.13);
  --glass-b: rgba(255, 255, 255, 0.07);
  --accent: #6ea3ff;
  --accent-2: #8e79ff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  font: 16px/1.65 "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(1000px 360px at 18% -8%, #3760ff3b, transparent),
    radial-gradient(720px 300px at 100% 8%, #7f52ff3a, transparent),
    linear-gradient(150deg, var(--bg-1), var(--bg-2));
  min-height: 100vh;
}

.bg-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(64px);
  pointer-events: none;
}
.glow-a { width: 360px; height: 360px; left: -120px; top: -80px; background: #4a67ff63; }
.glow-b { width: 300px; height: 300px; right: -80px; top: 140px; background: #a16cff57; }

.app-shell { width: min(1240px, 96vw); margin: 22px auto 34px; position: relative; z-index: 2; }
.glass {
  background: linear-gradient(180deg, var(--glass-a), var(--glass-b));
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.hero {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.eyebrow { margin: 0 0 8px; color: #9db7ff; letter-spacing: .12em; font-size: 12px; }
.hero h1 { margin: 0 0 6px; line-height: 1.15; font-size: clamp(1.6rem, 3.4vw, 3.1rem); }
.subtitle { margin: 0; color: var(--muted); }
.hero-start {
  min-width: 132px;
  min-height: 52px;
  font-size: 1.06rem;
  box-shadow: 0 10px 24px rgba(89, 126, 255, 0.35);
}
.gated {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  transition: opacity .3s ease, transform .3s ease, max-height .45s ease;
}
.gated.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  max-height: 3000px;
}

body.started .hide-after-start {
  display: none !important;
}

.quick-intro {
  margin-top: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.intro-item {
  border: 1px solid #ffffff22;
  background: #ffffff08;
  border-radius: 12px;
  padding: 10px;
}
.intro-item h3 { margin: 0 0 4px; font-size: 14px; }
.intro-item p { margin: 0; font-size: 13px; color: var(--muted); }

.progress { margin-top: 12px; padding: 12px 16px; }
.progress-row { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.progress-row #progressText { margin-left: auto; }
.progress-track { height: 8px; background: #ffffff1c; border-radius: 999px; margin-top: 10px; overflow: hidden; }
#progressBar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .26s ease;
}

.layout {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.layout.nav-open { grid-template-columns: 1fr; }
.step-nav { padding: 12px; display: none; gap: 8px; align-content: start; }
.step-nav.show { display: grid; }
.step-link {
  border: 1px solid #ffffff27;
  background: #ffffff0b;
  color: var(--text);
  border-radius: 12px;
  padding: 10px 11px;
  cursor: pointer;
  transition: .18s ease;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-link span {
  width: 28px; height: 28px; border-radius: 999px; display: inline-grid; place-items: center;
  font-size: 12px; color: #d9e5ff; background: #ffffff18; border: 1px solid #ffffff22;
}
.step-link:hover { transform: translateY(-1px); background: #ffffff18; }
.step-link:active { transform: translateY(0); }
.step-link.active {
  background: linear-gradient(90deg, #6ea2ff2c, #8d7aff2d);
  border-color: #97b4ff7b;
}

.content { min-height: 560px; padding: 18px; overflow: hidden; }
.step-card { display: none; }
.step-card.active { display: block; animation: in .24s ease both; }
@keyframes in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

h2 { margin: 0 0 8px; font-size: clamp(1.25rem, 2.4vw, 1.95rem); }
h3 { margin: 0 0 6px; font-size: 1rem; }
p, li { color: var(--muted); }
.step-list { padding-left: 20px; }
.tip {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ffffff22;
  background: #ffffff0c;
}

.panel-grid { display: grid; gap: 10px; margin-top: 10px; }
.panel-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.panel {
  border: 1px solid #ffffff21;
  border-radius: 12px;
  background: #ffffff09;
  padding: 12px;
  transition: .2s ease;
}
.panel:hover { transform: translateY(-1px); background: #ffffff12; }
.choice-card {
  border-radius: 18px;
  border: 1.5px solid #9ab7ff55;
  background: linear-gradient(180deg, #ffffff14, #ffffff0b);
  padding: 14px;
  box-shadow: inset 0 0 0 1px #ffffff12;
}
.choice-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.choice-card .btn { margin-top: 8px; }
.quick-steps {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #ffffff2a;
  background: #ffffff0b;
}
.quick-steps-title {
  margin: 0 0 6px;
  color: #dce8ff;
  font-weight: 600;
}
.quick-steps ol {
  margin: 0;
  padding-left: 18px;
}
.quick-steps li {
  color: var(--muted);
  line-height: 1.6;
}
.panel-btn { color: var(--text); text-align: left; cursor: pointer; }

.server-steps {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.server-step-card {
  border: 1px solid #ffffff24;
  background: #ffffff0b;
  border-radius: 14px;
  padding: 12px;
}
.server-step-no {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #dce8ff;
  border: 1px solid #ffffff33;
  background: #ffffff12;
  margin-bottom: 6px;
}
.server-step-card h3 { margin: 0 0 4px; }
.server-step-card p { margin: 0; }

.img-grid {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}
.img-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.img-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #ffffff25;
  background: #ffffff08;
}
.server-image-large img {
  height: auto;
  object-fit: contain;
}

.platform-grid { margin-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.platform-grid a {
  border: 1px solid #ffffff22;
  background: #ffffff0d;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  text-align: center;
  padding: 12px;
  transition: .18s ease;
}
.platform-grid a:hover { transform: translateY(-1px); background: #ffffff18; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 16, 0.72);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 99;
  padding: 16px;
  overflow: auto;
}
.modal-overlay.show { display: flex; }
.modal {
  width: min(860px, 96vw);
  min-height: 280px;
  margin: 10px 0 24px;
  padding: 16px;
  position: relative;
}
.modal h3 { margin: 0 30px 10px 0; }
.modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
}
.modal-body {
  min-height: 150px;
  overflow: visible;
  border: 1px dashed #ffffff4b;
  border-radius: 10px;
  padding: 12px;
  color: var(--muted);
  background: #ffffff08;
}
.modal-guide { display: grid; gap: 12px; }
.modal-guide-tip {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ffffff2e;
  background: #ffffff0d;
}
.modal-step {
  border: 1px solid #ffffff24;
  background: #ffffff09;
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 8px;
}
.modal-step p { margin: 0; }
.modal-body a {
  color: #9fc3ff;
}
.modal-step-tag {
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #d9e6ff;
  border: 1px solid #ffffff3d;
  background: #ffffff12;
}
.modal-step img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #ffffff2b;
  background: #0f1730;
}
.modal-grid-two {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.modal-footer { margin-top: 14px; display: flex; justify-content: flex-end; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn {
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); filter: brightness(.95); }
.btn.primary { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; }
.btn.secondary { background: #ffffff0f; color: var(--text); border-color: #ffffff35; }

.celebrate {
  margin: 10px 0 8px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}
.celebrate span {
  display: inline-grid;
  place-items: center;
  font-size: 20px;
  animation: pop 1.2s ease-in-out infinite;
}
.celebrate span:nth-child(2n) { animation-delay: .2s; }
.celebrate span:nth-child(3n) { animation-delay: .35s; }
@keyframes pop {
  0%,100% { transform: translateY(0) scale(1); opacity: .9; }
  50% { transform: translateY(-6px) scale(1.12); opacity: 1; }
}

.assist-block { margin-top: 14px; }
.assist-title { margin: 0 0 8px; color: #9db4e9; font-size: 12px; letter-spacing: .08em; }
.assist-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.landing-assist { padding: 12px; }
.assist-card {
  font: inherit;
  border: 1px solid #ffffff22;
  background: #ffffff0a;
  border-radius: 14px;
  padding: 10px;
  text-decoration: none;
  color: var(--text);
  display: grid;
  gap: 4px;
  text-align: left;
  cursor: pointer;
  transition: .18s ease;
}
.assist-card:hover { transform: translateY(-1px); background: #ffffff14; }
.assist-card .icon { font-size: 18px; }
.assist-card strong { font-size: 14px; }
.assist-card small { color: var(--muted); font-size: 12px; }

.hint { color: #9db4e9; font-size: 13px; margin-top: 8px; }

@media (min-width: 1081px) {
  .layout.nav-open { grid-template-columns: 280px 1fr; }
}

@media (min-width: 769px) {
  .actions {
    justify-content: center;
  }

  .choice-card .btn {
    margin-inline: auto;
  }
}

@media (max-width: 1080px) {
  .quick-intro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout { grid-template-columns: 1fr; }
  .step-nav.show { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step-link { justify-content: center; text-align: center; }
}

@media (max-width: 768px) {
  .app-shell { width: 94vw; margin: 14px auto 24px; }
  .hero { padding: 14px; flex-direction: column; align-items: flex-start; }
  .quick-intro { grid-template-columns: 1fr; }
  .content { padding: 14px; min-height: 460px; }
  .hero-start { width: 100%; }
  .progress-row { flex-wrap: wrap; }
  .progress-row #progressText { margin-left: 0; }
  .step-nav.show { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-grid.two, .panel-grid.three, .panel-grid.four, .platform-grid, .img-grid.two, .server-steps { grid-template-columns: 1fr; }
  .assist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assist-card { padding: 9px; }
  .img-grid img { height: auto; object-fit: contain; }
  .modal-grid-two { grid-template-columns: 1fr; }
  .btn { width: 100%; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
