/* ─────────────────────────────────────────────────────────────────────────────
   数字孪生大屏 · 深蓝科技风「四周」样式层
   · 只在 /screen 路由生效：screen-centers-ui.js 会给 <html> 加 .sw-void
   · 只改四周（顶栏 / 左栏 / 右栏 / 底栏）与外壳，3D 区由 centers/glb.html 自己变深
   · 不改数据、文案、机位与交互逻辑
   ───────────────────────────────────────────────────────────────────────────── */

html.sw-void {
  --void-bg: #f4efe4;
  --void-bg-2: #fbf7ee;
  --panel: rgba(255,252,246, 0.78);
  --panel-2: rgba(255,253,249, 0.9);
  --line: rgba(138,106,58, 0.34);
  --line-2: rgba(138,106,58, 0.18);
  --line-hi: rgba(138,106,58, 0.85);
  --accent: #a87a34;
  --accent-2: #c79a55;
  --text: #2a241c;
  --text-2: #5e5346;
  --text-3: #6a6050;
  --glow: 0 0 12px rgba(168,122,52, 0.22);
  /* 鲜色（图形用） */
  --red: #b5342a;
  --jade: #1f7a63;
  --gold: #c9962f;
  --indigo: #2f5d8c;
  --olive: #8c9b5e;
  --amber: #d08a2e;
  /* 同色系深版（文字用，保证 ≥4.5:1） */
  --red-text: #9e2a20;
  --jade-text: #14654f;
  --gold-text: #8a6014;
  --indigo-text: #2a4f79;
  --olive-text: #4f5b28;
  --amber-text: #8a5a12;
  background: #f4efe4 !important;
  color-scheme: light;
}

html.sw-void body {
  background: #f4efe4 !important;
  color: var(--text);
}

/* ── 1. 页面底：替换掉宣纸暖白 ───────────────────────────────────────────── */
html.sw-void [class*="bg-[#F7F3EA]"] {
  background:
    radial-gradient(ellipse 1400px 760px at 50% -12%, rgba(199,154,85, 0.22), transparent 68%),
    radial-gradient(ellipse 1100px 700px at 50% 112%, rgba(168,122,52, 0.14), transparent 70%),
    linear-gradient(180deg, #fbf7ee 0%, #f4efe4 46%, #ece5d6 100%) !important;
}

/* React 那 3 层金色网格/光晕（容器前 3 个子 div）换成深底即可，先关掉 */
html.sw-void [class*="flex h-full w-full flex-col gap-3"] > div:nth-child(-n + 3) {
  display: none !important;
}

/* ── 2. 隐藏 React 里重复或无效的装饰 ───────────────────────────────────── */
/* 原 header（logo/标题/死掉的 7 个视图页签/时钟）：保留 64px 占位，交给覆盖层自绘 */
html.sw-void header[class*="h-[64px]"] {
  visibility: hidden !important;
}
/* 3D 区里原来的居中标题、五大中心按钮行、底部小字 */
html.sw-void [class*="top-3 text-center"] {
  display: none !important;
}
html.sw-void [class*="bottom-9"] {
  display: none !important;
}
html.sw-void span[class*="tracking-[0.24em]"] {
  display: none !important;
}
/* 已经被覆盖层隐藏的 React 栏保持隐藏 */
html.sw-void [class*="h-[104px]"] {
  visibility: hidden !important;
}

/* 3D 区：iframe 底色改深（覆盖 theme-screen-paper.css 的 #F7F3EA），并关掉金色网格层 */
html.sw-void [data-testid="digital-twin-scene"] iframe {
  background: #f4efe4 !important;
  border-radius: 0 !important;
}
html.sw-void [data-testid="digital-twin-scene"] ~ div[class*="opacity-[0.15]"] {
  display: none !important;
}

/* 3D 舞台拉到全屏垫底：模型放大后钻到四周栏下面，从半透明面板透出来 */
html.sw-void section[class*="min-w-0 flex-1 overflow-hidden"] {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
}

/* 舞台脱离文档流后，React 左右两列会挤到中间露出来，必须显式隐藏（以前只是被面板盖住） */
html.sw-void div[class*="min-h-0 flex-1 gap-3"] > aside {
  visibility: hidden !important;
}

/* ── 3. 遗留 Tailwind 硬编码色 → 深色令牌 ───────────────────────────────── */
html.sw-void [class*="text-[#262624]"],
html.sw-void [class*="text-[#241F17]"],
html.sw-void [class*="text-[#373634]"] {
  color: var(--text) !important;
}
html.sw-void [class*="text-[#726862]"],
html.sw-void [class*="text-[#6B6157]"],
html.sw-void [class*="text-[#6B6053]"],
html.sw-void [class*="text-[#5C5449]"] {
  color: var(--text-2) !important;
}
html.sw-void [class*="text-[#857B6E]"],
html.sw-void [class*="text-[#8A8071]"] {
  color: var(--text-3) !important;
}
html.sw-void [class*="text-[#A87F32]"],
html.sw-void [class*="text-[#4A6B5D]"] {
  color: var(--accent) !important;
}
html.sw-void [class*="border-[#A87F32]"],
html.sw-void [class*="border-[#4A6B5D]"] {
  border-color: var(--line) !important;
}
html.sw-void [class*="bg-[rgba(25, 25, 24"],
html.sw-void [class*="bg-[rgba(20, 20, 19"] {
  background: var(--panel) !important;
}
html.sw-void [class*="bg-[rgba(2"] {
  background: linear-gradient(180deg, rgba(250,245,236, 0.7), rgba(244,239,228, 0.86)) !important;
}

/* ── 4. 底栏（React 的 LIVE FEED + 统计块）：整条删除 ───────────────────── */
html.sw-void section[class*="h-[98px]"] {
  display: none !important;
}

/* ── 5. 覆盖层根 ────────────────────────────────────────────────────────── */
#fc-ui {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
#fc-ui * {
  box-sizing: border-box;
}

