/* ============================================================
 * login.css —— 落地页 / 主页 / 气象网址 三个页面共用
 * 视觉参考：追风者视界（全屏实景 + 白色细字 + 字距）
 * ============================================================ */
:root {
  --accent: #6f8cff;
  --accent2: #8fb0ff;
  --line: rgba(255, 255, 255, 0.16);
  --glass: rgba(10, 14, 22, 0.72);
  --ink: #ffffff;
  --ink2: rgba(255, 255, 255, 0.66);
  --ink3: rgba(255, 255, 255, 0.42);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html {
  background: #05070c;
  scroll-behavior: smooth;
}
body.landing {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: #05070c;
  font: 15px/1.7 "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}
.hidden {
  display: none !important;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ---------- 背景 ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  /* 背景图按页面固定/随机：bg.js 写 --nmq-bg，没写就用默认那张 */
  background: var(--nmq-bg, url(/img/login-bg.jpg)) center / cover no-repeat;
  transform: scale(1.03);
  filter: saturate(0.95) brightness(0.96);
}
.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(110% 80% at 50% 6%, rgba(3, 8, 16, 0.02) 0%, rgba(3, 8, 16, 0.55) 62%, rgba(3, 8, 16, 0.9) 100%),
    linear-gradient(180deg, rgba(3, 7, 13, 0.5) 0%, rgba(3, 7, 13, 0.16) 38%, rgba(3, 7, 13, 0.92) 100%);
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80; /* 永远压在登录浮层上面：5 个一级入口一直可见 */
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 40px 18px;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.topbar.solid {
  background: rgba(6, 9, 15, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: 16px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  line-height: 1.15;
}
.brand .cn {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 3px;
}
.brand .en {
  font-size: 10.5px;
  letter-spacing: 0.3em;
  color: var(--ink3);
}
.topbar.solid .brand .cn {
  font-size: 19px;
  letter-spacing: 2px;
}

.nav {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding-top: 6px;
}
.nav > a,
.nav > button {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.nav > a:hover,
.nav > button:hover {
  opacity: 0.68;
}
.nav b {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  white-space: nowrap;
}
.nav i {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--ink3);
  white-space: nowrap;
}
.nav .accent b {
  color: var(--accent2);
}
.nav .who {
  font-size: 12px;
  color: var(--ink2);
  letter-spacing: 1px;
}
.menu-btn {
  display: none;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 90px;
}
.eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.46em;
  color: var(--ink2);
}
.hero h1 {
  margin: 20px 0 14px;
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-shadow: 0 3px 30px rgba(0, 0, 0, 0.6);
}
.hero .sub {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--ink2);
}
.cta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 46px;
}
.pill {
  padding: 14px 42px;
  border: 0;
  border-radius: 999px;
  background: #5b6cff;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.2em;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(91, 108, 255, 0.38);
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.pill:hover {
  transform: translateY(-2px);
  background: #6b7bff;
  box-shadow: 0 16px 40px rgba(91, 108, 255, 0.5);
}
.ghost-line {
  padding: 13px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 13.5px;
  letter-spacing: 0.16em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.ghost-line:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}
.scroll-hint {
  position: fixed;
  z-index: 4;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.42em;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}
.scroll-hint.is-end {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.scroll-hint.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.scroll-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 26px;
  margin: 10px auto 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent);
}

/* ---------- 内容区 ---------- */
.wrap {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px 120px;
}
.section {
  padding: 84px 0 0;
}
.section-label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 26px;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--ink3);
}
.section-label span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
}
.lead {
  max-width: 720px;
  margin: 0 0 40px;
  color: var(--ink2);
  font-size: 14.5px;
  line-height: 2;
  letter-spacing: 0.05em;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  padding: 30px 26px 34px;
  background: #070a11;
  transition: background 0.25s ease;
}
.card:hover {
  background: #0c1119;
}
.card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1.5px;
}
.card p {
  margin: 0;
  color: var(--ink2);
  font-size: 13px;
  line-height: 1.9;
}
.card .num {
  display: block;
  margin-bottom: 16px;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--accent2);
}
.card a {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent2);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-decoration: none;
  transition: color 0.2s ease;
}
.card a:hover {
  color: #fff;
}

