/* 订单确认页样式 */

.order-confirm-page {
    background: var(--bg-secondary);
    min-height: 100vh;
    padding-bottom: 100px;
}

/* 顶部导航 */
.confirm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.confirm-header .back-btn,
.confirm-header .home-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.confirm-header .back-btn:active,
.confirm-header .home-btn:active {
    background: var(--bg-secondary);
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 订单内容（可打印区域） */
.order-content {
    background: white;
    margin: 12px 16px;
    padding: 24px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow-color);
}

/* 餐厅信息 */
.restaurant-info {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px dashed var(--border-color);
}

.restaurant-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.restaurant-slogan {
    font-size: 13px;
    color: var(--text-light);
}

/* 订单信息 */
.order-info-section {
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.info-label {
    font-size: 14px;
    color: var(--text-secondary);
    min-width: 80px;
}

.info-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.order-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.table-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    max-width: 200px;
}

.table-input:focus {
    border-color: var(--primary-color);
}

/* 分隔线 */
.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider-text {
    padding: 0 16px;
    font-size: 13px;
    color: var(--text-light);
}

.divider.dashed::before,
.divider.dashed::after {
    border-top: 1px dashed var(--border-color);
    background: none;
}

/* 菜品清单 */
.order-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.order-item:last-child {
    border-bottom: none;
}

.item-info {
    flex: 1;
}

.item-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.item-price-unit {
    font-size: 12px;
    color: var(--text-light);
}

.item-quantity {
    font-size: 14px;
    color: var(--text-secondary);
    min-width: 40px;
    text-align: center;
}

.item-subtotal {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 70px;
    text-align: right;
}

/* 金额汇总 */
.order-summary {
    padding-top: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.summary-label {
    color: var(--text-secondary);
}

.summary-value {
    color: var(--text-primary);
    font-weight: 500;
}

.total-row {
    padding-top: 12px;
    border-top: 2px solid var(--border-color);
    margin-top: 12px;
}

.total-row .summary-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.total-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

/* 底部信息 */
.order-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}

.order-footer p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.footer-tel {
    font-size: 12px !important;
}

/* 确认状态（打印时显示） */
.confirm-status {
    display: none;
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--primary-color);
}

.confirm-status.show {
    display: block;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #4CAF50;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
}

.status-icon {
    font-size: 18px;
}

.status-time {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 8px;
}

/* 底部操作栏 */
.confirm-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 16px 20px;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer-actions {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.footer-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color) !important;
}

.btn-print {
    background: #2196F3;
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(196, 18, 48, 0.3);
}

.btn-primary.confirmed {
    background: #4CAF50;
    box-shadow: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-icon {
    font-size: 16px;
}

/* 空订单提示 */
.empty-order {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 40px 20px;
}

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

.empty-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.empty-order .btn {
    padding: 14px 40px;
    border-radius: 25px;
    font-size: 15px;
}

/* 打印样式 */
@media print {
    body {
        background: white;
    }
    
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    .order-confirm-page {
        padding-bottom: 0;
    }
    
    .order-content {
        margin: 0;
        box-shadow: none;
        border-radius: 0;
    }
    
    .table-input {
        border: none;
        background: transparent;
        padding: 0;
    }
}
