/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif SC', serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #667eea 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 添加动态背景效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-10px, -10px) scale(1.05); }
    50% { transform: translate(10px, -5px) scale(1.02); }
    75% { transform: translate(-5px, 10px) scale(1.03); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 3rem 0 2rem;
    color: white;
    position: relative;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0,0,0,0.4);
    background: linear-gradient(45deg, #fff, #e0e7ff, #fff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.station-count {
    font-size: 1rem;
    opacity: 0.8;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-bottom: 1rem;
}

/* 语言切换按钮样式 */
.language-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: absolute;
    right: 0;
    top: 0;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.language-toggle:active {
    transform: translateY(0);
}

.lang-text {
    font-family: 'Arial', sans-serif;
    font-weight: bold;
}

/* 站点页面header样式调整 */
.station-page header .header-nav {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.station-page header .header-nav .back-btn {
    position: relative;
    left: auto;
    top: auto;
}

.station-page header .header-nav .language-toggle {
    position: relative;
    right: auto;
    top: auto;
}

.back-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* 首页样式 */
.homepage {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
}

.option-card {
    background: rgba(255,255,255,0.95);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.option-card:hover::before {
    left: 100%;
}

.option-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    border-color: rgba(255,255,255,0.5);
}

.option-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    transition: all 0.3s ease;
}

.option-card:hover .option-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.3));
}

.option-card h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2d3748;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.option-card p {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.7;
    font-weight: 400;
}

/* 搜索容器样式 */
.search-container {
    margin-top: 2rem;
    display: flex;
    gap: 0.5rem;
    width: 100%;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    background: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-family: 'Noto Serif SC', serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Serif SC', serif;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* 搜索结果列表样式 */
.search-results-list {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 1rem;
}

.search-result-item {
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.8);
    margin-bottom: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.search-result-item:hover {
    background: rgba(255,255,255,0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.search-result-item h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.search-result-item .line-badges {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.search-result-item .line-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 搜索联想样式 */
.search-suggestions {
    position: fixed;
    top: auto;
    left: auto;
    right: auto;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
    z-index: 99999;
    max-height: 600px;
    overflow-y: auto;
    margin-top: 0.5rem;
    overflow-x: hidden;
    min-height: 50px;
    width: 100%;
}

/* 自定义滚动条样式 */
.search-suggestions::-webkit-scrollbar {
    width: 8px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

.suggestion-item {
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    min-height: 45px;
    display: flex;
    align-items: center;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(102, 126, 234, 0.1);
}

.suggestion-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.suggestion-name {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 500;
    flex-shrink: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestion-lines {
    display: flex;
    gap: 0.2rem;
    flex-wrap: wrap;
    flex-shrink: 1;
    min-width: 0;
}

.suggestion-lines .line-badge {
    padding: 0.15rem 0.3rem;
    border-radius: 4px;
    color: white;
    font-size: 0.65rem;
    font-weight: 500;
    white-space: nowrap;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

.modal-content {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
    margin: 3% auto;
    padding: 3rem;
    border-radius: 24px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
}

/* 线路列表样式 */
.line-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.line-item {
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.line-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.3);
}

/* 搜索样式 */
.search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

#search-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#search-input:focus {
    outline: none;
    border-color: #667eea;
}

#search-btn {
    padding: 0.75rem 1.5rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: background 0.3s ease;
}

#search-btn:hover {
    background: #5a6fd8;
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    padding: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

/* 站点页面样式 */
.station-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.content-wrapper {
    display: flex;
    gap: 1.5rem;
    flex: 1;
    min-height: 0;
}

.station-info {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.station-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.station-header {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

#station-name {
    font-size: 2.4rem;
    font-weight: 800;
    color: #2d3748;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: linear-gradient(45deg, #2d3748, #4a5568);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.line-badges {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.line-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    min-width: 60px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.station-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.transfer-indicator {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    font-size: 0.8rem;
    color: #856404;
}

.transfer-icon {
    font-size: 0.9rem;
}

.transfer-text {
    font-weight: 500;
}

.station-content {
    display: grid;
    gap: 1.2rem;
}

.info-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    border-left: 3px solid #667eea;
    padding-left: 0.8rem;
}

.station-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    text-align: justify;
}

/* 地图样式 */
.map-container {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
    border-radius: 20px;
    padding: 1.2rem;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 450px;
}

.map-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.map-control-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.map-control-btn:hover {
    background: white;
    transform: scale(1.05);
}

.svg-map-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

#svg-map-container {
    width: 100%;
    flex: 1;
    min-height: 0;
    position: relative;
    overflow: hidden;
}

#svg-map-container svg {
    width: 100%;
    height: 100%;
    cursor: grab;
    transition: transform 0.3s ease;
}

#svg-map-container svg:active {
    cursor: grabbing;
}

/* 站点高亮和动画 */
.highlighted-station {
    fill: #ff0000 !important;
    stroke: #ffffff !important;
    stroke-width: 4 !important;
    animation: earthquakeWave 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px #ff0000);
}