/* ---------- 主页导航格 ---------- */
.home-hero {
  position: relative;
  z-index: 2;
  padding: 150px 40px 40px;
  max-width: 1180px;
  margin: 0 auto;
}
.home-hero .eyebrow {
  margin-bottom: 12px;
}
.home-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.home-hero p {
  margin: 0;
  color: var(--ink2);
  letter-spacing: 0.1em;
  font-size: 13.5px;
}
.navgrid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 40px 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 40px 64px;
  border-top: 1px solid var(--line);
}
.navcol h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
}
.navcol .en {
  display: block;
  margin-bottom: 18px;
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--ink3);
}
.navcol ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.navcol li + li {
  margin-top: 12px;
}
.navcol a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink2);
  font-size: 13.5px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.navcol a:hover {
  color: #fff;
  transform: translateX(3px);
}
.tag {
  padding: 1px 6px;
  border: 1px solid rgba(143, 176, 255, 0.45);
  border-radius: 3px;
  color: var(--accent2);
  font-size: 10px;
  letter-spacing: 0.1em;
}
.tag.admin {
  border-color: rgba(255, 196, 120, 0.5);
  color: #ffc478;
}

/* ---------- 登录浮层 ---------- */
.auth-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 5, 10, 0.62);
  backdrop-filter: blur(6px);
  animation: fadein 0.22s ease;
}
@keyframes fadein {
  from {
    opacity: 0;
  }
}
.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 34px 32px 30px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}
.auth-card .close {
  float: right;
  margin: -8px -6px 0 0;
  padding: 4px 8px;
  border: 0;
  background: none;
  color: var(--ink3);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.auth-card .close:hover {
  color: #fff;
}
.auth-tabs {
  display: flex;
  gap: 26px;
  margin-bottom: 24px;
}
.auth-tabs button {
  padding: 0 0 8px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: var(--ink3);
  font: inherit;
  font-size: 16px;
  letter-spacing: 2px;
  cursor: pointer;
}
.auth-tabs button.on {
  color: #fff;
  border-bottom-color: var(--accent);
}
.auth-form label {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink3);
}
.auth-form input,
.auth-form textarea {
  width: 100%;
  margin-top: 7px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.auth-form input:focus,
.auth-form textarea:focus {
  border-color: rgba(143, 176, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
}
.auth-form textarea {
  resize: vertical;
  min-height: 62px;
}
.auth-form .submit {
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  border: 0;
  border-radius: 999px;
  background: #5b6cff;
  color: #fff;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.24em;
  cursor: pointer;
}
.auth-form .submit:disabled {
  opacity: 0.6;
}
.auth-msg {
  min-height: 20px;
  margin: 12px 0 0;
  color: #ffb4b4;
  font-size: 12.5px;
  letter-spacing: 0.06em;
}
.auth-msg.ok {
  color: #9be7b4;
}
.auth-hint {
  margin: 10px 0 0;
  color: var(--ink3);
  font-size: 11.5px;
  line-height: 1.8;
}

/* ---------- 网址页 ---------- */
.linkgrid {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  padding: 130px 32px 100px;
}
.linklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 54px;
}
.linkitem {
  padding: 22px 22px 24px;
  background: #070a11;
  text-decoration: none;
  transition: background 0.22s ease;
}
.linkitem:hover {
  background: #0d1219;
}
.linkitem b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.linkitem span {
  color: var(--ink2);
  font-size: 12px;
  letter-spacing: 0.05em;
  word-break: break-all;
}

.foot {
  position: relative;
  z-index: 2;
  padding: 40px;
  border-top: 1px solid var(--line);
  color: var(--ink3);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-align: center;
}

/* ---------- 手机 ---------- */
@media (max-width: 960px) {
  .topbar {
    padding: 18px 20px;
  }
  .brand .cn {
    font-size: 20px;
  }
  .nav {
    display: none;
  }
  .menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 9px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(6, 10, 16, 0.55);
    backdrop-filter: blur(6px);
    cursor: pointer;
  }
  .menu-btn span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: #fff;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.9);
  }
  .mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    padding: 40px;
    background: rgba(3, 6, 11, 0.96);
    backdrop-filter: blur(10px);
  }
  .mobile-nav a,
  .mobile-nav button {
    display: flex;
    align-items: baseline;
    gap: 12px;
    border: 0;
    background: none;
    color: #fff;
    font: inherit;
    font-size: 20px;
    letter-spacing: 2px;
    text-decoration: none;
  }
  .mobile-nav i {
    font-style: normal;
    font-size: 10px;
    letter-spacing: 0.24em;
    color: var(--ink3);
  }
  .hero {
    padding-top: 96px;
  }
  .cta {
    flex-direction: column;
    gap: 12px;
  }
  .navgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 18px;
    padding: 26px 20px 80px;
  }
  .home-hero {
    padding: 110px 20px 26px;
  }
  .wrap,
  .linkgrid {
    padding-left: 20px;
    padding-right: 20px;
  }
  .section {
    padding-top: 56px;
  }
}