/* 渐晕：中心亮 → 四角暗，盖在 3D 上、面板下，保证四周「由中心向外渐暗」 */
#fc-ui .fc-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(244,239,228, 0.92) 0%, rgba(244,239,228, 0.45) 4%, rgba(244,239,228, 0) 12%),
    linear-gradient(0deg, rgba(244,239,228, 0.92) 0%, rgba(244,239,228, 0.45) 4%, rgba(244,239,228, 0) 12%),
    linear-gradient(90deg, rgba(244,239,228, 0.92) 0%, rgba(244,239,228, 0.5) 9%, rgba(244,239,228, 0) 26%),
    linear-gradient(270deg, rgba(244,239,228, 0.92) 0%, rgba(244,239,228, 0.5) 9%, rgba(244,239,228, 0) 26%),
    radial-gradient(
      ellipse 62% 60% at 50% 46%,
      rgba(255,252,246, 0) 0%,
      rgba(255,252,246, 0.16) 52%,
      rgba(232,224,206, 0.34) 100%
    );
}

/* 右上角：返回业务平台 */
#fc-ui .fc-back {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid #967346;
  border-radius: 3px;
  background: #fffcf6;
  color: var(--text);
  font-size: 14px;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(90,70,40,.16);
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
#fc-ui .fc-back .ico {
  font-size: 15px;
  line-height: 1;
  color: var(--gold-text);
  transition: transform .15s ease;
}
#fc-ui .fc-back:hover,
#fc-ui .fc-back:focus-visible {
  background: #f7eeda;
  border-color: #7a5a2a;
  color: #2a241c;
}
#fc-ui .fc-back:hover .ico { transform: translateX(-3px); }
#fc-ui .fc-back:active {
  background: #eeddb8;
  transform: translateY(1px);
}
#fc-ui .fc-back:focus-visible { outline: 2px solid #493221; outline-offset: 2px; }

