/* ============================================================
   全局设计系统
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

.text-readable { color: #A6AAB5; }
.text-readable-light { color: #B8BCC6; }

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #06090e;
  color: #f0f4fb;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  max-width: 100%;
  padding-top: 64px;
  position: relative;
}

/* iOS Safari 下 overflow-x: hidden 无法完全阻止 input 聚焦时的横向拖拽,
   用 clip 彻底关闭横向滚动(不影响纵向) */
html { overflow-x: clip; }
body { overflow-x: clip; }

/* 锚点跳转预留顶部导航空间,避免标题被固定 navbar 遮挡 */
section[id] { scroll-margin-top: 80px; }
.scroll-anchor { scroll-margin-top: 80px; }

@media (min-width: 768px) {
  body { padding-top: 72px; }
}

.bg-dynamic {
  background: #06090e;
  position: relative;
}
.bg-dynamic::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 25%, rgba(30, 80, 255, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 75%, rgba(0, 200, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(100, 60, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: ambientMove 30s ease-in-out infinite alternate;
  /* 强制独立合成层,避免滚动时全屏重绘 */
  transform: translateZ(0);
  will-change: transform;
}

@keyframes ambientMove {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.06) rotate(1.5deg); }
}

.grid-subtle {
  background-image:
    linear-gradient(rgba(60, 130, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 130, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
}
@media (max-width: 640px) {
  .grid-subtle { background-size: 40px 40px; }
}

/* ============================================================
   导航 - 固定悬浮玻璃态
   ============================================================ */
.navbar-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 1rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 9, 14, 0.5);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: background;
}
.navbar-fixed.scrolled {
  background: rgba(6, 9, 14, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}
@media (min-width: 768px) {
  .navbar-fixed { height: 72px; padding: 0 2rem; }
}
@media (min-width: 1024px) {
  .navbar-fixed { padding: 0 3rem; }
}
/* 移动端降低 backdrop-filter 开销 */
@media (max-width: 768px) {
  .navbar-fixed {
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
  }
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #2b6aff 0%, #6a8cff 45%, #38bdf8 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .nav-logo { font-size: 1.5rem; }
}

.nav-link {
  color: rgba(255,255,255,0.55);
  transition: color 0.3s;
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
}
.nav-link:hover { color: rgba(255,255,255,0.85); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, #2b6aff, #38bdf8);
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

.menu-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border-radius: 12px;
  background: transparent;
  border: none;
  padding: 0;
}
.menu-toggle:hover { background: rgba(255,255,255,0.04); }
.menu-toggle:active { transform: scale(0.92); }
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: center;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 9, 14, 0.96);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  padding: 2rem 1.5rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 49;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  color: rgba(255,255,255,0.75);
  font-size: 1.25rem;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.mobile-menu a:hover { color: #fff; }
.mobile-menu a i { width: 24px; color: rgba(56,189,248,0.7); }

@media (min-width: 1024px) {
  .mobile-menu { display: none; }
  .menu-toggle { display: none; }
}
/* 移动端降低 backdrop-filter 开销 */
@media (max-width: 768px) {
  .mobile-menu {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
  }
}

/* ---- 玻璃卡片 ---- */
.glass-card {
  background: rgba(10, 15, 30, 0.65);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  /* 隔离卡片重绘,避免影响外部元素
     注意:不能用 paint,会裁剪下拉框等溢出内容 */
  contain: layout style;
}
@media (min-width: 768px) {
  .glass-card { padding: 1.75rem; border-radius: 24px; }
}
.glass-card:hover {
  background: rgba(10, 15, 30, 0.75);
  border-color: rgba(100, 180, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
  will-change: transform;
}
.glass-card:active { transform: scale(0.98); }
/* 移动端降低 backdrop-filter 开销 */
@media (max-width: 768px) {
  .glass-card {
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
  }
}

/* ---- 案例卡片专属样式 ---- */
.case-card .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 封面区:渐变背景 + 图标 + 行业标签,悬停时图标缩放发光 */
.case-cover {
  position: relative;
  width: 100%;
  height: 120px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1rem;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.case-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  opacity: 0.6;
  transition: opacity 0.4s;
}
.case-cover-icon {
  font-size: 2rem;
  opacity: 0.45;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  z-index: 1;
}
.case-card:hover .case-cover-icon {
  opacity: 0.9;
  transform: scale(1.15);
}
.case-card:hover .case-cover::before {
  opacity: 1;
}

/* 三色封面渐变 */
.case-cover-amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(234, 179, 8, 0.06) 100%);
}
.case-cover-emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(20, 184, 166, 0.06) 100%);
}
.case-cover-orange {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12) 0%, rgba(239, 68, 68, 0.06) 100%);
}

