/* =========================================================
   FutureYSM · 站点导航页
   ---------------------------------------------------------
   只在 nav.html 加载。暗色为默认，亮色 / 高对比度均单独作用域，
   不修改其它页面的任何规则。
   ========================================================= */

/* ---------------- 导航页局部变量（暗色默认） ---------------- */
.nav-page {
  --nav-panel: rgba(27, 29, 33, .76);
  --nav-panel-solid: #1B1D21;
  --nav-line: rgba(255, 255, 255, .09);
  --nav-line-strong: rgba(255, 255, 255, .16);
  --nav-muted: #A2AAB4;
  --nav-faint: #7E8792;
  --nav-accent: #49AFD0;
  --nav-accent-soft: rgba(73, 175, 208, .14);
  --nav-green: #71B82C;
  --nav-purple: #8B5CF6;
  --nav-shadow: 0 18px 44px rgba(0, 0, 0, .32);
  /* 首屏遮罩：多级透明度，让卡片墙到文案区的过渡更柔和 */
  --nav-wall-veil: rgba(30, 31, 34, .88);
  --nav-wall-veil-80: rgba(30, 31, 34, .76);
  --nav-wall-veil-64: rgba(30, 31, 34, .64);
  --nav-wall-veil-42: rgba(30, 31, 34, .42);
  --nav-wall-veil-20: rgba(30, 31, 34, .20);
  --nav-wall-veil-00: rgba(30, 31, 34, 0);
  --nav-wall-edge: #1E1F22;
}

/* ---------------- 首屏 ---------------- */
.nav-hero {
  position: relative;
  /* 本页已移除顶栏，首屏直接占满一屏（原为 calc(100vh - 60px)） */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 0 96px;
  overflow: hidden;
  isolation: isolate;
}
.nav-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(720px 520px at 50% 30%, rgba(73, 175, 208, .13), transparent 66%),
    radial-gradient(560px 460px at 82% 18%, rgba(139, 92, 246, .10), transparent 68%),
    radial-gradient(520px 420px at 14% 82%, rgba(113, 184, 44, .08), transparent 68%);
}
.nav-hero-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: min(640px, 72vw);
  height: min(640px, 72vw);
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(circle, rgba(73, 175, 208, .16) 0%, rgba(73, 175, 208, .05) 38%, transparent 68%);
  filter: blur(8px);
}

.nav-hero-inner {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  pointer-events: none;
}
.nav-hero-inner a,
.nav-hero-inner button {
  pointer-events: auto;
}

.nav-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--nav-muted);
  text-decoration: none;
  text-shadow: 0 1px 10px var(--nav-wall-veil), 0 0 16px var(--nav-wall-veil);
  transition: color .18s ease;
}
.nav-eyebrow:hover { color: var(--text); }
.nav-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nav-green);
  box-shadow: 0 0 0 4px rgba(113, 184, 44, .12);
  animation: nav-pulse 2.4s ease-in-out infinite;
}

.nav-title {
  margin: 0 0 20px;
  font-size: clamp(42px, 5.6vw, 74px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.035em;
  color: var(--text);
}
.nav-title-accent {
  display: inline-block;
  padding-bottom: .06em;
  background: linear-gradient(100deg, #6CC4E0 0%, #8B5CF6 52%, #8FD94A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.nav-lead {
  max-width: 560px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.85;
  color: var(--nav-muted);
}

.nav-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.nav-btn:hover { transform: translateY(-2px); }
.nav-btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.nav-btn-primary {
  background: linear-gradient(180deg, #7FCC35, #63A828);
  color: #fff;
  box-shadow: 0 8px 22px rgba(113, 184, 44, .24);
}
.nav-btn-primary:hover {
  color: #fff;
  box-shadow: 0 12px 28px rgba(113, 184, 44, .34);
}
.nav-btn-ghost {
  background: rgba(255, 255, 255, .04);
  border-color: var(--nav-line-strong);
  color: var(--text);
}
.nav-btn-ghost:hover {
  background: rgba(255, 255, 255, .08);
  border-color: var(--nav-line-strong);
  color: var(--text);
}

.nav-hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  font-size: 12px;
  color: var(--nav-faint);
}
.nav-hero-stats b {
  color: var(--text);
  font-weight: 700;
}
.nav-stat-sep {
  width: 1px;
  height: 12px;
  background: var(--nav-line-strong);
}

.nav-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 5;
  width: 22px;
  height: 34px;
  transform: translateX(-50%);
  border: 1px solid var(--nav-line-strong);
  border-radius: 12px;
  opacity: .68;
  transition: opacity .2s, border-color .2s;
}
.nav-scroll-hint:hover { opacity: 1; border-color: var(--nav-accent); }
.nav-scroll-hint span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--nav-accent);
  animation: nav-scroll-dot 1.8s ease-in-out infinite;
}

