/* =========================================================
   星际文明建设 - 浅色主题样式（2026-09-07 整站改白底浅色）
   ========================================================= */
:root {
  color-scheme: light;
  --bg-deep: #eef2f7;
  --bg-space-1: #f4f7fb;
  --bg-space-2: #e9eef5;
  --bg-card: #ffffff;
  --bg-card-solid: #ffffff;
  --border: rgba(71, 85, 105, 0.22);
  --border-glow: rgba(2, 132, 199, 0.45);
  --primary: #0284c7;
  --primary-strong: #0369a1;
  --accent: #7c3aed;
  --accent-2: #db2777;
  --gold: #d97706;
  --text: #0f172a;
  --text-dim: #475569;
  --text-faint: #64748b;
  --danger: #dc2626;
  --success: #059669;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 23, 42, 0.10);
  --font: "Segoe UI", "Microsoft YaHei", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 50% -18%, rgba(96, 165, 250, 0.42) 0, rgba(37, 99, 235, 0.18) 20%, transparent 46%),
    radial-gradient(circle at 12% 16%, rgba(34, 211, 238, 0.24) 0, transparent 36%),
    radial-gradient(circle at 86% 20%, rgba(167, 139, 250, 0.26) 0, transparent 34%),
    radial-gradient(ellipse at 50% 116%, rgba(56, 189, 248, 0.3) 0%, rgba(15, 23, 42, 0.28) 24%, transparent 54%),
    linear-gradient(160deg, var(--bg-space-2) 0%, var(--bg-space-1) 42%, var(--bg-deep) 100%);
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  /* 用 clip 而非 hidden：hidden 会把 body 变成滚动容器，破坏 .navbar 的 position:sticky */
  overflow-x: clip;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}
body::before {
  z-index: -3;
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(56, 189, 248, 0.16) 28%, rgba(167, 139, 250, 0.1) 39%, transparent 56% 100%),
    linear-gradient(65deg, transparent 0 34%, rgba(244, 114, 182, 0.11) 48%, rgba(34, 211, 238, 0.1) 58%, transparent 74% 100%),
    radial-gradient(ellipse at 18% 28%, rgba(14, 165, 233, 0.34) 0%, rgba(14, 165, 233, 0.12) 25%, transparent 52%),
    radial-gradient(ellipse at 76% 34%, rgba(168, 85, 247, 0.3) 0%, rgba(168, 85, 247, 0.1) 27%, transparent 56%),
    radial-gradient(ellipse at 52% 78%, rgba(244, 114, 182, 0.18) 0%, transparent 50%),
    conic-gradient(from 210deg at 50% 48%, transparent 0 18%, rgba(56, 189, 248, 0.12) 22%, transparent 30% 54%, rgba(167, 139, 250, 0.12) 60%, transparent 68% 100%);
  filter: saturate(1.45) blur(0.2px);
  opacity: 0.95;
}
body::after {
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 108%, transparent 0 45%, rgba(56, 189, 248, 0.28) 46%, rgba(167, 139, 250, 0.08) 49%, transparent 54%),
    radial-gradient(ellipse at 78% 22%, transparent 0 36%, rgba(125, 211, 252, 0.18) 36.5%, transparent 38.5%, transparent 45%, rgba(167, 139, 250, 0.12) 45.5%, transparent 47%),
    linear-gradient(148deg, transparent 0 42%, rgba(125, 211, 252, 0.18) 42.2%, transparent 43.4%, transparent 100%),
    linear-gradient(28deg, transparent 0 58%, rgba(244, 114, 182, 0.12) 58.2%, transparent 59.2%, transparent 100%),
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 10%, transparent 0 34%, rgba(2, 6, 23, 0.18) 76%, rgba(0, 0, 0, 0.42) 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 72px 72px, 72px 72px, 100% 100%;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.72), rgba(0,0,0,.18) 62%, rgba(0,0,0,.54));
}

/* 星空背景动画 */
.stars, .twinkling {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.stars::before,
.stars::after,
.twinkling::before,
.twinkling::after {
  position: fixed;
  pointer-events: none;
  user-select: none;
}
.stars::before {
  content: '';
  left: 7vw;
  top: 24vh;
  width: clamp(76px, 10vw, 148px);
  height: clamp(18px, 2.4vw, 32px);
  opacity: 0.46;
  transform: rotate(-16deg);
  border-radius: 58% 18% 18% 58% / 55% 45% 45% 55%;
  background:
    linear-gradient(90deg, rgba(226,232,240,.18) 0 10%, transparent 10% 18%, rgba(226,232,240,.72) 18% 42%, rgba(125,211,252,.42) 43% 55%, rgba(30,41,59,.62) 56% 100%),
    radial-gradient(ellipse at 34% 45%, rgba(255,255,255,.9) 0 7%, transparent 8%);
  box-shadow:
    -26px 2px 26px rgba(56,189,248,.16),
    0 0 28px rgba(125,211,252,.28);
  clip-path: polygon(0 50%, 16% 18%, 55% 15%, 100% 50%, 55% 85%, 16% 82%);
  animation: spacecraftFloat 18s ease-in-out infinite;
}
.stars::after {
  content: '';
  right: 8vw;
  top: 18vh;
  width: clamp(86px, 11vw, 150px);
  height: clamp(48px, 6vw, 82px);
  opacity: 0.44;
  transform: rotate(13deg);
  background:
    linear-gradient(90deg, rgba(96,165,250,.35) 0 26%, transparent 26% 36%, rgba(226,232,240,.76) 36% 49%, transparent 49% 58%, rgba(96,165,250,.35) 58% 100%),
    linear-gradient(0deg, transparent 0 42%, rgba(226,232,240,.62) 43% 57%, transparent 58% 100%);
  border-left: 1px solid rgba(125,211,252,.42);
  border-right: 1px solid rgba(125,211,252,.42);
  box-shadow: 0 0 26px rgba(125,211,252,.28);
  clip-path: polygon(0 18%, 25% 18%, 25% 0, 33% 0, 33% 100%, 25% 100%, 25% 82%, 0 82%, 0 18%, 100% 18%, 100% 82%, 68% 82%, 68% 100%, 60% 100%, 60% 0, 68% 0, 68% 18%);
  animation: satelliteOrbit 22s ease-in-out infinite;
}
.twinkling::before {
  content: '';
  right: 14vw;
  bottom: 18vh;
  width: clamp(34px, 4.8vw, 68px);
  height: clamp(62px, 8vw, 112px);
  opacity: 0.34;
  transform: rotate(8deg);
  background:
    radial-gradient(circle at 50% 18%, rgba(226,232,240,.72) 0 16%, rgba(15,23,42,.64) 17% 24%, transparent 25%),
    linear-gradient(90deg, transparent 0 25%, rgba(226,232,240,.42) 26% 40%, transparent 41% 59%, rgba(226,232,240,.42) 60% 74%, transparent 75% 100%),
    linear-gradient(180deg, transparent 0 30%, rgba(226,232,240,.58) 31% 66%, rgba(96,165,250,.24) 67% 100%);
  border-radius: 45% 45% 38% 38%;
  box-shadow: 0 0 26px rgba(226,232,240,.18), 0 0 44px rgba(56,189,248,.18);
  clip-path: polygon(34% 0, 66% 0, 78% 24%, 100% 38%, 83% 52%, 70% 43%, 68% 100%, 54% 100%, 50% 70%, 46% 100%, 32% 100%, 30% 43%, 17% 52%, 0 38%, 22% 24%);
  animation: astronautDrift 26s ease-in-out infinite;
}
.twinkling::after {
  content: '';
  left: -8vw;
  bottom: -18vh;
  width: min(46vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.55;
  background:
    radial-gradient(circle at 38% 32%, rgba(255,255,255,.36) 0 1.5%, transparent 2.2%),
    radial-gradient(circle at 62% 24%, rgba(125,211,252,.22) 0 2%, transparent 3%),
    radial-gradient(circle at 48% 46%, rgba(167,139,250,.16) 0 3%, transparent 4%),
    radial-gradient(circle at 42% 36%, rgba(56,189,248,.34), rgba(30,64,175,.22) 35%, rgba(15,23,42,.08) 62%, transparent 72%);
  box-shadow:
    inset -30px -24px 60px rgba(0,0,0,.5),
    0 0 48px rgba(56,189,248,.32),
    0 0 120px rgba(167,139,250,.18);
  animation: planetGlow 16s ease-in-out infinite;
}
.stars {
  background:
    radial-gradient(1px 1px at 8% 18%, rgba(255,255,255,.95), transparent 60%),
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(186,230,253,.95), transparent 62%),
    radial-gradient(1px 1px at 33% 72%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1.8px 1.8px at 47% 12%, rgba(221,214,254,.95), transparent 64%),
    radial-gradient(1.2px 1.2px at 58% 38%, rgba(255,255,255,.85), transparent 62%),
    radial-gradient(2.2px 2.2px at 70% 78%, rgba(165,243,252,.95), transparent 65%),
    radial-gradient(1px 1px at 82% 24%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(1.6px 1.6px at 91% 62%, rgba(251,207,232,.9), transparent 64%),
    radial-gradient(1px 1px at 12% 86%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(2px 2px at 50% 50%, rgba(255,255,255,.8), transparent 64%),
    radial-gradient(1px 1px at 26% 8%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.3px 1.3px at 88% 88%, rgba(186,230,253,.88), transparent 64%);
  background-repeat: repeat;
  background-size: 360px 360px;
  opacity: 0.98;
  animation: twinkle 7s ease-in-out infinite;
}
.twinkling {
  background:
    radial-gradient(2px 2px at 18% 44%, rgba(125, 211, 252, .98), transparent 58%),
    radial-gradient(1.5px 1.5px at 35% 22%, rgba(255, 255, 255, .82), transparent 60%),
    radial-gradient(2.5px 2.5px at 63% 40%, rgba(251, 207, 232, .92), transparent 64%),
    radial-gradient(1.5px 1.5px at 72% 18%, rgba(221, 214, 254, .95), transparent 62%),
    radial-gradient(2px 2px at 82% 70%, rgba(165, 243, 252, .9), transparent 64%);
  background-repeat: repeat;
  background-size: 520px 520px;
  opacity: 0.88;
  animation: drift 55s linear infinite, shimmer 9s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.68; filter: brightness(0.96); }
  50% { opacity: 1; filter: brightness(1.22); }
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-120px, -900px, 0); }
}
@keyframes shimmer {
  0%, 100% { opacity: 0.46; }
  45% { opacity: 0.8; }
  70% { opacity: 0.58; }
}
@keyframes spacecraftFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-18deg); opacity: 0.28; }
  45% { transform: translate3d(34px, -22px, 0) rotate(-12deg); opacity: 0.48; }
  70% { transform: translate3d(18px, 12px, 0) rotate(-20deg); opacity: 0.36; }
}
@keyframes satelliteOrbit {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(14deg); opacity: 0.3; }
  50% { transform: translate3d(-28px, 24px, 0) rotate(24deg); opacity: 0.5; }
}
@keyframes astronautDrift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(8deg); opacity: 0.24; }
  50% { transform: translate3d(-24px, -34px, 0) rotate(-8deg); opacity: 0.42; }
}
@keyframes planetGlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.46; }
  50% { transform: translate3d(1vw, -1vh, 0) scale(1.03); opacity: 0.64; }
}

