/* 背景画布 - 最上层 */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* 主题背景 - 放在body */
body {
  transition: background 0.5s ease;
}

[data-theme="light"] body {
  background: #FDF8F3;
}

[data-theme="dark"] body {
  background: #0C0A09;
}

/* Zone完全透明 */
.zone {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  background: transparent !important;
  z-index: 1;
}

.zone-inner {
  text-align: center;
  padding: 2rem;
  max-width: 800px;
  position: relative;
  z-index: 2;
}

/* 滚动提示 */
.scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.scroll-hint span {
  display: block;
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: bounce 2s ease-in-out infinite;
}

[data-theme="dark"] .scroll-hint span {
  border-color: rgba(255,255,255,0.3);
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.4; }
  50% { transform: rotate(45deg) translateY(8px); opacity: 1; }
}

/* 主题切换器 */
.theme-switcher {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  border-radius: 2rem;
  padding: 0.35rem;
  gap: 0.25rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .theme-switcher {
  background: rgba(28, 25, 23, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
}

.ts-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  opacity: 0.6;
}

.ts-btn.active { opacity: 1; }
.ts-btn:hover { opacity: 0.9; }
.ts-btn svg { width: 18px; height: 18px; }

[data-theme="dark"] .ts-btn { color: rgba(255,255,255,0.5); }
[data-theme="dark"] .ts-btn.active,
[data-theme="dark"] .ts-btn:hover { color: white; }

.ts-btn.active { color: var(--text); }

.ts-indicator {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform 0.3s ease;
  z-index: 1;
}

[data-theme="dark"] .ts-indicator { background: var(--accent-blue); }

.ts-btn[data-theme="auto"].active ~ .ts-indicator { transform: translateX(0); }
.ts-btn[data-theme="light"].active ~ .ts-indicator { transform: translateX(41px); }
.ts-btn[data-theme="dark"].active ~ .ts-indicator { transform: translateX(82px); }

/* 主容器 */
.main {
  position: relative;
  z-index: 1;
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

:root {
  --text: #1C1917;
  --text-muted: #A8A29E;
  --accent: #EA580C;
  --accent-blue: #38BDF8;
}

[data-theme="dark"] {
  --text: #FAFAF9;
  --text-muted: #A8A29E;
  --accent: #38BDF8;
  --accent-blue: #818CF8;
}

@media (max-width: 768px) {
  .main { height: auto; scroll-snap-type: none; }
  .zone { height: auto; min-height: 100vh; }
  .zone-inner { padding: 3rem 1.5rem; }
}