/* ---------------- 二维传送带卡片墙 ---------------- */
.wall-stage {
  --wall-card-w: 104px;
  --wall-card-h: 140px;
  --wall-gap: 20px;
  --wall-row-gap: 24px;
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--wall-row-gap);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity .9s ease;
  /* 注意：这里绝不能加 mask-image。
     遮罩会把 120 张卡片的合成层合并成一整层，滚动动画只能回主线程重绘，
     低配显卡上会明显掉帧。首尾柔化改用下面两个静态渐变层实现。 */
}
.wall-stage.is-ready { opacity: 1; }
.wall-stage::before,
.wall-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 4;
  height: 12%;
  pointer-events: none;
}
.wall-stage::before {
  top: 0;
  background: linear-gradient(180deg,
    var(--nav-wall-edge) 0%,
    var(--nav-wall-edge) 18%,
    var(--nav-wall-veil) 44%,
    var(--nav-wall-veil-64) 68%,
    var(--nav-wall-veil-00) 100%);
}
.wall-stage::after {
  bottom: 0;
  background: linear-gradient(0deg,
    var(--nav-wall-edge) 0%,
    var(--nav-wall-edge) 18%,
    var(--nav-wall-veil) 44%,
    var(--nav-wall-veil-64) 68%,
    var(--nav-wall-veil-00) 100%);
}

.wall-row {
  position: relative;
  flex: 0 0 auto;
  height: var(--wall-card-h);
}
/* 偶数行整体下移，和奇数行错开半张卡 */
.wall-row:nth-child(even) { transform: translateY(calc(var(--wall-gap) * .55)); }

.wall-track {
  display: flex;
  width: max-content;
  animation: wall-drift var(--dur, 56s) linear infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}
.wall-row.is-reverse .wall-track { animation-direction: reverse; }
.wall-row.is-offset .wall-track {
  margin-left: calc((var(--wall-card-w) + var(--wall-gap)) * -.5);
}
.wall-stage.is-paused .wall-track { animation-play-state: paused; }

.wall-group {
  display: flex;
  flex: 0 0 auto;
}

.wall-card {
  position: relative;
  flex: 0 0 var(--wall-card-w);
  width: var(--wall-card-w);
  height: var(--wall-card-h);
  margin-right: var(--wall-gap);
  overflow: hidden;
  border: 1px solid var(--nav-line-strong);
  border-radius: 9px;
  background-color: #15171A;
  background-size: cover;
  background-position: top center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .30);
  /* 预览图是 12fps 的动图 WebP。必须让每张卡独立成层：
     否则动图换帧会把整条 2976px 的传送带一起重绘（120 张图 × 12fps），
     表现为卡片里的动画明显掉帧。独立成层后每次只重绘 104×140。 */
  will-change: transform;
}
/* 行内再上下错开，形成二维交织 */
.wall-card:nth-child(odd) { transform: translateY(-5px); }
.wall-card:nth-child(even) { transform: translateY(5px); }
.wall-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 56%, rgba(0, 0, 0, .34) 100%);
}
.wall-card.is-noimg {
  background:
    radial-gradient(circle at 50% 34%, rgba(73, 175, 208, .20), transparent 58%),
    linear-gradient(160deg, #23262B, #15171A);
}

/* 中间遮罩：长距离多级渐隐，避免从黑区到卡片墙出现硬边 */
.wall-veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse 78% 70% at 50% 48%,
    var(--nav-wall-veil) 0%,
    var(--nav-wall-veil) 13%,
    var(--nav-wall-veil-80) 27%,
    var(--nav-wall-veil-64) 41%,
    var(--nav-wall-veil-42) 55%,
    var(--nav-wall-veil-20) 69%,
    var(--nav-wall-veil-00) 86%);
}
/* 文案区单独加一层柔光，保证小字在卡片上也清楚 */
.nav-hero-inner::before {
  content: "";
  position: absolute;
  inset: -60px -76px;
  z-index: -1;
  pointer-events: none;
  border-radius: 72px;
  background: radial-gradient(ellipse 64% 76% at 50% 50%,
    var(--nav-wall-veil) 0%,
    var(--nav-wall-veil-80) 40%,
    var(--nav-wall-veil-42) 66%,
    var(--nav-wall-veil-00) 100%);
  filter: blur(22px);
}