/* =========================================================
   真实背景元素层：火箭 / 飞船（透明 PNG）+ 喷射火焰动画
   ========================================================= */
.bg-rocket, .bg-ship {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}
/* ---- 火箭：左下角，头朝上尾朝下，火焰向下喷射 ---- */
.bg-rocket {
  left: 2vw;
  bottom: 4vh;
  width: clamp(72px, 9vw, 150px);
  aspect-ratio: 89 / 211;   /* ⚠️ 必须与 PNG 尺寸一致（2026-08-29 裁掉自带火焰后 102x288 → 89x211），否则 contain 垂直居中留白 → 火焰浮在喷口下方 */
  background: url('/img/bg-elements-png/rocket.png') center / contain no-repeat;
  opacity: 0.7;
  animation: rocketHover 9s ease-in-out infinite;
}
/* 火焰 = 尾部短火焰（火箭头朝上、喷口在底部）：
   PNG 只含火箭本体（无火焰），火焰由 CSS 从喷口向下喷出。
   动画用 scaleY（transform-origin 锚定在喷口/顶部）→ 靠近喷口的焰心稳定不动，
   越往远端火焰越伸缩闪烁（模拟真实喷射：根部稳、外焰抖） */
.bg-rocket::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;                     /* 火焰顶端紧贴火箭喷口（容器底边）向下喷 */
  width: 26%;                    /* 窄锥形，比火箭身窄 */
  height: 8%;                   /* 短火焰 */
  transform: translateX(-50%);
  transform-origin: 50% 0;       /* 锚定喷口(顶部)：缩放时根部不动、远端伸缩 */
  background:
    radial-gradient(ellipse at 50% 82%, rgba(255,255,255,.98) 0 18%, rgba(255,224,130,.9) 34%, rgba(255,160,50,.6) 58%, transparent 82%),
    linear-gradient(180deg, transparent 0%, #fff8dc 15%, #ffd75e 40%, #ff9830 65%, rgba(255,90,30,.35) 85%, transparent 100%);
  clip-path: polygon(50% 0, 8% 80%, 24% 100%, 76% 100%, 92% 80%);   /* 尖头朝下 */
  filter: blur(0.4px) drop-shadow(0 0 4px rgba(255,160,50,.8));
  animation: rocketFlame 0.22s ease-in-out infinite;
}
/* 尾部橙色柔光（短、弱，从喷口向下扩散，同样锚定喷口） */
.bg-rocket::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 40%;
  height: 8%;                  /* 短柔光 */
  transform: translateX(-50%);
  transform-origin: 50% 0;
  background: radial-gradient(ellipse at 50% 88%, rgba(255,180,70,.55) 0%, rgba(255,140,40,.22) 45%, transparent 75%);
  filter: blur(5px);
  animation: rocketGlow 0.5s ease-in-out infinite;
}
@keyframes rocketHover {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  45% { transform: translate3d(10px, -14px, 0) rotate(2deg); }
  72% { transform: translate3d(-6px, 6px, 0) rotate(-1.5deg); }
}
@keyframes rocketFlame {
  0%   { opacity: .85; transform: translateX(-50%) scaleY(1); }
  35%  { opacity: 1;   transform: translateX(-50%) scaleY(1.65); }
  70%  { opacity: .9;  transform: translateX(-50%) scaleY(1.2); }
  100% { opacity: .85; transform: translateX(-50%) scaleY(1); }
}
@keyframes rocketGlow {
  0%, 100% { opacity: .35; transform: translateX(-50%) scaleY(1); }
  50%      { opacity: .7;  transform: translateX(-50%) scaleY(1.4); }
}

/* ---- 飞船：右上，头朝右尾朝左，火焰向后（右）喷射 ---- */
.bg-ship {
  right: 3vw;
  top: 22vh;
  width: clamp(96px, 12vw, 190px);
  aspect-ratio: 643 / 492;
  background: url('/img/bg-elements-png/starship.png') center / contain no-repeat;
  opacity: 0.66;
  animation: shipCruise 13s ease-in-out infinite;
}
/* 飞船喷口在左下角（斜飞姿态，头右上尾左下），火焰从喷口向下喷、短促；
   同样锚定喷口(顶部)用 scaleY：焰心稳、远端闪烁 */
.bg-ship::before {
  content: '';
  position: absolute;
  left: 8.6%;                    /* 飞船喷口水平位置（x≈55/643） */
  top: 100%;                     /* 火焰顶端紧贴飞船喷口（容器底边）向下喷 */
  width: 30%;
  height: 8%;                   /* 短火焰 */
  transform: translateX(-50%);
  transform-origin: 50% 0;
  background:
    radial-gradient(ellipse at 50% 82%, rgba(255,255,255,.95) 0 16%, rgba(186,230,253,.85) 32%, rgba(56,189,248,.55) 60%, transparent 82%),
    linear-gradient(180deg, transparent 0%, #f0fbff 15%, #bae6fd 40%, #38bdf8 65%, rgba(14,165,233,.35) 85%, transparent 100%);
  clip-path: polygon(50% 0, 10% 82%, 26% 100%, 74% 100%, 90% 82%);   /* 尖头朝下 */
  filter: blur(0.4px) drop-shadow(0 0 4px rgba(56,189,248,.8));
  animation: shipFlame 0.3s ease-in-out infinite;
}
.bg-ship::after {
  content: '';
  position: absolute;
  left: 8.6%;
  top: 100%;
  width: 42%;
  height: 8%;                  /* 短柔光 */
  transform: translateX(-50%);
  transform-origin: 50% 0;
  background: radial-gradient(ellipse at 50% 88%, rgba(125,211,252,.5) 0%, rgba(56,189,248,.2) 45%, transparent 75%);
  filter: blur(5px);
  animation: shipGlow 0.7s ease-in-out infinite;
}
@keyframes shipCruise {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(13deg); opacity: .56; }
  50% { transform: translate3d(-30px, 22px, 0) rotate(20deg); opacity: .76; }
}
@keyframes shipFlame {
  0%   { opacity: .8;  transform: translateX(-50%) scaleY(1); }
  40%  { opacity: 1;   transform: translateX(-50%) scaleY(1.7); }
  70%  { opacity: .88; transform: translateX(-50%) scaleY(1.2); }
  100% { opacity: .8;  transform: translateX(-50%) scaleY(1); }
}
@keyframes shipGlow {
  0%, 100% { opacity: .3;  transform: translateX(-50%) scaleY(1); }
  50%      { opacity: .68; transform: translateX(-50%) scaleY(1.45); }
}

/* 移动端/APP 极速模式：旧版 Android WebView 渲染固定渐变动画会持续占用 CPU */
@media (hover: none), (pointer: coarse) {
  html { scroll-behavior: auto; }
  body::before { filter: none; opacity: 0.82; }
  body::after { background-size: 96px 96px, 96px 96px, 100% 100%; opacity: 0.75; }
  .stars { animation: none !important; opacity: 0.72; }
  .stars::before,
  .stars::after {
    animation: none !important;
    opacity: 0.24;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.35));
  }
  .twinkling { display: none !important; animation: none !important; }
  .twinkling::before,
  .twinkling::after { display: none !important; animation: none !important; }
  .bg-rocket, .bg-ship { opacity: 0.4 !important; }
  .bg-rocket { animation: none !important; }
  .bg-ship { animation: none !important; }
  .bg-rocket::before,
  .bg-rocket::after,
  .bg-ship::before,
  .bg-ship::after { animation: none !important; }
  .bg-rocket::before { height: 8% !important; opacity: 0.7 !important; }
  .bg-ship::before { height: 8% !important; opacity: 0.7 !important; }
  .scan-line { display: none !important; animation: none !important; }
}

