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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 语言转换按钮样式 */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.language-btn:hover {
    background: rgba(0, 245, 255, 0.15);
    border-color: #00f5ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 245, 255, 0.2);
}

.language-dropdown-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.language-btn.open .language-dropdown-icon {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 8px 0;
    min-width: 120px;
    display: none;
    backdrop-filter: blur(10px);
}

.language-dropdown.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.language-option {
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.language-option:hover {
    background: rgba(0, 245, 255, 0.1);
    color: #00f5ff;
}

.language-option.active {
    background: rgba(0, 245, 255, 0.15);
    color: #00f5ff;
    font-weight: 600;
}

/* 首页样式 */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1551632436-cbf8dd35adfa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeIn 1.5s ease-in-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00f5ff, #01cdfe, #0575e6, #021b79);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(45deg, #00f5ff, #01cdfe, #0575e6);
    border: none;
    border-radius: 50px;
    color: #0a0a0a;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 245, 255, 0.4);
}

/* 偏好选择页样式 */
.preference-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.preference-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00f5ff, #01cdfe, #0575e6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preference-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.preference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.preference-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

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

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

.preference-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 245, 255, 0.2);
    border-color: rgba(0, 245, 255, 0.5);
}

.preference-card.selected {
    background: rgba(0, 245, 255, 0.1);
    border-color: #00f5ff;
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.preference-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.card-check {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.preference-card.selected .card-check {
    opacity: 1;
    background: #00f5ff;
    color: #0a0a0a;
}

.check-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.submit-btn {
    display: block;
    margin: 0 auto;
    padding: 15px 50px;
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(45deg, #00f5ff, #01cdfe, #0575e6);
    border: none;
    border-radius: 50px;
    color: #0a0a0a;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 245, 255, 0.4);
}

/* 推荐结果页样式 */
.result-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.result-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00f5ff, #01cdfe, #0575e6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.result-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 245, 255, 0.2);
    border-color: rgba(0, 245, 255, 0.5);
}

.result-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.result-card:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    margin-bottom: 1rem;
    opacity: 0.8;
    line-height: 1.5;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag,
.highlight-tag,
.audience-tag {
    background: rgba(0, 245, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #00f5ff;
}

.card-highlights,
.card-audience {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.back-btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    background: transparent;
    color: #00f5ff;
    border: 1px solid #00f5ff;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(0, 245, 255, 0.1);
    transform: translateY(-3px);
}

.plan-btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(45deg, #00f5ff, #01cdfe, #0575e6);
    border: none;
    border-radius: 50px;
    color: #0a0a0a;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
}

.plan-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 245, 255, 0.4);
}

.route-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.route-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00f5ff, #01cdfe, #0575e6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.route-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.85;
}

.route-form {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.route-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.input-group label {
    font-size: 0.95rem;
    opacity: 0.9;
}

.input-group input,
.input-group select {
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.route-checks {
    justify-content: center;
}

.route-checks label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.waypoint-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.waypoint-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(0, 245, 255, 0.2);
    color: #00f5ff;
    border: 1px solid #00f5ff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.waypoint-list {
    margin-top: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.waypoint-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.waypoint-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 245, 255, 0.3);
}

.waypoint-item:last-child {
    margin-bottom: 0;
}

.waypoint-index {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0575e6;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.waypoint-actions {
    display: flex;
    gap: 0.3rem;
}

.waypoint-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.waypoint-action-btn:hover {
    background: rgba(0, 245, 255, 0.2);
    border-color: #00f5ff;
    color: #00f5ff;
}

.waypoint-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.waypoint-action-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.route-controls {
    margin-top: 1.2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.route-summary {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 245, 255, 0.1);
}

.summary-header {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 245, 255, 0.2);
    padding-bottom: 0.5rem;
}

.summary-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00f5ff;
    margin: 0;
}

.summary-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.summary-item:hover {
    background: rgba(0, 245, 255, 0.05);
    border-color: rgba(0, 245, 255, 0.3);
    transform: translateY(-2px);
}

.summary-item strong {
    color: #00f5ff;
    font-weight: 600;
    min-width: 80px;
}

