/* 基础样式 - 县城版预约系统 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
}

.container {
    padding: 15px;
    padding-bottom: 80px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: white;
    padding: 20px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: center;
}

.header h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.shop-image {
    margin-top: 10px;
    max-height: 150px;
    overflow: hidden;
    border-radius: 8px;
}

.shop-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 会员提示 */
.member-tip {
    background-color: #fff3e0;
    color: #e65100;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    border: 2px solid #ffb74d;
}

/* 区块样式 */
.section {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    border-left: 4px solid #d32f2f;
    padding-left: 10px;
}

/* 服务按钮 */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-btn {
    background-color: #424242;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    width: 100%;
}

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

.service-btn.selected {
    background-color: #d32f2f;
}

.service-btn .service-name {
    margin-bottom: 5px;
}

.service-btn .service-price {
    font-size: 13px;
    opacity: 0.9;
}

/* 时间选择 */
.date-group {
    margin-bottom: 15px;
}

.date-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: bold;
}

.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.time-slot {
    background-color: #424242;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.time-slot:active {
    transform: scale(0.95);
}

.time-slot.selected {
    background-color: #d32f2f;
}

.time-slot.disabled {
    background-color: #bdbdbd;
    cursor: not-allowed;
    opacity: 0.6;
}

/* 输入框 */
.input-group {
    margin-bottom: 12px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px;
    font-size: 17px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #d32f2f;
}

.input-group .send-code-btn {
    width: auto;
    padding: 15px 20px;
    margin-top: 8px;
    background-color: #1976d2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.form-select {
    width: 100%;
    padding: 15px;
    font-size: 17px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    outline: none;
}

/* 底部按钮 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 500px;
    margin: 0 auto;
    padding: 15px;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: white;
    border: none;
    padding: 18px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

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

.footer-note {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-top: 10px;
    line-height: 1.5;
}

.footer-note.center {
    text-align: center;
    padding: 20px;
}

/* 统计卡片 */
.stats-card {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: center;
}

.stats-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.stats-number {
    font-size: 28px;
}

.stats-sub {
    font-size: 15px;
    opacity: 0.9;
}

.member-stats {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

/* 行动按钮 */
.action-btn {
    width: 100%;
    background-color: #424242;
    color: white;
    border: none;
    padding: 16px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s;
}

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

/* 订单卡片 */
.order-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.order-card .order-header {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-card .order-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.order-card .order-status {
    font-size: 14px;
    color: #d32f2f;
    font-weight: bold;
}

.order-card .complete-btn {
    background-color: #d32f2f;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    float: right;
}

/* 储值按钮 */
.recharge-btn {
    width: 100%;
    background-color: #424242;
    color: white;
    border: none;
    padding: 18px;
    margin-bottom: 12px;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
}

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

.recharge-btn.selected {
    background-color: #d32f2f;
}

.recharge-amount {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.recharge-level {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.recharge-benefit {
    font-size: 13px;
    opacity: 0.8;
}

/* 弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    font-size: 22px;
    font-weight: bold;
    color: #d32f2f;
    text-align: center;
    margin-bottom: 20px;
}

.modal-body {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.modal-btn {
    width: 100%;
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: white;
    border: none;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 10px;
}

.modal-btn.cancel {
    background-color: #9e9e9e;
}

/* 加载提示 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-text {
    color: white;
    font-size: 18px;
    font-weight: bold;
}

/* 退出按钮 */
.logout-btn {
    width: 100%;
    background-color: #f44336;
    color: white;
    border: none;
    padding: 15px;
    font-size: 17px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    margin-bottom: 30px;
}

/* 响应式调整 */
@media (max-width: 360px) {
    .header h1 {
        font-size: 20px;
    }
    
    .service-btn,
    .time-slot {
        font-size: 15px;
    }
    
    .submit-btn {
        font-size: 18px;
    }
}