/* 顶部导航 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 24px;
  background: rgba(5, 10, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

/* 里程碑纪念碑入口（顶部右上角，公开可看） */
.navbar .navbar-right {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.navbar .monument-nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--gold);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  background: rgba(10, 18, 40, 0.6);
  transition: background 0.15s;
  white-space: nowrap;
}
.navbar .monument-nav-link:hover { background: rgba(56, 189, 248, 0.14); }

/* 🔔 未读红点（批C-⑤：navbar 铃铛右上角数字角标，纯提示不涉及星币） */
.navbar .nav-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 1px 4px rgba(239, 68, 68, 0.5);
  pointer-events: none;
  animation: navBadgePop 0.3s ease;
}
@keyframes navBadgePop {
  0% { transform: scale(0.4); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* 「使用简介」PDF 导航链接（与里程碑并列，所有页面/登录状态始终可见） */
.navbar .guide-nav-link { color: var(--link); }

/* 技术窗口底部的广告条 */
#adsBottom {
  display: none;
  margin-top: 18px;
  padding: 10px 14px;
  text-align: center;
  background: rgba(10, 18, 40, 0.6);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
}

/* 底部微信式 Tab 栏：固定在底部，始终显示（中间内容滚动） */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  display: flex;
  align-items: stretch;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: rgba(5, 10, 26, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.bottom-nav .bn-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 2px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 11px;
  border-radius: 10px;
  transition: color 0.15s;
  position: relative;
}
.bottom-nav .bn-link .bn-ico { font-size: 21px; line-height: 1.1; }
.bottom-nav .bn-link:hover { color: var(--text); }
.bottom-nav .bn-link.active { color: var(--primary); }
.bottom-nav .bn-link.active::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
/* 顶部头像（微信式标题栏右侧，已不再生成） */
.nav-avatar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid var(--border-glow);
  text-decoration: none;
  flex: none;
}
.nav-avatar-link .avatar-badge { width: 40px; height: 40px; font-size: 20px; }
.nav-login-ico { font-size: 20px; }
/* 「我的」页功能列表（微信“我”页 cell 样式） */
.me-menu {
  margin-top: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(10, 18, 40, 0.6);
}
.me-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s;
}
.me-cell:last-child { border-bottom: none; }
.me-cell:hover { background: rgba(56, 189, 248, 0.08); }
.me-cell .me-ico { font-size: 20px; width: 30px; text-align: center; flex: none; }
.me-cell .me-extra { margin-left: auto; color: var(--text-dim); font-size: 13px; }
.me-cell .me-arrow { margin-left: auto; color: var(--text-faint); font-size: 16px; }
.me-cell .me-extra + .me-arrow { margin-left: 8px; }
/* 「我的空间」用户头部（微信“我”页风格）：sticky 贴窗口最上边（导航下方），不随滚动条滚动 */
.me-head {
  position: sticky;
  top: var(--nav-h, 60px);
  z-index: 90;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 20px;
  /* 抵消容器顶部内边距：账户卡初始就贴到显示窗口最上边（导航正下方） */
  margin: calc(-1 * var(--container-pt, 24px)) calc(-1 * var(--container-px, 20px)) 16px;
}
.me-head-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  border: 2px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex: none;
}
.me-head-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.me-head-info b { font-size: 19px; color: var(--text); word-break: break-all; }
.me-head-info span { font-size: 13px; color: var(--text-dim); }
.me-head-info .me-head-id {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 20px;
  padding: 2px 10px;
  width: fit-content;
  margin-top: 2px;
  word-break: break-all;
}
/* 后台用户管理/最近注册：成员编号绿色徽章 */
.admin-member-id {
  display: inline-block;
  font-size: 12px;
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 6px;
  padding: 1px 6px;
  margin-top: 2px;
  word-break: break-all;
  font-weight: 600;
}
/* 我的动态窗口：顶部固定广告条（提到最上面，滚动不消失） */
.ads-top-fixed {
  position: sticky;
  top: 60px;
  z-index: 80;
  padding: 8px 12px;
  background: rgba(10, 18, 40, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.ads-top-fixed .ad-top {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
/* 内容底部留白，避免被固定底部导航遮挡 */
body { padding-bottom: 64px; }

/* APP下载横幅 */
.app-download-bar {
  position: sticky;
  top: 0;
  z-index: 99;
  background: linear-gradient(135deg, #0c1445 0%, #1a1050 50%, #0d1b3e 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  padding: 2px 10px;
  animation: slideDown 0.4s ease-out;
  box-shadow: 0 2px 20px rgba(56, 189, 248, 0.15);
}
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.app-download-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
}
.app-download-icon {
  display: none;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.app-download-text {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.app-download-text strong {
  font-size: 11px;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-download-text small { display: none; }
.app-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
  color: #fff;
  box-shadow: 0 0 18px rgba(14, 165, 233, 0.5);
  transition: all 0.2s;
}
.app-download-btn:hover {
  box-shadow: 0 0 28px rgba(14, 165, 233, 0.7);
  transform: translateY(-1px);
}
.app-download-actions {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .app-download-actions { gap: 4px; flex-wrap: nowrap; }
  .app-download-btn { padding: 1px 7px; font-size: 10px; }
  .app-download-icon { display: none; }
  .app-download-text small { display: none; }
}
.app-download-close {
  background: none;
  border: none;
  color: rgba(148, 163, 184, 0.6);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 6px;
  flex-shrink: 0;
  transition: all 0.2s;
  line-height: 1;
}
.app-download-close:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}
.brand .logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.8));
  flex-shrink: 0;
}
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(56, 189, 248, 0.12); }
.nav-links a.active {
  color: var(--primary);
  background: rgba(56, 189, 248, 0.15);
  box-shadow: inset 0 0 0 1px var(--border-glow);
}

/* 用户导航胶囊 */
.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: linear-gradient(135deg, rgba(56,189,248,.25), rgba(167,139,250,.25));
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}
.nav-user-info {
  line-height: 1.2;
}
.nav-user-info strong { font-size: 13px; display: block; }
.nav-user-info span { font-size: 11px; color: var(--text-dim); }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary);
  border: 1px solid var(--border-glow);
}
.btn:hover {
  background: rgba(56, 189, 248, 0.3);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #04121f;
  font-weight: 700;
  border: none;
}
.btn-primary:hover { box-shadow: 0 0 22px rgba(56, 189, 248, 0.6); }
.btn-ghost { background: transparent; }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff;
  border: none;
}
.btn-danger {
  background: rgba(248, 113, 113, 0.12);
  color: var(--danger);
  border-color: rgba(248, 113, 113, 0.4);
}
.btn-danger:hover { background: rgba(248, 113, 113, 0.25); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* 布局容器 */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  --container-pt: 24px;
  --container-px: 20px;
  display: grid;
  /* minmax(0,1fr)：禁用 grid 轨道 auto 最小尺寸（min-content），
     防止子元素 width:max-content（如实时动态滚动条 act-track 15570px）
     把主列撑爆成整页横向溢出（桌面 1440px 曾出现 15821px 宽） */
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}
.container.single { grid-template-columns: 1fr; max-width: 720px; }
.container.two-col { grid-template-columns: 1fr; }

/* 卡片 */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.card + .card { margin-top: 18px; }
.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

/* 输入框 */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.input, .textarea, select.input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(8, 14, 34, 0.8);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: all 0.2s;
}
.input:focus, .textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}
.textarea { resize: vertical; min-height: 90px; }
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }

/* 提示消息 */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  z-index: 999;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.ok { background: #052e1e; border: 1px solid var(--success); color: var(--success); }
.toast.err { background: #3d0a0a; border: 1px solid var(--danger); color: var(--danger); }
.toast.warn { background: #3d2f0a; border: 1px solid var(--warning, #f59e0b); color: var(--warning, #fbbf24); }

/* 表单卡片页（登录/注册） */
.auth-wrap {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
}
.auth-title {
  text-align: center;
  margin-bottom: 6px;
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-sub {
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 24px;
}
.auth-logo {
  text-align: center;
  margin-bottom: 16px;
}
.auth-logo img {
  width: 92px;
  height: 92px;
  border-radius: 20px;
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.45);
}
.auth-switch {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-dim);
}
.auth-switch a { color: var(--primary); text-decoration: none; }

/* 登录方式切换 */
.auth-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
}
.auth-tab {
  flex: 1;
  padding: 9px 0;
  border: none;
  background: transparent;
  border-radius: 9px;
  color: var(--text-dim);
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 600;
}

/* 手机验证码 */
.sms-row {
  display: flex;
  gap: 8px;
}
.sms-row .input { flex: 1; min-width: 0; }
.sms-row .btn { white-space: nowrap; }
.auth-note {
  text-align: center;
  color: var(--text-faint);
  font-size: 12px;
  margin-top: 10px;
}

/* 安全警告横幅 */
.alert {
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.08);
  color: #fbbf24;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
}

