/* 我的页 — 紧凑签到 / 头像 / 我的算法 */
.my-avatar-wrap {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    margin-right: 12px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    display: block;
}

.my-user-avatar-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.95);
    object-fit: cover;
    display: none;
}

.my-user-avatar-img.show {
    display: block;
}

.my-user-avatar-fallback {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.my-user-avatar-fallback.hide {
    display: none;
}

.my-avatar-edit {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.signin-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.signin-compact-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.signin-compact-meta {
    font-size: 12px;
    color: #888;
}

.signin-compact-meta strong {
    color: #ff9800;
}

.signin-compact-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.signin-compact-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.signin-compact-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.signin-compact-link {
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    color: #666;
    font-size: 12px;
    cursor: pointer;
}

.my-alg-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.my-alg-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 8px;
}

.my-alg-item:last-child {
    border-bottom: none;
}

.my-alg-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.my-alg-meta {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.my-alg-acc {
    font-size: 15px;
    font-weight: 700;
    color: #10b981;
    white-space: nowrap;
}

.my-alg-empty {
    text-align: center;
    padding: 16px 8px;
    color: #999;
    font-size: 13px;
}

.my-alg-more {
    display: block;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    background: #f5f7ff;
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.my-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 12px;
    margin: 16px 0 8px;
}

.my-section-head .my-section-title {
    margin: 0;
}

.my-user-card .d-flex.align-items-center {
    align-items: flex-start !important;
}

@media (max-width: 480px) {
    .signin-compact {
        flex-wrap: wrap;
    }
    .signin-compact-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
