/* ============ 设计基础 ============ */
:root {
  --bg: #f3f6fb;
  --bg-2: #eaf0f7;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #f0f4f9;
  --ink: #0a1324;
  --ink-2: #23324a;
  --muted: #5d6b82;
  --faint: #93a1b5;
  --line: #e2e8f1;
  --line-2: #d3dce8;
  --blue: #2563eb;
  --blue-d: #1d4fd8;
  --sky: #0ea5e9;
  --teal: #14b8a6;
  --emerald: #10b981;
  --amber: #f59e0b;
  --coral: #f97316;
  --red: #e5484d;
  --cinnabar: #d63a1f;
  --grad: linear-gradient(118deg, #2563eb 0%, #0ea5e9 52%, #14b8a6 100%);
  --grad-soft: linear-gradient(118deg, rgba(37, 99, 235, .1), rgba(14, 165, 233, .08) 52%, rgba(20, 184, 166, .1));
  --radius: 16px;
  --radius-sm: 11px;
  --radius-xs: 8px;
  --shadow-1: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 1px rgba(15, 23, 42, .03);
  --shadow-2: 0 12px 32px -14px rgba(16, 42, 84, .2), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-3: 0 34px 70px -26px rgba(14, 56, 120, .32), 0 6px 18px rgba(15, 23, 42, .06);
  --ring: 0 0 0 3px rgba(37, 99, 235, .18);
  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --serif: "Songti SC", "STSongti-SC-Black", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --mono: "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(14, 165, 233, .22); }
.ico { flex: none; display: inline-block; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 滚动条 */
* { scrollbar-width: thin; scrollbar-color: #c9d3e1 transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #cfd8e5; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: #b6c2d3; background-clip: padding-box; border: 2px solid transparent; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px; border-radius: 11px; border: 1px solid transparent;
  font-weight: 600; font-size: 13.5px; letter-spacing: .01em; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, color .2s, opacity .2s;
  user-select: none; position: relative; overflow: hidden;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { color: #fff; background: var(--grad); background-size: 160% 100%; background-position: 0 0; box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .6), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 12px 26px -10px rgba(14, 140, 220, .7), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .45) 50%, transparent 80%);
  transition: transform .7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink-2); }
.btn-ghost:hover { border-color: #b8c5d8; background: #fbfcfe; box-shadow: var(--shadow-1); }
.btn-soft { background: rgba(37, 99, 235, .08); color: var(--blue); }
.btn-soft:hover { background: rgba(37, 99, 235, .14); }
.btn-danger { background: #fff1f1; color: var(--red); border-color: #ffd6d6; }
.btn-danger:hover { background: #ffe6e6; }
.btn-dark { background: #0f172a; color: #fff; }
.btn-dark:hover { background: #1e293b; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; gap: 5px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 13px; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }

/* ============ 表单 ============ */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; }
.field > label small { color: var(--faint); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); outline: none; transition: border-color .18s, box-shadow .18s, background .18s;
}
.textarea { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.65; resize: vertical; }
.textarea.mono { font-family: var(--mono); font-size: 12.5px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--sky); box-shadow: var(--ring); }
.input::placeholder, .textarea::placeholder { color: #a6b2c3; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-size: 13px; color: var(--ink-2); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 36px; height: 21px; border-radius: 20px; background: #cfd8e4; position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .22s var(--ease); }
.switch input:checked + .track { background: linear-gradient(120deg, var(--blue), var(--teal)); }
.switch input:checked + .track::after { transform: translateX(15px); }

/* ============ 标签与徽章 ============ */
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.chip-blue { background: rgba(37, 99, 235, .1); color: #1d4ed8; }
.chip-teal { background: rgba(20, 184, 166, .12); color: #0f766e; }
.chip-amber { background: rgba(245, 158, 11, .14); color: #b45309; }
.chip-coral { background: rgba(249, 115, 22, .12); color: #c2410c; }
.chip-red { background: rgba(229, 72, 77, .1); color: #c81e24; }
.chip-green { background: rgba(16, 185, 129, .12); color: #047857; }
.chip-gray { background: #eef2f7; color: #64748b; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.dot-live { background: var(--emerald); box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); } 70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

/* ============ 卡片 ============ */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.card-pad { padding: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-head h3 { margin: 0; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-head .sub { color: var(--muted); font-size: 12.5px; font-weight: 400; }

/* ============ 提示 ============ */
#toast-root { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; padding: 10px 16px 10px 12px; border-radius: 13px; background: rgba(15, 23, 42, .92); color: #fff; font-size: 13.5px; box-shadow: 0 16px 40px -12px rgba(15, 23, 42, .5); backdrop-filter: blur(10px); transform: translateY(-14px) scale(.96); opacity: 0; transition: all .28s var(--ease); max-width: min(92vw, 520px); }
.toast.in { transform: none; opacity: 1; }
.toast-ic { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, .14); }
.toast-success .toast-ic { background: linear-gradient(120deg, var(--emerald), var(--teal)); }
.toast-error .toast-ic { background: linear-gradient(120deg, #f87171, var(--coral)); }

/* ============ 弹窗 ============ */
.modal-wrap { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; }
.modal-mask { position: absolute; inset: 0; background: rgba(15, 25, 45, .32); backdrop-filter: blur(6px); opacity: 0; transition: opacity .22s; }
.modal { position: relative; width: min(480px, 100%); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-3); border: 1px solid rgba(255, 255, 255, .7); transform: translateY(18px) scale(.97); opacity: 0; transition: transform .28s var(--ease), opacity .22s; }
.modal-wide { width: min(860px, 100%); }
.modal-wrap.in .modal-mask { opacity: 1; }
.modal-wrap.in .modal { transform: none; opacity: 1; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 10px 22px; }
.modal-head h3 { margin: 0; font-size: 16.5px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.modal-body { padding: 6px 22px 18px; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 18px; border-top: 1px solid var(--line); }
.confirm-text { margin: 4px 0 6px; color: var(--ink-2); line-height: 1.7; }

/* ============ 表格 ============ */
.table-wrap { overflow: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.table th { position: sticky; top: 0; z-index: 1; text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid #edf1f6; vertical-align: middle; }
.table tr:hover td { background: #f9fbfe; }
.table .mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.empty { padding: 40px 16px; text-align: center; color: var(--faint); font-size: 13px; }
.empty .ico { display: block; margin: 0 auto 10px; color: #c3cedc; }

/* ============ 分页 ============ */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; color: var(--muted); font-size: 12.5px; }
.pager .btns { display: flex; gap: 6px; }

/* ============ 加载 ============ */
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(37, 99, 235, .18); border-top-color: var(--blue); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #eef2f7 25%, #f6f8fb 50%, #eef2f7 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .6s var(--ease) both; }

/* ============ 水印 ============ */
.watermark-layer { position: fixed; inset: 0; z-index: 2500; pointer-events: none; background-repeat: repeat; opacity: .9; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ============ 动态背景（用户端与后台共用）：流动光晕 + 青海波纹样 + 水墨远山 + 上升光点 ============ */
.scene-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: radial-gradient(120% 80% at 50% -10%, #f8fbff 0%, rgba(248, 251, 255, 0) 60%), linear-gradient(180deg, #f5f8fd 0%, #eef3fa 100%); }
.sb-aurora { position: absolute; inset: -20%; filter: blur(60px); opacity: .9; }
.sb-aurora i { position: absolute; border-radius: 50%; mix-blend-mode: multiply; will-change: transform; }
.sb-aurora i:nth-child(1) { width: 46vw; height: 46vw; left: 4%; top: 2%; background: radial-gradient(circle, rgba(37, 99, 235, .26), transparent 68%); animation: sbFloat1 26s ease-in-out infinite alternate; }
.sb-aurora i:nth-child(2) { width: 40vw; height: 40vw; right: 2%; top: 6%; background: radial-gradient(circle, rgba(20, 184, 166, .24), transparent 68%); animation: sbFloat2 31s ease-in-out infinite alternate; }
.sb-aurora i:nth-child(3) { width: 34vw; height: 34vw; left: 38%; top: 38%; background: radial-gradient(circle, rgba(14, 165, 233, .18), transparent 70%); animation: sbFloat3 23s ease-in-out infinite alternate; }
.sb-aurora i:nth-child(4) { width: 28vw; height: 28vw; right: 18%; bottom: 4%; background: radial-gradient(circle, rgba(245, 158, 11, .12), transparent 70%); animation: sbFloat1 34s ease-in-out infinite alternate-reverse; }
@keyframes sbFloat1 { to { transform: translate(9vw, 7vh) scale(1.12); } }
@keyframes sbFloat2 { to { transform: translate(-8vw, 9vh) scale(.92); } }
@keyframes sbFloat3 { to { transform: translate(-6vw, -8vh) scale(1.15); } }
.sb-wave { position: absolute; left: -80px; right: -80px; bottom: 0; height: 46vh; opacity: .07;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Ccircle cx='0' cy='0' r='40' fill='%23f3f6fb'/%3E%3Ccircle cx='0' cy='0' r='40' fill='none' stroke='%232563eb' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='0' r='31' fill='none' stroke='%232563eb' stroke-width='0.8'/%3E%3Ccircle cx='0' cy='0' r='22' fill='none' stroke='%232563eb' stroke-width='0.8'/%3E%3Ccircle cx='0' cy='0' r='13' fill='none' stroke='%232563eb' stroke-width='0.8'/%3E%3Ccircle cx='0' cy='0' r='4' fill='none' stroke='%232563eb' stroke-width='0.8'/%3E%3Ccircle cx='80' cy='0' r='40' fill='%23f3f6fb'/%3E%3Ccircle cx='80' cy='0' r='40' fill='none' stroke='%232563eb' stroke-width='1.1'/%3E%3Ccircle cx='80' cy='0' r='31' fill='none' stroke='%232563eb' stroke-width='0.8'/%3E%3Ccircle cx='80' cy='0' r='22' fill='none' stroke='%232563eb' stroke-width='0.8'/%3E%3Ccircle cx='80' cy='0' r='13' fill='none' stroke='%232563eb' stroke-width='0.8'/%3E%3Ccircle cx='80' cy='0' r='4' fill='none' stroke='%232563eb' stroke-width='0.8'/%3E%3Ccircle cx='40' cy='20' r='40' fill='%23f3f6fb'/%3E%3Ccircle cx='40' cy='20' r='40' fill='none' stroke='%232563eb' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='20' r='31' fill='none' stroke='%232563eb' stroke-width='0.8'/%3E%3Ccircle cx='40' cy='20' r='22' fill='none' stroke='%232563eb' stroke-width='0.8'/%3E%3Ccircle cx='40' cy='20' r='13' fill='none' stroke='%232563eb' stroke-width='0.8'/%3E%3Ccircle cx='40' cy='20' r='4' fill='none' stroke='%232563eb' stroke-width='0.8'/%3E%3Ccircle cx='0' cy='40' r='40' fill='%23f3f6fb'/%3E%3Ccircle cx='0' cy='40' r='40' fill='none' stroke='%232563eb' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='40' r='31' fill='none' stroke='%232563eb' stroke-width='0.8'/%3E%3Ccircle cx='0' cy='40' r='22' fill='none' stroke='%232563eb' stroke-width='0.8'/%3E%3Ccircle cx='0' cy='40' r='13' fill='none' stroke='%232563eb' stroke-width='0.8'/%3E%3Ccircle cx='0' cy='40' r='4' fill='none' stroke='%232563eb' stroke-width='0.8'/%3E%3Ccircle cx='80' cy='40' r='40' fill='%23f3f6fb'/%3E%3Ccircle cx='80' cy='40' r='40' fill='none' stroke='%232563eb' stroke-width='1.1'/%3E%3Ccircle cx='80' cy='40' r='31' fill='none' stroke='%232563eb' stroke-width='0.8'/%3E%3Ccircle cx='80' cy='40' r='22' fill='none' stroke='%232563eb' stroke-width='0.8'/%3E%3Ccircle cx='80' cy='40' r='13' fill='none' stroke='%232563eb' stroke-width='0.8'/%3E%3Ccircle cx='80' cy='40' r='4' fill='none' stroke='%232563eb' stroke-width='0.8'/%3E%3Ccircle cx='40' cy='60' r='40' fill='%23f3f6fb'/%3E%3Ccircle cx='40' cy='60' r='40' fill='none' stroke='%232563eb' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='60' r='31' fill='none' stroke='%232563eb' stroke-width='0.8'/%3E%3Ccircle cx='40' cy='60' r='22' fill='none' stroke='%232563eb' stroke-width='0.8'/%3E%3Ccircle cx='40' cy='60' r='13' fill='none' stroke='%232563eb' stroke-width='0.8'/%3E%3Ccircle cx='40' cy='60' r='4' fill='none' stroke='%232563eb' stroke-width='0.8'/%3E%3C/svg%3E") repeat; background-size: 80px 40px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 70%); -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 70%);
  animation: sbWave 18s linear infinite; }
@keyframes sbWave { to { transform: translateX(80px); } }
.sb-hills { position: absolute; left: 0; right: 0; bottom: 0; height: 30vh; min-height: 180px; }
.sb-hills svg { position: absolute; bottom: 0; left: -10%; width: 120%; height: 100%; }
.sb-hills svg:nth-child(1) { opacity: .5; animation: sbHill 60s ease-in-out infinite alternate; }
.sb-hills svg:nth-child(2) { opacity: .55; animation: sbHill 44s ease-in-out infinite alternate-reverse; }
.sb-hills svg:nth-child(3) { opacity: .6; animation: sbHill 36s ease-in-out infinite alternate; }
@keyframes sbHill { to { transform: translateX(6%); } }
.sb-sun { position: absolute; right: 12%; bottom: 17vh; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 236, 214, .9), rgba(251, 191, 140, .35) 55%, transparent 72%); filter: blur(2px); opacity: .55;
  animation: sbSun 14s ease-in-out infinite alternate; }
@keyframes sbSun { to { transform: translateY(-14px); opacity: .75; } }
.sb-dots b { position: absolute; bottom: -12px; width: 5px; height: 5px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 10px 2px rgba(56, 189, 248, .55); opacity: 0; animation: sbRise 22s linear infinite; }
@keyframes sbRise { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: .9; } 70% { opacity: .6; } 100% { transform: translate(30px, -92vh); opacity: 0; } }
.sb-dots b:nth-child(1) { left: 4%; animation-delay: 0s; animation-duration: 24s; width: 5px; height: 5px; }
.sb-dots b:nth-child(2) { left: 11%; animation-delay: -6s; animation-duration: 30s; width: 3px; height: 3px; }
.sb-dots b:nth-child(3) { left: 19%; animation-delay: -14s; animation-duration: 26s; width: 4px; height: 4px; }
.sb-dots b:nth-child(4) { left: 27%; animation-delay: -3s; animation-duration: 34s; width: 6px; height: 6px; }
.sb-dots b:nth-child(5) { left: 35%; animation-delay: -18s; animation-duration: 28s; width: 3px; height: 3px; }
.sb-dots b:nth-child(6) { left: 43%; animation-delay: -9s; animation-duration: 22s; width: 5px; height: 5px; }
.sb-dots b:nth-child(7) { left: 51%; animation-delay: -21s; animation-duration: 32s; width: 4px; height: 4px; }
.sb-dots b:nth-child(8) { left: 58%; animation-delay: -5s; animation-duration: 27s; width: 3px; height: 3px; }
.sb-dots b:nth-child(9) { left: 64%; animation-delay: -16s; animation-duration: 30s; width: 6px; height: 6px; }
.sb-dots b:nth-child(10) { left: 71%; animation-delay: -11s; animation-duration: 24s; width: 4px; height: 4px; }
.sb-dots b:nth-child(11) { left: 78%; animation-delay: -2s; animation-duration: 35s; width: 3px; height: 3px; }
.sb-dots b:nth-child(12) { left: 85%; animation-delay: -19s; animation-duration: 29s; width: 5px; height: 5px; }
.sb-dots b:nth-child(13) { left: 92%; animation-delay: -8s; animation-duration: 25s; width: 4px; height: 4px; }
.sb-dots b:nth-child(14) { left: 97%; animation-delay: -24s; animation-duration: 31s; width: 3px; height: 3px; }
@media (max-width: 860px) { .sb-dots b:nth-child(n+8) { display: none; } .sb-sun { width: 80px; height: 80px; right: 8%; } .sb-hills { height: 22vh; } }
@media (prefers-reduced-motion: reduce) { .scene-bg * { animation: none !important; } }

/* ============ 日间 / 夜间切换按钮（三个页面共用） ============ */
.theme-tog {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .85); color: var(--ink-2); cursor: pointer;
  box-shadow: var(--shadow-1); transition: transform .25s var(--ease), border-color .2s, color .2s, background .2s;
}
.theme-tog:hover { color: var(--blue); border-color: #b8c5d8; }
.theme-tog:active { transform: scale(.92); }
.theme-tog .ico { transition: transform .5s var(--ease); }
.theme-tog:hover .ico { transform: rotate(-24deg); }
/* 切换主题时短暂加过渡，平时不影响交互性能 */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .35s ease, border-color .35s ease, color .25s ease, box-shadow .35s ease !important;
}
