/* ============================================================
   艺术地球 ART EARTH · V1 视觉系统
   ASCII 平面界面 × 三维艺术地球 × 空间化艺术档案
   双主题：深色（墨/夜） 浅色（纸/日） · 等宽 · 硬阴影浮窗
   ============================================================ */

:root {
  /* 深色主题（柔和炭青 · 非死黑） */
  --bg: #101416;
  --bg2: #141c21;
  --panel: #131b20;
  --panel-hi: #1a242a;
  --ink: #e6ece8;
  --mid: #9db0a8;
  --dim: #6d8078;
  --faint: #4a5c55;
  --ghost: #2b3a35;
  --edge: #6d8078;
  --edge-hi: #9db0a8;
  --line: #3a4a44;
  --line-hi: #52645d;
  --line-soft: #243029;
  --inv-bg: #e6ece8;
  --inv-ink: #10161a;
  --hard-shadow: rgba(0, 0, 0, 0.55);
  --face-top: #1a2428;
  --face-l: #151e22;
  --face-r: #111a1d;
  --band: #1c262a;
  --noise-op: .06;
  --bg-70: rgba(16,20,22,0.70);
  --bg-82: rgba(16,20,22,0.82);
  --bg-92: rgba(16,20,22,0.92);
  --bg2-94: rgba(20,28,33,0.94);
  --ink-12: rgba(230,236,232,0.12);
  --ink-13: rgba(230,236,232,0.13);
  --ink-14: rgba(230,236,232,0.14);
  --ink-15: rgba(230,236,232,0.15);
  --ink-16: rgba(230,236,232,0.16);
  --ink-17: rgba(230,236,232,0.17);
  --ink-20: rgba(230,236,232,0.20);
  --ink-24: rgba(230,236,232,0.24);
  --ink-26: rgba(230,236,232,0.26);
  --ink-45: rgba(230,236,232,0.45);
  --ink-46: rgba(230,236,232,0.46);
  --ink-9: rgba(230,236,232,0.09);
  --line-64: rgba(58,74,68,0.64);
  --panel-80: rgba(19,27,32,0.80);
  --panel-86: rgba(19,27,32,0.86);
  --panel-90: rgba(19,27,32,0.90);
  --panel-94: rgba(19,27,32,0.94);
  --panel-bg-92: #121a1f;
  /* 地球三色（图03 蛋糕地球：海洋蓝 / 陆地绿 / 轨道黄） */
  --ocean: #4b74cb;
  --land: #226d4c;
  --route: #ef7a31;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
  --serif: Georgia, "Times New Roman", "Nimbus Roman", "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  --sans: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --sysbar-h: 34px;
  --cmdbar-h: 58px;
}

body.light {
  --bg: #F2F2EE;
  --bg2: #e8e4d6;
  --panel: #faf7ee;
  --panel-hi: #f2eee0;
  --ink: #1a180f;
  --mid: #4f4c42;
  --dim: #6b685c;
  --faint: #8f8c7f;
  --ghost: #b8b5a7;
  --edge: #1a180f;
  --edge-hi: #1a180f;
  --line: #c9c5b6;
  --line-hi: #a09c8c;
  --line-soft: #ddd9ca;
  --inv-bg: #1a180f;
  --inv-ink: #f5f2e7;
  --hard-shadow: rgba(26, 24, 15, 0.92);
  --face-top: #f8f5ec;
  --face-l: #e9e5d6;
  --face-r: #ddd9c8;
  --band: #efebe0;
  --noise-op: .05;
  --bg-70: rgba(242,242,238,0.70);
  --bg-82: rgba(242,242,238,0.82);
  --bg-92: rgba(242,242,238,0.92);
  --bg2-94: rgba(232,228,214,0.94);
  --ink-12: rgba(26,24,15,0.12);
  --ink-13: rgba(26,24,15,0.13);
  --ink-14: rgba(26,24,15,0.14);
  --ink-15: rgba(26,24,15,0.15);
  --ink-16: rgba(26,24,15,0.16);
  --ink-17: rgba(26,24,15,0.17);
  --ink-20: rgba(26,24,15,0.20);
  --ink-24: rgba(26,24,15,0.24);
  --ink-26: rgba(26,24,15,0.26);
  --ink-45: rgba(26,24,15,0.45);
  --ink-46: rgba(26,24,15,0.46);
  --ink-9: rgba(26,24,15,0.09);
  --line-64: rgba(201,197,182,0.64);
  --panel-80: rgba(250,247,238,0.80);
  --panel-86: rgba(250,247,238,0.86);
  --panel-90: rgba(250,247,238,0.90);
  --panel-94: rgba(250,247,238,0.94);
  --panel-bg-92: #f9f6ee;
  /* 浅色下地球三色（印刷可读的柔和版本） */
  --ocean: #527fd4;
  --land: #2f7957;
  --route: #de7734;
}

* { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0 !important; }
html, body { height: 100%; }

body {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .25s, color .25s;
}

/* 颗粒噪点（全局档案质感） */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  opacity: var(--noise-op);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hidden { display: none !important; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: var(--faint); }
::-webkit-scrollbar-track { background: transparent; }
::selection { background: var(--ink); color: var(--bg); }

button { font-family: var(--mono); background: none; border: none; color: inherit; cursor: pointer; }
input, select { font-family: var(--mono); }

/* ============================================================
   首页 HOME
   ============================================================ */
#home {
  position: fixed; inset: 0; z-index: 90;
  background: #091116; overflow: hidden;
  display: grid; place-items: center;
  perspective: 1100px;
}
#homeScene { position: absolute; inset: 0; width: 100%; height: 100%; }
#homeScene.no-webgl { background: none; }
.corner {
  position: absolute; z-index: 8; font-style: normal; color: rgba(210, 239, 234, .5);
  font-size: 14px; padding: 10px 14px; user-select: none;
}
.c-tl { top: 0; left: 0; } .c-tr { top: 0; right: 0; }
.c-bl { bottom: 0; left: 0; } .c-br { bottom: 0; right: 0; }

