/*
 * inspect.css — 物品“查看详情”大图视图（2026-11-06），在 monster.css 之后加载。
 * 回退：删掉 index.html 里本文件的 <link>，并恢复 research/backup-20261106-webui-ui/app-v3.js。
 */
.native-ui .modal-shade{z-index:390;background:radial-gradient(ellipse at 45% 50%,#1a140dcc,#050608ee);backdrop-filter:blur(4px)}
.native-ui .card-detail.inspect-view{
  position:fixed;inset:0;width:auto;max-width:none;z-index:400;padding:0;border:0;box-shadow:none;background:none!important;
  overflow:hidden;display:block;color:#f2e6c9;
  --iv-h:min(72dvh,660px);
}

/* 顶部：级别 / 附魔 下拉 + 恢复按钮 */
.iv-controls{position:absolute;left:18px;top:12px;z-index:5;display:flex;align-items:flex-start;gap:28px}
.iv-field{display:flex;flex-direction:column;gap:4px}
.iv-label{font:700 24px BazaarTitle,serif;color:#f0a84a;text-shadow:0 2px 3px #000;letter-spacing:1px}
.iv-select{position:relative;width:min(340px,30vw)}
.iv-select-btn{
  width:100%;height:52px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 20px;
  border:0;background:var(--iv-dd-bg) center/100% 100% no-repeat;cursor:pointer;
  color:var(--ench,#f4e7c8);font:700 26px BazaarTitle,serif;text-shadow:0 2px 3px #000;
}
.iv-select-btn i{width:18px;height:12px;background:var(--iv-dd-arrow) center/contain no-repeat;transition:transform .15s}
.iv-select-btn[aria-expanded=true] i{transform:rotate(180deg)}
.iv-select-btn:hover{filter:brightness(1.15)}
.iv-list{
  position:absolute;left:0;right:0;top:calc(100% + 4px);margin:0;padding:0;list-style:none;z-index:6;
  max-height:min(70dvh,620px);overflow:auto;scrollbar-width:thin;filter:drop-shadow(0 10px 20px #000c);
}
.iv-list li{
  position:relative;height:52px;display:flex;align-items:center;padding:0 18px;margin-bottom:3px;cursor:pointer;
  background:linear-gradient(90deg,#2a2017f2,#1b140ef2);border-radius:4px;
  color:var(--ench,#f4e7c8);font:700 24px BazaarTitle,serif;text-shadow:0 2px 3px #000;outline:none;
}
.iv-list li:after{content:'';position:absolute;left:10%;right:0;bottom:-2px;height:2px;background:linear-gradient(90deg,transparent,#e0507a,#f0c040,#40c0e0,#9050e0,transparent);opacity:.55}
.iv-list li:hover,.iv-list li:focus{background:linear-gradient(90deg,#6b3a14f2,#2a1d12f2)}
.iv-list li[aria-selected=true]{background:linear-gradient(90deg,#9a5418f2,#3a2412f2);box-shadow:inset 0 0 0 2px #f0a84a}
.iv-reset{margin-top:36px;width:50px;height:50px;padding:0;border:0;border-radius:50%;background:none;cursor:pointer}
.iv-reset svg{width:100%;height:100%;fill:none;stroke:#f0a84a;stroke-width:2.6;filter:drop-shadow(0 2px 2px #000)}
.iv-reset:disabled{opacity:.35;cursor:default}
.iv-reset:not(:disabled):hover svg{stroke:#ffd27a}
.native-ui .card-detail .iv-close{position:absolute;right:18px;top:14px;z-index:5;width:44px;height:44px;border-radius:50%;border:2px solid #c99a45;background:#141b21;color:#f3dca0;display:grid;place-items:center;cursor:pointer}
.native-ui .card-detail .iv-close svg{width:20px;height:20px}

/* 舞台：左大卡，右说明 */
.iv-stage{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:clamp(18px,3vw,48px);padding:96px 4vw 24px}
.iv-card{flex:none;position:relative;height:var(--iv-h);width:min(46vw,calc(var(--iv-h) * var(--r,1)));display:flex}
.iv-card .card-component{width:100%;height:100%;align-items:center}
.iv-card .card-visual{filter:drop-shadow(0 0 26px #ffd38a40) drop-shadow(0 18px 30px #000d)}
.iv-card .card-stats{top:-2%}
.iv-price{
  position:absolute;left:-7%;bottom:3%;z-index:20;min-width:clamp(52px,7vh,78px);height:clamp(44px,6vh,64px);padding:0 14px;
  display:grid;place-items:center;transform:rotate(-8deg);
  clip-path:polygon(18% 0,82% 0,100% 50%,82% 100%,18% 100%,0 50%);
  background:linear-gradient(#ffb04a,#e7741c 55%,#b2490e);color:#fff;font:700 clamp(28px,4.4vh,44px)/1 BazaarNumbers,sans-serif;text-shadow:0 2px 2px #6a2400;
  filter:drop-shadow(0 4px 4px #000a);
}
.iv-price:before{content:'';position:absolute;inset:3px;clip-path:inherit;background:linear-gradient(#ffc36b,#f08a2a 55%,#c55a14);z-index:-1}

.iv-info{flex:0 1 460px;min-width:300px;max-height:calc(100dvh - 120px);overflow:auto;scrollbar-width:thin;display:flex;flex-direction:column;gap:8px}
.iv-tags{display:flex;flex-wrap:wrap;gap:6px}
.iv-tags span{padding:3px 10px;border-radius:4px;background:linear-gradient(#3a3f8a,#262a62);box-shadow:inset 0 0 0 1px #7c84d8;color:#e8eaff;font:600 15px 'Microsoft YaHei',sans-serif}
.iv-tip{border:2px solid #6d6150;border-radius:6px;overflow:hidden;box-shadow:0 10px 24px #000b}
.iv-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px 12px 22px;background:linear-gradient(#3a2a1b,#22180f);border-bottom:2px solid #6d6150}
.iv-head .detail-title{margin:0;font:600 30px BazaarTitle,serif;color:#f4e7c8;text-shadow:0 2px 3px #000}
.iv-emblem{width:52px;height:52px;object-fit:contain;flex:none;filter:drop-shadow(0 2px 3px #000)}
.iv-tip[data-tier=Silver] .iv-head{background:linear-gradient(#3b3f44,#202429)}
.iv-tip[data-tier=Gold] .iv-head{background:linear-gradient(#4a3a14,#2a200b)}
.iv-tip[data-tier=Diamond] .iv-head{background:linear-gradient(#173f48,#0d2329)}
.iv-tip[data-tier=Legendary] .iv-head{background:linear-gradient(#4a1f14,#28100a)}
.iv-body{padding:14px 20px 16px;background:#151210f2}
.iv-body .detail-effects{font:600 17px/1.75 'Microsoft YaHei',sans-serif;color:#efe4c9}
.iv-body .detail-effects p{margin:0 0 6px}
.iv-stats{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px;padding-top:10px;border-top:1px solid #6d615066;font-size:14px}
.iv-stats span{display:flex;align-items:center;gap:4px}
.iv-stats .game-icon{width:20px;height:20px}
.iv-stats b{font:700 19px BazaarNumbers,sans-serif}
.iv-note{margin:0;min-height:0;font-size:13px;color:#f0c27a;text-shadow:0 1px 2px #000}
.iv-note:empty{display:none}
.native-ui .inspect-view .detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin:0}
.native-ui .inspect-view .detail-actions:empty{display:none}
/* 原始属性 / 服务端定义两个折叠块不再显示（元素保留给开发检查脚本读取） */
.native-ui .inspect-view .detail-raw{display:none}

@media (max-width:760px){
  .native-ui .card-detail.inspect-view{overflow:auto;--iv-h:44dvh}
  .iv-controls{position:static;padding:12px;gap:10px;flex-wrap:wrap}
  .iv-select{width:42vw}.iv-label{font-size:18px}.iv-select-btn{height:44px;font-size:20px}.iv-list li{height:42px;font-size:19px}
  .iv-reset{margin-top:28px;width:40px;height:40px}
  .iv-stage{position:static;flex-direction:column;padding:8px 12px 24px}
  .iv-card{width:min(90vw,calc(var(--iv-h) * var(--r,1)))}
  .iv-info{min-width:0;width:100%;max-height:none}
}

/* 原版战斗特效画布（js/combat-vfx.js） */
.native-ui .combat-vfx-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:12;pointer-events:none}
/* 原版战斗特效命中点在英雄头像上（js/replay.js）；生命条与数字始终在特效之上，不被挡住 */
.native-ui .replay-scene .combatant .combat-vitals{position:relative;z-index:13}