@keyframes wall-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------------- 移动端模型横条 ---------------- */
.nav-strip {
  display: none;
  padding: 6px 0 26px;
}
.nav-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--nav-faint);
}
.nav-strip-head span:first-child {
  color: var(--nav-muted);
  font-weight: 600;
  letter-spacing: .08em;
}
.nav-model-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 20px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}
.nav-model-strip::-webkit-scrollbar { display: none; }
.nav-strip-card {
  position: relative;
  flex: 0 0 92px;
  /* 20/27 正好裁掉预览图底部约 21% 的名字条，同时保留完整模型 */
  aspect-ratio: 20 / 27;
  overflow: hidden;
  scroll-snap-align: center;
  border: 1px solid var(--nav-line-strong);
  border-radius: 10px;
  background: #15171A;
}
.nav-strip-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.nav-strip-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 20px 6px 6px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78));
  color: #fff;
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.35;
}

/* ---------------- 通用区块 ---------------- */
.nav-section {
  position: relative;
  padding: 84px 0;
}
.nav-section + .nav-section { border-top: 1px solid var(--nav-line); }
.nav-section-official {
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent 62%);
}
.nav-section-more { padding: 56px 0 72px; }

.nav-section-head {
  max-width: 640px;
  margin-bottom: 34px;
}
.nav-kicker {
  margin: 0 0 10px;
  color: var(--nav-accent);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.nav-section-official .nav-kicker { color: var(--nav-green); }
.nav-section-head h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.nav-section-head p {
  margin: 0;
  color: var(--nav-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------------- 平行站卡片 ---------------- */
.nav-site-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.nav-site-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 172px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--nav-line);
  border-radius: 16px;
  background: var(--nav-panel);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--nav-shadow);
  color: var(--text);
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), border-color .28s ease, box-shadow .28s ease, background .28s ease;
}
.nav-site-card:hover {
  transform: translateY(-4px);
  border-color: rgba(73, 175, 208, .5);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .4);
  color: var(--text);
}
.nav-site-feature {
  grid-column: span 2;
  min-height: 260px;
  padding: 26px;
}
.nav-site-compact { grid-column: span 1; }
.nav-site-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 100%;
}
.nav-site-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--nav-accent-soft);
  color: var(--nav-accent);
}
.nav-site-icon svg { width: 21px; height: 21px; }
.nav-site-icon img { width: 26px; height: 26px; object-fit: contain; }
.nav-site-feature .nav-site-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 14px;
}
.nav-site-feature .nav-site-icon svg { width: 24px; height: 24px; }
.nav-site-feature .nav-site-icon img { width: 32px; height: 32px; }
.nav-site-joke .nav-site-icon {
  background: rgba(240, 180, 76, .12);
  color: #F0B44C;
}
.nav-site-preview {
  background: linear-gradient(135deg, rgba(73, 175, 208, .12) 0%, var(--nav-panel) 46%, var(--nav-panel) 100%);
}
.nav-site-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  padding: 3px 9px;
  border: 1px solid var(--nav-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--nav-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
.nav-site-badge.is-soon {
  border-color: rgba(240, 180, 76, .32);
  background: rgba(240, 180, 76, .10);
  color: #F0B44C;
}
.nav-site-badge.is-live {
  border-color: rgba(143, 217, 74, .30);
  background: rgba(143, 217, 74, .10);
  color: #8FD94A;
}
.nav-site-badge.is-building {
  border-color: rgba(108, 196, 224, .30);
  background: rgba(108, 196, 224, .10);
  color: #6CC4E0;
}
.nav-site-card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.nav-site-feature h3 {
  margin-bottom: 10px;
  font-size: 22px;
}
.nav-site-card p {
  max-width: 44ch;
  margin: 0;
  color: var(--nav-muted);
  font-size: 12.5px;
  line-height: 1.7;
}
.nav-site-feature p {
  max-width: 40ch;
  font-size: 13.5px;
  line-height: 1.75;
}
.nav-site-go {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--nav-accent);
  font-size: 12.5px;
  font-weight: 600;
}
.nav-site-go svg {
  width: 14px;
  height: 14px;
  transition: transform .2s ease;
}
.nav-site-card:hover .nav-site-go svg { transform: translateX(3px); }
.nav-site-card.is-coming { cursor: default; }
.nav-site-card.is-coming .nav-site-go { color: var(--nav-faint); }
.nav-site-card.is-coming:hover .nav-site-go svg { transform: none; }
.nav-site-card.is-coming::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(135deg, transparent 0 12px, rgba(255, 255, 255, .025) 12px 24px);
}
.nav-site-watermark {
  position: absolute;
  right: 14px;
  bottom: -22px;
  z-index: 0;
  color: rgba(255, 255, 255, .035);
  font-size: 112px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.nav-site-feature .nav-site-watermark {
  right: 18px;
  bottom: -30px;
  font-size: 150px;
}

/* ---------------- 官方信息 ---------------- */
.nav-panel.nav-announce-wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 16px;
}
.nav-panel.nav-announce-wide.has-media {
  grid-template-columns: minmax(0, 1fr) 300px;
}
.nav-announce-copy { min-width: 0; }
.nav-announce-media {
  width: 300px;
  max-width: 100%;
}
.nav-announce-img {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  object-position: center;
  border: 1px solid var(--nav-line);
  border-radius: 10px;
  background: rgba(0, 0, 0, .18);
}
.nav-announce-text {
  margin: 0 0 10px;
  color: var(--nav-muted);
  font-size: 12.5px;
  line-height: 1.8;
}
.nav-announce-text:last-child { margin-bottom: 0; }