.home-room {
  position: relative; z-index: 2;
  width: min(920px, 94vw); height: min(760px, 88vh);
  display: grid; place-items: center;
  transform-style: preserve-3d;
  animation: roomIn 1.25s cubic-bezier(.18,.72,.14,1) both;
}
@keyframes roomIn { from { opacity: 0; transform: translateY(45px) rotateX(4deg) scale(.93); } to { opacity: 1; transform: none; } }
.home-status {
  position: absolute; left: 2%; top: 13%; z-index: 5;
  color: #bcd5d2; font-size: 11px; line-height: 1.7; letter-spacing: .16em;
  text-transform: uppercase; text-shadow: 0 2px 18px rgba(80,220,226,.35);
}
.home-status::before { content: "STATUS / 23:48"; display: block; color: #65a4aa; font-size: 8px; margin-bottom: 6px; }
.home-status b { color: #e4f4ef; font-family: var(--serif); font-size: clamp(20px, 3vw, 34px); font-weight: 400; letter-spacing: .08em; }
body.light .home-status { color: #4f7374; text-shadow: none; }
body.light .home-status::before { color: #688688; }
body.light .home-status b { color: #284a4c; }
.retro-computer {
  position: relative; width: min(670px, 82vw); height: min(650px, 78vh);
  transform: rotateX(-1deg) rotateY(-2deg); transform-style: preserve-3d;
  filter: drop-shadow(0 32px 34px rgba(0,0,0,.42));
}
.monitor-shell {
  position: absolute; left: 8%; top: 1%; width: 84%; height: 63%;
  padding: 32px 40px 42px;
  background: linear-gradient(145deg,#b8c8c7 0%,#738b8e 9%,#263e48 17%,#102a39 72%,#6d8587 93%,#b5c3be);
  border: 2px solid #a9bcbc; border-radius: 34px 34px 46px 46px !important;
  box-shadow: inset 0 0 0 8px rgba(4,22,31,.72), inset 0 -16px 26px rgba(0,0,0,.42), 0 18px 42px rgba(0,0,0,.42);
}
.monitor-screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  background: #07191e; border: 3px solid #07151c;
  border-radius: 45% 45% 42% 42% / 9% 9% 12% 12% !important;
  box-shadow: inset 0 0 34px #000, inset 0 0 85px rgba(11,120,136,.2), 0 0 0 4px rgba(154,190,192,.22);
}
.monitor-screen::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: radial-gradient(ellipse at 45% 35%, rgba(192,255,249,.07), transparent 42%), repeating-linear-gradient(0deg,rgba(0,0,0,.12) 0 1px,transparent 1px 3px);
  mix-blend-mode: screen;
}
.screen-scan { position: absolute; z-index: 6; left: 0; right: 0; height: 2px; background: rgba(119,244,239,.22); box-shadow: 0 0 14px #83e7e5; animation: crtScan 5s linear infinite; pointer-events: none; }
@keyframes crtScan { from { top: -3%; } to { top: 103%; } }
.home-inner {
  width: 100%; height: 100%; padding: 18px 26px 16px;
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; text-align: center; color: #b8f4ef;
  animation: homeIn 1.1s .25s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes homeIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.home-topline {
  width: 100%; display: flex; justify-content: space-between;
  font-size: 7px; letter-spacing: .17em; color: #69a8a9;
  border-top: 1px solid rgba(135,225,220,.25); border-bottom: 1px solid rgba(135,225,220,.25);
  padding: 3px 2px;
  text-transform: uppercase;
}
#homeGlobe { width: min(150px, 29vw); height: min(150px, 22vh); object-fit: contain; opacity: .92; }

.home-title {
  font-family: var(--serif);
  font-size: clamp(25px, 4vw, 42px);
  font-weight: 400; letter-spacing: .16em;
  line-height: 1; margin-top: -2px;
}
.home-sub {
  font-size: 7px; letter-spacing: .28em; color: #6ba5a6;
  text-transform: uppercase;
}
.home-stats { font-size: 7.5px; color: #6ba5a6; letter-spacing: .06em; }
.home-stats b { color: #bbefeb; font-weight: 400; }

.home-enter {
  margin-top: 5px;
  font-size: 9px; letter-spacing: .12em;
  padding: 6px 16px;
  border: 1px solid #79c5c3;
  background: rgba(11,54,61,.58);
  color: #c4fbf4;
  box-shadow: 3px 3px 0 rgba(81,161,164,.35);
  transition: background .12s, color .12s, transform .12s, box-shadow .12s;
}
.home-enter:hover { background: #a7e6df; color: #082329; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(81,161,164,.42); }
.home-enter:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(81,161,164,.3); }
.home-note { font-size: 6.5px; color: #5f9293; letter-spacing: .18em; }
.monitor-led { position: absolute; right: 25px; bottom: 18px; width: 7px; height: 7px; border-radius: 50% !important; background: #8deee0; box-shadow: 0 0 12px #63e8da; }
.monitor-neck { position: absolute; z-index: -1; left: 39%; top: 61%; width: 22%; height: 15%; background: linear-gradient(90deg,#506a70,#a6b8b6 48%,#3b535a); clip-path: polygon(17% 0,83% 0,100% 100%,0 100%); }
.keyboard-deck {
  position: absolute; left: 0; bottom: 1%; width: 100%; height: 27%;
  transform: perspective(650px) rotateX(48deg); transform-origin: 50% 100%;
  border: 2px solid #9eafae; border-radius: 23px 23px 35px 35px !important;
  background: linear-gradient(155deg,#95aaa9,#36535e 28%,#173642 76%,#839999);
  box-shadow: inset 0 5px 14px rgba(220,255,250,.2),0 24px 30px rgba(0,0,0,.42);
}
.keyboard-keys { position: absolute; left: 8%; top: 18%; width: 67%; height: 56%; display: grid; grid-template-columns: repeat(11,1fr); gap: 4px; transform: skewX(-3deg); }
.keyboard-keys i { min-width: 0; border-radius: 3px !important; background: linear-gradient(#2a9db0,#0a516b); border: 1px solid #64b8c4; box-shadow: 0 3px 0 #082a38,0 0 7px rgba(36,196,210,.18); }
.keyboard-keys i:nth-child(4n) { background: linear-gradient(#2b70ad,#183f78); }
.keyboard-keys i:nth-child(17n) { grid-column: span 2; }
.trackball { position: absolute; right: 8%; top: 31%; width: 48px; height: 48px; border-radius: 50% !important; background: radial-gradient(circle at 36% 28%,#59696c,#101c23 65%); box-shadow: inset -5px -7px 9px #071016,0 2px 0 #789091; }
.desk-shadow { position: absolute; bottom: 1%; width: 88%; height: 12%; background: radial-gradient(ellipse,rgba(0,0,0,.64),transparent 67%); filter: blur(8px); transform: translateZ(-40px); }

.home-foot {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between;
  padding: 10px 26px;
  font-size: 9px; letter-spacing: .2em; color: var(--dim);
  border-top: 1px solid var(--line-hi);
  text-transform: uppercase;
}

.home-theme-btn {
  position: absolute; top: 18px; right: 20px; z-index: 9;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  color: #b9d9d6; background: rgba(5,22,27,.55); border: 1px solid rgba(157,210,207,.38);
  padding: 4px 10px; cursor: pointer;
}
.home-theme-btn:hover { background: #b9d9d6; color: #0b252b; border-color: #b9d9d6; }

@media (max-width: 640px) {
  .home-room { height: 82vh; width: 100vw; }
  .home-status { top: 2%; left: 8%; }
  .home-status b { font-size: 24px; }
  .retro-computer { width: 96vw; height: 68vh; margin-top: 12vh; }
  .monitor-shell { left: 4%; width: 92%; padding: 24px 24px 34px; border-radius: 25px 25px 36px 36px !important; }
  .home-inner { padding: 12px 16px; }
  #homeGlobe { width: 112px; height: 112px; }
  .home-title { font-size: 27px; }
  .keyboard-keys { gap: 2px; }
  .trackball { width: 36px; height: 36px; }
  .home-foot { display: none; }
}

/* Home V3 — original off-work travel terminal, rendered as a real Three.js scene. */
/* Home V3 — original off-work travel terminal, rendered as a real Three.js scene. */
#home { background: var(--bg); }
#homeScene { z-index: 1; cursor: grab; touch-action: none; }
#home::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: .12; mix-blend-mode: multiply;
  background-image:
    repeating-radial-gradient(circle at 20% 30%, rgba(24,48,45,.28) 0 .45px, transparent .7px 2.2px);
  background-size: 4px 4px;
}
body:not(.light) #home::after { opacity: .08; mix-blend-mode: screen; }
#home > #homeGlobe { position: fixed; width: 1px; height: 1px; left: -10px; top: -10px; opacity: 0; pointer-events: none; }
.terminal-status {
  position: absolute; z-index: 6; left: 50%; top: clamp(20px, 5vh, 54px); transform: translateX(-50%);
  width: min(760px, 88vw); display: flex; flex-direction: column; align-items: center; gap: 7px;
  color: #182b2f; text-align: center; pointer-events: none;
}
.terminal-status span, .terminal-status small { font-size: 8px; letter-spacing: .22em; color: #708084; }
.terminal-status b { font-family: var(--serif); font-size: clamp(30px, 4.25vw, 66px); line-height: .97; font-weight: 400; letter-spacing: -.025em; }
body:not(.light) .terminal-status { color: #d3e1df; }
body:not(.light) .terminal-status span, body:not(.light) .terminal-status small { color: #72898b; }
.studio-caption {
  position: absolute; z-index: 6; left: 50%; bottom: 84px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 3px; pointer-events: none;
  color: var(--dim); text-align: center; font-size: 8px; letter-spacing: .12em;
}
.studio-caption b { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: .12em; }
.studio-controls {
  position: absolute; z-index: 7; right: clamp(18px, 4vw, 58px); bottom: 48px;
  display: flex; gap: 5px;
}
.studio-controls button, #home > .home-enter {
  border: 1px solid var(--line-hi); color: var(--ink); background: var(--panel-86);
  padding: 5px 9px; font-size: 9px; letter-spacing: .08em; box-shadow: none;
  backdrop-filter: blur(8px);
}
.studio-controls button:hover, #home > .home-enter:hover { color: var(--inv-ink); background: var(--inv-bg); transform: none; box-shadow: none; }
#home > .home-enter {
  position: absolute; z-index: 7; left: 50%; bottom: 45px; transform: translateX(-50%); margin: 0;
}
#home > .home-enter:hover { transform: translateX(-50%); }
#home > .home-stats {
  position: absolute; z-index: 6; left: 50%; bottom: 21px; transform: translateX(-50%);
  color: var(--dim); font-size: 8px; letter-spacing: .1em; white-space: nowrap; pointer-events: none;
}
#home > .home-stats b { color: var(--ink); }
#home .home-foot { z-index: 6; padding: 9px 18px; background: var(--bg-70); backdrop-filter: blur(5px); }
#home .home-theme-btn { top: 18px; right: 20px; color: var(--ink); background: var(--panel-80); border-color: var(--line-hi); }
#home .home-theme-btn:hover { color: var(--inv-ink); background: var(--inv-bg); }

@media (max-width: 700px) {
  .terminal-status { top: 20px; left: 50%; }
  .terminal-status b { font-size: 29px; }
  .terminal-status small { display: none; }
  .studio-caption { left: 50%; bottom: 82px; }
  .studio-caption b { font-size: 14px; }
  .studio-caption span { display: none; }
  .studio-controls { right: 12px; bottom: 80px; }
  #home > .home-enter { bottom: 45px; }
  #home > .home-stats { display: none; }
  .studio-controls button:nth-child(-n+2) { display: none; }
}

#dissolve {
  position: fixed; inset: 0; z-index: 300;
  pointer-events: none; display: none;
}

/* ============================================================
   主界面布局
   ============================================================ */
#app { position: fixed; inset: 0; background: var(--bg); transition: background .25s; }

#stage { position: absolute; inset: var(--sysbar-h) 0 var(--cmdbar-h) 0; overflow: hidden; }
#globe { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
#globe:active { cursor: grabbing; }

/* 地球转速滑杆（底部居中，极简 mono） */
#spinCtl {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px; z-index: 30;
  background: var(--bg-82);
  border: 1px solid var(--edge); border-radius: 3px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  color: var(--dim); user-select: none;
}
#spinCtl .sc-tag { color: var(--mid); }
#spinCtl input[type="range"] {
  width: 92px; height: 2px; appearance: none; -webkit-appearance: none;
  background: var(--edge-hi); outline: none; cursor: pointer;
}
#spinCtl input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 9px; height: 9px; background: var(--ink); border-radius: 0; cursor: pointer;
}
#spinCtl input[type="range"]::-moz-range-thumb {
  width: 9px; height: 9px; background: var(--ink); border: 0; border-radius: 0; cursor: pointer;
}
#spinCtl #spinLbl, #spinCtl #dotLbl { color: var(--ink); min-width: 2.4em; }
#spinCtl .sc-sep { width: 1px; height: 12px; background: var(--edge-hi); margin: 0 3px; }
@media (max-width: 720px) { #spinCtl { bottom: 54px; } #stageHint { bottom: 86px; } }

#stageHint {
  position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%);
  font-size: 9px; letter-spacing: .3em; color: var(--faint);
  pointer-events: none; text-transform: uppercase; white-space: nowrap;
}

/* ---------- 系统栏 ---------- */
#sysbar {
  position: absolute; top: 0; left: 0; right: 0; height: var(--sysbar-h); z-index: 40;
  display: flex; align-items: stretch;
  background: var(--bg2);
  border-bottom: 1px solid var(--line-hi);
  font-size: 10px; letter-spacing: .1em;
  overflow: visible;
}
.sys-cell { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-right: 1px solid var(--line-soft); white-space: nowrap; }
.sys-brand b { font-weight: 700; letter-spacing: .06em; }
.sys-brand .ver { color: var(--dim); font-size: 9px; }
.sys-modes { gap: 2px; }
.sys-modes button {
  font-size: 10.5px; color: var(--dim); padding: 3px 8px; letter-spacing: .08em;
  border: 1px solid transparent;
}
.sys-modes button:hover { color: var(--ink); }
.sys-modes button.on { color: var(--inv-ink); background: var(--inv-bg); }
.sys-modes button:disabled { opacity: .3; cursor: not-allowed; }
.sys-zone { flex: 1; min-width: 0; justify-content: center; overflow: hidden; }
.sys-zone .k { color: var(--faint); font-size: 9px; letter-spacing: .2em; }
#sysZoneV { color: var(--mid); overflow: hidden; text-overflow: ellipsis; }
.sys-coord { color: var(--dim); font-variant-numeric: tabular-nums; }
.sys-right { border-right: none; gap: 10px; color: var(--dim); }
#sysClock { font-variant-numeric: tabular-nums; color: var(--mid); }
.sys-icon-btn {
  border: 1px solid var(--line-hi); padding: 2px 7px; color: var(--mid);
  font-size: 11px; line-height: 1.2;
}
.sys-icon-btn:hover { color: var(--inv-ink); background: var(--inv-bg); border-color: var(--inv-bg); }
#themeBtn.theme-toggle { color: var(--ink); border-color: var(--edge-hi); }

/* ---------- 窗口菜单 ---------- */
#winMenu {
  position: absolute; top: calc(var(--sysbar-h) + 6px); right: 10px; z-index: 80;
  background: var(--panel); border: 1px solid var(--edge);
  box-shadow: 5px 5px 0 var(--hard-shadow);
  min-width: 218px; padding: 4px 0;
}
#winMenu .wm-title {
  font-size: 9px; letter-spacing: .2em; color: var(--dim);
  padding: 6px 12px 5px; border-bottom: 1px solid var(--line-soft);
  text-transform: uppercase;
}
#winMenu .wm-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 6px 12px; font-size: 11px; color: var(--ink);
  border: none; text-align: left;
}
#winMenu .wm-item:hover { background: var(--panel-hi); }
#winMenu .wm-item .cbx { color: var(--dim); width: 14px; }
#winMenu .wm-item.on .cbx { color: var(--inv-ink); background: var(--inv-bg); }
#winMenu .wm-item .cbx { display: inline-block; }
#winMenu .wm-no { color: var(--faint); font-size: 9px; }
#winMenu .wm-reset {
  display: block; width: 100%; padding: 6px 12px; font-size: 10px;
  color: var(--dim); border-top: 1px solid var(--line-soft); margin-top: 3px;
  letter-spacing: .08em;
}
#winMenu .wm-reset:hover { color: var(--inv-ink); background: var(--inv-bg); }

/* ============================================================
   悬浮窗口系统
   ============================================================ */
.win-col {
  position: absolute; z-index: 30;
  top: calc(var(--sysbar-h) + 14px);
  bottom: calc(var(--cmdbar-h) + 14px);
  display: flex; flex-direction: column; gap: 14px;
  pointer-events: none;
}
.col-left { left: 14px; width: 274px; }
.col-right { right: 14px; width: 332px; }

.win {
  pointer-events: auto;
  display: flex; flex-direction: column; min-height: 0;
  background: var(--panel);
  border: 1px solid var(--edge);
  box-shadow: 5px 5px 0 var(--hard-shadow);
  position: relative;
  transition: box-shadow .12s;
}
.win:hover { box-shadow: 6px 6px 0 var(--hard-shadow); }
.win.active { box-shadow: 7px 7px 0 var(--hard-shadow); outline: 1px solid var(--edge); outline-offset: -1px; }

.win.float { position: absolute; z-index: 45; max-height: calc(100vh - 100px); }
.win.dragging { z-index: 60; box-shadow: 10px 10px 0 var(--hard-shadow); cursor: grabbing; }

.win.folded { flex: 0 0 auto !important; }
/* !important 抵御 #currentBody/#regionBody 等 ID 级 display 规则（ID 特异性更高） */
.win.folded .win-body { display: none !important; }

/* 四角十字标 */
.win > .wc {
  position: absolute; color: var(--dim); font-size: 10px; line-height: 1;
  z-index: 2; pointer-events: none; user-select: none;
}
.wc-tl { top: -6px; left: -4px; } .wc-br { bottom: -6px; right: -4px; }

.win-head {
  display: flex; align-items: center; gap: 8px;
  padding: 0 6px 0 10px; height: 26px;
  border-bottom: 1px solid var(--edge);
  font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  background: var(--inv-bg); color: var(--inv-ink);
  flex: none;
  user-select: none;
  cursor: grab;
}
.win.folded .win-head { border-bottom: none; cursor: default; }
.win-head:active { cursor: grabbing; }
.win-no { opacity: .55; font-size: 9px; }
.win-tag { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-sub { margin-left: auto; opacity: .6; font-size: 9px; letter-spacing: .08em; white-space: nowrap; overflow: hidden; }
.win-ctl { display: flex; gap: 3px; margin-left: 6px; flex: none; }
.win-ctl button {
  width: 19px; height: 17px; line-height: 15px;
  border: 1px solid rgba(128, 128, 128, 0.45);
  color: inherit; font-size: 11px; padding: 0;
}
.win-ctl button:hover { background: var(--inv-ink); color: var(--inv-bg); border-color: var(--inv-ink); }

.win-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.win-body::-webkit-scrollbar { width: 4px; }

.empty-note { padding: 18px 14px; color: var(--faint); font-size: 10.5px; letter-spacing: .1em; }

/* ---------- 索引窗口 ---------- */
#winIndex .win-body { display: flex; flex-direction: column; }
.search-row {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 10px; border-bottom: 1px solid var(--edge-hi);
  background: var(--panel-hi); box-shadow: inset 3px 0 0 var(--ink);
  flex: none;
}
.search-row .prompt { color: var(--ink); font-size: 14px; font-weight: 700; }
#searchInput {
  flex: 1; min-width: 0; background: none; border: none; outline: none;
  color: var(--ink); font-size: 12.5px; caret-color: var(--ink);
}
#searchInput::placeholder { color: var(--faint); }

.chip-row { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 10px 10px; border-bottom: 2px solid var(--line); flex: none; background: var(--bg2); }
.chip-row::before { content: "FILTER / 内容类型"; flex: 0 0 100%; color: var(--faint); font-size: 8px; letter-spacing: .2em; margin-bottom: 2px; }
.chip {
  font-size: 9.5px; letter-spacing: .08em; color: var(--mid);
  border: 1px solid var(--edge-hi); padding: 3px 7px;
  cursor: pointer; user-select: none; transition: color .1s, border-color .1s;
}
.chip:hover { color: var(--ink); border-color: var(--edge-hi); }
.chip.on { color: var(--inv-ink); background: var(--inv-bg); border-color: var(--inv-bg); }

#resultList { flex: 1; min-height: 0; overflow-y: auto; background: var(--panel-90); }
#resultList::before { content: "INDEX / 匹配内容"; display: block; position: sticky; top: 0; z-index: 1; padding: 5px 10px; color: var(--faint); background: var(--panel); border-bottom: 1px solid var(--line-soft); font-size: 8px; letter-spacing: .2em; }
.res-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; cursor: pointer;
  border-bottom: 1px solid var(--line-soft);
  font-size: 10.5px;
}
.res-item:hover { background: var(--panel-hi); }
.res-item.sel { background: var(--panel-hi); box-shadow: inset 2px 0 0 var(--ink); }
.res-item .glyph { font-size: 8.5px; color: var(--dim); width: 12px; text-align: center; flex: none; }
.res-item .r-name { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-item .r-meta { color: var(--faint); font-size: 9.5px; white-space: nowrap; }
.res-item .r-main { flex: 1; min-width: 0; }
.res-item .st { margin-left: auto; flex: none; font-size: 10px; color: var(--ghost); }
.res-item .st.f { color: var(--ink); }
.res-item .st.w { color: var(--inv-ink); background: var(--inv-bg); padding: 0 3px; font-size: 8.5px; }

.glyph-mu::before { content: "●"; }
.glyph-ga::before { content: "■"; }
.glyph-de::before { content: "▲"; }
.glyph-co::before { content: "◆"; }
.glyph-ar::before { content: "⬢"; }
.glyph-pa::before { content: "✦"; }

/* ---------- 区域窗口 ---------- */
#regionBody { display: flex; flex-direction: column; }
#regionBody .rg-head { flex: none; }
#regionBody .rg-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--line-soft); }
#regionBody .rg-country { font-size: 9px; letter-spacing: .2em; color: var(--dim); text-transform: uppercase; }
#regionBody .rg-city { font-family: var(--serif); font-size: 21px; letter-spacing: .06em; margin-top: 2px; }
#regionBody .rg-count { font-size: 9.5px; color: var(--faint); margin-top: 3px; letter-spacing: .08em; }
#regionBody .res-item { padding: 5px 12px; }

/* ---------- 当前地点窗口 ---------- */
#currentBody { display: flex; flex-direction: column; }
.cur-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--line-soft); flex: none; }
.cur-type { font-size: 9px; letter-spacing: .2em; color: var(--dim); text-transform: uppercase; }
.cur-name { font-family: var(--serif); font-size: 22px; line-height: 1.15; margin-top: 3px; }
.cur-meta { font-size: 9.5px; color: var(--dim); margin-top: 4px; letter-spacing: .05em; }
.cur-tags { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 4px; }
.cur-tags .tg { font-size: 9px; color: var(--dim); border: 1px solid var(--line); padding: 1px 5px; }
.cur-intro { padding: 8px 12px; font-size: 10.5px; color: var(--mid); line-height: 1.65; border-bottom: 1px solid var(--line-soft); flex: none; }
.ascii-thumb {
  display: block; width: calc(100% - 24px); margin: 8px auto 0;
  border: 1px solid var(--line-hi); background: var(--panel-hi);
  image-rendering: pixelated; flex: none;
}
.thumb-cap {
  font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: var(--dim);
  padding: 3px 12px 6px; border-bottom: 1px solid var(--line-soft); flex: none;
}
.cur-facts {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--ink);
  padding: 6px 12px; border-bottom: 1px solid var(--line-soft); flex: none;
  background: var(--panel-hi);
}

.works-label {
  padding: 6px 12px 4px; font-size: 8.5px; letter-spacing: .24em;
  color: var(--faint); text-transform: uppercase; flex: none;
}
.work-row {
  display: flex; align-items: baseline; gap: 8px;
  padding: 5px 12px; border-bottom: 1px solid var(--line-soft);
  cursor: default;
}
.work-row:hover { background: var(--panel-hi); }
.work-row .w-star { flex: none; color: var(--ghost); font-size: 11px; cursor: pointer; padding: 0 2px; }
.work-row .w-star:hover { color: var(--mid); }
.work-row .w-star.f { color: var(--ink); }
.work-row .w-star.w { color: var(--inv-ink); background: var(--inv-bg); font-size: 9px; padding: 0 2px; }
.work-row .w-main { flex: 1; min-width: 0; }
.work-row .w-title { font-size: 11px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work-row .w-artist { font-size: 9px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cur-actions { display: flex; gap: 8px; padding: 10px 12px; margin-top: auto; border-top: 1px solid var(--line-soft); }

/* ---------- 收藏窗口 ---------- */
.coll-tabs { display: flex; gap: 2px; }
.coll-tabs button { font-size: 9.5px; letter-spacing: .14em; color: var(--inv-ink); opacity: .62; padding: 2px 7px; border: 1px solid transparent; text-transform: uppercase; }
.coll-tabs button:hover { opacity: 1; }
.coll-tabs button.on { opacity: 1; background: var(--inv-ink); color: var(--inv-bg); }

#collBody .coll-stats { padding: 7px 12px 5px; font-size: 9px; color: var(--faint); letter-spacing: .1em; border-bottom: 1px solid var(--line-soft); }
.coll-row {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 6px 12px; border-bottom: 1px solid var(--line-soft);
}
.coll-row .glyph { font-size: 8.5px; color: var(--dim); width: 12px; text-align: center; margin-top: 2px; flex: none; }
.coll-row .c-main { flex: 1; min-width: 0; }
.coll-row .c-name { font-size: 11px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coll-row .c-name:hover { text-decoration: underline; }
.coll-row .c-meta { font-size: 9px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coll-row .c-ops { display: flex; gap: 5px; margin-top: 3px; }
.coll-row .op { font-size: 9px; letter-spacing: .05em; color: var(--dim); border: 1px solid var(--line); padding: 1px 6px; cursor: pointer; user-select: none; }
.coll-row .op:hover { color: var(--ink); border-color: var(--edge-hi); }
.coll-row .op.on { color: var(--inv-ink); background: var(--inv-bg); border-color: var(--inv-bg); }
.city-div { font-size: 8.5px; letter-spacing: .2em; color: var(--faint); padding: 7px 12px 3px; text-transform: uppercase; border-bottom: 1px solid var(--line-soft); background: var(--bg2); }

/* ---------- 路线窗口 ---------- */
#routeBody .rt-sum { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); font-size: 9.5px; color: var(--dim); letter-spacing: .05em; line-height: 1.7; }
#routeBody .rt-sum b { color: var(--ink); font-weight: 400; }
.rt-city { border-bottom: 1px solid var(--line-soft); }
.rt-city.sel { background: var(--panel-hi); box-shadow: inset 2px 0 0 var(--ink); }
.rt-c-head { display: flex; align-items: baseline; gap: 8px; padding: 7px 12px 4px; }
.rt-idx { font-size: 9px; color: var(--inv-ink); background: var(--inv-bg); padding: 0 4px; flex: none; }
.rt-city.sel .rt-idx { background: none; color: var(--inv-bg); box-shadow: inset 0 0 0 1px var(--inv-bg); }
.rt-c-name { font-family: var(--serif); font-size: 15px; }
.rt-c-days { margin-left: auto; font-size: 9px; color: var(--dim); white-space: nowrap; }
.rt-why { padding: 2px 12px 6px; font-size: 9.5px; color: var(--dim); line-height: 1.6; }
.rt-stop {
  display: flex; align-items: baseline; gap: 7px;
  padding: 3px 12px 3px 24px; font-size: 10.5px;
}
.rt-stop .d { color: var(--faint); font-size: 8.5px; width: 20px; flex: none; }
.rt-stop .n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.rt-stop .n:hover { text-decoration: underline; }
.rt-stop .src { flex: none; font-size: 8px; letter-spacing: .1em; padding: 0 3px; }
.rt-stop .src.me { color: var(--inv-ink); background: var(--inv-bg); }
.rt-stop .src.ai { color: var(--dim); border: 1px dashed var(--edge-hi); }
.rt-actions { display: flex; gap: 8px; padding: 10px 12px; }

/* ============================================================
   命令栏
   ============================================================ */
#cmdbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--cmdbar-h); z-index: 40;
  display: flex; align-items: center; gap: 12px;
  background: var(--bg2); border-top: 1px solid var(--line-hi);
  padding: 0 14px; font-size: 10px;
  overflow-x: auto; scrollbar-width: none;
}
#cmdbar::-webkit-scrollbar { display: none; }
.cmd-prompt { color: var(--dim); flex: none; }
#cmdbar .field { display: flex; align-items: center; gap: 6px; flex: none; }
#cmdbar .field.grow { flex: 1; min-width: 60px; justify-content: flex-end; }
#cmdbar label { color: var(--dim); font-size: 9px; letter-spacing: .12em; }

.selwrap { position: relative; }
.selwrap::after { content: "▾"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; font-size: 9px; }
#cmdbar select {
  appearance: none; -webkit-appearance: none;
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--line-hi); font-size: 10.5px;
  padding: 3px 20px 3px 8px; outline: none; cursor: pointer;
}
#cmdbar select:hover { border-color: var(--edge-hi); }

input[type="range"].simple {
  width: 76px; height: 2px; -webkit-appearance: none; appearance: none;
  background: var(--line-hi); outline: none; cursor: pointer;
}
input[type="range"].simple::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 9px; height: 9px; background: var(--ink); cursor: pointer;
}
input[type="range"].simple::-moz-range-thumb { width: 9px; height: 9px; background: var(--ink); border: none; cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: none; color: var(--ink);
  border: 1px solid var(--edge);
  font-size: 10.5px; letter-spacing: .1em;
  padding: 6px 14px; user-select: none;
  box-shadow: 3px 3px 0 var(--hard-shadow);
  transition: background .1s, color .1s, transform .1s, box-shadow .1s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--hard-shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--hard-shadow); }
.btn.primary { background: var(--inv-bg); color: var(--inv-ink); border-color: var(--inv-bg); font-weight: 700; }
.btn.tiny { padding: 3px 9px; font-size: 9.5px; }
.btn:disabled { opacity: .3; cursor: not-allowed; }

.gen-info { color: var(--dim); font-size: 9.5px; letter-spacing: .05em; white-space: nowrap; }

/* ============================================================
   提示 / toast
   ============================================================ */
#toast {
  position: absolute; left: 14px; bottom: calc(var(--cmdbar-h) + 12px); z-index: 100;
  background: var(--panel); border: 1px solid var(--edge);
  box-shadow: 4px 4px 0 var(--hard-shadow);
  color: var(--ink); font-size: 10.5px; letter-spacing: .04em;
  padding: 7px 13px; max-width: min(480px, 80vw);
  opacity: 0; transition: opacity .15s; pointer-events: none;
}
#toast::before { content: ">> "; color: var(--dim); }
#toast.show { opacity: 1; }

/* ============================================================
   移动端
   ============================================================ */
#sheetTabs, #sheet { display: none; }

/* ---- 手机竖屏：地球上主视 + 底部单窗口 ---- */
@media (max-width: 880px) {
  :root { --sysbar-h: 40px; --cmdbar-h: 58px; --sheet-h: 40vh; }

  .win-col { display: none; }
  .sys-modes { display: none; }
  .win-ctl, #winMenuBtn { display: none; }
  #sysbar { font-size: 9px; }
  .sys-cell { padding: 0 8px; gap: 6px; }
  .sys-zone, .sys-coord { display: none; }
  .sys-brand b { font-size: 10px; }
  .sys-right { margin-left: auto; border-right: none; gap: 8px; }
  #sysClock { display: none; }

  #stage {
    top: var(--sysbar-h);
    bottom: calc(var(--cmdbar-h) + 33px + var(--sheet-h));
  }

  #sheetTabs {
    display: flex; z-index: 35;
    position: absolute; left: 0; right: 0;
    bottom: var(--cmdbar-h); height: 33px;
    background: var(--bg2); border-top: 1px solid var(--line-hi);
  }
  #sheetTabs button {
    flex: 1; min-width: 0; padding: 7px 2px; font-size: 10px; letter-spacing: .02em;
    color: var(--dim); border-right: 1px solid var(--line-soft);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  #sheetTabs button:last-child { border-right: none; }
  #sheetTabs button.on { color: var(--inv-ink); background: var(--inv-bg); }
  #sheetTabs button:disabled { opacity: .3; }

  #sheet {
    display: flex; flex-direction: column; z-index: 30;
    position: absolute; left: 0; right: 0;
    bottom: calc(var(--cmdbar-h) + 33px);
    height: var(--sheet-h);
    background: var(--bg);
  }
  #sheet .win {
    width: 100%; flex: 1; min-height: 0;
    border: none; border-top: 1px solid var(--line-hi);
    box-shadow: none;
  }
  #sheet .win.active, #sheet .win:hover { box-shadow: none; outline: none; }

  #toast { left: 8px; right: 8px; max-width: none; bottom: calc(var(--cmdbar-h) + 38px + var(--sheet-h)); }
}

