* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
    background: #f0f0f0;
    min-height: 100vh;
    padding: 24px;
}
.container {
    max-width: 900px;
    margin: 0 auto;
}
.page-header {
    margin-bottom: 16px;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: white;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #1a1a1a;
    transition: all 0.2s;
}
.back-link:hover {
    background: #1a1a1a;
    color: white;
}
h1 {
    text-align: left;
    color: #1a1a1a;
    margin-bottom: 32px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.controls {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 24px;
}
.search-box {
    margin-bottom: 16px;
}
.search-box input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #ddd;
    outline: none;
    transition: all 0.2s;
}
.search-box input:focus {
    border-color: #1a1a1a;
}
.category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.category-tab {
    padding: 8px 16px;
    border: 2px solid #ddd;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    color: #333;
}
.category-tab:hover {
    border-color: #999;
}
.category-tab.active {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}
.toggle-controls {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}
.toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
}
.toggle-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.lang-toggle-btn {
    padding: 6px 12px;
    border: 2px solid #1a1a1a;
    background: #fff;
    color: #1a1a1a;
    font-weight: 700;
    cursor: pointer;
}
.route-card {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 0;
    margin-bottom: 16px;
    overflow: hidden;
}
.route-header {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 16px 20px;
    background: #1a1a1a;
    color: white;
    flex-wrap: wrap;
    gap: 12px;
}
.route-color {
    width: 16px;
    height: 16px;
    border-radius: 0;
    margin-right: 12px;
    flex-shrink: 0;
    border: 2px solid white;
}
.route-title h2 {
    color: white;
    font-size: 18px;
    margin-bottom: 2px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.route-title p {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    font-weight: 500;
}
.route-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-left: auto;
}
.route-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}
.direction-toggle {
    display: flex;
    gap: 0;
    margin: 0;
    background: #f5f5f5;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
}
.direction-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: #f5f5f5;
    color: #666;
    border-right: 1px solid #e0e0e0;
}
.direction-btn:last-child {
    border-right: none;
}
.direction-btn:hover {
    background: #e8e8e8;
}
.direction-btn.active {
    background: white;
    color: #1a1a1a;
    border-bottom: 3px solid;
    border-color: inherit;
}
.station-list {
    display: flex;
    flex-direction: row;
    position: relative;
    padding: 220px 20px 180px 20px;
    overflow-x: auto;
    align-items: flex-start;
    min-height: 160px;
}
.station-list::-webkit-scrollbar {
    height: 8px;
}
.station-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.station-main-line {
    display: none;
}
.station-main-line-dual {
    display: block !important;
    position: absolute;
    background: linear-gradient(90deg, #1e88e5 0 50%, #111 50% 100%);
    z-index: 2;
}
.circular-arrow {
    position: absolute;
    color: var(--route-color, #1a1a1a);
    font-size: 16px;
    z-index: 1;
}
.circular-label {
    position: absolute;
    font-size: 12px;
    font-weight: bold;
    color: #1a1a1a;
    z-index: 1;
    white-space: nowrap;
    background: rgba(255,255,255,0.8);
    padding: 2px 4px;
    border-radius: 4px;
}
.station-list.is-circular {
    min-height: 660px;
    padding: 20px 0 40px 0;
}
.circular-map {
    width: var(--cw, 980px);
    height: var(--ch, 600px);
    margin: 0 auto;
    position: relative;
}
.circular-svg {
    width: var(--cw, 980px);
    height: var(--ch, 600px);
}
.circular-ring {
    fill: none;
    stroke: var(--route-color, #1a1a1a);
    stroke-width: 8;
}
.circular-station {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    cursor: pointer;
}
.circular-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 5px solid var(--route-color, #1a1a1a);
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%) translate(var(--dotx, 0), var(--doty, 0));
}
.circular-dot.transfer {
    width: 24px;
    height: 24px;
    border-width: 6px;
}
.circular-dot.transfer::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--route-color, #1a1a1a);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.circular-label {
    position: absolute;
    font-size: 12px;
    color: #222;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    left: 0;
    top: 0;
    transform: translate(var(--lx, 0), var(--ly, 0)) rotate(45deg);
    transform-origin: left top;
    gap: 2px;
    white-space: nowrap;
    max-width: 180px;
}
.circular-label-left {
    align-items: flex-start;
    text-align: left;
}
.circular-label-right {
    align-items: flex-end;
    text-align: right;
}
.circular-transfer-badges {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%) translate(var(--tx, 0), var(--ty, 0));
    display: flex;
    gap: 6px;
    align-items: center;
    z-index: 5;
}
.circular-transfer-badges.side-horizontal {
    flex-direction: column;
}
.circular-transfer-badges.side-vertical {
    flex-direction: row;
}
.circular-transfer-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 160px;
    height: 20px;
    padding: 0 7px;
    border-radius: 10px;
    border: 1px solid #d0d9e4;
    background: #ffffff;
    color: #39424e;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.circular-transfer-chip.line-chip {
    border-color: var(--tc, #607d8b);
    background: var(--tc, #607d8b);
    color: #fff;
}
.circular-label-cn {
    font-size: 12px;
    font-weight: 700;
}
.circular-label-en {
    font-size: 10px;
    font-weight: 600;
    color: #6b7280;
}
.circular-direction {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 6px 12px;
    font-weight: 700;
}
.station-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 100px;
    flex: 1 0 auto;
    margin: 0;
}
.station-item::before {
    content: '';
    position: absolute;
    left: 50%;
    right: -50%;
    top: 11px;
    height: 6px;
    background: var(--route-color, #1a1a1a);
    z-index: 0;
}
.station-item:last-child::before {
    display: none;
}
.station-item:hover {
    background: transparent;
}
.station-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 6px solid var(--route-color, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.15s;
    position: relative;
}
.station-dot.transfer {
    border-width: 7px;
    width: 32px;
    height: 32px;
    margin-top: -2px;
}
.station-dot.transfer::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--route-color, #1a1a1a);
    border-radius: 50%;
}
.station-item:hover .station-dot {
    transform: scale(1.2);
}
.station-info {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-8px) rotate(45deg);
    transform-origin: top left;
    white-space: nowrap;
    text-align: left;
    width: 220px;
}
.station-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}
.station-name-en {
    font-size: 11px;
    color: #777;
    font-weight: 600;
    letter-spacing: 0.4px;
    margin-top: 2px;
}
.nearby-transfer-list {
    position: absolute;
    bottom: calc(100% + 46px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}
.nearby-transfer-list.nearby-left {
    transform: translateX(-85%);
}
.nearby-transfer-list.nearby-right {
    transform: translateX(-15%);
}
.nearby-transfer-item {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    background: rgba(255,255,255,0.92);
    border: 1px solid #d5e2ed;
    border-radius: 10px;
    padding: 2px 6px;
}
.nearby-dot {
    width: 8px;
    height: 8px;
    border: 2px solid #607d8b;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
}
.nearby-line {
    width: 16px;
    height: 2px;
    background: #607d8b;
    flex-shrink: 0;
}
.nearby-text {
    font-size: 10px;
    color: #546e7a;
    white-space: nowrap;
}
.other-mode-transfer {
    display: none;
}
body.show-other-modes .other-mode-transfer {
    display: inline-flex;
}

.transfer-badges-container {
    position: absolute;
    left: 50%;
    bottom: calc(100% - 14px);
    top: auto;
    transform-origin: bottom left;
    transform: rotate(-45deg);
    width: max-content;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 8px;
    margin-left: 8px;
    z-index: 10;
}
.transfer-badges-container.side-unified {
    left: 50%;
}
.transfer-badges {
    display: flex;
    flex-direction: column-reverse;
    gap: 6px;
    align-items: flex-start;
}
.transfer-link-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
    cursor: pointer;
    flex-direction: row;
    transform: none;
    margin-top: 0;
}
.transfer-link-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid var(--tc, #607d8b);
    background: #fff;
    flex-shrink: 0;
    margin: 0;
}
.transfer-link-dot-end {
    background: var(--tc, #607d8b);
}
.transfer-link-line {
    width: 14px;
    height: 2px;
    background: var(--tc, #607d8b);
    flex-shrink: 0;
}
.transfer-link-text {
    font-size: 10px;
    font-weight: 700;
    color: var(--tc, #607d8b);
    white-space: nowrap;
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    transform: none;
}
.transfer-link-item.summary-item {
    --tc: #374151;
}
.transfer-link-item.hs-item {
    --tc: #3230a9;
}
.transfer-link-item.direct-item .transfer-link-text {
    font-weight: 800;
}
.transfer-link-item.nearby-item .transfer-link-line {
    background: repeating-linear-gradient(90deg, var(--tc, #607d8b) 0 4px, transparent 4px 6px);
}
.transfer-link-item.nearby-item .transfer-link-text {
    color: #455a64;
    font-size: 9px;
}
.transfer-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    font-size: 10px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid rgba(0,0,0,0.1);
}
.transfer-badge:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.transfer-badge.pinned {
    box-shadow: 0 0 0 2px #1a1a1a;
}
.transfer-badge.hidden-mode {
    opacity: 0.4;
}
.transfer-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.15s;
    border: 2px solid #ddd;
}
.transfer-icon-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}
.transfer-icon-badge.hs-badge {
    border-color: #3230a9;
}
.transfer-icon-badge.boat-badge {
    border-color: #0288d1;
}
.transfer-icon-badge.air-badge {
    border-color: #e53935;
}
.branch-container {
    border-top: 1px solid #ececec;
}
.branch-container:first-child {
    border-top: none;
}
.branch-label {
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 700;
    color: #444;
    background: #f8f8f8;
    border-bottom: 1px solid #e5e5e5;
}
.branch-section {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.branch-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 20px;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 700;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}
.branch-header {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 12px 20px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}
.branch-header .route-color {
    width: 16px;
    height: 16px;
}
.hidden {
    display: none !important;
}
.expand-toggle {
    margin-left: auto;
    padding: 6px 16px;
    border: 2px solid white;
    background: transparent;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.expand-toggle:hover {
    background: white;
    color: #1a1a1a;
}
.route-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.route-content.expanded {
    max-height: 10000px;
}
.transfer-notice {
    margin: 12px 20px;
    padding: 10px 14px;
    background: #fff8e1;
    border: 1px dashed #ffc107;
    font-size: 12px;
    color: #f57c00;
    font-weight: 500;
}
.transfer-notice .dashed-arrow {
    display: inline-block;
    margin: 0 8px;
    font-weight: 700;
}
.tooltip {
    position: absolute;
    background: white;
    border: 2px solid #1a1a1a;
    padding: 16px;
    z-index: 1000;
    min-width: 300px;
    max-width: 400px;
    display: none;
    animation: tooltipFade 0.15s ease;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: #333;
}

.nav-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.nav-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-inputs input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    z-index: 2001;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}
.autocomplete-item:last-child {
    border-bottom: none;
}
.autocomplete-item:hover {
    background: #f5f5f5;
}

.nav-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

.btn-primary {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}
.btn-primary:hover { background: #333; }

.nav-result {
    margin-top: 24px;
    max-height: 300px;
    overflow-y: auto;
}
.nav-step {
    padding: 12px;
    border-left: 3px solid #1976d2;
    background: #f9f9f9;
    margin-bottom: 8px;
    border-radius: 0 6px 6px 0;
}
.nav-step-platform {
    font-size: 12px;
    background: #e0e0e0;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    color: #333;
}
.tooltip.show {
    display: block;
}
.tooltip.pinned {
    display: block;
    border: 3px solid #1a1a1a;
}
@keyframes tooltipFade {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
.tooltip-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    justify-content: space-between;
}
.tooltip-header-left {
    display: flex;
    align-items: center;
}
.tooltip-color {
    width: 32px;
    height: 32px;
    border-radius: 0;
    margin-right: 12px;
    flex-shrink: 0;
    border: 2px solid #1a1a1a;
}
.tooltip-title h4 {
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 700;
}
.tooltip-title p {
    font-size: 11px;
    color: #777;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.close-tooltip {
    background: #1a1a1a;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    transition: all 0.2s;
}
.close-tooltip:hover {
    background: #333;
}
.tooltip-station {
    background: #fff8e1;
    padding: 8px 12px;
    margin-bottom: 12px;
    border: 1px solid #ffc107;
}
.tooltip-station-name {
    font-weight: 700;
    color: #f57c00;
}
.tooltip-route-preview {
    max-height: 200px;
    overflow-y: auto;
}
.tooltip-route-station {
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 1px 0;
    transition: all 0.15s;
    border-bottom: 1px solid #f0f0f0;
}
.tooltip-route-station:last-child {
    border-bottom: none;
}
.tooltip-route-station:hover {
    background: #fafafa;
}
.tooltip-route-station.current {
    background: #e3f2fd;
    font-weight: 600;
}
.tooltip-route-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #999;
    flex-shrink: 0;
    border: 2px solid #ccc;
}
.tooltip-route-station.current .tooltip-route-dot {
    background: #1a1a1a;
    border-color: #1a1a1a;
    transform: scale(1.2);
}
@media (max-width: 768px) {
    h1 { font-size: 24px; }
    .station-item { padding: 10px 16px; }
    .route-header { padding: 14px 16px; }
}

.back-to-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #1a1a1a;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.back-to-top:hover {
    background-color: #333;
    transform: translateY(-3px);
}

/* Station Detail View */
#station-detail-view {
    margin-bottom: 24px;
    animation: tooltipFade 0.3s ease;
}
.station-matches-container {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}
.station-matches-container h3 {
    margin-bottom: 16px;
    font-size: 16px;
    color: #333;
}
.station-match-item {
    padding: 12px 16px;
    border: 1px solid #eee;
    margin-bottom: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}
