/* =============================================================
   滴滴风格 - 全局重置
   ============================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
}
body {
    background: #0a0a0a;
    overflow: hidden;
    height: 100vh;
    position: relative;
    color: #fff;
}

/* =============================================================
   全屏地图
   ============================================================= */
#mapContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
#map {
    width: 100%;
    height: 100%;
}
/* 高德地图默认控件颜色适配暗色背景 */
.amap-logo,
.amap-copyright {
    display: none !important;
}

/* =============================================================
   登录遮罩
   ============================================================= */
#loginOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
#loginOverlay.hidden {
    opacity: 0;
    pointer-events: none;
}
.login-box {
    background: #1a1a1a;
    border-radius: 24px;
    padding: 40px 28px 32px;
    width: 100%;
    max-width: 380px;
    border: 1px solid #333;
}
.login-box .logo {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 6px;
}
.login-box .sub {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 24px;
}
.login-box .field {
    margin-bottom: 14px;
}
.login-box .field label {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 4px;
}
.login-box .field input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #333;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    transition: border 0.2s;
    background: #0d0d0d;
    color: #fff;
}
.login-box .field input:focus {
    border-color: #1a73e8;
}
.login-box .btn-login {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #1a73e8;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}
.login-box .btn-login:active {
    background: #1557b0;
}

/* =============================================================
   顶部毛玻璃状态栏
   ============================================================= */
.top-bar-glass {
    position: fixed;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 10px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}
.top-bar-glass > * {
    pointer-events: auto;
}
.top-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.driver-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}
.driver-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.driver-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}
.driver-id {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}
.top-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.today-income {
    font-size: 15px;
    font-weight: 700;
    color: #34a853;
    background: rgba(52, 168, 83, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(52, 168, 83, 0.2);
}
.status-btn-glass {
    padding: 6px 18px;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
    min-width: 64px;
    text-align: center;
}
.status-btn-glass.online {
    background: #34a853;
    color: #fff;
    box-shadow: 0 0 20px rgba(52, 168, 83, 0.3);
}
.status-btn-glass.online:active {
    transform: scale(0.95);
}
.status-btn-glass.offline {
    background: #ea4335;
    color: #fff;
    box-shadow: 0 0 20px rgba(234, 67, 53, 0.3);
}
.status-btn-glass.offline:active {
    transform: scale(0.95);
}

/* =============================================================
   底部毛玻璃卡片
   ============================================================= */
.bottom-card-glass {
    position: fixed;
    bottom: 68px;
    left: 12px;
    right: 12px;
    z-index: 10;
    background: rgba(20, 20, 20, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px 20px 16px 16px;
    padding: 12px 16px 16px;
    max-height: 45vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.4);
    transition: max-height 0.3s ease;
}
.bottom-card-glass .handle-bar {
    width: 44px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin: 0 auto 12px;
    flex-shrink: 0;
}
.bottom-card-glass::-webkit-scrollbar {
    width: 3px;
}
.bottom-card-glass::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* 卡片内文字颜色 */
.bottom-card-glass .section-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bottom-card-glass .section-title .badge {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
}
.bottom-card-glass .empty-state {
    text-align: center;
    padding: 24px 0;
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
}

/* 订单列表（毛玻璃风格） */
.bottom-card-glass .order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.bottom-card-glass .order-item:last-child {
    border-bottom: none;
}
.bottom-card-glass .order-item .info .addr {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}
.bottom-card-glass .order-item .info .sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}
.bottom-card-glass .order-item .status-tag {
    font-size: 11px;
    padding: 3px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}
.bottom-card-glass .order-item .status-tag.pending {
    background: rgba(245, 166, 35, 0.2);
    color: #f5a623;
}
.bottom-card-glass .order-item .status-tag.doing {
    background: rgba(26, 115, 232, 0.2);
    color: #4a8ff5;
}
.bottom-card-glass .order-item .status-tag.done {
    background: rgba(52, 168, 83, 0.2);
    color: #34a853;
}

/* 收入卡片 */
.bottom-card-glass .income-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
.bottom-card-glass .income-grid .item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
}
.bottom-card-glass .income-grid .item .num {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.bottom-card-glass .income-grid .item .label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}
.bottom-card-glass .income-list .row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
}
.bottom-card-glass .income-list .row .time {
    color: rgba(255, 255, 255, 0.4);
}
.bottom-card-glass .income-list .row .amount {
    font-weight: 500;
    color: #34a853;
}