/* 头像选择 */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}
.avatar-option {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 22px;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  background: rgba(56, 189, 248, 0.08);
  transition: all 0.15s;
}
.avatar-option:hover { background: rgba(56, 189, 248, 0.2); }
.avatar-option.selected {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  transform: scale(1.1);
}

/* 动态帖子 */
.post {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(10, 18, 40, 0.6);
}
.post + .post { margin-top: 14px; }
.post-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.post-head .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: linear-gradient(135deg, rgba(56,189,248,.2), rgba(167,139,250,.2));
  border: 1px solid var(--border-glow);
  flex-shrink: 0;
}
.post-head .meta { flex: 1; line-height: 1.3; }
.post-head .meta a { color: var(--text); text-decoration: none; font-weight: 600; }
.post-head .meta a:hover { color: var(--primary); }
.post-head .meta .civilization { font-size: 12px; color: var(--accent); }
.post-head .time { font-size: 12px; color: var(--text-faint); }
/* 动态卡片作者关注按钮 */
.follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 3px 11px;
  font-size: 12px;
  border-radius: 20px;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  vertical-align: middle;
  transition: all 0.2s;
}
.follow-btn:hover { background: rgba(56, 189, 248, 0.12); }
.follow-btn.following {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.05);
}
.follow-btn.following:hover { color: #ff6b81; border-color: #ff6b81; background: rgba(255, 107, 129, 0.1); }
.follow-btn:disabled { opacity: 0.6; cursor: default; }
/* 安全中心（防黑客攻击系统） */
.sec-badge {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  white-space: nowrap;
}
.admin-table code {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 12px;
}
.text-faint { color: var(--text-faint); }
.post-content {
  font-size: 15px;
  line-height: 1.7;
  word-break: break-word;
  white-space: pre-wrap;
  margin-bottom: 10px;
}
/* 动态中的媒体附件（图片 / 视频 / 音频）— 统一小缩略图（宽2.5cm×高3cm）+ 点击放大 */
.post-media {
  display: block;
  max-width: 100%;
  margin: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b1020;
}
/* 图片 / 视频统一小方块（宽2.5cm×高3cm），多图并排，点击放大 */
.media-box {
  position: relative;
  display: inline-block;
  vertical-align: top;
  margin: 6px 6px 0 0;
  width: 2.5cm;
  height: 3cm;
  border-radius: 8px;
  overflow: hidden;
  background: #0b1020;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}
.media-box .post-media {
  width: 100%;
  height: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  object-fit: cover;
}
img.post-media { display: block; cursor: zoom-in; }
video.post-media { display: block; background: #000; cursor: pointer; }
audio.post-media { width: 100%; height: 44px; margin: 8px 0; }

/* 文件（PDF/Word/Excel/PPT/TXT 等）下载卡片 */
.media-file-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 6px 0 0;
  padding: 8px 12px;
  max-width: 100%;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  color: var(--text, #dfe6f0);
  text-decoration: none;
  vertical-align: top;
  transition: border-color 0.15s, background 0.15s;
}
.media-file-card:hover {
  border-color: rgba(56, 189, 248, 0.6);
  background: rgba(56, 189, 248, 0.08);
}
.media-file-icon { font-size: 22px; line-height: 1; flex: none; }
.media-file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.media-file-dl {
  flex: none;
  font-size: 12px;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 6px;
  padding: 2px 8px;
}

/* 技术作者资料管理：媒体项上的删除按钮 + 文件/音频包装 */
.media-del-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.12s, background 0.12s;
}
.media-del-btn:hover { background: #ef4444; transform: scale(1.1); }
.media-del-btn:active { transform: scale(0.92); }
.media-file-wrap, .media-audio-wrap {
  position: relative;
  display: inline-block;
  vertical-align: top;
  margin: 6px 6px 0 0;
}
.media-file-wrap .media-del-btn, .media-audio-wrap .media-del-btn { position: absolute; top: -8px; right: -8px; }
/* 音频播放器：父级撑满整行，避免 inline-block + width:100% 循环依赖导致宽度塌缩成 2px 不可见 */
.media-audio-wrap {
  display: block;
  width: 100%;
  max-width: 560px;
}
.media-audio-wrap audio { width: 100%; margin: 0; display: block; }

/* 纯文本资料卡片（技术作者输入的文字说明/笔记） */
.media-text-wrap {
  position: relative;
  display: inline-block;
  vertical-align: top;
  margin: 6px 6px 0 0;
  max-width: 100%;
}
.media-text-wrap .media-del-btn { position: absolute; top: -8px; right: -8px; }
.media-text-card {
  display: inline-block;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  color: var(--text, #dfe6f0);
  vertical-align: top;
}
.media-text-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.media-text-ico { font-size: 16px; line-height: 1; }
.media-text-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary, #38bdf8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-text-body {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text, #dfe6f0);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow-y: auto;
}

/* 技术详情 - 资料管理区块 */
.tech-detail-media { margin-top: 26px; }
.tech-detail-media h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
}
.tech-detail-media .media-row { display: flex; flex-wrap: wrap; align-items: flex-start; }
.tech-manage {
  padding: 16px 18px;
  border: 1px dashed rgba(56, 189, 248, 0.4);
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.04);
}
.tech-manage-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tech-manage .btn-sm { padding: 6px 14px; font-size: 13px; }

/* 视频播放角标（封面中央，点击放大播放） */
.media-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* 视频放大按钮（右上角） */
.media-zoom-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: rgba(5, 10, 26, 0.72);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}
.media-box:hover .media-zoom-btn { opacity: 1; }
.media-zoom-btn:active { transform: scale(0.92); }

/* ===== 媒体 Lightbox（点击放大：中间弹窗显示，保留上下导航条） ===== */
.lightbox {
  display: none;
  position: fixed;
  top: 68px;   /* 顶部导航条之下 */
  bottom: 56px; /* 底部工具栏/页脚之上 */
  left: 10px;
  right: 10px;
  z-index: 9999;
  background: rgba(2, 5, 14, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  align-items: center;
  justify-content: center;
}
/* 用 overflow-y:clip 而非 hidden：hidden 会使 sticky 导航条失效（导航条滚出屏幕） */
body.lb-open { overflow-y: clip; }
.lb-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  padding: 10px;
  min-height: 0;
}
/* 关键：媒体用 flex:none + 固有比例；用视口单位约束尺寸，保证不超出上下导航条边界（顶 ~68px + 底 ~56px） */
.lb-img, .lb-video {
  flex: none;
  width: auto;
  height: auto;
  max-width: calc(100vw - 36px);
  max-height: calc(100vh - 150px);
}
.lb-img {
  display: none;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.6);
}
.lb-video {
  display: none;
  border-radius: 6px;
  background: #000;
}
.lb-close, .lb-nav {
  position: absolute;
  z-index: 30; /* 置顶于视频 surface 之上，保证可点关闭 */
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-close {
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  font-size: 24px;
  line-height: 1;
}
.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  font-size: 28px;
  line-height: 1;
}
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, 0.18); }
.lb-counter {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: #cfd6e4;
  font-size: 14px;
  background: rgba(5, 10, 26, 0.6);
  padding: 5px 14px;
  border-radius: 20px;
}
/* 发布框媒体工具栏与预览 */
.media-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 4px;
}
.media-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0 4px;
}
.media-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: var(--text);
}
.media-chip img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.media-chip > span { font-size: 20px; }
.media-chip-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-chip-del {
  border: none;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
}
.media-chip-del:hover { color: #ff6b81; background: rgba(255, 107, 129, 0.12); }
.post-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
}
.action-btn:hover { background: rgba(56, 189, 248, 0.12); color: var(--primary); }
.action-btn.liked { color: var(--accent-2); }
.action-btn.liked svg { fill: var(--accent-2); }

/* 评论区 */
.comments { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.comment {
  display: flex;
  gap: 10px;
  padding: 8px 0;
}
.comment .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 17px;
  background: rgba(56,189,248,.15);
  flex-shrink: 0;
}
.comment .c-body { flex: 1; }
.comment .c-head { font-size: 12px; color: var(--text-dim); }
.comment .c-head a { color: var(--primary); text-decoration: none; font-weight: 600; }
.comment .c-text { font-size: 14px; line-height: 1.6; word-break: break-word; margin-top: 2px; }

/* 个人主页 */
.profile-hero {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(56,189,248,0.12), rgba(167,139,250,0.05));
  backdrop-filter: blur(8px);
}
.profile-banner {
  height: 120px;
  background:
    radial-gradient(circle at 20% 30%, rgba(56,189,248,.35), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(167,139,250,.3), transparent 50%),
    radial-gradient(circle at 60% 20%, rgba(244,114,182,.2), transparent 40%),
    #060d24;
}
.profile-info {
  padding: 0 24px 24px;
  position: relative;
  margin-top: -45px;
}
.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 50px;
  background: #0a1330;
  border: 3px solid var(--primary);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.5);
}
.profile-info h1 {
  font-size: 24px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.tag.gold { color: var(--gold); border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.08); }
.profile-bio { color: var(--text-dim); font-size: 14px; line-height: 1.7; margin-top: 8px; }
.profile-stats {
  display: flex;
  gap: 26px;
  margin-top: 16px;
}
.stat b { font-size: 20px; display: block; color: var(--text); }
.stat span { font-size: 12px; color: var(--text-dim); }
.profile-actions { display: flex; gap: 10px; margin-top: 16px; }

