﻿.banner {
    width: 100%;
    height: 400px;
    position: relative;
    z-index: -1;
    overflow: hidden;
}

.bannerCon {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    overflow: hidden;
}

    .bannerCon a {
        display: block;
        width: 100%;
        height: 100%;
        margin: 0 auto;
        background: url(/content/Styles/images/banner3.jpg) no-repeat;
        background-position: 50% 0;
        background-size: cover;
    }

        .bannerCon a img {
            width: 1920px;
            height: 100%;
            overflow: hidden;
        }

.search {
    width: 1200px;
    height: 300px;
    margin: -346px auto 0;
}

.searchMin {
    width: 596px;
    height: 100%;
    background: #fff;
    margin-left: 50px;
}



.foot {
    width: 100%;
    height: 60px;
    margin-top: 40px;
}

.footMin {
    width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding-top: 12px;
    box-sizing: border-box;
}

    .footMin:after {
        display: block;
        clear: both;
        content: " ";
        overflow: hidden;
    }

.foot p {
    width: 180px;
    height: 100%;
    margin-right: 160px;
    float: left;
    position: relative;
}

.foot .noMargin {
    margin: 0;
}

.foot p b {
    position: absolute;
    left: 50px;
    top: 2px;
    color: #fff;
    font-size: 16px;
    font-weight: normal;
}

.foot p span {
    position: absolute;
    left: 50px;
    bottom: 12px;
    color: #fff;
}

.foot {
    min-width: 1300px;
    margin-bottom: -30px;
}

/* ==================== 紧凑型搜索框（最终版） ==================== */
.flight-search-compact {
    display: flex;
    width: 100%;
    max-width: 560px;
    min-height: 280px;
    background: rgba(255, 255, 255, 0.85); /* 半透明背景 */
    backdrop-filter: blur(12px); /* 毛玻璃效果 */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-2xl);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15); /* 更柔和且深邃的投影 */
    overflow: hidden;
    font-family: var(--font-family);
}

/* 左侧标签 */
.search-tabs-vertical {
    width: 90px;
    background: rgba(255, 255, 255, 0.4);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

    .search-tabs-vertical .tab {
        flex: 1;
        height: 70px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        color: #777;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        gap: 4px;
    }

        .search-tabs-vertical .tab i {
            font-size: 18px;
            opacity: 0.7;
            transition: transform 0.3s;
        }

        .search-tabs-vertical .tab span {
            font-weight: 500;
            letter-spacing: 1px;
        }

        /* 激活状态：无大背景色，改为品牌色文字+左侧指示条 */
        .search-tabs-vertical .tab.active {
            background: #fff; /* 激活时与内容区同色，形成融合感 */
            color: var(--primary-color);
            font-weight: 600;
        }

        .search-tabs-vertical .tab.active::before {
            content: "";
            position: absolute;
            left: 0;
            top: 15%;
            height: 70%;
            width: 3px;
            background: var(--primary-color);
            border-radius: 0 4px 4px 0;
        }

        .search-tabs-vertical .tab.active i {
            opacity: 1;
            transform: scale(1.1);
        }

        .search-tabs-vertical .tab:hover:not(.active) {
            color: var(--primary-color);
            background: rgba(255, 255, 255, 0.6);
        }

    .search-tabs-vertical .tab-placeholder {
        flex: 1;
        background: transparent;
    }

/* 右侧内容 */
.search-content {
    flex: 1;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: transparent;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 44px 1fr;
    grid-template-rows: 54px 54px;
    gap: 12px;
    flex: 1;
}

/* ==================== 浮动标签核心 ==================== */
.float-label-group {
    position: relative;
    flex: 1;
}

.float-input {
    width: 100%;
    height: 100%;
    padding: 24px 12px 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.08); /* 更淡的边框 */
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    font-size: 15px;
    transition: var(--transition-base);
    box-sizing: border-box;
    padding-left: 16px;
}

    .float-input:focus {
        outline: none;
        border-color: var(--primary-color);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(0, 134, 246, 0.1);
    }