/* ---- 手机横屏：左地球 + 右窗口列 ---- */
@media (max-width: 880px) and (orientation: landscape) {
  #stage {
    left: 0; right: 45%;
    top: var(--sysbar-h); bottom: var(--cmdbar-h);
  }
  #sheetTabs {
    left: auto; right: 0; width: 45%;
    bottom: auto; top: var(--sysbar-h); height: 33px;
  }
  #sheet {
    left: auto; right: 0; width: 45%;
    bottom: var(--cmdbar-h);
    top: calc(var(--sysbar-h) + 33px);
    height: auto;
  }
  #toast { left: 8px; right: calc(45% + 8px); bottom: calc(var(--cmdbar-h) + 12px); }
}

/* ---- 命令栏紧凑（窄屏）：参数可滚动，生成按钮钉在右侧 ---- */
@media (max-width: 640px) {
  .cmd-prompt { display: none; }
  #cmdbar { gap: 7px; padding: 0 8px; }
  #cmdbar .field { gap: 4px; }
  #cmdbar label { font-size: 8px; }
  #cmdbar select { padding: 3px 15px 3px 6px; font-size: 10px; }
  input[type="range"].simple { width: 46px; }
  #aiToggle { font-size: 8.5px; padding: 3px 6px; }
  #genBtn {
    position: sticky; right: 0; flex: none;
    padding: 5px 10px; font-size: 10px;
    background: var(--inv-bg); color: var(--inv-ink);
  }
  .gen-info { display: none; }
}