/* ==================== 顶栏下拉：鼠标感应 + 帘式展开 ==================== */
.navitem {
  position: relative;
}
.navbtn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.navlogin {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.navitem .dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  min-width: 196px;
  padding: 8px 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background-color: rgba(5, 8, 13, 0.74);
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.04));
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  clip-path: inset(0 0 100% 0 round 2px);
  transform: translateX(-50%) translateY(-6px);
  transform-origin: top center;
  transition:
    clip-path 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease,
    visibility 0s linear 0.34s;
}
/* 鼠标从按钮移到菜单中间那 14px 空隙也能接上 */
.navitem .dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}
.navitem:hover .dropdown,
.navitem.open .dropdown,
.navitem:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  clip-path: inset(0 0 0 0 round 2px);
  transform: translateX(-50%) translateY(0);
  transition:
    clip-path 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease;
}
.navitem .dropdown a,
.navitem .dropdown button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 20px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.8);
  font: inherit;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, padding-left 0.16s ease;
}
.navitem .dropdown a:hover,
.navitem .dropdown button:hover {
  padding-left: 24px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}
.navitem .dropdown .tag {
  margin-left: auto;
}
.navitem .dropdown .who-item {
  cursor: default;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}
.navitem .dropdown .who-item:hover {
  padding-left: 20px;
  background: none;
  color: rgba(255, 255, 255, 0.5);
}

/* 手机菜单分组 */
.mgroup h4 {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
}
.mgroup h4 i {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  opacity: 0.8;
}
.mgroup a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 16px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}
.mgroup a:hover {
  color: #fff;
}
@media (max-width: 960px) {
  .nav {
    display: none;
  }
  .mobile-nav {
    justify-content: flex-start;
    overflow: auto;
    gap: 24px;
    padding: 96px 30px 48px;
  }
}

/* ==================== 登录页：复刻 PPT 第 1 页 + 动画 ==================== */
.landing-links {
  display: flex;
  gap: 26px;
}
.landing-links a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.landing-links a:hover {
  opacity: 0.7;
}
.landing-links b {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
}
.landing-links i {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--ink3);
}

/* 首屏：只有云图和两个大按钮，位置照 PPT 第 1 页 */
.stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 100vh;
  /* 位置照 PPT 第 1 页：左边约 11%、纵向略高于中线 */
  padding: 0 clamp(24px, 11vw, 210px) 9vh;
}
.gates {
  display: flex;
  align-items: baseline;
  gap: clamp(44px, 8vw, 150px);
}
.gate-btn {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: clamp(32px, 3.6vw, 54px);
  letter-spacing: 0.12em;
  line-height: 1.25;
  cursor: pointer;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.55);
  transition: letter-spacing 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.gate-btn:hover,
.gate-btn:focus-visible {
  letter-spacing: 0.16em;
  opacity: 0.92;
  outline: none;
}

.gate-btn.is-home {
  color: #fff;
}


@keyframes wipeLeft {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes wipeDown {
  from {
    clip-path: inset(0 0 100% 0);
    transform: translateY(8px);
  }
  to {
    clip-path: inset(0 0 0 0);
    transform: none;
  }
}
@keyframes kenburns {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}
@keyframes veilIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 图片先自左向右擦开，再慢慢回落到 1 倍（PPT 里 wipe left 500ms） */
/* 所有页面的背景都走同一套：自左擦开 + 极慢回落到 1 倍 */
body .bg {
  animation: wipeLeft 0.7s cubic-bezier(0.22, 1, 0.36, 1) both,
    kenburns 16s ease-out 0.45s both;
  transition: filter 0.32s ease, transform 0.32s ease;
}
body .veil {
  animation: veilIn 0.9s ease 0.3s both;
}
/* 登录 / 注册：0.52s 后自上而下帘式出现（PPT 是 500ms + 500ms） */
body.page-landing .gate-btn {
  animation: wipeDown 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
body.page-landing #gateLogin {
  animation-delay: 0.52s;
}
body.page-landing #gateReg {
  animation-delay: 0.58s;
}

/* 打开登录卡片：背景压暗虚化，卡片从下往上浮 */
body.page-landing.is-auth-open .bg {
  filter: blur(6px) brightness(0.5);
  transform: scale(1.02);
}
.auth-layer .auth-card {
  transform: translateY(26px) scale(0.99);
  opacity: 0;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}