.nav-official-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.nav-panel {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--nav-line);
  border-radius: 16px;
  background: var(--nav-panel);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--nav-shadow);
}
.nav-panel-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.nav-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.nav-panel-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--nav-accent-soft);
  color: var(--nav-accent);
}
.nav-panel-icon svg { width: 17px; height: 17px; }
.nav-panel-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 700;
}
.nav-panel-head .nav-badge { margin-left: auto; }
.nav-panel-note {
  margin: 14px 0 0;
  padding-top: 0;
  color: var(--nav-faint);
  font-size: 11px;
  line-height: 1.65;
}
.nav-panel-body .nav-panel-note { margin-top: auto; padding-top: 14px; }
.nav-empty {
  margin: 0;
  color: var(--nav-faint);
  font-size: 12.5px;
  line-height: 1.7;
}
.nav-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border: 1px solid var(--nav-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--nav-muted);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .03em;
  white-space: nowrap;
}
.nav-badge.is-live {
  border-color: rgba(143, 217, 74, .30);
  background: rgba(143, 217, 74, .10);
  color: #8FD94A;
}

/* 网盘 */
.nav-pan-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--nav-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
}
.nav-pan-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--nav-accent-soft);
  color: var(--nav-accent);
}
.nav-pan-icon svg { width: 20px; height: 20px; }
.nav-pan-main { min-width: 0; }
.nav-pan-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
.nav-pan-meta {
  margin-top: 3px;
  color: var(--nav-faint);
  font-size: 11px;
  line-height: 1.5;
}
.nav-pan-meta code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .07);
  color: var(--nav-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}
.nav-pan-actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
}

/* 交流群 */
.nav-group-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--nav-line);
}
.nav-group-row:first-child { padding-top: 0; }
.nav-group-row:last-of-type { padding-bottom: 0; border-bottom: none; }
.nav-group-type {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 20px;
  padding: 0 6px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
}
.nav-group-type.is-qq {
  background: rgba(108, 196, 224, .12);
  color: #6CC4E0;
}
.nav-group-type.is-other {
  background: rgba(196, 181, 253, .12);
  color: #C4B5FD;
}
.nav-group-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.nav-group-main strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-group-main span {
  color: var(--nav-faint);
  font-size: 10.5px;
  line-height: 1.4;
}

/* 域名 */
.nav-domain-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--nav-line);
}
.nav-domain-row:first-child { padding-top: 0; }
.nav-domain-row:last-of-type { padding-bottom: 0; border-bottom: none; }
.nav-domain-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.nav-domain-main strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-domain-main span {
  color: var(--nav-faint);
  font-size: 10.5px;
  line-height: 1.4;
}
.nav-domain-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

