/* 副本分解台（2026-11-09，dforge- 前缀）v1
   入口按钮位置=各副本功能按钮栈最底（shop 14 → help 60 → flip/wheel/dart 100~104 → forge 148）
   面板复用 .dsbk-panel 壳（覆盖必须连 width 一起写，只写 max-width 不生效——dshop 教训） */

/* ===== 入口按钮（⚒️，位置=翻牌/转盘/打气球按钮下方） ===== */
#nb-forge-btn, #jx-forge-btn, #mc-forge-btn { position: absolute; top: 148px; left: 10px; z-index: 6;
  width: 34px; height: 34px; padding: 0; border-radius: 50%; cursor: pointer;
  font-size: 16px; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: transform .18s, filter .18s; }
#nb-forge-btn { border: 1.5px solid rgba(129,212,250,.8);
  background: linear-gradient(180deg,#00838f 0%,#006064 45%,#01414a 100%);
  box-shadow: 0 2px 10px rgba(77,208,225,.45), inset 0 1px 0 rgba(255,255,255,.35); }
#jx-forge-btn { border: 1.5px solid rgba(174,213,255,.8);
  background: linear-gradient(180deg,#37474f 0%,#263238 45%,#102027 100%);
  box-shadow: 0 2px 10px rgba(144,202,249,.4), inset 0 1px 0 rgba(255,255,255,.3); }
#mc-forge-btn { border: 1.5px solid rgba(255,213,128,.8);
  background: linear-gradient(180deg,#8d6e63 0%,#5d4037 45%,#3e2723 100%);
  box-shadow: 0 2px 10px rgba(255,183,77,.4), inset 0 1px 0 rgba(255,255,255,.3); }
#nb-forge-btn:hover, #jx-forge-btn:hover, #mc-forge-btn:hover { transform: scale(1.08); filter: brightness(1.15); }
#nb-forge-btn:active, #jx-forge-btn:active, #mc-forge-btn:active { transform: scale(.95); }
#nb-forge-btn.hidden, #jx-forge-btn.hidden, #mc-forge-btn.hidden { display: none; }