/* 一句话旅程：路线窗口入口按钮 */
.j-open-btn {
  margin-left: auto; margin-right: 8px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em;
  color: inherit; background: none; border: 1px solid rgba(128, 128, 128, 0.5);
  padding: 1px 8px; cursor: pointer;
}
.j-open-btn:hover { background: var(--inv-ink); color: var(--inv-bg); }
/* 移动端保留入口：路线 tab 标题栏也可打开总览 */

/* ============ 高斯泼溅视觉 ============ */
.splat-thumb {
  display: block; width: calc(100% - 24px); height: 150px;
  margin: 10px 12px 0;
  border-radius: 18px !important; border: 1px solid var(--line-hi);
  background: var(--bg2); box-shadow: 0 12px 28px -18px rgba(0,0,0,.8);
}
.tip-splat {
  display: block; width: 132px; height: 84px;
  border-radius: 8px; border: 1px solid var(--line);
  margin-bottom: 7px;
}

/* ============ 主按钮：生成艺术旅行 ============ */
#genBtn.gen-main {
  flex: none;
  font-family: var(--mono); font-size: 15px; font-weight: 700;
  letter-spacing: .1em;
  color: var(--bg); background: var(--ink);
  border: 1px solid var(--ink);
  padding: 12px 30px; cursor: pointer;
  box-shadow: 5px 5px 0 var(--hard-shadow);
  transition: transform .12s ease, box-shadow .12s ease;
  animation: genPulse 2.8s ease-in-out infinite;
}
#genBtn.gen-main span { display: block; margin-bottom: 1px; font-size: 7px; font-weight: 400; letter-spacing: .28em; opacity: .62; text-align: left; text-transform: uppercase; }
#genBtn.gen-main:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--hard-shadow); }
#genBtn.gen-main:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--hard-shadow); }
@keyframes genPulse {
  0%, 100% { outline: 1px solid rgba(128, 128, 128, 0); outline-offset: 2px; }
  50% { outline: 1px solid var(--edge-hi); outline-offset: 4px; }
}
@media (max-width: 640px) {
  #genBtn.gen-main { font-size: 12px; padding: 8px 16px; min-height: 48px; }
}

