/* Caelus Studio 站点统一主题：主题变量 + 圆形光标 + 深浅切换按钮
   与主站 index.html 保持一致，供 /account、/doc 等页面共用。 */

:root {
  --bg-primary: #0b0b0b;
  --bg-secondary: #0b0b0b;
  --bg-card: #111;
  --text-primary: #f0f0f0;
  --text-secondary: #d0d0d0;
  --text-muted: #888;
  --border-color: rgba(255,255,255,0.04);
  --border-card: rgba(255,255,255,0.04);
  --shadow-card: 0 4px 16px rgba(0,0,0,0.3);
  --scroll-color: rgba(255,255,255,0.7);
  --scroll-text: rgba(255,255,255,0.5);
  --footer-color: #555;
  --footer-highlight: #666;
  --tag-bg: #0a1e33;
  --tag-color: #7db8e8;
  --tag-border: rgba(80,160,220,0.15);
  --accent: #0a84ff;
  --card-hover-border: rgba(255,255,255,0.08);
}

[data-theme="light"] {
  --bg-primary: #f5f5f5;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #2a2a2a;
  --text-muted: #555;
  --border-color: rgba(0,0,0,0.06);
  --border-card: rgba(0,0,0,0.06);
  --shadow-card: 0 4px 16px rgba(0,0,0,0.06);
  --scroll-color: rgba(0,0,0,0.35);
  --scroll-text: rgba(0,0,0,0.25);
  --footer-color: #999;
  --footer-highlight: #aaa;
  --tag-bg: #e6f0ff;
  --tag-color: #0a4a7a;
  --tag-border: rgba(30,140,70,0.15);
  --accent: #0a84ff;
  --card-hover-border: rgba(0,0,0,0.1);
}

html, body {
  font-family: 'OPPO Sans 4.0', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  font-weight: 400;
}
h1, h2, h3, h4, h5, h6 { font-weight: 500; -webkit-text-stroke: .3px currentColor; }

body {
  cursor: none;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background 0.3s ease, color 0.3s ease;
}
a, button, input, textarea { cursor: none !important; }

/* ===== 圆形光标 ===== */
.custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.3);
  pointer-events: none;
  z-index: 2147483600;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s, border-color 0.2s;
  box-shadow: 0 0 20px rgba(255,255,255,0.05);
  will-change: transform;
}
[data-theme="light"] .custom-cursor {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.15);
  box-shadow: 0 0 20px rgba(0,0,0,0.03);
}
.custom-cursor.clicked {
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.6);
}
[data-theme="light"] .custom-cursor.clicked {
  background: rgba(0,0,0,0.15);
  border-color: rgba(0,0,0,0.3);
}
.custom-cursor.hover {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}
[data-theme="light"] .custom-cursor.hover {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
}
@media (pointer: coarse) {
  .custom-cursor { display: none !important; }
  a, button, input, textarea { cursor: auto !important; }
}

/* ===== 主题切换按钮 ===== */
.theme-toggle {
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-primary);
  user-select: none;
}
[data-theme="light"] .theme-toggle {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.06);
}
.theme-toggle:hover { transform: scale(1.08); background: rgba(255,255,255,0.12); }
[data-theme="light"] .theme-toggle:hover { background: rgba(0,0,0,0.08); }
.theme-toggle svg {
  width: 18px; height: 18px; fill: currentColor;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.theme-toggle:hover svg { transform: rotate(30deg); }

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scroll-color); border-radius: 4px; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.25); }
