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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 750px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    padding-bottom: 20px;
}

/* 进度条 */
.progress-bar {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 1;
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
    background-color: #f0a040;
    color: #fff;
}

.progress-step.completed .step-number {
    background-color: #52c41a;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    z-index: 2;
    position: relative;
}

.step-text {
    margin-top: 8px;
    font-size: 12px;
    color: #999;
}

.progress-step.active .step-text,
.progress-step.completed .step-text {
    color: #333;
}

/* 页面内容 */
.page {
    display: none;
    padding: 20px;
}

.page.active {
    display: block;
}

.page-title {
    font-size: 20px;
    font-weight: bold;
    margin: 20px 0;
    color: #333;
}

/* 分类选择 */
.category-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.category-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn.active {
    background-color: #f0a040;
    color: #fff;
    border-color: #f0a040;
}

/* 桌位列表 */
.table-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.table-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #fff;
}

.table-card:hover {
    border-color: #f0a040;
    box-shadow: 0 2px 8px rgba(240, 160, 64, 0.2);
}

.table-card.selected {
    border-color: #f0a040;
    background-color: #fff7e6;
}

.table-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

.table-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.table-info {
    font-size: 13px;
    color: #666;
}

.table-info .available {
    color: #f0a040;
    font-weight: bold;
}

/* 时间段选择 */
.time-slot-hint {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.time-slot-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.time-slot-btn {
    padding: 15px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.time-slot-btn:hover:not(.disabled) {
    border-color: #f0a040;
}

.time-slot-btn.selected {
    background-color: #f0a040;
    color: #fff;
    border-color: #f0a040;
}

.time-slot-btn.disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* 预订信息预览 */
.booking-preview {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.preview-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.preview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.preview-item {
    font-size: 14px;
    color: #333;
}

.preview-label {
    color: #666;
    margin-right: 5px;
}

/* 表单 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.form-label .required {
    color: #ff4d4f;
    margin-left: 4px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #f0a040;
    box-shadow: 0 0 0 2px rgba(240, 160, 64, 0.2);
}

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

/* 按钮 */
.btn-group {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    border-color: #999;
}

.btn-primary {
    background-color: #f0a040;
    color: #fff;
    flex: 1;
    justify-content: center;
}

.btn-primary:hover {
    background-color: #e69030;
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-block {
    width: 100%;
}

/* 提示信息 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1000;
    display: none;
}

.toast.show {
    display: block;
}

.toast.success {
    background-color: rgba(82, 196, 26, 0.9);
}

.toast.error {
    background-color: rgba(255, 77, 79, 0.9);
}

/* 成功页面 */
.success-page {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: #52c41a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 40px;
}

.success-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.success-message {
    color: #666;
    margin-bottom: 30px;
}

.booking-info {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    margin-bottom: 30px;
}

.booking-info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.booking-info-row:last-child {
    border-bottom: none;
}

.booking-info-label {
    color: #666;
}

.booking-info-value {
    color: #333;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .table-list {
        grid-template-columns: 1fr;
    }
    
    .time-slot-list {
        grid-template-columns: 1fr;
    }
    
    .preview-content {
        grid-template-columns: 1fr;
    }
}