.summary-item span {
    color: #fff;
    opacity: 0.85;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.summary-item.priority {
    background: rgba(0, 245, 255, 0.1);
    border-color: rgba(0, 245, 255, 0.3);
}

.summary-item.priority strong {
    color: #00f5ff;
    font-weight: 700;
}

.summary-item.priority span {
    color: #fff;
    font-weight: 600;
    opacity: 1;
}

.summary-item.waypoints {
    background: rgba(255, 165, 0, 0.1);
    border-color: rgba(255, 165, 0, 0.3);
}

.summary-item.waypoints strong {
    color: #ffa500;
}

.planning-status {
    margin-bottom: 1rem;
    min-height: 30px;
}

.planning-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid rgba(0, 245, 255, 0.4);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    background: rgba(0, 245, 255, 0.1);
}

.planning-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #00f5ff;
    box-shadow: 0 0 0 0 rgba(0, 245, 255, 0.8);
    animation: pulse 1.4s infinite;
}

.map-panel {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 1.2rem;
}

.route-svg {
    width: 100%;
    height: 380px;
}

.route-line {
    fill: none;
    stroke: #00f5ff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.map-node {
    fill: #0575e6;
}

.map-label {
    fill: #c8f8ff;
    font-size: 12px;
}

.summary-item {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.03);
}

.route-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(0, 245, 255, 0.3);
}

@media (max-width: 768px) {
    .route-results {
        padding: 15px;
        gap: 15px;
    }
    
    .timeline-step {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .step-number {
        min-width: 20px;
    }
    
    .timeline-head h3 {
        font-size: 1.1rem;
    }
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-header {
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(0, 245, 255, 0.2);
    padding-bottom: 0.5rem;
}

.timeline-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00f5ff;
    margin: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.8rem;
    padding-left: 2.5rem;
    border-left: 2px solid rgba(0, 245, 255, 0.3);
}

.timeline-index {
    position: absolute;
    left: -10px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 0 0 4px rgba(5, 117, 230, 0.2);
}

.timeline-index.default {
    background: #0575e6;
    box-shadow: 0 0 0 4px rgba(5, 117, 230, 0.2);
}

.timeline-index.walk {
    background: #27ae60;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.2);
}

.timeline-index.transit {
    background: #f39c12;
    box-shadow: 0 0 0 4px rgba(243, 156, 18, 0.2);
}

.timeline-index.drive {
    background: #e74c3c;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.2);
}

.timeline-content {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.timeline-content.default {
    border-left: 4px solid #0575e6;
}

.timeline-content.walk {
    border-left: 4px solid #27ae60;
}

.timeline-content.transit {
    border-left: 4px solid #f39c12;
}

.timeline-content.drive {
    border-left: 4px solid #e74c3c;
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.timeline-content.walk:hover {
    border-left-color: #2ecc71;
    box-shadow: 0 0 15px rgba(39, 174, 96, 0.3);
}

.timeline-content.transit:hover {
    border-left-color: #f1c40f;
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.3);
}

.timeline-content.drive:hover {
    border-left-color: #c0392b;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.3);
}

.timeline-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.timeline-head h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: #00f5ff;
}

.timeline-content.walk .timeline-head h3 {
    color: #27ae60;
}

.timeline-content.transit .timeline-head h3 {
    color: #f39c12;
}

.timeline-content.drive .timeline-head h3 {
    color: #e74c3c;
}

.timeline-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-step {
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border-left: 3px solid #0575e6;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.4;
    color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.timeline-content.walk .timeline-step {
    border-left-color: #27ae60;
}

.timeline-content.transit .timeline-step {
    border-left-color: #f39c12;
}

.timeline-content.drive .timeline-step {
    border-left-color: #e74c3c;
}

.timeline-step:hover {
    background: rgba(0, 245, 255, 0.05);
    transform: translateX(5px);
}

.timeline-content.walk .timeline-step:hover {
    border-left-color: #2ecc71;
    background: rgba(39, 174, 96, 0.1);
}

.timeline-content.transit .timeline-step:hover {
    border-left-color: #f1c40f;
    background: rgba(243, 156, 18, 0.1);
}

.timeline-content.drive .timeline-step:hover {
    border-left-color: #c0392b;
    background: rgba(231, 76, 60, 0.1);
}

.timeline-step.highlighted {
    background: rgba(0, 245, 255, 0.15);
    border-left-width: 4px;
    transform: translateX(5px);
}

.step-number {
    font-weight: 600;
    color: #00f5ff;
    min-width: 25px;
    text-align: right;
}

.timeline-content.walk .step-number {
    color: #27ae60;
}

.timeline-content.transit .step-number {
    color: #f39c12;
}

.timeline-content.drive .step-number {
    color: #e74c3c;
}

.step-content {
    flex: 1;
}

.timeline-step strong {
    color: #00f5ff;
    font-weight: 600;
}

.timeline-content.walk .timeline-step strong {
    color: #27ae60;
}

.timeline-content.transit .timeline-step strong {
    color: #f39c12;
}

.timeline-content.drive .timeline-step strong {
    color: #e74c3c;
}

.nav-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: #00f5ff;
}

.timeline-empty {
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    opacity: 0.85;
}


/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 245, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 245, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 245, 255, 0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .preference-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }

    .route-controls {
        flex-direction: column;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }
    
}

