/* ============================================================================
   FLEET OS V2 · SIGNAL LIME —— 全站共用设计系统
   唯一设计源：scheme-preview.html
   取向：明日方舟的工业 HUD 纪律  ×  Apple 的材质与排版克制
   ---------------------------------------------------------------------------
   页面约定
     · 令牌：:root 为深色默认；[data-ui="light"] 覆盖为液态玻璃浅色
     · 组件：.fo-* 通用组件；页面自有类名只负责布局
     · 深色 = 工业 HUD；浅色 = Apple 液态玻璃（几何全面胶囊化）
   ========================================================================== */

/* ===== 令牌 ===== */
:root {
  color-scheme: dark;
  /* 版式 */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
          "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", Consolas, "Courier New", monospace;
  /* 圆角 / 倒角 */
  --r-xs: 4px; --r-sm: 6px; --r: 10px; --r-lg: 14px; --r-pill: 999px;
  --chamfer: 12px;
  /* 空间 */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  /* 动效 */
  --ease: cubic-bezier(.2,.7,.2,1);
  --t: .2s;
  /* 色彩 —— 深色（默认） */
  --bg: #0a0e10;
  --bg-2: #0d1315;
  --surface: #121a1c;
  --surface-2: #172124;
  --inset: #0b1113;
  --line: rgba(216,228,214,.10);
  --line-2: rgba(216,228,214,.20);
  --ink: #eef1e9;
  --ink-2: #a4afa7;
  --ink-3: #6e7c74;
  --lime: #d3ec63;
  --lime-hi: #e4fa86;
  --lime-fill: #d3ec63;
  --on-lime: #10150e;
  --amber: #ff8057;
  --red: #ff6b6b;
  --cool: #8fd9ff;
  --bar: rgba(10,15,17,.72);
  --shadow: 0 18px 44px rgba(0,0,0,.34);
  /* 兼容旧令牌名 */
  --green: var(--lime);
  --green-hi: var(--lime-hi);
}
[data-ui="light"] {
  color-scheme: light;
  --bg: #f4f6f2;
  --bg-2: #eef1ec;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --inset: #f2f4ef;
  --line: rgba(22,32,26,.10);
  --line-2: rgba(22,32,26,.20);
  --ink: #171d18;
  --ink-2: #5c6862;
  --ink-3: #8a968f;
  --lime: #5f7d17;
  --lime-hi: #4c660f;
  --lime-fill: #d3ec63;
  --on-lime: #1b2410;
  --amber: #c2542c;
  --red: #c9342b;
  --cool: #0873a8;
  --bar: rgba(255,255,255,.34);
  --shadow: 0 18px 44px rgba(28,45,60,.16);
  --glass: rgba(255,255,255,.42);
  --glass-2: rgba(255,255,255,.58);
  --glass-hi: rgba(255,255,255,.95);
  --glass-edge: rgba(255,255,255,.78);
}

/* ===== 基础 ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
.lg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
body {
  margin: 0; min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px; line-height: 1.6;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
img, svg { max-width: 100%; }
::selection { color: var(--on-lime); background: var(--lime); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.fo-mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* 环境层：顶部冷光晕 + 极淡工业网格（页面可加 .fo-flat 关闭） */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 42% at 76% -6%, color-mix(in srgb, var(--lime) 9%, transparent), transparent 70%),
    radial-gradient(48% 40% at 8% 4%, color-mix(in srgb, var(--cool) 6%, transparent), transparent 72%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 60% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 60% at 50% 0%, #000 0%, transparent 78%);
}
body.fo-flat::before,
body.fo-flat::after { display: none; }

/* 四角取景框（方舟式，纯渐变绘制） */
.fo-hud {
  --hc: var(--lime);
  background-image:
    linear-gradient(var(--hc),var(--hc)), linear-gradient(var(--hc),var(--hc)),
    linear-gradient(var(--hc),var(--hc)), linear-gradient(var(--hc),var(--hc)),
    linear-gradient(var(--hc),var(--hc)), linear-gradient(var(--hc),var(--hc)),
    linear-gradient(var(--hc),var(--hc)), linear-gradient(var(--hc),var(--hc));
  background-size: 11px 1px,1px 11px, 11px 1px,1px 11px, 11px 1px,1px 11px, 11px 1px,1px 11px;
  background-position: 0 0,0 0, 100% 0,100% 0, 0 100%,0 100%, 100% 100%,100% 100%;
  background-repeat: no-repeat;
}