.float-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #999;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* 上浮状态 */
.float-input:not(:placeholder-shown) ~ .float-label,
.float-input:focus ~ .float-label {
    top: 10px;
    font-size: 11px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ==================== 城市下拉建议 ==================== */
.city-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: var(--radius-lg); /* 统一为8px */
    max-height: 200px;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
    z-index: 10;
    display: none;
}

    .city-suggest.show {
        display: block;
    }

.city-suggest-item {
    padding: 10px 12px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

    .city-suggest-item:hover {
        background: #f8f9fa;
        color: var(--primary-color);
    }

    .city-suggest-item:last-child {
        border-bottom: none;
    }

/* ==================== 交换按钮 & 天数 ==================== */
.swap-wrapper,
.day-diff-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hotel-day-diff-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.swap-btn,
.day-diff {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-round); /* 统一使用圆形 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: var(--transition-base);
}

.swap-btn {
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    cursor: pointer;
}

    .swap-btn:hover {

        background: var(--brand-accent);

        color: #fff;

        border-color: var(--brand-accent);

    }

    

    .day-diff {

        background: #f8f9fa;

        border: 1px solid #ddd;

        color: #666;

        font-weight: 500;

    }

    

    /* ==================== 底部控制 ==================== */

    .form-footer {

        display: flex;

        align-items: center;

        justify-content: space-between;

        margin-top: 12px;

        font-size: 13px;

    }

    

    .premium-check,

    .trip-type-mini label {

        color: #666;

        cursor: pointer;

        white-space: nowrap;

    }

    

    .trip-type-mini label {

        margin: 0 8px;

    }

    

    .search-btn {

        height: 40px;

        padding: 0 24px;

        background: var(--brand-accent);

        color: #fff;

        border: none;

        border-radius: var(--radius-lg);

        font-size: 15px;

        font-weight: 600;

        cursor: pointer;

        display: flex;

        align-items: center;

        gap: 8px;

        transition: var(--transition-base);

        box-shadow: 0 4px 12px rgba(255, 154, 3, 0.2);

    }

    

        .search-btn:hover {

            background: var(--brand-accent-hover);

            transform: translateY(-1px);

            box-shadow: 0 6px 16px rgba(255, 154, 3, 0.3);

        }

    

    /* ==================== 响应式 ==================== */

    @media (max-width: 540px) {

        .flight-search-compact {

            flex-direction: column;

            margin: 0 16px;

            background: #fff; /* 移动端去掉透明，保证清晰 */

        }

    

        .search-tabs-vertical {

            width: 100%;

            height: 50px;

            flex-direction: row;

            border-right: none;

            border-bottom: 1px solid #eee;

            padding: 0;

            gap: 0;

        }

    

            .search-tabs-vertical .tab {

                writing-mode: horizontal-tb;

                letter-spacing: normal;

                flex: 1;

                height: 100%;

            }

    

        .form-grid {

            grid-template-columns: 1fr;

            grid-template-rows: repeat(4, 54px);

            gap: 10px;

        }

    

        .swap-wrapper,

        .day-diff-wrapper {

            grid-column: 1 / -1;

            justify-content: center;

        }

    }

    

    /* ==================== Bootstrap 胶囊按钮美化 ==================== */

    .btn-group-capsule {

        display: inline-flex;

        border: 1px solid #ddd;

        border-radius: var(--radius-xl); /* 统一为12px */

        overflow: hidden;

        background: #f8f9fa;

        box-shadow: var(--shadow-xs);

        margin: 0 auto 16px;

    }

    

        .btn-group-capsule .btn {

            border: none !important;

            border-radius: 0 !important;

            font-weight: 500;

            color: #666;

            padding: 8px 20px;

            min-width: 64px;

        }

    

        .btn-group-capsule .btn-check:checked + .btn {

            background: var(--brand-accent) !important;

            color: #fff !important;

            font-weight: 600;

        }

    

        .btn-group-capsule .btn:hover {

            background: #f0f0f0;

            color: #333;

        }

    .btn-group-capsule .separator {
        display: flex;
        align-items: center;
        padding: 0 10px;
        color: #ccc;
        font-weight: 300;
        pointer-events: none;
    }

/* 小屏响应式 */
@media (max-width: 640px) {
    .btn-group-capsule {
        width: 100%;
        justify-content: center;
    }

        .btn-group-capsule .btn {
            flex: 1;
        }
}

/* ==================== 交换按钮：单次180°旋转 ==================== */
.swap-icon {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotate(0deg);
}

.swap-btn.swapped .swap-icon {
    transform: rotate(180deg); /* 最终状态 */
}

/* 可选：点击时加个缩放反馈 */
.swap-btn:active {
    transform: scale(0.92);
}


/*酒店查询框*/
/* 酒店查询特定的微调 */
#hotel-panel .swap-btn:hover {
    /* 酒店中间图标不需要像机票那样变色交互，或者你可以保留 */
    background: #fff;
    color: var(--primary-color);
    transform: none; /* 禁止旋转 */
}