/* 搜索功能样式 */
.search-container {
    margin-bottom: 2rem;
    position: relative;
}

.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-box input {
    flex: 1;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 1rem;
}

.search-box button {
    padding: 0 20px;
    background: linear-gradient(45deg, #00f5ff, #01cdfe, #0575e6);
    color: #0a0a0a;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
}

.search-box button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 245, 255, 0.4);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-suggestions li {
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #fff;
    list-style: none;
}

.search-suggestions li:hover {
    background: rgba(0, 245, 255, 0.1);
}

.search-results {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: none;
}

.search-results-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-results-header h2 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.search-results-header p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.search-answer {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.search-raw-response {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.search-raw-response h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.search-raw-response pre {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
    white-space: pre-wrap;
    word-wrap: break-word;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #00f5ff;
    font-weight: 600;
}

.error {
    text-align: center;
    padding: 2rem;
    color: #ff4757;
    font-weight: 600;
}

@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
    }
    
    .search-box button {
        width: 100%;
        padding: 11px 12px;
    }
}

/* 隐藏路线规划结果区域 */
.route-summary {
    display: none;
}

/* 优化路线方案布局 */
.route-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(0, 245, 255, 0.3);
}

.timeline {
    flex: 1;
    min-height: 300px;
}

/* 状态标识样式 */
.route-status-indicators {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(0, 245, 255, 0.2);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #fff;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-indicator.red .status-dot {
    background-color: #ff4757;
}

.status-indicator.yellow .status-dot {
    background-color: #ffa502;
}

.status-indicator.green .status-dot {
    background-color: #2ed573;
}

.status-text {
    flex: 1;
}

/* 路线信息样式 */
.route-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #ccc;
}

.route-info .distance {
    color: #00f5ff;
    font-weight: 500;
}

.route-info .duration {
    color: #ffa502;
    font-weight: 500;
}

.route-info .features {
    color: #2ed573;
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .route-results {
        padding: 15px;
        gap: 15px;
    }
    
    .map-panel {
        height: 300px;
    }
    
    .route-status-indicators {
        padding: 8px;
        gap: 3px;
    }
    
    .status-indicator {
        font-size: 0.75rem;
    }
    
    .status-dot {
        width: 8px;
        height: 8px;
    }
    
    .route-info {
        flex-direction: column;
        gap: 5px;
        font-size: 0.75rem;
    }
}

/* 后端服务未运行提示 */
.backend-not-running {
    background-color: rgba(255, 243, 205, 0.15);
    border: 1px solid rgba(255, 234, 167, 0.5);
    border-radius: 14px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.backend-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #ffc107;
}

.warning-icon {
    font-size: 24px;
    margin-right: 8px;
}

.backend-instructions {
    color: #fff;
    opacity: 0.9;
}

.backend-instructions p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.start-backend-btn {
    background: linear-gradient(45deg, #ffc107, #ffb300);
    color: #0a0a0a;
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.start-backend-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
}
