body {
    background: #f7f8fa;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.header {
    padding: 10px 10px 8px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    font-weight: bold;
    font-size: 18px;
    color: #ea1a26;
}

.header-actions {
    position: relative;
}

.header-actions i {
    font-size: 18px;
    color: #444;
    margin-left: 20px;
    cursor: pointer;
}

.header-actions i:hover {
    color: #ea1a26;
}

.main-container {
    max-width: 100%;
    margin: 0;
    background: #fff;
    border-radius: 0;
    box-shadow: 0px 6px 40px rgba(0, 0, 0, 0.07);
    padding-bottom: 6px;
}

.cart-badge {
    position: absolute;
    right: 33px;
    top: -4px;
    background: #ea1a26;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.filter-row {
    background-color: #fff;
    padding: 6px 15px;
    margin-bottom: 6px;
}

.search-box {
    display: flex;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    flex: 1;
    padding: 7px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 20px 0 0 20px;
    font-size: 14px;
    outline: none;
}

.search-box input:focus {
    border-color: #ea1a26;
    box-shadow: 0 0 0 3px rgba(234, 26, 38, 0.2);
    outline: none;
    transition: all 0.3s ease;
}

.search-box button {
    padding: 7px 12px;
    background-color: #ea1a26;
    color: white;
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
}

.no-results {
    text-align: center;
    padding: 20px;
    color: #999;
}

.goods-list {
    padding: 0 10px 0 10px;
}

.goods-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.goods-list-item {
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 13px 0;
    box-shadow: 0 1px 8px #f0f1f5;
    margin-bottom: 18px;
}

.goods-img-wrap {
    width: 96px;
    height: 96px;
    border-radius: 14px;
    background: #f6f6fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.goods-img-wrap img {
    max-width: 84px;
    max-height: 80px;
    object-fit: contain;
}

.goods-detail {
    flex: 1;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.goods-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    line-height: 1.32;
    word-break: break-all;
}

.goods-meta {
    color: #848484;
    font-size: 13px;
}

.goods-meta .fa-star {
    color: #f5c524;
    margin-right: 3px;
}

.goods-price {
    font-size: 17px;
    font-weight: bold;
    color: #ea1a26;
    margin: 6px 0;
}

.goods-stock {
    color: #ea1a26;
    font-size: 13px;
}

.goods-actions {
    margin-left: 16px;
    display: flex;
    flex-direction: column;
    height: 84px;
    justify-content: flex-end;
}

.add-btn {
    background: #ea1a26;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px #facbcc40;
    cursor: pointer;
    transition: background .18s;
    padding: 0;
}

.add-btn:active {
    background: #d11519;
}

.notify-btn {
    background: #ededed;
    color: #b4b4b4;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    opacity: 0.66;
    cursor: not-allowed;
}

.cart-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    height: 50px;
    background: #fff;
    box-shadow: 0 -2px 18px rgba(234, 26, 39, 0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
}

.cart-price {
    font-size: 17px;
    color: #ea1a26;
    font-weight: bold;
}

