/**
 * B2徽章功能样式
 */
.b2-medal-show {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}
.b2-medal-show img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    filter: brightness(0) invert(1);
}
.b2-medal-count {
    margin-left: 4px;
}

/* 模态框 */
.b2-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.b2-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}
.b2-modal-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.b2-modal-avatar img {
    border-radius: 50%;
    border: 2px solid #fff;
}
.b2-modal-body {
    padding: 20px;
}
.b2-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    text-align: center;
}
.b2-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    z-index: 1;
}

/* 徽章分类 */
.b2-medal-cat {
    margin-bottom: 20px;
}
.b2-medal-cat h3 {
    font-size: 15px;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
    display: inline-block;
}
.b2-medal-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.b2-medal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    min-width: 80px;
}
.b2-medal-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
}
.b2-medal-item span {
    font-size: 12px;
    text-align: center;
}
.b2-medal-item.b2-medal-no-has {
    opacity: 0.4;
    filter: grayscale(100%);
}
.b2-medal-item.b2-medal-has {
    border: 2px solid #667eea;
}

/* 单个徽章详情 */
.b2-single-medal {
    text-align: center;
    padding: 30px 20px;
}
.b2-single-medal img {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
}
.b2-single-medal h3 {
    font-size: 18px;
    margin: 0 0 8px;
}
.b2-single-medal p {
    color: #666;
    margin: 0;
}
.b2-medal-time {
    color: #667eea;
    margin-top: 12px;
}
.b2-medal-notget {
    color: #f39c12;
    margin-top: 12px;
}

/* 手动授予列表 */
.b2-medal-manual-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.b2-medal-manual-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}
.b2-medal-manual-item img {
    width: 48px;
    height: 48px;
}
.b2-medal-manual-info {
    flex: 1;
}
.b2-medal-manual-info strong {
    display: block;
    margin-bottom: 4px;
}
.b2-medal-manual-info span {
    font-size: 12px;
    color: #666;
}

/* 空状态 */
.b2-medal-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}
.b2-modal-error {
    text-align: center;
    padding: 40px 20px;
    color: #e74c3c;
}