/* 留言板消息 */
.msg {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}
.msg:last-child { border-bottom: none; }
.msg .avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 21px;
  background: rgba(167,139,250,.15);
  flex-shrink: 0;
}
.msg .m-body { flex: 1; }
.msg .m-head { font-size: 12px; color: var(--text-dim); }
.msg .m-head a { color: var(--accent); text-decoration: none; font-weight: 600; }
.msg .m-text { font-size: 14px; line-height: 1.6; margin-top: 2px; word-break: break-word; }

/* 侧边栏 */
.sidebar { display: flex; flex-direction: column; gap: 18px; }
.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  backdrop-filter: blur(8px);
}
.widget h3 {
  font-size: 15px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-radius: 8px;
}
.rank-item:hover { background: rgba(56, 189, 248, 0.06); }
.rank-no {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.12);
  color: var(--primary);
  flex-shrink: 0;
}
.rank-no.gold { background: rgba(251,191,36,.18); color: var(--gold); }
.rank-avatar { font-size: 20px; }
.rank-name {
  flex: 1;
  min-width: 0;
}
.rank-name a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 13px; }
.rank-name a:hover { color: var(--primary); }
.rank-name small { display: block; font-size: 11px; color: var(--text-dim); }
.rank-followers { font-size: 12px; color: var(--gold); flex-shrink: 0; }

/* 🎮 文明成长系统（成长卡 / 成就墙 / 贡献榜） */
.growth-card {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.10), rgba(139, 92, 246, 0.10));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 14px;
  padding: 14px 16px;
}
.growth-card:hover { border-color: var(--primary); }
.growth-card-top { display: flex; align-items: center; justify-content: space-between; }
.growth-title { font-size: 15px; font-weight: 700; color: var(--text); }
.growth-lv { font-size: 12px; font-weight: 700; color: var(--gold); background: rgba(251,191,36,.16); padding: 2px 8px; border-radius: 999px; }
.growth-bar {
  height: 8px;
  background: rgba(56, 189, 248, 0.15);
  border-radius: 999px;
  overflow: hidden;
  margin: 9px 0 7px;
}
.growth-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #8b5cf6);
  border-radius: 999px;
  transition: width .4s ease;
}
.growth-card-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-dim); }
.growth-arrow { color: var(--primary); font-size: 12px; font-weight: 600; }
.growth-ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.growth-ach {
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  background: rgba(56, 189, 248, 0.05);
}
.growth-ach.locked { opacity: .5; filter: grayscale(1); }
.growth-ach-icon { font-size: 26px; }
.growth-ach-title { font-size: 13px; font-weight: 700; color: var(--text); margin-top: 4px; }
.growth-ach-desc { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.growth-ach-time { font-size: 11px; color: var(--gold); margin-top: 5px; }
.rank-item.mine { background: rgba(251,191,36,.10); border-radius: 8px; }

/* 🎆 升级动效（2026-09-16 批B：等级进度条 + 升级星光动画） */
.levelup-overlay {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(2,6,23,.72); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.levelup-overlay.show { opacity: 1; pointer-events: auto; }
.levelup-box {
  text-align: center; padding: 26px 40px; border-radius: 18px;
  background: linear-gradient(145deg, #0f172a, #1e293b);
  border: 2px solid rgba(251,191,36,.5); color: #fff;
  box-shadow: 0 0 60px rgba(251,191,36,.35);
  transform: scale(.8); transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.levelup-overlay.show .levelup-box { transform: scale(1); }
.levelup-title { font-size: 26px; font-weight: 800; color: #fbbf24; letter-spacing: 2px; }
.levelup-sub { font-size: 14px; color: #cbd5e1; margin-top: 6px; }
.levelup-stars { font-size: 30px; margin-top: 10px; letter-spacing: 4px; }
@keyframes twinkleStar { 0%,100% {opacity:.25; transform:scale(.8);} 50% {opacity:1; transform:scale(1.15);} }
.levelup-stars span { display:inline-block; animation: twinkleStar 1.2s ease-in-out infinite; }
.levelup-stars span:nth-child(2){ animation-delay:.15s; }
.levelup-stars span:nth-child(3){ animation-delay:.3s; }
.levelup-stars span:nth-child(4){ animation-delay:.45s; }
.levelup-stars span:nth-child(5){ animation-delay:.6s; }
.growth-bar-fill.animate { animation: fillGrow 1s ease; }
@keyframes fillGrow { 0% { width: 0; } }

/* 公告 */
.announcement {
  padding: 12px;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.25);
  margin-bottom: 10px;
}
.announcement h4 { font-size: 14px; color: var(--gold); margin-bottom: 6px; }
.announcement p { font-size: 13px; color: var(--text-dim); line-height: 1.7; }

/* 发布框 */
.composer textarea {
  min-height: 90px;
  margin-bottom: 10px;
}
.composer-foot { display: flex; justify-content: space-between; align-items: center; }
.char-count { font-size: 12px; color: var(--text-faint); }

/* 首页发布框：默认压缩成固定悬浮细条（只显示「🚀 发送广播」按钮），点击后展开输入区 */
#composerCard {
  position: sticky;
  top: 60px;
  z-index: 85;
  padding: 3px 12px !important;
}
#composerCard .card-title,
#composerCard textarea,
#composerCard .media-toolbar,
#composerCard .media-preview,
#composerCard .char-count {
  display: none;
}
#composerCard .composer-foot { justify-content: center; padding: 2px 0; }
#composerCard .composer-foot a[href$=".pdf"] { margin-right: 8px; white-space: nowrap; }
#composerCard.open .composer-foot a[href$=".pdf"] { margin-right: 0; }
#composerCard.open .card-title { display: block; }
#composerCard.open textarea { display: block; min-height: 70px; margin-bottom: 10px; }
#composerCard.open .media-toolbar { display: flex; }
#composerCard.open .media-preview { display: block; }
#composerCard.open .char-count { display: inline; }
#composerCard.open .composer-foot { justify-content: space-between; }

/* 首页游客登录提示：压缩成固定悬浮细条（约 1/6 高度，不随滚动，吸附导航下方） */
#loginPrompt {
  position: sticky;
  top: 60px;
  z-index: 85;
  padding: 2px 10px !important;
  margin-bottom: 10px;
}
#loginPrompt .empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 1px 0;
  flex-wrap: nowrap;
}
#loginPrompt .empty .big { display: none; }
#loginPrompt .empty p { margin: 0; font-size: 12px; line-height: 1.15; white-space: nowrap; }
#loginPrompt .empty p:first-of-type {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
#loginPrompt .empty p[style*="margin-top:14px"] { margin-top: 0 !important; display: flex; gap: 6px; flex-shrink: 0; }
#loginPrompt .btn { padding: 3px 10px; font-size: 12px; }
#loginPrompt .btn.btn-primary { padding: 3px 10px; }

/* 搜索 */
.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.search-bar .input { flex: 1; }

/* 用户列表 */
.user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
}
.user-row:hover { background: rgba(56, 189, 248, 0.06); }
.user-row .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 23px;
  background: rgba(56,189,248,.12);
  flex-shrink: 0;
}
.user-row .u-meta { flex: 1; min-width: 0; }
.user-row .u-meta a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
.user-row .u-meta a:hover { color: var(--primary); }
.user-row .u-meta small { display: block; color: var(--text-dim); font-size: 12px; }
.user-row .u-followers { font-size: 12px; color: var(--text-faint); flex-shrink: 0; }

/* 空状态 */
.empty {
  text-align: center;
  color: var(--text-faint);
  padding: 40px 10px;
  font-size: 14px;
}
.empty .big { font-size: 40px; display: block; margin-bottom: 10px; }

/* 页脚 */
.footer {
  text-align: center;
  padding: 20px;
  color: var(--text-faint);
  font-size: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-logo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  opacity: 0.85;
}

/* 标签页 */
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.tab {
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* 响应式 */
@media (max-width: 860px) {
  .container { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .brand small { display: none; }
}

/* =========================================================
   后台管理系统样式
   ========================================================= */
.admin-container { max-width: 1150px; grid-template-columns: 1fr; }
.admin-card { padding: 24px; }
.text-faint { color: var(--text-faint); font-size: 13px; }

/* 统计卡片 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stat-card {
  background: rgba(10, 18, 40, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.stat-card b { display: block; font-size: 28px; color: var(--primary); margin: 4px 0; }
.stat-card span { font-size: 12px; color: var(--text-dim); }
.stat-card .stat-ico { font-size: 24px; }
.stat-card.danger b { color: var(--danger); }

/* 管理表格 */
.table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th, .admin-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table th {
  color: var(--text-dim);
  font-weight: 600;
  background: rgba(56, 189, 248, 0.05);
  white-space: nowrap;
}
.admin-table tr:hover td { background: rgba(56, 189, 248, 0.04); }

/* 徽章 */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
}
.badge.ok { background: rgba(52, 211, 153, 0.12); color: var(--success); border: 1px solid rgba(52,211,153,.35); }
.badge.danger { background: rgba(248, 113, 113, 0.12); color: var(--danger); border: 1px solid rgba(248,113,113,.35); }

/* 广告位 */
.ad-top {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  text-align: center;
  background: linear-gradient(90deg, rgba(56,189,248,.12), rgba(167,139,250,.12), rgba(244,114,182,.12));
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  font-size: 14px;
}
.ad-side {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.05);
}

