/* 全局样式 */
:root {
    --primary-color: #1a5f7a;
    --primary-light: #2c7a9a;
    --primary-dark: #0d3d50;

    --bs-primary-rgb: 26, 95, 122;
    --secondary-color: #2c88b0;
    --accent-color: #ffd700;
    --bs-heading-color: #333;
    --bs-link-color: #1a5f7a;
}

.nav-pills {
    --bs-nav-pills-link-active-bg: #1a5f7a;
}

body {
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    font-family: "Open Sans", sans-serif;
    letter-spacing: 0px;
    text-align: left;
    color: #666;
}

img {
    width: 100%;
    max-width: 100%;
}

iframe {
    border: none;
}

ul {
    padding: 0;
    margin: 0;
    list-style: none;
}


a {
    color: #333;
    text-decoration: none;
}

a:hover {
    color: var(--primary-color) !important;
}


::placeholder {
    /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #b0aebe;
    opacity: 1;
    /* Firefox */
}

:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: #b0aebe;
}

::-ms-input-placeholder {
    /* Microsoft Edge */
    color: #b0aebe;
}


.pd-tp-100 {
    padding-top: 100px !important;
}

/*--------------------------------- fonts----------------------------*/
.font-14 {
    font-size: 14px;
}

.font-16 {
    font-size: 16px;
}

.font-20 {
    font-size: 20px;
}

.font-40 {
    font-size: 40px !important;
}

.font-42 {
    font-size: 42px !important;
}

.font-45 {
    font-size: 45px !important;
}

h2 {
    font-size: 20px !important;
    margin-bottom: 1rem;
    font-weight: bold;
}

h3 {
    font-size: 18px !important;
}

h4 {
    font-size: 16px !important;
}

h5 {
    font-size: 14px !important;
}

.a60 {
    width: 60px;
    height: 60px;
}

.color-999 {
    color: #999;
}

.no-border {
    border-bottom: 0 !important;
}