/* 简单的客流选择器样式 */
#guest-selector:hover {
    color: var(--primary-color);
}

/* 酒店城市选择器专用样式 */
.float-label-group {
    position: relative; /* 确保父容器是定位基准 */
}

/* 右上角区县标签 */
.district-tag {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-size: 12px;
    padding: 2px 6px;
    border-radius: var(--radius-sm); /* 统一为4px */
    pointer-events: none;
    display: none;
    z-index: 5;
    white-space: nowrap;
}

/* 当输入框浮起 label 时，调整一下 tag 的位置避免重叠(可选) */
.float-input:focus ~ .district-tag,
.float-input:not(:placeholder-shown) ~ .district-tag {
    /* 保持在垂直居中即可，或者根据需要微调 */
}

/* 搜索建议列表中，区分城市和区县的样式 */
.cityslide li .district-parent {
    font-size: 12px;
    color: #999;
    margin-left: 5px;
}

/* 火车票查询框额外样式 - 添加到 Index.css 中 */

/* 火车票查询框两行布局 */
#train-panel .train-grid {
    grid-template-columns: 1fr 44px 1fr;
    grid-template-rows: 54px 54px;
    gap: 12px;
}

/* 出发日期占满整行 */
#train-panel .train-date-full {
    grid-column: 1 / -1;
}

/* 火车票交换按钮旋转动画 */
#trainCitySwap .swap-icon {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotate(0deg);
}

#trainCitySwap.swapped .swap-icon {
    transform: rotate(180deg);
}

#trainCitySwap:active {
    transform: scale(0.92);
}

/* 响应式调整 */
@media (max-width: 768px) {
    #train-panel .train-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 54px);
    }

    #train-panel .swap-wrapper {
        display: none;
    }

    #train-panel .train-date-full {
        grid-column: 1;
    }
}

/* 新增首页区块样式 */
.index-content {
    width: 1200px;
    margin: 30px auto 0;
}

.index-section {
    background: #fff;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    padding: 18px 22px 16px;
    margin-bottom: 18px;
}

.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.section-title h2 {
    font-size: 20px;
    margin: 0;
    color: #222;
    letter-spacing: 0.5px;
    line-height: 1.1;
    white-space: nowrap;
}

.section-subtitle {
    margin: 0;
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    transform: translateY(-1px);
}

.section-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: 1px;
}

.section-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
}

.hot-city-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-content: start;
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.hot-city-list::-webkit-scrollbar {
    width: 6px;
}

.hot-city-list::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.12);
    border-radius: 8px;
}

.hot-city-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.18);
}

@media (max-width: 1024px) {
    .hot-city-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .hot-city-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.route-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 1280px) {
    .route-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: repeat(4, 1fr);
        max-height: 520px;
    }
}

@media (max-width: 1024px) {
    .route-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(6, 1fr);
        max-height: 780px;
    }
}

