/* ============================================================================
   动画和工具类样式 (Animations & Utilities)
   ============================================================================ */

/* 动画效果 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes underline {
    from { width: 0; opacity: 0; }
    to { width: 80%; opacity: 1; }
}

@keyframes pulseStrong {
    0% {
        transform: translate(10px, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    50% {
        transform: translate(10px, -50%) scale(1.3);
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        transform: translate(10px, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse-animation-strong {
    transform: translate(10px, -50%) scale(1);
    animation: pulseStrong 1.5s infinite;
    z-index: 1;
    box-shadow: 0 0 0 rgba(220, 53, 69, 0.4);
}

#billCancelOperation {
    animation: fadeInUp 0.3s ease-out;
}

/* 工具类 */
.text-danger {
    color: #dc3545;
}

.text-success {
    color: #198754;
}

.highlight {
    color: #0a58ca;
    font-weight: bold;
}

.highlight-bold {
    font-weight: bold;
    font-size: 1.1em;
}

.btn-warning {
    color: #000;
    background-color: #ffc107;
    border-color: #ffc107;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

/* 价格卡片 */
.price-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 0.5rem;
    overflow: hidden;
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.price-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.price-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.price-card .card-body {
    background-color: #fff;
}

/* 拖动条 */
.drag-handle {
    height: 5px;
    background: #adb5bd;
    cursor: ns-resize;
    margin: 5px 0;
}

/* SweetAlert 自定义样式 */
.custom-swal-popup {
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.custom-swal-popup .swal2-title {
    color: #dc3545;
    font-weight: 600;
}

.custom-swal-popup .swal2-html-container {
    text-align: left;
    margin: 1rem 0;
}

.custom-swal-popup .swal2-html-container p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.custom-swal-popup .swal2-html-container p:last-child {
    margin-bottom: 0;
}

.custom-swal-popup .swal2-html-container ul {
    list-style: none;
    padding: 0;
}

.custom-swal-popup .swal2-html-container ul li {
    margin-bottom: 8px;
    padding: 8px;
    background-color: white;
    border-radius: 4px;
    border-left: 3px solid #dc3545;
}

.custom-swal-popup .swal2-html-container ul li:last-child {
    margin-bottom: 0;
}

.custom-swal-popup .swal2-html-container hr {
    border-color: #dee2e6;
    margin: 10px 0;
}

@media (max-width: 768px) {
    .custom-swal-popup {
        width: 95% !important;
        margin: 0 auto;
    }
    
    .custom-swal-popup .swal2-html-container {
        font-size: 0.9rem;
    }
}

