/*
 * 产品展示以 NaviTool 当前控件为依据，页面外框保留官网视觉。
 * 红绿灯：TrafficLightView / MatrixTrafficLightView / FloatingTrafficLightController。
 * 状态：activity_main.xml / values-night/colors.xml。
 * 悬浮球：service_floating_ball.xml / dialog_app_list.xml / bg_floating_ball.xml。
 */

/* 四个布局槽位没有固定用途，示例只调整同一组组件的摆放。 */
.hud-screen {
    height: 330px;
    grid-template-areas: "map speed" "music music";
    grid-template-rows: 1fr auto;
}
.hud-navigation { grid-area: map; }
.hud-speed { grid-area: speed; }
.hud-music { grid-area: music; }
.hud-device[data-hud-layout="2"] .hud-screen {
    grid-template-areas: "speed map" "music music";
    grid-template-columns: .85fr 1fr;
}
.hud-device[data-hud-layout="3"] .hud-screen {
    grid-template-areas: "music music" "map speed";
    grid-template-rows: auto 1fr;
}
.hud-device[data-hud-layout="4"] .hud-screen {
    grid-template-areas: "music music" "speed map";
    grid-template-columns: .85fr 1fr;
    grid-template-rows: auto 1fr;
}
.hud-device[data-hud-layout="3"] .hud-music,
.hud-device[data-hud-layout="4"] .hud-music {
    border-top: 0;
    border-bottom: 1px solid #77758b24;
    margin-top: 0;
    padding: 0 0 12px;
}
.layout-picker {
    display: flex;
    gap: 4px;
    width: fit-content;
    max-width: 100%;
    margin: 33px auto 0;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #111017;
}
.layout-picker button {
    min-height: 40px;
    padding: 7px 17px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #a8a7b6;
    font-size: 12px;
    transition: color .2s, background .2s;
}
.layout-picker button[aria-pressed="true"] {
    color: #fff;
    background: var(--brand-gradient);
}