/* ============ 全屏旅程总览 ============ */
#routeStage {
  position: fixed; inset: 0; z-index: 300;
  background: var(--bg);
  display: flex; flex-direction: column;
  animation: jFade .3s ease;
}
@keyframes jFade { from { opacity: 0; } to { opacity: 1; } }

.rs-bar {
  flex: none; height: 48px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  color: var(--dim);
}
#jClose {
  background: var(--ink); border: 1px solid var(--ink); color: var(--bg);
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; line-height: 1;
  padding: 8px 16px; cursor: pointer;
}
#jClose:hover { background: var(--inv-ink); color: var(--inv-bg); border-color: var(--inv-ink); }

.rs-main { flex: 1; display: flex; min-height: 0; }

/* 左侧：一句话 */
.rs-sum {
  position: relative; width: 52%; min-width: 430px;
  padding: 5vh clamp(28px, 4vw, 70px) 30px;
  border-right: 1px solid var(--line-soft);
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.rs-sum > * { position: relative; z-index: 1; }
.j-archive {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em;
  color: var(--dim);
}
.j-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: .06em; margin: 12px 0 4px; color: var(--ink);
}
.j-title::after { content: ''; display: block; width: 60px; height: 3px; background: var(--ink); margin-top: 12px; }
.j-sentence {
  font-family: var(--serif);
  font-size: clamp(20px, 2.45vw, 35px); line-height: 2.75;
  color: var(--ink); margin: auto 0; padding: 5vh 0;
  text-align: center; text-wrap: balance;
}
.j-inline {
  display: inline-flex; flex-direction: column; align-items: stretch;
  vertical-align: middle; margin: 0 8px;
  background: transparent; border: 0;
  border-radius: 0 !important; overflow: visible;
  cursor: pointer; padding: 2px;
  transition: transform .18s ease;
}
.j-inline:hover { transform: rotate(0deg) scale(1.04); outline: 1px solid #2979FF; outline-offset: 2px; }
.j-inline canvas { display: block; width: clamp(112px, 12vw, 180px); height: clamp(74px, 8vw, 116px); }
.j-inline:nth-of-type(even) canvas { width: clamp(88px, 9vw, 138px); height: clamp(88px, 9vw, 138px); }
.j-inline .ji-cap {
  font-family: var(--mono); font-size: 9px; letter-spacing: .05em;
  color: var(--mid); padding: 4px 8px 5px;
  border-top: 1px solid var(--line-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 156px;
}
.j-inline .ji-cap { display: none; }
.j-inline .ji-cap b { color: var(--ink); font-weight: 400; }
.j-cities {
  margin-top: auto; padding-top: 16px;
  font-family: var(--mono); font-size: 11px; color: var(--mid);
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.j-cities .arr { color: var(--faint); }
.j-cities .jc { border: 1px solid var(--line); padding: 2px 8px; color: var(--ink); border-radius: 2px; }
.j-cities .jc.ai { border-style: dashed; color: var(--mid); }
.j-actions { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 10px; }
.j-actions button {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  color: var(--ink); background: none; border: 1px solid var(--edge);
  padding: 8px 15px; cursor: pointer; transition: background .12s, color .12s;
}
.j-actions button:hover { background: var(--inv-ink); color: var(--inv-bg); }

/* 漂浮柔光体积球背景 */
#routeStage .j-floats { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
#routeStage .j-floats canvas {
  position: absolute; width: 188px; height: 124px;
  opacity: .11; border-radius: 34px !important; filter: blur(1.5px);
  animation: jFloat 12s ease-in-out infinite alternate;
}
@keyframes jFloat {
  from { transform: translateY(-10px) rotate(-1.2deg); }
  to   { transform: translateY(12px) rotate(1.4deg); }
}

/* 右侧：AI 行程安排（主次排版 + 柔光体积块媒体） */
.rs-detail {
  flex: 1; min-width: 0; overflow-y: auto;
  padding: 26px clamp(24px, 3vw, 50px) 70px;
  background: var(--panel);
}
.rs-detail::before {
  content: "AI ROUTE / 推导的具体安排"; display: block; position: sticky; top: -26px; z-index: 4;
  margin: -26px 0 34px; padding: 16px 0 10px; background: var(--panel);
  border-bottom: 1px solid var(--line); color: var(--dim); font: 9px var(--mono); letter-spacing: .22em;
}
.rs-city { margin: 0 0 52px; padding-top: 3px; }
.rs-city:first-child { margin-top: 4px; }
.rsc-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.rsc-no { font-family: var(--mono); font-size: 10px; color: var(--faint); letter-spacing: .14em; }
.rsc-name {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(27px, 3.2vw, 42px); letter-spacing: .04em; color: var(--ink);
}
.rsc-sub { font-family: var(--mono); font-size: 9.5px; color: var(--dim); letter-spacing: .12em; margin-left: auto; }
.rsc-media { display: flex; align-items: center; gap: 16px; margin: 18px 0 15px; overflow-x: auto; padding: 4px 0 10px; }
.rsc-media::-webkit-scrollbar { height: 4px; }
.rsc-media::-webkit-scrollbar-thumb { background: var(--line); }
.rsc-video, .rsc-img {
  position: relative; flex: none; border-radius: 30px !important; overflow: hidden;
  border: 0;
  box-shadow: 0 20px 38px -20px rgba(0, 0, 0, .72);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.rsc-video:hover, .rsc-img:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .55); }
.rsc-video { width: min(58%, 330px); height: 188px; }
.rsc-img { width: 150px; height: 126px; }
.rsc-video canvas, .rsc-img canvas { display: block; width: 100%; height: 100%; }
.mv-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-family: var(--mono); font-size: 9px; letter-spacing: .04em;
  color: #fff; padding: 16px 9px 6px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .58));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rsc-stops { font-family: var(--mono); }
.rs-stop {
  display: flex; align-items: baseline; gap: 10px;
  padding: 7px 2px; border-bottom: 1px dashed var(--line-soft);
}
.rs-stop .d { color: var(--faint); font-size: 9px; min-width: 24px; letter-spacing: .06em; }
.rs-stop .n { color: var(--ink); font-size: 12.5px; white-space: nowrap; }
.rs-stop .a {
  color: var(--dim); font-size: 10px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
  min-width: 0;
}
.rs-more { font-family: var(--mono); font-size: 9.5px; color: var(--faint); padding: 5px 2px; letter-spacing: .1em; }
.rsc-why { margin-top: 11px; max-width: 48ch; font-family: var(--mono); font-size: 9.5px; color: var(--faint); letter-spacing: .04em; line-height: 1.7; }

.rs-foot {
  flex: none; display: flex; justify-content: space-between; gap: 10px;
  padding: 8px 18px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 9px; letter-spacing: .14em;
  color: var(--faint);
}

/* 竖屏：上下分栏 */
@media (orientation: portrait), (max-width: 880px) {
  .rs-main { flex-direction: column; }
  .rs-sum {
    width: auto; min-width: 0;
    border-right: 0; border-bottom: 1px solid var(--line-soft);
    padding: 16px 16px 14px;
    max-height: 54%;
    flex: none;
  }
  .j-title { font-size: 26px; margin: 8px 0 2px; }
  .j-title::after { width: 44px; }
  .j-sentence { font-size: 17px; line-height: 2.55; margin: 6px 0; padding: 10px 0; }
  .j-inline { margin: 0 3px; border-radius: 0 !important; }
  .j-inline canvas { width: 104px; height: 68px; }
  .j-inline:nth-of-type(even) canvas { width: 76px; height: 76px; }
  .j-inline .ji-cap { max-width: 104px; font-size: 8px; }
  .j-actions { margin-top: 14px; padding-top: 12px; gap: 8px; }
  .j-actions button { padding: 6px 10px; font-size: 10px; }
  #routeStage .j-floats canvas { width: 110px; height: 74px; opacity: .12; }
  .rs-detail { padding: 14px 14px 46px; }
  .rs-detail::before { top: -14px; margin: -14px 0 24px; padding-top: 14px; }
  .rsc-name { font-size: 21px; }
  .rsc-sub { margin-left: 0; width: 100%; }
  .rsc-video { width: 220px; height: 138px; }
  .rsc-img { width: 112px; height: 102px; }
  .rs-foot { flex-direction: column; gap: 2px; }
}

/* 旅程总览内的来源徽章（复用路线窗口语义） */
.rs-stop .src { flex: none; font-size: 8px; letter-spacing: .1em; padding: 0 3px; }
.rs-stop .src.me { color: var(--inv-ink); background: var(--inv-bg); }
.rs-stop .src.ai { color: var(--dim); border: 1px dashed var(--edge-hi); }
.rsc-head .src.ai { font-family: var(--mono); font-size: 8px; color: var(--dim); border: 1px dashed var(--edge-hi); padding: 1px 5px; letter-spacing: .1em; }

/* ============================================================
   V6 EDITORIAL SYSTEM — 复印档案 × 大字号编辑排版 × 柔光摄影体块
   ============================================================ */
body.light {
  --bg: #F2F2EE; --bg2: #e9e9e4; --panel: #f7f7f3; --panel-hi: #ededE8;
  --ink: #171713; --mid: #55554f; --dim: #74746c; --faint: #99998f;
  --line: #c4c4bb; --line-hi: #73736c; --line-soft: #d9d9d1;
  --inv-bg: #171713; --inv-ink: #f4f4ef; --hard-shadow: rgba(22,22,18,.18);
}

#app::before {
  content: "GRAPHIC.SYS / ART.EARTH / HUMAN-CENTERED";
  position: absolute; z-index: 2; left: 50%; top: calc(var(--sysbar-h) + 9px);
  transform: translateX(-50%); pointer-events: none;
  color: var(--faint); font: 8px var(--mono); letter-spacing: .24em;
}

