/* 道具浮动框样式 */
.simple-tooltip {
    position: fixed;
    z-index: 99999;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #666;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    font-size: 12px;
    pointer-events: auto;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    /* 确保浮动框不会被父容器的overflow裁剪 */
    position: fixed !important;
    z-index: 99999 !important;
}

.tooltip-container {
    width: 100%;
}

.simple-tooltip.show {
    opacity: 1;
    transform: scale(1);
}

/* 浮动框箭头样式 */
.tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border: 6px solid transparent;
}

/* 水平箭头 - 左侧 */
.tooltip-arrow[style*="left: 0px"] {
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: #333;
}

/* 水平箭头 - 右侧 */
.tooltip-arrow[style*="right: 0px"] {
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: #333;
}

/* 垂直箭头 - 上方 */
.tooltip-arrow[style*="top: -6px"] {
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: #333;
}

/* 垂直箭头 - 下方 */
.tooltip-arrow[style*="bottom: -6px"] {
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: #333;
}

/* 加载状态样式 */
.tooltip-loading {
    text-align: center;
    padding: 20px;
    color: #ccc;
}

.tooltip-loading i {
    margin-right: 8px;
    color: #00ff88;
}

/* 道具属性样式 */
.tooltip-header {
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.tooltip-header img {
    border-radius: 4px;
    border: 1px solid #444;
    background-color: rgba(255, 255, 255, 0.1);
    width: 48px;
    height: 48px;
    object-fit: cover;
    object-position: left top;
}

.tooltip-header .d-flex {
    gap: 10px;
    align-items: center;
}

.tooltip-header .d-flex {
    gap: 10px;
}

.item-name {
    font-size: 16px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 5px;
}

.item-type {
    font-size: 12px;
    color: #ccc;
}

.equipment-types {
    font-size: 11px;
    color: #ffaa00;
    margin-top: 3px;
    font-weight: 500;
}

.tooltip-section {
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    border: 1px solid #333;
}

.section-title {
    font-size: 14px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.attribute-item {
    margin-bottom: 5px;
    font-size: 12px;
    color: #ccc;
}

.attribute-value {
    color: #00ff88;
    font-weight: bold;
}

.bonus-attr {
    color: #ffaa00;
}

.info-item {
    margin-bottom: 5px;
    font-size: 12px;
    color: #ccc;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.attributes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
}

.bonus-attributes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
}

.description-text {
    font-size: 11px;
    line-height: 1.4;
    color: #ccc;
    font-style: italic;
    white-space: pre-line;
}

.tooltip-error {
    color: #ff6b6b;
    text-align: center;
    padding: 20px;
}

.tooltip-error .fa-exclamation-triangle {
    font-size: 18px;
    margin-right: 8px;
}

/* 品质颜色样式 */
.quality-common {
    color: #6c7884 !important;
}

.quality-rare {
    color: #1eff00 !important;
}

.quality-legend {
    color: #0070dd !important;
}

.quality-unique {
    color: #856404 !important;
}

.quality-epic {
    color: #b64215 !important;
}

.quality-mythic {
    color: #a335ee !important;
}



.quality-legendary {
    color: #ff8000 !important;
}

/* .quality-unique {
    color: #ff8000 !important;
} */

/* .quality-mythic {
    color: #ff0000 !important;
} */

.quality-ancient {
    color: #fd7e14 !important;
}

.quality-finality {
    color: #ff0000 !important;
}
