/* ============================================================
 * 太阳系模拟器 Solar System Simulator (Lite)
 * style.css — 暗色科幻 HUD · 毛玻璃面板
 * ============================================================ */

:root {
  --bg: #04060d;
  --glass: rgba(10, 17, 32, 0.55);
  --glass-strong: rgba(12, 20, 38, 0.72);
  --border: rgba(122, 178, 255, 0.16);
  --border-hi: rgba(126, 200, 255, 0.38);
  --accent: #5aa7ff;
  --accent-soft: rgba(90, 167, 255, 0.16);
  --text: #d9e6fb;
  --text-dim: #8ba0c4;
  --text-faint: #5d7294;
  --btn-bg: rgba(30, 45, 72, 0.78);
  --radius: 12px;
  --blur: blur(14px) saturate(1.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ============ 全局滚动条（深色主题 · 悬浮细胶囊） ============
 * 透明轨道 + 半透明短胶囊拇指（border+background-clip 悬浮内嵌效果），
 * 横竖向统一覆盖，替换浏览器默认灰白滚动条 */
* { scrollbar-width: thin; scrollbar-color: rgba(140, 175, 225, 0.28) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(140, 175, 225, 0.22);
  border: 3px solid transparent;
  border-radius: 9px;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(150, 195, 255, 0.45); }
::-webkit-scrollbar-thumb:active { background-color: rgba(160, 205, 255, 0.6); }
::-webkit-scrollbar-corner { background: transparent; }


html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  color: var(--text);
  user-select: none;
}

#canvas-host { position: fixed; inset: 0; }
#canvas-host canvas { display: block; }

/* ============ 天体标签（引线名牌：零尺寸锚点 + 内容绝对定位在天体身侧） ============ */
.body-label {
  pointer-events: none;
  width: 0; height: 0; overflow: visible;
  white-space: nowrap;
}
.body-label .in {
  position: absolute; left: 14px; top: 0;
  transform: translateY(-50%);
  display: flex; align-items: center;
}
.body-label .lead {
  display: block; width: 26px; height: 1px; margin-right: 7px;
  background: rgba(140, 180, 225, 0.35);
}
/* 斜引线段：从锚点拉到拐点（layoutLabels 每帧设定长度/角度，≤45°） */
.body-label .slant {
  position: absolute; left: 0; top: 0; width: 0; height: 1px;
  background: rgba(140, 180, 225, 0.35);
  transform-origin: 0 0;
}
.body-label .st { display: flex; flex-direction: column; gap: 1px; }
.body-label .txt {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(150, 192, 235, 0.6);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.6);
}
.body-label .zh {
  font-size: 9px; letter-spacing: 0.08em;
  color: rgba(150, 192, 235, 0.42);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
}
/* 真实比例：引线拉长，名字离天体更远更醒目 */
body.scale-true .body-label .lead { width: 44px; }
body.scale-true .body-label .in { left: 26px; }
/* 名牌悬停/轨道悬停高亮：文字加粗提亮转暖金，引线同步（.hl 由 JS 悬停轨道线或名牌时挂上） */
.body-label .st { pointer-events: auto; cursor: var(--cur-hot); }
.body-label.hl .txt { color: #ffe9c8; font-weight: 700; }
.body-label.hl .zh { color: rgba(255, 223, 158, 0.85); }
.body-label.hl .lead, .body-label.hl .slant { background: rgba(255, 215, 150, 0.75); }

/* ============ 载入页 ============ */
#loading {
  position: fixed; inset: 0; z-index: 100;
  background: radial-gradient(ellipse at center, #0a1224 0%, #04060d 70%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; transition: opacity 0.6s ease;
}
#loading.fade { opacity: 0; pointer-events: none; }
#loading .logo {
  font-size: 30px; font-weight: 600; letter-spacing: 0.35em; text-indent: 0.35em;
  background: linear-gradient(120deg, #9fc6ff, #e8f2ff 45%, #ffd9a0);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
#loading .logo-sub { font-size: 11px; letter-spacing: 0.6em; text-indent: 0.6em; color: var(--text-faint); }
#loading .ring {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid rgba(120, 170, 255, 0.15);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#loading-bar {
  width: 240px; height: 4px; border-radius: 2px; overflow: hidden;
  background: rgba(120, 170, 255, 0.12);
}
#loading-bar-fill {
  width: 0%; height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, #2f6fd8, #9fc6ff);
  transition: width 0.25s ease;
}
#loading-text { font-size: 12px; color: var(--text-dim); letter-spacing: 0.2em; }