.auth-layer.is-open .auth-card {
  transform: none;
  opacity: 1;
}
.auth-layer.is-closing .auth-card {
  transform: translateY(18px) scale(0.99);
  opacity: 0;
}

@media (max-width: 720px) {
  /* 手机顶栏只留「主页」，其余入口登录后在 /home 里 */
  .landing-links a:nth-child(n + 2) {
    display: none;
  }
  .landing-links b,
  .landing-links i {
    white-space: nowrap;
  }
  .stage {
    padding: 0 28px;
  }
  .gates {
    flex-direction: column;
    gap: 0.55em;
  }
  .gate-btn {
    font-size: clamp(30px, 9.5vw, 46px);
  }
  .landing-links {
    gap: 16px;
  }
  .landing-links b {
    font-size: 12.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-landing .bg,
  body.page-landing .veil,
  body.page-landing .gate-btn {
    animation: none !important;
  }
  body.page-landing .bg {
    transform: none !important;
  }
  .auth-layer .auth-card,
  .auth-layer.is-open .auth-card,
  .auth-layer.is-closing .auth-card {
    transform: none !important;
    transition: none !important;
  }
  .gate-btn,
  .gate-btn::after,
  .navitem .dropdown,
  body.page-landing.is-auth-open .bg {
    transition: none !important;
  }
}

/* ==================== 常驻顶栏：登录后的用户胶囊 ==================== */
.navwho {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.navwho b {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 1px;
  white-space: nowrap;
}
.navwho i {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--ink3);
}
.navwho:hover {
  opacity: 0.75;
}

/* ==================== 页面过渡 ==================== */

/* 过场只淡内容、不淡背景：云图一直在，不会闪黑 */
.landing-stage,
.stage,
.wrap,
.scroll-hint,
.home-hero,
.navgrid,
.linkgrid {
  transition: opacity 0.15s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}


@media (prefers-reduced-motion: reduce) {
  body.is-entering .stage,
  body.is-entering .wrap,
  body.is-entering .home-hero,
  body.is-entering .navgrid,
  body.is-entering .linkgrid {
    transition: none !important;
    transform: none !important;
    animation: none !important;
    opacity: 1 !important;
  }
}

/* 退出：内容层压暗上移，背景云图与顶栏不动 —— 所以不会黑屏 */
body.is-leaving .stage,
body.is-leaving .wrap,
body.is-leaving .home-hero,
body.is-leaving .navgrid,
body.is-leaving .linkgrid,
body.is-leaving .scroll-hint {
  opacity: 0.35;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

/* 新页面内容淡入（背景不参与，所以不会黑屏） */
body.is-entering .stage,
body.is-entering .wrap,
body.is-entering .home-hero,
body.is-entering .navgrid,
body.is-entering .linkgrid,
body.is-entering .scroll-hint {
  animation: contentIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes contentIn {
  from {
    opacity: 0.45;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}


/* 跳转时把下拉一起收掉 */
body.is-leaving .navitem .dropdown {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* ==================== 实况数据子页面（PPT 第 3~5 页的骨架） ==================== */
.subpage {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 132px 40px 90px;
}
.sub-hero {
  margin-bottom: 44px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.sub-hero .eyebrow {
  margin-bottom: 14px;
}
.sub-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
}
.sub-hero .sub {
  margin: 0;
  max-width: 680px;
  color: var(--ink2);
  font-size: 14px;
  line-height: 1.95;
  letter-spacing: 0.05em;
}
.sub-hero .tag {
  margin-left: 10px;
  vertical-align: middle;
  font-size: 11px;
}
.sub-body {
  display: grid;
  gap: 22px;
}

/* 查询卡 */
.query-card {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(9, 13, 20, 0.72);
  backdrop-filter: blur(14px);
}
.query-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
}
.query-card p.hintline {
  margin: 0 0 16px;
  color: var(--ink3);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}
.query-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.query-row input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font: inherit;
  font-size: 15.5px;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.query-row input::placeholder {
  color: var(--ink3);
}
.query-row input:focus {
  border-color: rgba(143, 176, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}
.query-row button {
  flex: 0 0 auto;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: #5b6cff;
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.16s ease;
}
.query-row button:hover {
  background: #6b7bff;
}
.query-row button:active {
  transform: scale(0.98);
}
.chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.chiprow button,
.chiprow a {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink2);
  font: inherit;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.chiprow button:hover,
.chiprow a:hover {
  color: #fff;
  border-color: rgba(143, 176, 255, 0.5);
  background: rgba(111, 140, 255, 0.12);
}

/* 说明 / 提示块 */
.notice {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 200, 120, 0.28);
  background: rgba(255, 200, 120, 0.06);
  color: rgba(255, 226, 190, 0.92);
  font-size: 13px;
  line-height: 1.85;
  letter-spacing: 0.04em;
}
.notice b {
  flex: 0 0 auto;
  color: #ffd08a;
  letter-spacing: 0.14em;
}

/* 三列卡片 */
.grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.grid3 .cell {
  padding: 22px 20px 24px;
  background: #070a11;
}
.grid3 .cell h4 {
  margin: 0 0 8px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 1px;
}
.grid3 .cell p {
  margin: 0;
  color: var(--ink2);
  font-size: 12.5px;
  line-height: 1.9;
}
.grid3 .cell a {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent2);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-bottom: 1px solid rgba(143, 176, 255, 0.4);
  padding-bottom: 2px;
}

/* 指令页 */
.cmds {
  display: grid;
  gap: 26px;
}
.cmd-group h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
}
.cmd-group h3 span {
  color: var(--ink3);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.24em;
}
.cmd-list {
  border: 1px solid var(--line);
  background: var(--line);
  display: grid;
  gap: 1px;
}
.cmd-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 0;
  background: #070a11;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, padding-left 0.16s ease;
}
.cmd-item:hover {
  padding-left: 22px;
  background: #0d1219;
}
.cmd-item code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13.5px;
  color: #fff;
}
.cmd-item .go {
  margin-left: auto;
  color: var(--accent2);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  opacity: 0.85;
}
.cmd-item:hover .go {
  opacity: 1;
}

