/* ==================== CooChrip v10 · 基础样式 ==================== */

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "PingFang SC", "HarmonyOS Sans", "Helvetica Neue", sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.6s var(--ease), color 0.6s var(--ease);
  letter-spacing: 0.01em;
  font-size: calc(14px * var(--font-scale));
}

/* ---------- 背景层 ---------- */
.bg-layer {
  position: fixed; inset: 0; z-index: -3;
  overflow: hidden; pointer-events: none;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: 0.6;
}
.blob-1 { width: 560px; height: 560px; top: -200px; left: -160px;
  background: radial-gradient(circle, var(--bg-grad-1) 0%, transparent 70%);
  animation: drift1 26s ease-in-out infinite alternate; }
.blob-2 { width: 620px; height: 620px; bottom: -240px; right: -180px;
  background: radial-gradient(circle, var(--bg-grad-2) 0%, transparent 70%);
  animation: drift2 30s ease-in-out infinite alternate; }
.blob-3 { width: 480px; height: 480px; top: 45%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--bg-grad-3) 0%, transparent 70%);
  animation: drift3 34s ease-in-out infinite alternate; }

@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(60px,50px) scale(1.12); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-70px,-40px) scale(1.08); } }
@keyframes drift3 { from { transform: translate(-50%,-50%) scale(1); } to { transform: translate(-45%,-55%) scale(1.15); } }

.particle-canvas { position: fixed; inset: 0; z-index: -2; pointer-events: none; }

.bg-noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}

/* ---------- 全局动画 ---------- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float-gif { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes glow-pulse { 0%,100% { opacity: 0.2; transform: scale(0.9); } 50% { opacity: 0.45; transform: scale(1.1); } }