/* ========================================================================== 羚牛氢能 - 车辆网络 Design Philosophy: Apple Restrained Minimalist (极致克制 · 纯净无痕) ========================================================================== */ /* -------------------------------------------------------------------------- RESTRICTED DUAL-THEME COLOR SYSTEM (纯黑 / 纯白) -------------------------------------------------------------------------- */ /* 1. 纯黑/深色模式 (Minimal Dark Charcoal) */ .theme-dark { --bg-app: #0A0B0E; --bg-radial: radial-gradient(circle at 50% 20%, #12141C 0%, #0A0B0E 100%); --glass-bg: rgba(20, 22, 28, 0.68); --glass-border: rgba(255, 255, 255, 0.08); --glass-hover-border: rgba(255, 255, 255, 0.2); --glass-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); --accent-primary: #007143; /* 羚牛品牌绿 */ --accent-quantity: #34D399; /* 品牌绿的深色主题高对比版本 */ --accent-cyan: #38BDF8; /* 柔和冰蓝 */ --accent-mint: #10B981; --accent-blue: #3B82F6; --text-main: #F1F5F9; --text-muted: #94A3B8; --text-sub: #64748B; --pill-bg: rgba(255, 255, 255, 0.06); --segmented-bg: rgba(255, 255, 255, 0.05); --map-style: amap://styles/darkblue; } /* 2. 纯白/浅色模式 (Apple Studio Pure White) */ .theme-white { --bg-app: #F5F5F7; --bg-radial: radial-gradient(circle at 50% 20%, #FFFFFF 0%, #F5F5F7 100%); --glass-bg: rgba(255, 255, 255, 0.82); --glass-border: rgba(0, 0, 0, 0.08); --glass-hover-border: rgba(0, 0, 0, 0.18); --glass-shadow: 0 12px 32px rgba(0, 0, 0, 0.05); --accent-primary: #007143; --accent-quantity: #007143; --accent-cyan: #0284C7; --accent-mint: #059669; --accent-blue: #2563EB; --text-main: #1D1D1F; --text-muted: #6E6E73; --text-sub: #86868B; --pill-bg: rgba(0, 0, 0, 0.04); --segmented-bg: rgba(0, 0, 0, 0.04); --map-style: amap://styles/light; } /* Elegant Subscript Typographic Tuning for H₂ */ sub, .h2-sub { font-size: 0.7em; line-height: 0; vertical-align: -0.22em; font-family: 'JetBrains Mono', -apple-system, sans-serif; font-weight: 700; margin-left: 0.5px; opacity: 0.9; } /* -------------------------------------------------------------------------- GLOBAL RESET & RESTRAINED GLASS WRAPPER -------------------------------------------------------------------------- */ * { box-sizing: border-box; margin: 0; padding: 0; user-select: none; } body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif; background: var(--bg-app); background-image: var(--bg-radial); color: var(--text-main); height: 100vh; width: 100vw; overflow: hidden; -webkit-font-smoothing: antialiased; transition: background 0.3s ease, color 0.3s ease; } .liquid-cockpit-wrapper { display: flex; flex-direction: column; height: 100vh; padding: 12px 16px; gap: 12px; } /* Restrained Apple Glass Panel */ .glass-panel { background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: 16px; box-shadow: var(--glass-shadow); transition: border-color 0.25s ease, background 0.25s ease; } .glass-panel:hover { border-color: var(--glass-hover-border); } /* -------------------------------------------------------------------------- 1. NAVIGATION HEADER (PROMINENT LOGO) -------------------------------------------------------------------------- */ .liquid-header { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 18px; flex-shrink: 0; } .header-left { display: flex; align-items: center; gap: 16px; } .brand-block { display: flex; align-items: center; } .brand-logo-switcher { display: flex; align-items: center; } .brand-logo-en { display: flex; align-items: center; gap: 5px; height: 34px; transition: transform 0.2s ease; } .brand-logo-svg[hidden], .brand-logo-en[hidden] { display: none; } .brand-mark-crop { display: block; width: 45px; height: 34px; overflow: hidden; } .brand-mark-crop img { display: block; width: auto; height: 34px; max-width: none; } .brand-logo-en > img { display: block; width: auto; height: 34px; } /* Enlarged Lingniu Logo */ .brand-logo-svg { height: 34px; width: auto; display: block; object-fit: contain; transition: transform 0.2s ease; } .theme-dark .brand-block { padding: 3px 6px; background: rgba(255, 255, 255, 0.94); border-radius: 8px; } .brand-logo-svg:hover { transform: scale(1.03); } .brand-logo-en:hover { transform: scale(1.03); } .brand-divider { width: 1px; height: 22px; background: var(--glass-border); } .cockpit-title-wrap { display: flex; align-items: center; gap: 8px; } .cockpit-title { font-size: 16px; font-weight: 600; letter-spacing: -0.3px; color: var(--text-main); } .de-tag { font-size: 9px; padding: 1px 6px; background: var(--pill-bg); border-radius: 4px; color: var(--text-muted); font-weight: 500; } /* Header KPI Capsules */ .header-kpi-group { display: flex; align-items: center; gap: 10px; } .kpi-glass-capsule { display: flex; flex-direction: column; padding: 4px 14px; background: var(--pill-bg); border: 1px solid var(--glass-border); border-radius: 10px; } .capsule-lbl { font-size: 9px; color: var(--text-muted); } .capsule-val { font-family: 'JetBrains Mono', -apple-system, sans-serif; font-size: 14px; font-weight: 700; color: var(--text-main); line-height: 1.15; } .capsule-val small { font-size: 10px; font-weight: 400; color: var(--text-muted); } .trend-pill { font-size: 9px; font-style: normal; font-weight: 600; color: var(--accent-cyan); margin-left: 2px; } /* Header Controls */ .header-controls { display: flex; align-items: center; gap: 10px; } .glass-segmented-control, .theme-switcher-bw { display: flex; background: var(--segmented-bg); padding: 2px; border-radius: 8px; border: 1px solid var(--glass-border); } .segment-btn, .bw-btn { display: flex; align-items: center; gap: 4px; padding: 4px 12px; background: transparent; border: none; border-radius: 6px; color: var(--text-muted); font-size: 11px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; } .segment-btn.active, .bw-btn.active { background: var(--glass-bg); color: var(--text-main); font-weight: 600; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); } .bw-svg { stroke: currentColor; } .time-widget { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; color: var(--text-muted); } /* -------------------------------------------------------------------------- 2. MAIN BODY (CENTER MAP CANVAS + RIGHT SIDEBAR) -------------------------------------------------------------------------- */ .cockpit-main-grid { display: grid; grid-template-columns: 1fr 320px; gap: 12px; flex: 1; min-height: 0; } /* SPATIAL MAP CONTAINER */ .map-spatial-container { position: relative; display: flex; flex-direction: column; overflow: hidden; } .map-top-bar { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; align-items: center; justify-content: space-between; z-index: 10; pointer-events: none; } .map-top-bar * { pointer-events: auto; } .map-explore-toolbar { position: absolute; top: 48px; left: 12px; max-width: calc(100% - 24px); z-index: 12; display: flex; align-items: center; gap: 7px; min-width: 0; padding: 5px; border: 1px solid var(--glass-border); border-radius: 13px; background: var(--glass-bg); box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); } .locate-btn, .filter-clear-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: 32px; min-height: 32px; padding: 0; border: 1px solid var(--glass-border); border-radius: 9px; background: var(--pill-bg); color: var(--text-main); font-size: 10px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease; } .locate-btn:hover, .filter-clear-btn:hover { border-color: var(--glass-hover-border); transform: translateY(-1px); } .locate-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; } .locate-btn span { display: none; } .locate-btn.is-loading svg { animation: locate-pulse 1s ease-in-out infinite; } .locate-btn.is-active { border-color: rgba(0, 113, 67, 0.28); background: rgba(0, 113, 67, 0.1); color: var(--accent-primary); } .locate-btn.is-error { border-color: rgba(220, 38, 38, 0.25); color: #dc2626; } @keyframes locate-pulse { 50% { opacity: 0.45; transform: scale(0.86); } } .explore-search-shell { position: relative; min-width: 0; } .entity-search-field { display: flex; align-items: center; width: min(320px, calc(100vw - 112px)); min-width: 180px; height: 32px; gap: 6px; padding: 0 8px; border: 1px solid var(--glass-border); border-radius: 9px; background: var(--pill-bg); transition: border-color 0.18s ease, box-shadow 0.18s ease; } .entity-search-field:focus-within { border-color: rgba(2, 132, 199, 0.45); box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.08); } .entity-search-field > svg { width: 14px; height: 14px; flex: 0 0 14px; fill: none; stroke: var(--text-muted); stroke-width: 1.8; } .entity-search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text-main); font: 11px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; user-select: text; } .entity-search-field input::placeholder { color: var(--text-sub); } .search-clear-btn { width: 20px; height: 20px; flex: 0 0 20px; border: 0; border-radius: 50%; background: var(--segmented-bg); color: var(--text-muted); cursor: pointer; } .entity-search-field input::-webkit-search-cancel-button { display: none; } .filter-clear-btn[hidden], .search-clear-btn[hidden], .location-feedback[hidden] { display: none; } .explore-suggestions { position: absolute; top: calc(100% + 7px); left: 0; width: min(390px, calc(100vw - 32px)); max-height: min(360px, calc(100dvh - 180px)); overflow-y: auto; padding: 6px; border: 1px solid var(--glass-border); border-radius: 13px; background: color-mix(in srgb, var(--glass-bg) 96%, transparent); box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); } .explore-suggestions[hidden], .filter-chip-rail[hidden] { display: none; } .suggestion-section-label { display: block; padding: 5px 8px 4px; color: var(--text-muted); font-size: 9px; font-weight: 700; letter-spacing: 0.04em; } .explore-suggestion { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; width: 100%; min-height: 42px; gap: 8px; padding: 6px 8px; border: 0; border-radius: 9px; background: transparent; color: var(--text-main); text-align: left; cursor: pointer; } .explore-suggestion:hover, .explore-suggestion.is-active { background: var(--pill-bg); } .suggestion-symbol { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 7px; background: rgba(2, 132, 199, 0.1); color: var(--accent-blue); font-size: 12px; font-weight: 700; } .suggestion-symbol.is-location { background: rgba(0, 113, 67, 0.1); color: var(--accent-primary); } .suggestion-copy { min-width: 0; } .suggestion-copy strong { display: block; overflow: hidden; font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; } .suggestion-copy small { display: block; overflow: hidden; margin-top: 2px; color: var(--text-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; } .suggestion-kind { color: var(--text-sub); font-size: 9px; white-space: nowrap; } .suggestion-empty { display: block; padding: 16px 10px; color: var(--text-muted); font-size: 10px; text-align: center; } .filter-chip-rail { display: flex; align-items: center; gap: 5px; min-width: 0; max-width: 300px; overflow-x: auto; scrollbar-width: none; } .filter-chip-rail::-webkit-scrollbar { display: none; } .filter-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 7px; border: 1px solid rgba(0, 113, 67, 0.15); border-radius: 999px; background: rgba(0, 113, 67, 0.08); color: var(--accent-primary); font-size: 10px; font-weight: 600; white-space: nowrap; } .filter-chip button { display: grid; width: 15px; height: 15px; place-items: center; border: 0; border-radius: 50%; background: transparent; color: currentColor; font-size: 14px; line-height: 1; cursor: pointer; } .filter-chip button:hover { background: rgba(0, 113, 67, 0.13); } .filter-select-wrap { position: relative; display: block; } .filter-select-wrap::after { content: ''; position: absolute; top: 50%; right: 9px; width: 5px; height: 5px; border-right: 1.5px solid var(--text-muted); border-bottom: 1.5px solid var(--text-muted); pointer-events: none; transform: translateY(-70%) rotate(45deg); } .filter-select-wrap select { width: 104px; height: 32px; padding: 0 25px 0 9px; border: 1px solid var(--glass-border); border-radius: 9px; outline: 0; appearance: none; background: var(--pill-bg); color: var(--text-main); font-size: 10px; cursor: pointer; } .filter-select-wrap select:focus { border-color: rgba(2, 132, 199, 0.45); } .filter-select-wrap select:disabled { opacity: 0.46; cursor: not-allowed; } .filter-result-meta { flex: 0 0 auto; padding: 0 3px; color: var(--text-muted); font: 9px/1.2 'JetBrains Mono', monospace; white-space: nowrap; } .location-feedback { position: absolute; top: calc(100% + 6px); left: 0; max-width: min(360px, 90vw); padding: 7px 10px; border: 1px solid rgba(220, 38, 38, 0.18); border-radius: 9px; background: var(--glass-bg); color: #b91c1c; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12); font-size: 10px; line-height: 1.4; backdrop-filter: blur(18px); } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } .status-glass-pill { display: flex; align-items: center; gap: 6px; padding: 4px 12px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px; font-size: 11px; color: var(--text-main); } .pulse-ring { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-cyan); } .map-legend-glass { display: flex; gap: 10px; padding: 4px 10px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 8px; font-size: 10px; color: var(--text-muted); } .leg-item { display: flex; align-items: center; gap: 4px; } .dot { width: 5px; height: 5px; border-radius: 50%; } .dot-primary { background: var(--accent-cyan); } .dot-mid { background: var(--accent-blue); } .dot-low { background: var(--text-sub); } .amap-canvas-box { flex: 1; position: relative; width: 100%; height: 100%; } #amapContainer { width: 100%; height: 100%; } .navigation-launch-overlay { position: absolute; z-index: 28; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(15, 23, 42, 0.14); backdrop-filter: blur(1.5px); -webkit-backdrop-filter: blur(1.5px); opacity: 0; pointer-events: none; transition: opacity 0.18s ease; } .navigation-launch-overlay[hidden] { display: none; } .navigation-launch-overlay.is-visible { opacity: 1; pointer-events: auto; } .navigation-launch-panel { display: flex; align-items: center; gap: 11px; max-width: min(280px, calc(100vw - 48px)); padding: 13px 15px; border: 1px solid rgba(255, 255, 255, 0.64); border-radius: 16px; background: color-mix(in srgb, var(--glass-bg) 94%, white); box-shadow: 0 18px 42px rgba(15, 23, 42, 0.2); transform: translateY(8px) scale(0.97); transition: transform 0.22s cubic-bezier(.2, .75, .25, 1); } .navigation-launch-overlay.is-visible .navigation-launch-panel { transform: translateY(0) scale(1); } .navigation-launch-panel strong, .navigation-launch-panel span { display: block; } .navigation-launch-panel strong { color: var(--text-main); font-size: 12px; line-height: 1.35; } .navigation-launch-panel div > span { margin-top: 2px; color: var(--text-muted); font-size: 10px; line-height: 1.45; } .navigation-launch-spinner { width: 20px; height: 20px; flex: 0 0 20px; border: 2px solid rgba(0, 113, 67, 0.18); border-top-color: var(--accent-primary); border-radius: 50%; animation: navigation-spin 0.78s linear infinite; } @keyframes navigation-spin { to { transform: rotate(360deg); } } .map-detail-card { position: absolute; left: 14px; bottom: 18px; z-index: 15; width: min(292px, calc(100% - 148px)); max-height: min(236px, calc(100% - 120px)); overflow: auto; padding: 11px 12px; border: 1px solid var(--glass-border); border-radius: 15px; background: var(--glass-bg); box-shadow: 0 18px 45px rgba(15, 23, 42, 0.2); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); animation: detail-card-enter 0.2s ease-out; } .map-detail-card[hidden] { display: none; } @keyframes detail-card-enter { from { opacity: 0; transform: translateY(7px) scale(0.985); } to { opacity: 1; transform: translateY(0) scale(1); } } .detail-card-accent { position: absolute; inset: 0 auto 0 0; width: 3px; border-radius: 15px 0 0 15px; background: var(--accent-blue); } .detail-card-accent.is-station { background: var(--accent-primary); } .detail-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--glass-border); } .detail-title-wrap { min-width: 0; } .detail-card-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 5px; } .detail-type-pill { display: inline-flex; margin-bottom: 4px; padding: 2px 7px; border-radius: 999px; background: rgba(37, 99, 235, 0.1); color: var(--accent-blue); font-size: 9px; font-weight: 700; } .detail-type-pill.is-station { background: rgba(0, 113, 67, 0.1); color: var(--accent-primary); } .detail-title-wrap h2 { overflow: hidden; color: var(--text-main); font-size: 13px; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; } .detail-title-wrap p { overflow: hidden; margin-top: 2px; color: var(--text-muted); font-size: 9px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; } .detail-close-btn { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; border: 0; border-radius: 50%; background: var(--pill-bg); color: var(--text-muted); font-size: 15px; line-height: 1; cursor: pointer; } .detail-navigate-btn { display: grid; width: 26px; height: 26px; flex: 0 0 26px; place-items: center; border: 1px solid rgba(0, 113, 67, 0.16); border-radius: 50%; background: rgba(0, 113, 67, 0.09); color: var(--accent-primary); cursor: pointer; transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease; } .detail-navigate-btn:hover { transform: translateY(-1px); border-color: rgba(0, 113, 67, 0.34); background: rgba(0, 113, 67, 0.15); } .detail-navigate-btn:disabled { cursor: default; opacity: 0.45; } .detail-navigate-btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; } .detail-navigate-btn.is-launching { transform: scale(0.92); background: rgba(0, 113, 67, 0.17); } .detail-navigate-btn.is-launching svg { animation: navigation-pulse 0.7s ease-in-out infinite alternate; } @keyframes navigation-pulse { to { transform: scale(1.15); } } @media (prefers-reduced-motion: reduce) { .navigation-launch-overlay, .navigation-launch-panel { transition: none; } .navigation-launch-spinner, .detail-navigate-btn.is-launching svg { animation: none; } } .detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 10px; padding-top: 8px; } .detail-field { min-width: 0; } .detail-field.is-wide { grid-column: 1 / -1; } .detail-field dt { margin-bottom: 3px; color: var(--text-muted); font-size: 9px; } .detail-field dd { overflow-wrap: anywhere; color: var(--text-main); font: 600 10px/1.35 'JetBrains Mono', -apple-system, sans-serif; } .detail-field.is-extra { display: none; } .map-detail-card.is-expanded .detail-field.is-extra { display: block; } .detail-expand-btn { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 0; border: 0; background: transparent; color: var(--accent-blue); font-size: 10px; font-weight: 600; cursor: pointer; } .detail-expand-btn[hidden] { display: none; } .map-action-controls { position: absolute; bottom: 24px; right: 14px; display: flex; gap: 6px; z-index: 10; } .glass-btn { padding: 4px 10px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 8px; color: var(--text-main); font-size: 10px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; } .glass-btn:hover { border-color: var(--text-muted); } .map-bottom-info { height: 24px; background: rgba(0, 0, 0, 0.15); display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-size: 10px; color: var(--text-muted); border-top: 1px solid var(--glass-border); } /* RIGHT SIDEBAR */ .sidebar-operations { display: flex; flex-direction: column; gap: 12px; min-height: 0; } .sidebar-card { display: flex; flex-direction: column; padding: 12px 14px; overflow: hidden; } .flex-fill-auto { flex: 1; min-height: 0; } .panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--glass-border); } .panel-title { font-size: 12px; font-weight: 600; color: var(--text-main); } .panel-heading-stack { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .viewport-meta { color: var(--text-muted); font-size: 9px; font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; white-space: nowrap; } .panel-tag { font-size: 9px; padding: 1px 5px; background: var(--pill-bg); border-radius: 4px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; } /* Card 1: Clean Status Cells */ .status-glass-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; } .glass-cell { padding: 6px 8px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--glass-border); border-radius: 8px; } .cell-num { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 700; color: var(--text-main); line-height: 1.1; } .cell-num small { font-size: 9px; color: var(--text-muted); } .cell-label { display: flex; align-items: center; gap: 3px; font-size: 9px; color: var(--text-muted); margin-top: 2px; } .status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; } .dot-mint { background: var(--accent-mint); } .dot-blue { background: var(--accent-blue); } .dot-sub { background: var(--text-sub); } .dot-total { background: var(--accent-cyan); } .liquid-progress-bar { display: flex; height: 4px; border-radius: 2px; overflow: hidden; background: rgba(0, 0, 0, 0.2); } .seg { height: 100%; } .seg-running { background: var(--accent-mint); } .seg-stopped { background: var(--accent-blue); } /* Card 2: TOP Ranking List */ .glass-tab-control { display: flex; gap: 2px; background: var(--segmented-bg); padding: 1px; border-radius: 6px; } .gtab { padding: 2px 6px; background: transparent; border: none; border-radius: 4px; font-size: 9px; color: var(--text-muted); cursor: pointer; } .gtab.active { background: var(--glass-bg); color: var(--text-main); font-weight: 600; } .liquid-ranking-list { display: flex; flex-direction: column; gap: 5px; overflow-y: auto; flex: 1; } .rank-empty { display: flex; align-items: center; justify-content: center; flex: 1; min-height: 120px; padding: 24px 16px; border: 1px dashed var(--glass-border); border-radius: 12px; color: var(--text-muted); font-size: 11px; line-height: 1.6; text-align: center; } .rank-empty-viewport { flex-direction: column; gap: 8px; } .rank-empty-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--pill-bg); color: var(--accent-primary); font-size: 16px; } .rank-glass-row { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; font-size: 11px; background: rgba(255, 255, 255, 0.01); border: 1px solid var(--glass-border); transition: all 0.15s ease; cursor: pointer; } .rank-glass-row:hover { background: var(--pill-bg); border-color: var(--glass-hover-border); } .rank-glass-row.is-selected { border-color: rgba(2, 132, 199, 0.42); background: rgba(2, 132, 199, 0.08); } .r-badge { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 9.5px; font-family: 'JetBrains Mono', monospace; flex-shrink: 0; } /* Scoped Theme Ranking Badge Colors for High Contrast in Both Modes */ /* 1. Dark Mode Ranking Badges */ .theme-dark .r-badge.r-top1 { background: #38BDF8; color: #0A0B0E; font-weight: 800; } .theme-dark .r-badge.r-top2 { background: rgba(56, 189, 248, 0.2); color: #38BDF8; border: 1px solid rgba(56, 189, 248, 0.3); } .theme-dark .r-badge.r-top3 { background: rgba(255, 255, 255, 0.1); color: #CBD5E1; } .theme-dark .r-badge { background: rgba(255, 255, 255, 0.06); color: #64748B; } /* 2. Light Mode Ranking Badges (Clear High-Contrast Blue/Green/Dark Gray) */ .theme-white .r-badge.r-top1 { background: #007143; color: #FFFFFF; font-weight: 800; } .theme-white .r-badge.r-top2 { background: #0284C7; color: #FFFFFF; font-weight: 700; } .theme-white .r-badge.r-top3 { background: rgba(0, 0, 0, 0.08); color: #1D1D1F; font-weight: 700; } .theme-white .r-badge { background: rgba(0, 0, 0, 0.04); color: #86868B; } .r-name { font-weight: 500; color: var(--text-main); flex: 1; } .r-val { font-family: 'JetBrains Mono', monospace; font-weight: 600; color: var(--text-main); } /* Custom Scrollbars */ ::-webkit-scrollbar { width: 3px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 3px; } /* AMAP MAP PROVINCE BUOYS */ .amap-logo, .amap-copyright { opacity: 0.2 !important; filter: invert(0.9) hue-rotate(180deg) !important; } .province-info-badge-wrap { position: relative; z-index: 10; } .map-info-window { min-width: 190px; max-width: 300px; padding: 11px 14px; border: 1px solid var(--glass-border); border-radius: 12px; background: var(--glass-bg); color: var(--text-main); box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16); backdrop-filter: blur(18px); font: 12px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; } .map-info-window strong { display: block; margin-bottom: 4px; font-size: 13px; } .province-info-badge-wrap:hover { z-index: 999 !important; } .province-info-card { display: inline-flex; flex-direction: column; padding: 3px 8px; background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border); border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); cursor: pointer; white-space: nowrap; transition: transform 0.2s ease; } .province-info-card.is-vehicle-point { border-radius: 10px; border-color: rgba(2, 132, 199, 0.34); box-shadow: 0 5px 16px rgba(2, 132, 199, 0.18); } .province-info-card.is-vehicle-point.is-online .p-dot { background: #00a86b; } .province-info-card.is-vehicle-point.is-offline .p-dot { background: #8e8e93; } .province-info-card.is-selected { border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12), 0 9px 24px rgba(2, 132, 199, 0.2); } .user-location-marker { position: relative; width: 18px; height: 18px; border: 3px solid #fff; border-radius: 50%; background: #1677ff; box-shadow: 0 3px 10px rgba(22, 119, 255, 0.38); } .user-location-marker::before { content: ''; position: absolute; inset: -8px; border: 1px solid rgba(22, 119, 255, 0.35); border-radius: 50%; animation: user-location-wave 1.8s ease-out infinite; } @keyframes user-location-wave { from { opacity: 0.9; transform: scale(0.55); } to { opacity: 0; transform: scale(1.35); } } .province-info-badge-wrap:hover .province-info-card { transform: scale(1.15); border-color: var(--accent-cyan) !important; } .p-head { display: flex; align-items: center; gap: 4px; } .p-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-cyan); } .p-name { font-size: 10px; font-weight: 500; color: var(--text-main); } .p-total { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; color: var(--accent-quantity); margin-left: 2px; } .p-sub { font-size: 8px; color: var(--text-sub); margin-top: 1px; } /* -------------------------------------------------------------------------- MOBILE / NARROW VIEWPORT -------------------------------------------------------------------------- */ @media (min-width: 769px) and (max-width: 1180px) { .filter-chip-rail { max-width: 190px; } } @media (max-width: 768px) { body { height: auto; min-height: 100dvh; overflow-x: hidden; overflow-y: auto; } .liquid-cockpit-wrapper { width: 100%; height: auto; min-height: 100dvh; padding: 8px; gap: 8px; } .liquid-header { height: auto; min-height: 0; padding: 10px; flex-wrap: wrap; gap: 10px; } .header-left { width: 100%; min-width: 0; gap: 10px; } .brand-block { flex: 0 1 150px; min-width: 118px; } .brand-logo-svg { width: 100%; max-width: 150px; height: auto; } .brand-divider { flex: 0 0 1px; } .cockpit-title-wrap { min-width: 0; flex: 1; justify-content: flex-end; } .cockpit-title { flex: 0 0 auto; font-size: 15px; white-space: nowrap; word-break: keep-all; } .de-tag { display: none; } .header-kpi-group { order: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 6px; } .kpi-glass-capsule { min-width: 0; padding: 5px 7px; } .capsule-lbl { overflow: hidden; font-size: 8px; white-space: nowrap; text-overflow: ellipsis; } .capsule-val { font-size: 12px; white-space: nowrap; } .header-controls { order: 3; width: 100%; justify-content: space-between; gap: 4px; } .segment-btn, .bw-btn { padding: 4px 8px; font-size: 10px; } .time-widget { display: none; } .cockpit-main-grid { grid-template-columns: minmax(0, 1fr); flex: none; min-height: 0; gap: 8px; } .map-spatial-container { height: 520px; min-height: 520px; } .map-top-bar { top: 8px; left: 8px; right: 8px; } .map-explore-toolbar { top: 44px; left: 8px; right: 8px; max-width: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; } .locate-btn { flex: 0 0 32px; } .explore-search-shell { flex: 1 1 170px; } .entity-search-field { width: 100%; min-width: 0; } .filter-chip-rail { order: 3; flex: 1 1 calc(100% - 78px); max-width: none; overflow-x: auto; overscroll-behavior-x: contain; } .filter-result-meta { order: 4; flex: 0 0 auto; max-width: 76px; overflow: hidden; text-overflow: ellipsis; } .explore-suggestions { width: min(420px, calc(100vw - 32px)); max-height: 300px; } .status-glass-pill { min-width: 0; max-width: 100%; padding: 4px 8px; } #mapStatusText { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .map-legend-glass { display: none; } .map-action-controls { right: 8px; bottom: 30px; gap: 4px; } .map-detail-card { left: 8px; right: 8px; bottom: 54px; width: auto; max-height: min(220px, calc(100% - 140px)); padding: 10px 12px; } .detail-grid { gap: 8px 12px; } .glass-btn { padding: 5px 7px; font-size: 9px; } .map-bottom-info { justify-content: flex-start; overflow: hidden; } .map-bottom-info span:not(:last-child) { display: none; } .sidebar-operations { min-height: auto; } .sidebar-card { overflow: visible; } .liquid-ranking-list { max-height: none; overflow: visible; } } @media (max-width: 390px) { .brand-block { flex-basis: 138px; } .brand-logo-svg { max-width: 138px; } .theme-switcher-bw .bw-btn span { display: none; } }