@media (max-width: 720px) {
  .subpage {
    padding: 108px 20px 70px;
  }
  .sub-hero {
    margin-bottom: 30px;
  }
  .query-row {
    flex-direction: column;
  }
  .query-row button {
    padding: 13px 20px;
  }
  .cmd-item {
    font-size: 13px;
  }
  .cmd-item .go {
    display: none;
  }
}

/* ==================== 原地查询结果 ==================== */
.result-card {
  padding: 20px 22px 24px;
  border: 1px solid var(--line);
  background: rgba(9, 13, 20, 0.78);
  backdrop-filter: blur(14px);
}
.result-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}
.result-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
}
.result-meta {
  color: var(--ink3);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  word-break: break-all;
}
.result-msg {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  white-space: pre-wrap;
}
.result-msg.err {
  color: #ffb4b4;
}
.result-img {
  margin-top: 8px;
  border: 1px solid var(--line-2);
  background: #05070c;
}
.result-img img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

/* 全屏看图 */
.shot-viewer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 5, 10, 0.92);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}
.shot-viewer img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
}

/* ==================== 账号 / 状态页组件 ==================== */
.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.panel-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 1.8px;
}
.panel-head .ubtn,
.panel-head .umut {
  margin-left: auto;
}

.kv-list {
  border-top: 1px solid var(--line-2, rgba(255, 255, 255, 0.12));
}
.kv-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.kv-row:last-child {
  border-bottom: 0;
}
.kv-k {
  color: var(--ink2);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  flex: 0 0 auto;
}
.kv-v {
  text-align: right;
  word-break: break-all;
  font-variant-numeric: tabular-nums;
}

.ulist {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.1);
}
.urow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: #070a11;
  transition: background 0.16s ease;
}
.urow:hover {
  background: #0c1119;
}
.urow.col {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.umain {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font-size: 14px;
}
.umain > * {
  align-self: flex-start;
}
.umain .umut {
  align-self: stretch;
}
.umut {
  color: var(--ink2);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}
.uacts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}
.urow.col .uacts {
  justify-content: flex-end;
}
.uempty {
  padding: 16px;
  background: #070a11;
  color: var(--ink2);
  font-size: 12.5px;
}
.ubadge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 1px;
}
.ubadge.ok {
  background: rgba(74, 222, 128, 0.16);
  color: #4ade80;
}
.ubadge.bad {
  background: rgba(248, 113, 113, 0.14);
  color: #f87171;
}
.ubtn {
  padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.ubtn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.34);
}
.ubtn.primary {
  border-color: transparent;
  border-radius: 999px;
  background: #5b6cff;
  color: #fff;
  font-weight: 600;
}
.ubtn.primary:hover {
  background: #6b7bff;
}
.ubtn.on {
  border-color: rgba(143, 176, 255, 0.6);
  color: var(--accent2);
  background: rgba(111, 140, 255, 0.12);
}