/* 行业标签:封面右上角徽章 */
.case-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
  z-index: 2;
}

/* 标题:限定 2 行,保证三张卡片高度对齐 */
.case-title {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
  transition: color 0.3s;
}
.case-card:hover .case-title {
  color: #fff;
}

/* 摘要:限定 2 行 */
.case-desc {
  font-size: 0.85rem;
  color: #A6AAB5;
  line-height: 1.55;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* 底部 CTA:悬停时箭头右移,强化点击引导 */
.case-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: rgba(56, 189, 248, 0.75);
  transition: color 0.3s;
}
.case-cta i {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.case-card:hover .case-cta {
  color: rgba(56, 189, 248, 1);
}
.case-card:hover .case-cta i {
  transform: translateX(4px);
}

/* ---- 按钮 ---- */
.btn-primary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              color 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.75rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:active { transform: scale(0.96); }
.btn-primary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(56, 189, 248, 0.4);
  color: #fff;
  box-shadow: 0 4px 30px rgba(56, 189, 248, 0.15);
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  transition: background 0.4s, border-color 0.4s, color 0.4s, transform 0.4s;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn-outline:active { transform: scale(0.96); }
.btn-outline:hover {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255, 255, 255, 0.7);
}

/* ---- 渐变文字 ---- */
.gradient-brand {
  background: linear-gradient(135deg, #2b6aff 0%, #6a8cff 45%, #38bdf8 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-cyan {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- 进度条 ---- */
.scroll-progress {
  position: fixed;
  top: 64px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #2b6aff, #38bdf8);
  z-index: 51;
  width: 0%;
  will-change: width;
}
@media (min-width: 768px) {
  .scroll-progress { top: 72px; }
}

/* ---- 滚动条 ---- */
::-webkit-scrollbar { width: 3px; background: #06090e; }
::-webkit-scrollbar-thumb { background: #2b6aff; border-radius: 12px; }

/* ============================================================
   数字资产模型 - 星云设计
   ============================================================ */
.nebula-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  padding: 4rem 0;
  overflow: visible;
}

.nebula-container {
  position: relative;
  width: 320px;
  height: 320px;
  flex-shrink: 0;
}
@media (min-width: 480px) {
  .nebula-container { width: 360px; height: 360px; }
}
@media (min-width: 640px) {
  .nebula-container { width: 400px; height: 400px; }
}
@media (min-width: 768px) {
  .nebula-container { width: 440px; height: 440px; }
}
@media (min-width: 1024px) {
  .nebula-container { width: 500px; height: 500px; }
}

.nebula-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 106, 255, 0.25), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(43, 106, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  z-index: 2;
  animation: corePulse 4s ease-in-out infinite;
  text-align: center;
  line-height: 1.2;
  will-change: box-shadow;
}
@media (min-width: 640px) {
  .nebula-core { width: 96px; height: 96px; font-size: 13px; }
}
@media (min-width: 1024px) {
  .nebula-core { width: 110px; height: 110px; font-size: 14px; }
}
.nebula-core i { font-size: 1.2rem; margin-bottom: 2px; }
@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 30px rgba(43, 106, 255, 0.04); }
  50% { box-shadow: 0 0 70px rgba(43, 106, 255, 0.12); }
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(60, 130, 255, 0.05);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbitSpin 30s linear infinite;
  will-change: transform;
}
.orbit-ring:nth-child(2) {
  width: 180px; height: 180px;
  animation-duration: 40s;
  animation-direction: reverse;
}
.orbit-ring:nth-child(3) {
  width: 240px; height: 240px;
  animation-duration: 50s;
}
@media (min-width: 640px) {
  .orbit-ring:nth-child(2) { width: 220px; height: 220px; }
  .orbit-ring:nth-child(3) { width: 290px; height: 290px; }
}
@media (min-width: 1024px) {
  .orbit-ring:nth-child(2) { width: 250px; height: 250px; }
  .orbit-ring:nth-child(3) { width: 330px; height: 330px; }
}
@keyframes orbitSpin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.nebula-glow {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(43, 106, 255, 0.03), transparent, rgba(56, 189, 248, 0.03), transparent);
  animation: spinGlow 20s linear infinite;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
