@charset "UTF-8";

/* ===== 夜猫子游戏辅助器 · 夜间控制台风格 ===== */

:root {
  --night: #0E1524;
  --night-2: #131C31;
  --night-3: #1A2440;
  --panel: #16294F;
  --glow: #5FD3E8;
  --violet: #8B7BF0;
  --text: #E8EDF7;
  --muted: #93A2BE;
  --line: rgba(255, 255, 255, 0.09);
  --radius: 14px;
  --shell: 1160px;
  --header-height: 74px;
  --mono: "Consolas", "DIN Alternate", "Bahnschrift", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--night);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  color: inherit;
  font: inherit;
}

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

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
}

.page-shell {
  width: min(calc(100% - 48px), var(--shell));
  margin: 0 auto;
}

.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  vertical-align: middle;
}

.icon::before {
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  background: center / contain no-repeat;
}

.icon-download::before { background-image: url("../icons/download.svg"); }
.icon-menu::before { background-image: url("../icons/menu.svg"); }
.icon-close::before { background-image: url("../icons/close.svg"); }
.icon-arrow::before { background-image: url("../icons/arrow.svg"); }
.icon-globe::before { background-image: url("../icons/globe.svg"); }
.icon-plus::before { background-image: url("../icons/plus.svg"); }
.icon-bolt::before { background-image: url("../icons/bolt.svg"); }
.icon-shield::before { background-image: url("../icons/shield.svg"); }
.icon-route::before { background-image: url("../icons/route.svg"); }
.icon-book::before { background-image: url("../icons/book.svg"); }

/* ---------- 顶栏 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 21, 36, 0.92);
  backdrop-filter: blur(10px);
}

.nav-shell {
  display: flex;
  align-items: center;
  width: min(calc(100% - 48px), var(--shell));
  min-height: var(--header-height);
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand img {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(95, 211, 232, 0.36);
  border-radius: 10px;
  background: rgba(95, 211, 232, 0.08);
  object-fit: contain;
}

.primary-nav {
  margin-left: auto;
}

.primary-nav ul,
.footer-nav ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-nav ul {
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.primary-nav a {
  display: inline-block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: color 160ms ease;
}

.primary-nav a:hover {
  color: var(--glow);
}

.nav-download,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
}

.nav-download {
  min-width: 128px;
  min-height: 40px;
  padding: 0 14px;
  color: #06202B;
  background: var(--glow);
  box-shadow: 0 0 18px rgba(95, 211, 232, 0.28);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.nav-download .icon {
  filter: brightness(0) saturate(100%) invert(12%) sepia(22%) saturate(1400%) hue-rotate(160deg);
}

.nav-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(95, 211, 232, 0.45);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.menu-toggle .icon {
  width: 19px;
  height: 19px;
  filter: brightness(0) invert(1);
}

/* ---------- 英雄区 ---------- */

.hero {
  position: relative;
  padding: 60px 0 68px;
  overflow: hidden;
  background:
    radial-gradient(620px 380px at 82% 8%, rgba(139, 123, 240, 0.24) 0%, rgba(139, 123, 240, 0) 70%),
    radial-gradient(520px 320px at 4% 88%, rgba(95, 211, 232, 0.16) 0%, rgba(95, 211, 232, 0) 72%),
    linear-gradient(180deg, #101A2E 0%, #0E1524 100%);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(26px, 4vw, 54px);
}

.hero-copy {
  max-width: 490px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 15px;
  color: var(--glow);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.4px;
}

.eyebrow::before {
  width: 14px;
  height: 1px;
  content: "";
  background: var(--glow);
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 3.9vw, 46px);
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.hero-title {
  margin: 15px 0 14px;
  color: #BFD4E6;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.42;
}

.hero-summary {
  max-width: 440px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.button {
  min-height: 48px;
  padding: 0 26px;
}

.button-primary {
  color: #08222D;
  background: linear-gradient(135deg, #7FE3F4 0%, #4FC3DC 100%);
  box-shadow: 0 0 24px rgba(95, 211, 232, 0.32);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button-primary .icon {
  filter: brightness(0) saturate(100%) invert(12%) sepia(22%) saturate(1400%) hue-rotate(160deg);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(95, 211, 232, 0.46);
}

/* 英雄组件：夜间开关面板 */

.hero-nightpanel {
  width: 100%;
  max-width: 452px;
  margin-left: auto;
  padding: 18px 18px 16px;
  border: 1px solid rgba(95, 211, 232, 0.24);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(26, 39, 68, 0.96) 0%, rgba(18, 28, 48, 0.98) 100%);
  box-shadow: 0 24px 50px rgba(3, 8, 16, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.np-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 2px 14px;
  border-bottom: 1px solid var(--line);
}

.np-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 10px var(--glow);
  animation: npBlink 2.2s ease-in-out infinite;
}

@keyframes npBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.32; }
}

.np-head b {
  color: #fff;
  font-size: 13.5px;
  letter-spacing: 0.3px;
}

.np-head small {
  margin-left: auto;
  color: #7E8FB0;
  font-family: var(--mono);
  font-size: 10.5px;
}

.np-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.np-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.np-row.is-on {
  border-color: rgba(95, 211, 232, 0.3);
  background: rgba(95, 211, 232, 0.07);
}

.np-label b {
  display: block;
  color: #DCE7F5;
  font-size: 13px;
  font-weight: 700;
}

.np-label small {
  display: block;
  margin-top: 1px;
  color: #7E8FB0;
  font-size: 10.5px;
}

.np-switch {
  position: relative;
  flex: none;
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: background-color 200ms ease;
}

.np-switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #8494AE;
  transition: transform 200ms ease, background-color 200ms ease;
}