/* 小弹窗 / 轻提示 */
.mini-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 5, 10, 0.7);
  backdrop-filter: blur(6px);
}
.mini-card {
  width: 100%;
  max-width: 360px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 14, 21, 0.96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.mini-card h4 {
  margin: 0 0 6px;
  font-size: 14.5px;
  letter-spacing: 1.4px;
}
.mini-card p {
  margin: 0 0 12px;
  color: var(--ink2);
  font-size: 12.5px;
}
.mini-card input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: none;
}
.mini-acts {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.page-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 99;
  max-width: min(92vw, 460px);
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(12, 16, 24, 0.95);
  color: #fff;
  font-size: 13px;
  transform: translate(-50%, 10px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.22s ease;
  pointer-events: none;
}
.page-toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 720px) {
  .urow {
    flex-direction: column;
    align-items: stretch;
  }
  .uacts {
    justify-content: flex-end;
  }
}

/* ==================== 下拉选择器（实况数据各页） ==================== */
.picks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink3);
}
.field select,
.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.55) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.55) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
  cursor: pointer;
}
.field select option {
  background: #0b1119;
  color: #fff;
}
.field select:focus,
.field input:focus {
  border-color: rgba(143, 176, 255, 0.7);
  background-color: rgba(255, 255, 255, 0.08);
}
.field.check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  color: var(--ink2);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.field.check input {
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: #5b6cff;
}
.pick-preview {
  margin: 0 0 14px;
  color: var(--ink3);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  word-break: break-all;
}
.pick-preview code {
  color: var(--accent2);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12.5px;
}
.mode-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.mode-row button {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink2);
  font: inherit;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.mode-row button.on {
  color: #fff;
  border-color: rgba(143, 176, 255, 0.6);
  background: rgba(111, 140, 255, 0.16);
}

/* ==================== 自定义下拉（统一向下展开） ==================== */
.dd {
  position: relative;
}
/* 下拉展开时，整张查询卡浮到最上层；菜单本身再高一层 */
.query-card.dd-open {
  position: relative;
  z-index: 90;
}
.dd.open {
  z-index: 91;
}
.dd-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.dd-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
}
.dd.open .dd-btn {
  border-color: rgba(143, 176, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}
.dd-val {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dd-caret {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255, 255, 255, 0.6);
  transition: transform 0.2s ease;
}
.dd.open .dd-caret {
  transform: rotate(180deg);
}
.dd-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 70;
  display: none;
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--line);
  background: #080b11;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
}
.dd.open .dd-menu {
  display: block;
  animation: ddDown 0.16s ease both;
}
@keyframes ddDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.dd-menu button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  background: none;
  color: var(--ink2);
  font: inherit;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-align: left;
  cursor: pointer;
}
.dd-menu button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.dd-menu button.on {
  color: var(--accent2);
  background: rgba(111, 140, 255, 0.12);
}

/* ==================== 落地页：图片轮播 + 详细介绍 ==================== */
.wrap-tour {
  padding-top: 18px;
}
.tour {
  padding: 26px 0 0;
}
.tour-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: 2px;
}
.tour-sub {
  max-width: 660px;
  margin: 0 0 30px;
  color: var(--ink2);
  font-size: 13.5px;
  line-height: 1.95;
  letter-spacing: 0.05em;
}
.tour-carousel {
  position: relative;
}
.tour-viewport {
  overflow: hidden;
}
.tour-track {
  display: flex;
  width: 100%;
  transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.tour-card {
  flex: 0 0 calc(100% / var(--per, 3));
  display: flex;
  flex-direction: column;
  padding-right: 18px;
}
.tour-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #070a11;
}
.tour-shot picture {
  display: block;
}
.tour-shot img {
  display: block;
  width: 100%;
  height: 218px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.tour-card:hover .tour-shot img {
  transform: scale(1.03);
}
.tour-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 2px 0;
}
.tour-num {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--accent2);
}
.tour-body h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 8px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
}
.tour-body p {
  margin: 0 0 14px;
  color: var(--ink2);
  font-size: 13px;
  line-height: 1.85;
}
.readmore {
  margin-top: auto;
  align-self: flex-start;
  color: var(--ink);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-decoration: none;
  transition: color 0.2s ease;
}
.readmore:hover {
  color: var(--accent2);
}
.readmore span {
  display: inline-block;
  margin-left: 5px;
  color: var(--accent2);
  transition: transform 0.2s ease;
}
.readmore:hover span {
  transform: translateY(3px);
}
.tour-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(6, 9, 15, 0.72);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.tour-arrow:hover {
  background: rgba(24, 32, 48, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
}
.tour-arrow:disabled {
  opacity: 0.22;
  cursor: default;
}

.tour-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
}
.tour-meta-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tour-group {
  font-size: 11.5px;
  letter-spacing: 0.24em;
  color: var(--ink3);
}
.tour-dots {
  display: flex;
  gap: 9px;
}
.tour-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.tour-dots button.on {
  background: var(--accent2);
  border-color: var(--accent2);
  transform: scale(1.15);
}