/* 外框 + 四角折角 */
#fc-ui .fc-frame {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(176,141,87, 0.22);
  pointer-events: none;
}
#fc-ui .fc-frame::before,
#fc-ui .fc-frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(176,141,87, 0.5), transparent);
}
#fc-ui .fc-frame::before {
  top: -1px;
}
#fc-ui .fc-frame::after {
  bottom: -1px;
}
#fc-ui .fc-cor {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid var(--line-hi);
  filter: drop-shadow(0 0 6px rgba(176,141,87, 0.6));
}
#fc-ui .fc-cor.tl {
  left: -2px;
  top: -2px;
  border-right: 0;
  border-bottom: 0;
}
#fc-ui .fc-cor.tr {
  right: -2px;
  top: -2px;
  border-left: 0;
  border-bottom: 0;
}
#fc-ui .fc-cor.bl {
  left: -2px;
  bottom: -2px;
  border-right: 0;
  border-top: 0;
}
#fc-ui .fc-cor.br {
  right: -2px;
  bottom: -2px;
  border-left: 0;
  border-top: 0;
}
#fc-ui .fc-arrow { position:absolute; top:50%; width:20px; height:20px; border:solid var(--accent-2); border-width:0 1.5px 1.5px 0; opacity:.7; pointer-events:none; }
#fc-ui .fc-arrow.l { left:4px; transform:translateY(-50%) rotate(135deg); }
#fc-ui .fc-arrow.r { right:4px; transform:translateY(-50%) rotate(-45deg); }
/* ── 6. 顶栏：中央标题牌与细线展翼 ───────────────────────── */
#fc-ui .fc-head {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 98px;
  background: none;
  pointer-events: none;
}
#fc-ui .fc-head-bevel {
  position: absolute;
  left: 50%;
  top: 0;
  width: 920px;
  height: 98px;
  transform: translateX(-50%);
  fill: none;
  stroke-linejoin: round;
}
#fc-ui .fc-head-edge { stroke: #967346; stroke-width: 1.4; }
#fc-ui .fc-head-highlight { stroke: #f1dfc0; stroke-width: 1.25; }
#fc-ui .fc-title-wrap {
  position: absolute;
  left: 50%;
  top: 45px;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}
#fc-ui .fc-title {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 46px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: .1em;
  color: #2a241c;
  text-shadow: none;
}
#fc-ui .fc-title-context { font-size: 36px; font-weight: 500; color: #654c30; }
#fc-ui .fc-title-dot { font-size: 28px; color: #967346; }
#fc-ui .fc-tabs-shape {
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 1152px;
  height: 50px;
  transform: translateX(-50%);
  pointer-events: none;
  overflow: visible;
}
#fc-ui .fc-footer-shadow { fill: #8a6f47; opacity: .3; filter: blur(3px); transform: translateY(2px); }
#fc-ui .fc-footer-edge { fill: none; stroke: #d8bc8a; stroke-opacity: .66; stroke-width: 1.2; }
#fc-ui .fc-footer-base { fill: none; stroke: #5e5040; stroke-opacity: .78; stroke-width: 1; }
#fc-ui .fc-tabs-glow .detail {
  fill: none;
  stroke-width: 1;
  stroke-opacity: 0.42;
}
#fc-ui .fc-tabs-glow .halo {
  fill: none;
  stroke-opacity: 0.28;
  stroke-width: 5;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: blur(3px);
}
#fc-ui .fc-tabs-glow .core {
  fill: none;
  stroke-opacity: 0.85;
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(176,141,87, 0.45));
}
/* ── 7. 面板通用 ────────────────────────────────────────────────────────── */
#fc-ui .fc-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,252,246, 0.9), rgba(250,244,233, 0.86));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255, 0.8), 0 6px 18px -12px rgba(90, 70, 40, 0.45);
}

