/* ==========================================================================
   预约报名插件 - 现代设计系统 & 移动端全响应式样式
   ========================================================================== */

:root {
    --bf-primary: #2563eb;
    --bf-primary-hover: #1d4ed8;
    --bf-primary-light: #eff6ff;
    --bf-primary-glow: rgba(37, 99, 235, 0.18);
    --bf-text-main: #0f172a;
    --bf-text-secondary: #334155;
    --bf-text-muted: #64748b;
    --bf-text-placeholder: #94a3b8;
    --bf-border: #e2e8f0;
    --bf-border-hover: #cbd5e1;
    --bf-border-focus: #3b82f6;
    --bf-bg-page: #f8fafc;
    --bf-bg-card: #ffffff;
    --bf-bg-input: #ffffff;
    --bf-bg-hover: #f1f5f9;
    --bf-radius-sm: 8px;
    --bf-radius-md: 12px;
    --bf-radius-lg: 20px;
    --bf-radius-full: 9999px;
    --bf-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --bf-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --bf-shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --bf-shadow-glow: 0 10px 25px -5px rgba(37, 99, 235, 0.3);
    --bf-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   独立前台 / 预览页面整体框架
   ========================================================================== */
body.booking-standalone-body {
    background-color: var(--bf-bg-page);
    background-image: 
        radial-gradient(at 10% 10%, rgba(37, 99, 235, 0.07) 0px, transparent 45%),
        radial-gradient(at 90% 90%, rgba(14, 165, 233, 0.06) 0px, transparent 45%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: var(--bf-text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.booking-page-container {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.booking-card-wrapper {
    width: 100%;
}

.booking-card {
    background: var(--bf-bg-card);
    border-radius: var(--bf-radius-lg);
    box-shadow: var(--bf-shadow-lg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    transition: var(--bf-transition);
}

/* 顶部品牌横幅区 */
.booking-hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f2444 100%);
    padding: 36px 36px 32px;
    color: #ffffff;
    overflow: hidden;
}

.booking-hero-decoration {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, rgba(37, 99, 235, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.booking-hero-content {
    position: relative;
    z-index: 1;
}

.booking-badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.booking-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    background: rgba(37, 99, 235, 0.22);
    color: #93c5fd;
    padding: 5px 12px;
    border-radius: var(--bf-radius-full);
    border: 1px solid rgba(147, 197, 253, 0.3);
    backdrop-filter: blur(4px);
}

.booking-pill-badge.secondary {
    background: rgba(245, 158, 11, 0.18);
    color: #fde68a;
    border-color: rgba(253, 230, 138, 0.3);
}

.booking-hero-title {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.booking-hero-desc {
    margin-top: 10px;
    font-size: 0.925rem;
    color: #cbd5e1;
    line-height: 1.65;
    white-space: pre-wrap;
}

.booking-body {
    padding: 36px;
}

/* 独立页面底部 */
.booking-page-footer {
    text-align: center;
    padding: 24px 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.booking-back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bf-text-muted);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--bf-radius-sm);
    transition: var(--bf-transition);
}

.booking-back-home:hover {
    color: var(--bf-primary);
    background-color: rgba(37, 99, 235, 0.06);
}

.booking-copyright {
    font-size: 0.775rem;
    color: var(--bf-text-placeholder);
}

/* ==========================================================================
   表单容器与通用表单元素 (兼容文章嵌入与独立页面)
   ========================================================================== */
.booking-form-container, .booking-form-container * {
    box-sizing: border-box;
}

.booking-form-container {
    width: 100%;
    margin: 0;
    font-family: inherit;
}

/* 文章嵌入模式下的边框与卡片 */
.booking-card .booking-form-container {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

body:not(.booking-standalone-body) .booking-form-container {
    padding: 32px;
    background: var(--bf-bg-card);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius-md);
    box-shadow: var(--bf-shadow-md);
}

.booking-form-header-embedded {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--bf-border);
}

.booking-form-title-embedded {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--bf-text-main);
    margin: 0 0 6px 0;
    letter-spacing: -0.015em;
}

.booking-form-intro {
    font-size: 0.925rem;
    color: var(--bf-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* 限额提示条 */
.booking-quota-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: var(--bf-radius-sm);
    color: #0369a1;
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.booking-quota-notice svg {
    flex-shrink: 0;
    color: var(--bf-primary);
}

/* 表单行与控件 */
.booking-form-group {
    margin-bottom: 22px;
    position: relative;
}

.booking-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--bf-text-secondary);
    font-size: 0.925rem;
    line-height: 1.4;
}

.booking-form-label .required {
    color: #ef4444;
    margin-left: 4px;
    font-weight: 700;
}

.booking-form-input,
.booking-form-textarea,
.booking-form-select {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--bf-text-main);
    background-color: var(--bf-bg-input);
    border: 1.5px solid var(--bf-border);
    border-radius: var(--bf-radius-sm);
    transition: var(--bf-transition);
    appearance: none;
    -webkit-appearance: none;
}

.booking-form-input::placeholder,
.booking-form-textarea::placeholder {
    color: var(--bf-text-placeholder);
}

.booking-form-input:hover,
.booking-form-textarea:hover,
.booking-form-select:hover {
    border-color: var(--bf-border-hover);
}

.booking-form-input:focus,
.booking-form-textarea:focus,
.booking-form-select:focus {
    outline: none;
    border-color: var(--bf-border-focus);
    box-shadow: 0 0 0 3px var(--bf-primary-glow);
    background-color: #ffffff;
}

.booking-form-textarea {
    min-height: 90px;
    resize: vertical;
}

.booking-form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

/* 带图标输入框 */
.booking-input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.booking-input-with-icon .booking-form-input {
    padding-right: 42px;
    cursor: pointer;
}

.booking-input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bf-primary);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-field-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--bf-text-muted);
}