/* 详细介绍 */
.tour-details {
  margin-top: 64px;
}
/* 锚点跳转时给固定顶栏留位置 */
.tour,
.tour-sec,
.tour-teaser,
.section {
  scroll-margin-top: 100px;
}
.tour-sec {
  padding: 62px 0 8px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}
body.tour-js .tour-sec {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
body.tour-js .tour-sec.in {
  opacity: 1;
  transform: none;
}
.tour-sec-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.tour-sec-num {
  padding-top: 12px;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--accent2);
}
.tour-sec h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: 2px;
}
.tour-sec-sub {
  margin: 10px 0 0;
  color: var(--ink3);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.tour-sec-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 36px;
  align-items: start;
  margin-top: 26px;
}
.tour-sec-text p {
  margin: 0 0 14px;
  color: var(--ink2);
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.04em;
}
.tour-sec-text ul {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.tour-sec-text li {
  position: relative;
  padding-left: 20px;
  color: var(--ink2);
  font-size: 13.5px;
  line-height: 1.9;
}
.tour-sec-text li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.95em;
  width: 8px;
  height: 1px;
  background: var(--accent2);
}
.btn-line {
  display: inline-block;
  padding: 11px 20px;
  border: 1px solid rgba(143, 176, 255, 0.5);
  color: var(--accent2);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-line:hover {
  background: rgba(111, 140, 255, 0.14);
  border-color: var(--accent2);
  color: #fff;
}
.tour-sec-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #070a11;
}
.tour-sec-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.tour-sec.is-flash {
  animation: tourFlash 1.5s ease;
}
@keyframes tourFlash {
  0% {
    box-shadow: inset 0 0 0 1px rgba(143, 176, 255, 0.55);
  }
  45% {
    box-shadow: inset 0 0 0 1px rgba(143, 176, 255, 0.12);
  }
  100% {
    box-shadow: inset 0 0 0 1px rgba(143, 176, 255, 0);
  }
}
.tour-teaser {
  margin-top: 64px;
  padding-top: 54px;
  border-top: 1px solid var(--line);
}
.tour-teaser .cards {
  margin-top: 4px;
}

