/* VibeJam / NEURAL —— 白纸新拟物 × 红色神经光球
   参考：「从白纸里捏出来」的创作面板。所有凸起都是同色纸面 + 双向阴影，红色只给「活」的东西（光球、连线脉冲、强调数字）。 */
:root {
  --paper: #E9ECF0;
  --paper-hi: #F3F5F8;
  --sh-d: rgba(163, 174, 192, .55);   /* 右下暗影 */
  --sh-l: rgba(255, 255, 255, .95);   /* 左上高光 */
  --ink: #23262C;
  --mute: #8C929C;
  --line: #D9DEE5;
  --red: #E5384A;
  --red-2: #FF6A3D;
  --raise: 9px 9px 20px var(--sh-d), -9px -9px 20px var(--sh-l);
  --raise-s: 5px 5px 12px var(--sh-d), -5px -5px 12px var(--sh-l);
  --inset: inset 4px 4px 9px var(--sh-d), inset -4px -4px 9px var(--sh-l);
  --f: "Inter", "Noto Sans SC", system-ui, sans-serif;
  --f-cn: "Noto Sans SC", "Inter", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --top: 64px;
  --mdock: 0px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--paper); color: var(--ink); font: 14px/1.55 var(--f); -webkit-font-smoothing: antialiased; overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: #C3CAD4 transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #C9CFD8; border-radius: 8px; border: 2px solid var(--paper); }
.red { color: var(--red) !important; }

/* 新拟物基元：凸起 / 凹陷 */
.neu { background: var(--paper); box-shadow: var(--raise); border-radius: 18px; }
.neu-in { background: var(--paper); box-shadow: var(--inset); border-radius: 14px; }

/* 「捏」出来：先只有阴影形状从纸面隆起，内容随后显影 */
.pinch { animation: pinch 1s var(--ease) both; animation-delay: var(--d, 0s); }
.pinch > * { animation: develop .7s ease both; animation-delay: calc(var(--d, 0s) + .45s); }
@keyframes pinch { from { box-shadow: 0 0 0 transparent, 0 0 0 transparent; transform: scale(.985); } }
@keyframes develop { from { opacity: 0; filter: blur(6px); } }
.stage.replay .pinch, .stage.replay .pinch > * { animation: none; }