/* 四周面板·渐晕：内侧面朝屏幕中心，最多只透 35%（alpha 0.65），渐变带 35% 宽，其余实底 */
#fc-ui .fc-left .fc-card {
  background: linear-gradient(
    270deg,
    rgba(255,252,246, 0.72) 0%,
    rgba(255,252,246, 0.9) 35%,
    rgba(250,244,233, 0.95) 100%
  );
}
#fc-ui .fc-right .fc-card {
  background: linear-gradient(
    90deg,
    rgba(255,252,246, 0.72) 0%,
    rgba(255,252,246, 0.9) 35%,
    rgba(250,244,233, 0.95) 100%
  );
}
/* 保文字可读：轻模糊 + 阴影 */
#fc-ui .fc-left .fc-card,
#fc-ui .fc-right .fc-card,
#fc-ui .fc-tabs {
  backdrop-filter: none;
}
#fc-ui .fc-card,
#fc-ui .fc-head,
#fc-ui .fc-tabs {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}
#fc-ui .fc-card::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  width: 34px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
#fc-ui .fc-card::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--line-hi));
}
#fc-ui .fc-sec-h {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(176,141,87, 0.22);
  background: linear-gradient(90deg, rgba(176,141,87, 0.19), rgba(176,141,87, 0.02) 95%);
  flex: none;
}
#fc-ui .fc-sec-h .ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
}
#fc-ui .fc-sec-h .ico svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(176,141,87, 0.7));
}
#fc-ui .fc-sec-h i {
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex: none;
}
#fc-ui .fc-sec-h b {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text);
  white-space: nowrap;
}
#fc-ui .fc-sec-h em {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--text-3);
  margin-left: auto;
  white-space: nowrap;
}

/* ── 9. 左右侧栏：3 个模块（只读展示） ─────────────────────────────────── */
#fc-ui .fc-left {
  position: absolute;
  left: 20px;
  top: 106px;
  bottom: 70px;
  width: 380px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
}
#fc-ui .fc-right {
  position: absolute;
  left: 1520px;
  top: 106px;
  bottom: 70px;
  width: 380px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
}

#fc-ui .fc-mod {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 3px;
}
#fc-ui .fc-mod { border:0; border-radius:0;  }
#fc-ui .fc-mod::before,#fc-ui .fc-mod::after { content:none; }
#fc-ui .fc-rim { position:absolute; inset:0; width:100%; height:100%; color:rgba(176,141,87,.46); pointer-events:none; z-index:1; }
#fc-ui .fc-right .fc-rim { transform:scaleX(-1); }
#fc-ui .fc-rim .rim-accent { stroke:rgba(233,210,164,.85); }
#fc-ui .fc-list-head { display:grid; grid-template-columns:52px 1fr; padding:4px 14px; font-size:15.5px; color:var(--text-2); background:rgba(122,95,50,.09); border-bottom:1px solid var(--line-2); }
#fc-ui .fc-left .fc-mod:nth-child(3),
#fc-ui .fc-right .fc-mod:nth-child(3) {
  flex: 1.12;
}

/* 核心指标 3 行 */
#fc-ui .fc-kv {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 2px 14px 6px;
}
#fc-ui .fc-kv .kvrow {
  padding: 6px 0;
  border-bottom: 1px dashed rgba(176,141,87, 0.14);
}
#fc-ui .fc-kv .kvrow:last-child {
  border-bottom: 0;
}
#fc-ui .fc-kv .top {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
#fc-ui .fc-kv .track {
  display: block;
  margin-top: 5px;
  height: 4px;
  background: rgba(176,141,87, 0.14);
  overflow: hidden;
}
#fc-ui .fc-kv .track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(176,141,87, 0.55), var(--accent-2));
  box-shadow: 0 0 8px rgba(176,141,87, 0.7);
}
#fc-ui .fc-kv .k {
  flex: none;
  width: 92px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-2);
}
#fc-ui .fc-kv .v {
  font-size: 23px;
  font-weight: 300;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 16px rgba(176,141,87, 0.28);
}
#fc-ui .fc-kv .s {
  flex: 1;
  min-width: 0;
  font-size: 10.5px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#fc-ui .fc-kv .p {
  flex: none;
  font-size: 12px;
  color: var(--gold-text);
  font-variant-numeric: tabular-nums;
}