.booking-field-hint.text-danger {
    color: #ef4444;
}

/* 文件/图片上传控件 */
.booking-upload-zone {
    position: relative;
    width: 100%;
}

.booking-form-file-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.booking-upload-label {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 2px dashed #cbd5e1;
    border-radius: var(--bf-radius-sm);
    background-color: #f8fafc;
    cursor: pointer;
    transition: var(--bf-transition);
    margin: 0;
}

.booking-upload-label:hover {
    border-color: var(--bf-primary);
    background-color: var(--bf-primary-light);
}

.booking-upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--bf-radius-sm);
    background-color: #ffffff;
    color: var(--bf-primary);
    box-shadow: var(--bf-shadow-sm);
    border: 1px solid var(--bf-border);
    flex-shrink: 0;
}

.booking-upload-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.booking-upload-title {
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--bf-text-main);
}

.booking-upload-file-name {
    font-size: 0.8rem;
    color: var(--bf-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-upload-file-name.has-file {
    color: var(--bf-primary);
    font-weight: 600;
}

/* 验证码行 */
.booking-form-captcha {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
}

.booking-captcha-input {
    width: 140px !important;
    flex: 0 0 140px !important;
}

.booking-captcha-img {
    height: 44px;
    cursor: pointer;
    border: 1.5px solid var(--bf-border);
    border-radius: var(--bf-radius-sm);
    transition: var(--bf-transition);
    flex-shrink: 0;
}

.booking-captcha-img:hover {
    border-color: var(--bf-primary);
    opacity: 0.9;
}

/* 提交按钮 */
.booking-form-submit-group {
    margin-top: 32px;
    margin-bottom: 0;
}

.booking-form-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 28px;
    background: var(--bf-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--bf-radius-sm);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: var(--bf-shadow-glow);
    transition: var(--bf-transition);
    touch-action: manipulation;
}

.booking-form-submit:hover {
    background: var(--bf-primary-hover);
    box-shadow: 0 12px 28px -5px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

.booking-form-submit:active {
    transform: translateY(0);
    box-shadow: var(--bf-shadow-sm);
}

.booking-form-submit:disabled {
    background: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* 提示消息框 */
.booking-form-message {
    margin-top: 20px;
    padding: 14px 18px;
    display: none;
    border-radius: var(--bf-radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
}

.booking-form-message.success {
    display: block;
    color: #065f46;
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.booking-form-message.error {
    display: block;
    color: #991b1b;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
}

/* 登录提示区 */
.booking-form-login-notice {
    padding: 36px 20px;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed var(--bf-border);
    border-radius: var(--bf-radius-md);
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.booking-form-login-icon {
    width: 64px;
    height: 64px;
    background: #e0f2fe;
    color: var(--bf-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.booking-form-login-text {
    font-size: 0.975rem;
    color: var(--bf-text-secondary);
    font-weight: 500;
    margin-bottom: 20px;
}

.booking-form-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 26px;
    background-color: var(--bf-primary);
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--bf-radius-sm);
    text-decoration: none !important;
    box-shadow: var(--bf-shadow-glow);
    transition: var(--bf-transition);
}

.booking-form-login-btn:hover {
    background-color: var(--bf-primary-hover);
    transform: translateY(-1px);
}

/* ==========================================================================
   日期与时间 Picker 弹层组件 (桌面端下拉 / 移动端底部抽屉适配)
   ========================================================================== */
.bf-picker-dropdown {
    position: absolute;
    z-index: 999999;
    background: #ffffff;
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius-md);
    box-shadow: var(--bf-shadow-lg);
    padding: 18px;
    width: 328px;
    max-width: 95vw;
    font-family: inherit;
    animation: bfFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bfFadeIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.bf-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.bf-calendar-title {
    font-weight: 700;
    color: var(--bf-text-main);
    font-size: 1.05rem;
}

.bf-calendar-nav {
    background: transparent;
    border: 1px solid var(--bf-border);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--bf-text-secondary);
    transition: var(--bf-transition);
}

.bf-calendar-nav:hover {
    background: var(--bf-bg-hover);
    color: var(--bf-primary);
    border-color: var(--bf-border-hover);
}

.bf-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--bf-text-muted);
    margin-bottom: 8px;
}

.bf-calendar-weekdays span.is-weekend {
    color: #f43f5e;
}

.bf-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.bf-day-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--bf-radius-sm);
    cursor: pointer;
    color: var(--bf-text-main);
    transition: var(--bf-transition);
    user-select: none;
    position: relative;
}

.bf-day-cell:hover:not(.disabled) {
    background-color: var(--bf-primary-light);
    color: var(--bf-primary);
}

.bf-day-cell.selected {
    background-color: var(--bf-primary) !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

.bf-day-cell.today:not(.selected) {
    border: 1.5px solid var(--bf-primary);
    color: var(--bf-primary);
    font-weight: 600;
}

.bf-day-cell.disabled {
    color: #cbd5e1;
    background-color: #f8fafc;
    cursor: not-allowed;
    text-decoration: line-through;
}

.bf-day-cell.disabled.weekend {
    background-color: #fff1f2;
    color: #fda4af;
}

.bf-day-cell.disabled.blocked {
    background-color: #f1f5f9 !important;
    color: #94a3b8 !important;
    text-decoration: line-through;
    font-weight: 500;
}

.bf-day-cell.disabled.full {
    background-color: #fef2f2 !important;
    color: #ef4444 !important;
    text-decoration: none;
    font-weight: 600;
}

.bf-day-cell.disabled.full::after {
    content: '满';
    font-size: 0.65rem;
    line-height: 1;
    position: absolute;
    bottom: 2px;
    right: 3px;
    background: #ef4444;
    color: #fff;
    padding: 1px 3px;
    border-radius: 3px;
}

.bf-calendar-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--bf-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--bf-text-muted);
}