.pay-btn {
    background: linear-gradient(100deg, #fb565a 0%, #ea1a26 54%, #f75d3f 100%);
    color: #fff;
    border: none;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 700;
    padding: 0 28px;
    height: 36px;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(234, 26, 39, 0.15);
    cursor: pointer;
    position: relative;
    transition: box-shadow .15s, background .2s, transform .16s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.pay-btn:active {
    transform: scale(0.96);
    box-shadow: 0 1px 5px rgba(234, 26, 39, 0.10);
}

.pay-btn:focus {
    outline: 2px solid #faacac;
}

.pay-btn:disabled {
    background: linear-gradient(100deg, #eee, #f5f5f5);
    color: #bbb;
    cursor: not-allowed;
    box-shadow: none;
    filter: grayscale(0.2);
}

.pay-btn .fa {
    margin-right: 8px;
    font-size: 1.2em;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
    display: none;
}

/* ===== 模式选择器 ===== */
.order-mode-bar {
    background: #fff;
    padding: 8px 12px;
}

.mode-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mode-channels {
    display: flex;
    gap: 0;
    background: #f2f2f2;
    border-radius: 18px;
    padding: 2px;
}

.mode-ch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    white-space: nowrap;
}

.mode-ch i {
    font-size: 12px;
}

.mode-ch.active {
    color: #fff;
    background: #ea1a26;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(234, 26, 38, 0.25);
}

.mode-ch:not(.active):hover {
    color: #666;
}

.mode-time {
    display: flex;
    gap: 0;
    background: #f2f2f2;
    border-radius: 14px;
    padding: 2px;
}

.mode-time-item {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    text-align: center;
    white-space: nowrap;
}

.mode-time-item.active {
    color: #ea1a26;
    font-weight: 600;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ===== 紧凑表单 ===== */
.mode-form {
    background: #fff;
    padding: 6px 15px 8px;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-row-sm {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.form-row-sm:last-child {
    margin-bottom: 0;
}

.form-icon-sm {
    color: #ea1a26;
    font-size: 13px;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.form-input-sm {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    background: #fafafa;
    min-width: 0;
}

.form-input-sm:focus {
    border-color: #ea1a26;
    background: #fff;
}

/* ===== 可点击的表单行（地址选择） ===== */
.form-input-clickable {
    cursor: pointer;
    user-select: none;
    color: #bbb;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.5;
}

.form-input-clickable:not(.placeholder) {
    color: #333;
}

.form-arrow-sm {
    color: #ccc;
    font-size: 12px;
    flex-shrink: 0;
}

.form-time-sep {
    color: #999;
    font-size: 14px;
    flex-shrink: 0;
}

/* ===== 日期时间 ===== */
.dt-compact {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    padding: 4px 6px;
    line-height: 1.4;
    text-align: left;
}

.dt-compact::-webkit-datetime-edit {
    padding: 0;
    text-align: left;
}

.dt-compact::-webkit-date-and-time-value {
    text-align: left;
}

.dt-compact::-webkit-calendar-picker-indicator {
    font-size: 16px;
    padding: 0;
    margin: 0;
    display: inline-block;
    opacity: 0.6;
    cursor: pointer;
}

/* ===== 邮寄地址选择抽屉 ===== */
.consignee-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 500;
    justify-content: center;
    align-items: flex-end;
}

.consignee-overlay.active {
    display: flex;
}

.consignee-sheet {
    width: 100%;
    max-width: 540px;
    max-height: 80vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    animation: sheetUp 0.3s ease;
    overflow: hidden;
}

@keyframes sheetUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.consignee-sheet-bar {
    width: 36px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 8px auto 0;
    flex-shrink: 0;
}

.consignee-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.consignee-sheet-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.consignee-sheet-close {
    width: 28px; height: 28px;
    border: none; background: #f5f5f5; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #999; font-size: 13px;
}

.consignee-sheet-close:hover { background: #eee; color: #333; }

.consignee-iframe {
    flex: 1;
    width: 100%;
    border: none;
    min-height: 400px;
}

/* ===== 商品门店标签 ===== */
.goods-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #667eea;
    background: #f0f0ff;
    padding: 1px 6px;
    border-radius: 4px;
    margin-top: 2px;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.goods-store-badge i {
    font-size: 9px;
    flex-shrink: 0;
}

/* ===== 门店选择底部面板 ===== */
.store-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 500;
    justify-content: center;
    align-items: flex-end;
}

.store-overlay.active {
    display: flex;
}

.store-sheet {
    width: 100%;
    max-width: 540px;
    max-height: 75vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    animation: sheetUp 0.3s ease;
    overflow: hidden;
}

.store-sheet-bar {
    width: 36px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 8px auto 0;
    flex-shrink: 0;
}

.store-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.store-sheet-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.store-sheet-close {
    width: 28px; height: 28px;
    border: none; background: #f5f5f5; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #999; font-size: 13px;
}

.store-sheet-close:hover { background: #eee; color: #333; }

/* 门店搜索 */
.store-search {
    display: flex;
    align-items: center;
    margin: 8px 12px 4px;
    padding: 0 10px;
    background: #f5f5f5;
    border-radius: 20px;
    flex-shrink: 0;
}

.store-search-icon {
    color: #bbb;
    font-size: 13px;
    flex-shrink: 0;
    margin-right: 8px;
}

.store-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 14px;
    outline: none;
    color: #333;
}

.store-search-input::placeholder {
    color: #bbb;
}

.store-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 12px 12px;
}

.store-card {
    display: flex;
    align-items: center;       
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.15s;
    border: 1.5px solid transparent;
}

.store-card:hover { background: #f5f5f5; }

.store-card.selected {
    border-color: #667eea;
    background: #f0f0ff;
}

.store-card-check {
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 1.5px solid #ddd;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    margin-right: 10px;
    transition: all 0.15s;
    font-size: 11px;
    color: transparent;
}

.store-card.selected .store-card-check {
    border-color: #667eea;
    background: #667eea;
    color: #fff;
}

.store-card-body {
    flex: 1;
    min-width: 0;
}

.store-card-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.store-card-addr {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    word-break: break-all;
}

.store-card-addr i {
    color: #ea1a26;
    font-size: 11px;
    margin-right: 2px;
}

.store-empty {
    text-align: center;
    padding: 40px 0;
    color: #ccc;
    font-size: 14px;
}

.store-empty i {
    font-size: 36px;
    display: block;
    margin-bottom: 10px;
}

/* ===== 时长选择 ===== */
.form-select-sm {
    flex: 0 0 auto;
    width: 72px;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid #eee;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background: #fafafa;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 24px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.form-select-sm:focus {
    border-color: #ea1a26;
    background-color: #fff;
}

.form-select-sm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-time-unit {
    color: #999;
    font-size: 13px;
    flex-shrink: 0;
}

.form-input-label {
    font-size: 14px;
    color: #666;
    flex-shrink: 0;
    min-width: 28px;
}

/* ===== 人数步进器 ===== */
/* ===== 人数步进器 ===== */
.guest-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    background: #f0f0f0;
    border-radius: 20px;
    padding: 2px;
    touch-action: manipulation;
}

.stepper-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    font-size: 16px;
    transition: all 0.15s;
    padding: 0;
    touch-action: manipulation;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.stepper-btn i {
    font-size: 10px;
    pointer-events: none;
}

.stepper-btn:active {
    background: #ea1a26;
    color: #fff;
    transform: scale(0.88);
    box-shadow: none;
}

.stepper-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    box-shadow: none;
}

.stepper-value {
    min-width: 34px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    touch-action: manipulation;
    line-height: 1;
}

/* ===== 资源选择底部面板 ===== */
.res-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 600;
    justify-content: center;
    align-items: flex-end;
}

.res-overlay.active {
    display: flex;
}

.res-sheet {
    width: 100%;
    max-width: 540px;
    max-height: 80vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    animation: sheetUp 0.3s ease;
    overflow: hidden;
}

.res-sheet-bar {
    width: 36px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 8px auto 0;
    flex-shrink: 0;
}

.res-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.res-sheet-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.res-sheet-close {
    width: 28px; height: 28px;
    border: none; background: #f5f5f5; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #999; font-size: 13px;
}

.res-sheet-close:hover { background: #eee; color: #333; }

/* 资源类型筛选 */
.res-filter-bar {
    display: flex;
    gap: 0;
    padding: 8px 16px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.res-filter-tab {
    padding: 5px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    margin-right: 6px;
}

.res-filter-tab:hover { color: #666; }

.res-filter-tab.active {
    color: #fff;
    background: #ea1a26;
    font-weight: 600;
}

/* 资源提示信息 */
.res-info-bar {
    padding: 6px 16px;
    font-size: 11px;
    color: #999;
    background: #fffbe6;
    border-bottom: 1px solid #fff3cd;
    flex-shrink: 0;
    display: none;
}

.res-info-bar.visible {
    display: block;
}

/* 资源列表 */
.res-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
}

.res-card {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.15s;
    border: 1.5px solid transparent;
    position: relative;
}

.res-card:hover { background: #f5f5f5; }

.res-card.selected {
    border-color: #ea1a26;
    background: #fff8f8;
}

.res-card.unavailable {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.res-card-check {
    width: 20px; height: 20px;
    border-radius: 4px;
    border: 1.5px solid #ddd;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-right: 10px;
    transition: all 0.15s;
    font-size: 11px;
    color: transparent;
}

.res-card.selected .res-card-check {
    border-color: #ea1a26;
    background: #ea1a26;
    color: #fff;
}

.res-card-body {
    flex: 1;
    min-width: 0;
}

.res-card-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.res-card-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.res-card-type-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

.res-card-type-badge.type-1 { background: #667eea; }
.res-card-type-badge.type-2 { background: #f5a623; }
.res-card-type-badge.type-3 { background: #7ed321; }

.res-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #888;
}

.res-card-meta i {
    font-size: 10px;
    margin-right: 2px;
    color: #bbb;
}

.res-card-capacity {
    color: #ea1a26;
    font-weight: 500;
}

.res-card-capacity.match {
    color: #52c41a;
}

.res-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
    margin-left: 8px;
}

.res-card-status {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
}

.res-card-status.available { color: #52c41a; background: #f6ffed; border: 1px solid #b7eb8f; }
.res-card-status.booked { color: #999; background: #f5f5f5; border: 1px solid #d9d9d9; }

/* 资源面板底部 */
.res-sheet-foot {
    padding: 10px 16px 14px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.res-selected-summary {
    flex: 1;
    font-size: 14px;
    color: #666;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.res-selected-summary.has-selection {
    color: #ea1a26;
    font-weight: 500;
}

.res-confirm-btn {
    padding: 8px 24px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(100deg, #fb565a, #ea1a26);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s;
    flex-shrink: 0;
}

.res-confirm-btn:active { transform: scale(0.96); }
.res-confirm-btn:disabled { background: #eee; color: #bbb; cursor: not-allowed; }

.res-empty {
    text-align: center;
    padding: 40px 0;
    color: #ccc;
    font-size: 14px;
}

.res-empty i {
    font-size: 36px;
    display: block;
    margin-bottom: 10px;
}

/* ===== 折叠/展开按钮 ===== */
.mode-toggle-btn {
    width: 28px;
    height: 28px;
    padding: 0px;
    background-clip: content-box;
    border: none;
    background: #f2f2f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    font-size: 12px;
    transition: all 0.25s;
    flex-shrink: 0;
    box-sizing: content-box;
}

.mode-toggle-btn:hover {
    background: #e8e8e8;
    color: #555;
}

.mode-toggle-btn.collapsed {
    transform: none;
}

.mode-toggle-btn.collapsed i {
    transform: rotate(180deg);
}

/* ===== 可折叠表单区域 ===== */
.order-info-collapse {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    max-height: 600px;
    opacity: 1;
}

.order-info-collapse.collapsed {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.15s ease;
}

