/* 预加载动画 */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #8f1a1f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 顶部样式 */
.header__top {
    background: linear-gradient(90deg, #8f1a1f, #a82328);
    padding: 12px 0;
    color: rgba(255, 255, 255, 0.9);
}

.header-top__info {
    text-align: left;
}

.header-top__info p {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-top__info i {
    font-size: 1rem;
    opacity: 0.9;
}

.header__top-right {
    text-align: right;
}

/* 顶部按钮样式 */
.how-to-book-btn {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.how-to-book-btn:hover {
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.how-to-book-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.how-to-book-btn:hover i {
    transform: translateX(2px);
}

/* 导航栏样式 */
.header__bottom {
    background: #ffffff;
    padding: 15px 0;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* 导航栏分隔线 */
.header__bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(143, 26, 31, 0.08) 15%,
        rgba(143, 26, 31, 0.08) 85%,
        transparent 100%
    );
}

.header__bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(143, 26, 31, 0.08) 15%,
        rgba(143, 26, 31, 0.08) 85%,
        transparent 100%
    );
}

/* Logo样式 */
.navbar {
    padding: 0;
}

.navbar-brand {
    padding: 0;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: translateY(-2px);
}

/* 导航菜单样式 */
.navbar-nav {
    margin-left: auto;
    gap: 10px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #2c2926;
    font-weight: 500;
    padding: 8px 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 50px;
}

.nav-link i {
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: #8f1a1f;
    background: rgba(143, 26, 31, 0.05);
}

.nav-link:hover i {
    transform: translateX(2px);
}

.nav-link.active {
    color: #8f1a1f;
    background: rgba(143, 26, 31, 0.08);
}

.nav-link.text-danger {
    color: #dc3545 !important;
}

.nav-link.text-danger:hover {
    background: rgba(220, 53, 69, 0.05);
}

/* 移动端导航按钮 */
.navbar-toggler {
    padding: 8px 12px;
    border: none;
    background: rgba(143, 26, 31, 0.05);
    border-radius: 50px;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(143, 26, 31, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 响应式调整 */
@media (max-width: 991px) {
    .navbar-brand img {
        height: 45px;
    }

    .nav-link {
        padding: 10px 15px;
    }

    .navbar-collapse {
        background: #fff;
        padding: 15px;
        border-radius: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-top: 15px;
    }

    .navbar-nav {
        gap: 5px;
    }
}

@media (max-width: 768px) {
    .header-top__info p {
        font-size: 0.9rem;
    }

    .navbar-brand img {
        height: 40px;
    }

    .how-to-book-btn {
        font-size: 0.85rem;
        padding: 4px 12px;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer-logo img {
        height: 35px;
    }
}

/* Need Help 浮动按钮样式 */
.need-help-container {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
}

.need-help-trigger {
    background: #8f1a1f;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(143, 26, 31, 0.2);
    transition: all 0.3s ease;
}

.need-help-trigger:hover {
    background: #a82328;
    transform: translateY(-2px);
}

.need-help-box {
    position: fixed;
    right: -400px;
    bottom: 100px;
    width: 380px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
}

.need-help-container.active .need-help-box {
    right: 30px;
    opacity: 1;
    visibility: visible;
}

.need-help-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
}

.need-help-header {
    text-align: center;
    margin-bottom: 20px;
}

.header-icon {
    width: 60px;
    height: 60px;
    background: #8f1a1f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.header-icon i {
    color: white;
    font-size: 1.8rem;
}

/* 页脚样式 */
.footer {
    background: #2c2926;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
    margin-top: 0;
}

.footer-logo {
    margin-bottom: 30px;
    text-align: center;
}

.footer-logo img {

    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo img:hover {
    opacity: 1;
}

.footer-text {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
    color: rgba(255, 255, 255, 0.7);
}

/* 回到顶部按钮 */
.scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: #8f1a1f;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.scrollToTop.active {
    opacity: 1;
    visibility: visible;
}

.scrollToTop:hover {
    background: #a82328;
    transform: translateY(-3px);
}