.np-row.is-on .np-switch {
  background: rgba(95, 211, 232, 0.34);
}

.np-row.is-on .np-switch i {
  background: var(--glow);
  box-shadow: 0 0 12px rgba(95, 211, 232, 0.7);
  transform: translateX(20px);
}

.np-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  color: #7E8FB0;
  font-size: 11px;
}

.np-foot b {
  color: var(--glow);
  font-family: var(--mono);
  font-size: 11.5px;
}

/* ---------- 区块标题 ---------- */

.section-heading {
  max-width: 610px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 2.9vw, 36px);
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.26;
}

.section-heading > p:last-child {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- 核心特色 ---------- */

.routes {
  padding: 68px 0 74px;
  background: var(--night-2);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

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

.four {
  position: relative;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.012) 100%);
  transition: border-color 180ms ease, transform 180ms ease;
}

.four:hover {
  border-color: rgba(95, 211, 232, 0.3);
  transform: translateY(-2px);
}

.four .n {
  display: block;
  margin-bottom: 12px;
  color: rgba(95, 211, 232, 0.7);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 2px;
}

.four h3 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.four p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

/* ---------- 界面展示 ---------- */

.screens {
  padding: 70px 0 76px;
  background: var(--night);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

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

.covers figure {
  min-width: 0;
  margin: 0;
  padding: 12px 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--night-2);
}

.covers img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  background: #0A1120;
  object-fit: cover;
  object-position: top center;
}

.covers b {
  display: block;
  margin-top: 11px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
}

.covers small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

/* ---------- FAQ ---------- */

