/**
 * 子比头像框插件样式
 * 版本: 1.0.0
 * 定位方式：transform:scale() + top偏移（参考avatar-box插件）
 */

/* ===========================
   头像框基础样式
   =========================== */

/* 头像框图片 - 绝对定位，与头像同位置 */
.zaf-avatar-frame {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    /* transform 和 top 由内联样式控制 */
}

/* 头像徽章(VIP图标)需要更高层级 */
.avatar-badge {
    z-index: 15 !important;
    position: relative;
}


/* ===========================
   用户选择弹窗样式
   =========================== */

/* 头像框分类容器 */
.zaf-cat-box {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.02);
}

.zaf-cat-box:last-child {
    margin-bottom: 0;
}

/* 分类名称 */
.zaf-cat-name {
    font-size: 14px;
    color: #333;
}

/* 头像框列表项 */
.zaf-frame-list {
    position: relative;
    flex: 0 0 auto;
    width: 80px;
    padding: 10px;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
}

.zaf-frame-list:hover {
    border-color: #0066ff;
    background: rgba(0, 102, 255, 0.05);
    transform: translateY(-2px);
}

.zaf-frame-list.active {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.zaf-frame-list.active::after {
    content: "\f00c";
    font-family: FontAwesome;
    position: absolute;
    top: 5px;
    right: 5px;
    color: #ff6b6b;
    font-size: 12px;
}

/* 头像框图标 */
.zaf-frame-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* 头像框名称 */
.zaf-frame-list .muted-color {
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ===========================
   响应式适配
   =========================== */

@media (max-width: 768px) {
    .zaf-frame-list {
        width: 70px;
        padding: 8px;
    }

    .zaf-frame-icon {
        width: 50px;
        height: 50px;
    }

    .zaf-cat-box {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .zaf-frame-list {
        width: 60px;
        padding: 6px;
    }

    .zaf-frame-icon {
        width: 45px;
        height: 45px;
    }
}


/* ===========================
   暗色模式适配
   =========================== */

.dark-theme .zaf-cat-name,
[data-theme="dark"] .zaf-cat-name {
    color: #e0e0e0;
}

.dark-theme .zaf-cat-box,
[data-theme="dark"] .zaf-cat-box {
    background: rgba(255, 255, 255, 0.05);
}

.dark-theme .zaf-frame-list,
[data-theme="dark"] .zaf-frame-list {
    background: rgba(255, 255, 255, 0.05);
}

.dark-theme .zaf-frame-list:hover,
[data-theme="dark"] .zaf-frame-list:hover {
    background: rgba(0, 102, 255, 0.15);
}

.dark-theme .zaf-frame-list.active,
[data-theme="dark"] .zaf-frame-list.active {
    background: rgba(255, 107, 107, 0.15);
}