.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;
}
.category-icon {
    width: 100%;
}

.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;
    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;
}



/* 底部分类图片样式 */
.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: #f5f5f5;
    color: 000;
    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;
    }
}


/* 主推商品样式 */
.featured-products {
    margin-bottom: 10px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
}

.main-featured {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    height: 673px;
}

.main-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* transition: transform 0.3s ease; */
}

.side-featured {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    height: 673;
}

.side-item {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.side-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}


.main-featured:hover img,
.side-item:hover img {
    /* transform: scale(1.05); */
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 2fr 1fr;
        /* 保持与PC端相同的布局比例 */
        gap: 10px;
        /* 稍微减小间距 */
    }

    .main-featured {
        height: 100%;
        /* 移除固定高度 */
    }

    .side-featured {
        grid-template-rows: 1fr 1fr;
        /* 保持两个小图垂直排列 */
        grid-template-columns: 1fr;
        /* 移除水平排列 */
    }

    .side-item {
        height: 100%;
        /* 移除固定高度 */
    }
}

/* 热销商品样式 */
.hot-section {
    margin-bottom: 10px;
}

.hot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  
}

.hot-item {
    position: relative;
    overflow: hidden;
    /* height: 200px; */
}

.hot-item img {
    width: 100%;

    object-fit: cover;
    /* transition: transform 0.3s ease; */
}

.hot-item:hover img {
    /* transform: scale(1.05); */
}

.hot-icon {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 60px!important;
    
}

@media screen and (max-width: 768px) {
.hot-icon {
    width: 25px!important;
  
}
}



/* 底部分类图片样式 */
.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;
}







/* 添加产品列表样式 */
.product-list {
    margin-bottom: 10px;
}

.product-list-item {
    display: grid;
    grid-template-columns: 50% 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-around;
}
.product-list-info img{
    width: 100%;
}

.product-list-title {
    font-size: 18px;
    color: #000;
    line-height: 1.5;
}

.price-cart-group {
    display: flex;
    align-items: left;
    gap: 20px;
    margin-bottom: 0px;
    justify-content: left;
}

.product-list-price {
    font-size: 4.4rem;
    color: #ff0000;
    font-weight: bold;
    margin-bottom: 0;
}

@media (max-width: 768px) {
   .product-list-price {
    font-size: 2.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: 0;
    border-radius: 8px;
    color: #002B5B;
    transition: all 0.3s ease;
}

.btn-cart-small:hover {
    background: #002B5B;
    color: white;
}

.btn-buy-now {
    flex: 1;
    background: #bf0000;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 1.5rem;
    /* transition: all 0.3s ease; */
}

.subtitle2 {font-size: 18px;margin-bottom: 20px;}

.btn-buy-now:hover {
    background: #bf0000;
    /* 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;
    }

    .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;
    flex: 1;
    text-align: center;
}

.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(4, 1fr);
    gap: 20px;
}

.category-product-card {
    border: 1px solid #eee;
    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: 14px;
    margin-bottom: 8px;
    height: 3.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -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 45px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    background: white;
    border-radius: 50%;
    opacity: 1;
    transition: transform 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    transform: scale(1.2);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #002B5B;
    border-radius: 50%;
    padding: 10px;
    background-size: 60%;
}

@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;
    }
}

/* 添加有子分类的样式 */
.category-link.has-children {
    cursor: default;
}

.category-link.has-children:hover {
    background-color: transparent;
}

.category-link:not(.has-children):hover {
    background-color: #f8f9fa;
    color: #002B5B;
}

/* 空状态样式 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    min-height: 200px;
}

.empty-state i {
    font-size: 3rem;
    color: #002B5B;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

@media (max-width: 768px) {
    .empty-state {
        padding: 30px 15px;
        min-height: 150px;
    }

    .empty-state i {
        font-size: 2.5rem;
    }

    .empty-state p {
        font-size: 1rem;
    }
}

.position-relative {
    position: relative;
}
.login-overlay {
    background-image: url('../img/jianji.png');
    background-size: cover;
    background-position: center;
    min-height: 560px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);  /* 降低蒙版透明度 */
}

.login-prompt {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    width: 80%;
    max-width: 300px;
}

.login-prompt .btn-primary {
    background-color: #002b5b;
    border-color: #002b5b;
    transition: all 0.3s ease;
}

.login-prompt .btn-primary:hover {
    background-color: #001b3b;
    border-color: #001b3b;
}