/*单行多行显示*/
.ui-nowrap {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ui-nowrap-flex {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    -webkit-box-flex: 1;
    /*height: inherit;*/
}

.ui-nowrap-multi {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ratio {
    overflow: hidden;
}

.ratio img {
    object-fit: contain;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    color: var(--primary-color) !important;
}

.navbar-brand img {
    width: 48px;
    height: 48px;
}

/* 响应式图片 */
.img-fluid {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 卡片样式 */
.card {
    border: none;
    box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card .card-text {
    margin-bottom: 0.8rem;
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* 轮播图样式 */
.carousel-item {
    height: 600px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 8px;
}

/* 搜索框样式 */
.search-box {
    margin-top: -50px;
    position: relative;
    z-index: 100;
}

.search-box .nav-tabs {
    border: none;
}

.search-box .nav-link {
    color: var(--primary-color);
    border: none;
    padding: 10px 20px;
}

.search-box .nav-link.active {
    background-color: #fff;
    border-top: 3px solid var(--primary-color);
}

/* 卡片样式增强 */
.route-card {
    margin-bottom: 20px;
}

.route-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.price {
    color: #ff4081;
    font-weight: bold;
}

/* 品牌优势图标 */
.advantage-item {
    padding: 20px;
}

.advantage-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* 页脚二维码 */
.qr-code {
    width: 120px;
    height: 120px;
    background: #fff;
    padding: 5px;
    border-radius: 4px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }

    .search-box {
        margin-top: 0;
    }

    .route-card .card-img-top {
        height: 150px;
    }
}

/* Timeline 样式 */
.timeline {
    position: relative;
    padding: 0 0 20px;
}

.timeline-item {
    position: relative;
    padding-left: 18px;
    margin-bottom: 0;
}

.timeline-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #1a5f7a;
    color: white;
    text-align: center;
    line-height: 36px;
    position: absolute;
    left: 0;
    top: 0;
}

.timeline-content {
    border-left: 2px solid #e9ecef;
    padding-left: 30px;
    padding-bottom: 20px;
}

.timeline-content h6 {
    color: #1a5f7a;
    margin-bottom: 10px;
}

.timeline-content ul {
    margin: 0;
    padding-left: 0;
}

.timeline-content li {
    margin-bottom: 8px;
    color: #666;
}

/* 最后一个时间线项目去掉底部边距 */
.timeline-item:last-child .timeline-content {
    padding-bottom: 0;
}

/* 房型列表样式 */
.cabin-item {
    transition: background-color 0.3s ease;
}

.cabin-item:hover {
    background-color: #f8f9fa;
}

.cabin-item:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border: 0 !important;
}

.cabin-item small {
    display: block;
    color: #999;
}

/* 航线详情子选项卡样式 */
.route-details .nav-pills {
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    padding: 0.5rem;
}

.route-details .nav-pills .nav-link {
    color: #495057;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.route-details .nav-pills .nav-link.active {
    background-color: #0d6efd;
    color: white;
}

.route-details .tab-content {
    background-color: #fff;
    min-height: 300px;
}

/* 图标样式 */
.route-details .bi {
    margin-right: 8px;
}

/* 行程亮点样式 */
#highlights1 li {
    padding: 8px 0;
}

/* 费用说明样式 */
.fee-includes, .fee-excludes {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    margin-bottom: 15px;
}

.fee-includes h6, .fee-excludes h6 {
    color: #495057;
    margin-bottom: 10px;
}

.fee-includes li, .fee-excludes li {
    margin-bottom: 8px;
}

/* 文章页面样式 */
.article-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.article-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.article-meta {
    font-size: 0.9rem;
}

.article-meta i {
    margin-right: 5px;
}

.article-nav {
    position: sticky;
    top: 80px;
}

.article-nav .nav-link {
    color: #666;
    padding: 0.3rem 1rem;
}

.article-nav .nav-link:hover {
    color: #0d6efd;
    background-color: #f8f9fa;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body h2 {
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.article-body img {
    max-width: 100%;
    margin: 1rem 0;
}

.section-title {
    position: relative;
    padding-left: 15px;
    margin-bottom: 1.5rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 4px;
}

.related-cruises .card,
.related-articles .card {
    transition: transform 0.3s ease;
}

.related-cruises .card:hover,
.related-articles .card:hover {
    transform: translateY(-5px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .article-title {
        font-size: 1.5rem;
    }

    .article-nav {
        position: static;
        margin-bottom: 1rem;
    }
}


.cruise-calendar {
    background-color: #f8f9fa;
}

.calendar-cell {
    width: calc(100% / 7);
    padding: 15px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.calendar-day {
    position: relative;
    cursor: pointer;
}

.calendar-day.has-cruise {
    background-color: #e3f2fd;
}

.calendar-day.has-cruise:hover {
    background-color: #bbdefb;
}

.cruise-tooltip {
    position: absolute;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    min-width: 280px;
    z-index: 1000;
}

.special-offers {
    background: url("//xishayou.oss-cn-hangzhou.aliyuncs.com/remote/2025/06/06/213EF15C-77A6-B0FE-FA68-DF6E0CF36CCB.jpg") no-repeat top;
    background-size: cover;
}

.recommended-routes {
    background: url("//xishayou.oss-cn-hangzhou.aliyuncs.com/remote/2025/06/06/2F40A09A-C266-FCFA-3F09-C03CC00212B6.jpg") no-repeat top;
    background-size: cover;
}

/*预订*/
.order-page {
    background-repeat: no-repeat;
    background-position: top;
    min-height: 400px;
    padding-top: 200px;
    background-size: contain;
}

.calendar-table .selectable {
    background: rgba(26, 95, 122, 0.15);
}

.calendar-table .selectable:hover {
    background: rgba(255, 64, 129, 0.15);
}

.calendar-table .selectable a {
    display: block;
    width: 100%;
    height: 100%;
}

.calendar-table .selectable.the_date {
    background: rgba(255, 64, 129, 0.35);
}


.toast {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.toast-header {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}


/* 横向预订表单 */
.quick-booking {
    background: white;
    border-radius: var(--bs-border-radius);
    box-shadow: 0 20px 60px rgba(26, 95, 122, 0.15);
    margin-top: -80px;
    position: relative;
    z-index: 10;
    padding: 30px;
    border: 1px solid rgba(26, 95, 122, 0.1);
}

.quick-booking .booking-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.quick-booking .form-group {
    position: relative;
}

.quick-booking .form-label-horizontal {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quick-booking .form-control-horizontal,.quick-booking .form-select-horizontal {
    border: 2px solid #e9ecef;
    border-radius: var(--bs-border-radius);;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(248, 249, 250, 0.5);
    height: 50px;
}

.quick-booking .form-control-horizontal:focus,.quick-booking .form-select-horizontal:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 95, 122, 0.15);
    background: white;
    outline: none;
}

.quick-booking .cruise-select-wrapper {
    position: relative;
}

.quick-booking .cruise-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 var(--bs-border-radius) var(--bs-border-radius);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.quick-booking .cruise-dropdown.show {
    display: block;
}

.quick-booking .cruise-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-booking .cruise-item:hover {
    background: rgba(26, 95, 122, 0.05);
}

.quick-booking .cruise-item:last-child {
    border-bottom: none;
}

.quick-booking .cruise-item.selected {
    background: rgba(26, 95, 122, 0.1);
    border-left: 4px solid var(--primary-color);
}

.quick-booking .cruise-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 4px;
}

.quick-booking .cruise-info {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.quick-booking .cruise-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.quick-booking .cruise-features-mini {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.quick-booking .feature-mini {
    background: rgba(26, 95, 122, 0.1);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: var(--bs-border-radius);
    font-size: 0.75rem;
    font-weight: 500;
}

.btn-search {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    border: none;
    border-radius: var(--bs-border-radius);
    height: 50px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(26, 95, 122, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(26, 95, 122, 0.4);
    background: linear-gradient(45deg, var(--primary-light), var(--primary-color));
    color: white;
}

.btn-search::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.btn-search:hover::before {
    width: 300px;
    height: 300px;
}

.contact-modal .feature-icon,.contact-modal .form-label {
    color: var(--primary-color);
    font-size: 1rem;
}

.contact-modal .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.contact-modal .modal-header {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 20px 30px;
}

.contact-modal .modal-body {
    padding: 30px;
}

.loading-spinner {
    display: none;
}

.loading-spinner.show {
    display: inline-block;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .quick-booking {
        margin-top: -60px;
        padding: 25px 20px;
    }

    .quick-booking .booking-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .quick-booking {
        margin-top: -40px;
        padding: 20px 15px;
    }

    .quick-booking .form-control-horizontal,.quick-booking .form-select-horizontal,.btn-search {
        height: 45px;
        font-size: 0.95rem;
    }

    .quick-booking .booking-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .quick-booking .cruise-dropdown {
        max-height: 250px;
    }

    .quick-booking .cruise-item {
        padding: 12px 15px;
    }

    .quick-booking .cruise-name {
        font-size: 0.9rem;
    }

    .quick-booking .cruise-info {
        font-size: 0.8rem;
    }
}