/* ---------------------------------------------------------------- 顶栏 */
.top { position: fixed; inset: 0 0 auto; z-index: 30; height: var(--top); display: flex; align-items: center; gap: 16px; padding: 0 22px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 16px; box-shadow: var(--raise-s); }
.brand-dot { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 40% 38%, #fff 0 10%, var(--red-2) 22%, var(--red) 45%, #7b0d18 75%); box-shadow: 0 0 12px rgba(229,56,74,.55), inset -2px -3px 6px rgba(0,0,0,.25); }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand b { font: 700 13px var(--f); letter-spacing: .14em; }
.brand em { font: 700 13px var(--f); letter-spacing: .14em; color: var(--red); font-style: normal; }
.brand small { font-size: 9.5px; color: var(--mute); margin-top: 2px; }
.tabs { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; padding: 5px; border-radius: 18px; }
.tabs a { display: flex; flex-direction: column; align-items: center; min-width: 88px; padding: 6px 14px; border-radius: 13px; font: 500 13.5px var(--f-cn); color: #50555E; transition: box-shadow .35s var(--ease), color .2s; }
.tabs a small { font: 600 8.5px var(--f); letter-spacing: .14em; color: var(--mute); }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { box-shadow: var(--raise-s); color: var(--ink); background: var(--paper-hi); }
.tabs a[aria-current="page"] small { color: var(--red); }
.top-act { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.online { display: flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 99px; box-shadow: var(--raise-s); font: 500 12px var(--f-cn); color: #555; }
.online i { width: 7px; height: 7px; border-radius: 50%; background: #2DCB72; box-shadow: 0 0 0 3px rgba(45,203,114,.2); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .4; } }
.cta { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; background: linear-gradient(180deg, #F2505F, var(--red)); color: #fff; font: 600 13px var(--f-cn); box-shadow: 0 8px 18px -6px rgba(229,56,74,.6), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .25s var(--ease), box-shadow .25s; }
.cta small { font: 600 10px var(--f-mono); opacity: .85; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(229,56,74,.7), inset 0 1px 0 rgba(255,255,255,.35); }
.cta:active { transform: translateY(1px); }

/* ---------------------------------------------------------------- 舞台 */
.stage { position: fixed; inset: var(--top) 0 var(--mdock); outline: none; }
.view { position: absolute; inset: 0; }
.view[hidden] { display: none; }
.view.is-in { animation: viewin .5s var(--ease) both; }
@keyframes viewin { from { opacity: 0; } }
.kicker { margin: 0 0 10px; font: 700 10.5px var(--f); letter-spacing: .18em; color: var(--red); }
.kicker span { margin-left: 10px; color: var(--mute); letter-spacing: .04em; font-weight: 500; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 99px; box-shadow: var(--raise-s); font: 500 12.5px var(--f-cn); color: #444; transition: box-shadow .25s var(--ease), color .2s; }
.chip small { font: 500 10px var(--f); color: var(--mute); }
.chip:hover { color: var(--ink); }
.chip:active, .chip[aria-pressed="true"] { box-shadow: var(--inset); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 20px; border-radius: 99px; background: linear-gradient(180deg, #F2505F, var(--red)); color: #fff; font: 600 13.5px var(--f-cn); box-shadow: 0 8px 18px -6px rgba(229,56,74,.55), inset 0 1px 0 rgba(255,255,255,.3); transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }

/* ---------------------------------------------------------------- 展厅 */
.hub-copy { position: absolute; left: 30px; top: 22px; z-index: 4; max-width: 400px; border-radius: 0; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.hub-copy h1 { margin: 0; font: 900 clamp(26px, 2.7vw, 40px)/1.18 var(--f-cn); letter-spacing: .01em; }
.hub-copy h1 em { font-style: normal; background: linear-gradient(90deg, var(--red), var(--red-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hub-copy .sub { margin: 6px 0 12px; color: var(--mute); font-size: 13px; }
.hub-copy .meta { margin: 0 0 8px; font-size: 12px; color: #666; }
.hub-copy .meta b { color: var(--ink); font-family: var(--f-mono); }
.hint-tap { margin: 0; font: 500 12px var(--f-cn); color: var(--red); }
.hint-tap span { color: var(--mute); margin-left: 6px; font-size: 11px; }
.hub-ctl { position: absolute; right: 24px; top: 14px; z-index: 4; display: flex; gap: 10px; border-radius: 0; }
.legend { position: absolute; right: 24px; top: 70px; z-index: 4; width: 200px; padding: 14px 16px; border-radius: 16px; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.legend h2 { margin: 0 0 8px; font: 600 12px var(--f-cn); } .legend h2 small { color: var(--mute); font-weight: 400; }
.legend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legend-list button { width: 100%; display: flex; align-items: center; gap: 8px; min-height: 28px; padding: 0 6px; border-radius: 8px; font: 12px var(--f-cn); text-align: left; transition: box-shadow .25s; }
.legend-list button:hover, .legend-list button.on { box-shadow: var(--inset); }
.legend-list i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
.legend-list small { color: var(--mute); font-size: 10px; } .legend-list b { margin-left: auto; font: 600 12px var(--f-mono); }
.legend-foot { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--mute); }
.lg-hot, .lg-pick { width: 14px; height: 4px; border-radius: 4px; background: var(--red); } .lg-pick { background: #9AA3AF; margin-left: 8px; }
.v-hub.expanded .hub-copy, .v-hub.expanded .legend, .v-hub.expanded .dock, .v-hub.expanded .hub-ctl { opacity: 0; pointer-events: none; transform: translateY(-10px); }
.v-hub.expanded .dock { transform: translate(-50%, 20px); }

/* 神经图容器：所有节点绝对定位，坐标由 hub.js 写入 --x/--y */
.graph { position: absolute; inset: 0; }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
/* 新拟物管道：宽浅底 + 白色高光 + 细暗线 */
.pipe-base { stroke: #D6DCE4; stroke-width: 9; fill: none; stroke-linecap: round; }
.pipe-hi { stroke: #FFFFFF; stroke-width: 3; fill: none; stroke-linecap: round; opacity: .9; transform: translate(-1px, -1.5px); }
.pipe-core { stroke: #B8C0CB; stroke-width: 1.2; fill: none; }
.pipe { transition: opacity .4s; }
.pipe.draw path { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw .9s var(--ease) forwards; animation-delay: var(--dl, 0s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pipe.hot .pipe-core { stroke: var(--red); stroke-width: 1.6; }
/* 树枝：细红/灰贝塞尔 */
.branch { fill: none; stroke: #C2C9D2; stroke-width: 1.3; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw .8s var(--ease) forwards; animation-delay: var(--dl, 0s); }
.branch.r { stroke: rgba(229,56,74,.55); }
.branch.on { stroke: var(--red); stroke-width: 2; }
.bdot { fill: var(--red); opacity: 0; animation: pop .3s var(--spring) forwards; animation-delay: var(--dl, 0s); }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
/* 流动脉冲：CSS offset-path，沿管道跑 */
.pill { position: absolute; left: 0; top: 0; z-index: 2; width: 22px; height: 8px; margin: -4px 0 0 -11px; border-radius: 8px; background: linear-gradient(90deg, #FF9AA4, var(--red) 40%, #FF7B52); box-shadow: 0 0 10px rgba(229,56,74,.75), inset 0 1px 1px rgba(255,255,255,.7); offset-rotate: auto; animation: flow var(--t, 3.2s) linear infinite; animation-delay: var(--dl, 0s); pointer-events: none; opacity: 0; }
@keyframes flow { 0% { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.v-hub.expanded .pill { display: none; }

/* 光球 */
.orb-wrap { position: absolute; left: 0; top: 0; z-index: 3; width: var(--D); height: var(--D); margin: calc(var(--D) / -2) 0 0 calc(var(--D) / -2); transform: translate(var(--x), var(--y)) scale(var(--s, 1)); --D: 300px; }
.orb { position: absolute; inset: 0; border-radius: 50%; padding: 14px; box-shadow: 14px 14px 30px var(--sh-d), -14px -14px 30px var(--sh-l); transition: box-shadow .4s, transform .3s var(--ease); }
.orb:hover { transform: scale(1.015); }
.orb:active { transform: scale(.99); }
.orb-cup { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 42%, #A9A9AB 0%, #7E7E82 38%, #C9CACD 78%, #E3E4E7 100%); box-shadow: inset 6px 8px 16px rgba(0,0,0,.35), inset -4px -6px 12px rgba(255,255,255,.6); }
.orb-cup canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* WebGL 未就绪时的海报：径向红光 */
.orb-poster { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(255,210,170,.95) 0 4%, rgba(255,90,60,.7) 12%, rgba(200,20,40,.55) 30%, rgba(60,0,10,.25) 55%, transparent 70%); transition: opacity .8s; }
.orb-cup.live .orb-poster { opacity: 0; }
.orb-ring { position: absolute; inset: -26px; width: calc(100% + 52px); height: calc(100% + 52px); overflow: visible; pointer-events: none; animation: spin 40s linear infinite; }
.ring-track { fill: none; stroke: rgba(255,255,255,.9); stroke-width: 1.4; filter: drop-shadow(1px 1px 1px rgba(150,160,175,.5)); }
.ring-seg { fill: none; stroke: var(--red); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 46 14 8 22 64 18 10 26 36 20 6 30 74 16 12 4; filter: drop-shadow(0 0 4px rgba(229,56,74,.5)); transition: stroke-dashoffset 1.2s var(--ease), opacity .6s; }
.orb-wrap:not(.ringed) .ring-seg { stroke-dashoffset: 603; opacity: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.orb-tag { position: absolute; left: 50%; bottom: -52px; transform: translateX(-50%); margin: 0; display: flex; align-items: center; gap: 8px; font: 700 10px var(--f); letter-spacing: .2em; color: var(--mute); white-space: nowrap; transition: opacity .4s; }
.orb-tag b { font: 700 12px var(--f-mono); color: var(--red); letter-spacing: 0; }
.v-hub.expanded .orb-tag { opacity: 0; }
.orb-wrap.igniting .orb { box-shadow: 14px 14px 30px var(--sh-d), -14px -14px 30px var(--sh-l), 0 0 60px rgba(229,56,74,.35); }

/* 卫星：玻璃珠里轮播该类作品 + 旁边数字卡 */
.sat { position: absolute; left: 0; top: 0; z-index: 3; transform: translate(var(--x), var(--y)) scale(var(--s, 1)); transition: opacity .4s; --R: 92px; }
.sat.hidden-init { opacity: 0; }
.sat-card { transition: box-shadow .3s, opacity .45s var(--ease), transform .45s var(--ease); }
.sat.card-off .sat-card { opacity: 0; transform: translateY(8px); pointer-events: none; }
.sat-ball { position: absolute; width: var(--R); height: var(--R); margin: calc(var(--R) / -2) 0 0 calc(var(--R) / -2); border-radius: 50%; padding: 6px; box-shadow: 8px 8px 18px var(--sh-d), -8px -8px 18px var(--sh-l); transition: box-shadow .3s, transform .35s var(--spring); }
.sat-ball:hover { transform: scale(1.08); }
.sat-glass { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #888; box-shadow: inset 3px 4px 8px rgba(0,0,0,.4); }
.sat-glass img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.15); transition: opacity 1s ease, transform 3.2s ease; filter: saturate(1.05) contrast(1.05); }
.sat-glass img.on { opacity: 1; transform: scale(1); }
/* 玻璃高光 + 暗角，让缩略图像装在球里 */
.sat-glass::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 34% 26%, rgba(255,255,255,.75) 0 7%, rgba(255,255,255,.12) 18%, transparent 34%), radial-gradient(circle at 50% 50%, transparent 48%, rgba(0,0,0,.45) 100%); pointer-events: none; }
.sat-glass::before { content: ""; position: absolute; z-index: 1; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px; border-radius: 50%; background: radial-gradient(#fff, var(--red-2) 40%, transparent 72%); mix-blend-mode: screen; animation: core 2.4s ease-in-out infinite; animation-delay: var(--dl, 0s); }
@keyframes core { 50% { transform: scale(1.8); opacity: .5; } }
.sat-card { position: absolute; top: calc(var(--R) / 2 - 14px); left: calc(var(--R) / -2 + 4px); min-width: 120px; padding: 9px 12px; border-radius: 12px; box-shadow: var(--raise-s); text-align: left; transition: box-shadow .3s, opacity .45s var(--ease), transform .45s var(--ease); }
.sat.side-r .sat-card { left: calc(var(--R) / 2 - 2px); top: -18px; }
.sat.side-l .sat-card { left: auto; right: calc(var(--R) / 2 - 2px); top: 4px; }
.sat.side-t .sat-card { left: calc(var(--R) / 2 + 8px); top: -36px; }
.sat-card b { display: flex; align-items: center; gap: 8px; font: 700 19px/1.1 var(--f-mono); }
.sat-card b svg { width: 22px; height: 22px; padding: 4px; border-radius: 6px; color: var(--red); background: rgba(229,56,74,.1); stroke-width: 2; }
.sat-card span { display: block; font: 600 12.5px var(--f-cn); margin-top: 3px; }
.sat-card span small { color: var(--mute); font: 400 10px var(--f); margin-left: 4px; }
.sat-card em { display: block; font: normal 10.5px var(--f-mono); color: var(--mute); }
.sat:hover .sat-card, .sat.on .sat-card { box-shadow: var(--inset); }
.sat.on .sat-ball { box-shadow: 0 0 0 3px var(--red), 8px 8px 18px var(--sh-d), -8px -8px 18px var(--sh-l); }
.sat.on .sat-card { background: #FBE9EB; box-shadow: 0 0 0 1.5px var(--red); }
.v-hub.expanded .sat .sat-card { left: calc(var(--R) / 2 + 12px); right: auto; top: -26px; min-width: 132px; }

/* 展开后的树：模型分组节点 + 作品行 */
.tree { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.tree > * { pointer-events: auto; }
.grp { position: absolute; left: 0; top: 0; transform: translate(var(--x), var(--y)); margin-top: -28px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; box-shadow: var(--raise-s); background: var(--paper); opacity: 0; animation: grpin .6s var(--spring) forwards; animation-delay: var(--dl, 0s); white-space: nowrap; }
@keyframes grpin { from { opacity: 0; transform: translate(calc(var(--x) - 30px), var(--y)) scale(.85); } to { opacity: 1; transform: translate(var(--x), var(--y)); } }
.grp i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--red); color: #fff; font: 700 11px var(--f-mono); font-style: normal; }
.grp b { display: block; font: 700 18px/1 var(--f-mono); }
.grp span { display: block; font: 500 11px var(--f-cn); color: var(--mute); margin-top: 3px; }
.row { position: absolute; left: 0; top: 0; transform: translate(var(--x), var(--y)); margin-top: -17px; width: var(--w, 300px); min-height: 34px; display: flex; flex-direction: column; justify-content: center; padding: 3px 10px; border-radius: 9px; text-align: left; opacity: 0; animation: rowin .45s var(--ease) forwards; animation-delay: var(--dl, 0s); transition: box-shadow .25s, background .25s; }
@keyframes rowin { from { opacity: 0; transform: translate(calc(var(--x) - 16px), var(--y)); } to { opacity: 1; transform: translate(var(--x), var(--y)); } }
.row b { font: 500 12.5px/1.25 var(--f-cn); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row span { display: flex; gap: 10px; font: 10px var(--f-mono); color: var(--mute); }
.row span em { font-style: normal; color: var(--red); padding: 0 5px; border-radius: 4px; background: rgba(229,56,74,.1); }
.row:hover, .row.on, .row:focus-visible { background: #FBE9EB; box-shadow: 0 0 0 1.5px var(--red); outline: none; }
.row.dim { opacity: .3 !important; }
.row.match { box-shadow: 0 0 0 1.5px var(--red); }

.tree-title { position: absolute; left: 0; top: 0; transform: translate(var(--x), var(--y)); margin: 0; font: 500 12px var(--f-cn); color: var(--mute); white-space: nowrap; animation: develop .6s ease both .3s; }
.tree-title b { font: 800 18px var(--f-cn); color: var(--ink); margin-right: 6px; }
.tree-title small { font: 600 10px var(--f); letter-spacing: .16em; text-transform: uppercase; margin-left: 6px; color: var(--red); }
.row.more b { color: var(--red); font-size: 12px; }
.grp i svg { width: 17px; height: 17px; stroke-width: 2; }
.v-hub.paused *, .v-hub.paused *::before, .v-hub.paused *::after { animation-play-state: paused !important; }

/* 预览面板 */
.preview { position: absolute; right: 22px; top: 16px; bottom: 16px; z-index: 4; width: min(27vw, 380px); display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; animation: pvin .7s var(--ease) both .25s; }
@keyframes pvin { from { opacity: 0; transform: translateX(30px); box-shadow: none; } }
.pv-img { position: relative; margin: 12px 12px 0; aspect-ratio: 1.25; border-radius: 14px; overflow: hidden; box-shadow: var(--inset); background: #D8DDE4; }
.pv-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .6s var(--ease); }
.pv-img img.swap { opacity: 0; transform: scale(1.04); }
.pv-model { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.85); backdrop-filter: blur(6px); font: 600 10.5px var(--f-mono); color: var(--red); }
.pv-bd { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 14px 18px 18px; }
.pv-type { margin: 0; font: 700 10px var(--f); letter-spacing: .16em; color: var(--red); }
.pv-title { margin: 0; font: 800 20px/1.2 var(--f); }
.pv-by { margin: 0; font: 500 12px var(--f-mono); color: var(--mute); }
.pv-desc { margin: 0; font-size: 13px; color: #444; }
.pv-prompt { position: relative; padding: 10px 12px; }
.pv-prompt span { font: 700 9.5px var(--f); letter-spacing: .16em; color: var(--mute); }
.pv-prompt code { display: block; margin-top: 4px; font: 11px/1.55 var(--f-mono); color: #3A3E45; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pv-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pv-stats li { padding: 8px 10px; border-radius: 10px; box-shadow: var(--raise-s); }
.pv-stats small { display: block; font-size: 10px; color: var(--mute); }
.pv-stats b { font: 700 14px var(--f-mono); }
.preview .btn { margin-top: auto; }
.back { position: absolute; left: 22px; top: 16px; z-index: 5; }

/* 底部数据条 + 问问作品库 */
.dock { position: absolute; left: 50%; bottom: 18px; z-index: 4; width: min(560px, 46vw); transform: translateX(-50%); padding: 12px 14px 10px; border-radius: 20px; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.dock-stats { list-style: none; margin: 0 0 10px; padding: 0 4px; display: grid; grid-template-columns: repeat(4, 1fr); }
.dock-stats li { padding: 0 10px; border-left: 1px solid var(--line); }
.dock-stats li:first-child { border-left: 0; padding-left: 0; }
.dock-stats span { display: block; font-size: 10.5px; color: var(--mute); } .dock-stats small { font-size: 9px; }
.dock-stats b { font: 700 19px var(--f-mono); }
.ask { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 14px; border-radius: 99px; }
.ask input { flex: 1; min-width: 0; height: 36px; border: 0; background: none; font: 13px var(--f-cn); color: var(--ink); outline: none; }
.ask input::placeholder { color: #A2A8B1; }
.ask button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 15px; box-shadow: 0 4px 10px -2px rgba(229,56,74,.6); }
.ask-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ask-chips button { min-height: 30px; padding: 0 11px; border-radius: 99px; box-shadow: var(--raise-s); font: 11.5px var(--f-cn); color: #555; transition: box-shadow .2s, color .2s; }
.ask-chips button:hover { color: var(--red); }
.ask-chips button:active { box-shadow: var(--inset); }

/* ---------------------------------------------------------------- 作品库 */
.v-works { display: flex; flex-direction: column; padding: 14px 28px 12px; gap: 12px; }
.w-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.w-head h2 { margin: 0; font: 900 clamp(22px, 2.2vw, 30px) var(--f-cn); }
.w-kpis { display: grid; grid-template-columns: repeat(4, auto); border-radius: 16px; padding: 10px 6px; }
.w-kpis span { padding: 0 18px; border-left: 1px solid var(--line); }
.w-kpis span:first-child { border: 0; }
.w-kpis small { display: block; font-size: 10.5px; color: var(--mute); }
.w-kpis b { font: 700 18px var(--f-mono); }
.w-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.w-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.w-chips button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 99px; box-shadow: var(--raise-s); font: 500 12.5px var(--f-cn); color: #555; transition: box-shadow .25s, color .2s; }
.w-chips button svg { color: var(--red); }
.w-chips button small { font: 10px var(--f-mono); color: var(--mute); }
.w-chips button[aria-selected="true"] { box-shadow: var(--inset); color: var(--red); }
.w-sort { display: flex; padding: 4px; border-radius: 99px; }
.w-sort button { min-height: 30px; padding: 0 12px; border-radius: 99px; font: 12px var(--f-cn); color: var(--mute); transition: box-shadow .25s, color .2s; }
.w-sort button[aria-pressed="true"] { box-shadow: var(--raise-s); color: var(--ink); background: var(--paper-hi); }
.w-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 280px; gap: 22px; }
.w-grid { list-style: none; margin: 0; padding: 6px; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 18px; min-height: 0; }
.wc { position: relative; display: flex; flex-direction: column; min-height: 0; border-radius: 18px; box-shadow: var(--raise); background: var(--paper); animation: pinch .9s var(--ease) both; animation-delay: calc(var(--k) * 60ms); transition: transform .35s var(--ease), box-shadow .35s; }
.wc:hover { transform: translateY(-4px); box-shadow: 14px 14px 28px var(--sh-d), -10px -10px 22px var(--sh-l); }
.wc button { all: unset; cursor: pointer; display: flex; flex-direction: column; flex: 1; min-height: 0; border-radius: 18px; }
.wc button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.wc-img { position: relative; flex: 1; min-height: 0; margin: 8px 8px 0; border-radius: 13px; overflow: hidden; background: #D9DEE5; box-shadow: var(--inset); }
.wc-img img { width: 100%; height: 100%; object-fit: cover; animation: develop .8s ease both; animation-delay: calc(var(--k) * 60ms + .45s); transition: transform .8s var(--ease); }
.wc:hover .wc-img img { transform: scale(1.05); }
.wc-tag { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,.88); font: 600 10px var(--f-mono); color: var(--red); }
.wc-earn { position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 99px; background: var(--red); color: #fff; font: 600 10px var(--f-mono); }
.wc-bd { padding: 8px 12px 10px; animation: develop .7s ease both; animation-delay: calc(var(--k) * 60ms + .5s); }
.wc-bd b { display: block; font: 600 13px var(--f); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-bd p { margin: 4px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); font: 10px var(--f-mono); color: var(--mute); }
.wc-bd p em { display: block; font: 600 12px var(--f-mono); font-style: normal; color: var(--ink); }
.w-side { padding: 16px 18px; border-radius: 20px; overflow: auto; }
.w-side h3 { margin: 0 0 10px; font: 600 13px var(--f-cn); } .w-side h3 small { color: var(--mute); font-weight: 400; font-size: 10.5px; }
.bars { display: grid; gap: 9px; margin-bottom: 20px; }
.bar { display: grid; grid-template-columns: 56px 1fr 52px; align-items: center; gap: 8px; font-size: 11.5px; }
.bar i { height: 10px; border-radius: 10px; box-shadow: var(--inset); overflow: hidden; }
.bar i::after { content: ""; display: block; height: 100%; width: var(--w); border-radius: 10px; background: linear-gradient(90deg, #F48A95, var(--red)); animation: grow 1s var(--ease) both .4s; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.bar b { font: 600 10.5px var(--f-mono); text-align: right; }
.creators { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.creators li { display: flex; align-items: center; gap: 10px; padding: 7px; border-radius: 12px; box-shadow: var(--raise-s); }
.creators img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.creators div { flex: 1; min-width: 0; font-size: 12px; line-height: 1.3; }
.creators div small { display: block; color: var(--mute); font-size: 10.5px; }
.creators b { font: 600 11px var(--f-mono); color: var(--red); }
.w-pager { display: flex; justify-content: center; align-items: center; gap: 14px; }
.pg { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--raise-s); font-size: 16px; }
.pg:active { box-shadow: var(--inset); }
.pg:disabled { opacity: .35; cursor: default; }
.pg-info { font: 500 12px var(--f-mono); color: var(--mute); }

/* ---------------------------------------------------------------- 每周 Jam */
.v-jam { display: grid; grid-template-columns: minmax(320px, 38%) 1fr; gap: 40px; padding: 30px 40px; align-items: center; }
.jam-l h2 { margin: 0 0 10px; font: 900 clamp(40px, 5vw, 72px)/1 var(--f-cn); }
.sub-l { margin: 0 0 18px; font-size: 14px; color: #555; max-width: 40ch; }
.jam-cd { display: flex; gap: 6px; padding: 10px; border-radius: 16px; margin-bottom: 14px; }
.jam-cd span { flex: 1; text-align: center; }
.jam-cd b { display: block; font: 700 30px var(--f-mono); }
.jam-cd small { font-size: 11px; color: var(--mute); }
.jam-facts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.jam-facts li { padding: 12px; border-radius: 14px; box-shadow: var(--raise-s); }
.jam-facts small { display: block; font-size: 11px; color: var(--mute); } .jam-facts b { font: 700 16px var(--f-mono); }
.jam-note { margin: 0 0 16px; font-size: 13px; color: #555; }
.jam-board { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-height: 100%; overflow: auto; padding: 8px; }
.jb { display: grid; grid-template-columns: 34px 64px 1fr 140px; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 16px; box-shadow: var(--raise-s); cursor: pointer; animation: pinch .8s var(--ease) both; animation-delay: calc(var(--k) * 70ms); transition: box-shadow .25s; }
.jb:hover, .jb:focus-visible { box-shadow: var(--inset); outline: none; }
.jb > b { font: 700 18px var(--f-mono); color: var(--mute); }
.jb:nth-child(-n+3) > b { color: var(--red); }
.jb img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.jb div { min-width: 0; } .jb div b { display: block; font: 600 14px var(--f); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .jb div small { font: 11px var(--f-mono); color: var(--mute); }
.jb .vote { display: grid; gap: 4px; font: 600 12px var(--f-mono); text-align: right; }
.jb .vote i { height: 6px; border-radius: 6px; box-shadow: var(--inset); overflow: hidden; }
.jb .vote i::after { content: ""; display: block; width: var(--w); height: 100%; background: var(--red); border-radius: 6px; animation: grow 1s var(--ease) both .3s; transform-origin: left; }

/* ---------------------------------------------------------------- 弹层 */
.sheet { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 28px; background: rgba(233,236,240,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.sheet[hidden] { display: none; }
.sheet-card { position: relative; width: min(1060px, 100%); max-height: calc(100svh - 56px); display: grid; grid-template-columns: 1.05fr 1fr; gap: 6px; padding: 14px; border-radius: 26px; overflow: hidden; }
.sheet.opening .sheet-card { animation: iris .65s var(--ease) both; }
.sheet.closing { animation: fade .35s reverse both; }
@keyframes iris { from { clip-path: circle(0% at var(--ox, 50%) var(--oy, 50%)); } to { clip-path: circle(150% at var(--ox, 50%) var(--oy, 50%)); } }
@keyframes fade { from { opacity: 0; } }
.x { position: absolute; right: 16px; top: 16px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--raise-s); font-size: 17px; transition: transform .3s var(--ease); }
.x:hover { transform: rotate(90deg); color: var(--red); }
.sh-img { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--inset); aspect-ratio: 1; }
.sh-img img { width: 100%; height: 100%; object-fit: cover; }
.sh-bd { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; overflow: auto; }
.sh-bd h2 { margin: 0; font: 800 26px/1.15 var(--f); }
.sh-prompt code { -webkit-line-clamp: unset; display: block; }
.copy { position: absolute; right: 8px; top: 6px; display: flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 10px; border-radius: 99px; box-shadow: var(--raise-s); font: 600 11px var(--f-cn); color: var(--red); }
.sh-nav { display: flex; justify-content: space-between; margin-top: auto; }
.toast { position: fixed; left: 50%; bottom: calc(var(--mdock) + 24px); z-index: 70; margin: 0; padding: 10px 18px; border-radius: 99px; background: var(--ink); color: #fff; font: 12px var(--f-cn); transform: translate(-50%, 16px); opacity: 0; transition: .3s var(--ease); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.foot { position: fixed; left: 30px; bottom: 10px; z-index: 2; font: 10.5px var(--f-mono); color: #A7ADB6; pointer-events: none; }
.mdock { display: none; }

/* ---------------------------------------------------------------- 平板 */
@media (max-width: 1180px) {
  .online { display: none; }
  .legend { display: none; }
  .tabs a { min-width: 72px; }
  .w-grid { grid-template-columns: repeat(3, 1fr); }
  .w-body { grid-template-columns: 1fr 240px; }
}
@media (max-width: 1023px) {
  .w-body { grid-template-columns: 1fr; }
  .w-side { display: none; }
  .v-works { overflow: auto; }
  .w-grid { grid-template-rows: none; grid-auto-rows: 280px; }
  .v-jam { grid-template-columns: 1fr; overflow: auto; align-content: start; }
}

/* ---------------------------------------------------------------- 手机：底栏 + 竖排展厅 */
@media (max-width: 760px) {
  :root { --top: 56px; --mdock: calc(60px + env(safe-area-inset-bottom)); }
  .top { padding: 0 12px; gap: 8px; }
  .brand { padding: 5px 10px 5px 6px; }
  .brand small, .tabs, .top-act .online { display: none; }
  .cta { padding: 9px 12px; font-size: 12px; }
  .mdock { position: fixed; inset: auto 0 0; z-index: 30; height: var(--mdock); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(233,236,240,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 -6px 16px rgba(163,174,192,.3); }
  .mdock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px; font: 500 11px var(--f-cn); color: var(--mute); }
  .mdock a svg { font-size: 21px; }
  .mdock a[aria-current="page"] { color: var(--red); }
  .md-orb { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 40% 38%, #fff 0 8%, var(--red-2) 22%, var(--red) 50%, #7b0d18 80%); opacity: .55; }
  .mdock a[aria-current="page"] .md-orb { opacity: 1; box-shadow: 0 0 10px rgba(229,56,74,.6); }
  .foot { display: none; }
  .hub-copy { left: 16px; right: 16px; top: 10px; max-width: none; }
  .hub-copy h1 { font-size: 23px; }
  .hub-copy .sub, .hub-copy .meta { display: none; }
  .hint-tap { margin-top: 4px; }
  .hub-ctl { display: none; }
  .dock { width: calc(100% - 24px); bottom: 10px; padding: 10px; }
  .dock-stats { display: none; }
  .ask-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ask-chips::-webkit-scrollbar { display: none; }
  .ask-chips button { flex: none; min-height: 34px; }
  .sat { --R: 66px; }
  .sat-card { min-width: 0; padding: 5px 8px; }
  .sat-card b { font-size: 14px; } .sat-card b svg { width: 18px; height: 18px; padding: 3px; }
  .sat-card span { font-size: 11px; } .sat-card span small, .sat-card em { display: none; }
  .orb-tag { display: none; }
  .orb-ring { inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); }
  .orb { padding: 9px; }
  .hub-copy .kicker { display: none; }
  .sat .sat-card, .sat.side-l .sat-card, .sat.side-r .sat-card, .sat.side-t .sat-card { left: 50%; right: auto; top: calc(var(--R) / 2 + 6px); translate: -50% 0; text-align: center; white-space: nowrap; }
  .sat-card b { justify-content: center; }
  .v-hub:not(.expanded) .sat.side-t .sat-card { left: calc(var(--R) / 2 + 8px); top: -24px; translate: none; }
  .v-hub.expanded .sat .sat-card { left: 50%; top: calc(var(--R) / 2 + 2px); min-width: 0; padding: 0; box-shadow: none; background: none; }
  .v-hub.expanded .sat-card b { display: none; }
  .v-hub.expanded .sat.on .sat-card span { color: var(--red); }
  .back { left: 50%; top: auto; bottom: 14px; transform: translateX(-50%); }
  .tree-title { position: static; transform: none; margin: 4px 0 10px; }
  /* 展开态：树变成纵向列表（JS 切换 .mlist），预览改为点击打开详情 */
  .preview { display: none !important; }
  .v-hub.expanded .tree { position: absolute; inset: 104px 0 0; overflow-y: auto; padding: 0 14px 80px; }
  .tree.mlist .row { position: relative; transform: none !important; margin: 0 0 8px; width: 100% !important; min-height: 52px; padding: 8px 12px 8px 70px; border-radius: 14px; box-shadow: var(--raise-s); animation-name: fadein; }
  .tree.mlist .row img { position: absolute; left: 8px; top: 6px; width: 50px; height: 40px; border-radius: 8px; object-fit: cover; }
  .tree.mlist .grp { position: relative; transform: none !important; margin: 12px 0 10px; animation-name: fadein; display: inline-flex; }
  @keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
  .v-works { padding: 12px 14px; }
  .w-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .w-kpis { grid-template-columns: repeat(2, 1fr); gap: 8px 0; width: 100%; }
  .w-kpis span:nth-child(3) { border: 0; }
  .w-bar { flex-direction: column; align-items: stretch; }
  .w-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 6px 14px; scrollbar-width: none; }
  .w-chips button { flex: none; }
  .w-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 236px; gap: 14px; }
  .v-jam { padding: 16px 14px; gap: 18px; }
  .jb { grid-template-columns: 24px 52px 1fr; gap: 10px; }
  .jb img { width: 52px; height: 52px; }
  .jb .vote { grid-column: 2 / -1; text-align: left; }
  .sheet { padding: 0; align-items: end; }
  .sheet-card { grid-template-columns: 1fr; max-height: 92svh; overflow: auto; border-radius: 22px 22px 0 0; }
  .sh-img { aspect-ratio: 4 / 3; }
  .sh-bd { padding: 14px 6px calc(10px + env(safe-area-inset-bottom)); overflow: visible; }
}

/* ---------------------------------------------------------------- 减少动画 */
.rm *, .rm *::before, .rm *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
.rm .pill { display: none; }
@media (prefers-reduced-motion: reduce) { .pill { display: none; } }
