/**
 * 芙莉莲小屋 · 全局样式
 * 加载: <link rel="stylesheet" href="/cabin/global.css">
 */

/* ═══════════════════════════════════════════
   自定义光标 — 芙莉莲 GT sprite (48×48)
   ═══════════════════════════════════════════ */
*, html, body {
  cursor: url('/cabin/frieren_cursor.png') 0 0, auto !important;
}
a, button, .clickable, summary, .btn, label[for], nav a, [onclick],
a:active, a:hover, a:focus, button:active, button:hover,
input[type="submit"], input[type="button"], select,
.btn:active, .btn:hover, [role="button"], summary:active {
  cursor: url('/cabin/frieren_cursor_pointer.png') 0 0, pointer !important;
}

/* ═══════════════════════════════════════════
   昼夜模式 — 使用博客主 CSS 同名变量覆盖
   ═══════════════════════════════════════════ */
html.night {
  --bg: #1a1c24;
  --card: #21242e;
  --card-hover: #2a2d35;
  --card2: #2a2d35;
  --border: rgba(139, 139, 106, 0.12);
  --border-hover: rgba(155, 139, 106, 0.25);
  --accent: #9b8b6a;
  --accent-hover: #b8a070;
  --accent-soft: rgba(155, 139, 106, 0.08);
  --accent-glow: rgba(155, 139, 106, 0.12);
  --text: #c9d1d9;
  --text-secondary: #8b8e95;
  --text-muted: #5a5d65;
  --shadow: 0 2px 12px rgba(0,0,0,0.2);
  --shadow-hover: 0 8px 28px rgba(155,139,106,0.06);
}

/* 主题中的硬编码覆盖 */
html.night nav {
  background: rgba(26, 28, 36, 0.88) !important;
}
html.night .hero h1 {
  background: linear-gradient(135deg, #9b8b6a 0%, #8b7b5a 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
html.night footer {
  color: #5a5d65;
}

/* 平滑过渡 */
html { color-scheme: light dark; }
body, nav, .section, .card, .skill-card, .project-card, .stat-card, .post-item {
  transition: background-color 0.6s ease, color 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}
