@charset "UTF-8";
/* 进场与背景动效、卡片上浮、状态点光晕、空状态星核等 —— 与 Flux 同一套观感（CR-1144）。只放与业务无关的样式。
 * 约束（AGENTS.md「叠在会动的画布上的层，不许用毛玻璃 / 滤镜 / 背景位移动画」）：
 *   · 会动的东西只动 transform / opacity，不动 background-position，也不加 filter / backdrop-filter；
 *   · 外观选「无动效」（<html> 上没有 data-navfx）时不做动画——motion.js 把它同步成 data-motion-still；
 *   · 纯装饰跟随系统「减少动态效果」（同 Flux）：背景漂移、卡片上浮、状态点呼吸都在 reduce 下停掉。 */

/* ================= V6 背景：噪点纹理 + 极光色团漂移 + 细网格（motion.js 在 <body> 里放一个 .fx-backdrop） =================
 * Flux：cabin-atmosphere.css 的 .backdrop（噪点 + 三团 55/48/40vw 的色团 28/34/40s 来回漂）、app.css 的 44px 细网格。
 * 与 Flux 的两处差别：
 *   · Flux 给色团加了 filter:blur(90px)；这里不加滤镜，色团本身就是 radial-gradient(circle, 色, transparent 65%)，边缘本来就是渐隐的；
 *   · 噪点不用 soft-light 混合（混合会让下面每帧在动的色团每帧重混），改成「只在亮的那半边留白点 / 黑点」的静态半透明贴图。
 * 只在智能舱出现；瓷白不铺（同 Flux：瓷白关掉动态背景）；AI 模式自己有画布，不叠。 */