/* ===== 排版 ===== */
.fo-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--lime); font: 700 10px/1.4 var(--mono);
  letter-spacing: .22em; text-transform: uppercase;
}
.fo-kicker::before {
  content: ""; width: 26px; height: 1px; background: var(--lime);
  transform: scaleX(0); transform-origin: left;
  transition: transform .9s var(--ease) .12s;
}
.fo-rv.is-in .fo-kicker::before,
.is-in .fo-kicker::before { transform: scaleX(1); }
.fo-h2 {
  margin: 14px 0 0; font-size: clamp(26px, 3.4vw, 40px); font-weight: 700;
  line-height: 1.12; letter-spacing: -.05em;
}
.fo-note { margin: 12px 0 0; max-width: 640px; color: var(--ink-2); font-size: 14px; line-height: 1.75; }
h1, h2, h3, h4 { margin: 0; }

/* ===== 顶栏 ===== */
.fo-topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: var(--s5);
  min-height: 62px; padding: 0 clamp(18px, 4vw, 56px);
  background: var(--bar);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}
.fo-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.fo-brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px;
  border: 1px solid var(--lime); color: var(--lime);
  font: 700 13px/1 var(--mono); transform: rotate(45deg); border-radius: 2px;
  transition: box-shadow .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.fo-brand-mark > span { transform: rotate(-45deg); }
.fo-brand:hover .fo-brand-mark {
  color: var(--lime-hi); border-color: var(--lime-hi);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--lime) 8%, transparent);
}
.fo-brand b { display: block; font-size: 13px; font-weight: 750; letter-spacing: .16em; }
.fo-brand small { display: block; margin-top: 3px; color: var(--ink-3); font: 600 8px/1 var(--mono); letter-spacing: .18em; }
.fo-nav { display: flex; gap: 6px; margin-left: auto; }
.fo-nav a {
  position: relative; padding: 8px 12px; border-radius: var(--r-sm);
  color: var(--ink-2); font-size: 12.5px;
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
}
.fo-nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--lime); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .32s var(--ease);
}
.fo-nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.fo-nav a.on { color: var(--lime); }
.fo-nav a.on::after { transform: scaleX(1); }
.fo-theme {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  min-height: 32px; padding: 0 13px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--ink-2); font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.fo-theme:hover { color: var(--ink); background: var(--surface-2); }
.fo-theme svg { width: 14px; height: 14px; }
.fo-cta {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  min-height: 34px; padding: 0 14px; border: 1px solid color-mix(in srgb, var(--lime) 46%, transparent);
  color: var(--lime); font-size: 12px; font-weight: 680; letter-spacing: .04em;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.fo-cta svg { width: 13px; height: 13px; }
.fo-cta:hover { background: var(--lime); color: var(--on-lime); }

/* ===== 遥测滚动条 ===== */
.fo-ticker {
  position: relative; overflow: hidden; z-index: 1;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.fo-ticker-track {
  display: flex; gap: 46px; width: max-content; padding: 10px 0;
  animation: foTicker 38s linear infinite;
}
.fo-ticker:hover .fo-ticker-track { animation-play-state: paused; }
.fo-ticker-track span {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  color: var(--ink-3); font: 600 10px/1 var(--mono); letter-spacing: .17em; text-transform: uppercase;
}
.fo-ticker-track span b { color: var(--lime); font-weight: 700; }
.fo-ticker-track i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 9px var(--lime); animation: foPulseDot 2.2s ease-in-out infinite;
}
.fo-ticker::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--bg), transparent 7%, transparent 93%, var(--bg));
}
@keyframes foTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes foPulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .22; } }