/* 图表区 */
#fc-ui .fc-chart {
  flex: 1;
  min-height: 0;
  padding: 8px 12px 8px;
  display: flex;
  align-items: center;
}
#fc-ui .fc-chart svg {
  width: 100%;
  height: 100%;
}

/* 环形 + 三行说明 */
#fc-ui .fc-ringrow {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 16px 8px;
}
#fc-ui .fc-ringrow .cap {
  flex: 1;
  min-width: 0;
}
#fc-ui .fc-ringrow .cap div {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(176,141,87, 0.14);
}
#fc-ui .fc-ringrow .cap div:last-child {
  border-bottom: 0;
}
#fc-ui .fc-ringrow .cap span {
  font-size: 11.5px;
  color: var(--text-2);
  width: 52px;
}
#fc-ui .fc-ringrow .cap b {
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
#fc-ui .fc-ringrow .cap em {
  font-style: normal;
  font-size: 10px;
  color: var(--text-3);
}
#fc-ui .fc-ringrow .cap .mini {
  flex: 1;
  align-self: center;
  display: block;
  height: 3px;
  margin-left: 2px;
  background: rgba(176,141,87, 0.14);
  overflow: hidden;
}
#fc-ui .fc-ringrow .cap .mini u {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(176,141,87, 0.5), var(--accent-2));
  box-shadow: 0 0 6px rgba(176,141,87, 0.6);
}

/* 滚动列表 */
#fc-ui .fc-stream {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  padding: 4px 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
#fc-ui .fc-stream .track {
  animation: fc-scroll 30s linear infinite;
}
#fc-ui .fc-stream:hover .track {
  animation-play-state: paused;
}
#fc-ui .fc-stream .item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  font-size: 15px;
  color: var(--text-2);
  border-bottom: 1px dashed rgba(176,141,87, 0.12);
  white-space: nowrap;
  overflow: hidden;
}
#fc-ui .fc-stream .item .tx { margin-left:3px; }
#fc-ui .fc-stream .item .dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 6px var(--c);
}
#fc-ui .fc-stream .item .tag {
  flex: none;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--c);
  border: 1px solid var(--c);
  padding: 0 4px;
}
#fc-ui .fc-stream .item .tx {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes fc-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
/* ── 11. 底部页签：贴近底边的立体展翼 ─────────────── */
#fc-ui .fc-tabs {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 864px;
  height: 44px;
  transform: translateX(-50%);
  backdrop-filter: none;
  text-shadow: none;
  pointer-events: auto;
}
#fc-ui .fc-tabs-in {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: none;
  clip-path: none;
}
#fc-ui .fc-tabs button {
  position: relative;
  flex: 0 0 144px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 3px;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-2);
  background: transparent;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}
