/* 2026-11-08：物品提示框（js/cards.js tooltip）按原版 CardTooltip 版式与贴图 Tooltip_<品质>_*_TUI */
.native-ui .card-popover:has(.ot){width:max-content;max-width:min(470px,calc(100vw - 20px));overflow:visible;background:none;box-shadow:none;border:0;padding:0}
.native-tooltip.ot{padding:0 0 0 30px;background:none;border:0;border-image:none;box-shadow:none;color:#eadfc6;font:14px/1.5 BazaarText,'Noto Sans SC',sans-serif;min-width:300px;max-width:440px;box-sizing:border-box}
/* 标签：上方独立小框（Tooltip_<品质>_Tag_TUI） */
.ot-tags{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 5px 6px}
.ot-tags span{padding:3px 11px 4px;font-size:12.5px;line-height:1.2;color:#e7dbc0;background:var(--ot-tag) center/100% 100% no-repeat;filter:drop-shadow(0 2px 3px #0009)}
.ot-tags .ot-tag-added{color:#ffe092;text-shadow:0 1px 2px #000,0 0 6px #d38627}
/* 主体：外框 Frame_Main（只有描边）+ 深色底 */
.ot-frame{position:relative;border:9px solid transparent;border-image:var(--ot-frame-main) 34 / 9px stretch;background:linear-gradient(#21160d,#160f09) padding-box;box-shadow:0 12px 30px #000c;margin:0}
.ot-title{position:relative;display:flex;align-items:center;min-height:52px;padding:6px 64px 6px 26px;background:var(--ot-title) center/100% 100% no-repeat}
.ot-title::after{content:'';position:absolute;left:0;right:0;bottom:-6px;height:12px;background:var(--ot-divider) center/100% 100% no-repeat;z-index:2}
.ot-title h3{margin:0;font:600 26px/1.15 BazaarTitle,'Noto Serif SC',serif;color:#f1e3c4;text-align:left;text-shadow:0 2px 3px #000}
.ot-title .native-enchant-name{display:block;font:600 13px/1.2 BazaarTitle,serif;margin-bottom:1px}
.ot-hero{position:absolute;right:14px;top:50%;width:42px;height:42px;transform:translateY(-50%);object-fit:contain;opacity:.9;filter:sepia(.35) drop-shadow(0 1px 2px #000)}
/* 主动区：带框（Frame_Active），每行原版箭头；冷却圆钟（Clock）压在左缘 */
.ot-body{position:relative;padding:12px 14px 10px 44px}
.ot-body.only-clock{min-height:58px}
.ot-active{position:relative;border:9px solid transparent;border-image:var(--ot-frame-active) 60 fill / 9px stretch;padding:4px 8px;background:#0000}
.ot .native-effect{margin:0;padding:5px 0;border:0;background:none;color:#eadfc6;line-height:1.55}
.ot .native-effect+.native-effect{border-top:0}
.ot .native-active{border:0;border-image:none;margin:0;padding:6px 0 6px 26px;position:relative;background:none}
.ot .native-active::before{content:'';position:absolute;left:0;top:.62em;width:18px;height:13px;background:var(--ot-arrow) center/contain no-repeat;opacity:.85}
.ot-clock{position:absolute;left:-30px;top:50%;transform:translateY(-50%);width:76px;height:70px;background:var(--ot-clock) center/contain no-repeat;display:flex;flex-direction:column;align-items:center;justify-content:center;padding-right:8px;box-sizing:border-box;z-index:3;filter:drop-shadow(0 3px 5px #000a)}
.ot-clock b{font:700 23px/1 BazaarNumbers,sans-serif;color:#fff;text-shadow:0 0 4px #000}
.ot-clock small{font-size:10px;color:#e8dcc0;margin-top:2px}
.ot-clock.has-upgrade{width:84px}.ot-clock.has-upgrade b{font-size:15px}.ot-clock.has-upgrade .ot-new{font-size:17px}
.ot-ammo{position:absolute;left:-14px;top:calc(50% + 34px);width:30px;height:44px;background:var(--ot-ammo) center/contain no-repeat;display:flex;align-items:center;justify-content:center;z-index:3}
.ot-ammo b{font:700 15px BazaarNumbers;color:#fff;text-shadow:0 0 3px #000}
.ot-ammo:not(:has(.ot-new)) i{display:none}
/* 被动区（Passive）：分隔线 + 底纹 */
.ot-passive{position:relative;padding:10px 20px 12px 26px;background:var(--ot-passive) center/100% 100% no-repeat}
.ot-passive::before{content:'';position:absolute;left:0;right:0;top:-6px;height:12px;background:var(--ot-divider) center/100% 100% no-repeat}
.ot-extras{display:flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:12.5px;color:#d8caa8}
.ot-extras .game-icon{width:16px;height:16px;vertical-align:-3px}
.ot-sep{opacity:.5;margin:0 3px}
/* 升级对比：原版“4››6”，新值亮绿 */
.ot .ot-up{font-style:normal;color:#8fdc6c;margin:0 2px;letter-spacing:-2px;font-weight:700}
.ot .ot-new{color:#9bea72;font-family:BazaarNumbers,sans-serif}
.ot .native-number.has-upgrade{white-space:nowrap}
.ot-upgrade-note{display:flex;align-items:center;gap:6px;padding:7px 20px 9px 26px;font-size:12.5px;color:#a8e58a;border-top:1px solid #9a7a4a44}
.ot-upgrade-note .game-icon{width:18px;height:18px}
.native-ui .card-popover:has(.ot-enchant-preview){overflow:auto}
.ot-enchant-preview .ot-enchant-option{font-size:12.5px;line-height:1.55;margin:3px 0}
.ot-enchant-option .ench-Turbo{color:#28e9cc}
.ot-enchant-option .ench-Deadly{color:#ff624b}
/* 放大查看（inspect.js 用 opts.big） */
.native-tooltip.ot.ot-big{max-width:560px;font-size:16px}
.ot-big .ot-title h3{font-size:32px}.ot-big .ot-title{min-height:64px}
.ot-big .ot-clock{width:92px;height:84px}.ot-big .ot-clock b{font-size:28px}
.ot-big .ot-tags span{font-size:14px;padding:4px 14px 5px}

/* 放大查看里：随容器宽度，不出横向滚动条 */
.iv-ot{max-width:100%;overflow:visible}
.iv-ot .native-tooltip.ot{max-width:100%;width:100%;min-width:0}
.iv-info:has(.iv-ot){overflow-x:hidden}