/* 小按钮 */
.nav-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--nav-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, .04);
  color: var(--nav-muted);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.nav-mini-btn:hover {
  border-color: var(--nav-line-strong);
  background: rgba(255, 255, 255, .07);
  color: var(--text);
}
.nav-mini-primary {
  border-color: transparent;
  background: var(--nav-green);
  color: #fff;
}
.nav-mini-primary:hover {
  border-color: transparent;
  background: #7FCC35;
  color: #fff;
}
.nav-mini-btn.is-copied {
  border-color: rgba(143, 217, 74, .35);
  background: rgba(143, 217, 74, .10);
  color: #8FD94A;
}

/* ---------------- 更多入口 ---------------- */
.nav-more {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.nav-more-head { min-width: 200px; }
.nav-more-head h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 750;
  letter-spacing: -.02em;
}
.nav-more-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nav-more-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid var(--nav-line);
  border-radius: 999px;
  background: var(--nav-panel);
  color: var(--nav-muted);
  font-size: 12.5px;
  transition: transform .2s, border-color .2s, color .2s, background .2s;
}
.nav-more-links a::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--nav-accent);
  opacity: .7;
}
.nav-more-links a:hover {
  transform: translateY(-2px);
  border-color: var(--nav-line-strong);
  background: var(--nav-panel-solid);
  color: var(--text);
}

