/* 牛马无限进化 —— PC 端样式（T05 游戏壳 + T01 基础） */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* ── 层级 / 遮罩 单一 token（与 mp game.wxss 同值，双端视觉一致）─────────
 * --niuma-mask：旧值 rgba(10,13,18,.78)（22% 透明）会让背后大招字标透上来压正文；
 *   现提到 .92，与小程序端同值。回调区间建议 .88~.94。
 * --niuma-sheet：角色栏底色，不透明，防怪物透出。
 * --niuma-shadow：面板外阴影 + 内描边高光。 */
:root {
  --niuma-mask: rgba(8, 10, 16, .92);      /* ← 唯一可调点（UI-1） */
  --niuma-sheet: #10141b;                  /* 角色栏底色（UI-2） */
  --niuma-shadow: 0 8px 32px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
body { background: #14181f; color: #e8eaf0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
.hidden { display: none !important; }

.niuma-view { display: flex; flex-direction: column; height: 100vh; }
.niuma-topbar { display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: #1b2029; border-bottom: 1px solid #2a3140; }
.niuma-title { font-weight: 700; font-size: 16px; color: #ffd54f; }
.niuma-sub { color: #8fa0b5; font-size: 12px; }
.niuma-badge { font-size: 12px; padding: 2px 8px; border-radius: 10px; background: #232b38; color: #9fb2c8; }
.niuma-badge.ok { color: #7bd88f; }
.niuma-badge.bad { color: #ef7b7b; }
.niuma-mute { margin-left: auto; background: none; border: 1px solid #2a3140; border-radius: 8px; color: #cfd8e3; font-size: 14px; padding: 3px 9px; cursor: pointer; }

.niuma-stage-wrap { position: relative; flex: 1; min-height: 0; }
/* canvas 永远在最底（显式契约，别让后人靠 DOM 顺序猜） */
.niuma-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; z-index: 0; }
.niuma-foot { text-align: center; color: #6b7a8d; font-size: 11px; padding: 6px; background: #1b2029; }

/* HUD */
.niuma-hud { position: absolute; top: 8px; left: 10px; right: 10px; pointer-events: none; display: flex; flex-direction: column; gap: 5px; }
.niuma-hud-row { display: flex; gap: 14px; align-items: center; font-size: 13px; color: #cfd8e3; text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.niuma-hp { position: relative; width: 240px; height: 18px; background: rgba(0,0,0,.55); border-radius: 9px; overflow: hidden; border: 1px solid #2a3140; }
.niuma-hp-bar { height: 100%; width: 100%; background: linear-gradient(90deg, #43d17c, #2e9e5b); transition: width .15s; }
.niuma-hp-text { position: absolute; inset: 0; text-align: center; font-size: 11px; line-height: 17px; color: #fff; }
.niuma-xp { position: relative; width: 170px; height: 14px; background: rgba(0,0,0,.55); border-radius: 7px; overflow: hidden; border: 1px solid #2a3140; }
.niuma-xp-bar { height: 100%; width: 0; background: linear-gradient(90deg, #7c9bff, #5470d6); transition: width .2s; }
.niuma-xp-text { position: absolute; inset: 0; text-align: center; font-size: 10px; line-height: 13px; color: #dfe6ff; }

.niuma-hint { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); max-width: 82%; background: rgba(20,26,36,.88); border: 1px solid #37435a; border-radius: 10px; padding: 10px 16px; font-size: 13px; color: #dfe6f2; pointer-events: none; }
.niuma-toast { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); background: rgba(20,26,36,.92); border: 1px solid #ffd54f55; color: #ffd54f; border-radius: 10px; padding: 8px 18px; font-size: 14px; pointer-events: none; }
/* 底部常驻角色信息条 */
.niuma-charbar { position: absolute; left: 10px; right: 10px; bottom: 8px; display: flex; align-items: center; gap: 12px; background: var(--niuma-sheet, #10141b); border: 1px solid #2a3140; border-radius: 12px; padding: 8px 12px; pointer-events: none; backdrop-filter: blur(2px); z-index: 5; }
.niuma-cb-face { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 10px; background: #10141b; border: 1px solid #2a3140; object-fit: contain; }
.niuma-cb-id { width: 150px; flex: 0 0 150px; min-width: 0; }
.niuma-cb-name { font-size: 14px; font-weight: 700; color: #ffd54f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.niuma-cb-sub { font-size: 11px; color: #9fb2c8; white-space: nowrap; }
.niuma-cb-bars { flex: 0 0 240px; display: flex; flex-direction: column; gap: 4px; }
.niuma-cb-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 2px 12px; font-size: 12px; color: #cfd8e3; white-space: nowrap; }
.niuma-cb-stats b { color: #ffd54f; font-weight: 600; }
.niuma-cb-stats i { font-style: normal; color: #8fa0b5; margin-right: 2px; }
.niuma-cb-skills { flex: 1; display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; min-width: 0; }
.niuma-cb-sk { max-width: 170px; font-size: 11px; color: #cfd8e3; background: #151a22; border: 1px solid #2a3140; border-radius: 7px; padding: 3px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: auto; cursor: help; }
.niuma-cb-sk b { color: #e8eaf0; font-weight: 600; }
.niuma-cb-sk em { font-style: normal; color: #8fa0b5; margin-left: 4px; }

/* 目标感知条：通关条件必须一直可见 */
.niuma-goal { position: absolute; top: 62px; left: 50%; transform: translateX(-50%); font-size: 12px; color: #cfd8e3; background: rgba(20,26,36,.72); border: 1px solid #2a3140; border-radius: 8px; padding: 4px 12px; pointer-events: none; white-space: nowrap; }
.niuma-goal b { color: #ffd54f; }
.niuma-goal .niuma-goal-boss { color: #ff8a80; font-weight: 700; }
/* 复活确认 */
.niuma-revive-panel { background: #1b2029; border: 1px solid #ff5252; border-radius: 14px; padding: 24px 28px; width: min(92%, 420px); text-align: center; }
.niuma-revive-title { font-size: 20px; color: #ff8a80; margin-bottom: 10px; font-weight: 700; }
.niuma-revive-body { font-size: 13px; color: #cfd8e3; line-height: 1.8; margin-bottom: 18px; }
.niuma-revive-body b { color: #ffd54f; }
.niuma-revive-actions { display: flex; gap: 10px; justify-content: center; }

/* 进化横幅：后续自动进化必须让玩家看见 */
.niuma-evo-banner { position: absolute; top: 92px; left: 50%; transform: translateX(-50%) scale(.9); background: linear-gradient(90deg, rgba(255,213,79,.16), rgba(179,136,255,.18)); border: 1px solid #ffd54f; color: #ffd54f; border-radius: 12px; padding: 10px 26px; font-size: 17px; font-weight: 700; letter-spacing: .5px; pointer-events: none; opacity: 0; transition: opacity .18s, transform .18s; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.niuma-evo-banner.show { opacity: 1; transform: translateX(-50%) scale(1); }

/* 覆盖层与面板 */
/* UI-1：遮罩 .78 → var(--niuma-mask)=.92，与小程序端同值 */
.niuma-overlay { position: absolute; inset: 0; background: var(--niuma-mask, rgba(8,10,16,.92)); display: flex; align-items: center; justify-content: center; z-index: 10; overflow: auto; }
.niuma-panel { background: #1b2029; border: 1px solid #37435a; border-radius: 14px; padding: 22px 26px; max-width: 560px; width: min(92%, 560px); box-shadow: var(--niuma-shadow, 0 8px 32px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.06)); }
.niuma-panel-title { font-size: 15px; color: #ffd54f; margin-bottom: 10px; }
.niuma-meta-line { font-size: 12px; color: #9fb2c8; margin-bottom: 14px; line-height: 1.7; }
.niuma-panel-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.niuma-btn { background: #232b38; color: #dfe6f2; border: 1px solid #37435a; border-radius: 10px; padding: 9px 20px; font-size: 14px; cursor: pointer; }
.niuma-btn.primary { background: #ffd54f; color: #20242c; border-color: #ffd54f; font-weight: 700; }
.niuma-btn:disabled { opacity: .45; cursor: default; }
.niuma-panel-tip { margin-top: 12px; font-size: 12px; color: #6b7a8d; }
/* [2026-11-17] 三模式选择（web 端补三模式）
 * 之前 web 的 createWorld 不传 mode ⇒ 永远是经典模式，而小程序有三个。
 * 这里做成菜单里的一排按钮，与 wx.showActionSheet 的三项一一对应；
 * 文案不写死，由内核 `Niuma.modeIntro(mode)` 提供（与小程序同一份）。 */
.niuma-mode-pick { display: flex; gap: 8px; margin: 4px 0 14px; flex-wrap: wrap; }
.niuma-mode-btn { flex: 1 1 0; min-width: 118px; background: #232b38; color: #9fb2c8; border: 1px solid #37435a;
  border-radius: 10px; padding: 8px 10px; font-size: 13px; cursor: pointer; text-align: center;
  transition: border-color .12s, color .12s, background .12s; }
.niuma-mode-btn:hover { color: #dfe6f2; }
.niuma-mode-btn.on { border-color: #ffd54f; color: #ffd54f; background: rgba(255,213,79,.10); font-weight: 700; }
.niuma-mode-rule { font-size: 12px; color: #8fa0b5; line-height: 1.7; margin-bottom: 12px; }

/* 三选一 */
/* 既有布局问题（2026-11-13 顺手修）：#niuma-evo 继承 .niuma-overlay 的 row 布局，
 * 标题/副标题/卡片组会横向排成一行（宽屏时标题挤在卡片左侧）。这里只对 evo 遮罩改纵向，
 * 不动的 .niuma-overlay 仍给结算/商店等使用。 */
#niuma-evo { flex-direction: column; }
.niuma-evo-title { text-align: center; font-size: 18px; color: #ffd54f; margin-bottom: 1px; }
/* 档位降档（EVO-CARD-UI-SPEC 约束 1，与小程序 g-evo-tierline 同款）：标题 50%、低对比 */
.niuma-evo-tierline { text-align: center; font-size: 9px; color: #9fb2c8; opacity: .6; margin-bottom: 9px; }
.niuma-evo-sub { text-align: center; font-size: 12px; color: #8fa0b5; margin-bottom: 14px; }
.niuma-evo-cards { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: stretch; }
.niuma-evo-card { width: 250px; max-height: 72vh; overflow-y: auto; background: #1b2029; border: 1px solid #37435a; border-radius: 12px; padding: 12px; text-align: left; cursor: pointer; transition: transform .12s, border-color .12s; }
.niuma-evo-card:hover { transform: translateY(-4px); border-color: #ffd54f; }
.niuma-evo-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; text-align: center; }
/* 档位条（与 mp 同口径）：不做小，升绿/降红，踏步灰 */
.niuma-evo-tier { font-size: 12px; font-weight: 700; color: #9fb2c8; margin-bottom: 6px; text-align: center; }
.niuma-evo-tier.up { color: #7bd88f; }
.niuma-evo-tier.down { color: #ef7b7b; }
/* 卡面信息层级（EVO-CARD-UI-SPEC 第 1/2 层，与小程序 g-evo-tag 同款配色）：
 * 群攻/单体实心（唯一直接改变决策的信号），暴击描边，坦克/辅助描边灰字 + ↓ */
.niuma-evo-tag { display: flex; align-items: center; gap: 2px; margin: 0 auto 6px; padding: 1px 7px; height: 15px; line-height: 13px; border-radius: 8px; border: 1px solid transparent; font-size: 10px; width: fit-content; }
.niuma-evo-tag.t-aoe { background: #e05211; border-color: #e05211; color: #fff; font-weight: 700; }
.niuma-evo-tag.t-dps { background: #2f6fd0; border-color: #2f6fd0; color: #fff; font-weight: 700; }
/* 实心判据只有一条（spec v1.0）：带 AOE 技 ⇔ 实心；crit 永远描边 */
.niuma-evo-tag.t-crit { background: transparent; border-color: #ffd54f; color: #ffd54f; }
.niuma-evo-tag.t-tank, .niuma-evo-tag.t-support { background: transparent; border-color: #3a475c; color: #8fa0b5; }
.niuma-evo-arrow { font-size: 11px; color: inherit; }
.niuma-evo-noout { width: fit-content; margin: 0 auto 10px; padding: 0 12px; height: 20px; line-height: 20px; border-radius: 10px; background: #ffd54f; color: #20242c; font-size: 12px; font-weight: 700; }
.niuma-evo-img { width: 110px; height: 110px; margin: 0 auto 8px; border-radius: 10px; background: #10141b; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #6b7a8d; overflow: hidden; }
.niuma-evo-img img { width: 100%; height: 100%; object-fit: contain; }
.niuma-evo-img.fallback { background: #546e7a; color: #cfd8dc; }
/* 三维属性 */
.niuma-evo-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 8px; font-size: 12px; color: #cfd8e3; background: #151a22; border: 1px solid #2a3140; border-radius: 8px; padding: 7px 9px; margin-bottom: 9px; }
.niuma-evo-stats b { color: #ffd54f; font-weight: 600; }
.niuma-evo-stats i { font-style: normal; color: #8fa0b5; margin-right: 3px; }
.niuma-evo-sec { font-size: 11px; color: #7c8ba1; letter-spacing: .5px; margin: 8px 0 4px; border-top: 1px dashed #2a3140; padding-top: 7px; }
.niuma-evo-desc { font-size: 12px; color: #b9c6d6; line-height: 1.65; }
/* 技能条目（点击展开 detail） */
.sk-item { background: #151a22; border: 1px solid #2a3140; border-radius: 7px; padding: 6px 8px; margin-bottom: 5px; }
.sk-item:hover { border-color: #46567a; }
.sk-line { display: flex; align-items: baseline; gap: 6px; }
.sk-name { font-size: 12px; color: #e8eaf0; font-weight: 600; }
.sk-cat { font-size: 10px; color: #8fa0b5; background: #232b38; border-radius: 6px; padding: 0 5px; }
.sk-arrow { margin-left: auto; font-size: 10px; color: #6b7a8d; }
.sk-tip { font-size: 11px; color: #9fb2c8; margin-top: 3px; line-height: 1.5; }
.sk-detail { display: none; font-size: 11px; color: #cfd8e3; margin-top: 4px; line-height: 1.6; border-left: 2px solid #ffd54f55; padding-left: 7px; }
.sk-item.open .sk-detail { display: block; }

/* 顶栏小按钮 */
.niuma-chip { background: none; border: 1px solid #2a3140; border-radius: 8px; color: #cfd8e3; font-size: 12px; padding: 3px 9px; cursor: pointer; }
.niuma-chip:hover { border-color: #46567a; color: #ffd54f; }

/* 当前角色详情面板 */
.niuma-ci-panel { background: #1b2029; border: 1px solid #37435a; border-radius: 14px; width: min(94%, 860px); max-height: 86vh; overflow-y: auto; padding: 20px 22px; }
.niuma-ci-head { display: flex; gap: 16px; margin-bottom: 14px; }
.niuma-ci-face { width: 120px; height: 120px; flex: 0 0 120px; border-radius: 12px; background: #10141b; border: 1px solid #2a3140; display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 11px; color: #6b7a8d; }
.niuma-ci-face img { width: 100%; height: 100%; object-fit: contain; }
.niuma-ci-id { flex: 1; min-width: 0; }
.niuma-ci-name { font-size: 18px; font-weight: 700; color: #ffd54f; }
.niuma-ci-sub { font-size: 12px; color: #9fb2c8; margin: 3px 0 8px; }
.niuma-ci-bio { font-size: 12px; color: #b9c6d6; line-height: 1.7; }
.niuma-ci-bars { display: flex; flex-direction: column; gap: 7px; margin: 12px 0 14px; }
.niuma-ci-bar { position: relative; height: 18px; background: rgba(0,0,0,.5); border: 1px solid #2a3140; border-radius: 9px; overflow: hidden; }
.niuma-ci-bar span { position: absolute; inset: 0; text-align: center; font-size: 11px; line-height: 17px; color: #fff; }
.niuma-ci-bar.hp i { display: block; height: 100%; background: linear-gradient(90deg, #43d17c, #2e9e5b); }
.niuma-ci-bar.xp i { display: block; height: 100%; background: linear-gradient(90deg, #7c9bff, #5470d6); }
.niuma-ci-cols { display: flex; gap: 18px; }
.niuma-ci-col { flex: 1; min-width: 0; }
.niuma-ci-h { font-size: 12px; color: #7c8ba1; letter-spacing: .5px; margin-bottom: 7px; border-bottom: 1px dashed #2a3140; padding-bottom: 5px; }
.niuma-ci-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; font-size: 12px; color: #cfd8e3; }
.niuma-ci-stats b { color: #ffd54f; font-weight: 600; }
.niuma-ci-stats i { font-style: normal; color: #8fa0b5; margin-right: 4px; }
.niuma-ci-gear { font-size: 12px; color: #cfd8e3; line-height: 1.8; }
.niuma-ci-gear em { font-style: normal; color: #8fa0b5; }
.niuma-ci-foot { text-align: center; margin-top: 16px; }

/* 结算 */
.niuma-settle-title { font-size: 22px; text-align: center; margin-bottom: 14px; }
.niuma-settle-title.win { color: #7bd88f; }
.niuma-settle-title.lose { color: #ef7b7b; }
.niuma-settle-rows { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #cfd8e3; margin-bottom: 16px; }
.niuma-settle-rows b { color: #ffd54f; }

/* 商店 */
.niuma-shop-title { font-size: 15px; color: #ffd54f; margin-bottom: 12px; }
.niuma-shop-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.niuma-shop-item { display: grid; grid-template-columns: 110px 90px 1fr auto; gap: 8px; align-items: center; background: #171c25; border: 1px solid #2a3140; border-radius: 10px; padding: 8px 12px; }
.niuma-shop-item.owned { opacity: .55; }
.niuma-shop-item.q-common { border-left: 3px solid #9fb2c8; }
.niuma-shop-item.q-rare { border-left: 3px solid #5c9bff; }
.niuma-shop-item.q-fine { border-left: 3px solid #c9a6ff; }
.niuma-shop-name { font-size: 13px; font-weight: 600; }
.niuma-shop-q { font-size: 11px; color: #9fb2c8; }
.niuma-shop-aff { font-size: 11px; color: #8fa0b5; line-height: 1.5; }
.niuma-shop-buy { background: #ffd54f; color: #20242c; border: 0; border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.niuma-shop-buy:disabled { background: #37435a; color: #8fa0b5; cursor: default; }
.niuma-shop-actions { text-align: center; }

/* 复用 T01 遗留类名（gallery/e2e-t04 页仍在用） */
.niuma-asset-panel { padding: 14px; }
.niuma-asset-status { font-size: 13px; color: #9fb2c8; }
.niuma-asset-status.ok { color: #7bd88f; }
.niuma-asset-status.bad { color: #ef7b7b; }
.niuma-asset-grid { display: flex; gap: 18px; margin-top: 10px; }
.niuma-asset-grid img { width: 128px; height: 128px; background: #10141b; border-radius: 8px; }
.niuma-asset-grid figcaption { font-size: 11px; color: #6b7a8d; }

/* ── T05 v4：角色栏技能芯片（图标 + 技能名，可点开详情）───────────── */
.niuma-cb-sk { display: inline-flex; align-items: center; gap: 5px; }
.niuma-cb-sk-ico { width: 18px; height: 18px; flex: 0 0 18px; display: block; }
.niuma-cb-sk.plain { cursor: default; }
.niuma-cb-sk[data-si] { cursor: pointer; border-color: #3d4a61; }
.niuma-cb-sk[data-si]:hover { border-color: #ffd54f; color: #ffe082; }

/* ── T05 v4：三选一卡片技能列表（图标 + 名 + 类型）────────────────── */
.niuma-evo-sks { display: flex; flex-direction: column; gap: 5px; margin-bottom: 9px; }
.niuma-evo-sk { display: flex; align-items: center; gap: 7px; background: #151a22; border: 1px solid #2a3140; border-radius: 8px; padding: 5px 8px; }
.niuma-evo-sk-ico { width: 20px; height: 20px; flex: 0 0 20px; display: block; }
.niuma-evo-sk b { font-size: 12px; color: #e8eaf0; font-weight: 600; }
.niuma-evo-sk i { font-style: normal; font-size: 11px; color: #8fa0b5; }
.niuma-evo-pick { text-align: center; font-size: 11px; color: #8fa0b5; margin-top: 8px; }

/* ── T05 v4：进化成功弹窗（3 主动 + 1 被动 + 属性变化）────────────── */
.niuma-ed-panel { background: #1b2029; border: 1px solid #ffd54f; border-radius: 14px; width: min(94%, 720px); max-height: 88vh; display: flex; flex-direction: column; padding: 18px 20px; box-shadow: var(--niuma-shadow, 0 8px 32px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.06)); }
.niuma-ed-title { font-size: 20px; font-weight: 700; color: #ffd54f; text-align: center; }
.niuma-ed-sub { font-size: 12px; color: #9fb2c8; text-align: center; margin: 5px 0 12px; line-height: 1.6; }
.niuma-ed-scroll { flex: 1; min-height: 0; overflow-y: auto; padding-right: 4px; }
.niuma-ed-skill { display: flex; gap: 10px; background: #151a22; border: 1px solid #2a3140; border-radius: 10px; padding: 10px; margin-bottom: 8px; }
.niuma-ed-ico { width: 34px; height: 34px; flex: 0 0 34px; display: block; }
.niuma-ed-body { flex: 1; min-width: 0; }
.niuma-ed-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.niuma-ed-name { font-size: 14px; font-weight: 700; color: #e8eaf0; }
.niuma-ed-cat { font-size: 11px; color: #8fa0b5; }
.niuma-ed-tip { font-size: 12px; color: #ffd54f; line-height: 1.6; margin-top: 2px; }
.niuma-ed-detail { font-size: 12px; color: #cfd8e3; line-height: 1.65; margin-top: 2px; word-break: break-word; }
.niuma-ed-empty { font-size: 12px; color: #8fa0b5; padding: 8px 0; }
.niuma-ed-sh { font-size: 12px; font-weight: 700; color: #ffd54f; margin: 10px 0 6px; }
.niuma-ed-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.niuma-ed-stat { display: flex; align-items: baseline; gap: 5px; background: #151a22; border: 1px solid #2a3140; border-radius: 9px; padding: 8px 10px; }
.niuma-ed-stat i { font-style: normal; font-size: 11px; color: #8fa0b5; }
.niuma-ed-stat b { font-size: 14px; color: #e8eaf0; }
.niuma-ed-stat em { font-style: normal; font-size: 11px; }
.niuma-ed-stat em.up { color: #7bd88f; }
.niuma-ed-stat em.down { color: #ef7b7b; }
.niuma-ed-foot { text-align: center; margin-top: 14px; }

/* ── T05 v4：技能详情浮层（长文滚动不撑破面板）──────────────────── */
.niuma-sd-panel { background: #1b2029; border: 1px solid #37435a; border-radius: 14px; width: min(92%, 620px); max-height: 82vh; display: flex; flex-direction: column; padding: 18px 20px; box-shadow: var(--niuma-shadow, 0 8px 32px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.06)); }
.niuma-sd-head { display: flex; align-items: center; gap: 12px; }
.niuma-sd-ico { width: 48px; height: 48px; flex: 0 0 48px; display: block; }
.niuma-sd-hd { flex: 1; min-width: 0; }
.niuma-sd-name { font-size: 18px; font-weight: 700; color: #ffe082; }
.niuma-sd-cat { font-size: 11px; color: #8fa0b5; margin-top: 3px; }
/* A 方案（与 mp 同序）：攻击方式是主信息（15px），台词降级到正文下方、灰色 11px */
.niuma-sd-tip { font-size: 11px; color: #8fa0b5; line-height: 1.5; margin: 8px 0 0; }
.niuma-sd-scroll { flex: 1; min-height: 90px; max-height: 46vh; overflow-y: auto; border-top: 1px solid #2a3140; padding-top: 10px; }
.niuma-sd-detail { font-size: 15px; color: #dfe6f2; line-height: 1.7; word-break: break-word; }
/* 全局规则（两条，各自独立一行）：比台词更弱一级，读得到但不抢正文 */
.niuma-sd-notes { margin-top: 8px; padding-top: 6px; border-top: 1px dashed #2a3140; }
.niuma-sd-note { font-size: 10px; color: #6b7a8d; line-height: 1.5; }
.niuma-sd-foot { text-align: center; margin-top: 14px; }