.faq {
  padding: 68px 0 58px;
  background: var(--night-3);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.faq .page-shell {
  display: grid;
  grid-template-columns: minmax(240px, 0.66fr) minmax(0, 1.34fr);
  column-gap: 44px;
  align-items: start;
}

.faq .section-heading {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 9px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(10, 17, 30, 0.42);
}

.faq-item[open] {
  border-color: rgba(95, 211, 232, 0.26);
  background: rgba(10, 17, 30, 0.7);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 0 17px;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3 {
  margin: 0;
  color: #E2EAF7;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}

.faq-item summary .icon {
  flex: none;
  filter: brightness(0) saturate(100%) invert(78%) sepia(40%) saturate(700%) hue-rotate(155deg) brightness(102%);
  transition: transform 180ms ease;
}

.faq-item[open] summary .icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 17px 15px;
}

.faq-answer p {
  margin: 0;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: #9FAFC9;
  font-size: 13.2px;
  line-height: 1.82;
}

/* ---------- 官方入口 ---------- */

.official {
  padding: 0 0 66px;
  background: var(--night-3);
}

.official-fold {
  border: 1px solid rgba(95, 211, 232, 0.24);
  border-radius: 12px;
  background: rgba(95, 211, 232, 0.05);
}

.official-fold summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 17px;
  color: #BFE9F3;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.official-fold summary::-webkit-details-marker {
  display: none;
}

.official-fold summary::after {
  margin-left: auto;
  content: "▾";
  color: var(--glow);
  font-size: 13px;
}

.official-fold[open] summary::after {
  content: "▴";
}

.official-link {
  padding: 12px 17px 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.official-link p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.official-link a {
  color: var(--glow);
  font-weight: 700;
  word-break: break-all;
}

/* ---------- 用户评价 ---------- */

.reviews {
  padding: 68px 0 78px;
  background: var(--night);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

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

.review-card {
  display: flex;
  flex-direction: column;
  padding: 20px 19px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--night-2);
}

.review-card:nth-child(2n) {
  background: #121B2F;
}

.review-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.review-card .who b {
  color: #E3ECF9;
  font-size: 13.5px;
  font-weight: 700;
}

.review-card time {
  color: #6E7F9E;
  font-family: var(--mono);
  font-size: 10.5px;
}

.review-card > p {
  margin: 12px 0 12px;
  color: #A7B7D0;
  font-size: 13.2px;
  line-height: 1.82;
}

.rv-site {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  color: #6FB9CE;
  font-size: 11px;
  word-break: break-all;
}

/* ---------- 下载 ---------- */

.download-cta {
  padding: 58px 0 60px;
  background:
    radial-gradient(520px 300px at 88% 10%, rgba(95, 211, 232, 0.14) 0%, rgba(95, 211, 232, 0) 72%),
    linear-gradient(160deg, #16294F 0%, #101C33 100%);
  border-top: 1px solid rgba(95, 211, 232, 0.2);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.download-cta .page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 30px;
  row-gap: 16px;
}

.download-cta .section-heading {
  margin-bottom: 0;
}

.download-cta .button {
  min-width: 236px;
}

.disclaimer {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 15px;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  color: #8296B4;
  font-size: 12.5px;
}

/* ---------- 页脚 ---------- */

.site-footer {
  padding: 24px 0 20px;
  background: #080D18;
  color: #8093B0;
}

.site-footer .page-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  font-size: 12.5px;
}

.site-footer a {
  color: #C3D4E6;
}

.site-footer a:hover {
  color: var(--glow);
}

.icp a {
  color: #6E7F9E;
  font-family: var(--mono);
  font-size: 11.5px;
}

/* ---------- 返回顶部 ---------- */

.to-top {
  position: fixed;
  right: 20px;
  bottom: 150px;
  z-index: 40;
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(95, 211, 232, 0.34);
  border-radius: 12px;
  background: rgba(22, 41, 79, 0.92);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
}

.to-top::before {
  width: 8px;
  height: 8px;
  content: "";
  border-top: 2px solid var(--glow);
  border-left: 2px solid var(--glow);
  transform: rotate(45deg) translate(1px, 1px);
}

.to-top.is-show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .hero-nightpanel {
    margin: 0 auto;
    max-width: 100%;
  }

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

  .faq .page-shell {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 6px;
  }

  .faq .section-heading {
    margin-bottom: 16px;
  }

  .download-cta .page-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .download-cta .button {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 62px;
  }

  body {
    padding-top: var(--header-height);
  }

  .site-header {
    position: fixed;
    right: 0;
    left: 0;
    width: 100%;
    background: rgba(14, 21, 36, 0.96);
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
  }

  .page-shell,
  .nav-shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .nav-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-rows: var(--header-height);
    min-height: var(--header-height);
    column-gap: 9px;
  }

  .brand {
    grid-row: 1;
    grid-column: 1;
    gap: 7px;
    font-size: 13.5px;
  }

  .brand img {
    width: 28px;
    height: 28px;
  }

  .primary-nav {
    display: none;
    grid-row: 2;
    grid-column: 1 / -1;
    margin: 0 -14px;
    padding: 0 14px 12px;
    border-top: 1px solid var(--line);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding-top: 10px;
  }

  .primary-nav a {
    display: block;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    color: #D3DFEE;
    font-size: 12.5px;
  }

  .nav-download {
    grid-row: 1;
    grid-column: 3;
    min-width: auto;
    min-height: 32px;
    padding: 0 9px;
    font-size: 11.5px;
  }

  .nav-download .icon {
    width: 14px;
    height: 14px;
  }

  .menu-toggle {
    display: inline-flex;
    grid-row: 1;
    grid-column: 4;
    width: 32px;
    height: 32px;
  }

  .hero {
    padding: 36px 0 44px;
  }

  .hero h1 {
    font-size: 29px;
  }

  .hero-title {
    font-size: 18px;
  }

  .hero-summary {
    font-size: 13.8px;
  }

  .hero-nightpanel {
    padding: 14px;
    border-radius: 15px;
  }

  .np-row {
    padding: 9px 11px;
  }

  .routes,
  .screens,
  .faq,
  .reviews {
    padding: 46px 0;
  }

  .fours {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
  }

  .covers {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    max-width: 380px;
    margin: 0 auto;
  }

  .rgrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .download-cta {
    padding: 40px 0 42px;
  }

  .download-cta .button {
    width: 100%;
    min-width: 0;
  }

  .site-footer .page-shell {
    display: grid;
    justify-items: start;
    gap: 6px;
  }

  .to-top {
    right: 14px;
    bottom: 132px;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 380px) {
  .brand span {
    font-size: 12px;
  }

  .nav-download span {
    display: none;
  }

  .nav-download {
    width: 32px;
    padding: 0;
  }

  .hero h1 {
    font-size: 25px;
  }

  .np-label small {
    display: none;
  }
}