#sysbar {
  background: var(--bg-92);
  border-bottom: 1px solid var(--edge-hi);
  box-shadow: 0 3px 0 var(--line-64);
  backdrop-filter: blur(8px);
}
.sys-brand b { font-size: 11px; letter-spacing: .13em; }
.sys-modes button { padding: 4px 10px; }
.sys-modes button.on { outline: 1px solid var(--edge-hi); outline-offset: 2px; }

.win {
  background: var(--panel-94);
  border: 1px solid var(--edge-hi);
  box-shadow: 0 12px 34px -22px rgba(0,0,0,.72);
  backdrop-filter: blur(9px);
}
.win:hover, .win.active { box-shadow: 0 16px 40px -20px rgba(0,0,0,.68); outline: none; }
.win-head {
  height: 31px; padding: 0 9px 0 11px;
  background: transparent; color: var(--ink);
  border-bottom: 3px double var(--edge-hi);
}
.win-tag { font-weight: 700; letter-spacing: .2em; }
.win-sub { color: var(--faint); margin-left: auto; }

.search-row {
  padding: 13px 12px; background: transparent;
  border-bottom: 1px solid var(--edge-hi); box-shadow: none;
}
.search-row .prompt { font-family: var(--serif); font-size: 19px; font-weight: 400; }
#searchInput { font-family: var(--sans); font-size: 14px; }
.chip-row { gap: 4px; padding: 8px 10px 11px; background: transparent; border-bottom: 1px solid var(--line); opacity: .72; }
.chip-row:hover { opacity: 1; }
.chip { padding: 2px 7px; color: var(--dim); border-color: var(--line-hi); }
.chip.on { opacity: 1; color: var(--inv-ink); background: var(--inv-bg); }
#resultList::before { padding: 7px 10px; background: var(--panel); }
.res-item { padding: 8px 10px; }
.res-item .r-name { font-family: var(--sans); font-size: 11.5px; }
.res-item.sel { background: var(--ink); color: var(--inv-ink); box-shadow: none; }
.res-item.sel .r-name, .res-item.sel .r-meta, .res-item.sel .glyph { color: var(--inv-ink); }

.cur-head { padding: 14px 14px 10px; }
.cur-name { font-family: var(--serif); font-size: clamp(28px, 3vw, 42px); line-height: .98; letter-spacing: -.02em; }
.cur-meta { margin-top: 8px; }
.cur-intro { padding: 10px 14px 12px; font-family: var(--sans); font-size: 11px; line-height: 1.75; }
.cur-tags { gap: 3px; }
.cur-tags .tg { border: 0; border-bottom: 1px solid var(--line-hi); padding: 1px 2px; }
.splat-thumb {
  width: calc(100% - 28px); height: 185px; margin: 14px 14px 3px;
  border: 0; border-radius: 34px !important;
  box-shadow: 0 22px 38px -24px rgba(0,0,0,.78), inset 0 0 24px rgba(255,255,255,.12);
}
.thumb-cap { margin: 0 14px; padding: 5px 0 8px; border-bottom: 1px solid var(--line); }
.work-row { padding: 7px 14px; }
.work-row .w-title { font-family: var(--sans); font-size: 11.5px; }
.cur-actions { padding: 12px 14px; gap: 9px; }

.btn { box-shadow: none; padding: 7px 13px; border-color: var(--line-hi); }
.btn:hover { transform: none; box-shadow: none; background: var(--ink); color: var(--inv-ink); }
.btn.primary { position: relative; padding-right: 26px; }
.btn.primary::after { content: "→"; position: absolute; right: 9px; }
.coll-row { padding: 8px 12px; }
.coll-row .c-name { font-family: var(--sans); font-size: 11.5px; }
.coll-row .op.on { outline: 1px solid var(--edge-hi); outline-offset: 2px; }

