.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;
}

@media (max-width: 768px) {
    .offcanvas-bottom {
        max-height: 80vh;
    }
}

/* 修改 Offcanvas 背景遮罩样式 */
.offcanvas-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    /* 半透明黑色背景 */
}

.offcanvas-backdrop.show {
    opacity: 1;
}

/* 确保内容区域不会被遮罩影响 */
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;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 100%;
}



.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;
}



/* 底部分类图片样式 */
.category-image-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
}

/* 响应式调整 */
@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: 15px;
    position: relative;
}




@media (max-width: 768px) {

    .section-title,
    .sidebar-title {
        font-size: 1rem;
        padding: 8px 12px;
    }
}



/* 添加产品列表样式 */
.product-list {
    margin-bottom: 10px;
}

.product-list-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.product-list-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.product-list-image {
    width: 100%;
    height: 200px;
    border-radius: 4px;
    overflow: hidden;
}

.product-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-list-image:hover img {
    transform: scale(1.05);
}

.product-list-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-list-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
}

.price-cart-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: space-between;
}

.product-list-price {
    font-size: 1.4rem;
    color: #ff0000;
    font-weight: bold;
    margin-bottom: 0;
}

.product-list-buttons {
    display: flex;
    gap: 10px;
}

.btn-cart-small {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #002B5B;
    border-radius: 8px;
    color: #002B5B;
    transition: all 0.3s ease;
}

.btn-cart-small:hover {
    background: #002B5B;
    color: white;
}

.btn-buy-now {
    flex: 1;
    background: #002B5B;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-buy-now:hover {
    background: #001B3B;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .product-list-item {
        grid-template-columns: 120px 1fr;
        gap: 15px;
        padding: 10px;
    }

    .product-list-image {
        height: 120px;
    }

    .product-list-title {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .price-cart-group {
        gap: 8px;
    }

    .btn-cart-small {
        width: 35px;
        height: 35px;
    }

    .btn-buy-now {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* 修改分类切换板块的样式 */
.category-tabs {
    margin-bottom: 20px;
}

.category-tabs-list {
    display: flex;
    gap: 30px;
    padding: 15px 0; /* 增加上下内边距 */
    margin: 0;
    list-style: none;
    justify-content: center;
    border: 1px solid #eee; /* 添加边框 */
    border-radius: 8px; /* 添加圆角 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* 添加阴影 */
    background: white; /* 确保背景是白色 */
    margin-bottom: 10px;
}

.category-tab-item {
    padding: 8px 20px;
    cursor: pointer;
    color: #999;
    transition: all 0.3s ease;
    position: relative;
}

.category-tab-item:hover {
    color: #002B5B;
}

.category-tab-item.active {
    color: #002B5B;
    font-weight: bold;
}



@media (max-width: 768px) {
    .category-tabs-list {
        gap: 15px;
        padding: 10px 0; /* 移动端减小内边距 */
    }

    .category-tab-item {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

.category-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-product-card {
    border: 1px solid #002B5B;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.category-product-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.category-product-info {
    padding: 15px;
}

.category-product-title {
    font-size: 0.9rem;
    margin-bottom: 8px;
    height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-product-price {
    color: #ff0000;
    font-weight: bold;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .category-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-product-info {
        padding: 10px;
    }
}

.carousel {
    margin-top: 20px;
    padding: 0 40px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    background: white;
    border-radius: 50%;
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #002B5B;
    border-radius: 50%;
    padding: 10px;
}

@media (max-width: 768px) {
    .carousel {
        padding: 0 30px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 30px;
    }
}

/* 添加报价单表单样式 */
.quote-form {
    background: #fff;
}

.quote-form .form-group {
 
    padding: 10px;
}

.quote-form .form-label {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 5px;
}

.quote-form .form-control {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.quote-form textarea.form-control {
    height: 120px;
    resize: none;
}

.quote-form .btn-submit {
    width: 100%;
    background: #002B5B;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.quote-form .btn-submit:hover {
    background: #001B3B;
}

@media (max-width: 768px) {
    .quote-form {
        margin-bottom: 20px;
    }
}

/* 商品列表网格样式 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.product-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .product-grid {
        gap: 10px;
    }
}

/* 分类展示板块样式 */
.category-showcase {
    margin-top: 30px;
}

.category-level {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.category-level-title {
    padding: 12px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-level-title:hover {
    background: #e9ecef;
}

.category-level-content {
    padding: 15px;
    display: none;
}

.category-level-content.show {
    display: block;
}

.subcategory-item {
    margin-bottom: 10px;
}

.subcategory-title {
    padding: 8px 15px;
    background: #f1f3f5;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subcategory-title:hover {
    background: #e9ecef;
}

.third-level-categories {
    display: none;
    padding: 10px 20px;
}

.third-level-categories.show {
    display: block;
}

.third-level-item {
    padding: 5px 0;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.toggle-icon.rotate {
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .category-level-title,
    .subcategory-title {
        padding: 10px 15px;
    }
}