@media (max-width: 540px) {
    .route-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(12, 1fr);
        max-height: none;
    }
}

.route-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-radius: var(--radius-xl);
    border: 1px solid #f0f0f0;
    text-decoration: none;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.route-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 154, 3, 0.2);
    text-decoration: none;
}

.route-card:hover,
.route-card:hover * {
    text-decoration: none !important;
}

.route-date {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.route-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.route-city {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    min-width: 0;
}

.route-city .from,
.route-city .to {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.route-city .arrow {
    color: var(--primary-color);
    font-weight: normal;
    flex-shrink: 0;
}

.route-price {
    text-align: right;
    flex-shrink: 0;
}

.route-price .price em {
    font-style: normal;
    font-size: 20px;
    color: var(--brand-accent);
    font-weight: 700;
}

.route-price .price i {
    font-style: normal;
    margin-left: 2px;
    font-size: 12px;
    color: #999;
}

/* train */
#index-train-hot .section-body {
    grid-template-columns: 1fr;
}

.train-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1280px) {
    .train-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .train-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .train-list {
        grid-template-columns: 1fr;
    }
}

/* service */
.index-service {
    width: 100%;
    min-width: 1300px;
    margin-top: 50px;
    margin-bottom: -30px;
    background: #f8f9fa; /* 浅灰色背景，告别沉重 */
    border-top: 1px solid #eee;
}

.index-service .service-inner {
    width: 1200px;
    margin: 0 auto;
    padding: 32px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.service-card {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #333; /* 改为深色文字 */
    padding: 12px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.service-card:hover {
    background: #fff;
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #fff;
    color: var(--brand-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(10deg) scale(1.1);
}

.service-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: #222;
}

.service-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: #888;
}

.loading-hint,
.empty-hint {
    font-size: 13px;
    color: #999;
}

@media (max-width: 1280px) {
    .index-content {
        width: 1200px;
    }

    .route-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .train-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .index-service .service-inner {
        width: 1200px;
    }
}

@media (max-width: 1024px) {
    .index-content {
        width: calc(100% - 32px);
    }

    .section-body {
        grid-template-columns: 1fr;
    }

    .hot-city-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .route-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .index-service {
        min-width: 0;
    }

    .index-service .service-inner {
        width: calc(100% - 32px);
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .hot-city-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .route-grid {
        grid-template-columns: 1fr;
    }

    .train-list {
        grid-template-columns: 1fr;
    }
}

/* ==================== 热门城市按钮 & 区块TAB样式 ==================== */
.section-tab {
    border: none;
    background: #f5f5f5;
    color: #666;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-base);
    line-height: 1.2;
    font-weight: 500;
    white-space: nowrap;
}

.section-tab:hover {
    color: var(--primary-color);
    background: rgba(0, 134, 246, 0.08);
}

.section-tab.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 134, 246, 0.25);
}

.hot-city {
    height: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid #f0f0f0;
    background: #fff;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: var(--transition-base);
    padding: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-city:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hot-city.active {
    background: rgba(0, 134, 246, 0.08);
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.train-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px;
    border-radius: var(--radius-xl);
    border: 1px solid #f0f0f0;
    background: #fff;
    text-decoration: none;
    transition: var(--transition-base);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.train-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 154, 3, 0.2);
    text-decoration: none;
}

.train-city {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #333;
    font-weight: 600;
    min-width: 0;
}

.train-city .from,
.train-city .to {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.train-city .arrow {
    color: var(--primary-color);
    font-weight: normal;
    flex-shrink: 0;
}

.train-meta {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: #666;
    flex-shrink: 0;
}

.train-meta .date {
    font-size: 12px;
    color: #999;
}

.train-meta .price {
    font-size: 14px;
    color: var(--brand-accent);
    font-weight: 700;
}

.train-meta .price em {
    font-style: normal;
    font-size: 18px;
}

@media (max-width: 1024px) {
    .train-card {
        padding: 12px 12px;
    }
}