* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f3f7ff;
    --text: #172033;
    --muted: #8a95a8;
    --blue: #437df0;
    --green: #50bd6b;
    --border: #e7edf7;
}

html, body {
    min-height: 100%;
}

body {
    background: linear-gradient(180deg, #f8faff 0%, #eff4fc 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button {
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 18px 10px 30px;
}

.panel {
    width: 100%;
    max-width: 520px;
    padding: 20px 14px 18px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(224,232,245,.9);
    border-radius: 26px;
    box-shadow: 0 18px 50px rgba(38,65,110,.10);
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}

.header-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: linear-gradient(135deg, #4d8cff, #3c75e9);
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(67,125,240,.20);
}

.page-title {
    color: var(--blue);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.page-subtitle {
    margin-top: 2px;
    color: #a0a9b8;
    font-size: 10px;
}

.top-banner {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4a88ef, #3c78e4);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 9px 20px rgba(67,125,240,.18);
}

.route-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.route-card {
    width: 100%;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: linear-gradient(135deg, #fff, #fbfcff);
    box-shadow: 0 5px 18px rgba(30,46,75,.045);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: .18s ease;
}

.route-card:hover {
    transform: translateY(-2px);
    border-color: #cddcff;
    box-shadow: 0 10px 26px rgba(45,80,140,.09);
}

.route-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.route-number {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce8ff;
    border-radius: 13px;
    background: #f1f6ff;
    color: var(--blue);
    font-family: Consolas, monospace;
    font-size: 11px;
    font-weight: 800;
}

.route-copy {
    min-width: 0;
}

.route-top {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
}

.route-name {
    font-size: 14px;
    font-weight: 750;
    white-space: nowrap;
}

.route-desc {
    max-width: 210px;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.latency-badge {
    min-width: 43px;
    height: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border-radius: 6px;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
}

.latency-badge.checking,
.route-status.checking {
    background: #aeb7c7;
}

.latency-badge.good,
.route-status.online {
    background: linear-gradient(180deg, #70d37d, #50b962);
}

.latency-badge.medium {
    background: linear-gradient(180deg, #efbc4f, #dea22f);
}

.latency-badge.slow {
    background: linear-gradient(180deg, #e98b4d, #d8783e);
}

.latency-badge.offline,
.route-status.offline {
    background: linear-gradient(180deg, #e87178, #d9525b);
}

.route-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 7px;
}

.route-status {
    min-width: 40px;
    padding: 6px 8px;
    border-radius: 8px;
    color: #fff;
    text-align: center;
    font-size: 10px;
    font-weight: 800;
}

.route-arrow {
    width: 33px;
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f2;
    border-radius: 10px;
    background: #f8faff;
    color: #738099;
    transition: .18s ease;
}

.route-card:hover .route-arrow {
    transform: translateX(2px);
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}

.bottom-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid #eef1f6;
    color: #9ca6b5;
    font-size: 9px;
}

.tip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

@media (max-width: 540px) {
    .page {
        padding: 7px 8px 26px;
    }

    .panel {
        padding: 16px 10px;
        border-radius: 22px;
    }

    .header {
        margin-bottom: 15px;
    }

    .page-title {
        font-size: 20px;
    }

    .route-card {
        min-height: 78px;
        padding: 10px;
    }

    .route-number {
        width: 41px;
        height: 41px;
        flex-basis: 41px;
    }

    .route-desc {
        max-width: 150px;
    }

    .route-arrow {
        width: 30px;
        height: 30px;
    }
}