/* ============ 顶部栏 ============ */
#top-bar {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 20; display: flex; align-items: center; gap: 14px;
  height: 44px; padding: 0 8px 0 16px;
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border); border-radius: 22px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}
#top-bar .brand { display: flex; align-items: baseline; gap: 8px; padding-right: 4px; }
#top-bar .brand .t { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; }
#top-bar .brand .s { font-size: 9px; letter-spacing: 0.3em; color: var(--text-faint); }

#view-tabs { display: flex; gap: 2px; background: rgba(5, 10, 22, 0.5); border-radius: 16px; padding: 3px; }
.tab-btn {
  border: none; cursor: var(--cur-hot); height: 28px; padding: 0 14px;
  border-radius: 13px; background: transparent;
  color: var(--text-dim); font-size: 12px; font-family: inherit; letter-spacing: 0.08em;
  transition: all 0.18s ease;
}
.tab-btn:hover { color: #ffd98f; }
.tab-btn.active { background: rgba(255, 199, 125, 0.10); color: #ffd98f; box-shadow: inset 0 0 0 1px rgba(255, 199, 125, 0.38); }

#search-box { position: relative; }
#search-input {
  width: 150px; height: 30px; border-radius: 15px;
  border: 1px solid transparent; outline: none;
  background: rgba(5, 10, 22, 0.5); color: var(--text);
  padding: 0 12px 0 30px; font-size: 12px; font-family: inherit;
  transition: all 0.2s ease;
}
#search-input:focus { border-color: var(--border-hi); width: 180px; }
#search-box .icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  font-size: 12px; color: var(--text-faint); pointer-events: none;
}

/* ============ 右上工具区（统一位置） ============ */
#tool-area {
  position: fixed; top: 14px; right: 16px; z-index: 20;
  display: flex; gap: 8px;
}
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--border); cursor: var(--cur-hot);
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  color: var(--text-dim); font-size: 15px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s ease;
}
.icon-btn:hover { color: #fff; border-color: var(--border-hi); }
.icon-btn.active { color: #fff; background: var(--btn-bg); border-color: var(--border-hi); }
#home-btn { font-size: 13px; }

/* ============ 左侧天体列表（行星—卫星抽屉） ============ */
#side-panel {
  position: fixed; left: 16px; top: 158px; transform: none;
  z-index: 15; width: 224px;
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
#side-panel .panel-title {
  font-size: 11px; letter-spacing: 0.25em; color: var(--text-dim);
  padding: 11px 14px 7px;
}
#body-list {
  max-height: min(62vh, calc(100vh - 290px)); overflow-y: auto; padding: 0 8px 9px; /* 上限同时受底部任务时间带约束：矮窗口不与页脚堆叠 */
}
.list-item {
  display: flex; align-items: center; gap: 8px;
  height: 31px; padding: 0 9px; border-radius: 8px;
  cursor: var(--cur-hot); transition: background 0.15s ease;
}
.list-item:hover { background: rgba(90, 167, 255, 0.10); }
.list-item.active { background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(90, 167, 255, 0.28); }
.li-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; box-shadow: 0 0 5px currentColor; }
.li-thumb {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  background-size: cover; background-position: center;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.65), inset 0 0 3px rgba(255, 255, 255, 0.28);
}
.li-zh { font-size: 13px; }
.li-en { font-size: 10px; color: var(--text-faint); margin-left: auto; letter-spacing: 0.03em; }
/* 行星抽屉行：chevron + 卫星数徽章 */
.li-drawer.open .li-chev { transform: rotate(90deg); }
.li-chev {
  flex: none; width: 0; height: 0; margin-left: 2px;
  border-left: 5px solid rgba(150, 180, 225, 0.8);
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  transition: transform 0.2s ease;
}
.li-count {
  flex: none; font: 600 9px/1 Consolas, monospace; letter-spacing: 0.05em;
  color: rgba(159, 198, 255, 0.85); background: rgba(90, 167, 255, 0.14);
  border-radius: 8px; padding: 2.5px 6px;
}
/* 卫星抽屉：缩进 + 展开动画 */
.moon-drawer {
  display: none;
  margin: 1px 0 4px 17px; padding-left: 7px;
  border-left: 1px solid rgba(122, 178, 255, 0.22);
}
.moon-drawer.open { display: block; }
.moon-drawer .list-item { height: 28px; }
.moon-drawer .li-dot { width: 6px; height: 6px; }
.moon-drawer .li-thumb { width: 13px; height: 13px; }
.moon-drawer .li-zh { font-size: 12px; color: rgba(214, 230, 255, 0.88); }

