.bg-theme {
    background-color: #002B5B;
}

.bg-theme-light {
    background-color: #99adc2;
}

.bg-theme-hui {
    background-color: #4b5563;
}

.container {
    max-width: 1560px;
    padding-right: 5px;
    padding-left: 5px;
}

.divider {
    width: 1px;
    height: 40px;
    background-color: #ccc;
    margin: 0 60px;
}

a {
    text-decoration: none;
    color: #000;
}

/* 修改图标按钮样式 */
.icons-group a {
    width: 60px;
    /* 固定宽度 */
    height: 60px;
    /* 固定高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s;
    background-color: #4b5563;
    color: #fff;
    border-radius: 10px;
}

.icons-group a:hover {
    background-color: #002B5B;
}

.icons-group i {
    font-size: 24px;
    /* 调整图标大小 */
}


/* 联系信息样式 */
.contact-box {
    background-color: white;
    border-radius: var(--bs-border-radius);
    margin: 10px 0;
    /* 添加上下外边距 */
}

.contact-info .label,
.contact-info .number {
    font-size: 30px;
}

.nav-link-top,
.nav-link {
    color: #000;
}

@media (max-width: 768px) {
    .contact-info {
        display: none !important;
        /* 隐藏电话和传真信息 */
    }

    .contact-box {
        padding: 5px !important;
        /* 减小内边距 */
        justify-content: flex-end !important;
        /* 图标靠右对齐 */
    }

    .logo-section .row {
        flex-wrap: nowrap !important;
    }

    .logo-section .col-md-3 {
        width: auto !important;
    }

    .logo-section .col-md-7 {
        width: auto !important;
    }

    .logo-img {
        max-width: 100px;
        /* 调整 logo 大小 */
        height: auto;
    }

    .icons-group {
        gap: 5px !important;
    }

    .icons-group a {
        width: 40px;
        /* 减小按钮尺寸 */
        height: 40px;
    }

    .icons-group i {
        font-size: 20px;
        /* 减小图标尺寸 */
    }

    .mobile-buttons {
        display: flex !important;
        align-items: center;
        gap: 10px;
    }

    .menu-button {
        width: 40px;
        height: 40px;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #002B5B;
        color: white;
        border-radius: 10px;
    }

    .menu-button:hover {
        background-color: #002B5B;
    }

    .nav-link-top {
        font-size: 12px;
        padding: 0 8px;
    }

    .divider {
        width: 1px;
        height: 40px;
        background-color: #ccc;
        margin: 0 8px;

    }

    nav>.container {

        padding: 0px;
    }
}




/* 底部导航样式 */
.offcanvas-bottom {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    height: auto !important; /* 覆盖默认高度 */
    max-height: 75vh;
}

.offcanvas-header {
    padding: 1rem 1.5rem;
}

.offcanvas-body {
    padding: 0 1.5rem;
}

.navbar-nav .nav-link {
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #002B5B;
    background-color: #f8f9fa;
}

.navbar-nav .nav-item:last-child {
    border-bottom: none !important;
}


 

/* 确保内容区域不会被遮罩影响 */
body {
    overflow-x: hidden;
}

body.modal-open {
    padding-right: 0 !important;
}

/* 修改 body 和 html 样式 */
html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* 修改 Offcanvas 背景遮罩样式 */
.offcanvas-backdrop {
    width: 100vw;
    position: fixed;
}

/* 修改 Offcanvas 容器样式 */
.offcanvas-bottom {
    width: 100vw;
    left: 0;
    right: 0;
}

/* 移除之前的 body 相关样式 */
body.modal-open {
    padding-right: 0 !important;
    overflow: hidden !important;
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        overflow-x: hidden;
    }

    #app {
        overflow-x: hidden;
    }
}



/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #002B5B;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top i {
    font-size: 16px;
    margin-bottom: 2px;
}

.back-to-top span {
    font-size: 12px;
    font-weight: bold;
}

.back-to-top:hover {
    background-color: #001B3B;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 140px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .back-to-top i {
        font-size: 14px;
    }

    .back-to-top span {
        font-size: 10px;
    }
}

.footer {
    border-top: 5px solid #001B3B;
    color: #fff!important;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: bold;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #fff;
}

.footer-info li,
.footer-links li a,
.footer-hours li {
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: #fff!important;
}

.footer-links li a:hover {
    padding-left: 10px;
    opacity: 0.8;
}

.social-links a {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    opacity: 0.8;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
 
    .footer {
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        margin-top: 20px;
    }
}

.copyright {
    background-color: #001B3B;
}

.copyright small {
    color: #fff;
}

