* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "Segoe UI", sans-serif;
    background: #f5f6f8;
    color: #222;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 16px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.topbar h1 {
    font-size: 18px;
    margin: 0;
}

.filename {
    color: #666;
    font-size: 13px;
}

.btn {
    border: 1px solid #d0d5dd;
    background: #fff;
    padding: 7px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2;
}
.btn:hover { background: #f0f2f5; }

.btn.primary {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
}
.btn.primary:hover { background: #1666c9; }

.status {
    padding: 8px 16px;
    font-size: 13px;
    color: #555;
    min-height: 18px;
    background: #fafbfc;
    border-bottom: 1px solid #eef0f3;
}
.status.err { color: #c0392b; }

.map-wrap {
    position: relative;
    flex: 1;
    width: 100%;
    min-height: 300px;
}
#map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
/* 轨迹绘制层：覆盖在地图之上，纯透明，仅画蓝/红轨迹线，不拦截鼠标 */
#trackCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.panel {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 12px 16px;
}
.panel.hidden { display: none; }

.controls {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.controls .speed {
    font-size: 14px;
    color: #444;
}
.controls select {
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid #d0d5dd;
    margin-left: 4px;
}

#progress {
    width: 100%;
    cursor: pointer;
}

.info {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 10px;
    font-size: 14px;
}
.info .k {
    display: inline-block;
    min-width: 42px;
    color: #888;
    margin-right: 6px;
}
.info .sep {
    flex-basis: 100%;
    height: 1px;
    background: #eceef1;
    margin: 2px 0;
}
.info .sub {
    flex-basis: 100%;
    font-weight: 600;
    color: #1a73e8;
    font-size: 13px;
    letter-spacing: 1px;
}
