/* ============================================================
   tooltip 全局模板样式（装备栏 / 背包卡片 / 背包格子 / 溯源页共用）
   统一类名 .game-tip；定位与显示逻辑由宿主页面 JS 完全控制（事件委托+setAttribute）
   ============================================================ */

/* ---- 外壳外观（玻璃：斜向高光 sheen + 透底 + blur 24px 强磨砂 + 顶部亮线） ---- */
.game-tip {
    background:
        linear-gradient(160deg,
            rgba(255, 255, 255, 0.18) 0%,
            rgba(255, 255, 255, 0.06) 28%,
            rgba(10, 12, 20, 0.55) 62%,
            rgba(8, 10, 16, 0.80) 100%),
        rgba(8, 10, 16, 0.45);
    backdrop-filter: blur(24px) saturate(180%) brightness(1.12);
    -webkit-backdrop-filter: blur(24px) saturate(180%) brightness(1.12);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.20),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        inset 1px 0 0 rgba(255, 255, 255, 0.06),
        0 12px 32px rgba(0, 0, 0, 0.6);
    text-align: center;
    margin-bottom: 8px;
    pointer-events: none;
    overflow: hidden;
    font-weight: normal;
    /* 文字投影兜底: 底色变透后保证深色背景上的细字仍可读 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 0 4px rgba(0, 0, 0, 0.55);
}

/* ---- 三段式卡片：底色降为极淡，让玻璃外壳的透底效果发挥 ---- */
.game-tip .tip-head { padding: 12px 0 8px; background: rgba(0, 0, 0, 0.18); border-bottom: 1px solid rgba(255, 255, 255, 0.10); }
.game-tip .tip-head img { width: 64px; height: 64px; object-fit: contain; border-radius: 50%; border: 2px solid rgba(255,255,255,0.18); }
.game-tip .tip-body { padding: 8px 14px 10px; background: rgba(0, 0, 0, 0.12); }
.game-tip .tip-trace-section { padding: 8px 0; background: rgba(0, 0, 0, 0.18); border-top: 1px solid rgba(255, 255, 255, 0.10); text-align: center; }
.game-tip .tip-trace-section > * { margin-left: 14px; margin-right: 14px; }
.game-tip .tip-trace-title { color: #f0c040; font-size: 13px; font-weight: bold; margin-bottom: 6px; }
.game-tip .tip-serial { color: #aaa; font-size: 11px; margin-top: 6px; }
.game-tip .tip-desc {
    background: rgba(180, 180, 180, 0.14); border-radius: 4px; padding: 6px 8px;
    font-size: 12px; color: #a0a0a0; line-height: 1.5; text-align: center;
}
.game-tip .tip-combine { color: #f0d090; font-size: 12px; line-height: 1.5; }
.game-tip .tip-trade { color: #8ab4e0; font-size: 12px; line-height: 1.5; }
.game-tip .tip-section-divider { border-top: 1px dashed rgba(240, 192, 64, 0.4); margin: 6px 2px; }
.game-tip .tip-combine + .tip-combine { border-top: none; padding-top: 0; margin-top: 0; }

/* ---- 内容文本行 ---- */
.game-tip .t-name { color: #f0c040; font-weight: bold; font-size: 15px; margin-bottom: 6px; }
.game-tip .t-dura { color: #d0d0e0; font-size: 12px; margin-bottom: 4px; }
.game-tip .t-line { font-size: 13px; margin: 2px 0; }
.game-tip .t-exc { color: #6cf06c; margin-top: 6px; }
.game-tip .t-luck { color: #55aaff; margin-top: 6px; }
.game-tip .t-add { color: #55aaff; margin-top: 6px; }
.game-tip .t-skill { color: #ff9900; margin-top: 6px; }
.game-tip .t-class { color: #55aaff; margin-top: 6px; }
/* 同一功能组内(多行职业/幸运/卓越)保持紧凑行距, 组间间距通过相邻 margin 折叠统一为 6px */
.game-tip .t-class + .t-class,
.game-tip .t-luck + .t-luck,
.game-tip .t-exc + .t-exc { margin-top: 2px; }
.game-tip .t-set-h { color: #f0c040; font-size: 13px; margin-top: 6px; }
.game-tip .t-set { color: #55aaff; }
.game-tip .t-earring-set { color: #6cf06c; }

/* 附魔文字颜色 (ItemBuffer.txt 颜色列: 1蓝 2红 3金 4绿 5红底白字 6粉红 7白底蓝字 8土黄底白字 9浅蓝底绿字 10灰 11/12/14紫 13棕) */
.game-tip .t-ench { font-size: 12px; margin-top: 3px; padding: 0 5px; border-radius: 3px; }
.game-tip .t-ench-c1 { color: #55aaff; }
.game-tip .t-ench-c2 { color: #ff5050; }
.game-tip .t-ench-c3 { color: #f0c040; }
.game-tip .t-ench-c4 { color: #6cf06c; }
.game-tip .t-ench-c5 { color: #fff; background: #b02020; }
.game-tip .t-ench-c6 { color: #ff69b4; }
.game-tip .t-ench-c7 { color: #fff; background: #3050c0; }
.game-tip .t-ench-c8 { color: #fff; background: #8a6d3b; }
.game-tip .t-ench-c9 { color: #d8ffd0; background: #2a6d5b; }
.game-tip .t-ench-c10 { color: #888; }
.game-tip .t-ench-c11,
.game-tip .t-ench-c12,
.game-tip .t-ench-c14 { color: #c060ff; }
.game-tip .t-ench-c13 { color: #c8a06c; }

.game-tip .t-sock-h { color: #ff19ff; font-size: 13px; margin-top: 6px; }
.game-tip .t-sock { color: #55aaff; }
.game-tip .t-sock-empty { color: #888; }
.game-tip .t-bonus { color: #ffd36b; margin-top: 4px; }
.game-tip .t-extra { color: #9aa8d8; font-size: 12px; margin-top: 4px; }

/* ---- 溯源页旧结构兼容类 (如仍有非三段式旧 tooltip 结构) ---- */
.game-tip .tip-img { padding: 16px 0 10px; }
.game-tip .tip-img img { width: 72px; height: 72px; max-width: none; max-height: none; object-fit: contain; border-radius: 50%; border: 2px solid #555; }
.game-tip .tip-name { color: #f0c040; font-weight: bold; font-size: 15px; margin-bottom: 4px; }
.game-tip .tip-divider { border: none; border-top: 1px solid #555; margin: 6px -14px; }
.game-tip .tip-class { color: #55aaff; font-size: 13px; margin-top: 4px; }
.game-tip .tip-class + .tip-class { margin-top: 2px; }
.game-tip .tip-skill-name { color: #ff9900; font-size: 13px; margin-top: 6px; }
.game-tip .tip-luck { color: #55aaff; font-size: 13px; margin-top: 4px; }
.game-tip .tip-luck + .tip-luck { margin-top: 2px; }
.game-tip .tip-opt { color: #55aaff; font-size: 13px; margin-top: 4px; }
.game-tip .tip-ex { color: #6cf06c; font-size: 13px; margin-top: 4px; }
.game-tip .tip-ex + .tip-ex { margin-top: 2px; }
.game-tip .tip-set { color: #f0c040; font-size: 13px; margin-top: 6px; }
.game-tip .tip-set-line { color: #55aaff; font-size: 13px; margin-top: 2px; }
.game-tip .tip-hit380 { color: #ff6b6b; font-size: 13px; margin-top: 4px; }
.game-tip .tip-harmony { color: #55aaff; font-size: 13px; margin-top: 4px; }
.game-tip .tip-dura { color: #d0d0e0; font-size: 13px; margin-top: 6px; }
.game-tip .tip-footer { padding: 8px 14px; border-top: 1px solid rgba(255, 255, 255, 0.10); background: rgba(0, 0, 0, 0.22); }
.game-tip .tip-time { font-size: 11px; color: #909090; margin-top: 4px; }