#fc-ui .fc-tabs button .lb {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}
#fc-ui .fc-tabs button i {
  font-style: normal;
  color: var(--gold-text);
  margin-right: 4px;
  font-family: "Songti SC", serif;
  font-size: 12px;
}
#fc-ui .fc-tabs button:hover {
  color: #2a241c;
}
#fc-ui .fc-tabs button.on {
  color: var(--red-text);
  font-weight: 600;
}
#fc-ui .fc-tabs button.on::before,
#fc-ui .fc-tabs button.on::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 100%, 0 100%);
}
#fc-ui .fc-tabs button.on::before {
  top: 5px;
  bottom: 5px;
  background: linear-gradient(180deg, rgba(181,52,42, 0.55), rgba(158,42,32, 0.4));

  z-index: 0;
}
#fc-ui .fc-tabs button.on::after {
  top: 6px;
  bottom: 6px;
  left: 5px;
  right: 5px;
  background: linear-gradient(180deg, rgba(255,253,249, 0.98), rgba(246,240,229, 0.99));
  z-index: 1;
}
#fc-ui .fc-tabs button .mk {
  display: none;
  flex: none;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  background: #f4f3f0;
  transform: rotate(45deg);

}
#fc-ui .fc-tabs button.on .mk {
  display: block;
}
/* 外框底边让位给通栏条带 */
#fc-ui .fc-frame::after,
#fc-ui .fc-cor.bl,
#fc-ui .fc-cor.br {
  display: none;
}
/* ── 12. 动效降级 ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  #fc-ui .fc-stream .track {
    animation: none !important;
  }
  #fc-ui .fc-tabs-glow {
    animation: none !important;
    opacity: 1;
  }
}

/* 只裁面板底形，不裁内容。左右内侧切角镜像。 */
#fc-ui .fc-left .fc-mod,
#fc-ui .fc-right .fc-mod { background: none; backdrop-filter: none; box-shadow: none; }
#fc-ui .fc-left .fc-mod::before,
#fc-ui .fc-right .fc-mod::before {
  content: ""; inset: 0; width: auto; height: auto; box-shadow: none;
  background: linear-gradient(270deg, rgba(255,252,246,.65), rgba(255,252,246,.9) 35%, rgba(246,241,231,.96));
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 9px) 100%, 0 100%);
  backdrop-filter: none; z-index: -1; pointer-events: none;
}
#fc-ui .fc-mod { isolation: isolate; }
#fc-ui .fc-right .fc-mod::before { transform: scaleX(-1); }
#fc-ui .fc-left .fc-sec-h { clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 10px, 100% 100%, 0 100%); }
#fc-ui .fc-right .fc-sec-h { clip-path: polygon(9px 0, 100% 0, 100% 100%, 0 100%, 0 10px); }
/* ── 13. 中心二级菜单（牌匾点击） ─────────────────────────────────────── */
#fc-ui .fc-menu {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: auto;
}
#fc-ui .fc-menu[hidden] { display: none; }
#fc-ui .fc-menu-mask {
  position: absolute;
  inset: 0;
  background: rgba(70, 57, 44, .28);
  backdrop-filter: none;
}
#fc-ui .fc-menu-card {
  --guide-ink: var(--signal-ink, var(--olive-text));
  --guide-edge: var(--signal, var(--olive));
  --guide-cut: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  position: absolute;
  isolation: isolate;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  height: 440px;
  display: flex;
  flex-direction: column;
  filter: drop-shadow(0 16px 18px rgba(57, 42, 24, .22));
}
#fc-ui .fc-menu-card::before,
#fc-ui .fc-menu-card::after {
  content: "";
  position: absolute;
  clip-path: var(--guide-cut);
  pointer-events: none;
  inset: 0;
}
#fc-ui .fc-menu-card::before {
  z-index: -2;
  background: linear-gradient(155deg, #967346, #d1b58c 46%, #967346);
}
#fc-ui .fc-menu-card::after {
  z-index: -1;
  inset: 1px;
  background: linear-gradient(160deg, #fffcf6, #f4ebdd);
  box-shadow: inset 0 0 0 1px #f1dfc0;
}
#fc-ui .fc-menu-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 82px;
  padding: 0 24px;
}
#fc-ui .fc-menu-head::after {
  content: "";
  position: absolute;
  inset: auto 24px 0;
  height: 1px;
  background: linear-gradient(90deg, var(--guide-edge), #dbc7a6 55%, transparent);
}
#fc-ui .fc-menu-head .no {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font: 600 15px/1 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--guide-ink);
  background: color-mix(in srgb, var(--guide-edge) 13%, #fffcf6);
  border: 1px solid color-mix(in srgb, var(--guide-edge) 48%, #fffcf6);
  border-radius: 3px;
}
#fc-ui .fc-menu-head b {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .08em;
  color: var(--text);
}
#fc-ui .fc-menu-head .x {
  display: grid;
  place-items: center;
  margin-left: auto;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #d9c6a9;
  border-radius: 3px;
  background: #fffcf6;
  color: var(--text-2);
  font: 400 22px/1 system-ui, sans-serif;
  cursor: pointer;
}
#fc-ui .fc-menu-head .x:hover,
#fc-ui .fc-menu-head .x:focus-visible {
  color: var(--guide-ink);
  border-color: var(--guide-edge);
  background: color-mix(in srgb, var(--guide-edge) 10%, #fffcf6);
}
#fc-ui .fc-menu-head .x:focus-visible { outline: 2px solid var(--guide-ink); outline-offset: 2px; }
#fc-ui .fc-menu-list {
  list-style: none;
  margin: 10px 24px 20px;
  padding: 0;
  flex: 1;
  min-height: 0;
  overflow: auto;
}
#fc-ui .fc-menu-item { margin: 0; border-bottom: 1px solid #deccb0; }
#fc-ui .fc-menu-link {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 57px;
  padding: 0 12px;
  border-left: 2px solid transparent;
  color: var(--text);
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
#fc-ui .fc-menu-link:hover,
#fc-ui .fc-menu-link:focus-visible {
  background-color: color-mix(in srgb, var(--guide-edge) 10%, #fffcf6);
  border-left-color: var(--guide-ink);
}
#fc-ui .fc-menu-link:focus-visible { outline: 1px solid var(--guide-ink); outline-offset: -2px; }
#fc-ui .fc-menu-link .idx { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--guide-ink); }
#fc-ui .fc-menu-link .nm { flex: 1; font-size: 17px; font-weight: 500; letter-spacing: .04em; }
#fc-ui .fc-menu-link .go { display: flex; gap: 8px; font-size: 13px; font-weight: 600; color: var(--guide-ink); }