@keyframes spinGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.nebula-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.3s;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  touch-action: manipulation;
}
.nebula-node .node-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transition: all 0.3s;
  animation: pulseDot 3s ease-in-out infinite;
  will-change: transform, opacity;
}
.nebula-node .node-label {
  margin-top: 8px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.82);
  white-space: nowrap;
  transition: all 0.3s;
  letter-spacing: 0.02em;
}
.nebula-node:active { transform: scale(0.92); }
.nebula-node:hover .node-label {
  background: rgba(43, 106, 255, 0.12);
  border-color: rgba(43, 106, 255, 0.15);
  color: rgba(255,255,255,0.8);
}
@media (min-width: 640px) {
  .nebula-node .node-dot { width: 16px; height: 16px; }
  .nebula-node .node-label { font-size: 13px; padding: 6px 18px; }
}
@media (min-width: 1024px) {
  .nebula-node .node-dot { width: 18px; height: 18px; }
  .nebula-node .node-label { font-size: 14px; padding: 7px 22px; }
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.3); }
}

.node-top { top: 0%; left: 50%; }
.node-bottom { top: 100%; left: 50%; }
.node-left { top: 50%; left: 0%; }
.node-right { top: 50%; left: 100%; }
.node-top-right { top: 16%; left: 84%; }
.node-bottom-left { top: 84%; left: 16%; }
.node-top-left { top: 16%; left: 16%; }
.node-bottom-right { top: 84%; left: 84%; }

@media (min-width: 640px) {
  .node-top { top: -3%; }
  .node-bottom { top: 103%; }
  .node-left { left: -3%; }
  .node-right { left: 103%; }
  .node-top-right { top: 14%; left: 86%; }
  .node-bottom-left { top: 86%; left: 14%; }
  .node-top-left { top: 14%; left: 14%; }
  .node-bottom-right { top: 86%; left: 86%; }
}
@media (min-width: 1024px) {
  .node-top { top: -5%; }
  .node-bottom { top: 105%; }
  .node-left { left: -5%; }
  .node-right { left: 105%; }
  .node-top-right { top: 12%; left: 88%; }
  .node-bottom-left { top: 88%; left: 12%; }
  .node-top-left { top: 12%; left: 12%; }
  .node-bottom-right { top: 88%; left: 88%; }
}

/* ---- 冲击波特效 (从核心扩散) ---- */
.shockwave {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}

.shockwave-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.8);
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: shockwaveExpand 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.shockwave-ring:nth-child(2) { animation-delay: 0.15s; }
.shockwave-ring:nth-child(3) { animation-delay: 0.3s; }

@keyframes shockwaveExpand {
  0% {
    width: 20px;
    height: 20px;
    opacity: 1;
    border-width: 2px;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
    border-width: 1px;
  }
}

/* ---- 光弹特效 (子弹+光尾,从核心射向节点,射击一次) ---- */
/* 轨道:旋转到节点方向,本身不可见,仅作为子弹运动的参照轴 */
.shockwave-beam {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 0;
  transform-origin: 0 0;
  pointer-events: none;
  z-index: 3;
}

/* 子弹本体:一颗圆形亮点(非横向长条,避免被感知为连续光束),
   沿轨道 translateX 一次射出,forwards 保证只射击一次不循环 */