@media (max-width: 1080px) {
  .tour-shot img {
    height: 196px;
  }
}
@media (max-width: 900px) {
  .tour-sec-body {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .tour-arrow {
    top: 30%;
  }
}
@media (max-width: 640px) {
  .tour-shot img {
    height: 188px;
  }
  .tour-meta {
    gap: 12px;
  }
  .tour-sec {
    padding-top: 46px;
  }
  .tour-sec-head {
    gap: 12px;
  }
  .tour-sec-num {
    padding-top: 6px;
  }
}
/* 访问记录：一行 IP + 网络，一行路径 + 时间 */
.visit-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  scroll-margin-top: 100px;
}
.uv-ip {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.uv-meta {
  color: var(--ink2);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}
.query-card {
  scroll-margin-top: 100px;
}

/* ==================== 状态页：可折叠卡片 / IP 下拉 ==================== */
.fold {
  border: 1px solid var(--line);
  background: rgba(9, 13, 20, 0.72);
  backdrop-filter: blur(14px);
  scroll-margin-top: 100px;
}
.fold > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
}
.fold > summary::-webkit-details-marker {
  display: none;
}
.fold > summary h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
}
.fold > summary .umut:first-of-type {
  margin-left: auto;
}
.fold-body {
  padding: 0 22px 20px;
}
.fold-caret {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 1.5px solid var(--ink2);
  border-bottom: 1.5px solid var(--ink2);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.22s ease;
}
.fold[open] > summary .fold-caret {
  transform: rotate(-135deg) translateY(-2px);
}
.fold-sub {
  border-top: 1px solid var(--line);
}
.fold-sub:first-child {
  border-top: 0;
}
.fold-sub > summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 2px;
  cursor: pointer;
  list-style: none;
  font-size: 13.5px;
}
.fold-sub > summary::-webkit-details-marker {
  display: none;
}
.vs-ip {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.uv-addr {
  color: var(--ink2);
  font-size: 12.5px;
  letter-spacing: 0.03em;
}
.vs-meta {
  color: var(--ink3);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.fold-sub[open] > summary .fold-caret {
  transform: rotate(-135deg) translateY(-2px);
}
.visit-detail {
  padding: 2px 2px 14px;
}
.visit-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: var(--ink2);
}
.vl-path {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vl-path b {
  color: var(--ink);
  font-weight: 600;
}
.vl-time {
  flex: 0 0 auto;
  color: var(--ink3);
  font-size: 12px;
}
.vl-more {
  margin: 8px 0 0;
  color: var(--ink3);
  font-size: 12px;
}
.visit-queries {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.vq-title {
  margin: 0 0 4px;
  color: var(--accent2);
  font-size: 12px;
  letter-spacing: 0.1em;
}

/* ==================== 每一屏底部的 SCROLL ==================== */
.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin: 46px auto 6px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-decoration: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
  transition: color 0.2s ease;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent);
  animation: cueFloat 1.9s ease-in-out infinite;
}
.scroll-cue:hover {
  color: #fff;
}
@keyframes cueFloat {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue::after {
    animation: none;
  }
}

/* ==================== 全屏登录 / 注册 ==================== */
.authscreen {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 118px 24px 90px;
}
.authscreen-title {
  margin: 0 0 58px;
  color: #fff;
  font-size: clamp(46px, 6vw, 84px);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.55);
}
.authscreen-form {
  display: grid;
  gap: 26px;
  width: min(720px, 100%);
}
.as-label {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 17px;
  letter-spacing: 0.03em;
}
.as-label input,
.as-label textarea {
  display: block;
  margin-top: 12px;
}
.as-label .req {
  color: #fff;
}
.as-label input,
.as-label textarea {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 2px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 16px;
}
.as-label input {
  height: 56px;
}
.as-label textarea {
  min-height: 148px;
  resize: vertical;
}
.as-label input:focus,
.as-label textarea:focus {
  outline: 2px solid rgba(61, 159, 214, 0.65);
}
.as-check {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  letter-spacing: 0.03em;
}
.as-check input {
  width: 20px;
  height: 20px;
  accent-color: #3d9fd6;
}
.as-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 6px;
}
.as-actions.single {
  grid-template-columns: 1fr;
}
.as-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border: 0;
  border-radius: 2px;
  font: inherit;
  font-size: 17px;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.18s ease;
}
.as-btn.primary {
  background: #3d9fd6;
  color: #fff;
}
.as-btn.primary:hover {
  filter: brightness(1.08);
}
.as-btn.ghost {
  background: #ececec;
  color: #333;
}
.as-btn.ghost:hover {
  filter: brightness(0.96);
}
.as-msg {
  min-height: 22px;
  margin: 0;
  color: #ff9b9b;
  font-size: 14px;
  letter-spacing: 0.03em;
}
.as-msg.ok {
  color: #7ee2a8;
}
.as-hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
  letter-spacing: 0.03em;
}
.as-hint a {
  color: #8fb0ff;
}

/* 「请先登录」提示条 */
.nmq-toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 17, 26, 0.95);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  color: var(--ink2);
  font-size: 13px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 16px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}
.nmq-toast.on {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nmq-toast b {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.06em;
}
.nmq-toast a {
  color: var(--accent2);
  text-decoration: none;
  white-space: nowrap;
}

/* 登录后隐藏「登录」入口；未登录时点需要登录的链接给禁止光标 */
body.is-logged [data-anon-only] {
  display: none !important;
}
body:not(.is-logged) a[data-gate] {
  cursor: not-allowed;
}

body.is-leaving .authscreen {
  opacity: 0.35;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
body.is-entering .authscreen {
  animation: contentIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (max-width: 640px) {
  .authscreen {
    padding: 96px 20px 70px;
  }
  .authscreen-title {
    margin-bottom: 40px;
    font-size: clamp(38px, 12vw, 56px);
  }
  .authscreen-form {
    gap: 20px;
  }
  .as-actions {
    grid-template-columns: 1fr;
  }
  .as-label {
    font-size: 15px;
  }
  .as-label input,
  .as-label textarea {
    font-size: 15px;
  }
}