/* 局部色彩：暖金经营、青瓷质量、朱红风险、靛蓝动态 */
#fc-ui .fc-sec-h[data-module="metrics"],
#fc-ui .fc-sec-h[data-module="bars"],
#fc-ui [data-tone="gold"] {
  --signal: var(--gold);
  --signal-ink: var(--gold-text);
  --signal-wash: rgba(201,150,47,.20);
}
#fc-ui .fc-sec-h[data-module="quality"],
#fc-ui .fc-sec-h[data-module="trend"],
#fc-ui [data-tone="jade"] {
  --signal: var(--jade);
  --signal-ink: var(--jade-text);
  --signal-wash: rgba(31,122,99,.20);
}
#fc-ui .fc-sec-h[data-module="feed"],
#fc-ui [data-tone="indigo"] {
  --signal: var(--indigo);
  --signal-ink: var(--indigo-text);
  --signal-wash: rgba(47,93,140,.20);
}
#fc-ui .fc-sec-h[data-module="alert"],
#fc-ui [data-tone="red"] {
  --signal: var(--red);
  --signal-ink: var(--red-text);
  --signal-wash: rgba(181,52,42,.20);
}
#fc-ui [data-tone="amber"] {
  --signal: var(--amber);
  --signal-ink: var(--amber-text);
  --signal-wash: rgba(208,138,46,.20);
}
#fc-ui .fc-sec-h[data-module] {
  background: linear-gradient(90deg, var(--signal-wash), transparent 80%);
}
#fc-ui .fc-sec-h[data-module] .ico svg {
  stroke: var(--signal-ink);
  filter: none;
}
#fc-ui .fc-kv [data-tone] .track,
#fc-ui .fc-ringrow [data-tone] .mini { background: var(--signal-wash); }
#fc-ui .fc-kv [data-tone] .track i,
#fc-ui .fc-ringrow [data-tone] .mini u {
  background: linear-gradient(90deg, var(--signal), var(--signal-ink));
  box-shadow: none;
}
#fc-ui .fc-kv [data-tone] .v,
#fc-ui .fc-kv [data-tone] .p,
#fc-ui .fc-ringrow [data-tone] b {
  color: var(--signal-ink);
  text-shadow: none;
}
#fc-ui .fc-stream .item .tag {
  background: color-mix(in srgb, var(--c) 9%, #fffaf1);
}
#fc-ui .fc-title-dot { color: var(--red); }
/* 2D feedback: hover, press and selection are distinct without shifting layout. */
#fc-ui .fc-tabs button:not(.on):is(:hover, :focus-visible, :active)::before,
#fc-ui .fc-tabs button:not(.on):is(:hover, :focus-visible, :active)::after {
  content: "";
  position: absolute;
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 100%, 0 100%);
}
#fc-ui .fc-tabs button:not(.on):is(:hover, :focus-visible, :active)::before {
  inset: 5px 4px;
  background: #967346;
}
#fc-ui .fc-tabs button:not(.on):is(:hover, :focus-visible, :active)::after {
  inset: 6px 5px;
  z-index: 1;
  background: #eedbb2;
}
#fc-ui .fc-tabs button:not(.on):active::after { background: #dbc08a; }
#fc-ui .fc-tabs button.on { color: #fff8eb; }
#fc-ui .fc-tabs button.on i { color: inherit; }
#fc-ui .fc-tabs button.on::before { background: #752218; }
#fc-ui .fc-tabs button.on::after { background: #9e2a20; }
#fc-ui .fc-tabs button.on:hover::after { background: #902419; }
#fc-ui .fc-tabs button.on:active::after { background: #782016; }
#fc-ui .fc-tabs button.on .mk { background: #f1dfc0; }
#fc-ui .fc-tabs button:focus-visible { outline: 2px solid #493221; outline-offset: -2px; }
#fc-ui .fc-tabs button .lb,
#fc-ui .fc-menu-link > span,
#fc-ui .fc-menu-link .go > span { transition: transform .15s ease; }
#fc-ui .fc-tabs button:active .lb,
#fc-ui .fc-menu-link:active > span,
#fc-ui .fc-menu-head .x:active { transform: translateY(2px); }