.station-match-item:hover {
    background: #f5f5f5;
    border-color: #ccc;
    transform: translateX(4px);
}
.station-detail-container {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.station-detail-header {
    background: #1a1a1a;
    color: white;
    padding: 24px 30px;
}
.station-detail-header h2 {
    margin: 0;
    font-size: 28px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.station-detail-header .en-name {
    font-size: 16px;
    font-weight: normal;
    color: rgba(255,255,255,0.7);
}
.station-detail-content {
    padding: 24px 30px;
}
.station-exits-section, .station-lines-section, .station-transfers-section {
    margin-bottom: 32px;
}
.station-exits-section h3, .station-lines-section h3, .station-transfers-section h3 {
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

/* Direction label styles */
.direction-label-forward,
.direction-label-reverse {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    background: #f5f5f5;
    border-bottom: 2px solid var(--route-color, #1a1a1a);
    margin: 0;
}

.direction-label-reverse {
    border-top: 1px solid #e0e0e0;
    margin-top: 0;
}
.exits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.exit-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.exit-name {
    font-size: 18px;
    font-weight: 700;
    color: #1976d2;
    background: #e3f2fd;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    align-self: flex-start;
}
.exit-dest {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}
.detail-line-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}
.detail-line-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}
.detail-line-color {
    width: 16px;
    height: 16px;
    margin-right: 12px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
}
.detail-line-title {
    font-weight: 700;
    font-size: 15px;
}
.mini-route-container {
    display: flex;
    align-items: center;
    padding: 24px 16px;
    overflow-x: auto;
    gap: 16px;
    position: relative;
}
.mini-route-container::before {
    content: '';
    position: absolute;
    left: 40px;
    right: 40px;
    top: 36px;
    height: 4px;
    background: var(--route-color);
    z-index: 0;
}
.mini-station-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
    min-width: 80px;
}
.mini-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--route-color);
    position: relative;
}
.mini-dot.transfer::after {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--route-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.mini-station-item.current .mini-dot {
    width: 24px;
    height: 24px;
    border-width: 6px;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.1);
}
.mini-station-item.current .mini-dot.transfer::after {
    width: 6px;
    height: 6px;
}
.mini-name {
    font-size: 13px;
    color: #666;
    text-align: center;
    white-space: nowrap;
}
.mini-station-item.current .mini-name {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 15px;
}
.mini-route-dots {
    font-weight: bold;
    color: #999;
    letter-spacing: 2px;
    z-index: 1;
    background: white;
    padding: 0 8px;
    margin-top: -24px;
}
.nearby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}
.nearby-detail-item {
    border: 1px solid #e0e0e0;
    border-left-width: 4px;
    padding: 12px 16px;
    border-radius: 6px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s;
}
.nearby-detail-item:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}
.nearby-detail-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
    color: #1a1a1a;
}
.nearby-detail-desc {
    font-size: 12px;
    color: #666;
}