/* ============ 右侧信息面板 ============ */
#info-panel {
  position: fixed; right: 16px; top: 62px; bottom: 76px; z-index: 18;
  width: 300px;
  background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);
  transform: translateX(340px); opacity: 0;
  transition: transform 0.32s cubic-bezier(0.22, 0.9, 0.3, 1), opacity 0.28s ease;
  display: flex; flex-direction: column;
  overflow: hidden;
}
#info-panel.open { transform: translateX(0); opacity: 1; }
#info-panel .info-top {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0;
}
#info-close {
  width: 24px; height: 24px; border-radius: 7px; border: none; cursor: var(--cur-hot);
  background: rgba(30, 45, 72, 0.6); color: var(--text-dim); font-size: 12px;
}
#info-close:hover { color: #fff; background: var(--btn-bg); }
#info-body { flex: 1; overflow-y: auto; padding: 0 18px 18px; }

.info-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-top: 14px; padding-right: 38px; }
.info-names { display: flex; flex-direction: column; gap: 2px; }
.info-zh { font-size: 22px; font-weight: 600; letter-spacing: 0.06em; }
.info-en { font-size: 11px; letter-spacing: 0.18em; color: var(--text-dim); text-transform: uppercase; }
.info-type {
  flex: none; font-size: 10px; letter-spacing: 0.14em;
  border: 1px solid; border-radius: 20px; padding: 3px 10px;
  margin-top: 6px;
}
.info-desc { font-size: 12px; line-height: 1.75; color: var(--text-dim); margin: 10px 0 4px; }
.sec-title {
  font-size: 11px; letter-spacing: 0.22em; color: var(--accent);
  margin: 16px 0 6px; padding-left: 9px; position: relative;
}
.sec-title::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 11px; border-radius: 2px; background: var(--accent);
}
.info-row {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 12px; padding: 4px 0;
  border-bottom: 1px dashed rgba(120, 160, 220, 0.10);
}
.info-row .k { color: var(--text-faint); flex: none; }
.info-row .v { text-align: right; color: var(--text); }
.info-atmo { font-size: 12px; color: var(--text-dim); line-height: 1.6; }
.comp-list { display: flex; flex-wrap: wrap; gap: 6px; }
.comp-chip {
  font-size: 11px; color: var(--text-dim);
  background: rgba(90, 167, 255, 0.09); border: 1px solid rgba(90, 167, 255, 0.16);
  border-radius: 6px; padding: 3px 8px;
}
.timeline { display: flex; flex-direction: column; gap: 7px; }
.tl-item { display: flex; align-items: baseline; gap: 8px; font-size: 12px; }
.tl-dot {
  width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--accent); box-shadow: 0 0 5px var(--accent);
  position: relative; top: -1px;
}
.tl-year { flex: none; color: var(--accent); font-size: 11px; font-family: Consolas, monospace; }
.tl-txt { color: var(--text-dim); line-height: 1.5; }

