  * { margin: 0; padding: 0; box-sizing: border-box; }
    .amap-logo, .amap-copyright { display: none !important; }     
     body { font-family: 'Microsoft YaHei', sans-serif; overflow: hidden; height: 100vh; display: flex; flex-direction: column; }
        .toolbar {
            background: #2c3e50; color: white; padding: 8px 16px; display: flex; flex-wrap: wrap; gap: 10px;
            align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.2); z-index: 10;
        }
        .toolbar button, .toolbar select {
            background: #1e2a36; border: none; color: white; padding: 6px 12px; border-radius: 6px;
            cursor: pointer; font-size: 13px; transition: 0.2s;
        }
        .toolbar button:hover { background: #ff8c00; }
        .toolbar .active-btn { background: #ff8c00; color: #fff; }
        .toolbar .group {
            display: flex; gap: 4px; align-items: center;
            border-left: 1px solid #5a6e7c; padding-left: 12px; margin-left: 4px;
        }
        .main-layout { display: flex; flex: 1; overflow: hidden; }
        .sidebar {
            width: 320px; background: #f4f7fb; border-right: 1px solid #ccc;
            display: flex; flex-direction: column; overflow-y: auto; padding: 12px; gap: 16px;
        }
        .section { background: white; border-radius: 12px; padding: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
        .section h3 { font-size: 16px; margin-bottom: 12px; border-left: 4px solid #ff8c00; padding-left: 8px; }
        .line-list { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; }
        .line-item {
            background: #fff; border-radius: 8px; padding: 8px; border-left: 4px solid;
            cursor: pointer; transition: 0.1s; box-shadow: 0 1px 2px rgba(0,0,0,0.05);
        }
        .line-item.active { background: #fff3e0; border-left-width: 6px; }
        .line-name { font-weight: bold; display: flex; justify-content: space-between; }
        .line-stats { font-size: 12px; color: #555; margin-top: 4px; }
        .layer-control { display: flex; flex-direction: column; gap: 6px; }
        .layer-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
        .indicator-panel { font-size: 13px; }
        .indicator-row { display: flex; justify-content: space-between; margin-bottom: 6px; }
        .map-container { flex: 1; position: relative; }
        #map { width: 100%; height: 100%; }
        .floating-tip {
            position: absolute; bottom: 20px; left: 20px; background: rgba(0,0,0,0.7);
            color: white; padding: 5px 10px; border-radius: 8px; font-size: 12px; pointer-events: none; z-index: 1000;
        }
        .amap-bus-toggle {
            position: absolute;
            top: 18px;
            right: 18px;
            z-index: 1200;
            width: 48px;
            height: 48px;
            display: grid;
            place-items: center;
            border: 0;
            border-radius: 14px;
            background: linear-gradient(145deg, #ffffff, #f4fbff);
            box-shadow: 0 12px 30px rgba(27, 49, 75, 0.22);
            cursor: pointer;
            transition: transform 0.18s ease, box-shadow 0.18s ease;
        }
        .amap-bus-toggle:hover,
        .amap-bus-toggle.active {
            transform: translateY(-2px);
            box-shadow: 0 16px 38px rgba(255, 140, 0, 0.3);
        }
        .amap-bus-logo {
            width: 32px;
            height: 32px;
            display: grid;
            place-items: center;
            border-radius: 10px 10px 10px 4px;
            background: linear-gradient(135deg, #1c8df6, #00b578 58%, #ff8c00);
            color: #fff;
            font-size: 18px;
            font-weight: 900;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.38);
        }
        .amap-bus-panel {
            position: absolute;
            top: 76px;
            right: 18px;
            z-index: 1190;
            width: min(360px, calc(100vw - 36px));
            max-height: calc(100vh - 118px);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            border: 1px solid rgba(31, 50, 70, 0.12);
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.94);
            box-shadow: 0 22px 60px rgba(20, 34, 52, 0.24);
            backdrop-filter: blur(14px);
            transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        }
        .amap-bus-panel.hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transform: translateY(-8px);
        }
        .amap-bus-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            padding: 16px 16px 10px;
            border-bottom: 1px solid rgba(31, 50, 70, 0.08);
        }
        .amap-bus-eyebrow {
            display: block;
            margin-bottom: 4px;
            color: #1c8df6;
            font-size: 10px;
            font-weight: 900;
            letter-spacing: 0.08em;
        }
        .amap-bus-header h3 {
            margin: 0;
            color: #1e2a36;
            font-size: 18px;
            line-height: 1.25;
        }
        .amap-panel-icon-btn {
            width: 30px;
            height: 30px;
            border: 0;
            border-radius: 8px;
            background: #eef3f8;
            color: #496171;
            font-size: 22px;
            line-height: 1;
            cursor: pointer;
        }
        .amap-panel-icon-btn:hover {
            background: #dde9f3;
        }
        .amap-bus-status {
            margin: 0;
            padding: 10px 16px 0;
            color: #607080;
            font-size: 12px;
            line-height: 1.6;
        }
        .amap-bus-status.error {
            color: #c0392b;
        }
        .amap-bus-actions {
            display: grid;
            grid-template-columns: 1fr 68px 68px;
            gap: 8px;
            padding: 12px 16px;
        }
        .amap-bus-actions button {
            min-height: 34px;
            border: 1px solid #d9e2ea;
            border-radius: 8px;
            background: #f8fbfd;
            color: #253746;
            cursor: pointer;
            font-size: 12px;
            font-weight: 800;
        }
        .amap-bus-actions button:hover {
            border-color: #9ec4e8;
            background: #eef7ff;
        }
        .amap-bus-actions button:disabled {
            cursor: progress;
            opacity: 0.62;
        }
        .amap-bus-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            padding: 0 16px 16px;
            overflow-y: auto;
        }
        .amap-bus-empty {
            padding: 18px 12px;
            border: 1px dashed #ccd7e0;
            border-radius: 10px;
            color: #6c7d89;
            text-align: center;
            font-size: 13px;
            line-height: 1.6;
        }
        .amap-bus-item {
            position: relative;
            display: grid;
            grid-template-columns: 18px 1fr;
            gap: 10px;
            align-items: flex-start;
            padding: 12px;
            border: 1px solid #e2e9ef;
            border-radius: 10px;
            background: #fff;
            box-shadow: 0 8px 18px rgba(31, 50, 70, 0.08);
        }
        .amap-bus-item input {
            margin-top: 3px;
            accent-color: #1c8df6;
        }
        .amap-bus-title {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
            color: #243646;
            font-size: 14px;
            font-weight: 900;
            line-height: 1.35;
        }
        .amap-bus-swatch {
            flex: 0 0 auto;
            width: 11px;
            height: 11px;
            border-radius: 999px;
            box-shadow: 0 0 0 3px rgba(31, 50, 70, 0.08);
        }
        .amap-bus-route {
            margin-top: 4px;
            color: #61717e;
            font-size: 12px;
            line-height: 1.45;
        }
        .amap-bus-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 8px;
        }
        .amap-bus-meta span {
            display: inline-flex;
            align-items: center;
            min-height: 20px;
            border-radius: 999px;
            background: #f0f5f9;
            color: #506171;
            padding: 0 8px;
            font-size: 11px;
            font-weight: 700;
        }
        .amap-route-label {
            border: 1px solid rgba(255,255,255,0.88);
            border-radius: 999px;
            background: color-mix(in srgb, var(--line-color) 88%, #111 12%);
            color: #fff;
            padding: 4px 10px;
            box-shadow: 0 6px 18px rgba(24, 36, 48, 0.18);
            font-size: 12px;
            font-weight: 900;
            white-space: nowrap;
        }
        .amap-stop-marker {
            width: 10px;
            height: 10px;
            border: 2px solid #fff;
            border-radius: 999px;
            background: var(--line-color);
            box-shadow: 0 3px 10px rgba(24, 36, 48, 0.2);
        }
        .amap-stop-marker.is-endpoint {
            width: 24px;
            height: 24px;
            display: grid;
            place-items: center;
            color: #fff;
            font-size: 11px;
            font-weight: 900;
        }
        @media (max-width: 760px) {
            .amap-bus-toggle {
                top: 12px;
                right: 12px;
                width: 44px;
                height: 44px;
            }
            .amap-bus-panel {
                position: fixed;
                top: 64px;
                right: 12px;
                left: 12px;
                width: auto;
                max-height: calc(100vh - 104px);
            }
        }
        .import-file { display: none; }
        .stop-table { width: 100%; border-collapse: collapse; font-size: 12px; }
        .stop-table th, .stop-table td { border: 1px solid #ddd; padding: 6px; text-align: left; }
        .btn-small { background: #2c3e50; color: white; border: none; padding: 4px 8px; border-radius: 4px; cursor: pointer; }
        .layer-table-container { max-height: 500px; overflow-y: auto; }
        .line-name-input { width: 100%; padding: 4px 8px; border: 1px solid #ccc; border-radius: 4px; }
        .dialog-buttons { text-align: center; margin-top: 20px; }
        .dialog-buttons .layui-btn { margin: 0 10px; min-width: 100px; }
        .bus-polyline {
            stroke-linejoin: round !important;
            stroke-linecap: round !important;
            z-index: 50 !important;
        }
        .route-loading {
            position: fixed;
            inset: 0;
            z-index: 3000;
            display: grid;
            place-items: center;
            padding: 24px;
            background:
                linear-gradient(135deg, rgba(22, 34, 49, 0.88), rgba(8, 12, 18, 0.72)),
                radial-gradient(circle at 72% 22%, rgba(255, 140, 0, 0.24), transparent 34%),
                radial-gradient(circle at 24% 78%, rgba(46, 204, 113, 0.18), transparent 36%);
            backdrop-filter: blur(10px);
            opacity: 1;
            pointer-events: auto;
            transition: opacity 0.35s ease, visibility 0.35s ease;
        }
        .route-loading.hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }
        .loading-card {
            width: min(460px, calc(100vw - 48px));
            border: 1px solid rgba(255, 255, 255, 0.16);
            border-radius: 18px;
            padding: 30px 30px 24px;
            color: #fff;
            background: linear-gradient(160deg, rgba(18, 31, 45, 0.94), rgba(16, 23, 32, 0.9));
            box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.12);
        }
        .loading-orbit {
            position: relative;
            width: 118px;
            height: 118px;
            margin: 0 auto 22px;
            border-radius: 50%;
            border: 1px solid rgba(255, 255, 255, 0.18);
            background:
                linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.13) 49%, rgba(255, 255, 255, 0.13) 51%, transparent 52%),
                linear-gradient(0deg, transparent 48%, rgba(255, 255, 255, 0.13) 49%, rgba(255, 255, 255, 0.13) 51%, transparent 52%),
                radial-gradient(circle, rgba(255, 140, 0, 0.28), rgba(255, 140, 0, 0.08) 35%, transparent 58%);
            overflow: hidden;
        }
        .loading-orbit::before,
        .loading-orbit::after {
            content: "";
            position: absolute;
            inset: 18px;
            border-radius: 50%;
            border: 1px dashed rgba(255, 255, 255, 0.26);
        }
        .loading-orbit::after {
            inset: 38px;
            border-style: solid;
            border-color: rgba(46, 204, 113, 0.45);
            box-shadow: 0 0 18px rgba(46, 204, 113, 0.24);
        }
        .orbit-dot {
            position: absolute;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #ff8c00;
            box-shadow: 0 0 18px rgba(255, 140, 0, 0.8);
            animation: orbit 2.7s linear infinite;
            transform-origin: 49px 49px;
            left: 54px;
            top: 54px;
        }
        .dot-b { background: #2ecc71; animation-delay: -0.9s; box-shadow: 0 0 18px rgba(46, 204, 113, 0.8); }
        .dot-c { background: #5dade2; animation-delay: -1.8s; box-shadow: 0 0 18px rgba(93, 173, 226, 0.8); }
        .scan-line {
            position: absolute;
            left: -25%;
            top: 55%;
            width: 150%;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
            animation: scan 1.8s ease-in-out infinite;
        }
        .loading-copy { text-align: center; }
        .loading-eyebrow {
            color: #ffb25a;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.12em;
            margin-bottom: 8px;
        }
        .loading-copy h2 {
            font-size: 24px;
            line-height: 1.25;
            margin-bottom: 8px;
            font-weight: 800;
        }
        .loading-copy p {
            min-height: 22px;
            color: rgba(255, 255, 255, 0.74);
            font-size: 14px;
        }
        .loading-progress {
            height: 10px;
            margin-top: 24px;
            overflow: hidden;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.12);
        }
        .loading-progress-bar {
            width: 0%;
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(90deg, #2ecc71, #ff8c00);
            box-shadow: 0 0 22px rgba(255, 140, 0, 0.45);
            transition: width 0.28s ease;
        }
        .loading-meta {
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
            color: rgba(255, 255, 255, 0.68);
            font-size: 12px;
        }
        @keyframes orbit {
            from { transform: rotate(0deg) translateX(49px) rotate(0deg); }
            to { transform: rotate(360deg) translateX(49px) rotate(-360deg); }
        }
        @keyframes scan {
            0%, 100% { transform: translateY(-28px) rotate(-18deg); opacity: 0.25; }
            50% { transform: translateY(28px) rotate(-18deg); opacity: 0.9; }
        }
