/* ==========列表=========== */
.tour-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tour-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(52, 124, 52, 0.07);
    position: relative;
    transition: all 0.35s;
    cursor: pointer;
}

.tour-card.is-hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(52, 124, 52, 0.18);
}

.tour-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 2px;
    background: linear-gradient(120deg, #347c34, #7fd739, #ffb020);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: all 0.35s;
    pointer-events: none;
    z-index: 3;
}

.tour-card.is-hover::before {
    opacity: 1;
}

.tour-img-wrap {
    width: 340px;
    flex-shrink: 0;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.tour-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.6s;
}

.tour-card.is-hover .tour-img-wrap img {
    transform: scale(1.08);
}

.tour-img-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
            transparent 30%,
            rgba(52, 124, 52, 0.35) 50%,
            transparent 70%);
    transform: translateX(-100%);
    transition: transform 0s ease;
    pointer-events: none;
    z-index: 2;
}

.tour-card.is-hover .tour-img-wrap::after {
    transition: all 0.8s;
    transform: translateX(100%);
}

.tour-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    background: linear-gradient(90deg, #ff5a5f, #ff926b);
    color: #fff;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}

.tour-body {
    flex: 1;
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tour-top h3.tour-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s;
    position: relative;
    display: inline-block;
}

.tour-top h3.tour-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #347c34, #7fd739);
    transition: width 0.4s ease;
}

.tour-card.is-hover .tour-title {
    color: #347c34;
}

.tour-card.is-hover .tour-title::after {
    width: 100%;
}

.tour-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: #777;
    margin: 10px 0;
}

.tour-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.tour-tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tour-tag {
    padding: 3px 10px;
    background: #f0f7ff;
    color: #ff8c1a;
    border-radius: 6px;
    font-size: 12px;
    transition: all 0.3s;
}

.tour-card.is-hover .tour-tag {
    background: #ff8c1a;
    color: #fff;
}

.tour-card.is-hover .tour-tag:nth-child(1) {
    transition-delay: 0.02s;
}

.tour-card.is-hover .tour-tag:nth-child(2) {
    transition-delay: 0.08s;
}

.tour-card.is-hover .tour-tag:nth-child(3) {
    transition-delay: 0.14s;
}

.tour-card.is-hover .tour-tag:nth-child(4) {
    transition-delay: 0.2s;
}

.tour-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}

.tour-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.tour-price {
    color: #ff4d4f;
    font-size: 24px;
    font-weight: 700;
}

.tour-price small {
    font-size: 14px;
    font-weight: 400;
    color: #999;
}

.tour-detail-btn {
    padding: 10px 22px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff8c1a, #ffb020);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.tour-detail-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.35),
            transparent);
    transition: all 0.4s;
}

.tour-card.is-hover .tour-detail-btn {
    transform: scale(1.04);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.22);
}

.tour-card.is-hover .tour-detail-btn::before {
    left: 100%;
}

.tour-arrow {
    display: inline-block;
    margin-left: 6px;
    color: #fff;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tour-card.is-hover .tour-arrow {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 992px) {
    .tour-card {
        flex-direction: column;
    }

    .tour-img-wrap {
        width: 100%;
        height: 220px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 24px 14px;
    }

    .tour-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .tour-detail-btn {
        width: 100%;
        padding:5px 0 ;
        text-align: center;
    }
}

/* ===========详情=========== */

.main-wrap {
    display: grid;
    grid-template-columns: 70% 1fr;
    gap: 30px;
    align-items: start;
}

.right-side {
    position: sticky;
    top: 110px;
    height: fit-content;
}

.top-swiper-box {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.swiper.tour-swiper {
    width: 100%;
    height: 500px;
}

.tour-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
    width: 12px;
    height: 12px;
    margin: 0 6px !important;
}

.swiper-pagination-bullet-active {
    background: #ff8c1a;
    opacity: 1;
    transform: scale(1.2);
}

.swiper-button-prev,
.swiper-button-next {
    background: rgba(255, 255, 255, 0.35);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: 0.3s;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-50%) scale(1.08);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 16px;
    color: #222;
}

.tour-base-card {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    margin-bottom: 16px;
}

.tour-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.tour-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #666;
    margin-bottom: 14px;
}

.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-item {
    padding: 3px 8px;
    background: #f0f7ff;
    color: #ff8c1a;
    border-radius: 6px;
    font-size: 12px;
}

/* 右侧锚点目录卡片 */
.toc-card {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    margin-bottom: 16px;
}

.toc-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
    padding-left: 8px;
    border-left: 3px solid #ff8c1a;
}

.toc-list {
    list-style: none;
}

.toc-list li {
    margin-bottom: 10px;
}

.toc-list li a {
    display: block;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.toc-list li a:hover {
    background: #f0f7ff;
    color: #ff8c1a;
    transform: translateX(6px);
}

.toc-list li a.active {
    background: #e6f1ff;
    color: #ff8c1a;
    font-weight: 500;
}

.price-card {
    background: #fff;
    border-radius: 18px;
    margin-bottom: 16px;
    padding: 22px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.price-row {
    margin-bottom: 16px;
}

.price-num {
    font-size: 28px;
    color: #ff4d4f;
    font-weight: bold;
}

.price-num small {
    font-size: 13px;
    font-weight: normal;
    color: #999;
}

.book-submit {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff8c1a, #ffb020);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    display: inline-block;
    text-align: center;
}

.book-submit::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.4s ease;
}

.book-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.22);
}

.book-submit:hover::before {
    left: 100%;
}

/* 左侧内容区块 */
.info-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    margin-bottom: 24px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    padding-left: 10px;
    border-left: 4px solid #ff8c1a;
    margin-bottom: 18px;
}

/* 行程时间线 */
.day-item {
    border-left: 2px solid #ff8c1a;
    padding-left: 20px;
    padding-bottom: 26px;
    position: relative;
}

.day-item::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff8c1a;
    position: absolute;
    left: -7px;
    top: 2px;
}

.day-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.day-text {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.notice-text {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

/* 相关酒店板块 优化移入效果 */
.hotel-relate-wrap {
    margin-top: 40px;
}

.hotel-relate-wrap .tour-card {
    margin-bottom: 24px;
}

/* 预约表单样式 */
.book-form-wrap {
    margin-top: 10px;
}

.form-row {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
}

.form-input {
    width: calc(100% - 28px);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    transition: 0.3s ease;
    background: #fff;
}

.form-input:focus {
    outline: none;
    border-color: #347c34;
    box-shadow: 0 0 0 3px rgba(52, 124, 52, 0.12);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}
#inputTourName{    background: #f1f1f1;}
.form-input[readonly]:focus {
    border-color: #e2e8f0;
    box-shadow: none;
}

.form-submit {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff8c1a, #ffb020);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.form-submit::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.4s ease;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.22);
}

.form-submit:hover::before {
    left: 100%;
}


@media(max-width:1100px) {
    .main-wrap {
        display: flex;
        flex-direction: column-reverse;
    }
.toc-card{display: none;}
    .right-side {
        position: static;
        width: 100%;
    }
.left-main{width: 100%;}
    .swiper.tour-swiper {
        height: 280px;
    }

    .hotel-card {
        flex-direction: column;
    }

    .h-img {
        width: 100%;
        height: 180px;
    }
}

@media(max-width:576px) {
    .container {
        padding: 24px 14px;
    }

    .swiper.tour-swiper {
        height: 220px;
    }
}