/* ============================================================
   产品预约表单
   主题色：主色 #BEFF50、背景 #F5F5EB、文字 #14140F
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #F5F5EB;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #14140F;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

#product-booking-box {
    min-height: 100vh;
    background-color: #F5F5EB;
}

/* ========== 顶部导航栏 ========== */
.nav-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #F5F5EB;
    height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-back {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.back-icon {
    font-size: 28px;
    color: #14140F;
    font-weight: 300;
}

.nav-title {
    font-size: 17px;
    font-weight: 600;
    color: #14140F;
}

/* ========== 加载状态 ========== */
.loading-state {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}

/* ========== 表单内容区 ========== */
.booking-content {
    padding: 0 16px 40px;
}

/* ========== 空状态提示 ========== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-text {
    font-size: 16px;
    font-weight: 600;
    color: #14140F;
    margin-bottom: 8px;
}

.empty-hint {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
    margin-bottom: 24px;
}

.empty-back-btn.van-button {
    min-width: 120px;
    height: 40px;
    border: none !important;
    border-radius: 20px !important;
    background-color: #BEFF50 !important;
    color: #14140F !important;
    font-size: 14px !important;
    font-weight: 600;
}

/* ========== 产品信息卡片 ========== */
.product-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* ========== 表单卡片（与产品卡片风格一致）========== */
.form-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.form-card .form-group-title {
    margin: 0 0 4px;
}

.form-card .booking-field:first-of-type {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.form-card .booking-field:last-of-type {
    border-bottom: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.product-card-label {
    font-size: 11px;
    color: #999;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.product-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #14140F;
    line-height: 1.4;
}

.product-card-price {
    margin-top: 8px;
    font-size: 22px;
    font-weight: 700;
    color: #e63946;
}

.product-card-price .payment-type {
    font-size: 11px;
    color: #999;
    margin-right: 6px;
    white-space: nowrap;
}

.product-card-price .price-symbol {
    font-size: 14px;
    font-weight: 600;
}

.product-card-price .price-suffix {
    font-size: 12px;
    color: #e63946;
    margin-left: 2px;
}

/* ========== 表单分组标题 ========== */
.form-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #14140F;
    margin: 24px 2px 4px;
    letter-spacing: 0.5px;
}

.form-group-title::before {
    content: '';
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background-color: #BEFF50;
}

.form-group-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.06), transparent 80%);
}

/* ========== 表单字段 ========== */
.booking-field {
    background: #fff !important;
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 14px 4px !important;
}

.booking-field:last-of-type {
    border-bottom: none;
}

/* 门店地址（附属信息，字号略小，支持换行） */
.address-field {
    display: flex;
    align-items: flex-start;
    padding: 14px 4px !important;
}

.address-field .field-label {
    flex: 0 0 auto;
    margin-right: 14px;
}

.address-text {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    word-break: break-all;
    flex: 1;
}

.booking-field:focus-within {
    border-bottom-color: #BEFF50;
}

.booking-field .van-field__label {
    width: auto !important;
    margin-right: 14px;
    flex: 0 0 auto;
}

.field-label {
    color: #14140F !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 24px;
    white-space: nowrap;
}

.booking-field .van-field__control,
.booking-field input {
    color: #14140F !important;
    font-size: 14px;
}

.booking-field .van-field__control::placeholder {
    color: #bbb;
}

/* ========== 验证码按钮 ========== */
.code-btn.van-button {
    background: #BEFF50 !important;
    color: #14140F !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 12px;
    height: 32px;
    padding: 0 14px;
    font-weight: 600;
}

.code-btn.van-button:active {
    transform: translateY(1px);
}

.code-btn.van-button[disabled],
.code-btn.van-button.van-button--disabled {
    background: #d5d5c8 !important;
    color: #999 !important;
}

/* ========== 提交按钮 ========== */
.submit-btn.van-button {
    display: block;
    width: 100%;
    height: 50px;
    margin: 32px 0 16px;
    border: none !important;
    border-radius: 25px !important;
    background-color: #BEFF50 !important;
    color: #14140F !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 2px;
    box-shadow: 0 4px 14px -4px rgba(190, 255, 80, 0.5);
    transition: transform 0.15s ease, box-shadow 0.25s ease;
}

.submit-btn.van-button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 6px -2px rgba(190, 255, 80, 0.4);
}

/* ========== Vant Picker 润色 ========== */
.van-picker__toolbar {
    height: 48px;
}

.van-picker__title {
    font-size: 14px;
    font-weight: 600;
    color: #14140F;
}

.van-picker__cancel {
    color: #888;
    font-size: 14px;
    padding: 0 18px;
}

.van-picker__confirm {
    color: #14140F;
    font-size: 14px;
    font-weight: 700;
    padding: 0 18px;
}
