:root { --bg-primary: #ffffff; --bg-secondary: #f5f5f7; --bg-card: #ffffff; --text-primary: #1d1d1f; --text-secondary: #6e6e73; --text-tertiary: #86868b; --border-color: #e5e5ea; --accent-color: #0071e3; --accent-hover: #0077ed; --accent-soft: rgba(0, 113, 227, 0.10); --success: #34c759; --success-press: #2fb950; --warning: #ff9f0a; --danger: #ff3b30; --error-color: #ff3b30; --overlay: rgba(0, 0, 0, 0.45); --shadow-sm: 0 2px 8px rgba(0,0,0,0.08); --shadow-md: 0 4px 20px rgba(0,0,0,0.12); --shadow-lg: 0 8px 32px rgba(0,0,0,0.16); --shadow-up: 0 -4px 20px rgba(0,0,0,0.08); --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 20px; --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); --ease-spring: cubic-bezier(0.34, 1.3, 0.5, 1); } @media (prefers-color-scheme: dark) { :root { --bg-primary: #000000; --bg-secondary: #1c1c1e; --bg-card: #2c2c2e; --text-primary: #f5f5f7; --text-secondary: #98989d; --text-tertiary: #636366; --border-color: #38383a; --accent-color: #0a84ff; --accent-hover: #409cff; --accent-soft: rgba(10, 132, 255, 0.16); --success: #30d158; --success-press: #28bd4d; --warning: #ff9f0a; --danger: #ff453a; --error-color: #ff453a; --overlay: rgba(0, 0, 0, 0.6); --shadow-sm: 0 2px 8px rgba(0,0,0,0.3); --shadow-md: 0 4px 20px rgba(0,0,0,0.4); --shadow-lg: 0 8px 32px rgba(0,0,0,0.5); --shadow-up: 0 -4px 20px rgba(0,0,0,0.4); } } * { margin: 0; padding: 0; box-sizing: border-box; } button { font-family: inherit; } button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; } ::selection { background: var(--accent-soft); } /* 细滚动条(弹窗内容区) */ .auth-content::-webkit-scrollbar, .bell-content::-webkit-scrollbar, .share-content::-webkit-scrollbar, .devices-list::-webkit-scrollbar, .packages-list::-webkit-scrollbar, .version-log::-webkit-scrollbar { width: 4px; } .auth-content::-webkit-scrollbar-thumb, .bell-content::-webkit-scrollbar-thumb, .share-content::-webkit-scrollbar-thumb, .devices-list::-webkit-scrollbar-thumb, .packages-list::-webkit-scrollbar-thumb, .version-log::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; } html, body { height: 100%; overflow: hidden; -webkit-overflow-scrolling: touch; } body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; background: var(--bg-primary); color: var(--text-primary); display: flex; flex-direction: column; transition: background var(--transition), color var(--transition); position: fixed; width: 100%; height: 100%; } /* Header */ .header { background: var(--bg-secondary); background: color-mix(in srgb, var(--bg-secondary) 86%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; z-index: 100; border-bottom: 1px solid var(--border-color); } .header-title { font-size: 17px; font-weight: 600; letter-spacing: -0.3px; } .header-sub { font-size: 12px; color: var(--text-secondary); margin-top: 2px; } .header-right { display: flex; align-items: center; gap: 10px; text-align: right; } .refresh-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--ui-acrylic-soft); border: 1px solid var(--ui-line-strong); color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; box-shadow: var(--shadow-sm); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); } .refresh-btn:hover { background: var(--ui-acrylic); color: var(--accent-color); } .refresh-btn:active { transform: scale(0.95); } .bell-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--ui-acrylic-soft); border: 1px solid var(--ui-line-strong); color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; box-shadow: var(--shadow-sm); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); } .bell-btn:hover { background: var(--ui-acrylic); color: #ff9500; } .bell-btn:active { transform: scale(0.95); } .refresh-btn.spinning svg { animation: spin 0.8s linear infinite; } .auth-btn { padding: 6px 14px; border-radius: 16px; background: var(--accent-color); border: none; color: var(--accent-contrast); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; } .auth-btn:hover { background: var(--accent-hover); } /* 登录后的头像样式 */ .auth-btn.logged-in { padding: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--ui-acrylic-soft); background-image: none; border: 1px solid var(--ui-line-strong); display: flex; align-items: center; justify-content: center; color: var(--text-primary); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-sm); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); } .auth-btn.logged-in:hover { transform: scale(1.05); background: var(--ui-acrylic); border-color: var(--ui-line-strong); box-shadow: var(--shadow-md); } .auth-btn.logged-in .avatar-text { display: block; } .auth-btn.logged-in .btn-text { display: none; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .header-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--ui-acrylic-soft); padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: 500; box-shadow: var(--shadow-sm); border: 1px solid var(--ui-line-strong); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); } .header-badge .dot { width: 8px; height: 8px; background: #34c759; border-radius: 50%; animation: pulse 2s infinite; } /* 数据偏旧:时间戳标黄(超过采集间隔阈值时 JS 加 stale 类) */ .header-badge #update-time.stale { color: #b45309; font-weight: 600; } .header-badge #update-time.stale::after { content: " ·偏旧"; font-size: 11px; font-weight: 500; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } /* 地图容器 */ #map-container { flex: 1; position: relative; overflow: hidden; touch-action: pan-x pan-y; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; } #baidu_map { width: 100%; height: 100%; touch-action: none; } /* 加载遮罩 */ .loading-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg-primary); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 50; transition: opacity 0.4s, background var(--transition); } .loading-overlay.hidden { opacity: 0; pointer-events: none; } .loading-spinner { width: 36px; height: 36px; border: 3px solid var(--border-color); border-top-color: var(--accent-color); border-radius: 50%; animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .loading-text { margin-top: 14px; font-size: 14px; color: var(--text-secondary); } /* 统计卡片 */ .stats-card { position: absolute; top: 14px; left: 14px; background: var(--bg-card); background: color-mix(in srgb, var(--bg-card) 88%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); padding: 12px; border-radius: var(--radius-md); box-shadow: var(--shadow-md); z-index: 50; border: 1px solid var(--border-color); } .stats-number { font-size: 28px; font-weight: 700; color: var(--text-primary); line-height: 1; } .stats-label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; } .stats-analysis-btn { padding: 6px 10px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 6px; font-size: 12px; color: var(--accent-color); cursor: pointer; display: flex; align-items: center; gap: 4px; width: 100%; justify-content: center; transition: all 0.2s; } .stats-analysis-btn:hover { background: var(--accent-color); color: var(--accent-contrast); border-color: var(--accent-color); } /* 图例 */ .legend { position: absolute; top: 14px; right: 14px; background: var(--bg-card); background: var(--ui-acrylic); -webkit-backdrop-filter: blur(20px) saturate(1.35); backdrop-filter: blur(20px) saturate(1.35); border-radius: var(--radius-md); padding: 12px 14px; z-index: 50; box-shadow: var(--shadow-md); border: 1px solid var(--ui-line-strong); } .legend-title { font-size: 11px; font-weight: 600; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; } .legend-item { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; } .legend-item:last-child { margin-bottom: 0; } .legend-ring { width: 14px; height: 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bg-secondary); } .legend-ring::after { content: ''; width: 8px; height: 8px; border-radius: 50%; } .legend-ring.available::after { background: #34c759; } .legend-ring.used::after { background: #ff2d55; } .legend-ring.locked::after { background: #ff9f0a; } .legend-ring.reserved::after { background: #5856D6; } .legend-ring.low::after { background: #8e8e93; } .legend-text { font-size: 13px; color: var(--text-secondary); } .locate-btn { width: 100%; padding: 8px 12px; background: var(--accent-color); color: var(--accent-contrast); border: none; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all var(--transition); /* 图标与文字垂直居中对齐(SVG 默认按基线排会错位) */ display: flex; align-items: center; justify-content: center; gap: 5px; } .locate-btn:active { transform: scale(0.96); background: var(--accent-hover); } .locate-btn:disabled { background: var(--text-tertiary); cursor: not-allowed; } /* 找最近的车:独立悬浮(右下角),材质与四角元素统一(轻质亚克力) */ .locate-fab { position: fixed; right: 14px; bottom: 96px; width: auto; padding: 8px 14px; border-radius: 18px; z-index: 150; background: var(--ui-header-acrylic, var(--bg-card)); border: 1px solid var(--ui-line-strong); color: var(--text-secondary); opacity: .92; box-shadow: var(--ui-shadow-sm, var(--shadow-sm)); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); transition: opacity .2s, transform .15s; } .locate-fab:hover { opacity: 1; } .locate-btn.locate-fab:active { background: var(--ui-header-acrylic, var(--bg-card)); transform: scale(0.96); } /* 手机端:只保留图标,正圆形 */ @media (max-width: 768px) { .locate-fab { width: 34px; height: 34px; padding: 0; border-radius: 50%; justify-content: center; } .locate-fab-label { display: none; } } /* 底部扫码栏 */ .scan-bar { position: absolute; bottom: 0; left: 0; right: 0; background: var(--bg-card); padding: 16px 20px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 12px; align-items: center; z-index: 90; border-top: 1px solid var(--border-color); box-shadow: var(--shadow-up); touch-action: none; } .scan-input { flex: 1; padding: 14px 16px; border: 1.5px solid var(--border-color); border-radius: var(--radius-md); font-size: 15px; background: var(--bg-secondary); color: var(--text-primary); outline: none; transition: all var(--transition); } .scan-input::placeholder { color: var(--text-tertiary); } .scan-input:focus { border-color: var(--accent-color); background: var(--bg-card); } .scan-btn { padding: 14px 22px; background: var(--accent-color); color: var(--accent-contrast); border: none; border-radius: var(--radius-md); font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all var(--transition); } .scan-btn:active { transform: scale(0.96); background: var(--accent-hover); } /* 车辆详情卡片 */ .bike-card { position: absolute; bottom: 0; left: 0; right: 0; background: var(--bg-card); border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding: 20px; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); box-shadow: var(--shadow-lg); z-index: 200; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid var(--border-color); border-bottom: none; touch-action: pan-x; } .bike-card.show { transform: translateY(0); } /* 遮罩层 */ .card-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.3); z-index: 199; opacity: 0; pointer-events: none; transition: opacity 0.3s; } .card-overlay.show { opacity: 1; pointer-events: auto; } .card-handle { width: 36px; height: 5px; background: var(--border-color); border-radius: 3px; margin: 0 auto 16px; } .bike-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; } .bike-card-header-btns { display: flex; align-items: center; gap: 8px; } .bike-card-find-btn { padding: 6px 12px; border-radius: var(--radius-md); background: var(--bg-secondary); border: 1.5px solid var(--border-color); color: var(--text-primary); cursor: pointer; display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; transition: all var(--transition); } .bike-card-find-btn:active { background: var(--border-color); transform: scale(0.95); } .bike-card-title { display: flex; align-items: center; gap: 8px; } .bike-type-badge { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; color: white; background: linear-gradient(135deg, #ff9f0a, #ff6b00); } /* 车辆类型角标:红车=柔和砖红 / 大车=橙 / 小车=蓝灰 */ .bike-type-badge.kind-red { background: linear-gradient(135deg, #C07A72, #A9554C); } .bike-type-badge.kind-big { background: linear-gradient(135deg, #ff9f0a, #ff6b00); } .bike-type-badge.kind-small { background: linear-gradient(135deg, #7C93A8, #5C7387); } .bike-code { font-size: 22px; color: var(--text-primary); font-weight: 700; } .bike-card-close { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-secondary); border: none; font-size: 14px; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition); } .bike-card-close:hover { background: var(--border-color); color: var(--text-primary); } .bike-card-close:active { transform: scale(0.92); } .bike-electric-ring { display: none; } /* 卡片中部:左「距离/步行」+ 右「电量/状态」两张等宽卡片 */ .bike-card-meta { display: flex; gap: 10px; margin-bottom: 20px; } .bike-meta-card { flex: 1 1 0; min-width: 0; display: flex; background: var(--bg-secondary); border-radius: var(--radius-md); padding: 12px 14px; } .bike-meta-left { flex-direction: column; justify-content: center; gap: 3px; } .bike-meta-left[hidden] { display: none; } .bike-meta-distance { font-size: 15px; font-weight: 700; color: var(--text-primary); line-height: 1.25; } .bike-meta-walk { font-size: 12.5px; color: var(--text-secondary); line-height: 1.25; } .bike-meta-right { align-items: center; justify-content: space-between; gap: 8px; } .bike-battery-wrap { display: flex; align-items: center; gap: 8px; min-width: 0; } /* 状态块不许被挤换行(窄屏出现过「空/闲」竖排) */ .bike-status-wrap { flex-shrink: 0; white-space: nowrap; } .battery-svg-wrap svg { display: block; max-width: 100%; } /* 窄屏(≤380px):电量与状态各让一点,保住一行 */ @media (max-width: 380px) { .bike-card-meta { gap: 8px; } .bike-meta-card { padding: 10px 12px; } .bike-meta-right { gap: 6px; } .battery-svg-wrap svg { width: 40px; height: 21px; } .battery-label { font-size: 14px; } .bike-meta-distance { font-size: 14px; } .bike-meta-walk { font-size: 12px; } .bike-status-value { font-size: 14px; } } .battery-svg-wrap { position: relative; display: flex; align-items: center; } .battery-label { font-size: 15px; font-weight: 700; color: var(--text-primary); } .bike-status-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; } .bike-status-label { font-size: 11px; color: var(--text-tertiary); } .bike-status-value { font-size: 15px; font-weight: 700; color: var(--text-primary); } .bike-status-value.highlight { color: #34c759; } .bike-status-value.warning { color: #ff9f0a; } .bike-info-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 20px; } .bike-info-item { background: var(--bg-secondary); border-radius: var(--radius-md); padding: 12px; text-align: center; } .bike-info-label { font-size: 11px; color: var(--text-tertiary); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.3px; } .bike-info-value { font-size: 15px; font-weight: 600; color: var(--text-primary); } .bike-info-value.highlight { color: #34c759; } .bike-info-value.warning { color: #ff9f0a; } .bike-action-btn { width: 100%; padding: 16px; background: var(--accent-color); color: var(--accent-contrast); border: none; border-radius: var(--radius-md); font-size: 17px; font-weight: 600; cursor: pointer; transition: all var(--transition); } .bike-action-btn:active { transform: scale(0.98); background: var(--accent-hover); } .bike-find-btn { width: 100%; padding: 14px; margin-top: 10px; background: var(--bg-secondary); color: var(--text-primary); border: 1.5px solid var(--border-color); border-radius: var(--radius-md); font-size: 16px; font-weight: 600; cursor: pointer; transition: all var(--transition); } .bike-find-btn:active { transform: scale(0.98); background: var(--border-color); } .bike-find-btn:disabled { opacity: 0.6; cursor: not-allowed; } .toast { position: fixed; top: 80px; left: 50%; transform: translateX(-50%) translateY(-20px); background: var(--bg-card); background: color-mix(in srgb, var(--bg-card) 92%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: var(--text-primary); padding: 12px 24px; border-radius: 999px; font-size: 14px; z-index: 9999; opacity: 0; transition: all 0.3s; pointer-events: none; box-shadow: var(--shadow-lg); border: 1px solid var(--border-color); max-width: 86vw; text-align: center; } .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); } /* 二维码弹窗 */ .qr-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--overlay); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s; } .qr-modal.show { opacity: 1; pointer-events: auto; } .qr-content { background: var(--bg-card); border-radius: var(--radius-xl); padding: 24px; width: 280px; box-shadow: var(--shadow-lg); } .qr-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 17px; font-weight: 700; letter-spacing: -0.3px; } .qr-close { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-secondary); border: none; font-size: 15px; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; } .qr-close:hover { background: var(--border-color); color: var(--text-primary); } .qr-close:active { transform: scale(0.92); } /* 登录弹窗 */ .auth-modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 3500; } .auth-modal.show { display: block; } .auth-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--overlay); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); } .auth-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--bg-card); border-radius: var(--radius-xl); padding: 24px; width: 300px; max-width: 90%; /* 高度上限用相对全屏遮罩的百分比,不用 vh:部分安卓 WebView 里 vh 会解析成极小值, 会让弹窗塌缩成只剩标题条(内容仍可滚动)。百分比在真机上实测是正确的。 */ max-height: calc(100% - 32px); overflow-y: auto; -webkit-overflow-scrolling: touch; box-shadow: var(--shadow-lg); } .auth-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 17px; font-weight: 700; letter-spacing: -0.3px; } .auth-close { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-secondary); border: none; font-size: 14px; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; } .auth-close:hover { background: var(--border-color); color: var(--text-primary); } .auth-close:active { transform: scale(0.92); } .auth-field { margin-bottom: 12px; } .auth-field input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border-color); border-radius: var(--radius-sm); font-size: 15px; background: var(--bg-secondary); color: var(--text-primary); outline: none; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; } .auth-field input:focus { border-color: var(--accent-color); background: var(--bg-card); box-shadow: 0 0 0 3px var(--accent-soft); } .auth-tip { color: var(--error-color); font-size: 13px; margin-bottom: 12px; min-height: 18px; } .auth-submit { width: 100%; padding: 12px; background: var(--accent-color); color: var(--accent-contrast); border: none; border-radius: var(--radius-md); font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s, transform 0.15s, opacity 0.2s; } .auth-submit:hover { background: var(--accent-hover); } .auth-submit:active { transform: scale(0.97); } .auth-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; } /* 语义变体:与主色按钮同一套尺寸/圆角/交互 */ .auth-submit.success { background: var(--success); } .auth-submit.success:hover { background: var(--success-press); } .auth-submit.danger { background: var(--danger); } .auth-submit.warning { background: var(--warning); } .auth-submit.ghost { background: transparent; color: var(--text-secondary); border: 1.5px solid var(--border-color); } .auth-submit.ghost:hover { background: var(--bg-secondary); color: var(--text-primary); } .auth-submit.ghost:active { background: var(--border-color); } .auth-hint { margin-top: 12px; font-size: 12px; color: var(--text-tertiary); text-align: center; } .auth-hint a { color: var(--accent-color); text-decoration: none; } .auth-hint a:hover { text-decoration: underline; } /* ===== 全屏登录门:未登录时覆盖地图 ===== */ .login-gate { position: fixed; inset: 0; z-index: 3000; background: var(--bg-primary); display: none; align-items: center; justify-content: center; padding: 24px; } .login-gate.show { display: flex; } .login-gate-card { width: 320px; max-width: 92vw; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 28px 24px; text-align: center; } .login-gate.show .login-gate-card { animation: modalPopIn 0.32s var(--ease-spring) both; } .login-gate-logo { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px; background: linear-gradient(135deg, var(--accent-color), var(--accent-hover)); display: flex; align-items: center; justify-content: center; color: var(--accent-contrast); box-shadow: 0 4px 16px rgba(0, 113, 227, 0.35); } .login-gate-title { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; color: var(--text-primary); } .login-gate-sub { font-size: 13px; color: var(--text-secondary); margin: 6px 0 20px; } .login-gate-card .auth-field { text-align: left; } .login-gate-footer { margin-top: 14px; font-size: 13px; color: var(--text-tertiary); } .login-gate-footer a { color: var(--accent-color); text-decoration: none; font-weight: 500; } .login-gate-footer a:hover { text-decoration: underline; } /* ===== 统一弹窗动效:所有居中弹窗共用同一套入场 ===== */ @keyframes modalCenterIn { from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } } @keyframes modalPopIn { from { opacity: 0; transform: scale(0.9) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } } .auth-modal.show .auth-content { animation: modalCenterIn 0.32s var(--ease-spring) both; } .bell-modal.show .bell-content { animation: modalCenterIn 0.32s var(--ease-spring) both; } .return-modal.show .return-content { animation: modalCenterIn 0.32s var(--ease-spring) both; } .token-expired-modal.show .token-expired-content { animation: modalPopIn 0.32s var(--ease-spring) both; } .qr-modal.show .qr-content { animation: modalPopIn 0.32s var(--ease-spring) both; } .return-confirm-modal.show .return-confirm-content { animation: modalPopIn 0.32s var(--ease-spring) both; } .unlock-confirm-modal.show .unlock-confirm-content { animation: modalPopIn 0.32s var(--ease-spring) both; } .lost-modal.show .lost-modal-content { animation: modalPopIn 0.32s var(--ease-spring) both; } /* 个人中心样式 */ .profile-info { display: flex; align-items: center; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--border-color); margin-bottom: 15px; } .profile-avatar { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-color), var(--accent-hover)); display: flex; align-items: center; justify-content: center; color: var(--accent-contrast); font-size: 20px; font-weight: 600; } .profile-email { font-size: 13px; color: var(--text-tertiary); word-break: break-all; } .profile-name { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; } /* 消费统计 */ .profile-stats { display: flex; gap: 15px; margin-bottom: 15px; padding: 15px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-md); } .stat-item { flex: 1; text-align: center; } .stat-value { font-size: 22px; font-weight: 700; color: var(--accent-color); } .stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 2px; } .profile-auth-hint { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--warning); margin-bottom: 12px; padding: 10px; background: rgba(255, 149, 0, 0.10); border: 1px solid rgba(255, 149, 0, 0.25); border-radius: var(--radius-sm); } /* 快捷入口按钮 */ .profile-quick-btns { display: flex; gap: 10px; margin-bottom: 10px; } .profile-quick-btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 8px 12px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-md); font-size: 13px; color: var(--text-primary); cursor: pointer; transition: all 0.2s; } .profile-quick-btn:hover { background: var(--bg-card); border-color: var(--accent-color); } .profile-quick-btn:active { transform: scale(0.96); } .profile-quick-btn svg { color: var(--accent-color); } /* 设备管理入口按钮 */ .profile-secondary-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; margin-bottom: 10px; background: var(--accent-soft); border: 1px solid transparent; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; color: var(--accent-color); cursor: pointer; transition: all 0.2s; } .profile-secondary-btn:hover { background: var(--accent-color); color: var(--accent-contrast); } .profile-secondary-btn:hover svg { color: var(--accent-contrast); } .profile-secondary-btn:active { transform: scale(0.98); } .profile-secondary-btn svg { color: var(--accent-color); } .rental-settings-note { margin: 0 0 14px; padding: 11px 12px; border-radius: 9px; background: rgba(255, 149, 0, 0.12); color: var(--text-secondary); font-size: 12px; line-height: 1.6; } .rental-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border-color); color: var(--text-primary); font-size: 14px; } .rental-setting-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent-color); } .rental-setting-row input[type="number"] { width: 84px; padding: 8px 10px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-secondary); color: var(--text-primary); text-align: center; } .reminder-minute-options { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 16px; } .reminder-minute-options label { display:flex; align-items:center; gap:5px; padding:8px 10px; border-radius:8px; background:var(--bg-secondary); color:var(--text-primary); font-size:13px; } .reminder-minute-options input { width:17px; height:17px; accent-color:var(--accent-color); } /* 登录设备管理 */ .devices-tip { font-size: 12px; color: var(--text-secondary); margin-bottom: 10px; padding: 8px 10px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); line-height: 1.5; } .devices-list { display: flex; flex-direction: column; gap: 8px; /* 设备列表跟着弹窗高度伸缩:弹窗本身已限高,这里再用 vh 会被部分 WebView 解析成极小值 */ flex: 1 1 auto; min-height: 0; overflow-y: auto; } .device-row { display: flex; align-items: center; gap: 8px; padding: 10px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); } .device-main { flex: 1; min-width: 0; } .device-name { font-size: 14px; font-weight: 600; color: var(--text-primary); word-break: break-all; } .device-badge { display: inline-block; font-size: 11px; color: var(--accent-contrast); background: var(--accent-color); padding: 1px 6px; border-radius: 8px; margin-left: 4px; vertical-align: 1px; } .device-meta { font-size: 11px; color: var(--text-secondary); margin-top: 2px; } .device-kick { flex-shrink: 0; padding: 6px 12px; background: var(--danger); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.2s; } .device-kick:active { transform: scale(0.95); } .device-loading, .devices-empty { color: var(--text-tertiary); text-align: center; padding: 18px; font-size: 13px; } /* 凭证弹窗描述 */ .auth-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 15px; padding: 10px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); line-height: 1.5; } .profile-section { margin-bottom: 15px; } .profile-section input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border-color); border-radius: var(--radius-sm); font-size: 14px; outline: none; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; box-sizing: border-box; background: var(--bg-secondary); color: var(--text-primary); } .profile-section input:focus { border-color: var(--accent-color); background: var(--bg-card); box-shadow: 0 0 0 3px var(--accent-soft); } .profile-label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; } .profile-token-row { display: flex; gap: 8px; } .profile-token-row input { flex: 1; } .profile-verify-btn { padding: 10px 15px; border-radius: 8px; background: var(--accent-color); border: none; color: var(--accent-contrast); font-size: 13px; cursor: pointer; white-space: nowrap; } .profile-verify-btn:hover { background: var(--accent-hover); } .profile-verify-btn:disabled { opacity: 0.55; cursor: not-allowed; } /* 卡包信息样式 */ .profile-packages { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-color); } .packages-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; } .packages-list { max-height: 200px; overflow-y: auto; } .packages-loading { color: var(--text-tertiary); font-size: 13px; text-align: center; padding: 15px; } .packages-empty { color: var(--text-tertiary); font-size: 13px; text-align: center; padding: 15px; } .package-card { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 10px; color: white; } .package-card .pkg-name { font-size: 14px; font-weight: 600; margin-bottom: 6px; } .package-card .pkg-info { font-size: 12px; opacity: 0.9; line-height: 1.5; } .package-card .pkg-status { display: inline-block; background: rgba(255,255,255,0.25); padding: 2px 8px; border-radius: 10px; font-size: 11px; margin-top: 6px; } .package-card .pkg-status.active { background: rgba(52, 199, 89, 0.8); } .package-card .pkg-usage { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; background: rgba(0,0,0,0.15); padding: 6px 10px; border-radius: 6px; } .package-card.warning { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); } .package-card.expired { background: linear-gradient(135deg, #9e9e9e 0%, #616161 100%); } .bell-modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1001; } .bell-modal.show { display: block; } .bell-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--overlay); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); } .bell-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--bg-card); border-radius: var(--radius-xl); padding: 24px; width: 300px; max-width: 90%; text-align: center; box-shadow: var(--shadow-lg); } .bell-title { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 16px; color: var(--text-primary); display: flex; align-items: center; justify-content: center; gap: 8px; } .bell-tabs { display: flex; gap: 4px; margin-bottom: 16px; background: var(--bg-secondary); border-radius: 10px; padding: 3px; } .bell-tab { flex: 1; padding: 8px 4px; border: none; background: transparent; border-radius: 8px; font-size: 12px; color: var(--text-secondary); cursor: pointer; transition: all 0.2s; } .bell-tab.active { background: var(--bg-card); color: var(--text-primary); font-weight: 600; box-shadow: var(--shadow-sm); } .bell-section { display: none; } .bell-section.active { display: block; } .bell-radius-group { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; } .radius-btn { padding: 8px 14px; border: 1.5px solid var(--border-color); background: var(--bg-secondary); border-radius: 20px; font-size: 13px; color: var(--text-secondary); cursor: pointer; transition: all 0.2s; white-space: nowrap; } .radius-btn.active { border-color: var(--accent-color); background: var(--accent-color); color: var(--accent-contrast); } .bell-location-hint { font-size: 12px; color: var(--text-tertiary); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; } .bell-location-hint.active { color: var(--accent-color); } .bell-status-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; } .bell-status-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--bg-secondary); border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s; } .bell-status-item:hover { background: var(--border-color); } .bell-status-item.selected { background: var(--accent-soft); border: 1px solid var(--accent-color); } .status-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; } .status-dot.available { background: #34c759; } .status-dot.used { background: #ff2d55; } .status-dot.locked { background: #ff9f0a; } .status-dot.low { background: #8e8e93; } .status-dot.reserved { background: #5856D6; } .bell-status-name { flex: 1; font-size: 14px; color: var(--text-primary); } .bell-status-count { font-size: 12px; color: var(--text-secondary); } /* Token失效弹窗 */ .token-expired-modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 2200; align-items: center; justify-content: center; } .token-expired-modal.show { display: flex; } .token-expired-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--overlay); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); } .token-expired-content { position: relative; background: var(--bg-card); border-radius: var(--radius-xl); padding: 28px 24px 20px; width: 320px; max-width: 90%; text-align: center; box-shadow: var(--shadow-lg); z-index: 1; } .token-expired-icon { font-size: 42px; margin-bottom: 10px; } .token-expired-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; } .token-expired-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 18px; } .token-expired-fields { text-align: left; margin-bottom: 16px; } .token-expired-fields label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; } .token-expired-fields input { width: 100%; padding: 10px 12px; border: 1.5px solid var(--border-color); border-radius: var(--radius-sm); font-size: 14px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; box-sizing: border-box; background: var(--bg-secondary); color: var(--text-primary); margin-bottom: 12px; } .token-expired-fields input:focus { border-color: var(--accent-color); background: var(--bg-card); box-shadow: 0 0 0 3px var(--accent-soft); } .token-expired-btns { display: flex; gap: 10px; } .token-expired-btn { flex: 1; padding: 12px; border-radius: var(--radius-md); font-size: 15px; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; } .token-expired-btn.cancel { background: var(--bg-secondary); color: var(--text-primary); border: 1.5px solid var(--border-color); } .token-expired-btn.cancel:hover { background: var(--border-color); } .token-expired-btn.confirm { background: var(--accent-color); color: var(--accent-contrast); } .token-expired-btn.confirm:hover { background: var(--accent-hover); } .token-expired-btn:active { transform: scale(0.96); } .token-expired-tip { color: var(--error-color); font-size: 13px; min-height: 18px; margin-bottom: 10px; } /* 灯泡图标按钮 */ .help-link-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 149, 0, 0.12); border: 1px solid rgba(255, 149, 0, 0.3); cursor: pointer; transition: all 0.2s; vertical-align: middle; flex-shrink: 0; text-decoration: none; } .help-link-btn:hover { background: rgba(255, 149, 0, 0.22); transform: scale(1.08); } .help-link-btn:active { transform: scale(0.95); } .help-link-btn svg { color: var(--warning); } /* 下载按钮:沿用灯泡按钮的圆形尺寸,配色改为主色以区分于教程入口 */ .download-link-btn { background: rgba(10, 132, 255, 0.12); border-color: rgba(10, 132, 255, 0.32); } .download-link-btn:hover { background: rgba(10, 132, 255, 0.22); } .download-link-btn svg { color: #0a84ff; } /* 内置浏览器下载提示弹窗 */ .download-tip-desc { font-size: 13.5px; line-height: 1.65; color: var(--text-secondary); margin: 10px 0 14px; } .download-tip-link-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } .download-tip-link-row input { flex: 1; min-width: 0; font-size: 12px; color: var(--text-secondary); } .download-tip-copy { flex-shrink: 0; padding: 0 14px; height: 42px; min-width: 62px; white-space: nowrap; border: none; border-radius: var(--radius-sm); -webkit-appearance: none; appearance: none; /* ui-system 把 --accent-color 重定义成了灰阶的 --ui-solid, 这里要用明确的强调蓝,所以不复用该变量 */ background: #0a84ff !important; color: #fff !important; font-size: 14px; cursor: pointer; } .download-tip-copy:active { transform: scale(0.96); } .download-tip-hint { font-size: 12px; line-height: 1.6; color: var(--text-tertiary, var(--text-secondary)); margin-bottom: 16px; } /* 提示弹窗标题较长,给关闭按钮留出空间,避免折行文字压到 ✕ */ .download-tip-content .auth-header span { padding-right: 28px; font-size: 15.5px; line-height: 1.45; } .token-input-with-help { display: flex; align-items: center; gap: 6px; } .token-input-with-help input { flex: 1; width: auto; min-width: 0; } /* 行内小号主操作按钮(发送验证码) */ .code-send-btn { min-width: 96px; padding: 0 12px; height: 42px; border: none; border-radius: var(--radius-sm); background: var(--accent-color); color: var(--accent-contrast); font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background 0.2s, opacity 0.2s, transform 0.15s; } .code-send-btn:hover { background: var(--accent-hover); } .code-send-btn:active { transform: scale(0.96); } .code-send-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; } .bell-status-check { width: 20px; height: 20px; border-radius: 4px; border: 2px solid var(--border-color); display: flex; align-items: center; justify-content: center; transition: all 0.2s; } .bell-status-item.selected .bell-status-check { background: var(--accent-color); border-color: var(--accent-color); color: var(--accent-contrast); } .bell-select-hint { font-size: 12px; color: var(--text-tertiary); text-align: center; padding: 8px; background: var(--bg-secondary); border-radius: var(--radius-sm); margin-bottom: 12px; } .bell-filter-info { font-size: 13px; color: var(--accent-color); margin-top: 10px; text-align: center; } .bell-input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border-color); border-radius: var(--radius-sm); font-size: 15px; background: var(--bg-secondary); color: var(--text-primary); outline: none; text-align: center; letter-spacing: 4px; margin-bottom: 12px; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; } .bell-input:focus { border-color: var(--accent-color); background: var(--bg-card); box-shadow: 0 0 0 3px var(--accent-soft); } .bell-error { color: var(--error-color); font-size: 13px; margin-bottom: 12px; min-height: 18px; } .bell-progress { margin-top: 12px; font-size: 13px; color: var(--text-secondary); } .qr-body { text-align: center; } #qrcode-box { background: white; padding: 16px; border-radius: var(--radius-md); display: inline-block; } .qr-hint { margin: 14px 0 0; font-size: 13px; color: var(--text-secondary); } /* 禁用微信图片长按原生菜单 */ #qrcode-box { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; } /* 个人中心 / 凭证 / 登录设备管理:深色模式由设计令牌自动适配 */ /* 二维码暗色模式适配 */ @media (prefers-color-scheme: dark) { #qrcode-box canvas { filter: brightness(0.9) contrast(1.1); background: var(--qr-bg, #1a1a1a); padding: 8px; border-radius: 6px; box-shadow: rgba(0,0,0,0.6) 2px 2px 8px 0; } } #qrcode-box canvas { box-shadow: rgba(0,0,0,0.4) 2px 2px 8px 0; border-radius: 4px; } /* 用车计时状态栏 */ .rental-bar { display: none; background: linear-gradient(135deg, #ff6b00, #ff9f0a); color: white; padding: 10px 16px; font-size: 14px; font-weight: 600; align-items: center; justify-content: space-between; flex-shrink: 0; z-index: 150; cursor: pointer; user-select: none; } .rental-bar.show { display: flex; } .rental-bar-left { display: flex; align-items: center; gap: 10px; } .rental-bar .icon { font-size: 18px; } .rental-bar-time { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 60px; } .rental-bar-info { font-size: 13px; opacity: 0.9; } .rental-bar-btn { background: rgba(255,255,255,0.25); border: 1px solid rgba(255,255,255,0.4); color: white; padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.2s; } .rental-bar-btn:hover { background: rgba(255,255,255,0.35); } /* 还车确认弹窗 */ .return-modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 2000; } .return-modal.show { display: block; } .return-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); } .return-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--bg-card); border-radius: var(--radius-xl); padding: 28px 24px; width: 310px; max-width: 90%; box-shadow: var(--shadow-lg); text-align: center; } .return-icon { font-size: 48px; margin-bottom: 16px; } .return-title { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; } .return-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 6px; line-height: 1.5; } .return-bike { font-size: 15px; color: var(--text-primary); font-weight: 600; margin-bottom: 20px; } .return-btns { display: flex; gap: 12px; } .return-btn-yes { flex: 1; padding: 14px 10px; background: var(--success); color: white; border: none; border-radius: var(--radius-md); font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s, transform 0.15s; white-space: nowrap; } .return-btn-yes:hover { background: var(--success-press); } .return-btn-yes:active { transform: scale(0.97); } .return-btn-no { flex: 1; padding: 14px 10px; background: var(--bg-secondary); color: var(--text-primary); border: 1.5px solid var(--border-color); border-radius: var(--radius-md); font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; white-space: nowrap; } .return-btn-no:hover { background: var(--border-color); } .return-btn-no:active { transform: scale(0.97); } @media (max-width: 480px) { .header { padding: 12px 16px; } .header-title { font-size: 16px; } .stats-card { top: 10px; left: 10px; padding: 10px; } .stats-number { font-size: 24px; } .legend { top: 10px; right: 10px; padding: 10px 12px; } .scan-bar { padding: 14px 16px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); } .scan-btn { padding: 12px 18px; font-size: 14px; } } @media (min-width: 768px) { .scan-bar { max-width: 600px; left: 50%; transform: translateX(-50%); border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-left: 1px solid var(--border-color); border-right: 1px solid var(--border-color); } .bike-card { max-width: 500px; left: 50%; transform: translateX(-50%) translateY(100%); border-radius: var(--radius-xl); border: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); } .bike-card.show { transform: translateX(-50%) translateY(0); } } /* 订单横幅 */ .order-banner { background: linear-gradient(135deg, #ff9500, #ff6b00); color: white; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; cursor: pointer; flex-shrink: 0; z-index: 150; display: none; } /* 横幅单行锁定 */ .order-banner, .rental-bar { flex-wrap: nowrap !important; white-space: nowrap !important; overflow: hidden !important; } .order-banner-left, .rental-bar-left { flex: 1 1 auto; min-width: 0; overflow: hidden; flex-wrap: nowrap; } #order-banner-text { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #order-banner-icon, .rental-bar-left > .icon { flex: 0 0 auto; } .order-banner-right, .rental-bar > div:last-child { flex: 0 0 auto; white-space: nowrap; } .order-banner-btn, .rental-bar-btn { white-space: nowrap; flex: 0 0 auto; } #order-final-time, #order-countdown, #rental-final-time, #rental-time, #rental-bike-code, .rental-bar-info { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } @media (max-width: 430px) { .order-banner { padding: 9px 10px !important; font-size: 13px !important; } .order-banner-btn, .rental-bar-btn { padding: 5px 9px !important; font-size: 12px !important; } } .order-banner.show { display: flex; } .order-banner-left { display: flex; align-items: center; gap: 8px; } .order-banner.warning { background: linear-gradient(135deg, #ff3b30, #ff2a55); } .order-banner.riding { background: linear-gradient(135deg, #0071e3, #005bbf); } .order-banner-right { display: flex; align-items: center; } .order-banner-btn { background: rgba(255,255,255,0.25); border: 1px solid rgba(255,255,255,0.4); color: white; padding: 6px 12px; border-radius: 16px; font-size: 13px; cursor: pointer; } /* 登录态到期提醒横幅(不足 2 天时出现) */ .auth-expiry-banner { background: linear-gradient(135deg, #ffb340, #f08a00); color: white; padding: 9px 16px; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; line-height: 1.45; cursor: pointer; flex-shrink: 0; z-index: 150; display: none; } .auth-expiry-banner.show { display: flex; } .auth-expiry-banner.urgent { background: linear-gradient(135deg, #ff3b30, #ff2a55); } .auth-expiry-banner-left { display: flex; align-items: center; gap: 8px; min-width: 0; } .auth-expiry-banner-icon { font-size: 15px; line-height: 1; flex-shrink: 0; } .auth-expiry-banner-text { min-width: 0; } .auth-expiry-banner-right { display: flex; align-items: center; flex-shrink: 0; } .auth-expiry-banner-btn { background: rgba(255,255,255,0.25); border: 1px solid rgba(255,255,255,0.4); color: white; padding: 5px 12px; border-radius: 16px; font-size: 13px; cursor: pointer; white-space: nowrap; } /* 订单操作全屏面板 */ .order-actions-modal { position: fixed; inset: 0; display: none; z-index: 3600; color: var(--text-primary); } .order-actions-modal.show { display: flex; } .order-actions-overlay { position: absolute; inset: 0; background: var(--overlay); } .order-actions-content { position: relative; z-index: 1; width: 100%; height: 100%; overflow-y: auto; padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); background: var(--bg-primary); -webkit-overflow-scrolling: touch; } .order-actions-header { width: min(720px, 100%); margin: 0 auto 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; } .order-actions-kicker { color: var(--text-secondary); font-size: 12px; letter-spacing: 0.08em; margin-bottom: 6px; } .order-actions-header h2 { font-size: 26px; line-height: 1.15; letter-spacing: -0.5px; } .order-actions-meta { color: var(--text-secondary); font-size: 14px; margin-top: 8px; } .order-actions-close { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--border-color); border-radius: 50%; background: var(--bg-secondary); color: var(--text-primary); font-size: 18px; cursor: pointer; } .order-actions-close:active { transform: scale(0.95); } .order-actions-status { width: min(720px, 100%); margin: 0 auto 20px; padding: 13px 15px; border: 1px solid rgba(0, 113, 227, 0.2); border-radius: var(--radius-md); background: var(--accent-soft); color: var(--accent-color); font-size: 14px; font-weight: 600; } .order-actions-status.warning { border-color: rgba(255, 59, 48, 0.2); background: rgba(255, 59, 48, 0.10); color: var(--danger); } .order-actions-status.riding { border-color: rgba(0, 113, 227, 0.2); background: var(--accent-soft); color: var(--accent-color); } .order-actions-grid { width: min(720px, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .order-action-card { min-height: 94px; display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--border-color); border-radius: var(--radius-lg); background: var(--bg-card); color: var(--text-primary); text-align: left; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease; } .order-action-card:hover { border-color: var(--accent-color); background: var(--accent-soft); } .order-action-card:active { transform: scale(0.98); } .order-action-card.primary { border-color: var(--accent-color); background: var(--accent-color); color: var(--accent-contrast); } .order-action-card.primary:hover { background: var(--accent-hover); } .order-action-card.danger { border-color: rgba(255, 59, 48, 0.28); color: var(--danger); } .order-action-card:disabled { opacity: 0.58; cursor: wait; transform: none; } .order-action-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 12px; background: var(--bg-secondary); color: var(--accent-color); font-size: 21px; font-weight: 700; } .order-action-card.primary .order-action-icon { background: rgba(255,255,255,0.18); color: inherit; } .order-action-card.danger .order-action-icon { background: rgba(255, 59, 48, 0.10); color: var(--danger); } .order-action-copy { min-width: 0; display: flex; flex-direction: column; gap: 5px; } .order-action-copy strong { font-size: 15px; line-height: 1.2; } .order-action-copy small { color: var(--text-secondary); font-size: 12px; line-height: 1.35; } .order-action-card.primary .order-action-copy small { color: rgba(255,255,255,0.82); } .order-actions-hint { width: min(720px, 100%); margin: 18px auto 0; color: var(--text-tertiary); font-size: 12px; line-height: 1.6; text-align: center; } body.order-actions-open { overflow: hidden; } .order-actions-modal.show .order-actions-content { animation: orderActionsIn 0.24s ease-out both; } @keyframes orderActionsIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } } @media (max-width: 480px) { .order-actions-content { padding-left: 16px; padding-right: 16px; } .order-actions-header h2 { font-size: 23px; } .order-action-card { min-height: 88px; padding: 13px; gap: 9px; } .order-action-icon { width: 34px; height: 34px; flex-basis: 34px; font-size: 18px; } } @media (prefers-reduced-motion: reduce) { .order-actions-modal.show .order-actions-content { animation: none; } .order-action-card { transition: none; } } /* 还车确认弹窗 */ .return-confirm-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--overlay); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; z-index: 3800; } .return-confirm-modal.show { display: flex; } .return-confirm-content { background: var(--bg-card); border-radius: var(--radius-xl); padding: 24px; width: 300px; max-width: 90%; text-align: center; box-shadow: var(--shadow-lg); } .return-confirm-title { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; } .return-confirm-text { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; line-height: 1.5; } .return-confirm-btns { display: flex; gap: 12px; } .return-confirm-btn { flex: 1; padding: 12px; border-radius: var(--radius-md); font-size: 15px; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; } .return-confirm-btn.cancel { background: var(--bg-secondary); color: var(--text-primary); border: 1.5px solid var(--border-color); } .return-confirm-btn.cancel:hover { background: var(--border-color); } .return-confirm-btn.confirm { background: var(--accent-color); color: var(--accent-contrast); } .return-confirm-btn.confirm:hover { background: var(--accent-hover); } .return-confirm-btn:active { transform: scale(0.97); } .return-confirm-btn:disabled { opacity: 0.6; } /* 开锁确认弹窗 */ .unlock-confirm-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--overlay); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; z-index: 2000; } .unlock-confirm-modal.show { display: flex; } .unlock-confirm-content { background: var(--bg-card); border-radius: var(--radius-xl); padding: 24px; width: 300px; max-width: 90%; text-align: center; box-shadow: var(--shadow-lg); } .unlock-confirm-title { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 12px; color: var(--text-primary); display: flex; align-items: center; justify-content: center; gap: 8px; } .unlock-confirm-text { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; line-height: 1.5; } .unlock-confirm-btns { display: flex; gap: 12px; } .unlock-confirm-btn { flex: 1; padding: 12px; border-radius: var(--radius-md); font-size: 15px; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; } .unlock-confirm-btn.cancel { background: var(--bg-secondary); color: var(--text-primary); border: 1.5px solid var(--border-color); } .unlock-confirm-btn.cancel:hover { background: var(--border-color); } .unlock-confirm-btn.confirm { background: var(--accent-color); color: var(--accent-contrast); } .unlock-confirm-btn.confirm:hover { background: var(--accent-hover); } /* 危险操作的确认按钮(解绑/下线等) */ .unlock-confirm-btn.confirm.danger { background: #d93b35; color: #fff; } .unlock-confirm-btn.confirm.danger:hover { background: #c22f2a; } /* ===== 确认类弹窗永远压在所有弹窗之上 ===== 现状层级:order-actions 3600 > auth-modal 3500 > login-gate 3000 > token-expired 2200 > lost 2100 > unlock/return 2000 > qr 1000 通用确认框(app-confirm)与追加一轮确认可能在任意弹窗打开时弹出, 必须高于全部弹窗,但仍低于 toast(9999) 以免挡住提示。 */ #app-confirm-modal, #add-round-modal { z-index: 5000 !important; } .unlock-confirm-btn:active { transform: scale(0.97); } .unlock-confirm-btn:disabled { opacity: 0.6; } /* ========== 丢失模式 ========== */ /* 丢失模式确认弹窗 */ .lost-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--overlay); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; z-index: 2100; } .lost-modal.show { display: flex; } .lost-modal-content { background: var(--bg-card); border-radius: var(--radius-xl); padding: 28px 24px 20px; width: 300px; max-width: 90%; text-align: center; box-shadow: var(--shadow-lg); } .lost-modal-icon { font-size: 36px; margin-bottom: 10px; color: var(--accent-color); } .lost-modal-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; } .lost-modal-subtitle { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 24px; } .lost-modal-btns { display: flex; gap: 10px; } .lost-modal-btn { flex: 1; padding: 12px; border-radius: var(--radius-md); font-size: 15px; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; } .lost-modal-btn.cancel { background: var(--bg-secondary); color: var(--text-primary); border: 1.5px solid var(--border-color); } .lost-modal-btn.cancel:hover { background: var(--border-color); } .lost-modal-btn.confirm { background: var(--accent-color); color: var(--accent-contrast); } .lost-modal-btn.confirm:hover { background: var(--accent-hover); } .lost-modal-btn:active { transform: scale(0.96); } /* 丢失模式下寻车按钮呼吸灯动画 */ @keyframes lostBreath { 0% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.7); background: rgba(0,113,227,0.12); } 50% { box-shadow: 0 0 0 8px rgba(0, 113, 227, 0); background: rgba(0,113,227,0.25); } 100% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0); background: rgba(0,113,227,0.12); } } .bike-card-find-btn.lost-mode { background: var(--accent-soft) !important; border-color: var(--accent-color) !important; color: var(--accent-color) !important; animation: lostBreath 1.8s ease-in-out infinite; } .bike-card-find-btn.lost-mode svg { stroke: var(--accent-color); } /* 深色适配:暗色下统一由设计令牌接管,无需逐项覆盖 */ /* ===== 共享电动车 & 版本号(新增) ===== */ .version-badge { position: fixed; left: 14px; bottom: 96px; z-index: 150; background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-secondary); padding: 4px 12px; border-radius: 14px; font-size: 12px; cursor: pointer; opacity: .92; box-shadow: var(--shadow-sm); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: opacity .2s, transform .15s; } .version-badge:hover { opacity: 1; } .version-badge:active { transform: scale(0.95); } .version-log { flex: 0 1 auto; min-height: 0; overflow: auto; font-size: 13px; color: var(--text-primary); } .version-log h4 { margin: 12px 0 4px; } .version-log ul { margin: 0; padding-left: 18px; line-height: 1.7; } /* 版本说明固定标题、只让日志区滚动(不能再用 vh 限高,原因见 .auth-content) */ #version-modal .auth-content { display: flex; flex-direction: column; } .share-content { width: 430px; max-width: 94%; } .share-desc { font-size: 12px; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.6; } .share-req-row { display: flex; gap: 8px; margin-bottom: 6px; } .share-req-row input { flex: 1; padding: 10px 12px; border: 1.5px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-secondary); color: var(--text-primary); outline: none; font-size: 13px; transition: border-color .2s, box-shadow .2s, background .2s; } .share-req-row input:focus { border-color: var(--accent-color); background: var(--bg-card); box-shadow: 0 0 0 3px var(--accent-soft); } .share-req-row button { white-space: nowrap; padding: 10px 16px; border: none; border-radius: var(--radius-sm); background: var(--accent-color); color: var(--accent-contrast); cursor: pointer; font-size: 13px; font-weight: 600; transition: background .2s, transform .15s, opacity .2s; } .share-req-row button:hover { background: var(--accent-hover); } .share-req-row button:active { transform: scale(0.96); } .share-req-row button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; } /* 分段控件:与「批量寻铃」弹窗同一套 tab 语言 */ .share-tabs { display: flex; gap: 4px; margin: 10px 0 12px; background: var(--bg-secondary); border-radius: 10px; padding: 3px; } .share-tab { flex: 1; padding: 8px; border: none; background: transparent; color: var(--text-secondary); border-radius: 8px; font-size: 14px; cursor: pointer; transition: all 0.2s; } .share-tab.active { background: var(--bg-card); color: var(--text-primary); font-weight: 600; box-shadow: var(--shadow-sm); } .share-list { display: flex; flex-direction: column; gap: 8px; } .share-list:empty::after { content: "暂无记录"; color: var(--text-tertiary); font-size: 13px; padding: 16px; text-align: center; display: block; } .share-row { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 10px 12px; font-size: 13px; } .share-row-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .share-row-email { font-weight: 600; color: var(--text-primary); word-break: break-all; } .share-row-state { font-size: 12px; color: var(--text-secondary); margin-top: 4px; line-height: 1.5; } .share-row-state.err { color: var(--danger); } .share-row-state.ok { color: var(--success); } .share-row-btns { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; } .share-mini-btn { font-size: 12px; font-weight: 500; padding: 5px 12px; border-radius: 14px; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-primary); cursor: pointer; transition: all .2s; } .share-mini-btn:hover { border-color: var(--text-tertiary); } .share-mini-btn:active { transform: scale(0.95); } .share-mini-btn.primary { background: var(--accent-color); border-color: var(--accent-color); color: var(--accent-contrast); } .share-mini-btn.primary:hover { background: var(--accent-hover); } .share-mini-btn.danger { color: var(--danger); border-color: rgba(255,59,48,.4); } .share-mini-btn.danger:hover { background: rgba(255,59,48,.08); } .share-pending-box { border: 1px dashed var(--warning); border-radius: var(--radius-md); padding: 8px 12px; margin-bottom: 10px; font-size: 13px; } .share-pending-box .prow { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; gap: 8px; } .share-ask-content { width: 350px; text-align: center; } .share-ask-icon { font-size: 44px; margin-bottom: 10px; } .share-ask-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; } .share-ask-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.6; word-break: break-all; } .share-ask-btns { display: flex; gap: 10px; } .share-ask-btns button { flex: 1; padding: 11px; border-radius: var(--radius-md); border: none; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; } .share-ask-btns .no { background: var(--bg-secondary); color: var(--text-secondary); border: 1.5px solid var(--border-color); } .share-ask-btns .no:hover { background: var(--border-color); color: var(--text-primary); } .share-ask-btns .yes { background: var(--success); color: #fff; } .share-ask-btns .yes:hover { background: var(--success-press); } .share-ask-btns button:active { transform: scale(0.96); } .share-cfg-row { margin-bottom: 12px; font-size: 14px; color: var(--text-primary); } .share-cfg-row label { display: block; margin-bottom: 5px; font-size: 13px; color: var(--text-secondary); } .share-cfg-row input[type=number] { width: 100%; padding: 10px 12px; border: 1.5px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-secondary); color: var(--text-primary); outline: none; font-size: 14px; box-sizing: border-box; transition: border-color .2s, box-shadow .2s, background .2s; } .share-cfg-row input[type=number]:focus { border-color: var(--accent-color); background: var(--bg-card); box-shadow: 0 0 0 3px var(--accent-soft); } .share-cfg-check { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 14px; cursor: pointer; } .unlock-src-item { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; padding: 11px 12px; margin-bottom: 8px; border: 1.5px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-secondary); color: var(--text-primary); font-size: 14px; cursor: pointer; transition: border-color .2s, background .2s, transform .15s; } .unlock-src-item:hover { border-color: var(--accent-color); background: var(--bg-card); } .unlock-src-item:active { transform: scale(0.98); } .unlock-src-item .tag { font-size: 12px; color: var(--success); flex-shrink: 0; margin-left: 8px; } .unlock-src-item.unavailable { opacity: .55; pointer-events: none; } .unlock-src-item.unavailable .tag { color: var(--danger); } .unlock-src-more { text-align: center; font-size: 12px; color: var(--accent-color); cursor: pointer; padding: 6px 0; display: block; } .share-banner { background: linear-gradient(135deg,#5856D6,#7C4DFF); color: #fff; padding: 10px 16px; display: none; align-items: center; justify-content: space-between; font-size: 13.5px; z-index: 150; flex-shrink: 0; } .share-banner.show { display: flex; } .share-banner.rider { background: linear-gradient(135deg,#34C759,#00BFA5); } .share-banner-btn { background: rgba(255,255,255,.25); border: 1px solid rgba(255,255,255,.4); color: #fff; padding: 5px 12px; border-radius: 14px; font-size: 12.5px; cursor: pointer; flex-shrink: 0; transition: background .2s; } .share-banner-btn:hover { background: rgba(255,255,255,.35); } /* ===== 原生壳(xbniu-native UA)内:弱化套壳感 + 沉浸 ===== */ /* 整条 header(标题/更新时间/刷新/铃铛)整体隐藏,地图顶到顶部 */ html.in-native-shell .header { display: none; } /* 隐藏数据分析卡 */ html.in-native-shell .stats-card { display: none; } /* 左上角工具卡片(登录 + 刷新图标),样式对齐图例;JS 已把它放进 #map-container, 因而与图例同容器、随地图上下,自动位于顶部横幅(用车/订单/共享)下方 */ html.in-native-shell #native-tools { position: absolute; top: 14px; left: 14px; z-index: 200; background: var(--ui-acrylic); -webkit-backdrop-filter: blur(20px) saturate(1.35); backdrop-filter: blur(20px) saturate(1.35); border: 1px solid var(--ui-line-strong); border-radius: var(--radius-md, 12px); box-shadow: var(--shadow-md); padding: 6px; display: flex; align-items: center; } /* 横排:登录/头像钮 + 圆形刷新图标钮(沿用网页端 .refresh-btn 样式) */ html.in-native-shell #native-tools .native-tools-row { display: flex; align-items: center; gap: 6px; } html.in-native-shell #native-tools #auth-btn { position: static; } html.in-native-shell #native-tools #auth-btn.logged-in { background: var(--ui-acrylic-soft) !important; background-image: none !important; color: var(--text-primary) !important; border-color: var(--ui-line-strong) !important; } /* 导航信息条:浮在底部扫码栏上方 */ .nav-banner { position: fixed; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 260; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--bg-card, #fff); border: 1px solid var(--border-color, #e5e5ea); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); } .nav-banner[hidden] { display: none; } .nav-banner-main { display: flex; align-items: center; gap: 8px; min-width: 0; } .nav-banner-icon { font-size: 16px; line-height: 1; } .nav-banner-text { font-size: 13px; color: var(--text-primary, #1c1c1e); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .nav-banner-stop { flex-shrink: 0; padding: 6px 12px; border-radius: 10px; border: none; background: var(--bg-secondary, #f2f2f7); color: var(--text-primary, #1c1c1e); font-size: 12.5px; font-weight: 600; } /* 拖动地图后的「返回导航」胶囊 */ .nav-resume { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(150px + env(safe-area-inset-bottom, 0px)); z-index: 270; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: none; border-radius: 999px; background: #0A84FF; color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 6px 20px rgba(10, 132, 255, 0.45); } .nav-resume[hidden] { display: none; } .nav-banner-icon { display: inline-flex; align-items: center; color: #0A84FF; }