/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */

/* Carousel base class */
.carousel {
    width: 100% !important;
    height: 40rem !important;
    /*margin-bottom: 4rem;*/
}

/* Since positioning the image, we need to help out the caption */
.carousel-caption {
    bottom: 3rem;
    z-index: 10;
}

.container-xxl .carousel-inner {
    border-radius: .5rem;
}

/* Declare heights because of positioning of img element */
.carousel-item {
    width: 100% !important;
    height: 40rem !important;
    border-radius: 0;
    overflow: hidden;
}

.carousel-item img {
    width: 100% !important;
    height: 40rem !important;
}


/* Home
-------------------------------------------------- */
/* 默认字体大小，适用于桌面浏览器 */
.wrap-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* 当屏幕宽度小于1200px时，调整字体大小 */
@media (max-width: 1199.98px) {
    .wrap-title {
        font-size: 1.75rem;
    }
}

/* 当屏幕宽度小于992px时，调整字体大小 */
@media (max-width: 991.98px) {
    .wrap-title {
        font-size: 1.75rem;
    }
}

/* 当屏幕宽度小于768px时，调整字体大小 */
@media (max-width: 767.98px) {
    .wrap-title {
        font-size: 1.5rem;
    }
}

/* 当屏幕宽度小于576px时，调整字体大小，适用于大多数手机屏幕 */
@media (max-width: 575.98px) {
    .wrap-title {
        font-size: 1.25rem;
    }
}


/* 景区信息栏
-------------------------------------------------- */
.index_info_bar {
    padding: 2rem 0;
    margin-bottom: 1.5rem;
    background-color: #fff;
}

.info_bar_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.info_bar_item {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.info_bar_item:not(.info_bar_item_weather) {
    padding: 1rem;
    border-radius: 0.75rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info_bar_item:not(.info_bar_item_weather):hover,
.info_bar_item:not(.info_bar_item_weather):focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px -5px rgba(14, 165, 233, 0.15), 0 10px 15px -6px rgba(14, 165, 233, 0.1);
    outline: none;
}

.info_bar_item_highlight:hover,
.info_bar_item_highlight:focus-visible {
    box-shadow: 0 20px 35px -5px rgba(255, 106, 0, 0.18), 0 10px 15px -6px rgba(255, 106, 0, 0.12);
}

.info_bar_icon {
    flex-shrink: 0;
    width: 4rem;
    height: 4rem;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #333;
    background-color: #fff;
}

.info_bar_svg_icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.info_bar_content {
    min-width: 0;
}

.info_bar_value {
    font-size: 1.75rem;
    font-weight: 600;
    color: #366169;
    line-height: 1.2;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info_bar_value_long {
    font-size: 1.25rem;
    line-height: 1.4;
}

.info_bar_label {
    font-size: 1rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info_bar_item_highlight .info_bar_icon {
    background: linear-gradient(135deg, #42747d, #366169);
    border-color: transparent;
    color: #fff;
}

.info_bar_item_highlight .info_bar_value {
    color: #366169;
}

.info_bar_item_weather .info_bar_content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 3.5rem;
}

.info_bar_item_weather tour-weather-widget {
    display: block;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.info_bar_hot {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.125rem 0.375rem;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: linear-gradient(90deg, #ff9800, #ff5722);
    border-radius: 0.25rem;
    vertical-align: middle;
    transform: translateY(-2px);
}

@media (max-width: 991.98px) {
    .info_bar_inner {
        flex-wrap: wrap;
        gap: 1.5rem 1rem;
    }

    .info_bar_item {
        flex: 1 1 calc(50% - 1rem);
    }

    .info_bar_value {
        font-size: 1.375rem;
    }
}

@media (max-width: 575.98px) {
    .info_bar_item {
        flex: 1 1 100%;
    }

    .info_bar_value {
        font-size: 1.25rem;
    }
}


/** 九宫格 **/
.index_nine_patch {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.nine_patch_item {
    overflow: hidden;
}

.nine_patch_item img {
    transition: transform 500ms;
    cursor: pointer;
}

.nine_patch_item img:hover,
.nine_patch_item img:focus {
    transform: scale(1.25);
    z-index: 1;
}

.nine_patch_label {
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: 500;
}

/* 热卖 */
.recommend_product_title {
    font-size: 1.125rem;
}

.index-hot-sale-item,
.index-scenic-item {
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, .1);
}

.index-hot-sale-item a {
    display: block;
    overflow: hidden;
}

.index-hot-sale-item a:hover,
.index-scenic-item:hover {
    cursor: pointer;
}

.index-hot-sale-item a img {
    transition: transform 500ms;
    height: 100%;
    /* max-height: 240px; */
    object-fit: cover;
    object-position: center;
    aspect-ratio: 4 / 3;
    /* 设置宽高比为 4:3 */
    object-fit: cover;
    /* 确保图片填充容器，裁剪多余部分 */
}

.index-hot-sale-item a:hover img,
.index-hot-sale-item a:focus img,
.index-scenic-item:hover img,
.index-scenic-item:focus img {
    transform: scale(1.125);
    z-index: -1;
}

.index-hot-sale-item .buy-count {
    font-size: 14px;
}

/* 景区展示 */
#scenicShow .index_scenic_item {
    display: block;
    position: relative;
    color: #111925;
    overflow: hidden;
    background-color: #fff;
    border-radius: 0.375rem;
    /*border: 1px solid #eee;*/
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, .1);
}

#scenicShow .index_scenic_item_img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 4 / 3;
    /* 设置宽高比为 3:4 */
    object-fit: cover;
    /* 确保图片填充容器，裁剪多余部分 */
    border-radius: 0;
}

.index_scenic_item_content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 1rem;
}

.index_scenic_item_title {
    font-size: 1.875rem;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.index_scenic_item_intro {
    font-size: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* 图片半透明遮罩，提升居中文字可读性 */
#scenicShow .index_scenic_item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
    border-radius: 0.375rem;
    z-index: 1;
    transition: background 0.3s ease;
}

#scenicShow .index_scenic_item:hover::after {
    background: rgba(0, 0, 0, 0.5);
}

/*首页推荐图文*/
.index-recommend-news img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 4 / 3;
    /* 设置宽高比为 4:3 */
    object-fit: cover;
    /* 确保图片填充容器，裁剪多余部分 */
}

.index-recommend-news:hover {
    cursor: pointer;
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, .1);
}



.custom-tooltip .tooltip-inner {
    background-color: rgba(220, 53, 69, 1) !important;
    color: #fff !important;
}

.custom-tooltip .tooltip-arrow::before {
    border-right-color: rgba(220, 53, 69, 1) !important;
}

.index_float_consult {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1000;
    width: 120px;
}

@media (max-width: 768px) {
    .index_float_consult {
        display: none;
        /* 在手机和平板屏幕上隐藏元素 */
    }
}