/* ============ 时间轴（左上角） ============ */
#time-bar {
  position: fixed; top: 14px; left: 16px;
  z-index: 20; display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 12px;
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border); border-radius: 21px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}
#date-text {
  font-size: 13px; font-family: Consolas, "Courier New", monospace;
  color: #cfe2ff; min-width: 138px; text-align: center; letter-spacing: 0.04em;
}
.t-btn {
  height: 28px; min-width: 28px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--btn-bg); color: var(--text); cursor: var(--cur-hot);
  font-size: 11px; font-family: inherit; padding: 0 10px;
  transition: all 0.15s ease;
}
.t-btn:hover { border-color: var(--border-hi); color: #fff; }
#play-btn { width: 30px; padding: 0; font-size: 10px; }
#speed-select {
  height: 28px; border-radius: 14px;
  background: var(--btn-bg); color: var(--text);
  border: 1px solid var(--border); outline: none;
  font-size: 11px; font-family: inherit; padding: 0 8px; cursor: var(--cur-hot);
}
#speed-select option { background: #0c1426; color: var(--text); }

/* ============ 通用弹层（图层/画质/设置/指南） ============ */
.panel {
  position: fixed; top: 60px; right: 16px; z-index: 25;
  width: 210px;
  background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);
  padding: 12px 14px 14px;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: all 0.2s ease;
}
.panel.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.panel .panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.panel .panel-name { font-size: 12px; letter-spacing: 0.18em; color: var(--text); }
.panel-close {
  width: 24px; height: 24px; border-radius: 7px; border: none; cursor: var(--cur-hot);
  background: transparent; color: var(--text-faint); font-size: 11px;
  position: relative; z-index: 4; /* 浮于四角缩放手柄(z-index:3)之上：否则 × 右上角 6×8px 被手柄截胡，点了变缩放 */
}
.panel-close:hover { color: #fff; background: rgba(90, 167, 255, 0.12); }

.opt-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; height: 30px; margin-bottom: 5px;
  border-radius: 8px; border: 1px solid transparent;
  background: rgba(20, 32, 56, 0.55); color: var(--text-dim);
  font-size: 12px; font-family: inherit; padding: 0 10px; cursor: var(--cur-hot);
  transition: all 0.15s ease;
}
.opt-btn:hover { color: var(--text); border-color: var(--border); }
.opt-btn.active { background: var(--btn-bg); color: #fff; border-color: var(--border-hi); }
.opt-btn .chk { font-size: 11px; color: var(--accent); opacity: 0; }
.opt-btn.on .chk, .opt-btn.active .chk { opacity: 1; }

#guide-panel { width: 240px; }
#guide-panel .guide-text { font-size: 12px; line-height: 2.1; color: var(--text-dim); }
#guide-panel .guide-text b { color: var(--text); font-weight: 600; }

/* ============ 响应式（自动缩放 + 自动排布，防堆叠） ============ */
/* 一行三块（时间栏 340 + 顶栏 620 + 工具区 390 ≈ 1350px）放不下时逐级收紧 */
@media (max-width: 1360px) {
  #top-bar .brand .s { display: none; }
  #search-input { width: 104px; }
  #search-input:focus { width: 128px; }
  .tab-btn { padding: 0 11px; white-space: nowrap; } /* 页签文字不许竖着折行 */
  #tool-area { gap: 6px; right: 12px; }
  .icon-btn { width: 32px; height: 32px; font-size: 13px; }
}
/* 仍放不下：顶栏整体换到时间栏下方一行（左对齐），名言让位，侧栏下移 */
@media (max-width: 1240px) {
  #top-bar { top: 64px; left: 16px; transform: none; }
  #quote-bar { display: none; }
  #side-panel { top: 118px; }
}
@media (max-width: 1024px) {
  #search-box { display: none; }
  #info-panel { width: 272px; }
  #side-panel { width: 190px; }
  #date-text { min-width: 108px; }
}
@media (max-width: 680px) {
  #top-bar { top: 62px; gap: 4px; }
  #top-bar .brand { display: none; }
  #side-panel { width: 128px; left: 10px; }
  #body-list { max-height: 50vh; }
  .li-en { display: none; }
  .list-item { height: 25px; }
  .list-group-title { padding: 6px 8px 2px; }
  #info-panel { width: 236px; right: 10px; top: 58px; bottom: 70px; }
  #time-bar { gap: 6px; padding: 0 8px; }
  #speed-select { max-width: 76px; }
}

/* ============ 面板自由拖动 / 缩放（中部栏位通用，panels-dnd.js） ============ */
.dnd-enabled.panel { transition: opacity 0.2s ease, transform 0.2s ease; } /* 去掉 all：拖动时 left/top 不再被过渡拖慢 */
.dnd-resizable {
  resize: none; overflow: hidden; /* 缩放改由四角自定义手柄实现 */
  min-width: 150px; min-height: 56px;
  max-width: 96vw; max-height: calc(100vh - 66px);
}
.dnd-handle { cursor: move; }
/* live-hud 数据列表区整体为拖柄：行内元素不继承 move 光标，显式给出「可抓」提示（z186） */
#live-dyn.dnd-handle, #live-dyn.dnd-handle .lh-row, #live-dyn.dnd-handle .lh-head { cursor: move; }
#side-panel .panel-title, .panel .panel-head { cursor: move; }
.dnd-grip {
  position: absolute; top: 0; left: 0; right: 0; height: 36px; z-index: 1;
  cursor: move; touch-action: none;
}
.dnd-grip::before {
  content: ""; position: absolute; left: 16px; top: 3px;
  width: 20px; height: 8px;
  background: radial-gradient(circle, rgba(160,190,235,0.5) 1px, transparent 1.4px);
  background-size: 5px 4px; /* 左上角六点握把纹（上移到标题上方空带，避免压住名称首行） */
}
body.dnd-active { user-select: none; }
body.dnd-active * { pointer-events: none; }
body.dnd-active .dnd-enabled { pointer-events: auto; }

/* ============ 手机小屏适配（≤640px：单列自动排布 + 触控字号） ============ */
/* 布局改为纵向堆叠：时间栏（顶）→ 顶栏页签（其下）→ 天体列表；工具按钮改右侧竖列；
 * 信息面板与全部弹层改为底部卡片（!important 压过拖拽 inline 位置），杜绝互相堆叠 */
@media (max-width: 640px) {
  #time-bar { top: 10px; left: 10px; height: 38px; gap: 6px; padding: 0 9px; }
  #date-text { min-width: 104px; font-size: 12px; }
  .t-btn { height: 26px; min-width: 26px; padding: 0 8px; font-size: 11px; }
  #speed-select { height: 26px; max-width: 74px; font-size: 11px; }

  #top-bar { top: 56px; left: 10px; transform: none; height: 38px; gap: 5px; padding: 0 4px 0 6px; max-width: calc(100vw - 60px); }
  .tab-btn { height: 26px; padding: 0 9px; font-size: 12px; }

  /* 工具按钮：右侧竖列（横向放 9 个会溢出） */
  #tool-area { top: 10px; right: 8px; flex-direction: column; gap: 5px; }
  .icon-btn { width: 32px; height: 32px; font-size: 14px; }

  #side-panel { left: 10px; top: 104px; width: 138px; }
  #side-panel .panel-title { font-size: 11px; padding: 10px 11px 6px; }
  .list-item { height: 30px; }
  .li-zh { font-size: 12.5px; }

  /* 信息面板：底部宽卡片（右侧留出工具竖列），内部滚动 */
  #info-panel {
    left: 8px !important; right: 52px !important; top: auto !important; bottom: 8px !important;
    width: auto !important; max-height: 46vh; height: auto !important;
    transform: none !important; overflow-y: auto;
  }
  #info-panel .info-top { position: sticky; top: 0; z-index: 2; }

  /* 全部弹层：底部卡片（右侧给工具竖列让位；覆盖拖拽残留的 inline left/top） */
  .panel {
    left: 8px !important; right: 52px !important; top: auto !important; bottom: 8px !important;
    width: auto !important; max-width: none !important; max-height: 56vh !important;
    transform: none !important; overflow-y: auto !important;
  }

  #live-hud { left: 10px !important; bottom: 62px !important; max-height: 24vh; }

  /* 信息面板开着时，弹层卡片抬到信息面板上方（两者同为底部卡片，防堆叠） */
  body.info-open .panel { bottom: calc(46vh + 14px) !important; max-height: 38vh !important; }

  /* 有任意底部卡片打开时，左侧天体列表自动让位（手机浏览器均支持 :has） */
  body:has(.panel.open) #side-panel,
  body:has(#info-panel.open) #side-panel {
    opacity: 0; pointer-events: none;
  }
  #side-panel { transition: opacity 0.2s ease; }
}