/* 时间选择器 */
.bf-timepicker-dropdown {
    width: 340px;
}

.bf-timepicker-business-tip {
    background-color: #f8fafc;
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius-sm);
    padding: 8px 10px;
    margin-bottom: 12px;
    font-size: 0.775rem;
}

.bf-biz-tags-wrap {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 6px;
    overflow-x: auto;
    margin-bottom: 4px;
}

.bf-biz-label {
    font-weight: 700;
    color: var(--bf-text-main);
    flex-shrink: 0;
    white-space: nowrap;
}

.bf-biz-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
}

.bf-biz-tag.morning {
    background-color: #e0f2fe;
    color: #0369a1;
}

.bf-biz-tag.afternoon {
    background-color: #fef3c7;
    color: #b45309;
}

.bf-biz-note {
    color: #ef4444;
    font-size: 0.725rem;
    font-weight: 500;
}

.bf-biz-disabled {
    color: #64748b;
    font-size: 0.725rem;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bf-time-grid {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.bf-time-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.bf-time-col label {
    font-size: 0.775rem;
    font-weight: 700;
    color: var(--bf-text-muted);
    text-align: center;
    margin: 0;
}

.bf-time-select {
    height: 150px;
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius-sm);
    overflow-y: auto;
    background: #f8fafc;
    padding: 4px;
}

.bf-time-opt {
    padding: 8px 10px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.925rem;
    font-weight: 500;
    transition: var(--bf-transition);
}

.bf-time-opt:hover {
    background: var(--bf-primary-light);
    color: var(--bf-primary);
}

.bf-time-opt.active {
    background: var(--bf-primary);
    color: #ffffff;
    font-weight: 700;
}

.bf-time-opt.disabled {
    color: #cbd5e1;
    background: #f1f5f9;
    cursor: not-allowed;
    text-decoration: line-through;
}

.bf-quick-times {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.bf-quick-chip {
    padding: 5px 9px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--bf-text-secondary);
    cursor: pointer;
    border: 1px solid var(--bf-border);
    transition: var(--bf-transition);
}

.bf-quick-chip:hover {
    background: var(--bf-primary-light);
    color: var(--bf-primary);
    border-color: #93c5fd;
}

.bf-quick-chip.disabled {
    color: #cbd5e1;
    background: #f8fafc;
    border-color: #f1f5f9;
    cursor: not-allowed;
    text-decoration: line-through;
}

.bf-timepicker-btn {
    width: 100%;
    padding: 10px;
    background: var(--bf-primary);
    color: #fff;
    border: none;
    border-radius: var(--bf-radius-sm);
    font-weight: 600;
    font-size: 0.925rem;
    cursor: pointer;
    transition: var(--bf-transition);
}

.bf-timepicker-btn:hover {
    background: var(--bf-primary-hover);
}

/* ==========================================================================
   移动端沉浸式优化 (Mobile Bottom-sheet & Responsive UI)
   ========================================================================== */
@media (max-width: 640px) {
    .booking-page-container {
        padding: 12px 10px 30px;
    }

    .booking-card {
        border-radius: 16px;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    }

    .booking-hero {
        padding: 24px 20px 20px;
    }

    .booking-hero-title {
        font-size: 1.35rem;
    }

    .booking-hero-desc {
        font-size: 0.875rem;
        margin-top: 8px;
    }

    .booking-body {
        padding: 22px 18px;
    }

    body:not(.booking-standalone-body) .booking-form-container {
        padding: 20px 16px;
    }

    .booking-form-input,
    .booking-form-textarea,
    .booking-form-select {
        font-size: 16px !important; /* 避免 iOS Safari 聚焦放大 */
        padding: 11px 12px;
    }

    .booking-form-captcha {
        gap: 10px !important;
    }

    .booking-captcha-input {
        width: 110px !important;
        flex: 1 1 auto !important;
        min-width: 80px !important;
    }

    .booking-captcha-img {
        height: 42px;
    }

    .booking-form-submit {
        padding: 13px 20px;
        font-size: 1rem;
    }

    /* 移动端 Picker 升级为原生级底部抽屉弹窗 (Bottom Sheet Modal) */
    .bf-picker-dropdown {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        top: auto !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
        border: none !important;
        box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.2) !important;
        padding: 22px 20px calc(22px + env(safe-area-inset-bottom)) 20px !important;
        animation: bfSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    @keyframes bfSlideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    /* 移动端背景遮罩 */
    .bf-picker-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.5);
        backdrop-filter: blur(2px);
        z-index: 999998;
        animation: bfFadeIn 0.2s ease-out;
    }

    .bf-day-cell {
        font-size: 1rem;
        height: 42px;
    }
}

