/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #0a1525 0%, #152238 100%);
    color: #e0f0ff;
    min-height: 100vh;
    padding: 15px;
    line-height: 1.5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(20, 30, 45, 0.92);
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(80, 140, 255, 0.3);
}

/* ========== 头部 ========== */
.header {
    padding: 25px 30px;
    background: linear-gradient(90deg, #1a2b4a 0%, #2a3b5a 100%);
    border-bottom: 2px solid rgba(80, 140, 255, 0.5);
    text-align: center;
}

h1 {
    font-size: 2.6rem;
    background: linear-gradient(90deg, #88c0ff, #b580ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1rem;
    color: #a8ccff;
    margin-top: 8px;
}

/* ========== 线路区 ========== */
.lines-section, .stations-section, .actions-section, .results-section {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(80, 140, 255, 0.2);
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 18px;
    color: #88c0ff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lines-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.line-btn {
    padding: 10px 20px;
    border-radius: 40px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    background: rgba(30, 45, 70, 0.8);
    color: white;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
}

.line-btn.active {
    background: #3a6bff;
    box-shadow: 0 0 12px rgba(58, 107, 255, 0.8);
    transform: scale(1.02);
}

.line-type-title {
    font-size: 1.2rem;
    margin: 18px 0 12px 0;
    color: #b8d0ff;
    border-left: 4px solid #88c0ff;
    padding-left: 12px;
}

/* ========== 站点区 ========== */
.selection-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.selection-box {
    flex: 1;
    padding: 12px;
    border-radius: 16px;
    background: rgba(10, 20, 35, 0.7);
}

.start-box {
    border-left: 5px solid #00ff88;
}

.end-box {
    border-left: 5px solid #ff6666;
}

.selection-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 6px;
}

.selection-value {
    font-size: 1.3rem;
    font-weight: bold;
}

.start-value {
    color: #00ff88;
}

.end-value {
    color: #ff6666;
}

.instruction {
    background: rgba(100, 180, 255, 0.1);
    padding: 10px 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    border-left: 4px solid #88c0ff;
}

.stations-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding: 5px;
}

.station-item {
    background: rgba(30, 45, 70, 0.7);
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: 0.2s;
    flex: 1 1 200px;
    border: 1px solid rgba(100, 180, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
}

.station-item:hover {
    transform: translateY(-2px);
    background: rgba(50, 70, 100, 0.8);
    box-shadow: 0 5px 12px rgba(0,0,0,0.3);
}

.station-item.selected-start {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
}

.station-item.selected-end {
    background: rgba(255, 102, 102, 0.2);
    border-color: #ff6666;
}

.station-index {
    width: 32px;
    height: 32px;
    background: #2a3b5a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.station-name {
    flex: 1;
    font-size: 1rem;
}

.transfer-badge {
    font-size: 0.75rem;
    background: rgba(255,204,0,0.2);
    padding: 2px 8px;
    border-radius: 20px;
    color: #ffcc00;
}

/* ========== 按钮 ========== */
.buttons-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    padding: 14px;
    border-radius: 40px;
    border: none;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.action-btn.primary {
    background: linear-gradient(90deg, #2d6dff, #6b3dff);
    color: white;
}
.action-btn.primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.action-btn.secondary {
    background: #2c3e5a;
    color: #e0f0ff;
}
.action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* ========== 结果展示 ========== */
.result-box {
    background: rgba(10, 20, 35, 0.8);
    border-radius: 20px;
    padding: 20px;
    min-height: 250px;
    max-height: 500px;
    overflow-y: auto;
}

.route-step {
    background: rgba(30, 45, 70, 0.6);
    border-left: 5px solid #88c0ff;
    padding: 12px 18px;
    margin-bottom: 12px;
    border-radius: 12px;
}

.transfer-step {
    border-left-color: #ffcc00;
    background: rgba(70, 60, 20, 0.3);
}

.route-info {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #88c0ff40;
    font-weight: bold;
}

/* ========== 页脚 ========== */
.footer {
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    background: rgba(0,0,0,0.2);
    color: #88aadd;
}