/* ===== 面板：PC 端 640px（含个体选鱼列表，460 太挤——用户 2026-11-09 深夜反馈；连 width 一起覆盖） ===== */
#dforge-ov { z-index: 160; }
#dforge-ov .dsbk-panel { width: min(94vw, 640px); max-width: 640px;
  background: linear-gradient(180deg, #10202c 0%, #14303c 60%, #163a48 100%); }

/* ===== 状态条：三币余额胶囊 ===== */
.dforge-bar { display: flex; align-items: center; padding: 10px 16px 0; }
.dforge-bal { display: inline-flex; align-items: center; gap: 10px; padding: 3px 12px;
  border-radius: 999px; background: rgba(6,24,34,.85); border: 1px solid rgba(77,208,225,.45);
  font-size: 12px; color: #b2ebf2; box-shadow: inset 0 0 8px rgba(77,208,225,.14); }
.dforge-bal b { font-size: 13.5px; color: #ffe9b0; text-shadow: 0 0 6px rgba(255,220,140,.35); }
.dforge-bal i { font-style: normal; color: #aee6ff; }
.dforge-bal i.g { color: #ffe082; }

/* ===== 提示行 ===== */
.dforge-tip { padding: 7px 16px 0; font-size: 11px; color: #7d98a8; text-align: center; }

/* ===== 配方列表：横版单列（鱼图 | 信息 | 按钮），选鱼列表展开后整行下沉 =====
   面板壳 max-height:86vh + overflow:hidden（main.css 1065），配方区必须自己滚动，
   否则多个 150 条列表一展开 footer 被裁出面板外（2026-11-10 用户实抓「底没了」） */
.dforge-grid { display: flex; flex-direction: column; gap: 8px; margin: 10px 14px 0;
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 9px 4px 6px; } /* 顶部 9px：给首卡外伸的稀有度角标（top:-8px）留位，防滚动裁切 */
.dforge-card { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  border: 1.5px solid rgba(150,200,225,.45); border-radius: 12px; padding: 9px 12px;
  background: linear-gradient(176deg, #2e4a5e 0%, #243c4e 45%, #1d3140 100%);
  box-shadow: 0 3px 9px rgba(3,12,20,.55), inset 0 1.5px 0 rgba(200,230,245,.2);
  transition: border-color .13s, box-shadow .13s; }
.dforge-card:hover { border-color: rgba(190,230,250,.85);
  box-shadow: 0 6px 14px rgba(3,12,20,.65), inset 0 1.5px 0 rgba(200,230,245,.28); }
.dforge-card.none { opacity: .55; }

/* 稀有度角标：贴卡左上沿 */
.dforge-rar { position: absolute; top: -8px; left: 10px; z-index: 2; font-style: normal; font-size: 9px; font-weight: bold;
  background: linear-gradient(180deg,#12242e,#0c1a22); border: 1px solid; border-radius: 7px; padding: 1px 7px;
  box-shadow: 0 1px 4px rgba(3,12,20,.6); }

/* 鱼图：光晕底托（对齐 dshop-art 语言） */
.dforge-art { position: relative; flex: 0 0 56px; height: 56px; display: flex; align-items: center; justify-content: center; }
.dforge-art::before { content: ''; position: absolute; width: 50px; height: 50px; border-radius: 50%;
  background: radial-gradient(circle, rgba(77,208,225,.28) 0%, rgba(77,208,225,.08) 55%, transparent 72%); }
.dforge-art img, .dforge-art span { position: relative; z-index: 1; }
.dforge-art img { max-width: 52px; max-height: 52px; object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(0,8,16,.7)) drop-shadow(0 0 6px rgba(120,210,235,.2)); }
.dforge-art span { font-size: 30px; filter: drop-shadow(0 2px 4px rgba(0,8,16,.65)); }

/* 信息区：鱼名+持有 / 消耗→产出 */
.dforge-info { flex: 1; min-width: 0; }
.dforge-nm { font-size: 13px; font-weight: bold; color: #f2f8fc;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-shadow: 0 1px 2px rgba(3,12,20,.85); }
.dforge-have { font-style: normal; font-size: 9.5px; font-weight: normal; margin-left: 7px; vertical-align: 1px; }
.dforge-cost { font-size: 11px; color: #a8c4d4; margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dforge-plus { font-style: normal; color: #6f92a4; margin: 0 3px; }
.dforge-arr { font-style: normal; color: #4dd0e1; margin: 0 5px; }
.dforge-out { color: #ffe9b0; text-shadow: 0 0 6px rgba(255,220,140,.3); }

/* 分解按钮 */
.dforge-go { flex: 0 0 auto; border: none; cursor: pointer; border-radius: 10px; padding: 9px 15px;
  font-size: 12px; font-weight: bold; color: #fff; letter-spacing: 2px; white-space: nowrap;
  background: linear-gradient(180deg, #26c6da, #00838f);
  box-shadow: 0 2px 6px rgba(0,60,70,.5), inset 0 1px 0 rgba(255,255,255,.35); transition: all .12s; }
.dforge-go:active { filter: brightness(.93); }
.dforge-go.off { filter: grayscale(.85) brightness(.8); cursor: not-allowed; letter-spacing: 1px; }
.dforge-re { flex: 0 0 auto; cursor: pointer; border-radius: 10px; padding: 8px 12px;
  font-size: 11px; color: #8fd8f5; background: rgba(10,40,54,.6);
  border: 1.5px solid rgba(77,208,225,.55); letter-spacing: 1px; white-space: nowrap; transition: all .12s; }
.dforge-re:hover { background: rgba(77,208,225,.14); border-color: rgba(77,208,225,.85); }
.dforge-re:active { filter: brightness(.93); }

.dforge-empty { padding: 26px 0; text-align: center; color: #8fa8b8; font-size: 13px; }
.dforge-foot { margin: 10px 16px 14px; font-size: 10.5px; color: #7d98a8; text-align: center; flex: 0 0 auto; }

/* ===== 个体选鱼列表（v3：双列鱼卡网格 + 分页加载 + 标签体系） ===== */
.dforge-fishes { flex: 1 0 100%; max-height: 262px; overflow-y: auto; margin-top: 2px;
  border: 1px solid rgba(120,180,210,.3); border-radius: 9px; background: rgba(6,22,32,.72);
  padding: 7px; overscroll-behavior: contain; }
.dforge-fhead { font-size: 10.5px; color: #7d98a8; margin: 0 2px 6px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.dforge-fcount { font-size: 10.5px; color: #7d98a8; }
.dforge-fops { margin-left: auto; display: inline-flex; gap: 5px; }
.dforge-fops i { font-style: normal; font-size: 10px; color: #7fd8e8; cursor: pointer; user-select: none;
  border: 1px solid rgba(77,208,225,.4); border-radius: 999px; padding: 1px 8px;
  background: rgba(77,208,225,.07); transition: background .1s, border-color .1s; white-space: nowrap; }
.dforge-fops i:hover { background: rgba(77,208,225,.18); border-color: rgba(77,208,225,.7); }
/* 放行开关条（v4.1 面板层常驻，配方列表上方）：默认保护态灰、放行态青 */
.dforge-allows { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 8px 16px 0; }
.dforge-allow-cap { font-size: 11px; color: #7d98a8; }
.dforge-allow { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; user-select: none;
  font-size: 11px; color: #90a4ae; border: 1px solid rgba(144,164,174,.4); border-radius: 999px;
  padding: 3px 10px; background: rgba(10,30,42,.5); transition: all .12s; }
.dforge-allow b { font-size: 10px; font-weight: normal; color: #78909c; }
.dforge-allow:hover { border-color: rgba(77,208,225,.5); }
.dforge-allow.on { color: #4dd0e1; border-color: rgba(77,208,225,.7); background: rgba(77,208,225,.12);
  box-shadow: inset 0 0 6px rgba(77,208,225,.12); }
.dforge-allow.on b { color: #4dd0e1; font-weight: bold; text-shadow: 0 0 5px rgba(77,208,225,.5); }
.dforge-allows .dforge-allow-note { font-style: normal; font-size: 9.5px; color: #6f92a4; margin-left: auto; }
.dforge-fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dforge-fchip { border: 1.5px solid rgba(120,170,200,.28); border-radius: 8px; padding: 6px 8px;
  cursor: pointer; background: rgba(10,30,42,.5); transition: border-color .1s, background .1s; }
.dforge-fchip:hover { border-color: rgba(77,208,225,.55); background: rgba(77,208,225,.08); }
.dforge-fchip.sel { border-color: #4dd0e1; background: rgba(77,208,225,.16);
  box-shadow: 0 0 9px rgba(77,208,225,.3), inset 0 0 6px rgba(77,208,225,.12); }
.dforge-fchip.off { opacity: .5; cursor: not-allowed; filter: grayscale(.55); }
.dforge-fchip.off:hover { border-color: rgba(120,170,200,.28); background: rgba(10,30,42,.5); }
.fc-w { font-weight: bold; color: #ffe082; font-size: 12.5px; display: flex; gap: 5px; align-items: center;
  text-shadow: 0 0 5px rgba(255,220,140,.22); }
.fc-tags { margin-top: 4px; font-size: 10px; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.dforge-fq { font-style: normal; font-size: 10px; color: #ffb74d; letter-spacing: 1px; }
.dforge-tg { font-style: normal; border-radius: 5px; padding: 0 4px; font-size: 9px; border: 1px solid; line-height: 15px; }
.tg-giant { color: #ffb74d; border-color: rgba(255,183,77,.55); background: rgba(255,183,77,.08); }
.tg-shiny { color: #ffe082; border-color: rgba(255,224,130,.55); background: rgba(255,224,130,.08);
  text-shadow: 0 0 4px rgba(255,213,79,.5); }
.tg-variant { color: #ce93d8; border-color: rgba(206,147,216,.55); background: rgba(206,147,216,.08); }
.tg-lock { color: #b0bec5; border-color: rgba(176,190,197,.45); }
.tg-bound { color: #ef9a9a; border-color: rgba(239,154,154,.5); }
.tg-no { color: #78909c; border-color: rgba(120,144,156,.45); margin-left: auto; }
.dforge-fmore { display: block; width: calc(100% - 8px); margin: 7px 4px 1px; border: 1px dashed rgba(77,208,225,.5);
  border-radius: 8px; background: rgba(77,208,225,.07); color: #7fd8e8; font-size: 11.5px;
  padding: 7px 0; cursor: pointer; transition: background .1s; }
.dforge-fmore:hover { background: rgba(77,208,225,.16); }
.dforge-fempty { padding: 12px 0; text-align: center; font-size: 11.5px; color: #7d98a8; }

/* 移动端横屏反制：窄竖屏 @media 误命中横屏旋转态（landmode 教训，挂 body.lm-rot） */
@media (max-width: 560px) {
  body:not(.lm-rot) .dforge-grid { margin: 10px 10px 0; }
  body:not(.lm-rot) .dforge-cost { white-space: normal; }
  body:not(.lm-rot) .dforge-fgrid { grid-template-columns: 1fr; } /* 窄屏单列鱼卡 */
}