/* ==========================================================================
   微信服务号扫码登录、非微信环境拦截与关注引导组件
   ========================================================================== */
.booking-form-wx-login-card,
.booking-form-wx-only-card,
.booking-wx-subscribe-guide {
    text-align: center;
    padding: 36px 24px;
    background: #ffffff;
    border-radius: var(--bf-radius-md);
    box-shadow: 0 4px 20px rgba(7, 193, 96, 0.08);
    border: 1px solid rgba(7, 193, 96, 0.2);
    margin: 10px 0;
}

.booking-wx-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f8f0;
    color: #07c160;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.booking-wx-guide-icon {
    margin-bottom: 12px;
}

.booking-wx-card-title,
.booking-wx-guide-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
}

.booking-wx-card-desc,
.booking-wx-guide-desc {
    font-size: 0.925rem;
    color: #64748b;
    margin: 0 0 24px;
    line-height: 1.5;
}

.booking-wx-qrcode-wrapper,
.booking-wx-qr-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 18px;
}

.booking-wx-qrcode-loading {
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #64748b;
    font-size: 0.875rem;
}

.booking-wx-qrcode-img,
.booking-wx-qr-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    background: #ffffff;
}

.booking-wx-qrcode-canvas {
    line-height: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.booking-wx-qrcode-canvas img,
.booking-wx-qrcode-canvas canvas {
    display: block;
    margin: 0 !important;
    border-radius: 8px;
    background: #ffffff;
    max-width: 100%;
}

.booking-wx-qr-tip,
.booking-wx-scan-tip {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.booking-wx-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #07c160;
    display: inline-block;
    animation: bfPulse 1.5s infinite;
}

.booking-wx-spin {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top-color: #07c160;
    border-radius: 50%;
    animation: bfSpin 0.8s linear infinite;
    vertical-align: -4px;
    margin-right: 6px;
}

.booking-wx-polling-status {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 18px;
}

.booking-wx-refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: #07c160;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.925rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
    transition: all 0.2s ease;
}

