/* ===== 交互状态 ===== */
button.loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
    pointer-events: none;
}

button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

button[data-action="favorite"] {
    transition: transform 0.2s ease, background-color 0.2s ease;
}

button[data-action="favorite"]:active {
    transform: scale(0.95);
}

button[data-action="favorite"]:disabled {
    cursor: not-allowed;
}