.shockwave-bullet {
  position: absolute;
  left: 0;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 255, 255, 1) 0%,
    rgba(200, 235, 255, 0.98) 40%,
    rgba(56, 189, 248, 0.8) 100%);
  box-shadow:
    0 0 6px rgba(56, 189, 248, 0.95),
    0 0 14px rgba(56, 189, 248, 0.5),
    0 0 22px rgba(56, 189, 248, 0.2);
  animation: bulletFly 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

/* 光尾:子弹后方拖一道渐隐彗尾(指向节点方向,符合"从节点射出"的视觉) */
.shockwave-bullet::after {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0) 0%, rgba(56, 189, 248, 0.6) 100%);
  filter: blur(0.6px);
}

@keyframes bulletFly {
  0%   { transform: translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { transform: translateX(var(--beam-distance, 200px)); opacity: 0; }
}

/* ---- 节点选中冲击波 ---- */
.nebula-node.selected .node-dot::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  animation: nodeWave 1s ease-out infinite;
}

@keyframes nodeWave {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* ---- 屏幕居中弹窗 (Toast) ---- */
.nebula-toast {
  position: fixed;
  top: 180px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  z-index: 999;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  max-width: 90vw;
}

.nebula-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.nebula-toast-inner {
  background: linear-gradient(145deg, rgba(10, 20, 40, 0.95) 0%, rgba(15, 25, 50, 0.92) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 16px;
  padding: 14px 24px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6), 0 0 30px rgba(43, 106, 255, 0.2);
  display: flex;
  align-items: center;
}

.nebula-toast-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nebula-toast-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.nebula-toast-desc {
  font-size: 13px;
  color: rgba(200, 210, 230, 0.85);
  line-height: 1.4;
}

/* 选中节点的样式 */
.nebula-node.selected .node-dot {
  box-shadow: 0 0 20px currentColor, 0 0 40px currentColor;
  transform: scale(1.3);
}

.nebula-node.selected .node-label {
  background: rgba(43, 106, 255, 0.2);
  border-color: rgba(43, 106, 255, 0.4);
  color: #fff;
  box-shadow: 0 4px 20px rgba(43, 106, 255, 0.2);
}

/* ---- 卡片内容 ---- */
.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
}
.card-body .icon { font-size: 1.75rem; opacity: 0.7; }
@media (min-width: 768px) {
  .card-body .icon { font-size: 2.25rem; }
}

/* ---- 表单 ---- */
.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  color: #f0f4fb;
  transition: all 0.3s;
  outline: none;
  min-height: 48px;
  -webkit-appearance: none;
}
.form-input::placeholder { color: rgba(166, 170, 181, 0.6); }
.form-input:focus {
  border-color: rgba(43, 106, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 3px rgba(43, 106, 255, 0.1);
}

/* honeypot 反垃圾字段:视觉隐藏,正常用户不可见,爬虫会填写 */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---- 响应式间距 ---- */
.section-pad { padding: 2.5rem 0; }
@media (min-width: 640px) { .section-pad { padding: 3.5rem 0; } }
@media (min-width: 768px) { .section-pad { padding: 5rem 0; } }
@media (min-width: 1024px) { .section-pad { padding: 6rem 0; } }

.hero-pad { padding: 1.5rem 0 2rem; }
@media (min-width: 640px) { .hero-pad { padding: 2rem 0 3rem; } }
@media (min-width: 768px) { .hero-pad { padding: 3rem 0 4rem; } }
@media (min-width: 1024px) { .hero-pad { padding: 4rem 0 5rem; } }

/* ---- 单页(后台新建页面)专用间距:body 已用 padding-top 补偿固定导航,此处仅留呼吸空间,让标题向上靠 ---- */
.page-hero { padding: 1rem 0 2rem; }
@media (min-width: 640px) { .page-hero { padding: 1.25rem 0 2.5rem; } }
@media (min-width: 768px) { .page-hero { padding: 1.5rem 0 3rem; } }
@media (min-width: 1024px) { .page-hero { padding: 2rem 0 3.5rem; } }

/* 单页标题居中(不依赖 Tailwind 编译,且不影响首页 #hero 内的 hero-title) */
.page-hero .hero-title { text-align: center; }

/* ---- 标题 ---- */
.hero-title {
  font-size: 1.8rem;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}
@media (min-width: 480px) { .hero-title { font-size: 2.1rem; } }
@media (min-width: 640px) { .hero-title { font-size: 2.5rem; } }
@media (min-width: 768px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.4rem; } }
@media (min-width: 1280px) { .hero-title { font-size: 3.7rem; } }

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
@media (min-width: 640px) { .section-title { font-size: 2.2rem; } }
@media (min-width: 768px) { .section-title { font-size: 2.8rem; } }
@media (min-width: 1024px) { .section-title { font-size: 3.2rem; } }

