/*
Global
CSS
styles
*/

/* Global CSS styles */

/* 顶部导航样式 */
.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;
    color: rgba(255, 255, 255, 0.9);
}

.header__top-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* 右上角按钮样式 */
.header__top-action {
    display: flex;
    align-items: center;
}

.how-to-book-btn {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.how-to-book-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.how-to-book-btn i {
    font-size: 0.9em;
}

.header__top-right .btn-danger {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #8f1a1f !important;
    font-weight: 500;
    padding: 5px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.header__top-right .btn-danger:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Logo样式 */
.site-logo-img {
    max-height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

/* 导航菜单样式 */
.header__bottom {
    background: #ffffff;
    padding: 15px 0;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 导航栏顶部分隔线 */
.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%
    );
}

/* 导航栏内容区域 */
.navbar {
    position: relative;
    padding: 0;
}

.navbar-brand {
    padding: 0;
}

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

.navbar-nav {
    gap: 20px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #2c2926;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(143, 26, 31, 0.08);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.nav-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link i {
    font-size: 1.15em;
    transition: transform 0.3s ease;
    color: #8f1a1f;
}

.nav-link:hover {
    color: #8f1a1f;
    transform: translateY(-2px);
}

.nav-link:hover i {
    transform: scale(1.1);
}

/* 激活状态 */
.nav-link.active {
    color: #8f1a1f;
    background: rgba(143, 26, 31, 0.08);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(143, 26, 31, 0.08);
}

.nav-link.active::before {
    display: none;
}

.nav-link.active i {
    transform: scale(1.1);
}

/* 登出按钮特殊样式 */
.nav-link.text-danger {
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.1);
}

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

.nav-link.text-danger:hover {
    color: #bd2130;
    border-color: rgba(220, 53, 69, 0.2);
    background: transparent;
}

/* 响应式调整 */
@media (max-width: 991px) {
    .header__bottom {
        padding: 10px 0;
    }

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

    .header__top-right {
        text-align: center;
        margin-top: 5px;
    }
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 40px;
    }
}

/* 添加导航展开/收起动画 */
.navbar-collapse {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.navbar-collapse.collapsing {
    opacity: 0;
    transform: translateY(-10px);
}

.navbar-collapse.show {
    opacity: 1;
    transform: translateY(0);
}

/* 底部样式 - 使用首页样式 */
.footer__wrapper {
    background-color: #292929;
    padding: 30px 0 0; /* 移除底部内边距，使用footer-spacer */
    margin-top: 30px;
    padding-top: 150px;
}

/* 页脚文字内容容器 */
.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-spacer {
    height: 30px;
}

/* 页脚文字样式 */
.exclusive-notice {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.8);
    padding: 0 20px; /* 页脚文字两侧留出空间 */
}

.exclusive-notice i {
    color: #8f1a1f;
    margin-right: 8px;
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 10px !important;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
}

/* 移除所有标准内边距类以避免干扰 */
.footer__wrapper.padding-top,
.footer__wrapper.padding-top--2x,
.footer__wrapper.padding-bottom {
    padding: 0 !important;
}

/* 减少行距 */
.row.g-5 {
    --bs-gutter-y: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* 底部白色Logo样式优化 */
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    margin-top: 20px !important;
}

.white-logo {
    height: 70px; /* 进一步增大logo尺寸 */
    filter: brightness(0) invert(1);
    opacity: 0.95;
    transition: all 0.3s ease;
}

.footer-logo {
    margin-bottom: 15px;
    display: block;
}

.footer-logo:hover .white-logo {
    opacity: 1;
    transform: translateY(-3px);
}

@media (max-width: 767px) {
    .footer__wrapper {
        padding-top: 25px;
    }

    .footer-content {
        padding: 0 0 15px;
        max-width: 100%;
    }

    .footer-spacer {
        height: 70px; /* 移动端调整底部空间 */
    }

    .exclusive-notice {
        font-size: 0.85rem;
        padding: 0 15px;
    }

    .copyright {
        margin-top: 8px !important;
        font-size: 0.8rem;
    }

    .white-logo {
        height: 55px;
    }

    .footer-logo {
        margin-bottom: 12px;
    }
}

@media (max-width: 576px) {
    .white-logo {
        height: 50px;
    }

    .footer-logo {
        margin-bottom: 10px;
    }
}