/* ---------------- Toast ---------------- */
.nav-toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 3000;
  max-width: min(420px, calc(100vw - 32px));
  padding: 10px 16px;
  border: 1px solid var(--nav-line-strong);
  border-radius: 10px;
  background: rgba(20, 22, 26, .95);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity .25s ease, transform .25s ease;
}
.nav-toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------- 动画 ---------------- */
@keyframes nav-pulse {
  0%, 100% { opacity: .55; transform: scale(.82); }
  50% { opacity: 1; transform: scale(1); }
}
@keyframes nav-scroll-dot {
  0% { opacity: 0; transform: translateY(-3px); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}

/* =========================================================
   亮色主题：银白 / 灰白毛玻璃（仅 nav 页）
   ========================================================= */
html[data-theme="light"] .nav-page {
  --nav-panel: rgba(255, 255, 255, .62);
  --nav-panel-solid: rgba(255, 255, 255, .88);
  --nav-line: rgba(15, 23, 42, .10);
  --nav-line-strong: rgba(15, 23, 42, .16);
  --nav-muted: #5B6776;
  --nav-faint: #7B8796;
  --nav-accent: #127A9C;
  --nav-accent-soft: rgba(18, 122, 156, .10);
  --nav-green: #5C9F26;
  --nav-purple: #6D4BD8;
  --nav-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 30px rgba(15, 23, 42, .07);
  --nav-wall-veil: rgba(238, 241, 245, .90);
  --nav-wall-veil-80: rgba(238, 241, 245, .78);
  --nav-wall-veil-64: rgba(238, 241, 245, .64);
  --nav-wall-veil-42: rgba(238, 241, 245, .42);
  --nav-wall-veil-20: rgba(238, 241, 245, .20);
  --nav-wall-veil-00: rgba(238, 241, 245, 0);
  --nav-wall-edge: #EEF1F5;
}
html[data-theme="light"] .nav-hero::before {
  background:
    radial-gradient(720px 520px at 50% 28%, rgba(255, 255, 255, .96), transparent 64%),
    radial-gradient(560px 460px at 84% 16%, rgba(168, 192, 212, .40), transparent 68%),
    radial-gradient(520px 420px at 12% 84%, rgba(190, 206, 220, .36), transparent 68%);
}
html[data-theme="light"] .nav-hero-glow {
  background: radial-gradient(circle, rgba(255, 255, 255, .96) 0%, rgba(225, 234, 243, .55) 42%, transparent 70%);
  filter: blur(18px);
}
html[data-theme="light"] .nav-title-accent {
  background: linear-gradient(100deg, #0F6F8E 0%, #6D4BD8 54%, #4D8F1F 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
html[data-theme="light"] .nav-eyebrow-dot {
  box-shadow: 0 0 0 4px rgba(92, 159, 38, .14);
}
html[data-theme="light"] .nav-btn-primary {
  background: linear-gradient(180deg, #6CB02C, #589A22);
  box-shadow: 0 8px 20px rgba(92, 159, 38, .22);
}
html[data-theme="light"] .nav-btn-primary:hover {
  background: linear-gradient(180deg, #78BD33, #63A828);
  box-shadow: 0 12px 26px rgba(92, 159, 38, .28);
}
html[data-theme="light"] .nav-btn-ghost {
  background: rgba(255, 255, 255, .55);
  border-color: rgba(15, 23, 42, .12);
  color: #16202B;
}
html[data-theme="light"] .nav-btn-ghost:hover {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, .18);
  color: #16202B;
}
html[data-theme="light"] .nav-scroll-hint { border-color: rgba(15, 23, 42, .22); }
html[data-theme="light"] .nav-scroll-hint:hover { border-color: var(--nav-accent); }

html[data-theme="light"] .wall-card {
  border-color: rgba(15, 23, 42, .14);
  background-color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .13);
}
html[data-theme="light"] .wall-card.is-noimg {
  background:
    radial-gradient(circle at 50% 34%, rgba(18, 122, 156, .16), transparent 58%),
    linear-gradient(160deg, #F8FAFC, #E9EEF4);
}
html[data-theme="light"] .wall-card::after {
  background: linear-gradient(180deg, transparent 60%, rgba(15, 23, 42, .18) 100%);
}
html[data-theme="light"] .nav-strip-card {
  border-color: rgba(15, 23, 42, .12);
  background: #F7F9FB;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .10);
}

html[data-theme="light"] .nav-section-official {
  background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .08) 62%, transparent);
}
html[data-theme="light"] .nav-site-card {
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 30px rgba(15, 23, 42, .07);
}
html[data-theme="light"] .nav-site-card:hover {
  border-color: rgba(18, 122, 156, .35);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
}
html[data-theme="light"] .nav-site-preview {
  background: linear-gradient(135deg, rgba(18, 122, 156, .09) 0%, var(--nav-panel) 46%, var(--nav-panel) 100%);
}
html[data-theme="light"] .nav-site-card.is-coming::before {
  background-image: repeating-linear-gradient(135deg, transparent 0 12px, rgba(15, 23, 42, .022) 12px 24px);
}
html[data-theme="light"] .nav-site-watermark { color: rgba(15, 23, 42, .045); }
html[data-theme="light"] .nav-site-badge.is-soon {
  border-color: rgba(154, 100, 0, .28);
  background: rgba(240, 180, 76, .16);
  color: #9A6400;
}
html[data-theme="light"] .nav-site-badge.is-live {
  border-color: rgba(77, 143, 31, .28);
  background: rgba(92, 159, 38, .12);
  color: #4D8F1F;
}
html[data-theme="light"] .nav-site-badge.is-building {
  border-color: rgba(15, 111, 142, .26);
  background: rgba(18, 122, 156, .10);
  color: #0F6F8E;
}
html[data-theme="light"] .nav-site-joke .nav-site-icon {
  background: rgba(240, 180, 76, .16);
  color: #9A6400;
}
html[data-theme="light"] .nav-badge { background: rgba(255, 255, 255, .55); }
html[data-theme="light"] .nav-badge.is-live {
  border-color: rgba(77, 143, 31, .28);
  background: rgba(92, 159, 38, .12);
  color: #4D8F1F;
}
html[data-theme="light"] .nav-pan-item { background: rgba(255, 255, 255, .55); }
html[data-theme="light"] .nav-pan-meta code { background: rgba(15, 23, 42, .06); }
html[data-theme="light"] .nav-group-type.is-qq {
  background: rgba(18, 122, 156, .10);
  color: #0F6F8E;
}
html[data-theme="light"] .nav-group-type.is-other {
  background: rgba(109, 75, 216, .10);
  color: #6D4BD8;
}
html[data-theme="light"] .nav-mini-btn { background: rgba(255, 255, 255, .55); }
html[data-theme="light"] .nav-mini-btn:hover { background: #FFFFFF; }
html[data-theme="light"] .nav-mini-primary {
  background: linear-gradient(180deg, #6CB02C, #589A22);
  color: #fff;
}
html[data-theme="light"] .nav-mini-primary:hover {
  background: linear-gradient(180deg, #78BD33, #63A828);
  color: #fff;
}
html[data-theme="light"] .nav-announce-img {
  border-color: rgba(15, 23, 42, .12);
  background: #FFFFFF;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .10);
}
html[data-theme="light"] .nav-more-links a { background: rgba(255, 255, 255, .55); }
html[data-theme="light"] .nav-more-links a:hover { background: #FFFFFF; }
html[data-theme="light"] .nav-toast {
  border-color: rgba(15, 23, 42, .12);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
  color: #16202B;
}

/* =========================================================
   高对比度主题（仅 nav 页）
   ========================================================= */
html[data-theme="contrast"] .nav-page {
  --nav-panel: #101114;
  --nav-panel-solid: #000000;
  --nav-line: #6A6D72;
  --nav-line-strong: #8A8E94;
  --nav-muted: #D8D8D8;
  --nav-faint: #B8B8B8;
  --nav-accent: #6CC4E0;
  --nav-accent-soft: rgba(108, 196, 224, .18);
  --nav-green: #8FD94A;
  --nav-purple: #C4B5FD;
  --nav-shadow: none;
  --nav-wall-veil: rgba(11, 12, 14, .96);
  --nav-wall-veil-80: rgba(11, 12, 14, .84);
  --nav-wall-veil-64: rgba(11, 12, 14, .68);
  --nav-wall-veil-42: rgba(11, 12, 14, .44);
  --nav-wall-veil-20: rgba(11, 12, 14, .22);
  --nav-wall-veil-00: rgba(11, 12, 14, 0);
  --nav-wall-edge: #0B0C0E;
}
html[data-theme="contrast"] .nav-hero::before,
html[data-theme="contrast"] .nav-hero-glow,
html[data-theme="contrast"] .nav-site-watermark,
html[data-theme="contrast"] .nav-site-card.is-coming::before { display: none; }
html[data-theme="contrast"] .nav-title-accent {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: #8FD94A;
}
html[data-theme="contrast"] .nav-eyebrow-dot {
  background: #8FD94A;
  box-shadow: none;
  animation: none;
}
html[data-theme="contrast"] .nav-btn-primary {
  border-color: #8FD94A;
  background: #8FD94A;
  box-shadow: none;
  color: #000;
}
html[data-theme="contrast"] .nav-btn-primary:hover {
  background: #A6E86A;
  color: #000;
}
html[data-theme="contrast"] .nav-btn-ghost {
  border: 2px solid #8A8E94;
  background: #000;
  color: #FFF;
}
html[data-theme="contrast"] .nav-btn-ghost:hover {
  border-color: #FFF;
  background: #121316;
  color: #FFF;
}
html[data-theme="contrast"] .nav-scroll-hint { border-color: #8A8E94; }
html[data-theme="contrast"] .wall-card {
  border: 2px solid #8A8E94;
  background-color: #000;
  box-shadow: none;
}
html[data-theme="contrast"] .wall-card.is-noimg { background: #000; }
html[data-theme="contrast"] .wall-card::after { display: none; }
html[data-theme="contrast"] .nav-strip-card {
  border: 2px solid #8A8E94;
  background: #000;
  box-shadow: none;
}
html[data-theme="contrast"] .nav-section-official { background: transparent; }
html[data-theme="contrast"] .nav-site-card,
html[data-theme="contrast"] .nav-panel,
html[data-theme="contrast"] .nav-pan-item,
html[data-theme="contrast"] .nav-mini-btn,
html[data-theme="contrast"] .nav-more-links a {
  border-color: #6A6D72;
  background: #101114;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html[data-theme="contrast"] .nav-site-card:hover {
  border-color: #8FD94A;
  box-shadow: none;
}
html[data-theme="contrast"] .nav-site-preview { background: #101114; }
html[data-theme="contrast"] .nav-mini-primary {
  border-color: #8FD94A;
  background: #8FD94A;
  color: #000;
}
html[data-theme="contrast"] .nav-mini-primary:hover {
  background: #A6E86A;
  color: #000;
}
html[data-theme="contrast"] .nav-site-badge,
html[data-theme="contrast"] .nav-badge {
  border-color: #8A8E94;
  background: #000;
  color: #FFF;
}
html[data-theme="contrast"] .nav-site-badge.is-soon,
html[data-theme="contrast"] .nav-site-badge.is-live,
html[data-theme="contrast"] .nav-site-badge.is-building,
html[data-theme="contrast"] .nav-badge.is-live {
  border-color: #FFF;
  background: #000;
  color: #FFF;
}
html[data-theme="contrast"] .nav-group-type {
  border: 1px solid #8A8E94;
  background: #000;
  color: #FFF;
}
html[data-theme="contrast"] .nav-pan-meta code {
  border: 1px solid #8A8E94;
  background: #000;
  color: #FFF;
}
html[data-theme="contrast"] .nav-announce-img {
  border-color: #8A8E94;
  background: #000;
  box-shadow: none;
}
html[data-theme="contrast"] .nav-site-go { color: #8FD94A; }
html[data-theme="contrast"] .nav-site-card.is-coming .nav-site-go { color: #C0C0C0; }
html[data-theme="contrast"] .nav-toast {
  border: 2px solid #FFF;
  background: #000;
  box-shadow: none;
  color: #FFF;
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1150px) {
  .nav-title { font-size: clamp(40px, 5.2vw, 64px); }
}
@media (max-width: 1023px) {
  .wall-stage,
  .wall-veil,
  .nav-scroll-hint { display: none; }
  .nav-strip { display: block; }
  .nav-hero {
    min-height: auto;
    padding: 64px 0 48px;
  }
  .nav-hero-inner { max-width: 620px; }
  .nav-title { font-size: clamp(40px, 7vw, 58px); }
  .nav-section { padding: 68px 0; }
  .nav-section-more { padding: 48px 0 60px; }
  .nav-site-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-site-feature { grid-column: span 2; min-height: 220px; }
  .nav-site-compact { grid-column: span 1; }
  .nav-official-grid { grid-template-columns: 1fr; }
  .nav-announce-wide.has-media { grid-template-columns: minmax(0, 1fr) 260px; }
  .nav-announce-media { width: 260px; }
}
@media (max-width: 760px) {
  .nav-hero { padding: 48px 0 40px; }
  .nav-hero-inner { padding: 0 18px; }
  .nav-eyebrow { margin-bottom: 16px; font-size: 9.5px; letter-spacing: .15em; }
  .nav-title { font-size: clamp(38px, 10.5vw, 48px); margin-bottom: 16px; }
  .nav-lead { font-size: 14px; line-height: 1.8; }
  .nav-br { display: none; }
  .nav-hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 24px auto 0;
  }
  .nav-btn { width: 100%; }
  .nav-hero-stats { gap: 12px; margin-top: 22px; font-size: 11.5px; }
  .nav-stat-sep { display: none; }
  .nav-section { padding: 56px 0; }
  .nav-section-head { margin-bottom: 26px; }
  .nav-section-head h2 { font-size: 27px; }
  .nav-section-head p { font-size: 13px; }
  .nav-site-grid { grid-template-columns: 1fr; }
  .nav-site-feature,
  .nav-site-compact { grid-column: span 1; }
  .nav-site-feature { min-height: 200px; padding: 22px; }
  .nav-site-compact { min-height: 150px; }
  .nav-site-feature h3 { font-size: 20px; }
  .nav-site-feature .nav-site-watermark { font-size: 120px; }
  .nav-announce-wide.has-media { grid-template-columns: 1fr; gap: 18px; }
  .nav-announce-media { width: 100%; }
  .nav-announce-img { max-height: 220px; }
  .nav-panel { padding: 18px; }
  .nav-more { align-items: flex-start; }
  .nav-more-links { gap: 7px; }
  .nav-more-links a { padding: 8px 12px; font-size: 12px; }
  .nav-toast { bottom: 20px; }
}
@media (max-width: 520px) {
  .nav-section { padding: 48px 0; }
  .nav-strip-card { flex-basis: 84px; }
  .nav-group-row { gap: 8px; }
  .nav-group-main strong { font-size: 12px; }
  .nav-domain-row { gap: 8px; }
  .nav-domain-actions { gap: 5px; }
  .nav-mini-btn { padding: 0 9px; font-size: 11px; }
}

@media (min-width: 1024px) and (max-height: 700px) {
  .nav-hero { padding: 48px 0 64px; }
  .nav-title { font-size: clamp(40px, 4.8vw, 58px); }
  .nav-lead { font-size: 14px; }
  .nav-hero-actions { margin-top: 22px; }
  .nav-hero-stats { margin-top: 20px; }
  .nav-scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-eyebrow-dot,
  .nav-scroll-hint span { animation: none; }
  .wall-track { animation: none; }
  .wall-stage { transition: none; }
  .nav-site-card,
  .nav-btn,
  .nav-mini-btn,
  .nav-more-links a { transition: none; }
}