.fx-backdrop{display:none;--fx-a1:#0a84d0;--fx-a2:#14b8a6;--fx-a3:#22c55e;--fx-o1:.30;--fx-o2:.22;--fx-o3:.16}
html[data-cabin][data-palette="ocean"] .fx-backdrop{--fx-a1:#3b82f6;--fx-a2:#06b6d4;--fx-a3:#6366f1;--fx-o1:.28;--fx-o2:.22;--fx-o3:.16}
html[data-cabin][data-palette="skylight"]:not([data-theme="dark"]) .fx-backdrop{--fx-a1:#93c5fd;--fx-a2:#c4b5fd;--fx-a3:#67e8f9;--fx-o1:.55;--fx-o2:.45;--fx-o3:.4}
html[data-cabin]:not([data-palette="porcelain"]) body:not(.aimode-on) .fx-backdrop{
  display:block;position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden;contain:strict;
  background:var(--fx-noise) 0 0/180px 180px repeat}
/* 噪点：fractalNoise → 只取高于中灰的部分当透明度（暗色出白点、亮色出黑点），整体很淡 */
html[data-cabin]{--fx-noise:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.3 0 0 0 -.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E")}
html[data-cabin]:not([data-theme="dark"]){--fx-noise:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.3 0 0 0 -.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E")}
.fx-backdrop::before,.fx-backdrop::after,.fx-backdrop i{content:"";position:absolute;border-radius:50%;will-change:transform}
.fx-backdrop::before{width:55vw;height:55vw;left:-12vw;top:-18vw;opacity:var(--fx-o1);background:radial-gradient(circle,var(--fx-a1),transparent 65%);animation:kb-wall-drift1 28s ease-in-out infinite alternate}
.fx-backdrop::after{width:48vw;height:48vw;right:-14vw;top:10vh;opacity:var(--fx-o2);background:radial-gradient(circle,var(--fx-a2),transparent 65%);animation:kb-wall-drift2 34s ease-in-out infinite alternate}
.fx-backdrop i{width:40vw;height:40vw;left:30vw;bottom:-22vw;opacity:var(--fx-o3);background:radial-gradient(circle,var(--fx-a3),transparent 65%);animation:kb-wall-drift1 40s ease-in-out infinite alternate-reverse}
@keyframes kb-wall-drift1{to{transform:translate(8vw,6vh) scale(1.1)}}
@keyframes kb-wall-drift2{to{transform:translate(-6vw,10vh) scale(.92)}}
/* 细网格：44px、4% 的灰线，往下渐隐（静态）。开了立体空间时那层画布自己画网格，这里不叠 */
.fx-backdrop b{position:absolute;inset:0;display:block;
  background-image:linear-gradient(rgba(148,163,184,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(148,163,184,.04) 1px,transparent 1px);
  background-size:44px 44px;-webkit-mask-image:radial-gradient(ellipse at 50% 0%,#000 0%,transparent 75%);mask-image:radial-gradient(ellipse at 50% 0%,#000 0%,transparent 75%)}
html[data-cabin][data-dim="space"] .fx-backdrop b{display:none}
/* 立体空间：Flux 把第一团色团藏掉、整层压到 .8 */
html[data-cabin][data-dim="space"] .fx-backdrop{opacity:.8}
html[data-cabin][data-dim="space"] .fx-backdrop::before{display:none}
/* 停：外观无动效（motion.js 写 data-motion-still）/ 页面在后台 / 系统要求减少动态效果。
 * 立体空间下也停（与 Flux 不同的一处）：那层画布自己每帧都在动，色团再漂就是整屏每帧多重绘一遍压在玻璃卡下面的背景；
 * 软件渲染下实测帧耗时 +30%（见交付汇报的测量），所以空间模式里色团只留静态的底色，漂移只在非空间模式出现。 */
html[data-motion-still] .fx-backdrop::before,html[data-motion-still] .fx-backdrop::after,html[data-motion-still] .fx-backdrop i,
html[data-cabin][data-dim="space"] .fx-backdrop::after,html[data-cabin][data-dim="space"] .fx-backdrop i{animation:none}
@media (prefers-reduced-motion:reduce){.fx-backdrop::before,.fx-backdrop::after,.fx-backdrop i{animation:none}}

/* ================= V16 卡片悬停上浮（同 Flux cabin-kit.css:49-51） =================
 * 智能舱、非立体空间、有「无动效」之外的动效、设备有悬停：.card 悬停上浮 2px（.2s）。
 * 只在 :hover 时才有 transform——常驻 transform 会让卡片变成 position:fixed 子元素的定位基准（cabin.css 注释同）。
 * 含有「钉着的提示」「打开的下拉」的卡不浮，免得里面的浮层跟着挪；整页铺满的 .list-card 不浮。 */
html[data-cabin][data-navfx]:not([data-dim="space"]) .main .card{transition:transform .2s,border-color .2s}
@media (hover:hover){
  html[data-cabin][data-navfx]:not([data-dim="space"]) .main .card:hover:not(.list-card):not([data-motion="off"] .card):not(:has(.info-pop.pinned,.select.open,.dd-open,[aria-expanded="true"])){transform:translateY(-2px)}
}
@media (prefers-reduced-motion:reduce){html[data-cabin] .main .card:hover{transform:none!important}}

/* ================= V17 状态标签前的呼吸光点（同 Flux motion.css:9-19） =================
 * 5px 圆点 + 4px 同色 13% 光晕，3s 在 .55↔1 间呼吸；标签不在视野内时暂停（motion.js 给看得见的标签加 motion-visible）。
 * 颜色取标签自己的字色（currentColor）：Alpha 的 .tag-ok 是绿、.tag-bad 是红，跟涨跌无关，这里不重映射；
 * 圆点绝对定位放进标签原有的左内边距（10px）里，标签宽度不变，表格列宽不受影响。 */
.main :is(.tag-ok,.tag-bad)[data-motion-ready]{position:relative}
.main :is(.tag-ok,.tag-bad)[data-motion-ready]::before{content:"";position:absolute;left:3px;top:50%;width:5px;height:5px;margin-top:-2.5px;border-radius:50%;background:currentColor;
  box-shadow:0 0 0 4px color-mix(in srgb,currentColor 13%,transparent);animation:kb-motion-halo 3s ease-in-out infinite;animation-play-state:paused;pointer-events:none}
.main :is(.tag-ok,.tag-bad).motion-visible::before{animation-play-state:running}
@keyframes kb-motion-halo{0%,100%{opacity:.55}50%{opacity:1}}
html[data-motion-still] .main :is(.tag-ok,.tag-bad)[data-motion-ready]::before{animation:none}
@media (prefers-reduced-motion:reduce){.main :is(.tag-ok,.tag-bad)[data-motion-ready]::before{animation:none}}

/* ================= V18 空状态：星核代替图标 + 虚线玻璃底（同 Flux motion.js:168-172、body-tone.css:8-13、cabin-layers.css:12-25） ================= */
.motion-empty-orb{display:block!important;width:48px!important;height:48px!important;margin:0 auto 12px;cursor:pointer;pointer-events:auto;transition:transform .18s ease,filter .18s ease}
.motion-empty-orb:hover{transform:scale(1.08);filter:brightness(1.15)}
/* 独立的空状态（不在卡片 / 表格壳里）做成虚线描边的玻璃块；用 outline 画虚线，不占尺寸 */
html[data-cabin] .main .empty-state{outline:1px dashed var(--line-2);outline-offset:-1px;border-radius:12px;background:rgba(var(--brand-rgb),.035)}
html[data-cabin] .main :is(.card,.table-shell,.table-wrap,.panel-card,.list-card) .empty-state{outline:0;background:transparent}

/* ================= V24 Ask 入口的星核小图标（同 Flux app.css:1285-1286） =================
 * 负外边距：小图标不撑高所在行（行高仍由文字定）；落在深色侧栏里时 orb.js 按底色亮度自动换深色配色 */
.ex-orb-ico{display:inline-block;width:21px;height:21px;margin:-2px;flex:none;background:transparent!important;box-shadow:none;vertical-align:middle}
.chapter-btn .ex-orb-ico{width:19px;height:19px}

/* ================= V36 AI 模式卡片顶边渐变细线（同 Flux cabin-ai.css 的 tile-accent + cai-glint） =================
 * 1px 青→紫渐变线留在卡片上边缘，3.6s 在 .35↔.9 间明暗；只动 opacity。AI 模式的首屏是画布，所以不加滤镜 / 位移。 */
html[data-cabin] body.aimode-on .x-card{position:relative}
html[data-cabin] body.aimode-on .x-card::before{content:"";position:absolute;top:0;left:16px;right:16px;height:1px;pointer-events:none;opacity:.7;
  background:linear-gradient(90deg,transparent,rgba(var(--brand-rgb),.6),rgba(var(--pal-acc-rgb,var(--brand-rgb)),.35),transparent)}
html[data-cabin][data-navfx] body.aimode-on .x-card::before{animation:kb-glint 3.6s ease-in-out infinite}
@keyframes kb-glint{0%,100%{opacity:.35}50%{opacity:.9}}
html[data-motion-still] body.aimode-on .x-card::before{animation:none}
@media (prefers-reduced-motion:reduce){html[data-cabin] body.aimode-on .x-card::before{animation:none}}

/* ================= V25 折线流光叠层（chart-flow.js 往图表容器里放一块 canvas） ================= */
.kb-flow{position:absolute;inset:0;pointer-events:none;z-index:4}
html[data-motion-still] .kb-flow{visibility:hidden}