/* ---- Hero 脉冲 ---- */
.pulse-dot {
  animation: heroPulse 3s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.3); }
}

/* ---- 美化弹窗 (Toast) ---- */
/* 移动端/PC 端统一显示在顶部居中(导航栏下方),避免底部被遮挡且不显眼 */
.toast-tip {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(13, 20, 38, 0.96);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-left: 4px solid rgba(56, 189, 248, 0.35);
  color: #f0f4fb;
  padding: 14px 22px 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  z-index: 9999;
  max-width: calc(100vw - 32px);
  text-align: left;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7), 0 0 24px rgba(56, 189, 248, 0.15);
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 14px;
}
.toast-tip.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* 成功态:绿色左侧色条 + 绿色光晕,强对比一眼可识别 */
.toast-tip.toast-success {
  border-color: rgba(74, 222, 128, 0.45);
  border-left-color: #4ade80;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7), 0 0 28px rgba(74, 222, 128, 0.25);
}
.toast-tip.toast-error {
  border-color: rgba(251, 146, 60, 0.45);
  border-left-color: #fb923c;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7), 0 0 28px rgba(251, 146, 60, 0.25);
}
.toast-tip .toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #38bdf8;
  font-size: 15px;
}
.toast-tip.toast-success .toast-icon {
  background: rgba(74, 222, 128, 0.18);
  color: #4ade80;
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.35);
}
.toast-tip.toast-error .toast-icon {
  background: rgba(251, 146, 60, 0.18);
  color: #fb923c;
  box-shadow: 0 0 14px rgba(251, 146, 60, 0.35);
}
.toast-tip .toast-text {
  font-weight: 600;
  color: #fff;
  font-size: 15px;
}
.toast-tip .toast-sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 3px;
  line-height: 1.4;
}

/* ---- 涟漪动画 ---- */
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ---- 文章内容样式 ---- */
.prose-invert h1, .prose-invert h2, .prose-invert h3, .prose-invert h4, .prose-invert h5, .prose-invert h6 {
  color: #f0f4fb;
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}
.prose-invert h1 { font-size: 2rem; }
.prose-invert h2 { font-size: 1.5rem; }
.prose-invert h3 { font-size: 1.25rem; }
.prose-invert h4 { font-size: 1.125rem; }

.prose-invert p {
  margin-bottom: 1em;
  line-height: 1.8;
}

.prose-invert a {
  color: #38bdf8;
  text-decoration: none;
  border-bottom: 1px solid rgba(56, 189, 248, 0.3);
  transition: all 0.3s;
}
.prose-invert a:hover {
  color: #6a8cff;
  border-bottom-color: rgba(106, 140, 255, 0.6);
}

.prose-invert ul, .prose-invert ol {
  margin-bottom: 1em;
  padding-left: 1.5em;
}
.prose-invert ul { list-style-type: disc; }
.prose-invert ol { list-style-type: decimal; }
.prose-invert li { margin-bottom: 0.5em; }

.prose-invert blockquote {
  border-left: 3px solid #2b6aff;
  padding-left: 1em;
  margin: 1.5em 0;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.prose-invert code {
  background: rgba(43, 106, 255, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
  color: #818cf8;
  font-family: 'Inter', monospace;
}

.prose-invert pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 1em;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5em 0;
}
.prose-invert pre code {
  background: none;
  padding: 0;
  color: rgba(255, 255, 255, 0.8);
}

.prose-invert img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1em 0;
}

