/* 英雄横幅 */
.tour-hero {
    position: relative;
    height: 30vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: start;
    justify-content: center;
    margin-top: 40px;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.hero-content {
    margin-top: 56px;
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-size: 4.5rem;
    letter-spacing: 0.3rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: white;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: rgba(255,255,255,0.9);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.2s forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 波浪分隔线 */
.wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    height: 150px;
}
.wave-divider svg {
    display: block;
    width: 100%;
    height: 100%;
    vertical-align: bottom; /* 使SVG内容底部对齐 */
}

/* AI路线设计 */
.ai-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 0 0 20px 20px;
    border-bottom: 6px solid #92a1b4;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px;
    width: 100%;
}

.special-requirement {
    resize: none;
    min-height: 96px;
    max-height: 224px;
    overflow-y: auto;
}

/* AI响应样式 */
.ai-response table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ai-response th, .ai-response td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.ai-response th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.ai-response tr:hover {
    background-color: #f8f9fa;
}

/* 路线列表容器 */
.route-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    margin: 0 auto;
}

.route-card {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.route-header {
    padding: 1rem;
    background: linear-gradient(135deg, #d8f4ff 0%, #b3e5fc 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.route-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #343a40;
    display: flex;
    align-items: center;
    gap: 12px;
}

.route-title i {
    font-size: 1.5rem;
    color: #228be6;
    width: 28px;
    text-align: center;
    margin-top: 2px;
}

.route-duration {
    font-size: 1.5rem;
    font-weight: 600;
    color: #343a40;
    display: flex;
    align-items: center;
    gap: 12px;
}

.route-duration i {
    font-size: 1.5rem;
    color: #07b80a;
    width: 28px;
    text-align: center;
    margin-top: 2px;
}

.route-body {
    padding: 1.5rem;
}

.route-description {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(to right, rgba(34,139,230,0.05), transparent);
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.description-icon {
    font-size: 1.4rem;
    color: #228be6;
    flex-shrink: 0;
    margin-top: 3px;
    transition: transform 0.3s ease;
}

.description-text {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.8;
    color: #495057;
    position: relative;
    padding-left: 1rem;
    border-left: 2px solid #e9ecef;
}

.route-stations {
    padding: 40px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
}

.station {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 20px 35px;
    min-width: 180px;
    z-index: 2;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.station:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.station::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 3px;
    background: #ccc;
    z-index: -1;
    transition: transform 0.3s ease;
}
.station:hover::before {
    transform: translateY(10px);
}

.station:first-child::before {
    left: 50%;
}

.station:last-child::before {
    right: 50%;
}

.station.active {
    border-bottom: 2px dashed #2a5298;
}

.station-index {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2a5298;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.station-time {
    width: 100%;
    max-width: 140px;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.station-arrival {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2a5298;
    margin-bottom: 5px;
}

.station-duration {
    background: #eef5ff;
    color: #1e3c72;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    display: inline-block;
}

.station-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #222;
    margin-top: 8px;
}

.station-description {
    padding: 1.5rem;
    margin: 1.5rem 0;
    background: rgba(34,139,230,0.08);
    border-left: 4px solid #228be6;
    border-right: 4px solid #228be6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: relative;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
    text-align: center;
    width: 60%;
    margin: 0 auto;
    margin-bottom: 35px;
}

@media (max-width: 768px) {
    .route-header {
        padding: 0.6rem;
    }
    .route-title {
        font-size: 1rem;
        gap: 8px;
    }
    .route-title i {
        font-size: 1.2rem;
    }
    .route-total-time {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    .route-description {
        padding: 1rem;
        gap: 0.8rem;
    }
    .description-icon {
        font-size: 1.2rem;
    }
    .description-text {
        font-size: 0.9rem;
        padding-left: 0.8rem;
    }
    .station-description {
        padding: 1rem;
        margin: 1rem 0;
        font-size: 0.9rem;
    }
}

/* 屏幕窄时纵向排列 */
@media (max-width: 768px) {
    .route-stations {
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
    }

    .station {
        flex-direction: row;
        width: 100%;
        padding: 25px;
    }

    .station::before {
        content: "";
        position: absolute;
        left: 43.5px;
        top: 0;
        height: 100%;
        width: 3px;
        background: #ccc;
        z-index: -1;
        transform: translateY(50%);
    }
    .station:first-child::before {
        left: 43.5px;
    }
    .station:last-child::before {
        display: none;
    }
    .station:hover::before {
        transform: translateY(50%);
    }

    .station-index {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.2rem;
    }

    .station-name {
        font-size: 1.15rem;
        text-align: center;
        margin-top: 0;
    }

    .station-time {
        flex-direction: column;
        gap: 0.5rem;
    }
}