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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
    font-size: 14px;
}

.container {
    width: 375px;
    margin: 0 auto;
    min-height: 100vh;
    padding-bottom: 100px;
    background: linear-gradient(to bottom, #a0472a 20%, #c6542f);
}

/* 头部 */
.header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    cursor: pointer;
}

.header-right {
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* 地图区域 */
.map-container {
    margin: 15px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

#map {
    width: 100%;
    height: 300px;
    position: relative;
}

.center-pin {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -100%);
    font-size: 32px;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, -100%); }
    50% { transform: translate(-50%, -110%); }
}

/* 订单信息 */
.order-info {
    padding: 15px;
    background: white;
}

.location-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.location-text {
    color: #9b0544;
    font-size: 13px;
}

.location-text.placeholder {
    color: #ff0000;
}

.time-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.time-stepper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
}

.stepper-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 18px;
}

.stepper-value {
    min-width: 40px;
    text-align: center;
}

/* 等级选择 */
.level-section {
    padding: 15px 0;
}

.level-title {
    padding: 10px 0;
    font-weight: 600;
}

.level-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.level-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.level-option.active {
    background: #fff1f0;
    border: 1px solid #9b0544;
}

.level-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
}

.level-option.active .level-radio {
    border-color: #9b0544;
}

.level-option.active .level-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #9b0544;
    border-radius: 50%;
}

/* 确认按钮 */
.confirm-btn {
    margin: 20px 15px;
    width: calc(100% - 30px);
    height: 50px;
    background: rgb(97, 42, 9);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.confirm-btn:active {
    opacity: 0.8;
}

/* 进行中订单 */
.ongoing-section {
    margin: 20px 15px;
}

.section-title {
    color: white;
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    margin-bottom: 15px;
}

.order-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(155, 5, 68, 0.08);
}

.order-location {
    color: #666;
    font-size: 14px;
}

.order-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-badge {
    background: linear-gradient(90deg, #c6542f 60%, #a0472a 100%);
    color: white;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 13px;
}

.arrow {
    color: #c6542f;
    font-size: 18px;
}

/* 掼蛋师列表 */
.guandan-section {
    margin: 20px 15px;
}

.user-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.user-card {
    width: calc(50% - 7.5px);
    background: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.user-info {
    padding: 10px;
    background: #a0472a;
    text-align: center;
    color: white;
}

.user-level {
    font-size: 12px;
    margin-bottom: 5px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.user-price {
    font-size: 13px;
}

.empty-text {
    text-align: center;
    padding: 40px;
    color: white;
}

/* 呼叫中状态 */
.calling-status {
    background: white;
    margin: 20px 15px;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(155, 5, 68, 0.08);
}

.status-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.order-info-text {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

.cancel-btn {
    margin-top: 20px;
    width: 80%;
    height: 45px;
    background: #e54d42;
    color: white;
    border: none;
    border-radius: 22px;
    font-size: 16px;
    cursor: pointer;
}

.cancel-btn:active {
    opacity: 0.8;
}

/* 底部导航栏 */
.tabbar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 375px;
    height: 60px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.tabbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 5px 0;
}

.tabbar-icon,
.tabbar-icon-active {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.tabbar-icon-active {
    display: none;
}

.tabbar-item.active .tabbar-icon {
    display: none;
}

.tabbar-item.active .tabbar-icon-active {
    display: block;
}

.tabbar-text {
    font-size: 11px;
    color: #7A7E83;
}

.tabbar-item.active .tabbar-text {
    color: #3cc51f;
}
