/* 直接复用 mobile/user/home/style.css 的样式 */
/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* ========== Status Bar ========== */
.status-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 24px;
    background-color: #ff3333;
    color: #fff;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    z-index: 1030;
}

#currentTime {
    font-weight: bold;
    font-size: 13px;
}

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

.status-right {
    display: flex;
    gap: 4px;
    align-items: center;
    font-size: 11px;
}

.signal {
    font-size: 11px;
}

/* ========== Quick Menu ========== */
.quick-menu {
    position: fixed;
    top: 24px;
    left: 0;
    right: 0;
    height: 48px;
    background-color: #ff3333;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 6px 12px;
    gap: 6px;
    z-index: 1025;
    overflow-x: auto;
}

.menu-item {
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    padding: 5px 12px;
    white-space: nowrap;
    font-size: 11px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    cursor: pointer;
}

.menu-right {
    margin-left: auto;
    display: flex;
    gap: 10px;
    align-items: center;
    padding-right: 4px;
    flex-shrink: 0;
}

.menu-dots,
.menu-settings {
    font-size: 16px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
}

/* ========== Feature Cards ========== */
.feature-cards {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    height: 64px;
    background-color: #ff3333;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 12px;
    z-index: 1024;
    gap: 4px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    flex: 1;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.feature-card:active {
    transform: scale(0.95);
}

.feature-card i {
    font-size: 18px;
    margin-bottom: 3px;
}

/* ========== Operation Buttons ========== */
.operation-buttons {
    position: fixed;
    top: 136px;
    left: 0;
    right: 0;
    height: 56px;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 12px;
    z-index: 1023;
    border-bottom: 1px solid #e0e0e0;
    gap: 2px;
}

.op-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    font-size: 10px;
    color: #333;
    cursor: pointer;
    transition: transform 0.2s;
}

.op-btn:active {
    transform: scale(0.95);
}

.op-icon {
    font-size: 22px;
    margin-bottom: 3px;
}

/* ========== Fuel Type Selector ========== */
.fuel-selector {
    position: fixed;
    top: 192px;
    left: 0;
    right: 0;
    height: 36px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    padding: 0 12px;
    z-index: 1022;
    gap: 6px;
    overflow-x: auto;
    border-bottom: 1px solid #e0e0e0;
}

.fuel-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 5px 10px;
    font-size: 11px;
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s;
}

.fuel-item.active {
    background-color: #ff3333;
    color: #fff;
    border-color: #ff3333;
}

.fuel-item:active {
    transform: scale(0.95);
}

.fuel-scroll-arrow {
    font-size: 16px;
    color: #999;
    margin-left: auto;
    flex-shrink: 0;
}

/* ========== Map Container ========== */
.map-container {
    position: fixed;
    top: 228px;
    left: 0;
    right: 0;
    bottom: 200px;
    width: 100%;
    z-index: 1000;
}

#amap-container {
    width: 100%;
    height: 100%;
}

/* Custom Marker Styles */
.custom-marker {
    background-color: #ff3333;
    color: white;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.custom-marker i {
    margin-right: 4px;
}

/* Info Window Styles */
.amap-info-content {
    padding: 12px;
}

.station-info {
    min-width: 200px;
}

.station-info .name {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
}

.station-info .distance {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.station-info .btn-view {
    background: linear-gradient(135deg, #ff3333 0%, #ff5555 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    width: 100%;
}

.station-info .btn-view:hover {
    opacity: 0.9;
}

/* ========== Station Info Card ========== */
.station-info-card {
    position: fixed;
    bottom: 0px;
    left: 0;
    right: 0;
    height: 200px;
    background-color: #fff;
    padding: 12px;
    z-index: 1021;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
    overflow-y: auto;
}

.station-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.station-title h3 {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin: 0 0 4px 0;
}

.station-title p {
    font-size: 11px;
    color: #999;
    margin: 0;
}

.station-distance {
    text-align: right;
}

.station-distance span {
    font-size: 12px;
    color: #ff3333;
    font-weight: bold;
}

.navigate-text {
    font-size: 12px;
    color: #ff3333;
    font-weight: bold;
}

/* ========== Vehicle and Fuel Cards ========== */
.vehicle-fuel-cards {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.fuel-card {
    flex: 1;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 12px;
}

.card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-label {
    font-size: 12px;
    color: #333;
    font-weight: bold;
}

.card-value {
    font-size: 12px;
    color: #ff3333;
    font-weight: bold;
    background-color: #fff3f3;
    padding: 2px 8px;
    border-radius: 3px;
}

/* ========== Account Info ========== */
.account-info {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 12px;
    padding: 12px;
    background-color: #f9f9f9;
    border-radius: 6px;
}

.info-section {
    flex: 1;
    text-align: center;
}

.info-title {
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
}

.info-amount {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.info-divider {
    width: 1px;
    height: 30px;
    background-color: #e0e0e0;
}

.recharge-btn {
    margin-left: 12px;
}

.btn-recharge {
    background-color: #ff3333;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-recharge:active {
    background-color: #ff1111;
}

/* ========== Discounts Section ========== */
.discounts-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.discount-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: #ff3333;
    cursor: pointer;
    transition: background-color 0.2s;
}

.discount-item:active {
    background-color: #ffe6e6;
}

.discount-item i {
    font-size: 14px;
    flex-shrink: 0;
}

.badge {
    font-size: 11px;
    color: #999;
    margin-left: auto;
}

.station-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    flex: 1;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    padding: 8px 0;
}

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

.btn-primary {
    background: linear-gradient(135deg, #ff3333 0%, #ff5555 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #ff5555 0%, #ff7777 100%);
}

.btn-tertiary {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

/* ========== Bottom Navigation ========== */
.bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1020;
}

.bottom-navbar .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    font-size: 11px;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.bottom-navbar .nav-item i {
    font-size: 18px;
    margin-bottom: 4px;
}

.bottom-navbar .nav-item.active {
    color: #ff3333;
}

.bottom-navbar .nav-item:hover {
    color: #ff3333;
    text-decoration: none;
}

/* ========== Loading ========== */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #666;
}

.loading i {
    font-size: 32px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== Scrollbar ========== */
.quick-menu::-webkit-scrollbar,
.fuel-selector::-webkit-scrollbar {
    height: 4px;
}

.quick-menu::-webkit-scrollbar-track,
.fuel-selector::-webkit-scrollbar-track {
    background: transparent;
}

.quick-menu::-webkit-scrollbar-thumb,
.fuel-selector::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}