@media (max-width: 860px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   星际科研项目页面
   ========================================================= */
.projects-container { max-width: 1150px; grid-template-columns: 1fr; }

/* 团队使命 hero */
.projects-hero {
  position: relative;
  text-align: center;
  padding: 40px 28px;
  margin-bottom: 28px;
  background:
    radial-gradient(1200px 400px at 50% -80px, rgba(56, 189, 248, 0.18), transparent 70%),
    var(--bg-card);
}
.projects-hero-logo img {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.5);
  margin-bottom: 14px;
}
.projects-hero-title {
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.projects-hero-sub { color: var(--text-dim); margin-top: 6px; font-size: 15px; letter-spacing: 2px; }
.projects-hero-mission {
  margin: 20px auto 0;
  max-width: 720px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.9;
  border-left: 3px solid var(--primary);
  padding-left: 16px;
  text-align: left;
}
.projects-hero-company { margin-top: 12px; color: var(--text-faint); font-size: 13px; }

/* 科研项目页顶部标题框：固定不随滚动条滚动 + 高度压缩到最小 */
.compact-hero {
  position: sticky;
  top: 60px;
  z-index: 80;
  padding: 2px 10px !important;
  margin-bottom: 8px;
  border-radius: 0 0 10px 10px;
  text-align: center;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
}
.compact-hero .projects-hero-logo { display: none; }
.compact-hero .projects-hero-title {
  font-size: 18px;
  margin: 0;
}
.compact-hero .projects-hero-sub {
  font-size: 9px;
  margin: 1px 0 0;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compact-hero .projects-hero-mission {
  margin: 2px auto 0;
  max-width: 100%;
  font-size: 9px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-left: none;
  padding-left: 0;
  text-align: center;
}
.compact-hero .projects-hero-company {
  margin-top: 1px;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compact-hero .projects-stats {
  margin-top: 2px;
  gap: 8px;
}
.compact-hero .projects-stats .stat { display: inline-flex; align-items: baseline; gap: 3px; }
.compact-hero .projects-stats .stat strong { display: inline; font-size: 11px; margin: 0; }
.compact-hero .projects-stats .stat span { font-size: 7px; }

/* 交流页 hero 右侧里程碑入口（sticky hero 右上角，随 hero 固定可见） */
.hero-monument-link {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid var(--border-glow);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
  text-decoration: none;
  z-index: 5;
}
.hero-monument-link:hover { background: rgba(56, 189, 248, 0.16); }

/* 核心技术页顶部标题框：固定不随滚动条滚动；文字放大 + 居中显示 + 高度压缩 */
.tech-hero {
  position: sticky;
  top: 60px;
  z-index: 80;
  padding: 2px 10px !important;
  margin-bottom: 8px;
  border-radius: 0 0 10px 10px;
  text-align: center;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
}
.tech-hero .projects-hero-title {
  font-size: 18px;
  margin: 0;
}
.tech-hero .projects-hero-sub {
  font-size: 9px;
  margin: 1px 0 0;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tech-hero .projects-hero-mission {
  margin: 2px auto 0;
  max-width: 100%;
  font-size: 9px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-left: none;
  padding-left: 0;
  text-align: center;
}
.tech-hero .projects-stats {
  margin-top: 2px;
  gap: 8px;
}
.tech-hero .projects-stats .stat { display: inline-flex; align-items: baseline; gap: 3px; }
.tech-hero .projects-stats .stat strong { display: inline; font-size: 11px; margin: 0; }
.tech-hero .projects-stats .stat span { font-size: 7px; }

/* 统计条 */
.projects-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.projects-stats .stat { text-align: center; }
.projects-stats .stat strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
}
.projects-stats .stat span { font-size: 12px; color: var(--text-faint); }

/* 分类区块 */
.project-section { margin-bottom: 34px; }
.project-section-head { margin-bottom: 16px; }
.project-section-head h2 {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.project-section-head h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-glow), transparent);
}
.project-section-head p { color: var(--text-faint); font-size: 13px; margin-top: 6px; }

/* 项目卡片网格 */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.10), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.15);
}
.project-card:hover::before { opacity: 1; }
/* 项目卡片作为跳转链接时 */
.project-card.project-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.project-card.project-card-link h3,
.project-card.project-card-link p {
  position: relative;
}
.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  position: relative;
}
.project-icon { font-size: 30px; }
.project-status {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--primary);
  background: rgba(56, 189, 248, 0.08);
}
.project-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; position: relative; }
.project-desc {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.8;
  position: relative;
}

/* 核心技术体系 */
.tech-section { margin-bottom: 34px; }
.tech-group { margin-bottom: 22px; }
.tech-group h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.tech-chip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(13, 22, 48, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s;
}
.tech-chip:hover {
  border-color: var(--border-glow);
  background: rgba(56, 189, 248, 0.06);
  transform: translateY(-2px);
}
.tech-icon { font-size: 24px; line-height: 1; }
.tech-chip strong { display: block; font-size: 14px; margin-bottom: 4px; }
.tech-chip small {
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.7;
}
/* 可点击的技术卡片 */
.tech-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.tech-link .tech-more {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--primary);
}
.tech-all-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
}
.tech-all-link:hover { text-decoration: underline; }

/* 技术详情页 */
.tech-detail-container { max-width: 900px; grid-template-columns: 1fr; }
.tech-detail { padding: 32px 36px; }
.tech-detail-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.tech-detail-icon {
  font-size: 56px;
  line-height: 1;
  filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.5));
}
.tech-detail-group {
  display: inline-block;
  font-size: 12px;
  color: var(--primary);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 20px;
  padding: 3px 12px;
  background: rgba(56, 189, 248, 0.08);
  margin-bottom: 10px;
}
.tech-detail h1 { font-size: 26px; font-weight: 800; }
.tech-detail-desc {
  color: var(--text);
  font-size: 15px;
  line-height: 2;
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.tech-detail-points { margin-top: 26px; }
.tech-detail-points h3, .tech-detail-siblings h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
}
.tech-detail-points ul { list-style: none; display: grid; gap: 10px; }
.tech-detail-points li {
  padding: 12px 16px;
  background: rgba(13, 22, 48, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-dim);
}
.tech-detail-points li::before { content: '▸ '; color: var(--accent); }
.tech-detail-siblings { margin-top: 30px; }

/* 技术卡片参与数据 */
.tech-cards-stats {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-dim);
}
.tech-cards-stats span { white-space: nowrap; }

/* 星币徽章（导航栏，点击跳转充值中心） */
.coins-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.08);
  color: #fbbf24;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.coins-badge:hover {
  background: rgba(251, 191, 36, 0.18);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.35);
}
.coins-badge .coins-num { font-weight: 800; }

/* 技术详情 - 参与支持面板 */
.tech-detail-participate {
  margin-top: 28px;
  padding: 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.06), rgba(167, 139, 250, 0.06));
  border: 1px solid var(--border);
}
.tech-detail-participate h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
}
.part-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.part-stat {
  text-align: center;
  padding: 12px 10px;
  border-radius: 12px;
  background: rgba(13, 22, 48, 0.6);
  border: 1px solid var(--border);
}
.part-stat b { display: block; font-size: 18px; color: var(--gold); margin-bottom: 4px; }
.part-stat span { font-size: 12px; color: var(--text-faint); }
.part-actions { display: grid; gap: 12px; }
.part-action {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.part-label { width: 90px; font-size: 14px; color: var(--text-dim); font-weight: 600; }
.part-input { width: 120px; flex: none; }
.part-mine { font-size: 12px; }

/* 排行榜 */
.leaderboard-section { margin-bottom: 20px; }
.lb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lb-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.lb-col h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
  color: var(--gold);
}
.lb-list { display: grid; gap: 6px; }
.lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.15s;
}
.lb-row:hover { background: rgba(56, 189, 248, 0.07); }
.lb-rank { width: 24px; text-align: center; font-weight: 700; color: var(--gold); font-size: 13px; }
.lb-icon { font-size: 18px; }
.lb-avatar { font-size: 16px; }
.lb-name { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-val { font-size: 13px; color: var(--gold); font-weight: 600; white-space: nowrap; }

/* 众筹进度 */
.crowdfunding {
  margin-top: 28px;
  padding: 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.07), rgba(244, 114, 182, 0.05));
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.crowdfunding.reached { border-color: rgba(52, 211, 153, 0.5); }
.cf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cf-head h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  padding-left: 12px;
  border-left: 3px solid var(--gold);
}
.cf-badge {
  font-size: 12px;
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.5);
  background: rgba(52, 211, 153, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
}
.cf-title { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.cf-track {
  height: 14px;
  border-radius: 20px;
  background: rgba(13, 22, 48, 0.8);
  border: 1px solid var(--border);
  overflow: hidden;
}
.cf-bar {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--gold), var(--accent-2));
  transition: width 0.5s ease;
}
.cf-info {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-dim);
}
.cf-info b { color: var(--gold); }
.cf-pct { font-weight: 700; color: var(--gold); }
.cf-deadline { margin-top: 8px; font-size: 12px; color: var(--text-faint); }