/* ============ 超矮窗口（笔记本扩展屏 / 横屏手机）：纵向收紧 ============ */
@media (max-height: 500px) {
  #side-panel { max-height: calc(100vh - 170px); }
  #body-list { max-height: calc(100vh - 250px); }
  .panel { max-height: calc(100vh - 130px) !important; }
  #live-hud { max-height: 20vh; }
  .fx-panel { max-height: calc(100vh - 120px) !important; }
}

/* ============ 触屏设备：四角缩放手柄没意义，隐藏；命中区保持指尖尺寸 ============ */
@media (pointer: coarse) {
  .panel-resize { display: none; }
  .dnd-grip { height: 30px; }
}

/* ============ 后期画面层：暗角 + 胶片颗粒（参考站同款） ============ */
.fx-vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 5;
  background: radial-gradient(ellipse at center, transparent 56%, rgba(0,0,0,.22) 84%, rgba(0,0,0,.46) 100%);
}
.fx-grain {
  position: fixed; inset: -60%; width: 220%; height: 220%;
  pointer-events: none; z-index: 5; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
  animation: fx-grain-move .9s steps(4) infinite;
}
@keyframes fx-grain-move {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-1.5%, 1%); }
  50%  { transform: translate(1%, -1.5%); }
  75%  { transform: translate(-1%, 1.5%); }
  100% { transform: translate(1.5%, -1%); }
}