/* 个人中心 */
.bottom-card-glass .profile-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px;
}
.bottom-card-glass .profile-row .label {
    color: rgba(255, 255, 255, 0.5);
}
.bottom-card-glass .profile-row .value {
    color: #fff;
    font-weight: 500;
}
.bottom-card-glass .logout-btn {
    width: 100%;
    padding: 12px;
    border: 1.5px solid rgba(234, 67, 53, 0.4);
    border-radius: 12px;
    background: transparent;
    color: #ea4335;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.2s;
}
.bottom-card-glass .logout-btn:active {
    background: rgba(234, 67, 53, 0.15);
}

/* 按钮（毛玻璃风格） */
.bottom-card-glass .btn-glass {
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}
.bottom-card-glass .btn-glass.primary {
    background: #1a73e8;
    color: #fff;
}
.bottom-card-glass .btn-glass.primary:active {
    background: #1557b0;
}
.bottom-card-glass .btn-glass.success {
    background: #34a853;
    color: #fff;
}
.bottom-card-glass .btn-glass.success:active {
    background: #2d9248;
}
.bottom-card-glass .btn-glass.danger {
    background: #ea4335;
    color: #fff;
}
.bottom-card-glass .btn-glass.danger:active {
    background: #c62828;
}
.bottom-card-glass .btn-glass.warning {
    background: #fbbc04;
    color: #202124;
}
.bottom-card-glass .btn-glass.warning:active {
    background: #e5a800;
}

/* Tab 切换按钮（毛玻璃） */
.bottom-card-glass .order-tab-btn {
    flex: 1;
    padding: 8px 0;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}
.bottom-card-glass .order-tab-btn.active {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
}
.bottom-card-glass .order-tab-btn:active {
    transform: scale(0.96);
}

/* 接单按钮 */
.bottom-card-glass .accept-btn {
    padding: 4px 16px;
    border: none;
    border-radius: 8px;
    background: #34a853;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.bottom-card-glass .accept-btn:active {
    transform: scale(0.95);
}
.bottom-card-glass .action-btn {
    padding: 4px 12px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.bottom-card-glass .action-btn:active {
    transform: scale(0.95);
}

/* 输入框（毛玻璃风格） */
.bottom-card-glass input[type="text"] {
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
    width: 100%;
}
.bottom-card-glass input[type="text"]:focus {
    border-color: #1a73e8;
}
.bottom-card-glass input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* =============================================================
   底部毛玻璃 Tab
   ============================================================= */
.bottom-nav-glass {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4px 0 10px;
    height: 64px;
    align-items: center;
}
.bottom-nav-glass .nav-item-glass {
    flex: 1;
    text-align: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 4px 0;
    transition: color 0.2s;
    position: relative;
}
.bottom-nav-glass .nav-item-glass .icon {
    font-size: 22px;
    display: block;
    margin-bottom: 2px;
}
.bottom-nav-glass .nav-item-glass .label {
    font-size: 10px;
}
.bottom-nav-glass .nav-item-glass.active {
    color: #1a73e8;
}

/* =============================================================
   Toast
   ============================================================= */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    color: #fff;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    white-space: nowrap;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.toast.show {
    opacity: 1;
}

/* =============================================================
   页面初始隐藏（防闪烁）
   ============================================================= */
#app-wrapper {
    opacity: 0;
    transition: opacity 0.3s ease;
}
#app-wrapper.show {
    opacity: 1;
}

/* =============================================================
   响应式微调
   ============================================================= */
@media (max-width: 420px) {
    .top-bar-glass {
        padding: 8px 12px;
        top: 10px;
        left: 10px;
        right: 10px;
    }
    .driver-avatar {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
    .driver-name {
        font-size: 13px;
    }
    .today-income {
        font-size: 12px;
        padding: 2px 10px;
    }
    .status-btn-glass {
        font-size: 12px;
        padding: 4px 14px;
        min-width: 56px;
    }
    .bottom-card-glass {
        bottom: 62px;
        left: 10px;
        right: 10px;
        padding: 10px 14px 14px;
        max-height: 40vh;
    }
    .bottom-nav-glass {
        height: 58px;
    }
    .bottom-nav-glass .nav-item-glass .icon {
        font-size: 20px;
    }
    .bottom-card-glass .income-grid .item .num {
        font-size: 16px;
    }
}