#fc-ui .fc-menu:not([hidden]) .fc-menu-card {
  animation: fc-menu-enter .22s cubic-bezier(.2,.75,.25,1) both;
}
@keyframes fc-menu-enter {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
#fc-ui .fc-menu-link { border-left-width: 3px; padding-left: 11px; }
#fc-ui .fc-menu-link:is(:hover, :focus-visible) {
  background-color: color-mix(in srgb, var(--guide-edge) 18%, #fffcf6);
}
#fc-ui .fc-menu-link:is(:hover, :focus-visible) .go > span { transform: translateX(6px); }
#fc-ui .fc-menu-link:active {
  background-color: color-mix(in srgb, var(--guide-edge) 26%, #fffcf6);
  border-left-color: var(--guide-ink);
}
/* Deep gold keeps fine text readable over the stronger pressed tint. */
#fc-ui .fc-menu-card[data-tone="gold"] { --guide-ink: #755016; }
#fc-ui .fc-menu-head .x:is(:hover, :focus-visible) {
  background: color-mix(in srgb, var(--guide-edge) 18%, #fffcf6);
  border-color: var(--guide-ink);
}
#fc-ui .fc-menu-head .x:active {
  background: color-mix(in srgb, var(--guide-edge) 26%, #fffcf6);
  color: var(--guide-ink);
  border-color: var(--guide-ink);
}
@media (prefers-reduced-motion: reduce) {
  #fc-ui .fc-menu:not([hidden]) .fc-menu-card { animation: none; }
  #fc-ui .fc-tabs button .lb,
  #fc-ui .fc-menu-link > span,
  #fc-ui .fc-menu-link .go > span {
    transition: none;
    transform: none !important;
  }
  #fc-ui .fc-menu-head .x:active { transform: none; }
}