.prose-invert hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin: 2em 0;
}

.prose-invert table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}
.prose-invert th, .prose-invert td {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75em;
  text-align: left;
}
.prose-invert th {
  background: rgba(43, 106, 255, 0.08);
  font-weight: 600;
}

/* ---- 文章上下篇导航 ---- */
.post-navigation {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.post-navigation .nav-previous,
.post-navigation .nav-next {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  min-width: 0;
}
.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
  background: rgba(43, 106, 255, 0.08);
  border-color: rgba(43, 106, 255, 0.25);
  transform: translateY(-2px);
}
.post-navigation .nav-next {
  text-align: right;
}
.post-navigation .nav-direction {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(56, 189, 248, 0.8);
  letter-spacing: 0.02em;
}
.post-navigation .nav-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
/* 单篇时(只有上篇或只有下篇),另一侧留空保持网格对齐 */
.post-navigation .nav-links:has(.nav-previous:only-child),
.post-navigation .nav-links:has(.nav-next:only-child) {
  grid-template-columns: 1fr;
}
@media (max-width: 640px) {
  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }
}

/* ---- 评论样式 ---- */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.comment-list .comment {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  margin-bottom: 1rem;
}
.comment-list .comment-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.comment-list .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.comment-list .comment-meta {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.3);
}
.comment-list .comment-content {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* 评论表单 input 复用 .form-input 样式(与诊断表单统一),仅 textarea 单独定义圆角 */
.comment-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  color: #f0f4fb;
  margin-bottom: 1rem;
  min-height: 120px;
}
.comment-form textarea:focus {
  border-color: rgba(43, 106, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 3px rgba(43, 106, 255, 0.1);
  outline: none;
}

/* ---- 品牌文字 (静态位置 + 动态特效) ---- */
/* 色调与 nav-logo 统一到品牌蓝青渐变,加扫光高光与发光,形成视觉锚点 */
.footer-brand-animated {
  padding: 2.5rem 1rem 1.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-brand-animated::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(43, 106, 255, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(56, 189, 248, 0.10) 0%, transparent 60%);
  pointer-events: none;
}

.footer-brand-animated .footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.footer-brand-animated .brand-main {
  font-size: clamp(28px, 4.5vw, 64px);
  font-weight: 800;
  line-height: 1;
  /* 品牌蓝青渐变:与 nav-logo 同色系,拉宽色域制造流动感 */
  background: linear-gradient(110deg, #2b6aff 0%, #6a8cff 30%, #38bdf8 60%, #6a8cff 85%, #2b6aff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
  animation: brandFlow 7s ease-in-out infinite, brandGlow 3.5s ease-in-out infinite alternate;
  position: relative;
  will-change: filter, background-position;
}

/* 扫光高光:在文字上叠一道横向移动的亮白光带,制造光泽掠过的质感 */
.footer-brand-animated .brand-main::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: brandShine 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes brandFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes brandGlow {
  0% { filter: drop-shadow(0 0 8px rgba(43, 106, 255, 0.4)); }
  100% { filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.55)); }
}

@keyframes brandShine {
  0% { background-position: 120% 50%; }
  60%, 100% { background-position: -120% 50%; }
}

@media (min-width: 768px) {
  .footer-brand-animated .brand-main {
    font-size: clamp(44px, 5vw, 80px);
    letter-spacing: 0.08em;
  }
}

@media (min-width: 1024px) {
  .footer-brand-animated .brand-main {
    font-size: clamp(56px, 5.5vw, 92px);
    letter-spacing: 0.1em;
  }
}

@media (max-width: 600px) {
  .footer-brand-animated .brand-main {
    font-size: 28px;
    letter-spacing: 0.02em;
    line-height: 1.1;
  }
}

@media (max-width: 380px) {
  .footer-brand-animated .brand-main {
    font-size: 22px;
    letter-spacing: 0.01em;
  }
}

/* ---- Footer ---- */
.site-footer {
  position: relative;
}

/* ============================================================
   无障碍 / 省电模式
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
