/* 1. 基础容器 */
.tt-sidebar-medals { display: none !important; }

@media (min-width: 992px) {
    .tt-sidebar-medals { 
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 3px;
        margin: 15px 0;
        width: 100%;
        padding-top: 5px;
        border-top: 1px dashed rgba(255,255,255,0.1);
    }
}

/* 2. 勋章包装器 */
.medal-item-wrapper {
    position: relative;
    width: 20px;  
    height: 34px; 
    cursor: pointer;
}

.medal-item {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    mix-blend-mode: multiply; 
}

/* 3. 提示文字 (Tooltip) 优化版 */
.medal-item-wrapper::before {
    content: attr(data-tips);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    
    max-width: 160px;
    min-width: 80px;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    line-height: 1.4;

    padding: 8px 12px;
    background: rgba(20, 20, 20, 0.95);
    color: #fff;
    font-size: 11px;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    pointer-events: none;
}

/* 提示框小尖角 */
.medal-item-wrapper::after {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border: 6px solid transparent;
    border-top-color: rgba(20, 20, 20, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 100;
}

/* 4. 悬停触发 */
.medal-item-wrapper:hover .medal-item {
    transform: scale(1.35) translateY(-2px);
    mix-blend-mode: normal;
}

.medal-item-wrapper:hover::before,
.medal-item-wrapper:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}