/* ===== 开屏动画 ===== */
.splash-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg, #15131f);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .4s ease;
}
.splash-overlay.active {
  opacity: 1; pointer-events: auto;
}
.splash-svg {
  width: 240px; height: auto;
}
.splash-path path {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: splash-draw 2.6s ease-out forwards;
}
@keyframes splash-draw { to { stroke-dashoffset: 0; } }
.splash-loader {
  margin-top: 28px; width: 140px; height: 2px;
  border-radius: 2px; background: var(--border);
  overflow: hidden; position: relative;
}
.splash-loader::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: var(--brand); border-radius: 2px;
  animation: splash-load 1.2s ease-in-out infinite;
}
@keyframes splash-load {
  0% { left: -60%; }
  100% { left: 110%; }
}

/* 弹簧入场 */
@keyframes spring-in {
  0% { opacity: 0; transform: scale(0.88); }
  100% { opacity: 1; transform: scale(1); }
}
.spring-in {
  animation: spring-in .5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.spring-in-delay-1 { animation-delay: .05s; }
.spring-in-delay-2 { animation-delay: .1s; }

/* ===== 图片查看器（lightbox） ===== */
.image-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.image-overlay.active { opacity: 1; pointer-events: auto; }
.image-overlay img {
  max-width: 92vw; max-height: 92vh;
  object-fit: contain; cursor: default;
  border-radius: 4px; box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.image-overlay-close {
  position: absolute; top: 16px; right: 20px;
  font-size: 36px; line-height: 1; color: rgba(255,255,255,0.7);
  background: none; border: none; cursor: pointer; z-index: 1;
  padding: 8px; transition: color .15s;
}
.image-overlay-close:hover { color: #fff; }

/* ===== 分享悬浮球 ===== */
.share-float-ball {
  position: fixed; bottom: 80px; right: 24px; z-index: 898;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
  box-shadow: 0 4px 18px rgba(139,92,246,0.35);
  transition: transform .2s, box-shadow .2s;
}
.share-float-ball:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(139,92,246,0.45); }
.share-float-ball.hidden { display: none; }

.share-float-panel {
  position: fixed; bottom: 136px; right: 24px; z-index: 897;
  background: var(--acrylic-bar, rgba(20,16,36,0.85));
  border: 1px solid var(--border);
  border-radius: 12px; padding: 8px; min-width: 130px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  opacity: 0; transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.share-float-panel.active { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.share-float-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 9px 12px; border: none; border-radius: 8px;
  background: transparent; color: var(--text-secondary);
  font-size: 13px; cursor: pointer; font-family: var(--font-ui);
  transition: background .15s, color .15s;
}
.share-float-item:hover { background: var(--surface-hover); color: var(--brand); }
.share-float-item svg { flex-shrink: 0; }

@media (max-width: 768px) {
  .share-float-ball { bottom: 72px; right: 14px; width: 40px; height: 40px; }
  .share-float-panel { bottom: 124px; right: 14px; }
}