#cmdbar {
  background: var(--bg2-94);
  border-top: 3px double var(--edge-hi); gap: 14px; backdrop-filter: blur(10px);
}
#cmdbar .field:not(.grow) { opacity: .72; }
#cmdbar .field:not(.grow):hover { opacity: 1; }
#genBtn.gen-main {
  min-width: 250px; min-height: 52px; padding: 8px 26px;
  font-family: var(--sans); font-size: 15px; text-align: left;
  box-shadow: 6px 6px 0 var(--ink-24);
  animation: none;
}
#genBtn.gen-main::after { content: "↗"; float: right; margin-left: 20px; font-size: 20px; line-height: .8; }
#genBtn.gen-main:hover { transform: translate(-2px,-2px); box-shadow: 9px 9px 0 var(--ink-20); }

.tip-splat { border: 0; border-radius: 18px !important; box-shadow: 0 12px 26px -18px #000; }

/* 行程结果：图11/图10式括号编辑排版，左艺术叙事、右可扫描安排。 */
#routeStage { background: var(--bg); }
.rs-bar { height: 42px; border-bottom: 3px double var(--edge-hi); }
.rs-sum {
}
.rs-sum::before {
  content: "( IN / NO / PARTICULAR / ORDER )";
  position: absolute; left: 4vw; top: 13vh; max-width: 72%;
  font: 400 clamp(42px, 6.4vw, 104px)/.83 var(--sans);
  letter-spacing: -.07em; color: var(--ink); opacity: .055;
  pointer-events: none;
}
.j-archive { padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.j-title { font-family: var(--sans); font-size: clamp(34px, 4.5vw, 70px); line-height: .86; letter-spacing: -.055em; }
.j-title::after { width: 100%; height: 1px; margin-top: 18px; }
.j-sentence { font-family: var(--sans); font-size: clamp(22px, 2.55vw, 39px); line-height: 2.6; letter-spacing: -.03em; }
.j-sentence::before { content: "("; margin-right: .2em; font-size: 1.7em; font-weight: 300; vertical-align: -.12em; }
.j-sentence::after { content: ")"; margin-left: .2em; font-size: 1.7em; font-weight: 300; vertical-align: -.12em; }
.j-inline { border-radius: 0 !important; box-shadow: none; background: none; }
.j-cities .jc { border: 0; border-bottom: 1px solid var(--edge-hi); padding: 3px 2px; }
.j-actions button:first-child { background: var(--ink); color: var(--inv-ink); border-color: var(--ink); }
.rs-detail { background: var(--panel); border-left: 0; }
.rs-detail::before { border-bottom: 3px double var(--edge-hi); }
.rs-city { padding-top: 10px; margin-bottom: 66px; }
.rsc-head { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.rsc-name { font-family: var(--sans); font-size: clamp(34px, 4vw, 60px); line-height: .85; letter-spacing: -.055em; }
.rsc-video, .rsc-img { border-radius: 34px !important; }
.rs-stop { padding: 9px 2px; }
.rs-stop .n { font-family: var(--sans); font-size: 13px; }
.rsc-why { max-width: 56ch; }
.rs-foot { border-top: 3px double var(--edge-hi); }

@media (max-width: 880px) {
  #app::before { display: none; }
  #sheet .win { background: var(--panel); }
  .win-head { height: 30px; }
  .splat-thumb { height: 180px; }
  #genBtn.gen-main { min-width: 154px; min-height: 50px; padding: 7px 13px; font-size: 12px; }
  #genBtn.gen-main::after { margin-left: 8px; font-size: 16px; }
  .rs-sum::before { top: 80px; font-size: 44px; }
  .j-title { font-size: 30px; }
  .j-sentence { font-size: 17px; line-height: 2.55; }
}

/* ============================================================
   V7 — 复印档案风（图1）× 柔边立体体块（图2）× 括号编辑排版（图3/4）
   原则：去掉明显边边框框；硬投影全部改软阴影；图片一律柔边体块
   ============================================================ */
:root { --noise-op: .1; }
body.light { --noise-op: .09; }

/* ---------- 去硬边框：窗体 / 系统栏 / 命令栏 ---------- */
#sysbar {
  border-bottom: 1px solid var(--ink-20);
  box-shadow: none;
}
.sys-cell { border-right: 0; }
#cmdbar {
  border-top: 1px solid var(--ink-20);
  box-shadow: none;
}
.win {
  border: 1px solid var(--ink-13);
  box-shadow: 0 22px 48px -30px rgba(0, 0, 0, .55);
}
.win:hover, .win.active { box-shadow: 0 28px 56px -30px rgba(0, 0, 0, .5); outline: none; }
.win.dragging { box-shadow: 0 36px 64px -30px rgba(0, 0, 0, .5); }
.win-head { border-bottom: 1px solid var(--ink-17); }
.win-ctl button { border: 0; opacity: .5; }
.win-ctl button:hover { background: none; color: inherit; opacity: 1; }
#winMenu {
  border: 1px solid var(--ink-15);
  box-shadow: 0 24px 48px -26px rgba(0, 0, 0, .5);
}
#winMenu .wm-title, #winMenu .wm-reset { border-color: var(--ink-12); }
#toast {
  border: 1px solid var(--ink-15);
  box-shadow: 0 18px 38px -22px rgba(0, 0, 0, .5);
}
.search-row { border-bottom: 1px solid var(--ink-20); }
.chip-row { border-bottom: 1px solid var(--ink-12); }

/* ---------- 按钮层级：主按钮实心强调，次按钮去框 ---------- */
.btn { border-color: var(--ink-26); }
.btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip { border: 0; border-bottom: 1px solid var(--line-hi); padding: 2px 3px; }
.chip.on { border-bottom-color: var(--inv-bg); }

#genBtn.gen-main {
  min-width: 246px; min-height: 56px; padding: 9px 30px;
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; text-align: left;
  background: var(--ink); color: var(--bg); border: 0;
  box-shadow: 0 20px 36px -20px rgba(0, 0, 0, .6);
  animation: none;
  transition: transform .14s ease, box-shadow .14s ease;
}
#genBtn.gen-main span { letter-spacing: .3em; }
#genBtn.gen-main::after { content: "↗"; float: right; margin-left: 22px; font-size: 19px; line-height: .8; }
#genBtn.gen-main:hover { transform: translateY(-2px); box-shadow: 0 28px 44px -20px rgba(0, 0, 0, .58); }
#genBtn.gen-main:active { transform: translateY(1px); box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .5); }

/* 首页按钮同步去硬框 */
.studio-controls button, #home > .home-enter {
  border: 1px solid var(--ink-24);
  box-shadow: none;
}
#home > .home-enter {
  background: var(--inv-bg); color: var(--inv-ink); border-color: var(--inv-bg);
  padding: 10px 30px; font-size: 11px; letter-spacing: .18em;
  box-shadow: 0 18px 34px -18px rgba(0, 0, 0, .45);
}
#home > .home-enter:hover { background: var(--inv-bg); color: var(--inv-ink); transform: translate(-50%, -2px); }
#home .home-theme-btn { border-color: var(--ink-24); }

/* ---------- 图2：柔边立体体块（canvas 自带体积，容器零装饰） ---------- */
.splat-thumb {
  width: calc(100% - 24px); height: auto; margin: 4px 12px 10px;
  border: 0; background: none; box-shadow: none;
}
#currentBody.location-updated { animation: currentPulse .42s ease-out; }
@keyframes currentPulse {
  0% { box-shadow: inset 0 0 0 2px rgba(41, 121, 255, .72); }
  100% { box-shadow: inset 0 0 0 2px rgba(41, 121, 255, 0); }
}
.tip-splat { border: 0; box-shadow: none; background: none; height: auto; }
/* 图2 题注：上方居中 mono 小字 + 竖线接引 */
.thumb-cap {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin: 4px 14px 0; padding: 10px 0 0; border: 0;
  font-size: 8px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim);
  text-align: center;
}
.thumb-cap::after { content: ""; width: 1px; height: 14px; background: var(--ink-45); }

/* ---------- 旅程总览：图4 括号大标题 ---------- */
.j-title {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(26px, 3.1vw, 44px); line-height: 1.15; letter-spacing: -.02em;
  margin: 14px 0 6px; white-space: nowrap;
}
.j-title::after { display: none; }
.j-title .paren { font-weight: 200; letter-spacing: 0; padding: 0 .06em; color: var(--ink); }
.j-title .jt-img { height: .82em; width: auto; border-radius: 0 !important; vertical-align: -.13em; margin: 0 .05em; }

/* ---------- 旅程总览：图3 句子内嵌体块 ---------- */
.j-sentence { line-height: 2.45; }
.j-inline {
  overflow: visible; box-shadow: none;
  background: none;
  border-radius: 0 !important;
  padding: 5px 6px; margin: 0 7px;
}
.j-inline:hover { transform: translateY(-4px) rotate(-1.2deg); box-shadow: none; }
.j-inline canvas { width: clamp(122px, 11.5vw, 182px); height: auto; display: block; }
.j-inline:nth-of-type(4n+2) canvas { width: clamp(100px, 9.5vw, 148px); }
.j-inline:nth-of-type(4n+3) canvas { width: clamp(88px, 8.2vw, 130px); }

