/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #2563EB;
    --primary-light: #3B82F6;
    --primary-dark: #1D4ED8;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.5;
    overflow-x: hidden;
}

#app {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--gray-100);
    position: relative;
}

/* 页面通用样式 */
.page {
    display: none;
    min-height: 100vh;
    padding-bottom: 80px;
}

.page.active {
    display: block;
}

/* 首页 - 地图 */
#homePage {
    position: relative;
    padding-bottom: 100px;
}

.map-container {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 100vh;
    z-index: 1;
    background: #e5e7eb;
}

.amap-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.amap-container canvas {
    display: block;
}

/* DOM覆盖层 - 确保在最上层 */
.map-marker-overlay {
    position: absolute;
    z-index: 999 !important;
    display: none;
    pointer-events: auto;
}

/* 确保高德地图的canvas不会遮挡 */
.amap-layer,
.amap-canvas {
    z-index: 1 !important;
}

.amap-markers {
    z-index: 2 !important;
}

/* 地图控件样式覆盖 */
.amap-toolbar {
    border: none !important;
    box-shadow: var(--shadow-md) !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
}

.amap-toolbar .amap-zoomcontrol {
    border: none !important;
}

/* 定位标记 */
.location-marker {
    position: relative;
    width: 30px;
    height: 30px;
}

.location-marker .location-dot {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 3px solid white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
    z-index: 2;
}

.location-marker .location-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.2);
    animation: locationPulse 2s infinite;
    z-index: 1;
}

@keyframes locationPulse {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* 地图信息窗口 */
.parking-info-window {
    width: 280px;
    font-family: 'Noto Sans SC', sans-serif;
}

.parking-info-window .info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 10px;
}

.parking-info-window .info-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.parking-info-window .info-body {
    margin-bottom: 12px;
}

.parking-info-window .info-row {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
}

.parking-info-window .info-row span {
    font-size: 13px;
    color: var(--gray-600);
}

.parking-info-window .info-row span i {
    color: var(--primary);
    margin-right: 4px;
}

.parking-info-window .info-row strong {
    color: var(--gray-800);
}

.parking-info-window .info-address {
    font-size: 12px;
    color: var(--gray-500);
    margin: 0;
}

.parking-info-window .info-address i {
    margin-right: 4px;
}

.parking-info-window .info-actions {
    display: flex;
    gap: 8px;
}

.parking-info-window .info-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.parking-info-window .info-btn.primary {
    background: var(--primary);
    color: white;
}

.parking-info-window .info-btn.secondary {
    width: 36px;
    flex: none;
    background: var(--gray-100);
    color: var(--gray-600);
}

/* 高德地图样式覆盖 */
.amap-info-content {
    padding: 12px !important;
}

.amap-info-sharp {
    display: none !important;
}

.amap-info-contentContainer {
    background: white !important;
}

/* 搜索头部 */
.search-header {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 398px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.search-bar {
    flex: 1;
    background: white;
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
}

.search-bar i {
    color: var(--gray-400);
    font-size: 16px;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--gray-800);
}

.search-bar input::placeholder {
    color: var(--gray-400);
}

.location-btn {
    width: 48px;
    height: 48px;
    background: white;
    border: none;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    color: var(--primary);
    font-size: 18px;
    transition: all 0.2s;
}

.location-btn:active {
    transform: scale(0.95);
    background: var(--gray-100);
}

/* 快捷信息卡 */
.quick-card {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 398px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    animation: slideUp 0.3s ease;
}

.quick-card.hidden {
    display: none;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.quick-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.parking-info h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}

.status-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-tag.open {
    background: #DCFCE7;
    color: #166534;
}

.status-tag.highlight {
    background: #DBEAFE;
    color: #1E40AF;
}

.close-btn {
    width: 28px;
    height: 28px;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-500);
    font-size: 14px;
}

.quick-info-row {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--gray-600);
}

.info-item i {
    color: var(--primary);
}

.info-item strong {
    color: var(--gray-800);
}

.address {
    font-size: 13px;
    color: var(--gray-500);
}

.quick-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.btn-primary {
    flex: 1;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-outline {
    width: 44px;
    height: 44px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-600);
    font-size: 18px;
}

.btn-outline:active {
    background: var(--gray-200);
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 70px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 20px;
    cursor: pointer;
    color: var(--gray-400);
    transition: all 0.2s;
}

.nav-item i {
    font-size: 22px;
}

.nav-item span {
    font-size: 11px;
}

.nav-item.active {
    color: var(--primary);
}

/* 悬浮扫码按钮 */
.scan-float-btn {
    position: fixed;
    bottom: 90px;
    right: 16px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    cursor: pointer;
    z-index: 99;
    transition: all 0.2s;
}

.scan-float-btn span {
    font-size: 9px;
    font-weight: 500;
}

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

