/* 形象衣橱模态框样式 */
.closet-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.closet-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.closet-modal-container {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    animation: closetModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
@keyframes closetModalIn {
    from { transform: scale(0.92) translateY(10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
.closet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #f1f5f9;
}
.closet-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}
.closet-close-btn {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.closet-progress-bar-wrap {
    padding: 10px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.84rem;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.closet-grid {
    padding: 16px 18px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    flex: 1;
}
.closet-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}
.closet-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}
.closet-card.equipped {
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}
.closet-card.locked {
    opacity: 0.55;
    filter: grayscale(40%);
    background: #f8fafc;
}
.closet-img-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 8px;
    background: #f1f5f9;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.closet-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.closet-lock-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 10px;
}
.closet-card-title {
    font-size: 0.76rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}
.closet-action-btn {
    border: none;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 8px;
    cursor: pointer;
    width: 100%;
}
.btn-equip {
    background: #4f46e5;
    color: #ffffff;
}
.btn-equipped-label {
    background: #10b981;
    color: #ffffff;
}
.btn-locked-label {
    background: #94a3b8;
    color: #ffffff;
}
.closet-filter-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    color: #64748b;
    user-select: none;
    padding: 3px 8px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.closet-filter-label:hover {
    background: #e2e8f0;
    color: #334155;
}
.closet-filter-label input[type="checkbox"] {
    cursor: pointer;
    accent-color: #3b82f6;
    width: 14px;
    height: 14px;
}
