/* 分类筛选导航 */
.service-filter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.filter-btn {
    padding: 8px 15px;
    background: #f5f5f5;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active {
    background: #db8c87;
    color: white;
}

/* 服务网格布局 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.services-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* 服务卡片 */
.service-card {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.add-to-cart {
    display: block;
    width: 100%;
    padding: 8px;
    margin-top: 15px;
    background: #db8c87;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 待预约浮动按钮 */
.booking-cart-floater {
    position: fixed;
    bottom: 30px;
    left: calc(50% - min(var(--container-width, 1200px) / 2, 50vw));
    background: #db8c87;
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.booking-cart-floater a {
    color: white;
    text-decoration: none;
}

.cart-count {
    color: #db8c87;
    background: #fff;
    padding: 3px 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.cart-count.limit-reached {
    color: #db8c87;
    font-weight: bold;
    animation: pulse 1s infinite;
}

/* 加载中和禁用状态 */
.add-to-cart.loading {
    opacity: 0.7;
    pointer-events: none;
}

.add-to-cart.loading:after {
    content: '...';
}

/* Toast提示样式 */
.bs-toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 12px 24px;
    background: #333;
    color: white;
    border-radius: 4px;
    z-index: 9999;
    animation: fadeIn 0.3s;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bs-toast svg {
    margin-right: 8px;
    flex-shrink: 0;
}

.bs-toast-success {
    background: #28a745;
}

.bs-toast-error {
    background: #dc3545;
}

.bs-toast-warning {
    background: #ffc107;
    color: #333;
}

.bs-toast-success span,
.bs-toast-error span,
.bs-toast-success strong,
.bs-toast-error strong {
    color: white;
}

.bs-toast-warning span,
.bs-toast-warning strong {
    color: #333;
}

.bs-toast-info {
    background: #17a2b8;
}



/* 确认对话框样式 */
.bs-confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.bs-confirm-dialog.active {
    opacity: 1;
    visibility: visible;
}

.bs-confirm-content {
    background: white;
    padding: 24px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.bs-confirm-message {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.bs-confirm-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.bs-confirm-button {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-weight: 500;
}

.bs-confirm-cancel {
    background: #f8f9fa;
    color: #333;
}

.bs-confirm-ok {
    background: #dc3545;
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

#booking-form-container>h2 {
    margin: 10px 0;
}


@media (max-width: 1200px) {
    .booking-cart-floater {
        left: 20px;
    }
}