@charset "UTF-8";
/* Alpha 语音指令的样式（CR-1107）：由 Flux 的 css/voice.css 生成，样式原样，只换了变量名、亮色选择器与形象选择器。
 * 浮窗、语音菜单、快捷键面板、状态颜色（html[data-fvs]）都在这里；首次用到语音前就加载（index 引用），体量很小。 */
/* Alpha 语音对话全屏层：不随主题变色，统一深空底 + 品牌光，保证任何外观下都有「沉浸感」与对比度。 */
.fv { position: fixed; inset: 0; z-index: 400; display: none; flex-direction: column; color: #eaf3ff;
  background: radial-gradient(120% 90% at 50% 38%, rgba(32, 110, 210, .38), transparent 60%),
              radial-gradient(80% 60% at 80% 100%, rgba(40, 200, 160, .18), transparent 70%),
              linear-gradient(180deg, #050b18 0%, #071428 55%, #040913 100%);
  -webkit-font-smoothing: antialiased; }
.fv.open { display: flex; animation: fv-in .32s ease both; }
@keyframes fv-in { from { opacity: 0; transform: scale(1.02); } }
body.fv-on { overflow: hidden; }

.fv-top { display: flex; align-items: center; gap: 12px; padding: 18px 24px; }
.fv-brand { font-weight: 600; letter-spacing: 2px; font-size: 14px; color: #9fc6ff; }
.fv-station { font-size: 13px; color: rgba(234, 243, 255, .6); }
.fv-x { margin-left: 8px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); color: #eaf3ff; font-size: 16px; cursor: pointer; }
.fv-x:hover { background: rgba(255,255,255,.14); }
.fv-top .fv-chip { margin-left: auto; }

.fv-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 0 24px; text-align: center; }
.fv-orb-btn { position: relative; width: 220px; height: 220px; border: 0; padding: 0; background: none; cursor: pointer;
  display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
.fv-orb-btn .ex-orb.fv-orb { width: 168px; height: 168px; }
/* 外圈光晕：随音量（--lv，由 voice.js 每帧写入）呼吸 */
.fv-ring { --lv: 0; position: absolute; inset: 6px; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 calc(30px + 70px * var(--lv)) calc(4px + 26px * var(--lv)) rgba(64, 160, 255, calc(.18 + .4 * var(--lv)));
  transform: scale(calc(1 + .1 * var(--lv))); transition: transform .08s linear; }
.fv[data-phase="listening"] .fv-ring, .fv[data-phase="recording"] .fv-ring { box-shadow: 0 0 calc(30px + 70px * var(--lv)) calc(4px + 26px * var(--lv)) rgba(47, 230, 160, calc(.2 + .45 * var(--lv))); }
.fv[data-phase="thinking"] .fv-ring, .fv[data-phase="transcribing"] .fv-ring { animation: fv-think 1.6s ease-in-out infinite;
  box-shadow: 0 0 46px 10px rgba(251, 191, 72, .32); }
@keyframes fv-think { 50% { transform: scale(1.06); opacity: .65; } }
.fv[data-phase="paused"] .fv-orb-btn { opacity: .55; }

.fv-status { font-size: 15px; letter-spacing: .5px; color: rgba(234, 243, 255, .72); min-height: 22px; }
.fv-status.recording, .fv-status.listening { color: #5ff0b8; }
.fv-status.thinking, .fv-status.transcribing { color: #ffd27a; }
.fv-status.error { color: #ff9c9c; }
.fv-user { font-size: 17px; color: rgba(234, 243, 255, .62); max-width: 760px; min-height: 24px; }
.fv-answer { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.6; font-weight: 500; color: #fff; max-width: 860px;
  max-height: 32vh; overflow: auto; text-wrap: pretty; scrollbar-width: none; }
.fv-answer:empty { display: none; }

.fv-sugg { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; }
.fv-sugg[hidden] { display: none; }
.fv-chip { border: 1px solid rgba(160, 200, 255, .28); background: rgba(255,255,255,.06); color: #dcebff; border-radius: 999px;
  padding: 8px 16px; font-size: 14px; cursor: pointer; }
.fv-chip:hover { background: rgba(255,255,255,.14); border-color: rgba(160, 200, 255, .5); }

.fv-bottom { display: flex; justify-content: center; gap: 14px; padding: 18px 24px calc(28px + env(safe-area-inset-bottom)); }
.fv-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #eaf3ff; font-size: 15px; }
.fv-btn:hover { background: rgba(255,255,255,.16); }
.fv-btn .i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.fv-btn.on { background: rgba(255, 120, 120, .2); border-color: rgba(255, 140, 140, .5); }
.fv-btn.danger { background: rgba(229, 72, 77, .9); border-color: transparent; color: #fff; }
.fv-btn.danger:hover { background: #e5484d; }

@media (max-width: 700px) {
  .fv-orb-btn { width: 180px; height: 180px; } .fv-orb-btn .ex-orb.fv-orb { width: 136px; height: 136px; }
  .fv-bottom { gap: 10px; } .fv-btn { padding: 0 16px; }
  .fv-top { padding: 14px 16px; } .fv-stage { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { .fv.open { animation: none; } .fv-ring { transition: none; animation: none !important; } }

/* Ask Alpha 欢迎页的「语音对话」入口 */
.ai-talk { display: flex; align-items: center; gap: 12px; margin: 14px auto 0; padding: 12px 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(var(--brand-rgb, 37,99,235), .35); background: linear-gradient(120deg, rgba(var(--brand-rgb, 37,99,235), .16), rgba(var(--brand-rgb, 37,99,235), .04));
  color: var(--text, inherit); text-align: left; transition: transform .15s, box-shadow .15s; }
.ai-talk:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -8px rgba(var(--brand-rgb, 37,99,235), .6); }
.ai-talk .i { width: 22px; height: 22px; fill: none; stroke: var(--brand, currentColor); stroke-width: 2; stroke-linecap: round; flex: none; }
.ai-talk b { display: block; font-size: 14px; } .ai-talk small { display: block; font-size: 12px; color: var(--muted, #888); }

/* 语音层收起（界面操作时）：页面完全可见、可滚动，只在底部留一条小光球胶囊；点光球展开回全屏 */
.fv.docked { background: none; pointer-events: none; }
.fv.docked :is(.fv-top, .fv-sugg, .fv-user, .fv-bottom) { display: none !important; }
.fv.docked .fv-stage { position: fixed; left: 50%; top: auto; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); flex: none;
  flex-direction: row; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 999px; pointer-events: auto; max-width: min(640px, 92vw);
  background: rgba(6, 14, 30, .9); border: 1px solid rgba(120, 180, 255, .22); box-shadow: 0 16px 40px -12px rgba(0,0,0,.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.fv.docked .fv-orb-btn { width: 62px; height: 62px; flex: none; } .fv.docked .fv-orb-btn .ex-orb.fv-orb { width: 50px; height: 50px; }
.fv.docked .fv-ring { inset: 2px; }
.fv.docked .fv-answer { font-size: 14.5px; line-height: 1.5; text-align: left; max-height: 3em; overflow: hidden; }
.fv.docked .fv-stage { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; row-gap: 2px; text-align: left; }
.fv.docked .fv-orb-btn { grid-row: 1 / span 2; }
.fv.docked .fv-status { font-size: 13px; min-height: 0; text-align: left; }
.fv.docked .fv-answer:empty { display: none; }
.fv[data-mode="standby"] .fv-status.sleeping { color: rgba(160, 205, 255, .85); }
.fv.docked[data-mode="standby"] .fv-ring { box-shadow: 0 0 0 2px rgba(34, 211, 238, .55), 0 0 16px 2px rgba(34, 211, 238, .28); }
html.m .fv.docked .fv-stage { bottom: calc(var(--tabbar-h, 90px) + 8px); }

/* 图表浮窗被 Alpha 调整大小时的过渡、被点中的控件闪一下 */
.fc-card.fc-anim { transition: left .28s cubic-bezier(.2,.8,.2,1), top .28s cubic-bezier(.2,.8,.2,1), width .28s cubic-bezier(.2,.8,.2,1), height .28s cubic-bezier(.2,.8,.2,1); }
.ui-op-flash { animation: ui-op-flash 1.3s ease-out; }
@keyframes ui-op-flash { 0%, 30% { box-shadow: 0 0 0 3px rgba(34, 211, 238, .9), 0 0 24px 4px rgba(34, 211, 238, .45); } 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } }
.ai-act.warn { color: var(--warn, #b45309); }

/* 右键 Alpha 形象的语音模式菜单（照 Alice「语音指令」） */
.vc-menu { position: fixed; z-index: 1500; width: 290px; padding: 8px; border-radius: 16px; color: #eaf3ff;
  background: rgba(10, 16, 32, .96); border: 1px solid rgba(140, 180, 255, .18); box-shadow: 0 18px 50px -12px rgba(0,0,0,.6);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: vc-in .16s ease-out; }
.vc-menu[hidden] { display: none; }
@keyframes vc-in { from { opacity: 0; transform: translateY(4px) scale(.98); } }
.vc-menu-h { padding: 6px 10px 8px; font-size: 12.5px; color: rgba(234,243,255,.6); letter-spacing: .5px; }
.vc-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: none; color: inherit; text-align: left; cursor: pointer; }
.vc-opt:hover { background: rgba(255,255,255,.06); }
.vc-opt.on { background: rgba(34, 211, 238, .12); }
.vc-opt i { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(234,243,255,.35); position: relative; }
.vc-opt.on i { border-color: #22d3ee; } .vc-opt.on i::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 8px #22d3ee; }
.vc-opt b { display: block; font-size: 14.5px; } .vc-opt small { display: block; font-size: 12px; color: rgba(234,243,255,.55); margin-top: 1px; }
.vc-text { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 0; border-top: 1px solid rgba(255,255,255,.08); background: none; color: #7cc4ff; font-size: 13.5px; text-align: left; cursor: pointer; border-radius: 0 0 10px 10px; }
html.m .vc-menu { left: 8px !important; right: 8px; top: auto !important; bottom: calc(var(--tabbar-h, 90px) + 8px); width: auto; }
html.m .vc-opt { min-height: 56px; }

/* ---------- 原地对话（右键「对话 / 待命」）：全屏界面不出现，页面不动 ---------- */
.fv.inline { display: none !important; }
/* 左上角 Alpha 名字下面的状态行，取代「储能资产运营平台」那行 */
body.fv-inline #brand-sub { display: none; }
.fv-brandline { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sb-tx, #9fb3d1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv-brandline i { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #8a96ab; }
.fv-brandline:is([data-phase="listening"], [data-phase="recording"]) i { background: #ef6fa8; animation: fvb-pulse 1.4s ease-in-out infinite; }
.fv-brandline:is([data-phase="thinking"], [data-phase="transcribing"]) i { background: #fbbf24; animation: fvb-pulse .9s ease-in-out infinite; }
.fv-brandline[data-phase="speaking"] i { background: #22d3ee; animation: fvb-pulse .6s ease-in-out infinite; }
.fv-brandline[data-phase="error"] { color: #fca5a5; } .fv-brandline[data-phase="error"] i { background: #f87171; }
@keyframes fvb-pulse { 50% { opacity: .35; transform: scale(.7); } }
html[data-nav="mini"] .fv-brandline { display: none; }

/* 回答：Alpha 形象旁边的一块毛玻璃，字逐个以粒子方式聚拢出现，说完 10 秒散开飘走 */
.fv-float { position: fixed; z-index: 96; left: calc(var(--sb-w, 240px) + 16px); top: 14px; width: min(560px, calc(100vw - var(--sb-w, 240px) - 32px));
  padding: 12px 16px; border-radius: 16px; pointer-events: none; opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .35s;
  color: #e6f1ff; background: rgba(12, 22, 44, .42); border: 1px solid rgba(140, 190, 255, .22);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 18px 48px rgba(0, 0, 0, .28); }
.fv-float.show { opacity: 1; transform: none; }
.fvf-st { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #9fc6ff; }
.fvf-st i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fv-float[data-phase="error"] .fvf-st { color: #fca5a5; }
.fvf-user { margin-top: 4px; font-size: 12.5px; color: #9fb3d1; }
.fvf-user:empty { display: none; }
.fvf-ans { margin-top: 6px; font-size: 15px; line-height: 1.65; max-height: 9.9em; overflow: hidden; text-shadow: 0 0 12px rgba(80, 170, 255, .35); }
.fvf-ans:empty { display: none; }
.fvf-ans .pc { display: inline; animation: fvf-in .7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes fvf-in { from { opacity: 0; filter: blur(6px); transform: translate(var(--dx), var(--dy)) scale(1.6); text-shadow: 0 0 18px rgba(120, 200, 255, .9); } }
.fv-float.gone { opacity: 0; transition: opacity 1.2s ease .2s; }
.fv-float.gone .fvf-ans .pc { animation: fvf-out 1.2s ease-in forwards; }
@keyframes fvf-out { to { opacity: 0; filter: blur(5px); transform: translate(calc(var(--dx) * -1), -18px) scale(.6); } }
:root:not([data-theme="dark"]) .fv-float { color: #0f2747; background: rgba(255, 255, 255, .6); border-color: rgba(255, 255, 255, .8); box-shadow: 0 18px 48px rgba(15, 40, 80, .16); }
:root:not([data-theme="dark"]) .fvf-user { color: #5b6b82; } :root:not([data-theme="dark"]) .fvf-st { color: #2563eb; }
:root:not([data-theme="dark"]) .fvf-ans { text-shadow: none; }
html.m .fv-float { left: 12px; right: 12px; width: auto; top: calc(env(safe-area-inset-top) + 60px); }
@media (prefers-reduced-motion: reduce) { .fvf-ans .pc, .fv-float.gone .fvf-ans .pc { animation: none; } }
/* 飘出框左上角放 Alpha 动态形象 */
.fv-float { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.fv-float .fvf-orb { width: 44px; height: 44px; margin-top: 2px; }
.fvf-body { min-width: 0; }

/* ---------- 语音状态：颜色 + 动效一眼可辨 ----------
 * 作用在左上角品牌形象、飘出框里的形象、飘出框边框、名字下面的状态行。颜色用固定值，不随主题色变，保证各主题下都分得清。 */
:root { --fvs-c: 120, 140, 170; }
:root[data-fvs="sleep"]  { --fvs-c: 120, 140, 170; }
:root[data-fvs="listen"] { --fvs-c: 34, 211, 238; }   /* 青：在听，等你开口 */
:root[data-fvs="hear"]   { --fvs-c: 52, 211, 153; }   /* 绿：听到你在说话 */
:root[data-fvs="wake"]   { --fvs-c: 74, 222, 128; }   /* 亮绿：刚听到「Alpha」 */
:root[data-fvs="think"]  { --fvs-c: 251, 191, 36; }   /* 琥珀：识别 / 查数据 */
:root[data-fvs="speak"]  { --fvs-c: 192, 132, 252; }  /* 紫：正在回答 */
:root[data-fvs="error"]  { --fvs-c: 248, 113, 113; }
:root[data-fvs] :is(.sidebar .brand .ex-orb, .fv-float .fvf-orb, #sf-orb) { border-radius: 50%; transition: box-shadow .25s, filter .25s; }
:root[data-fvs="sleep"] :is(.sidebar .brand .ex-orb, .fv-float .fvf-orb, #sf-orb) { filter: saturate(.35) brightness(.8); animation: fvs-breath 3.6s ease-in-out infinite; }
:root[data-fvs="listen"] :is(.sidebar .brand .ex-orb, .fv-float .fvf-orb, #sf-orb) { animation: fvs-ring 1.8s ease-out infinite; }
:root[data-fvs="hear"] :is(.sidebar .brand .ex-orb, .fv-float .fvf-orb, #sf-orb) {
  box-shadow: 0 0 0 calc(3px + var(--fv-lv, 0) * 10px) rgba(var(--fvs-c), .55), 0 0 calc(14px + var(--fv-lv, 0) * 26px) rgba(var(--fvs-c), .7);
  animation: fvs-ring .7s ease-out infinite; }
:root[data-fvs="wake"] :is(.sidebar .brand .ex-orb, .fv-float .fvf-orb, #sf-orb) { animation: fvs-wake .9s ease-out 1; }
:root[data-fvs="think"] :is(.sidebar .brand .ex-orb, .fv-float .fvf-orb, #sf-orb) { animation: fvs-spin 1.1s linear infinite; }
:root[data-fvs="speak"] :is(.sidebar .brand .ex-orb, .fv-float .fvf-orb, #sf-orb) { animation: fvs-wave .55s ease-in-out infinite alternate; }
:root[data-fvs="error"] :is(.sidebar .brand .ex-orb, .fv-float .fvf-orb, #sf-orb) { box-shadow: 0 0 0 3px rgba(var(--fvs-c), .6), 0 0 18px rgba(var(--fvs-c), .6); }
@keyframes fvs-breath { 50% { opacity: .55; } }
@keyframes fvs-ring { 0% { box-shadow: 0 0 0 0 rgba(var(--fvs-c), .75), 0 0 12px rgba(var(--fvs-c), .5); } 100% { box-shadow: 0 0 0 14px rgba(var(--fvs-c), 0), 0 0 12px rgba(var(--fvs-c), .25); } }
@keyframes fvs-wake { 0% { box-shadow: 0 0 0 0 rgba(var(--fvs-c), 1), 0 0 30px rgba(var(--fvs-c), 1); transform: scale(1.12); } 100% { box-shadow: 0 0 0 26px rgba(var(--fvs-c), 0), 0 0 12px rgba(var(--fvs-c), .3); transform: none; } }
@keyframes fvs-spin {   /* 琥珀色光点绕形象转圈 */
  0%   { box-shadow: 0 -4px 0 1px rgba(var(--fvs-c), .95), 0 0 16px rgba(var(--fvs-c), .45); }
  25%  { box-shadow: 4px 0 0 1px rgba(var(--fvs-c), .95), 0 0 16px rgba(var(--fvs-c), .45); }
  50%  { box-shadow: 0 4px 0 1px rgba(var(--fvs-c), .95), 0 0 16px rgba(var(--fvs-c), .45); }
  75%  { box-shadow: -4px 0 0 1px rgba(var(--fvs-c), .95), 0 0 16px rgba(var(--fvs-c), .45); }
  100% { box-shadow: 0 -4px 0 1px rgba(var(--fvs-c), .95), 0 0 16px rgba(var(--fvs-c), .45); } }
@keyframes fvs-wave { from { box-shadow: 0 0 0 2px rgba(var(--fvs-c), .5), 0 0 10px rgba(var(--fvs-c), .5); } to { box-shadow: 0 0 0 7px rgba(var(--fvs-c), .25), 0 0 26px rgba(var(--fvs-c), .8); } }
/* 飘出框边框与状态文字同色，状态行与名字下面的提示行也换成同色 */
:root[data-fvs] .fv-float { box-shadow: 0 22px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 34px rgba(var(--fvs-c), .32); transition: box-shadow .25s; }
:root[data-fvs] .fv-float .fvf-st, :root[data-fvs] .fv-brandline { color: rgb(var(--fvs-c)); }
:root[data-fvs] .fv-brandline i, :root[data-fvs] .fvf-st i { background: rgb(var(--fvs-c)); }
:root[data-fvs="hear"] .fvf-st i, :root[data-fvs="hear"] .fv-brandline i { transform: scale(calc(1 + var(--fv-lv, 0) * 1.6)); }
:root:not([data-theme="dark"])[data-fvs="sleep"] .fv-float .fvf-st { color: #64748b; }
@media (prefers-reduced-motion: reduce) { :root[data-fvs] :is(.sidebar .brand .ex-orb, .fv-float .fvf-orb, #sf-orb) { animation: none; } }

/* ---------- 飘出框：可拖动、与背景拉开区分的毛玻璃 + 流光环绕 ---------- */
@property --fvf-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.fv-float.show { pointer-events: auto; cursor: grab; user-select: none; }
.fv-float.dragging { cursor: grabbing; transition: none; }
.fv-float {
  isolation: isolate; overflow: visible; border-color: transparent;
  /* 偏紫的深色玻璃，和蓝色背景面板区分开；内侧一圈高光 */
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(var(--fvs-c, 120, 140, 170), .22), transparent 55%),
    linear-gradient(135deg, rgba(46, 30, 92, .62), rgba(14, 26, 58, .58));
  backdrop-filter: blur(24px) saturate(1.7) brightness(1.08); -webkit-backdrop-filter: blur(24px) saturate(1.7) brightness(1.08);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 34px rgba(var(--fvs-c, 120, 140, 170), .28);
}
/* 流光：沿边框转一圈的彩色光带（遮罩只留 1.5px 边框） */
.fv-float::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1; pointer-events: none;
  background: conic-gradient(from var(--fvf-a), rgba(var(--fvs-c, 34, 211, 238), .15), rgba(var(--fvs-c, 34, 211, 238), 1) 12%,
    #a78bfa 25%, rgba(255, 255, 255, .15) 38%, rgba(var(--fvs-c, 34, 211, 238), .15) 60%, #22d3ee 78%, rgba(var(--fvs-c, 34, 211, 238), .15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: fvf-flow 3.2s linear infinite;
}
/* 外侧柔光，跟流光同步转 */
.fv-float::after {
  content: ''; position: absolute; inset: -6px; border-radius: 22px; z-index: -2; pointer-events: none; filter: blur(14px); opacity: .55;
  background: conic-gradient(from var(--fvf-a), transparent, rgba(var(--fvs-c, 34, 211, 238), .8) 15%, transparent 35%, #8b5cf6 70%, transparent);
  animation: fvf-flow 3.2s linear infinite;
}
@keyframes fvf-flow { to { --fvf-a: 360deg; } }
:root[data-fvs="think"] .fv-float::before, :root[data-fvs="think"] .fv-float::after { animation-duration: 1.4s; }
:root[data-fvs="speak"] .fv-float::before, :root[data-fvs="speak"] .fv-float::after { animation-duration: 2s; }
:root[data-fvs="sleep"] .fv-float::before, :root[data-fvs="sleep"] .fv-float::after { animation-duration: 8s; opacity: .5; }
:root:not([data-theme="dark"]) .fv-float {
  background: radial-gradient(120% 140% at 0% 0%, rgba(var(--fvs-c, 120, 140, 170), .18), transparent 55%), linear-gradient(135deg, rgba(245, 240, 255, .78), rgba(232, 242, 255, .72));
  box-shadow: 0 22px 60px rgba(30, 40, 90, .2), inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 30px rgba(var(--fvs-c, 120, 140, 170), .25); }
@media (prefers-reduced-motion: reduce) { .fv-float::before, .fv-float::after { animation: none; } }
/* 用户 2026-11-14：不要整个窗口散光，只留边框流光——去掉外侧柔光、彩色外发光和窗内彩色晕染 */
.fv-float::after { content: none; }
.fv-float, :root[data-fvs] .fv-float { background: linear-gradient(135deg, rgba(40, 30, 84, .66), rgba(14, 26, 58, .62));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .12); }
:root:not([data-theme="dark"]) .fv-float, :root:not([data-theme="dark"])[data-fvs] .fv-float { background: linear-gradient(135deg, rgba(245, 240, 255, .82), rgba(232, 242, 255, .78));
  box-shadow: 0 18px 44px rgba(30, 40, 90, .18), inset 0 1px 0 rgba(255, 255, 255, .9); }

/* 用户 2026-11-14：流光太快，改为缓慢流动 */
.fv-float::before { animation-duration: 9s; }
:root[data-fvs="think"] .fv-float::before { animation-duration: 5s; }
:root[data-fvs="speak"] .fv-float::before { animation-duration: 7s; }
:root[data-fvs="sleep"] .fv-float::before { animation-duration: 16s; }
/* 粒子收回左上角形象后亮一下（与超级模式 页 #sf-orb.sf-absorb 同效） */
.ex-orb.sf-absorb{animation:sf-absorb2 .9s ease-out 1}
@keyframes sf-absorb2{0%{filter:brightness(1.9) drop-shadow(0 0 18px rgba(165,180,252,.95));transform:scale(1.12)}100%{filter:none;transform:none}}

/* 对话面板里的语音状态条 + 「语音对话」按钮进行中样式（2026-11-14：开了语音要明示「正在听，请直接说话」，不能靠猜）。
   颜色跟语音状态走：在听青、听到说话绿、查数据琥珀、回答紫、出错红（--fvs-c 由 :root[data-fvs] 给出） */
.ai-vbar { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.4;
  border: 1px solid rgba(var(--fvs-c, 34, 211, 238), .55); background: rgba(var(--fvs-c, 34, 211, 238), .12); color: inherit; transition: border-color .25s, background .25s; }
.ai-vbar > i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: rgb(var(--fvs-c, 34, 211, 238)); animation: ai-vbar-pulse 1.4s ease-out infinite; }
.ai-vbar .t { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-vbar .ai-vbar-x { margin-left: auto; flex: none; border: 1px solid rgba(var(--fvs-c, 34, 211, 238), .5); background: transparent; color: inherit; border-radius: 8px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.ai-vbar .ai-vbar-x:hover { background: rgba(var(--fvs-c, 34, 211, 238), .18); }
@keyframes ai-vbar-pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--fvs-c, 34, 211, 238), .6); } 100% { box-shadow: 0 0 0 10px rgba(var(--fvs-c, 34, 211, 238), 0); } }
.ai-talk.on { border-color: rgb(var(--fvs-c, 34, 211, 238)) !important; box-shadow: 0 0 0 3px rgba(var(--fvs-c, 34, 211, 238), .25); animation: ai-vbar-pulse 1.6s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .ai-vbar > i, .ai-talk.on { animation: none; } }
#ai-mic.on { color: #ef4444; border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239, 68, 68, .22); animation: ai-vbar-pulse 1.4s ease-out infinite; }   /* 语音输入录音中 */
/* 输入框「语音通话」按钮（电话图标）：常态绿色描边；通话中变红色实心＝点一下挂断 */
#ai-call { color: #10b981; border: 1px solid rgba(16, 185, 129, .45) !important; background: rgba(16, 185, 129, .08); }
#ai-call:hover { background: rgba(16, 185, 129, .16); }
#ai-call.on { color: #fff; background: #ef4444 !important; border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239, 68, 68, .25); }
#ai-call.on svg { transform: rotate(135deg); transition: transform .2s; }
/* 浮窗关闭键：点了结束语音 */
.fv-float .fvf-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 0; display: grid; place-items: center;
  font-size: 18px; line-height: 1; cursor: pointer; color: inherit; opacity: .6; background: rgba(127,127,127,.16); pointer-events: auto; }
.fv-float .fvf-x:hover, .fv-float .fvf-x:active { opacity: 1; background: rgba(127,127,127,.28); }

/* Alpha 形象上长按不选字、不弹系统菜单（iOS 会画出选区线框），长按交给 voice.js 弹「关闭 / 待命 / 对话」 */
:is(.ai-fab, .aiwb-orb, .aiwb-empty .ex-orb, #sf-orb, .sf-hero, .fv-float .fvf-orb),
:is(#sf-orb, .sf-hero) * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }

/* 麦克风按住说话：按下期间放大 + 红色脉冲，长按不弹系统菜单、不选字 */
#ai-mic { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#ai-mic.hold { transform: scale(1.18); color: #fff !important; background: #ef4444 !important; border-color: #ef4444 !important; box-shadow: 0 0 0 0 rgba(239,68,68,.6); animation: mic-hold 1.1s ease-out infinite; }
@keyframes mic-hold { 70% { box-shadow: 0 0 0 12px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }

/* 语音菜单：快捷键标注 + 快捷键设置面板 */
.vc-kbd { margin-left: 8px; padding: 0 6px; border-radius: 5px; font: 600 11px/18px ui-monospace, monospace; background: rgba(127,127,127,.18); color: inherit; opacity: .8; vertical-align: 1px; }
.vc-ptt { padding: 6px 12px 2px; font-size: 12px; opacity: .7; }
/* 触屏「按住 说话」大按钮 */
.vc-hold { display: block; width: calc(100% - 8px); height: 48px; margin: 8px 4px 0; border: 0; border-radius: 24px; cursor: pointer; color: #eaf3ff; background: rgba(47, 230, 160, .18);
  font-family: inherit; font-size: 15.5px; font-weight: 600; letter-spacing: 3px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; transition: background .15s, transform .15s; }
.vc-hold.hold { background: rgba(47, 230, 160, .36); transform: scale(.985); }
.vc-hold.cancel { background: rgba(248, 113, 113, .36); }
.vc-hold + .vc-ptt { text-align: center; }
:root[data-fvs] .fv-float[data-phase="cancel"] .fvf-st, .fv-float[data-phase="cancel"] .fvf-st { color: #fca5a5; }
:root[data-fvs] .fv-float[data-phase="cancel"] .fvf-st i { background: #fca5a5; }
.vc-foot { display: flex; justify-content: space-between; gap: 8px; }
.vc-keyrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 7px 12px; font-size: 14px; }
.vc-keybtn { min-width: 92px; padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(127,127,127,.35); background: rgba(127,127,127,.12); color: inherit; font: 600 12.5px ui-monospace, monospace; cursor: pointer; }
.vc-keybtn.wait { border-color: #22d3ee; color: #22d3ee; animation: fvs-blink 1s ease-in-out infinite; }
@keyframes fvs-blink { 50% { opacity: .45; } }