@keyframes earthquakeWave {
    0% { 
        opacity: 1; 
        filter: drop-shadow(0 0 15px #ff0000);
    }
    25% { 
        opacity: 0.9; 
        filter: drop-shadow(0 0 25px #ff0000);
    }
    50% { 
        opacity: 1; 
        filter: drop-shadow(0 0 20px #ff0000);
    }
    75% { 
        opacity: 0.8; 
        filter: drop-shadow(0 0 30px #ff0000);
    }
    100% { 
        opacity: 1; 
        filter: drop-shadow(0 0 15px #ff0000);
    }
}

/* 导航按钮 */
.navigation-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 1.5rem 0;
}

.nav-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    border: 2px solid rgba(255,255,255,0.4);
    color: white;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.2));
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.6);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.nav-btn:disabled:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* 线路颜色 */
.line-1 { background-color: #c23a3d; }
.line-2 { background-color: #0162ad; }
.line-3 { background-color: #ffc425; }
.line-4 { background-color: #009d3c; }
.line-5 { background-color: #a12830; }
.line-6 { background-color: #d4a825; }
.line-7 { background-color: #f7931e; }
.line-8 { background-color: #009a3a; }
.line-9 { background-color: #93c83b; }
.line-10 { background-color: #009b7c; }
.line-11 { background-color: #7e5229; }
.line-12 { background-color: #1a9431; }
.line-13 { background-color: #f7b500; }
.line-14 { background-color: #d4a825; }
.line-15 { background-color: #612f7b; }
.line-16 { background-color: #4c8737; }
.line-17 { background-color: #ee6618; }
.line-19 { background-color: #f4c430; }
.line-batong { background-color: #d73c7e; }
.line-changping { background-color: #d73c7e; }
.line-daxing { background-color: #f7b500; }
.line-fangshan { background-color: #f7b500; }
.line-yizhuang { background-color: #f7b500; }
.line-yanfang { background-color: #dc6016; }
.line-s1 { background-color: #888888; }
.line-xijiao { background-color: #a8c8e1; }
.line-airport { background-color: #8da2bd; }

/* 作者链接样式 */
.author-footer {
    text-align: center;
    padding: 2rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.author-footer p {
    line-height: 1.4;
    margin: 0;
}

.author-footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.author-footer a:hover {
    color: #f0f0f0;
    text-decoration: underline;
}



/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 6px;
        max-width: 100%;
        width: 100%;
    }
    
    header {
        padding: 0.2rem 0 0.05rem;
    }
    
    header h1 {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        margin-top: 0.2rem;
        max-width: 100%;
    }
    
    .option-card {
        padding: 1rem 0.6rem;
    }
    
    .option-icon {
        font-size: 2rem;
        margin-bottom: 0.6rem;
    }
    
    .option-card h2 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .option-card p {
        font-size: 0.8rem;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-width: none;
        padding: 1.2rem;
    }
    
    .line-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    /* 移动端：上下布局，更紧凑 */
    .content-wrapper {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .station-page {
        gap: 0.6rem;
        padding: 0.5rem 0;
    }
    
    .station-info {
        padding: 0.8rem;
        order: 1;
    }
    
    /* 移动端导航按钮位置优化 */
    .navigation-buttons {
        position: relative;
        order: 0 !important;
        margin: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        display: flex;
        gap: 0.4rem;
        justify-content: center;
        padding: 0;
    }
    
    #station-name {
        font-size: 1.5rem;
    }
    
    .station-header {
        text-align: center;
        gap: 0.3rem;
        margin-bottom: 0.6rem;
    }
    
    .line-badges {
        justify-content: center;
    }
    
    .station-content {
        gap: 0.6rem;
    }
    
    .info-section h3 {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
        padding-left: 0.4rem;
    }
    
    .station-text {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .map-container {
        order: 3;
        min-height: 400px;
        max-height: 500px;
        padding: 0.3rem;
        margin: 0 -12px;
        border-radius: 0;
        width: calc(100% + 24px);
    }
    
    #svg-map-container {
        height: 380px;
        flex: none;
        width: 100%;
    }
    
    .map-controls {
        top: 0.3rem;
        right: 0.3rem;
    }
    
    .map-control-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        border-radius: 4px;
    }
    
    .navigation-buttons {
        order: 3;
        gap: 0.8rem;
        margin-top: 1rem;
        padding: 1rem 0;
    }
    
    .nav-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        min-width: 100px;
    }
    
    .author-footer {
        padding: 0.5rem 0;
        font-size: 0.75rem;
    }
    
    /* 移动端搜索联想样式 */
    .search-suggestions {
        max-height: 300px;
    }
    
    .suggestion-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .suggestion-name {
        font-size: 0.9rem;
    }
    
    .suggestion-lines {
        gap: 0.15rem;
    }
    
    .suggestion-lines .line-badge {
        padding: 0.1rem 0.25rem;
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1.5rem 0;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .option-card {
        padding: 1.5rem 1rem;
    }
    
    .option-icon {
        font-size: 2.5rem;
    }
    
    .station-info {
        padding: 1rem;
    }
    
    #station-name {
        font-size: 1.8rem;
    }
    
    .info-section h3 {
        font-size: 1.2rem;
    }
    
    .station-text {
        font-size: 1rem;
    }
    
    .map-container {
        padding: 0.3rem;
        min-height: 280px;
    }
    
    #svg-map-container {
        height: 280px;
    }
}