.register-section {
    position: fixed;
    bottom: 100px; /* 调整距离底部的距离 */
    right: 30px;
    z-index: 999;
    border: none;
    background: none;
}

.register-btn {
    background-color: #002B5B;
    color: white;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid #002B5B;
    box-shadow: 0 4px 10px rgba(0, 43, 91, 0.2);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.register-btn i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.register-btn:hover {
    background-color: white;
    color: #002B5B;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 43, 91, 0.3);
}

@media (max-width: 768px) {
    .register-section {
        bottom: 80px;
        right: 20px;
    }

    .register-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .register-btn i {
        font-size: 1rem;
    }
}

/* 添加样式 */
/* 搜索框样式 */
.search-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.search-section {
    border-bottom: 1px solid #dee2e6;
}

/* 左侧分类导航样式 */
.category-sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 0px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar-title {
    color: #002B5B;
    padding-bottom: 10px;
  
    margin-bottom: 15px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    position: relative;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    color: #333;
    transition: all 0.3s ease;
}

.category-link:hover {
    color: #002B5B;
    background-color: #f8f9fa;
}

.category-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 子分类样式 */
.subcategory-list {
    position: absolute;
    left: 100%;
    top: 0;
    width: 200px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
    list-style: none;
    margin: 0;
}

.subcategory-item {
    margin: 5px 0;
}

.subcategory-link {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.subcategory-link:hover {
    background-color: #f8f9fa;
    color: #002B5B;
}

.category-item:hover .subcategory-list {
    display: block;
}

/* 展开/收起图标 */
.toggle-icon {
    transition: transform 0.3s ease;
}

.category-item.active .toggle-icon {
    transform: rotate(90deg);
}

.category-item.active .subcategory-list {
    display: block;
}

/* 右侧排行榜样式 */
.ranking-sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 0px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
}


.rank-number {
    width: 24px;
    height: 24px;
    font-weight: bold;
    font-size: 16px;
    margin-right: 15px;
}



.rank-number.top-1 {
    color: #ff0000; 
    font-size: 20px;
}

.rank-number.top-2 {
    color: #002B5B; 
    font-size: 20px;
}

.rank-number.top-3 {
    color: #C0C0C0; 
    font-size: 20px;
}



.rank-number.other {
    color: #666;
}

.rank-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.rank-info {
    margin-left: 10px;
    flex: 1;
}

.rank-title {
    font-size: 12px;
    margin-bottom: 5px;
}



/* 响应式调整 */
@media (max-width: 768px) {
    .category-sidebar,
    .ranking-sidebar {
        margin-bottom: 20px;
    }
}

/* 修改搜索按钮样式 */
.btn-search {
    background-color: #4b5563;
    color: white;
    border: none;
}
.btn-search:hover {
    background-color: #374151;
    color: white;
}

/* 添加标题样式 */
.section-title,
.sidebar-title {
    background-color: #002B5B;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
   
    font-size: 1.1rem;
    position: relative;
}




@media (max-width: 768px) {
    .section-title,
    .sidebar-title {
        font-size: 1rem;
        padding: 8px 12px;
    }
}



/* 修改 offcanvas 样式 */
.offcanvas-start {
    width: 300px;
}

.offcanvas-title {
    color: #002B5B;
    font-weight: bold;
}

.offcanvas-header {
    border-bottom: 1px solid #dee2e6;
}


.category-icon {
    width: 100%;
   
}

/* 操作指引样式 */
.guide-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.guide-nav {
    padding: 20px;
}

.guide-btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.guide-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.guide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-btn {
    width: 100%;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.guide-btn-wrapper:hover .guide-img,
.guide-btn-wrapper.active .guide-img {
    border-color: #002B5B;
}

.guide-btn:hover,
.guide-btn.active {
    background: #002B5B;
    color: white;
    border-color: #002B5B;
}

/* 指引标题样式 */
.guide-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
    background: linear-gradient(to right, #002B5B, #004B8F);
    color: white;
    border-radius: 8px 8px 0 0;
}

.guide-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.guide-subtitle {
    font-size: 14px;
    margin: 0;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .guide-header {
        padding: 15px;
    }

    .guide-title {
        font-size: 20px;
    }

    .guide-subtitle {
        font-size: 12px;
    }

    .guide-nav {
        padding: 15px;
    }
}

 /* 底部导航栏样式 */
 .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #888888;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    
}

.mobile-bottom-nav .col {
    border-right: 2px solid#fff;
}

.mobile-bottom-nav .col:last-child {
    border-right: none;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 7px 5px;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.2rem;
    margin-bottom: 3px;
}

.mobile-bottom-nav .nav-item.active {
    color: #002B5B;
}