.booking-wx-refresh-btn:hover {
    background: #06ad56;
    transform: translateY(-1px);
}

@keyframes bfPulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

/* ==========================================================================
   分时间段预约卡片组件 (Time Slot Cards Grid)
   ========================================================================== */
.booking-time-slots-control {
    width: 100%;
    margin-top: 4px;
}

.booking-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 6px;
}

.booking-slot-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    background: #ffffff;
    border: 1.5px solid var(--bf-border);
    border-radius: var(--bf-radius-sm);
    cursor: pointer;
    transition: var(--bf-transition);
    text-align: center;
    user-select: none;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.booking-slot-card:hover:not(.disabled) {
    border-color: var(--bf-primary);
    background-color: var(--bf-primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.12);
}

.booking-slot-card.selected {
    border-color: var(--bf-primary) !important;
    background-color: var(--bf-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}

.booking-slot-card.selected .booking-slot-card-name {
    color: #ffffff !important;
}

.booking-slot-card.selected .booking-slot-card-badge {
    background-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.booking-slot-card.disabled,
.booking-slot-card.is-full {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    cursor: not-allowed !important;
    opacity: 0.75;
    transform: none !important;
}

.booking-slot-card.disabled .booking-slot-card-name,
.booking-slot-card.is-full .booking-slot-card-name {
    color: #94a3b8 !important;
    text-decoration: line-through;
}

.booking-slot-card-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bf-text-main);
    line-height: 1.3;
    margin-bottom: 4px;
}

.booking-slot-card-badge {
    display: inline-block;
    font-size: 0.725rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 999px;
    background-color: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    line-height: 1.2;
}

.booking-slot-card-badge.unlimited {
    background-color: #f1f5f9;
    color: #64748b;
    border-color: #e2e8f0;
}

.booking-slot-card-badge.full {
    background-color: #fef2f2 !important;
    color: #ef4444 !important;
    border-color: #fecaca !important;
    font-weight: 600;
}

.btn-xs {
    padding: 2px 7px;
    font-size: 0.75rem;
    line-height: 1.4;
    border-radius: 4px;
}