/* 城市链：括号化 */
.j-cities .jc { border: 0; padding: 2px 1px; }
.j-cities .jc::before { content: "( "; color: var(--faint); }
.j-cities .jc::after { content: " )"; color: var(--faint); }
.j-cities .jc.ai { color: var(--mid); }

.j-actions { border-top: 1px solid var(--ink-16); }
.j-actions button { border: 0; letter-spacing: .16em; text-transform: uppercase; font-size: 10px; }
.j-actions button:hover { background: var(--ink); color: var(--bg); }
.j-actions button:first-child { background: var(--ink); color: var(--bg); }

/* ---------- 图3：底部色域 + 漂浮体块/空白矩块 ---------- */
.rs-sum {
}
.rs-sum::before { opacity: .04; }
#routeStage .j-floats { top: 42%; }
#routeStage .j-floats canvas {
  width: 168px; height: auto; opacity: .62; filter: none;
  border-radius: 0 !important;
}
#routeStage .j-blank {
  position: absolute; display: block;
  background: var(--panel); opacity: .85;
  box-shadow: 0 16px 32px -20px rgba(0, 0, 0, .45);
  animation: jFloat 12s ease-in-out infinite alternate;
}

/* ---------- 右侧明细：题注上移 + 体块零装饰 ---------- */
.rs-bar { border-bottom: 1px solid var(--ink-20); }
.rs-detail::before { border-bottom: 1px solid var(--ink-20); }
.rs-foot { border-top: 1px solid var(--ink-20); }
.rsc-head { border-bottom: 0; padding-bottom: 4px; }
.rsc-media { align-items: flex-end; gap: 22px; }
.rsc-blk { margin: 0; display: flex; flex-direction: column; align-items: center; flex: none; }
.rsc-blk figcaption {
  font-family: var(--mono); font-size: 8px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--dim); text-align: center; max-width: 200px;
  display: flex; flex-direction: column; align-items: center; gap: 5px; margin-bottom: 3px;
}
.rsc-blk figcaption::after { content: ""; width: 1px; height: 13px; background: var(--ink-45); }
.rsc-video, .rsc-img {
  border: 0; border-radius: 0 !important; overflow: visible; box-shadow: none;
  background: none;
}
.rsc-video { width: min(52%, 300px); height: auto; aspect-ratio: 420 / 264; }
.rsc-img { width: 132px; height: auto; aspect-ratio: 260 / 264; }
.rsc-video:hover, .rsc-img:hover { transform: translateY(-4px); box-shadow: none; }
.mv-cap { display: none; }

/* ---------- 移动端适配 ---------- */
@media (max-width: 880px) {
  .j-inline { padding: 4px 5px; margin: 0 4px; }
  .j-inline canvas { width: 106px; }
  .j-inline:nth-of-type(4n+2) canvas { width: 88px; }
  .j-inline:nth-of-type(4n+3) canvas { width: 78px; }
  .j-title { font-size: 32px; }
  #routeStage .j-floats canvas { width: 108px; opacity: .55; }
  .rsc-video { width: 220px; }
  .rsc-img { width: 112px; }
  .rsc-blk figcaption { max-width: 150px; }
  #genBtn.gen-main { min-width: 0; letter-spacing: .1em; }
  .thumb-cap { font-size: 7.5px; }
}

/* ============================================================
   V8 — Fusion Pixel 全站字体（careers.kimi.com 同款）
   + 图1 iMac 海报化首页 + 图2/3 极简旅程页 + 图4 去线降噪
   ============================================================ */
@font-face {
  font-family: "Fusion Pixel";
  src: url("../fonts/fusion-pixel-12px-mono-zh-hans.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
:root {
  --mono: "Fusion Pixel", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Fusion Pixel", system-ui, -apple-system, "PingFang SC", sans-serif;
  --serif: "Fusion Pixel", Georgia, "Times New Roman", "Songti SC", serif;
  --display: "Fusion Pixel", Georgia, serif;
}
body { font-size: 13px; letter-spacing: .02em; }

/* ---------- 图4 质感：去线降噪，靠留白分层 ---------- */
#app::before { display: none; }
#sysbar { border-bottom-color: transparent; font-size: 11px; }
#cmdbar { border-top-color: transparent; font-size: 11px; }
.win { border-color: transparent; box-shadow: 0 26px 54px -34px rgba(0, 0, 0, .55); }
.win-head { border-bottom: 0; height: 34px; font-size: 10.5px; }
.search-row { border-bottom: 0; }
.chip-row { border-bottom: 0; }
.chip { border-bottom: 0; padding: 2px 5px; font-size: 10.5px; }
#resultList::before { border-bottom: 0; }
.res-item { border-bottom: 0; padding: 8px 12px; }
.res-item .r-name { font-size: 12.5px; }
#regionBody .rg-head, .cur-head, .cur-intro, .cur-facts,
#collBody .coll-stats, .coll-row, .city-div,
#routeBody .rt-sum, .rt-city, .rt-stop { border-bottom-color: transparent; }
.cur-actions { border-top: 0; }
.work-row { border-bottom: 0; padding: 7px 14px; }
.work-row .w-title { font-size: 12.5px; }
.cur-intro { font-size: 12px; }
.j-archive { border-bottom: 0; }
.j-actions { border-top: 0; }
.rs-bar, .rs-foot { border-color: transparent; }
.rs-detail::before { border-bottom-color: transparent; }
.rs-sum { border-right: 0; }
.rs-stop { border-bottom: 0; }
.rs-stop .n { font-size: 13.5px; }
.coll-tabs button, .sys-modes button { font-size: 11px; }
#winMenu { border-color: transparent; }
#toast { border-color: transparent; font-size: 11.5px; }
#stageHint { font-size: 10px; }

/* ---------- 图1 iMac 海报：半调网点 + 去框线 ---------- */
#home::after {
  opacity: .3; mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(23, 23, 19, .5) .8px, transparent 1.15px);
  background-size: 3.6px 3.6px;
}
body:not(.light) #home::after { opacity: .14; mix-blend-mode: screen; }
#home .corner { display: none; }
#home .home-foot { border-top: 0; }
.terminal-status b { font-size: clamp(34px, 4.6vw, 72px); letter-spacing: -.01em; }
.terminal-status span, .terminal-status small { font-size: 10px; }
.studio-caption b { font-size: 26px; font-weight: 400; letter-spacing: .04em; }
.studio-caption span { font-size: 10px; }
.studio-controls button, #home > .home-enter { font-size: 11px; }
#home .home-theme-btn { font-size: 11px; }

/* ---------- 图2/3：旅程总览背景极简，只留句子与体块 ---------- */
.rs-sum { background: var(--bg); }
.rs-sum::before { content: none; }
#routeStage .j-floats { display: none; }

/* ============================================================
   V9 — veeps 极简：软卡片承载行程 + 主次层级强化
   ============================================================ */
.rs-city {
  margin: 0 0 26px; padding: 22px 22px 16px;
  background: var(--panel-bg-92);
  border-radius: 20px;
  box-shadow: 0 24px 42px -28px var(--ink-46),
              0 3px 8px -4px var(--ink-14);
}
.rs-city:last-child { margin-bottom: 8px; }
.rsc-head { margin-bottom: 8px; }
.rsc-name { font-weight: 700; letter-spacing: -.045em; }
.rsc-no { color: var(--faint); }
.rsc-sub { color: var(--dim); }
.rsc-media { margin: 4px 0 10px; }
.rs-stop .d { color: var(--ink); font-weight: 700; font-size: 10px; }
.rs-stop .n { font-weight: 600; }
.rs-stop .a { color: var(--dim); }
.rsc-why { color: var(--faint); }
.rs-stop .src { border: 0; border-radius: 3px; font-size: 8px; }
.rs-stop .src.ai { border: 0; background: var(--ink-9); color: var(--mid); }
.rsc-head .src.ai { border: 0; border-radius: 3px; background: var(--ink-9); }

/* ============================================================
   V10 — 全局字号放大（可读性优先）
   ============================================================ */
body { font-size: 14px; }
#sysbar, #cmdbar { font-size: 12px; }
.win-head { font-size: 12px; height: 38px; }
.chip { font-size: 12px; }
.res-item .r-name { font-size: 14.5px; }
.res-item .r-meta { font-size: 11.5px; }
.work-row .w-title { font-size: 14px; }
.work-row .w-artist { font-size: 11.5px; }
.cur-intro { font-size: 13.5px; line-height: 1.9; }
.cur-meta { font-size: 11.5px; }
#toast { font-size: 12.5px; }
#stageHint { font-size: 11.5px; }
.thumb-cap { font-size: 10px; }
.rsc-blk figcaption { font-size: 10px; }
.rsc-no { font-size: 12px; }
.rsc-sub { font-size: 11px; }
.rsc-why { font-size: 11px; }
.rs-stop .d { font-size: 11.5px; min-width: 30px; }
.rs-stop .n { font-size: 15px; }
.rs-stop .a { font-size: 11.5px; }
.rs-more { font-size: 11px; }
.j-sentence { font-size: clamp(19px, 1.9vw, 27px); line-height: 2.3; }
.j-archive, .j-meta, .j-cities { font-size: 12px; }
.j-actions button { font-size: 11.5px; }
.terminal-status span, .terminal-status small { font-size: 12px; }
.studio-caption span { font-size: 11.5px; }
.coll-tabs button, .sys-modes button { font-size: 12px; }
.btn.tiny { font-size: 11.5px; }

/* 主界面背景：纯色（Light #F2F2EE / Dark #101416），无彩色渐变 */
#stage { background: var(--bg); }