/* 导航胶囊与巡航矩阵共用产品的彩色圆形箭头和白色读秒。 */
.traffic-scene,.orb-scene {
    position: relative;
    height: 300px;
    overflow: hidden;
    margin: 0 -30px;
    border-top: 1px solid #b4d7cc0a;
}
.traffic-scene { background: linear-gradient(160deg,#191c31,#111522); }
.native-traffic-examples {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 26px 30px;
    z-index: 1;
}
.native-widget-label {
    display: block;
    margin-bottom: 10px;
    color: #b8c6c5;
    font-size: 10px;
    letter-spacing: 1px;
}
.native-traffic-capsule,.native-traffic-matrix {
    display: flex;
    width: fit-content;
    border: 1.5px solid white;
    background: rgba(61,70,82,.86);
    box-shadow: 0 12px 25px #0003;
}
.native-traffic-capsule { gap: 8px; padding: 3px 7px 3px 3px; border-radius: 24px; }
.native-light { display: flex; align-items: center; gap: 7px; }
.native-light-circle {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}
.native-light-circle.red { background: #ff4444; }
.native-light-circle.green { background: #44ff44; }
.native-light-circle .icon { width: 19px; height: 19px; }
.direction-left { transform: rotate(-90deg); }
.direction-right { transform: rotate(90deg); }
.native-light>b { min-width: 42px; color: #fff; font-size: 25px; line-height: 1; font-weight: 400; text-align: center; font-variant-numeric: tabular-nums; }
.matrix-example { align-self: flex-end; }
.native-traffic-matrix { gap: 10px; padding: 9px 12px; border-radius: 8px; }
.native-traffic-matrix .native-light { flex-direction: column; gap: 7px; }
.native-traffic-matrix .native-light-circle { width: 28px; height: 28px; }
.native-traffic-matrix .native-light>b { min-width: 33px; font-size: 24px; font-weight: 600; }
.traffic-scene .scene-route { inset: 100px 0 0 15%; }

/* 原生悬浮球的黑色半透明底、白色描边及应用面板结构。 */
.orb-scene { background: radial-gradient(ellipse at 50% 65%,#504a8030,transparent 75%),#121522; }
.orb-button {
    position: absolute;
    bottom: 49px;
    left: 25px;
    display: grid;
    place-items: center;
    width: 49px;
    height: 49px;
    border: 1.5px solid #fff;
    border-radius: 50%;
    background: #0009;
    color: #fff;
    transition: background .2s;
    z-index: 2;
}
.orb-button:hover { background: #2e3438; }
.native-ball-bars { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 21px; }
.native-ball-bars i { display: block; height: 3px; width: 100%; border-radius: 1px; background: #fff; }
.native-ball-bars i:nth-child(2) { width: 71%; }
.native-ball-bars i:nth-child(3) { width: 42%; }
.orb-menu {
    position: absolute;
    display: grid;
    grid-template-columns: 80px 1fr;
    top: 24px;
    right: 22px;
    left: 22px;
    height: 210px;
    padding: 13px;
    border: 1px solid #ffffff33;
    border-radius: 12px;
    background: #000c;
    color: #fff;
    transition: opacity .25s, transform .25s, visibility .25s;
}
.orb-scene.is-enhanced .orb-menu:not(.is-open) { visibility: hidden; opacity: 0; transform: translateY(12px); }
.orb-menu.is-open { visibility: visible; opacity: 1; transform: none; }
.native-seat-list { border-right: 1px solid #ffffff55; padding-right: 12px; }
.native-seat-list>strong { display: block; font-size: 11px; text-align: center; margin-bottom: 13px; }
.native-seat-list>span { display: flex; align-items: center; justify-content: space-evenly; gap: 7px; padding: 5px 3px; margin-top: 8px; border: 1px solid #ffffff33; border-radius: 4px; font-size: 15px; background: #ffffff08; }
.native-seat-list img { width: 24px; height: 24px; filter: brightness(0) invert(1); }
.native-quick-launch { padding-left: 14px; min-width: 0; }
.native-menu-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.native-menu-heading>strong { font-size: 12px; font-weight: 500; }
.native-dock { display: inline-flex; gap: 5px; align-items: center; margin-left: auto; font-size: 10px; }
.native-dock i { display: block; width: 23px; height: 12px; background: #3ea5b5; border-radius: 10px; position: relative; }
.native-dock i::after { content: ""; position: absolute; height: 9px; width: 9px; top: 1.5px; right: 2px; border-radius: 50%; background: white; }
.orb-menu-close { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: #fff; font-size: 23px; line-height: 1; }
.native-pinned-app { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; margin: 0 0 7px 8px; font-size: 9px; }
.native-pinned-app img { width: 35px; height: 35px; border-radius: 7px; }
.native-pin-hint { display: block; color: #ffffff80; font-size: 8px; padding-bottom: 10px; border-bottom: 1px solid #ffffff55; }
.native-app-list-hint { font-size: 11px; margin-top: 12px; color: #c6cccd; }
.native-app-list-hint small { font-size: 9px; color: #899496; }
.orb-hint { position: absolute; bottom: 22px; right: 20px; left: 20px; margin: 0; text-align: center; color: #a0aeaa; font-size: 10px; }
.orb-scene .scene-note { left: auto; right: 20px; bottom: 8px; font-size: 7px; }
.orb-button[aria-expanded="true"] { bottom: 7px; left: 8px; width: 34px; height: 34px; }
.orb-button[aria-expanded="true"] .native-ball-bars { width: 15px; gap: 3px; }
.orb-button[aria-expanded="true"] .native-ball-bars i { height: 2px; }

/* 展示四个资源与液位仪表及保养提醒，使用应用夜间色值。 */
.status-section { display: block; }
.native-dashboard { padding: 28px 30px 22px; background: #10252a; border-color: #25464f; border-radius: 14px; color: #eafbfd; }
.native-dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 31px; }
.native-dashboard-heading h3 { font-size: 18px; font-weight: 650; margin: 0; }
.native-dashboard-heading>span { color: #9db7be; font-size: 10px; }
.native-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.native-metric { display: flex; align-items: center; flex-direction: column; padding: 0 13px; border-right: 1px solid #25464f; min-width: 0; }
.native-metric:last-child { border: 0; }
.native-metric h3 { margin: 0 0 10px; font-size: 15px; font-weight: 650; }
.native-gauge { width: 144px; max-width: 100%; aspect-ratio: 1; position: relative; }
.native-gauge>svg { width: 100%; height: 100%; display: block; fill: none; }
.native-track { fill: none; stroke: #25464f; stroke-width: 8px; }
.native-progress { fill: none; stroke: #36cfe0; stroke-width: 8px; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 72px 72px; }
.native-gauge>span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.native-gauge b { font-size: 28px; line-height: 1.4; font-weight: 650; }
.native-gauge b small { font-size: 15px; margin-left: 2px; }
.native-gauge span>small { font-size: 11px; color: #9db7be; }
.native-metric-detail { font-size: 11px; color: #9db7be; margin-top: 10px; min-height: 18px; }
.native-status-pill { display: block; margin-top: 10px; padding: 4px 13px; border-radius: 5px; background: #153a42; color: #9eebf2; font-size: 10px; font-weight: 550; }
.native-status-pill.is-unknown { color: #d0e0e4; background: #243236; }
.native-maintenance { display: flex; gap: 40px; align-items: center; margin-top: 30px; padding: 23px 24px; border-top: 1px solid #25464f; }
.native-maintenance h3 { font-size: 14px; margin: 0 auto 0 0; font-weight: 600; }
.native-maintenance>div { min-width: 170px; display: flex; flex-direction: column; gap: 5px; }
.native-maintenance>div+div { border-left: 1px solid #25464f; padding-left: 40px; }
.native-maintenance span { font-size: 11px; color: #9db7be; }
.native-maintenance b { color: #36cfe0; font-size: 24px; line-height: 1.3; font-weight: 600; font-variant-numeric: tabular-nums; }
.native-maintenance b small { font-size: 13px; font-weight: 450; }
.native-data-note { margin: 3px 0 0; color: #9db7be; font-size: 9px; text-align: right; }

@media (max-width: 800px) {
    .traffic-scene,.orb-scene { margin-inline: -23px; }
    .native-traffic-examples { padding: 25px; }
    .native-traffic-capsule { gap: 5px; }
    .native-traffic-capsule .native-light { gap: 3px; }
    .native-traffic-capsule .native-light>b { min-width: 32px; font-size: 23px; }
    .orb-menu { left: 12px; right: 12px; grid-template-columns: 63px 1fr; padding: 10px; }
    .native-quick-launch { padding-left: 9px; }
    .native-menu-heading { gap: 3px; }
    .native-menu-heading>strong { font-size: 10px; }
    .native-dock { font-size: 8px; }
    .native-dock i { width: 18px; }
    .native-seat-list { padding-right: 8px; }
    .native-seat-list>strong { font-size: 9px; }
    .native-seat-list img { width: 20px; height: 20px; }
    .native-pin-hint { font-size: 7px; }
    .native-dashboard { padding: 25px 20px 20px; }
    .native-metric { padding-inline: 7px; }
    .native-metric h3 { font-size: 12px; }
    .native-gauge b { font-size: 23px; }
    .native-gauge b small { font-size: 12px; }
    .native-gauge span>small { font-size: 9px; }
    .native-metric-detail { font-size: 9px; }
    .native-status-pill { padding: 4px 8px; font-size: 9px; }
    .native-maintenance { gap: 20px; padding: 22px 8px; }
    .native-maintenance>div { min-width: 130px; }
    .native-maintenance>div+div { padding-left: 20px; }
}
@media (max-width: 540px) {
    .hud-screen { height: 275px; }
    .layout-picker { gap: 3px; margin-top: 28px; padding: 4px; }
    .layout-picker button { font-size: 11px; min-height: 40px; padding: 8px 14px; }
    .traffic-scene,.orb-scene { margin-inline: -25px; }
    .native-dashboard { padding: 24px 16px 18px; }
    .native-dashboard-heading { align-items: flex-start; flex-direction: column; gap: 7px; margin-bottom: 25px; }
    .native-dashboard-heading h3 { font-size: 17px; }
    .native-dashboard-heading>span { font-size: 9px; }
    .native-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px 0; }
    .native-metric { padding-inline: 10px; }
    .native-metric:nth-child(even) { border-right: 0; }
    .native-metric h3 { font-size: 13px; margin-bottom: 5px; }
    .native-gauge { width: 126px; }
    .native-gauge b { font-size: 26px; }
    .native-gauge span>small { font-size: 10px; }
    .native-metric-detail { font-size: 10px; margin-top: 5px; }
    .native-status-pill { font-size: 10px; padding: 4px 11px; }
    .native-maintenance { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 12px; padding: 21px 2px 15px; margin-top: 25px; }
    .native-maintenance h3 { grid-column: 1 / -1; font-size: 13px; }
    .native-maintenance>div { min-width: 0; }
    .native-maintenance>div+div { padding-left: 15px; }
    .native-maintenance span { font-size: 10px; }
    .native-maintenance b { font-size: 23px; }
    .native-data-note { font-size: 8px; text-align: left; line-height: 1.8; }
}
