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

/* 产品卡片样式 */
.product-card {
    border: 1px solid #dee2e6;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


.card-body {
    padding: 15px;
}

.card-title {
    font-size: 14px;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
}

/* 右侧排行榜样式 */
.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;
    flex-wrap: wrap;
}


.rank-number {
    width: 10px;
    height: 24px;
    font-weight: bold;
    font-size: 16px;
    
}



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

.rank-title {
    font-size: 13px;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 2.4em;
     width: 100%;
}


/* 底部分类图片样式 */
.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;
    margin-bottom: 20px;
    font-size:15px;
    position: relative;
}




@media (max-width: 768px) {
    .section-title,
    .sidebar-title {
        font-size: 15px;
        padding: 8px 12px;
    }
}

/* 添加热销产品样式 */
/* 热销产品卡片样式 */
.hot-product-card {
    display: flex;
    background: white;
  
    overflow: hidden;
    height: 100%;  /* 确保同一行的卡片高度一致 */
    /* transition: all 0.3s ease; */
}

.hot-product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    /* transform: translateY(-3px); */
}
.hot-product-image {
    flex: 1;
    display: flex;
   
}
.hot-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
     border: 1px solid #002B5B;
}


.hot-product-info {
    flex: 1;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hot-product-title {
    font-size: 14px;
    margin-bottom: 0px;
    color: #333;
       overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    height: 3.5em; 
}

.hot-product-price {
    font-size: 22px;
    color: #ff0000;
    margin-bottom: 10px;
}

.hot-product-buttons {
    display: flex;
    flex-direction: column;  /* 按钮改为垂直排列 */
    gap: 8px;
}

.btn-buy {
    width: 100%;  /* 按钮宽度占满 */
    padding: 6px 15px;
    font-size: 0.9rem;
}

.btn-cart {
    width: 50px;
    background-color: white;
    color: #555;
    /* border: 2px solid #002B5B; */
   
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}


.btn-buy {
    background-color: #002B5B;
    color: white;
    border: 2px solid #002B5B;
    padding: 8px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

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

@media (max-width: 768px) {
    .hot-product-card {
        flex-direction: column;
    }

    .hot-product-image {
        width: 100%;
   
    }

    .hot-product-info {
        padding: 10px;
    }

    .hot-product-title {
        font-size: 16px;
        margin-bottom: 5px;
    }

  
    .hot-product-price {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .btn-cart, .btn-buy {
        padding: 5px 10px;
        font-size: 16px;
    }

    .hot-product-buttons {
        gap: 5px;
    }
}

/* 新着商品卡片样式 */
.new-products .product-card {
    height: 100%;
    border: none;
    background: white;
    border:1px solid #002B5B;
}


.new-products .card-body {
    padding: 10px;
}

/* 全部商品卡片样式 */
.all-product-card {
    background: white;
    border: 1px solid #002B5B;
   
    overflow: hidden;
    height: 100%;
    /* transition: all 0.3s ease; */
}

.all-product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    /* transform: translateY(-3px); */
}

.product-image {
    /* width: 154px;
    height: 154px; */
    /* aspect-ratio: 1; */
    overflow: hidden;
}

.product-image img {
    width: 100%;
  
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 14px;
    margin-bottom: 0px;
    color: #333;
     overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    height: 3.4em; 
}

.product-price {
    font-size: 22px;
    color: #ff0000;
    font-weight: bold;
    margin-bottom: 15px;
}
.pro9 .col-md-2{
    width:11.111% !important;
}
@media (max-width: 768px) {
    .pro9 .col-md-2{
        width:33.333% !important;
    }

    .product-title {
        font-size: 16px;
    }

    .product-price {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .product-image {
    width: 192px;
    height: 192px;
   
}

 
}


.category-icon {
    width: 100%;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination a {
    padding: 8px 12px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.pagination a:hover:not(.disabled) {
    background-color: #f5f5f5;
}

.pagination a.active {
    background-color: #002B5B;
    color: white;
    border-color: #002B5B;
}

.pagination a.disabled {
    color: #999;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination .ellipsis {
    padding: 8px;
    color: #666;
}

.pagination-info {
    margin-left: 16px;
    color: #666;
}

/* 添加报价单表单样式 */
.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;
    }
}