/* 弹窗 */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 20, 0.78);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-card {
  width: 100%;
  max-width: 440px;
  padding: 26px;
}

/* 投资捐款滚动字幕 */
.ticker-wrap {
  overflow: hidden;
  background: rgba(13, 22, 48, 0.85);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 0;
  margin-bottom: 24px;
  position: relative;
}
.ticker-wrap::before,
.ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 1;
  pointer-events: none;
}
.ticker-wrap::before { left: 0; background: linear-gradient(90deg, #0d1630, transparent); }
.ticker-wrap::after { right: 0; background: linear-gradient(270deg, #0d1630, transparent); }
.ticker {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-scroll 45s linear infinite;
  padding-left: 100%;
}
.ticker:hover { animation-play-state: paused; }
.ticker span {
  display: inline-block;
  padding: 0 28px;
  font-size: 14px;
  color: var(--text-dim);
}
.ticker b { color: var(--gold); font-weight: 700; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* 参与记录列表 */
.contribution-list {
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(13, 22, 48, 0.6);
}
.contribution-list::-webkit-scrollbar { width: 8px; }
.contribution-list::-webkit-scrollbar-thumb { background: rgba(56, 189, 248, 0.3); border-radius: 10px; }
.contribution-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.contribution-row:last-child { border-bottom: none; }
.contribution-row:hover { background: rgba(56, 189, 248, 0.05); }
.contribution-user {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.contribution-user:hover { color: var(--primary); }
.contribution-action {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.contribution-action.invest {
  color: var(--gold);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.4);
}
.contribution-action.donate {
  color: var(--accent-2);
  background: rgba(244, 114, 182, 0.12);
  border: 1px solid rgba(244, 114, 182, 0.4);
}
.contribution-tech {
  flex: 1;
  min-width: 120px;
  color: var(--text-dim);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contribution-amount {
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
.contribution-time { color: var(--text-faint); font-size: 12px; white-space: nowrap; }

/* 投资分红 */
.dividend-note {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.12), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(129, 140, 248, 0.3);
}
.dividend-note b { color: var(--text); }
.dividend-note a { color: var(--primary); }

/* 投资人与捐款人名单 */
.tech-detail-roster {
  margin-top: 28px;
}
.tech-detail-roster > h3 {
  font-size: 17px;
  margin-bottom: 14px;
}
.roster-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.roster-col {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(13, 22, 48, 0.5);
  overflow: hidden;
}
.roster-head {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
  background: rgba(251, 191, 36, 0.06);
}
.roster-head:last-of-type { color: var(--accent-2); background: rgba(244, 114, 182, 0.06); }
.roster-list {
  max-height: 320px;
  overflow-y: auto;
}
.roster-list::-webkit-scrollbar { width: 8px; }
.roster-list::-webkit-scrollbar-thumb { background: rgba(56, 189, 248, 0.3); border-radius: 10px; }
.roster-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.15s;
}
.roster-row:last-child { border-bottom: none; }
.roster-row:hover { background: rgba(56, 189, 248, 0.06); }
.roster-avatar {
  font-size: 20px;
  line-height: 1;
}
.roster-name {
  flex: 1;
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.roster-val {
  font-size: 12px;
  white-space: nowrap;
  font-weight: 700;
}
.roster-val.invest { color: var(--gold); }
.roster-val.donate { color: var(--accent-2); }
.roster-empty { padding: 14px; }
@media (max-width: 860px) {
  .roster-grid { grid-template-columns: 1fr; }
}
.div-admin-item {
  background: rgba(13, 22, 48, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.div-admin-item b { display: block; font-size: 22px; color: var(--gold); margin-bottom: 4px; }
.div-admin-item span { font-size: 12px; color: var(--text-faint); }

/* 星币提现 */
.withdraw-info {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  background: rgba(56, 189, 248, 0.07);
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.withdraw-info b { color: var(--text); }

/* 充值中心 */
.recharge-balance {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 24px;
}
.recharge-balance span { font-size: 14px; color: var(--text-dim); }
.recharge-balance b { font-size: 28px; color: var(--gold); }
.recharge-account-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.recharge-acct-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.recharge-acct-row:last-of-type { border-bottom: none; }
.recharge-acct-row span { color: var(--text-dim); }
.recharge-acct-row b { color: var(--text); word-break: break-all; text-align: right; }
.recharge-tip {
  margin-top: 12px;
  font-size: 13px;
  color: var(--gold);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.6;
}
.recharge-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}
.recharge-step i {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.recharge-step b { color: var(--text); }
.recharge-calc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-dim);
}
.recharge-calc b { color: var(--gold); font-size: 15px; }
.req { color: #dc2626; }

/* 支付方式选择 */
.recharge-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}
.rc-channel {
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(13, 22, 48, 0.6);
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.rc-channel:hover {
  border-color: var(--border-glow);
  color: var(--text);
}
.rc-channel.active {
  border-color: rgba(248, 113, 113, 0.9);
  color: #fff;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.88), rgba(185, 28, 28, 0.88));
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
}
@media (max-width: 860px) {
  .recharge-account-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .projects-stats { gap: 24px; }
  .project-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .tech-detail { padding: 20px; }
  .tech-detail-head { flex-direction: column; text-align: center; gap: 12px; }
  .part-action { flex-direction: column; align-items: stretch; }
  .part-input { width: 100%; }
  .lb-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   PWA 移动端支持（悬浮 APP 工具条：安装 + 推送）
   ========================================================= */
.pwa-fab {
  position: fixed;
  right: 16px;
  bottom: 78px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pwa-fab-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 18, 40, 0.92);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s, box-shadow 0.2s;
}
.pwa-fab-btn:hover { transform: scale(1.08); box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5), 0 0 18px rgba(56, 189, 248, 0.35); }
.pwa-fab-btn:active { transform: scale(0.96); }

/* =========================================================
   移动端响应式增强（手机 / 小屏）
   ========================================================= */
@media (max-width: 720px) {
  .navbar { padding: 10px 12px; gap: 8px; flex-wrap: wrap; }
  .brand { font-size: 17px; }
  .brand .logo { width: 30px; height: 30px; }
  .brand small { display: none; }
  .nav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    order: 3;
    justify-content: flex-start;
    gap: 4px;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding: 7px 10px; font-size: 13px; white-space: nowrap; }
  .nav-user-info strong { font-size: 13px; }
  .nav-user-info span { display: none; }

  .container { padding: 14px 12px 72px; --container-pt: 14px; --container-px: 12px; gap: 14px; }
  .card { padding: 14px; }
  .card-title { font-size: 15px; }
  .post-content { font-size: 14px; }
  .btn { padding: 8px 14px; }
  .btn-sm { padding: 6px 10px; }

  .profile-hero { padding: 14px; }
  .profile-stats .stat b { font-size: 18px; }

  .table-wrap { overflow-x: auto; }
  .admin-table { font-size: 12px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }

  .composer-foot { flex-wrap: wrap; gap: 8px; }
  .media-toolbar { gap: 6px; }
  .media-toolbar .btn { padding: 6px 10px; font-size: 12px; }
  .media-chip-name { max-width: 90px; }

  .user-row { flex-wrap: wrap; gap: 6px; }
  .announcement { padding: 10px; }
  .project-section-head h2 { font-size: 18px; }
  .tech-detail-points ul { padding-left: 18px; }

  /* 底部安全空间，避免被悬浮工具条遮挡 */
  .footer { padding: 14px 12px 88px; }

  /* ===== 移动端横向溢出修复（防止内容被撑破屏幕） =====
     注意：只对 body 用 overflow-x:clip，绝不对 html 用——html 的 overflow 会传播到视口，
     导致整页无法滚动（实测 scrollTop 恒为 0）。clip 不破坏 sticky（hidden 才会） */
  body { overflow-x: clip; }
  .container > *,
  .card,
  .admin-card,
  .stat-grid,
  .tabs,
  .tabContent,
  .projects-hero,
  .recharge-account,
  .recharge-balance,
  .recharge-steps,
  .recharge-form-wrap,
  .auth-card { max-width: 100%; min-width: 0; }
  .tabs { flex-wrap: wrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tab { flex: 0 0 auto; }
  .avatar-grid { grid-template-columns: repeat(6, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .recharge-acct-row { flex-wrap: wrap; }
}

/* ---------- 移动端下拉导航（汉堡菜单，桌面隐藏） ---------- */
.nav-burger {
  display: none;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid var(--border-glow);
  color: var(--text);
  border-radius: 10px;
  width: 42px;
  height: 40px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: none;
}
.nav-dropdown { display: none; }

@media (max-width: 720px) {
  /* 底部 Tab 栏（移动端：继承微信式 icon+label 垂直布局，更紧凑） */
  .bottom-nav { padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav .bn-link { padding: 3px 2px; font-size: 11px; }
  .bottom-nav .bn-link .bn-ico { font-size: 20px; }
  /* 内容底部留白，避免被固定底部导航遮挡 */
  body { padding-bottom: 70px; }
  .container { padding-bottom: 104px; }
  .footer { padding-bottom: 120px; }
  .nav-dropdown {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(8, 14, 32, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
    z-index: 99;
  }
  .nav-dropdown.open { max-height: 78vh; overflow-y: auto; }
  .nav-dropdown-links {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
  }
  .nav-dropdown-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dim);
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
  }
  .nav-dropdown-links a.active {
    color: var(--primary);
    background: rgba(56, 189, 248, 0.16);
  }
  .nav-dropdown-links a:active { background: rgba(56, 189, 248, 0.22); }
  .nav-dropdown-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 16px;
    border-top: 1px solid var(--border);
  }
  .nav-dropdown-actions .nav-user-info span { display: block; }
}

/* =========================================================
   浅色主题覆盖层（2026-09-07 整站改白底浅色 + 移除背景图）
   —— 放在文件末尾覆盖上面全部深色硬编码，保证控件可读
   ========================================================= */

/* 1) 移除全部深空/星空/星球/火箭/飞船等背景装饰（含 PNG 背景图） */
.stars, .twinkling, .bg-rocket, .bg-ship { display: none !important; }
body::before, body::after { display: none !important; }
body { background: #f5f7fb !important; }

/* 2) 顶部导航 / 底部 Tab / 移动端下拉：深色玻璃 → 白色玻璃 */
.navbar { background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--border); }
.navbar .monument-nav-link { background: rgba(255, 255, 255, 0.8); }
.navbar .guide-nav-link { color: #0369a1; }
.bottom-nav { background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.05); }
.nav-dropdown { background: rgba(255, 255, 255, 0.99); box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14); }
.nav-dropdown-links a.active { background: rgba(2, 132, 199, 0.1); }

/* 3) APP 下载横幅（顶部横条）改浅色 */
.app-download-bar { background: linear-gradient(135deg, #e0f2fe 0%, #ede9fe 50%, #fce7f3 100%); border-bottom: 1px solid rgba(2, 132, 199, 0.25); }
.app-download-text strong { color: #0f172a; }
.app-download-close { color: rgba(100, 116, 139, 0.8); }
.app-download-close:hover { color: #0f172a; background: rgba(15, 23, 42, 0.08); }

/* 4) 输入框 / 下拉：白底深字 */
.input, .textarea, select.input { background: #ffffff; color: #0f172a; border-color: rgba(71, 85, 105, 0.32); }
.input::placeholder, .textarea::placeholder { color: #94a3b8; }

/* 5) 卡片与各面板表面：半透明深蓝 → 白 / 浅灰 */
.card, .widget, .project-card, .lb-col, .lb-row,
.ticker-wrap, .contribution-list, .roster-col, .tech-chip,
.stat-card, .div-admin-item, .part-stat, .rc-channel,
.tech-detail-points li, .media-file-card, .media-text-card,
.post, .me-menu, .tech-chip:hover { background: #ffffff; color: var(--text); }
.tech-chip, .rc-channel, .stat-card, .div-admin-item, .part-stat,
.tech-detail-points li, .media-file-card, .media-text-card { background: #f8fafc; }
.media-file-card, .media-text-card { color: var(--text); }
.media-text-body { color: #334155; }
.media-text-name { color: var(--primary); }
.me-cell { border-bottom: 1px solid rgba(15, 23, 42, 0.07); }
.ads-top-fixed { background: rgba(255, 255, 255, 0.96); }
.post-media, .media-box { background: #eef2f7; border-color: rgba(15, 23, 42, 0.12); }
.media-chip { background: #f1f5f9; border-color: rgba(15, 23, 42, 0.14); color: var(--text); }
.tech-detail-desc { background: #f8fafc; color: #1e293b; }
.cf-track { background: #e2e8f0; }
.ticker-wrap::before { background: linear-gradient(90deg, #ffffff, transparent); }
.ticker-wrap::after { background: linear-gradient(270deg, #ffffff, transparent); }
.tech-detail-points li { color: #334155; }
.tech-detail-points li::before { color: var(--accent); }
.project-card:hover { box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16); border-color: var(--border-glow); }
.project-card::before { background: linear-gradient(135deg, rgba(2, 132, 199, 0.06), transparent 55%); }

/* 6) 表格 */
.admin-table th { background: rgba(2, 132, 199, 0.06); color: #334155; }
.admin-table tr:hover td { background: rgba(2, 132, 199, 0.04); }

/* 7) 按钮：保留彩色主按钮；基础/幽灵/危险按钮适配白底 */
.btn { background: rgba(2, 132, 199, 0.08); color: var(--primary); border-color: rgba(2, 132, 199, 0.4); }
.btn:hover { background: rgba(2, 132, 199, 0.16); box-shadow: none; }
.btn-primary { background: linear-gradient(135deg, #0284c7, #0369a1); color: #ffffff; }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(2, 132, 199, 0.3); }
.btn-accent { background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #ffffff; }
.btn-danger { background: rgba(220, 38, 38, 0.08); color: var(--danger); border-color: rgba(220, 38, 38, 0.35); }
.btn-danger:hover { background: rgba(220, 38, 38, 0.16); }
.btn-ghost { background: transparent; }

/* 8) 徽章 / 标签 / 分隔（原白透明 → 深色透明，白底上可见） */
.sec-badge { background: rgba(15, 23, 42, 0.05); border-color: rgba(15, 23, 42, 0.16); color: #334155; }
.admin-table code { background: rgba(15, 23, 42, 0.05); }
.follow-btn.following { border-color: rgba(15, 23, 42, 0.22); background: rgba(15, 23, 42, 0.05); color: #64748b; }
.coins-badge { color: #b45309; background: rgba(217, 119, 6, 0.08); border-color: rgba(217, 119, 6, 0.35); }
.coins-badge:hover { background: rgba(217, 119, 6, 0.16); box-shadow: none; }
.alert { color: #b45309; }

/* 9) 支付/充值相关按钮与提示保持醒目 */
.rc-channel { color: #334155; }
.rc-channel:hover { border-color: rgba(2, 132, 199, 0.55); color: #0f172a; }
.rc-channel.active { color: #ffffff; background: linear-gradient(135deg, rgba(239, 68, 68, 0.92), rgba(185, 28, 28, 0.92)); }
.recharge-step b, .withdraw-info b { color: #0f172a; }
.recharge-acct-row b { color: #0f172a; }

/* 10) 吸顶标题条阴影改浅 */
.compact-hero, .tech-hero { box-shadow: 0 6px 22px rgba(15, 23, 42, 0.12); }

/* 11) 悬浮 APP 按钮 */
.pwa-fab-btn { background: rgba(255, 255, 255, 0.96); color: #0f172a; border-color: rgba(15, 23, 42, 0.16); box-shadow: 0 4px 18px rgba(15, 23, 42, 0.2); }
.pwa-fab-btn:hover { box-shadow: 0 6px 22px rgba(15, 23, 42, 0.26); }

/* 12) 页面私有强调面板常见浅化（白底细边框浅色块） */
.tech-manage, .tech-detail-participate, .crowdfunding,
.dividend-note, .withdraw-info { background: rgba(2, 132, 199, 0.05); }
.part-stat b { color: #b45309; }

/* 13) 跨页私有面板/卡片类：半透明深蓝表面 → 白/浅灰（文字随变量已变深） */
.mn-card, .mn-top, .mn-bottom, .fund-stat, .fund-note,
.thanks-stat, .thanks-note, .exam-q label,
.admin-project-wrap .mn-card { background: #ffffff; }
.mn-top, .mn-bottom { background: rgba(255, 255, 255, 0.96); }
.fund-stat, .fund-note, .thanks-stat, .thanks-note { background: #f8fafc; }
.exam-q label { background: #f1f5f9; }

/* 14) 兜底强制白化：任何 .card 表面（含 .tech-container .card 等高特异性深色组合）→ 白，
      文字随 :root 变量已是深色；防深色半透明表面漏网（2026-09-07 生产实测 .tech-container .card 仍 rgba(13,22,48,.85)） */
.card { background-color: #ffffff !important; }
.tech-container .card, .container .card { background-color: #ffffff !important; }

/* 15) 弹窗：原深色玻璃遮罩 + 透明卡片 → 半透明深遮罩 + 白卡片深字
      （2026-09-07：--text 变深后，透明 .modal-card 上的深字在深遮罩上看不见） */
.modal-card { background: #ffffff !important; color: #0f172a !important; border-radius: 16px; box-shadow: 0 18px 50px rgba(15,23,42,0.35); }
.modal-card .modal-title, .modal-card h3 { color: #0f172a !important; }
.modal-mask { background: rgba(15, 23, 42, 0.55) !important; }

/* 16) 页面私有 <style> 晚于外链 style.css 加载、同特异覆盖 override 的深色数据卡
      → !important 兜底白化 + 卡内金/灰小字加深（2026-09-07 纪念碑/基金/感谢函/身份说明） */
.mn-card, .mn-top, .mn-bottom, .fund-stat, .thanks-stat, .thanks-note,
.id-note, .admin-project-wrap .mn-card { background-color: #ffffff !important; }
.mn-top, .mn-bottom { background: rgba(255,255,255,0.96) !important; }
.mn-approve .p, .mn-date, .fund-stat b { color: #92400e !important; }
.mn-approve, .mn-hash, .mn-subtime, .fund-stat span,
.thanks-note, .id-note { color: #475569 !important; }
.mn-card h2, .mn-content { color: #0f172a !important; }
.exam-q label.selected { background: rgba(2, 132, 199, 0.12); border-color: rgba(2, 132, 199, 0.4); }