/* ===== 按钮 ===== */
.fo-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 38px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--r-sm);
  font-size: 12.5px; font-weight: 650; letter-spacing: .02em; cursor: pointer;
  background: transparent; color: var(--ink);
  transition: background var(--t) var(--ease), color var(--t) var(--ease),
              border-color var(--t) var(--ease), transform var(--t) var(--ease), filter var(--t) var(--ease);
}
.fo-btn:active { transform: translateY(1px); }
.fo-btn:disabled, .fo-btn[disabled] { opacity: .42; cursor: not-allowed; }
.fo-btn svg { width: 14px; height: 14px; }
.fo-btn-p {
  color: var(--on-lime); background: var(--lime-fill);
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
}
.fo-btn-p:hover { filter: brightness(1.06); }
.fo-btn-p::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-180%); opacity: 0; pointer-events: none;
}
.fo-btn-p:hover::after { animation: foShine .82s var(--ease); }
@keyframes foShine {
  0% { opacity: 0; transform: translateX(-180%); }
  16% { opacity: 1; }
  100% { opacity: 0; transform: translateX(320%); }
}
.fo-btn-s {
  color: var(--ink); border-color: var(--line-2); background: var(--surface-2);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.fo-btn-s:hover { border-color: color-mix(in srgb, var(--lime) 55%, var(--line-2)); color: var(--lime); }
.fo-btn-g { color: var(--ink-2); }
.fo-btn-g:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.fo-pill {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 30px; padding: 0 13px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink);
  font-size: 11.5px; font-weight: 650; cursor: pointer;
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.fo-pill:hover { color: var(--lime); border-color: color-mix(in srgb, var(--lime) 46%, var(--line-2)); }

/* 启动键（方舟签名：两侧导轨 + 倒角中键） */
.fo-launch { position: relative; display: flex; align-items: center; gap: 14px; height: 54px; }
.fo-rail { position: relative; flex: 1 1 auto; height: 20px; transition: flex-basis .46s var(--ease); }
.fo-rail::before {
  content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px;
  transform: translateY(-50%);
}
.fo-rail-l::before { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--lime) 78%, transparent)); }
.fo-rail-r::before { background: linear-gradient(90deg, color-mix(in srgb, var(--lime) 78%, transparent), transparent); }
.fo-rail > i {
  position: absolute; top: 50%; left: 0; width: 26%; height: 1px; transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  animation: foFlow 3.4s cubic-bezier(.55,0,.45,1) infinite;
}
.fo-rail-r > i { animation-direction: reverse; }
@keyframes foFlow {
  0% { transform: translate(-130%,-50%); opacity: 0; }
  16% { opacity: .9; }
  84% { opacity: .9; }
  100% { transform: translate(390%,-50%); opacity: 0; }
}
.fo-launch .fo-btn-p { min-width: 150px; height: 44px; letter-spacing: .34em; text-indent: .34em; font-weight: 700; }
.fo-launch:hover .fo-rail { flex: 0 1 30px; }

/* ===== 输入 ===== */
.fo-field { display: block; }
.fo-field + .fo-field { margin-top: 15px; }
.fo-label {
  display: block; margin: 0 0 7px 2px; color: var(--ink-3);
  font: 700 9.5px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase;
}
.fo-input {
  display: block; width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  color: var(--ink); background: var(--inset); font-size: 14px; outline: none;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t) var(--ease);
}
.fo-input::placeholder { color: var(--ink-3); }
.fo-input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 16%, transparent);
}

/* ===== 面板 ===== */
.fo-panel {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden;
}
.fo-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}
.fo-panel-head b { font-size: 12.5px; font-weight: 650; letter-spacing: .01em; }
.fo-code {
  color: var(--ink-3); font: 700 9px/1 var(--mono);
  letter-spacing: .16em; text-transform: uppercase; font-style: normal;
}
.fo-panel-body { padding: 18px 16px; }

/* ===== 数据 / 表格 / 徽章 ===== */
.fo-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.fo-stat { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); padding: 16px; }
.fo-stat span { color: var(--ink-3); font: 700 9.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.fo-stat b {
  display: block; margin-top: 10px; font: 700 26px/1 var(--mono);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.fo-stat b.pos { color: var(--lime); }
.fo-stat b.neg { color: var(--red); }

.fo-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.fo-table th {
  padding: 10px 12px; text-align: left; color: var(--ink-3);
  font: 700 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 1px solid var(--line-2);
}
.fo-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.fo-table td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); }
.fo-table tbody tr { transition: background var(--t) var(--ease); }
.fo-table tbody tr:hover { background: color-mix(in srgb, var(--lime) 4%, transparent); }
.fo-table tbody tr:last-child td { border-bottom: 0; }

