/* 火车票频道首页样式 - 参照机票频道首页 */

.train-channel .banner {
    width: 100%;
    height: 340px;
    position: relative;
    background: url(/content/Styles/images/banner6.jpg) no-repeat;
    background-position: 50% 50%;
    background-size: cover;
    display: block;
}

.train-channel .banner-inner {
    width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

@media (max-width: 1240px) {
    .train-channel .banner-inner {
        width: 100%;
        padding: 0 20px;
    }
}

.train-channel .channel-search {
    width: 560px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 10;
}

/* 火车票搜索面板特定调整 */
.train-channel .search-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: transparent;
    box-shadow: none;
}

.train-channel .btn-group-capsule {
    display: none; /* 如果火车票不需要切换往返，可以先隐藏 */
}

.train-channel .form-grid {
    display: grid;
    grid-template-columns: 1fr 44px 1fr;
    grid-template-rows: 54px 54px;
    gap: 12px;
    width: 100%;
}

.train-channel .float-label-group {
    position: relative;
    width: 100%;
    height: 54px;
}

.train-channel .float-input {
    width: 100%;
    height: 100%;
    padding: 24px 12px 8px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 15px;
    background: #fff;
    transition: all 0.3s;
    box-sizing: border-box;
}

.train-channel .float-input:focus {
    outline: none;
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(255, 154, 3, 0.15);
}

.train-channel .float-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #999;
    pointer-events: none;
    transition: all 0.3s;
}

.train-channel .float-input:not(:placeholder-shown) ~ .float-label,
.train-channel .float-input:focus ~ .float-label {
    top: 10px;
    font-size: 12px;
    color: var(--brand-accent);
    font-weight: 500;
}

/* 交换按钮 */
.train-channel .swap-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.train-channel .swap-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s;
}

.train-channel .swap-btn:hover {
    background: var(--brand-accent);
    color: #fff;
    border-color: var(--brand-accent);
}

.train-channel .swap-icon {
    display: inline-block;
    transition: transform 0.4s;
}

/* 日期全宽 */
.train-channel .form-grid > .float-label-group:last-child {
    grid-column: 1 / -1;
}

.train-channel .form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.train-channel .search-btn {
    height: 46px;
    width: 100%;
    background: var(--brand-accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.train-channel .search-btn:hover {
    background: var(--brand-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 154, 3, 0.2);
}

/* 主内容区域 */
.train-channel .container-main {
    width: 1200px;
    margin: 40px auto;
}

@media (max-width: 1240px) {
    .train-channel .container-main {
        width: auto;
        margin: 30px 20px 40px;
    }
}

.train-channel .quick-entry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 992px) {
    .train-channel .quick-entry {
        grid-template-columns: repeat(2, 1fr);
    }
}

.train-channel .quick-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.train-channel .quick-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: rgba(255, 154, 3, 0.2);
}

.train-channel .quick-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(0, 134, 246, 0.08);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.train-channel .quick-card:hover .icon {
    background: var(--primary-color);
    color: #fff;
}

.train-channel .quick-card .text .h {
    color: #222;
    font-size: 16px;
    font-weight: 700;
}

.train-channel .quick-card .text .s {
    color: #888;
    font-size: 12px;
    margin-top: 4px;
}

/* 热门火车票与常见问题 */
/* 预订流程区域 */
.train-channel .process-section {
    background: #fff;
    padding: 40px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(0,0,0,0.02);
}

.train-channel .process-list {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    width: 1200px;
}

.train-channel .process-item {
    display: flex;
    align-items: center;
    position: relative;
    flex: 1;
    justify-content: center;
    padding: 0 10px;
    transition: transform 0.3s;
}

.train-channel .process-item:hover {
    transform: translateY(-2px);
}

.train-channel .process-item:not(:last-child)::after {
    content: '\F285';
    font-family: bootstrap-icons;
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    color: #f0f0f0;
    font-size: 18px;
    font-weight: bold;
}

.train-channel .process-item .icon-box {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 134, 246, 0.05) 0%, rgba(0, 134, 246, 0.12) 100%);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 134, 246, 0.05);
}

.train-channel .process-item:hover .icon-box {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 6px 15px rgba(0, 134, 246, 0.2);
}

.train-channel .process-item .text-box h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: #1f2d3d;
}

.train-channel .process-item .text-box p {
    font-size: 11px;
    color: #a0a0a0;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 热门线路卡片深度优化 */
.train-channel .train-routes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.train-channel .route-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.train-channel .route-item:hover {
    border-color: rgba(255, 154, 3, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
    text-decoration: none;
}

.train-channel .route-item .city-info {
    font-size: 17px;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.train-channel .route-item .city-info .separator {
    color: var(--primary-color);
    margin: 0 10px;
    font-weight: 400;
    opacity: 0.6;
    font-size: 14px;
}

.train-channel .route-item .price-info {
    color: var(--brand-accent);
    font-size: 20px;
    font-weight: 800;
    text-align: right;
}

.train-channel .route-item .price-info small {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    margin-left: 2px;
}

.train-channel .route-item .price-info small:first-child {
    margin-right: 1px;
}

/* FAQ 列表精致化 */
.train-channel .faq-list {
    background: transparent;
    padding: 0;
    list-style: none;
    margin: 24px 0 0;
}

.train-channel .faq-item {
    margin-bottom: 16px;
    padding: 24px;
    background: #fafafa;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.train-channel .faq-item:hover {
    background: #fff;
    border-color: #f0f0f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.train-channel .faq-item:last-child {
    margin-bottom: 0;
}

.train-channel .faq-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1f2d3d;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.train-channel .faq-item h3::before {
    content: 'Q';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    text-align: center;
    line-height: 24px;
    margin-right: 14px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 2px 6px rgba(0, 134, 246, 0.2);
}

.train-channel .faq-item p {
    font-size: 14px;
    color: #606266;
    line-height: 1.8;
    padding-left: 38px;
    margin: 0;
}

.train-channel .hot-section,
.train-channel .faq-section {
    margin-top: 24px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 24px;
    padding: 24px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.train-channel .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.train-channel .section-title h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #1f2d3d;
}

.train-channel .section-subtitle {
    color: #8a8a8a;
    font-size: 12px;
    margin-left: 10px;
}

.train-channel .section-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.train-channel .section-tabs span {
    border: 1px solid #eee;
    background: #fff;
    color: #666;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.train-channel .section-tabs span:hover {
    border-color: rgba(0, 134, 246, 0.35);
    color: var(--primary-color);
    background: rgba(0, 134, 246, 0.05);
}

.train-channel .section-tabs span.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.train-channel .train-routes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

@media (max-width: 992px) {
    .train-channel .train-routes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.train-channel .route-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.train-channel .route-item:hover {
    border-color: var(--brand-accent);
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transform: translateY(-2px);
    text-decoration: none;
}

.train-channel .route-item .city-info {
    font-size: 16px;
    font-weight: 700;
}

.train-channel .route-item .city-info .separator {
    color: var(--primary-color);
    margin: 0 8px;
}

.train-channel .route-item .price-info {
    color: var(--brand-accent);
    font-size: 18px;
    font-weight: 800;
}

.train-channel .route-item .price-info small {
    font-size: 12px;
    font-weight: normal;
}

/* 常见问题 */
.train-channel .faq-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.train-channel .faq-item h3 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
    padding-bottom: 8px;
    border-bottom: 2px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.train-channel .faq-item h3::before {
    content: "";
    display: block;
    width: 3px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 2px;
}

.train-channel .faq-item a {
    display: block;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    line-height: 2.2;
}

.train-channel .faq-item a:hover {
    color: var(--primary-color);
}