/* ============ 科幻光标皮肤（蓝色镂空小火箭 / 黄色喷火小火箭） ============ */
:root {
  --cur-def: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%237fd4ff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' transform='rotate(-45 16 16)'%3E%3Cpath d='M16 3 C20.5 8 22 13.5 22 18.5 L10 18.5 C10 13.5 11.5 8 16 3 Z'/%3E%3Ccircle cx='16' cy='12.5' r='2.6'/%3E%3Cpath d='M10 14.5 L5.5 21.5 L10 20.5'/%3E%3Cpath d='M22 14.5 L26.5 21.5 L22 20.5'/%3E%3Cpath d='M13 18.5 L19 18.5 L17.8 21.2 L14.2 21.2 Z'/%3E%3C/g%3E%3C/svg%3E") 7 7, crosshair;
  --cur-hot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%23ffcf7d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' transform='rotate(-45 16 16)'%3E%3Cpath d='M16 3 C20.5 8 22 13.5 22 18.5 L10 18.5 C10 13.5 11.5 8 16 3 Z'/%3E%3Ccircle cx='16' cy='12.5' r='2.6'/%3E%3Cpath d='M10 14.5 L5.5 21.5 L10 20.5'/%3E%3Cpath d='M22 14.5 L26.5 21.5 L22 20.5'/%3E%3Cpath d='M13 18.5 L19 18.5 L17.8 21.2 L14.2 21.2 Z'/%3E%3C/g%3E%3Cg fill='none' stroke='%23ffdd8c' stroke-width='1.4' stroke-linecap='round' transform='rotate(-45 16 16)'%3E%3Cpath d='M16 22.6 C15.2 24.4 16.8 25.6 16 28.2'/%3E%3Cpath d='M13.6 21.9 L12.7 24.9'/%3E%3Cpath d='M18.4 21.9 L19.3 24.9'/%3E%3C/g%3E%3C/svg%3E") 7 7, pointer;
}
html { cursor: var(--cur-def); }
button, a, label, .list-item, .cat-item, .chip, .opt-btn, .arrange-btn, .info-close { cursor: var(--cur-hot); }
.fx-cur-hot { cursor: var(--cur-hot) !important; }
input[type="text"], input[type="search"], textarea { cursor: text; }