.fo-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); color: var(--ink-2);
  font: 650 10.5px/1.6 var(--sans); letter-spacing: .04em;
}
.fo-tag.lime { color: var(--lime); border-color: color-mix(in srgb, var(--lime) 42%, transparent); background: color-mix(in srgb, var(--lime) 8%, transparent); }
.fo-tag.amber { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 42%, transparent); background: color-mix(in srgb, var(--amber) 8%, transparent); }
.fo-tag.cool { color: var(--cool); border-color: color-mix(in srgb, var(--cool) 42%, transparent); background: color-mix(in srgb, var(--cool) 8%, transparent); }
.fo-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* 顶部指挥条（分段导航） */
.fo-deck {
  display: flex; align-items: stretch; gap: 2px; overflow-x: auto;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 6px;
}
.fo-deck a {
  position: relative; display: inline-flex; align-items: center;
  min-height: 36px; padding: 0 14px; border-radius: var(--r-sm);
  color: var(--ink-2); font-size: 12px; white-space: nowrap;
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
}
.fo-deck a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.fo-deck a.on { color: var(--lime); background: color-mix(in srgb, var(--lime) 9%, transparent); }
.fo-deck a.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; background: var(--lime); }

/* 侧栏项（编号化） */
.fo-rail-list { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 8px; }
.fo-rail-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm);
  color: var(--ink-2); font-size: 13px; cursor: pointer; text-align: left; width: 100%;
  border: 0; background: none;
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
}
.fo-rail-item i { font: 700 9px/1 var(--mono); letter-spacing: .12em; color: var(--ink-3); font-style: normal; }
.fo-rail-item:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.fo-rail-item.on {
  color: var(--lime);
  background: linear-gradient(90deg, color-mix(in srgb, var(--lime) 12%, transparent), transparent);
  box-shadow: inset 2px 0 var(--lime);
}
.fo-rail-item.on i { color: var(--lime); }

/* 页脚 */
.fo-footer {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; align-items: center;
  padding: 26px clamp(18px, 4vw, 56px) 34px; border-top: 1px solid var(--line);
  color: var(--ink-3); font-size: 11.5px;
}
.fo-footer a { color: var(--ink-2); }
.fo-footer a:hover { color: var(--lime); }
.fo-filing { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; }
.fo-filing a { display: inline-flex; align-items: center; gap: 5px; }
.fo-filing img { display: block; width: 14px; height: 14px; }

/* ===== 滚动揭示 ===== */
.fo-rv { opacity: 0; transform: translateY(22px); transition: opacity .78s var(--ease), transform .78s var(--ease); }
.fo-rv.is-in { opacity: 1; transform: none; }
/* 标题入场完全交给容器（.fo-rv 的位移 + 淡入），不再额外叠加 animation：
   避免动画被暂停 / 精简时标题停在起始帧 */
.fo-rv h1 { transform: translateZ(0); }

/* 卡片抬升 */
.fo-lift { transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease); }
.fo-lift:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--lime) 42%, var(--line));
  box-shadow: 0 26px 52px -30px rgba(0,0,0,.7);
}

/* ============================================================================
   浅色 · LIQUID GLASS —— Apple 液态玻璃（几何全面胶囊化）
   ========================================================================== */