/* 详情页 */
.detail-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 50px 16px 24px;
    color: white;
}

.back-btn {
    position: absolute;
    top: 16px;
    left: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-header h1 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.header-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-header .status-tag {
    background: rgba(255,255,255,0.2);
    color: white;
}

.detail-content {
    padding: 16px;
    padding-bottom: 90px;
}

.detail-section {
    margin-bottom: 20px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: var(--primary);
}

/* 信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.info-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.info-card.highlight {
    background: linear-gradient(135deg, #DBEAFE, #EFF6FF);
    border: 1px solid #BFDBFE;
}

.info-card i {
    font-size: 24px;
    color: var(--primary);
}

.info-text {
    display: flex;
    flex-direction: column;
}

.info-text .label {
    font-size: 12px;
    color: var(--gray-500);
}

.info-text .value {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
}

.info-text .value small {
    font-size: 12px;
    font-weight: normal;
    color: var(--gray-500);
}

/* 车型切换 */
.vehicle-tabs {
    display: flex;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 12px;
}

.vehicle-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.vehicle-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* 价格卡片 */
.price-card {
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.price-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 10px 14px;
}

.price-period {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.price-content {
    padding: 12px 14px;
}

.price-rule {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--gray-200);
}

.price-rule:last-child {
    border-bottom: none;
}

.price-rule.highlight {
    background: #FEF3C7;
    margin: 0 -14px;
    padding: 10px 14px;
}

.rule-time {
    font-size: 14px;
    color: var(--gray-600);
}

.rule-price {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-800);
}

.rule-price.free {
    color: var(--success);
}

/* 费用预估 */
.estimate-section {
    background: white;
    border-radius: var(--radius-md);
    padding: 14px;
    margin-top: 12px;
    box-shadow: var(--shadow-sm);
}

.estimate-section h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 12px;
}

.estimate-input {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.estimate-input label {
    font-size: 14px;
    color: var(--gray-600);
}

.time-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-input button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--gray-300);
    background: white;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: var(--gray-600);
    transition: all 0.2s;
}

.time-input button:active {
    background: var(--gray-100);
}

.time-input input {
    width: 80px;
    text-align: center;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 6px;
    font-size: 14px;
}

.estimate-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.estimate-result span:first-child {
    font-size: 14px;
    color: var(--gray-600);
}

.estimate-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.estimate-price small {
    font-size: 14px;
    font-weight: normal;
}

/* 地址卡片 */
.address-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: var(--shadow-sm);
}

.address-text {
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 12px;
}

.address-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    width: 44px;
    height: 44px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-600);
    font-size: 16px;
}

.nav-btn {
    flex: 1;
}

/* 图库 */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    font-size: 12px;
    text-align: center;
}

