body {
  background-color: #f8fafc;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 自定义点阵背景与渐变 */
.dot-grid {
  background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
  background-size: 8px 8px;
}
.gradient-bg {
  background: linear-gradient(135deg, #fafafa 0%, #bbbbbb7a 100%);
}
/* 隐藏 Range 默认样式 */
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  cursor: pointer;
  margin-top: -6px;
}
input[type=range]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(to right, #ff7e5f, #feb47b, #00c6ff, #0072ff, #d4fc79);
}

/* CR-style header */
.cr-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}

/* Smooth hover transitions */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: #ff570a;
}

/* Orange accent for active/brand */
.brand-accent {
  color: #ff570a;
}

.nav-link { transition: color .15s; }
.nav-link:hover { background: var(--fallback-b2, oklch(96% 0 0)); }