[data-ui="light"] body { background: #eef2f7; }
[data-ui="light"] body::before {
  background:
    radial-gradient(46% 44% at 10% 6%, rgba(121,189,255,.62) 0%, transparent 62%),
    radial-gradient(50% 46% at 90% 4%, rgba(199,155,255,.58) 0%, transparent 64%),
    radial-gradient(54% 50% at 84% 84%, rgba(95,227,171,.50) 0%, transparent 66%),
    radial-gradient(48% 44% at 12% 92%, rgba(255,187,117,.44) 0%, transparent 66%),
    radial-gradient(72% 62% at 50% 44%, rgba(255,255,255,.78) 0%, transparent 68%);
  filter: saturate(118%);
  animation: foMeshDrift 26s ease-in-out infinite;
}
[data-ui="light"] body::after { opacity: .30; background-size: 68px 68px; }
@keyframes foMeshDrift {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  33% { transform: translate3d(2%,-2%,0) scale(1.06); }
  66% { transform: translate3d(-2%,2%,0) scale(1.04); }
}

/* 玻璃面板：真透明 + 折射 + 镜面高光 */
[data-ui="light"] .fo-panel,
[data-ui="light"] .fo-stat,
[data-ui="light"] .fo-rail-list,
[data-ui="light"] .fo-deck {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    inset 0 -1px 0 rgba(255,255,255,.42),
    inset 0 0 0 .5px rgba(255,255,255,.30),
    0 0 0 .5px rgba(12,24,36,.07),
    0 18px 44px rgba(28,45,60,.16);
  backdrop-filter: blur(22px) saturate(185%);
  -webkit-backdrop-filter: blur(22px) saturate(185%);
  backdrop-filter: blur(22px) saturate(185%) url(#lg-refract);
  -webkit-backdrop-filter: blur(22px) saturate(185%) url(#lg-refract);
}
[data-ui="light"] .fo-topbar,
[data-ui="light"] .fo-ticker,
[data-ui="light"] .fo-panel-head,
[data-ui="light"] .fo-footer {
  background: rgba(255,255,255,.34);
  backdrop-filter: blur(24px) saturate(185%) url(#lg-refract);
  -webkit-backdrop-filter: blur(24px) saturate(185%) url(#lg-refract);
  border-color: var(--glass-edge);
}
[data-ui="light"] .fo-theme,
[data-ui="light"] .fo-cta,
[data-ui="light"] .fo-pill { background: rgba(255,255,255,.62); border-color: var(--glass-edge); }
[data-ui="light"] .fo-btn,
[data-ui="light"] .fo-pill,
[data-ui="light"] .fo-cta { border-radius: var(--r-pill); clip-path: none; }
[data-ui="light"] .fo-btn-p {
  color: var(--on-lime);
  background: linear-gradient(180deg, rgba(211,236,99,.94), rgba(211,236,99,.74));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -1px 0 rgba(120,150,40,.35), 0 10px 24px rgba(95,125,23,.26);
}
[data-ui="light"] .fo-btn-s { color: var(--ink); background: var(--glass-2); border-color: var(--glass-edge); }
[data-ui="light"] .fo-input {
  color: var(--ink); background: rgba(255,255,255,.42); border-color: var(--glass-edge);
  box-shadow: inset 0 1px 2px rgba(28,45,60,.06), inset 0 1px 0 var(--glass-hi);
}
[data-ui="light"] .fo-input:focus {
  border-color: color-mix(in srgb, var(--lime) 62%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 18%, transparent);
}
[data-ui="light"] .fo-rail-item.on {
  background: linear-gradient(90deg, color-mix(in srgb, var(--lime) 16%, transparent), transparent);
}
[data-ui="light"] .fo-ticker-track span { color: rgba(60,60,67,.55); }
[data-ui="light"] .fo-ticker-track span b { color: var(--lime); }
[data-ui="light"] .fo-deck { border-radius: var(--r-pill); padding: 5px; }
[data-ui="light"] .fo-deck a { border-radius: var(--r-pill); }
[data-ui="light"] .fo-table th { color: rgba(60,60,67,.5); border-bottom-color: rgba(15,30,40,.14); }
[data-ui="light"] .fo-table td { color: var(--ink-2); border-bottom-color: rgba(15,30,40,.08); }
[data-ui="light"] ::selection { color: var(--on-lime); background: var(--lime-fill); }

/* 液态玻璃滑动指示器（分段导航共用，由页面 JS 定位） */
.lg-ind {
  display: none; position: absolute; top: 0; left: 0; z-index: 0;
  border-radius: 999px; pointer-events: none;
  background: linear-gradient(180deg, rgba(48,52,60,.56), rgba(22,24,28,.42));
  border: 1px solid rgba(255,255,255,.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 22px rgba(0,0,0,.22);
  transition: transform .52s cubic-bezier(.34,1.5,.5,1),
              width .52s cubic-bezier(.34,1.5,.5,1),
              height .52s cubic-bezier(.34,1.5,.5,1);
}
[data-ui="light"] .lg-ind { display: block; }
[data-ui="light"] .fo-nav a { position: relative; z-index: 1; }

/* 滚动条 */
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink) 22%, transparent) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--ink) 20%, transparent);
  border: 3px solid transparent; border-radius: 99px; background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--lime) 46%, transparent); background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .fo-rv { opacity: 1; transform: none; }
}