/* 提示卡片 */
.tips-card {
    background: #FEF3C7;
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.tips-card i {
    color: var(--warning);
    font-size: 18px;
    flex-shrink: 0;
}

.tips-card p {
    font-size: 13px;
    color: #92400E;
    line-height: 1.6;
}

/* 详情页底部 */
.detail-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: white;
    padding: 12px 16px;
    display: flex;
    gap: 10px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 100;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.btn-collect, .btn-scan, .btn-navigate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-collect {
    background: var(--gray-100);
    color: var(--gray-600);
}

.btn-collect i {
    font-size: 18px;
}

.btn-collect.collected i {
    color: var(--danger);
}

.btn-scan {
    flex: 1;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-scan i {
    font-size: 20px;
}

.btn-navigate {
    background: var(--success);
    color: white;
}

.btn-navigate i {
    font-size: 18px;
}

/* 支付页面 */
.payment-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 50px 16px 24px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-header h1 {
    font-size: 18px;
    font-weight: 600;
}

.payment-content {
    padding: 16px;
    padding-bottom: 100px;
}

.payment-parking-info {
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.payment-parking-info h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.payment-parking-info p {
    font-size: 14px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 车牌输入 */
.plate-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.plate-section label {
    font-size: 14px;
    color: var(--gray-600);
    display: block;
    margin-bottom: 10px;
}

.plate-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.plate-prefix {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-800);
}

.plate-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    outline: none;
    transition: border-color 0.2s;
}

.plate-input:focus {
    border-color: var(--primary);
}

.plate-history {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
    display: none;
}

.plate-history.show {
    display: block;
}

.history-title {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.history-list {
    display: flex;
    gap: 8px;
}

.history-plate {
    padding: 8px 16px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.history-plate:active {
    background: var(--primary);
    color: white;
}

/* 费用明细 */
.fee-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.fee-section h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fee-section h3 i {
    color: var(--primary);
}

.fee-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fee-label {
    font-size: 14px;
    color: var(--gray-500);
}

.fee-value {
    font-size: 14px;
    color: var(--gray-800);
}

.fee-value.highlight {
    font-size: 20px;
    font-weight: 700;
    color: var(--danger);
}

.fee-value.highlight small {
    font-size: 14px;
    font-weight: normal;
}

/* 支付方式 */
.payment-methods {
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.payment-methods h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-methods h3 i {
    color: var(--primary);
}

.method-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.method-item.active {
    border-color: var(--primary);
    background: #EFF6FF;
}

.method-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.method-icon.wechat {
    background: #07C160;
}

.method-icon.alipay {
    background: #1677FF;
}

.method-icon.wallet {
    background: var(--warning);
}

.method-item span {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.method-item .fa-check-circle {
    color: var(--gray-300);
    font-size: 18px;
}

.method-item.active .fa-check-circle {
    color: var(--primary);
}

/* 发票 */
.invoice-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
}

.checkbox-label input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input:checked + .checkmark::after {
    content: '\2713';
    position: absolute;
    color: white;
    font-size: 12px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.invoice-tip {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 8px;
    margin-left: 30px;
}

/* 支付底部 */
.payment-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 100;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.total-amount {
    display: flex;
    flex-direction: column;
}

.total-amount span:first-child {
    font-size: 12px;
    color: var(--gray-500);
}

.total-amount .amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--danger);
}

.total-amount .amount strong {
    font-size: 14px;
}

.pay-btn {
    flex: 1;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 16px;
    border-radius: var(--radius-lg);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* 订单页面 */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 50px 16px 24px;
    color: white;
}

.page-header h1 {
    font-size: 20px;
    font-weight: 600;
}

.orders-tabs {
    display: flex;
    background: white;
    padding: 12px 16px;
    gap: 8px;
}

.order-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.order-tab.active {
    background: var(--primary);
    color: white;
}

.orders-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

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

.order-parking {
    font-size: 15px;
    font-weight: 600;
}

.order-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.order-status.completed {
    background: #DCFCE7;
    color: #166534;
}

.order-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.order-details span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.order-amount {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
}

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

.btn-small {
    padding: 6px 12px;
    border: 1px solid var(--gray-300);
    background: white;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--gray-600);
    cursor: pointer;
}

.btn-small.primary {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* 我的页面 */
.profile-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 50px 16px 30px;
    color: white;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.user-info h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.user-info p {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

.profile-content {
    padding: 16px;
}

/* 快捷功能 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s;
}

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

.action-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.action-icon.blue {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}

.action-icon.green {
    background: linear-gradient(135deg, #10B981, #059669);
}

.action-icon.orange {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.action-icon.red {
    background: linear-gradient(135deg, #EF4444, #DC2626);
}

.action-item span {
    font-size: 12px;
    color: var(--gray-700);
}

/* 菜单列表 */
.menu-list {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: all 0.2s;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:active {
    background: var(--gray-100);
}

.menu-item i:first-child {
    font-size: 18px;
    color: var(--gray-500);
}

.menu-item span:first-of-type {
    flex: 1;
    font-size: 15px;
    color: var(--gray-800);
}

.menu-item .badge {
    background: var(--danger);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

.menu-item i:last-child {
    color: var(--gray-400);
    font-size: 14px;
}

/* 模态框 */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s;
}

.modal.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    width: calc(100% - 48px);
    max-width: 380px;
    overflow: hidden;
    animation: scaleIn 0.3s;
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 扫码弹窗 */
.scan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
}

.scan-header h2 {
    font-size: 17px;
    font-weight: 600;
}

.scan-tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-100);
}

.scan-tab {
    flex: 1;
    padding: 14px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.scan-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.scan-body {
    padding: 24px;
}

.scan-content {
    display: none;
}

.scan-content.active {
    display: block;
}

.camera-frame {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    position: relative;
    background: var(--gray-900);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid white;
}

.corner.tl {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.corner.tr {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.corner.bl {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.corner.br {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.scan-line {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% { top: 10px; }
    50% { top: calc(100% - 12px); }
    100% { top: 10px; }
}

.scan-content p {
    text-align: center;
    font-size: 14px;
    color: var(--gray-500);
}

.code-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 18px;
    text-align: center;
    letter-spacing: 4px;
    margin-bottom: 16px;
    outline: none;
}

.code-input:focus {
    border-color: var(--primary);
}

/* 支付成功 */
.success-modal {
    padding: 32px 24px;
    text-align: center;
}

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

.success-modal h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.success-modal p {
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.success-actions {
    display: flex;
    gap: 12px;
}

.success-actions .btn-outline,
.success-actions .btn-primary {
    flex: 1;
}

/* Toast */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    z-index: 2000;
    animation: toastIn 0.3s;
}

.toast.hidden {
    display: none;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.toast i {
    color: var(--success);
}
