  body { 
            background-color: #ededed;
            font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
        }
        .container-main {
            padding-top: 2rem;
            padding-bottom: 2rem;
        }
        /* 图片中标签宽度大约占2列，选项占10列 (基于12列栅格) */
        .category-label {
            font-weight: 500;
            color: #495057;
            display: flex;
            align-items: center; /* 垂直居中 */
            justify-content: flex-end; /* 右对齐 */
            padding-right: 1rem; /* 与选项控件的一些间距 */
            min-height: 31px; /* 与 form-control-sm 的高度匹配 */
        }

        /* Button group styling for radio buttons */
        .option-controls .btn-group .btn,
        .option-controls .form-check .btn {
            margin-right: 0.5rem;
            margin-bottom: 0rem; /* Allow wrapping */
            font-size: 0.875rem; /* Match form-control-sm size */
            padding: 0.25rem 0.75rem; /* Smaller padding for compact look */
        }

        /* Ensure form-check buttons wrap horizontally */
        .card-body  {
            display: inline-flex;
            margin-right: 0.5rem;
            
            align-items: center;
            flex-wrap: wrap;
        }
.option-controls {
    display: flex;
    flex-wrap: wrap;
;
}
        /* Ensure form-check labels wrap cleanly */
        .form-check-label {
            margin-left: 0.25rem; /* Space between input and label */
        }

        .input-group-sm .form-control, .input-group-sm .input-group-text {
            height: calc(1.5em + .5rem + 2px); /* 确保与form-control-sm一致 */
        }
        .results-sidebar {
            position: -webkit-sticky; 
            position: sticky;
            top: 2rem; 
            padding: 15px;;
            background-color: #ffffff;
            border-radius: .375rem;
            box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
        }
        .price-tag { 
            color: #198754; 
            font-weight: bold; 
        }
        .sub-options-wrapper { 
            
            margin-top: 0.5rem; 
            display: flex;
            flex-wrap: wrap;

        }
        .custom-input-group { 
            margin-top: 0.0rem; 
        }.form-check .form-check-input {
    float: left;
    margin-left: 0.5em;
}
        
        /* Replace card-header with card-title */
        .card-title {
            background-color: #f1f3f5; /* Match Bootstrap's card-header style */
            padding: 0.75rem 0.25rem;
            font-weight: 600;
            color: #495057;
            font-size: 0.9rem;
            flex: 0 0 10%; /* Allocate ~20% width for title */
           
            align-items: center; /* Vertical centering */
        }

        /* Adjust card-body for side-by-side layout */
        .card-body {
            flex: 1; /* Take remaining space */
            padding: 0.5rem;
        }

        /* Make option-category a flex container for side-by-side layout */
        .option-category {
            display: flex;
            flex-direction: row;
             /* align-items: center;Ensure title and body align properly */
        }

        /* 自定义选中按钮样式 (红色选中) */
        .btn-check + .btn-outline-secondary.custom-selected {
            color: #6c757d; /* Gray text for unselected */
            border-color: #6c757d; /* Gray border for unselected */
            background-color: #fff; /* White background */
        }
       
        .btn-outline-secondary.custom-selected:hover {
            background-color: #f8f9fa; /* Light gray background on hover */
            border-color: #6c757d;
            color: #6c757d;
        }
        .btn-check:checked + .btn-outline-secondary.custom-selected-filled {
            color: #fff !important;
            background-color: #dc3545 !important;
            border-color: #dc3545 !important;
        }
        .form-check-inline {
    margin-right: 0.2rem;
}.form-check {
    min-height: 1.5rem;
   padding-left: 0.5em;
    margin-bottom: .25rem;
}
.form-check-input{
    margin-right: 5px;
}
.option-render-item {
    margin-right: 10px;
}
   /* 左侧菜单样式 */
.left-menu {
    background: #3b4042;
    padding: 10px;
    border-radius: 5px;
    height: 100%;
}

.left-menu ul {
    padding: 0;
    margin: 0;
}

.left-menu ul li {
    list-style: none;
    margin: 5px 0;
}

.left-menu ul li a {
    color: #ccc;
    font-size: 0.9rem;
    text-decoration: none;
    display: block;
    padding: 5px 10px;
    border-radius: 3px;
}

.left-menu ul li a:hover,
.left-menu ul li a.active {
   
    color: #fff;
} .left-menu ul ul {
    padding-left: 20px; /* Indent sub-items */
}
.left-menu .sub-item {
    font-size: 0.85rem; /* Smaller font for sub-items */
} /* 导航栏样式 */
        .navbar {
            background-color: #fff; /* 白色背景，与截图一致 */
            padding: 1px 0;
            border-bottom: 1px solid #ddd; /* 底部边框 */
        }
        .navbar-brand {
            display: flex;
            align-items: center;
            font-size: 1.2rem;
            font-weight: bold;
            color: #333;
        }
        .navbar-brand img {
            height: 50px; /* Logo 图标大小 */
            margin-right: 8px; /* 与文字的间距 */
        }
        .navbar-nav .nav-link {
            font-size: 1rem;
            color: #fff;
            margin: 0 10px; /* 菜单项间距 */
        }
        .navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
            color: #ff6801; /* 悬停和激活颜色，与你的主题一致 */
        }
        /* 右侧图标样式 */
        .nav-icons {
            display: flex;
            align-items: center;
            gap: 15px; /* 图标间距 */
        }
        .nav-icons i {
            font-size: 1.2rem;
            color: #fff;
        }
        .nav-icons i:hover {
            color: #ff6801;
        }
        .nav-icons .badge {
            background-color: #ff6801;
            font-size: 0.7rem;
            position: relative;
            top: -10px;
            left: -5px;
        }
        /* 响应式调整 */
        @media (max-width: 767px) {
            .navbar-nav {
                text-align: center;
                padding: 10px 0;
            }
            .nav-icons {
                justify-content: center;
                margin-top: 10px;
            }
            .card-title.text-end{
                font-weight: 500;
                font-size: 12px;
            }
             .card-title {
            background-color: #f1f3f5; /* Match Bootstrap's card-header style */
            padding: 0.75rem 0.15rem;
            font-weight: 600;
            color: #495057;
            font-size: 0.9rem;
            flex: 0 0 15%; /* Allocate ~20% width for title */
           
            align-items: center; /* Vertical centering */
        }
        }/* Active parent menu styling */
.left-menu .active-parent {
    color: #fff !important; /* White text for active parent */
    font-weight: bold; /* Bold text */
    background-color: #4a5154; /* Slightly lighter background for contrast */
    border-radius: 3px;
}

/* Active sub-menu item styling */
.left-menu .active-sub {
    color: #ff4d4f !important; /* Red color for active sub-item */
    font-weight: 500; /* Slightly bold */
}
a{
    text-decoration: none;
        color: #000;
}
a .active{
    text-decoration: none;
        color: #0d6efd;
}
    .col-lg-7 {
       
        background-color: #ffffff;
        padding: 10px;
    } #uploadPrompt {
        text-align: center !important;
        text-align: center !important;
    border: 1px solid #b8b8b8;
    padding: 8px;
    border-radius: 5px;
    }
 .shake-vertical{-webkit-animation:shake-vertical .8s cubic-bezier(.455,.03,.515,.955) both;animation:shake-vertical .8s cubic-bezier(.455,.03,.515,.955) both}    @-webkit-keyframes shake-vertical{0%,100%{-webkit-transform:translateY(0);transform:translateY(0)}10%,30%,50%,70%{-webkit-transform:translateY(-8px);transform:translateY(-8px)}20%,40%,60%{-webkit-transform:translateY(8px);transform:translateY(8px)}80%{-webkit-transform:translateY(6.4px);transform:translateY(6.4px)}90%{-webkit-transform:translateY(-6.4px);transform:translateY(-6.4px)}}@keyframes shake-vertical{0%,100%{-webkit-transform:translateY(0);transform:translateY(0)}10%,30%,50%,70%{-webkit-transform:translateY(-8px);transform:translateY(-8px)}20%,40%,60%{-webkit-transform:translateY(8px);transform:translateY(8px)}80%{-webkit-transform:translateY(6.4px);transform:translateY(6.4px)}90%{-webkit-transform:translateY(-6.4px);transform:translateY(-6.4px)}}  
.upload-section {
    position: relative;
    min-height: 100px;
}

.upload-area {
    transition: all 0.3s ease;
}

.upload-area.highlight {
    background-color: #f8f9fa;
    border-color: #007bff;
}

.file-item {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}.index-circle {
  display: inline-flex
;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    color: #000000;
     border: 1px solid #000000; 
    margin-right: 8px;
    background-color: #e8e8e8;
    font-size: 12px;
}
label.form-check-label {
    font-size: 0.875rem;
}/* --- 用于原生JS切换的CSS --- */

/* 在小屏幕上，默认隐藏菜单 */
@media (max-width: 991.98px) {
    .left-menu {
        display: none;
    }
}

/* 当JS为菜单添加 .is-open 类时，强制显示它 */
/* 这个规则会覆盖上面 media query 中的 display: none */
.left-menu.is-open {
    display: block;
}.form-check-input {
    --bs-form-check-bg: var(--bs-body-bg);
    width: 1em;
    height: 1em;
    margin-top: .25em;
    vertical-align: top;
    background-color: var(--bs-form-check-bg);
    background-image: var(--bs-form-check-bg-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: var(--bs-border-width) solid #000000;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
    print-color-adjust: exact;
}.btn-check:checked + .btn-outline-secondary.custom-selected {
    color: #fff !important;
    border-color: #67c23a !important;
    background-color: #67c23a !important;
} body {
            font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
            font-size: 14px;
            color: #333;
            background-color: #f8f9fa; /* Light gray background for context */
        }
        .top-nav {
            background-color: #333;
            color: #ccc;
            padding: 5px 0;
            font-size: 12px;
        }
        .top-nav a {
            color: #ccc;
            text-decoration: none;
        }
        .top-nav a:hover {
            color: #fff;
        }
        .top-nav .contact-info {
            text-align: right;
        }
        .main-nav {
            background-color: #fff;
            border-bottom: 1px solid #eee;
        }
        .main-nav .navbar-brand img {
            height: 40px;
        }
        .main-nav .form-control {
            border-radius: 0;
            border-right: none;
        }
        .main-nav .btn-search {
            border-radius: 0;
               background-color: #ffffff;
    border-color: #e7e7e7;
        }
        .main-nav .nav-link {
            color: #333;
            font-weight: 500;
        }
        .main-nav .nav-link.active, .main-nav .nav-link:hover {
            color: #f0ad4e; /* Orange-yellow for active/hover */
        }
        .btn-custom-primary {
            background-color: #f0ad4e;
            border-color: #f0ad4e;
            color: #fff;
            padding: 8px 20px;
        }
        .btn-custom-primary:hover {
            background-color: #eea236;
            border-color: #eea236;
            color: #fff;
        }

        .promo-bar-yellow {
            background-color: #fff7e0; /* Light yellow */
            padding: 15px 0;
            border-bottom: 1px solid #ffeeba;
        }
        .promo-bar-yellow img {
            max-width: 100%;
            height: auto;
        }

        .hero-section {
            background-color: #007bff; /* Placeholder blue */
            padding: 20px 0;
            /* In the image this is a large banner image */
        }
        .hero-section img.banner-main {
            width: 100%;
            height: auto;
        }

        .sub-banner-blue {
            background-color: #e7f3ff; /* Light blue */
            padding: 15px 0;
        }
        .sub-banner-blue img {
            max-width: 100%;
            height: auto;
        }

        .categories-section {
            padding: 30px 0;
            background-color: #fff;
        }
        .category-item {
            text-align: center;
            margin-bottom: 20px;
        }
        .category-item img {
            width: 60px; /* Approximate size */
            height: 60px;
            margin-bottom: 10px;
            border: 1px solid #eee;
            padding: 5px;
            border-radius: 4px;
        }
        .category-item p {
            margin-bottom: 5px;
            font-size: 14px;
        }
        .category-item .subtext {
            font-size: 12px;
            color: #777;
        }
        .category-title-bar {
            background-color: #f8f9fa;
            padding: 10px;
            margin-bottom: 20px;
            border-radius: 4px;
        }
        .category-title-bar h5 { margin-bottom: 0; }

        .adhesive-promo {
            padding: 30px 0;
            background-color: #f0f0f0; /* Light gray */
        }
        .adhesive-promo h3 {
            color: #e74c3c; /* Reddish color from image */
            font-weight: bold;
        }
        .adhesive-promo p {
            font-size: 16px;
            color: #555;
        }
        .adhesive-promo img {
            max-width: 100%;
            border: 1px solid #ddd;
        }

        .features-section {
            padding: 40px 0;
            background-color: #fff;
            text-align: center;
        }
        .features-section h2 {
            font-weight: bold;
            margin-bottom: 10px;
        }
        .features-section .subtitle {
            color: #777;
            margin-bottom: 30px;
        }
        .feature-card {
            background-color: #f8f9fa; /* Light gray background for cards */
            padding: 20px;
            border: 1px solid #eee;
            border-radius: 5px;
            margin-bottom: 20px;
            text-align: center;
            height: 100%; /* Make cards same height */
        }
        .feature-card img.icon { /* Square icon */
            width: 80px;
            height: 80px;
            margin-bottom: 15px;
            background-color: #ddd; /* Placeholder bg for icon */
        }
        .feature-card h5 {
            margin-bottom: 10px;
            font-weight: bold;
        }
        .feature-card p {
            font-size: 13px;
            color: #666;
            line-height: 1.6;
        }

        .stats-section {
            background-color: #fff;
            padding: 30px 0;
            border-top: 1px solid #eee;
            border-bottom: 1px solid #eee;
        }
        .stat-item {
            text-align: center;
        }
        .stat-item .number {
            font-size: 36px;
            font-weight: bold;
            color: #f0ad4e; /* Orange-yellow */
            margin-bottom: 0;
        }
        .stat-item .unit {
            font-size: 20px; /* For the '+' */
            color: #f0ad4e;
            position: relative;
            top: -10px;
        }
        .stat-item .text {
            font-size: 14px;
            color: #555;
        }

        .cta-section {
            background-color: #ffc107; /* Yellow */
            padding: 30px 0;
            text-align: center;
        }
        .cta-section p {
            font-size: 18px;
            color: #333;
            margin-bottom: 15px;
        }
        .btn-cta {
            background-color: #fff;
            color: #f0ad4e;
            border: 1px solid #f0ad4e;
            padding: 10px 30px;
            font-size: 16px;
            font-weight: bold;
        }
        .btn-cta:hover {
            background-color: #f8f9fa;
            color: #eea236;
        }

        .footer {
            background-color: #333;
            color: #ccc;
            padding: 40px 0 20px;
            font-size: 13px;
        }
        .footer h5 {
            color: #fff;
            margin-bottom: 15px;
            font-size: 16px;
        }
        .footer ul {
            list-style: none;
            padding-left: 0;
        }
        .footer ul li a {
            color: #ccc;
            text-decoration: none;
            line-height: 2;
        }
        .footer ul li a:hover {
            color: #fff;
            text-decoration: underline;
        }
        .footer .contact-info p, .footer .qr-code p {
            margin-bottom: 5px;
        }
        .footer .qr-code img {
            width: 100px;
            height: 100px;
            background-color: #fff; /* So placeholder is visible */
        }
        .footer-bottom {
            border-top: 1px solid #444;
            padding-top: 15px;
            margin-top: 20px;
            text-align: center;
            font-size: 12px;
        }
        .text-orange { color: #f0ad4e; }
        .text-red { color: #e74c3c; }
        .text-blue { color: #007bff; }
        .font-weight-bold { font-weight: bold; }
         .main-nav {
        background-color: #fff; /* Fallback or base background */
        box-shadow: 0 2px 4px rgba(0,0,0,.05);
    }
    #nav-row-1-desktop .navbar-brand {
        padding-top: 0;
        padding-bottom: 0;
    }
    #main-search-form-desktop .form-control-lg {
        font-size: 0.9rem; /* Adjust placeholder text size if needed */
    }
    #main-search-form-desktop .form-control-lg::placeholder {
      color: #999;
    }
    #main-nav-links-desktop .nav-link {
        color: #333;
    }
    #main-nav-links-desktop .nav-link:hover,
    #main-nav-links-desktop .nav-link.active {
        color: #f0ad4e; /* Orange-yellow for active/hover */
    }
    #nav-auth-links-desktop .nav-link {
        font-size: 0.9rem;
    }
    #nav-auth-links-desktop .btn-warning {
        padding: 0.25rem 0.75rem;
        font-size: 0.9rem;
    }
    /* Mobile specific adjustments if needed */
    #mobileNavbarCollapse .nav-link {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
          /* Banner 整体样式 */
        .banner-section {
            margin: 10px 0;
        }

        /* 左侧垂直导航样式 */
        .vertical-nav {
            background-color: #f8f9fa; /* 浅灰背景 */
            padding: 15px;
            border-right: 1px solid #ddd;
            min-height: 400px; /* 确保导航高度与轮播一致 */
        }
        .vertical-nav .nav-item {
            position: relative;
            margin-bottom: 10px;
            border-bottom: 1px dashed #c4c4c4;
        }
        .vertical-nav .nav-link {
            color: #333;
            font-size: 0.95rem;
            padding: 8px 15px;
            display: block;
        }
        .vertical-nav .nav-link:hover, .vertical-nav .nav-link.active {
            color: #ff6801;
            background-color: #e9ecef;
            border-radius: 5px;
        }
        /* 子菜单样式 */
        .vertical-nav .sub-menu {
            display: none;
            position: absolute;
            left: 100%; /* 子菜单位于主菜单右侧 */
            top: 0;
            background-color: #fff;
            border: 1px solid #ddd;
            box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
            min-width: 200px;
            z-index: 1000;
        }
        .vertical-nav .nav-item:hover .sub-menu {
            display: block;
        }
        .sub-menu li {
            list-style: none;
        }
        .sub-menu li a {
            color: #333;
            padding: 8px 15px;
            display: block;
            font-size: 0.95rem;
        }
        .sub-menu li a:hover {
            color: #ff6801;
            background-color: #f8f9fa;
        }

        /* 右侧轮播样式 */
        .carousel {
            height: 400px; /* 固定轮播高度 */
        }
        .carousel-inner, .carousel-item {
            height: 100%;
        }
        .carousel-item img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* 图片自适应 */
        }
        .carousel-control-prev, .carousel-control-next {
            width: 5%; /* 调整切换按钮宽度 */
        }
        .carousel-indicators [data-bs-target] {
            background-color: #ff6801; /* 指示点颜色 */
        }

        /* 响应式调整 */
        @media (max-width: 767px) {
            .vertical-nav {
                min-height: auto;
                padding: 10px;
            }
            .vertical-nav .nav-item {
                margin-bottom: 5px;
            }
            .vertical-nav .sub-menu {
                position: static; /* 移动端子菜单直接显示在下方 */
                box-shadow: none;
                border: none;
                background-color: #f8f9fa;
            }
            .carousel {
                height: 130px; /* 移动端轮播高度减小 */
            }
        }.nav-link i {
    font-size: 1rem; /* 图标大小 */
    vertical-align: middle; /* 垂直居中对齐 */
}
.nav-link .me-2 {
    margin-right: 8px; /* 图标与文字的间距 */
}.carousel-inner {
    position: relative;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}
    .blue-bar {
    width: 5px;
    height: 30px; /* 与标题高度匹配 */
    background-color: #ff6801; /* 蓝色条 */
    display: inline-block;
    vertical-align: middle;
}

/* 确保标题和蓝色条对齐 */
.d-flex.align-items-center {
    align-items: center;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .blue-bar {
        height: 25px; /* 移动端稍小 */
    }
    .d-flex.align-items-center h2 {
        font-size: 1.5rem; /* 移动端标题字体稍小 */
    }
}.notice-bar {
    background-color: #f1f3f5;
}

/* 左侧公告样式 */
.notice-wrapper {
    position: relative;
    border-radius: 5px;
    padding: 1px;
}

.notice-scroll {
    position: relative;
    height: 30px;
    overflow: hidden;
    line-height:30px;
}

.notice-item {
    display: none; /* 默认隐藏 */
}

/* 右侧订单样式 */
.order-wrapper {
    position: relative;
    border-radius: 5px;
    padding: 1px;
}

.order-scroll {
    height: 30px; /* 与公告高度一致 */
    overflow: hidden;
    line-height:30px;
}

.order-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.order-item {
    display: none; /* 默认隐藏 */
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .notice-wrapper, .order-wrapper {
        padding: 8px;
    }
    .notice-item, .order-item {
        font-size: 0.85rem;
    }
    .notice-scroll, .order-scroll {
        height: 40px;
    }
} .product-image {
    overflow: hidden; /* 防止图片超出容器 */
}

.hover-effect {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hover-effect:hover {
    transform: scale(1.1); /* 放大1.1倍 */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* 添加阴影 */
    transform: scale(1.1);
filter: brightness(1.1);
}a{
    text-decoration: none;
        color: #000;
}
   /* CSS 样式 */
.product-grid ul, .product-grid li { /* 如果您在 ul 上同时使用 sub-menu 和 product-grid 类，可以简化为 .product-grid li */
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px; /* 项目之间的间隙 */
    padding: 0;
    list-style: none;
}

.product-grid li {
    /* 默认一行6个项目 */
    /* flex-grow: 0; flex-shrink: 0; flex-basis: calc((100% - ( (number_of_items_per_row - 1) * gap_size )) / number_of_items_per_row); */
    flex: 0 0 calc((100% - (5 * 16px)) / 6); /* 5 gaps for 6 items */

    /* min-width 和 max-width 是为了防止在极端情况下项目过小或过大，可以根据需要调整或移除 */
    /* 如果希望严格按照计算的flex-basis来，可以不设置min/max-width，或者设置得更宽松 */
    min-width: 100px; /* 调整最小宽度以适应内容和防止过度压缩 */
    /* max-width: 160px; /* 可选：限制最大宽度 */


    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    box-sizing: border-box;
    transition: box-shadow 0.2s ease-in-out;
}

.product-grid li:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.product-grid li a {
    display: block;
    text-decoration: none;
    color: #333;
    padding: 10px;
    text-align: center;
}

.product-grid li img {
    width: 100%;
    height: 90px;
    object-fit: contain;
    margin-bottom: 8px;
    border: 1px solid #f5f5f5;
    border-radius: 3px;
}

.product-grid li span {
    font-size: 13px;
    line-height: 1.4;
    display: block;
}

/* 响应式调整 */
@media (max-width: 1200px) { /* 可能在略窄的桌面屏幕上开始调整 */
    .product-grid li {
        /* 每行5个: 4 gaps * 16px = 64px */
        flex: 0 0 calc((100% - (4 * 16px)) / 5);
    }
}

@media (max-width: 992px) {
    .product-grid li {
        /* 每行4个: 3 gaps * 16px = 48px */
        flex: 0 0 calc((100% - (3 * 16px)) / 4);
    }
}

@media (max-width: 768px) {
    .product-grid li {
        /* 每行3个: 2 gaps * 16px = 32px */
        flex: 0 0 calc((100% - (2 * 16px)) / 3);
    }
}

@media (max-width: 576px) {
    .product-grid li {
        /* 每行2个: 1 gap * 16px = 16px */
        flex: 0 0 calc((100% - (1 * 16px)) / 2);
    }
}/* Styling for the main vertical navigation structure */
.vertical-nav .nav-item {
    position: relative; /* Allows absolute positioning of the sub-menu */
}

/* Styling for the sub-menu panel (ul.sub-menu.product-grid) */
.vertical-nav .nav-item .sub-menu.product-grid {
    /* Initially hidden and positioned */
    display: none;
    position: absolute;
    left: 100%; /* Position to the right of the parent main category item */
    top: 0;    /* Align to the top of the parent main category item */
    
    /* CRITICAL: Define a width for the sub-menu panel */
    width: 780px; /* Adjust this width as needed. This is the 100% reference for child li calculations. */
                 /* Example: (100px per item * 6) + (16px gap * 5) + (20px padding * 2) = 600 + 80 + 40 = 720px */
                 /* Let's make it 780px to give some room: (110px per item * 6) + (16px gap * 5) + (20px padding * 2) = 660 + 80 + 40 = 780px  */


    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 20px; /* Padding INSIDE the panel, around the grid items */
    z-index: 1000; /* Ensure it appears above other content */

    /* Flex container properties for its direct children (the LIs) */
    /* These are applied when it's made visible via the :hover rule below */
    flex-wrap: wrap;
    gap: 16px; /* The space BETWEEN the product items (li) */
    list-style: none; /* Ensure no bullets */
    /* margin: 0; --- ul default reset is better */
}

/* Show the sub-menu on hover of its parent .nav-item AND make it a flex container */
.vertical-nav .nav-item:hover > .sub-menu.product-grid {
    display: flex; /* KEY: This makes the UL a flex container for its LI children */
}

/* Styling for each product item (li) within the .product-grid */
.product-grid li {
    /* Flex item properties: grow 0, shrink 0, basis calculated for 6 items */
    /* Calculation: (Panel's inner content width - (number_of_gaps * gap_size)) / number_of_items */
    /* Panel inner content width is 100% of its defined width minus its own padding (if any) */
    /* Here, 100% refers to the content box of the .sub-menu.product-grid (after its padding) */
    flex: 0 0 calc((100% - (5 * 16px)) / 6); /* For 6 items, with 5 gaps of 16px */

    box-sizing: border-box; /* Border and padding included in width/height */
    background-color: #f9f9f9; /* Light background for each item */
    border: 1px solid #eee;
    border-radius: 4px;
    text-align: center;
}

.product-grid li a {
    display: block; /* Make the link fill the li */
    text-decoration: none;
    color: #333;
    padding: 10px; /* Padding inside each product item */
    transition: background-color 0.2s;
}
.product-grid li a:hover {
    background-color: #efefef;
}

.product-grid li img {
    max-width: 100%; /* Ensure image is responsive within its 'a' tag */
    height: 80px;    /* Fixed height for image consistency */
    object-fit: contain; /* Or 'cover', scales image nicely */
    margin-bottom: 8px;
}

.product-grid li span {
    font-size: 13px;
    line-height: 1.4;
    display: block; /* Ensure text takes its own line */
    color: #555;
}

/* Responsive Adjustments (these apply to the items inside the panel) */
/* If the panel width itself changes at these breakpoints, these calculations will adapt */
@media (max-width: 1200px) { /* Example: if panel becomes narrower or you want fewer items */
    .product-grid li {
        /* For 5 items: 4 gaps */
        flex: 0 0 calc((100% - (4 * 16px)) / 5);
    }
}

@media (max-width: 992px) {
    /* On tablets, the col-md-2 might behave differently or the whole menu could change. */
    /* If the sub-menu panel is still shown with a large width, adjust items per row. */
    /* If the panel itself becomes narrower, these rules will adapt to its new 100%. */
    .vertical-nav .nav-item .sub-menu.product-grid {
        /* You might want to reduce the panel width here if needed */
        /* width: 600px; */ 
    }
    .product-grid li {
        /* For 4 items: 3 gaps */
        flex: 0 0 calc((100% - (3 * 16px)) / 4);
    }
}

@media (max-width: 768px) {
     .vertical-nav .nav-item .sub-menu.product-grid {
        /* On smaller screens, side panels are often not ideal. */
        /* You might hide this sub-menu or change its positioning entirely (e.g., display below parent) */
        /* For now, assuming it might still show as a panel but narrower */
        /* width: 450px; */
    }
    .product-grid li {
        /* For 3 items: 2 gaps */
        flex: 0 0 calc((100% - (2 * 16px)) / 3);
    }
}
@media (max-width: 991px) {
  .navbar-collapse {
    display: none; /* Ensure it's hidden by default */
    width: 100%; /* Full width for the collapsed menu */
    position: absolute; /* Position it below the toggler */
    top: 100%; /* Place it just below the navbar */
    left: 0;
    background-color: #fff; /* Match your navbar background */
    z-index: 1000; /* Ensure it appears above other content */
    padding: 10px; /* Add some padding for aesthetics */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add a shadow for better UX */
  }
.ms-auto {
    margin-left: auto !important;
    align-items: center;
}
.navbar-collapse {
  transition: all 0.3s ease-in-out;
}
  .navbar-collapse.show {
    display: block; /* Show as block when toggled */
  }

  .navbar-toggler {
    position: relative; /* Keep the toggler in its natural position */
    z-index: 1001; /* Ensure the toggler stays above the collapsed menu */
  }

  .navbar-brand {
    flex-grow: 1; /* Allow the logo to take available space */
  }

  .d-flex.align-items-center.justify-content-between {
    position: relative; /* Ensure the container is positioned correctly */
  }
}</style>



<style>
    /* --- 按钮式超链接样式 --- */
a.button-link {
 color: #0d6efd; /* 链接颜色 */
  text-decoration: none; /* 关键：去掉默认的下划线 */
  border-bottom: 1px dashed #0d6efd; /* 设置1像素宽的蓝色虚线作为下划线 */
  /* 或者使用 dotted 变为点状虚线 */
  /* border-bottom: 1px dotted #0d6efd; */
  
  padding-bottom: 2px; /* 给“下划线”和文字之间留出一点空间 */
  transition: border-bottom-color 0.2s, color 0.2s; /* 添加平滑过渡 */
}

 a.button-link:hover {
       color: #0a58ca; 
    }
    .modal-body p img{
        width: 100%;
    }
.option-row {
    width: 100%;
}

.option-item {
    min-width: 120px;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .option-item {
        min-width: 100px;
    }
    
    .material-btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }
}

.material-btn small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
</style>    <link href="/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css">
    <link href="/css/all.min.css" rel="stylesheet">
    <link href="/css/index.css" rel="stylesheet">
    <style>
        .copy-btn {
            cursor: pointer;
            color: #007bff;
            border: 1px solid #007bff;
            padding: 2px 8px;
            border-radius: 4px;
            margin-left: 15px;
            font-size: 12px;
        }
        .copy-btn:hover {
            background-color: #007bff;
            color: white;
        }
        .upload-btn-wrapper {
            position: relative;
            overflow: hidden;
            display: inline-block;
        }
        .btn-upload {
            border: 1px solid #ced4da;
            color: #495057;
            background-color: white;
            padding: .25rem .5rem;
            border-radius: .2rem;
            font-size: .875rem;
        }
        .upload-btn-wrapper input[type=file] {
            font-size: 100px;
            position: absolute;
            left: 0;
            top: 0;
            opacity: 0;
        }  /* 进度条的外部容器 */
        .progress {
            display: flex;
            height: 1rem;
            overflow: hidden;
            font-size: 0.75rem;
            background-color: #e9ecef; /* 浅灰色背景 */
            border-radius: 0.25rem;
        }

        /* 内部滚动的进度条 */
        .progress-bar {
            display: flex;
            flex-direction: column;
            justify-content: center;
            color: #fff; /* 内部文字颜色 */
            text-align: center;
            white-space: nowrap;
            background-color: #007bff; /* 默认的蓝色 */
            /* 关键：让宽度变化时有平滑的动画效果 */
            transition: width 0.6s ease;
        }

        /* 动画效果 (可选，但建议加上) */
        @keyframes progress-bar-stripes {
            from {
                background-position: 1rem 0;
            }
            to {
                background-position: 0 0;
            }
        }

        /* 让进度条动起来的样式 (可选) */
        .progress-bar-animated {
            animation: progress-bar-stripes 1s linear infinite;
        }

        /* 条纹样式 (可选) */
        .progress-bar-striped {
            background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
            background-size: 1rem 1rem;
        }
.DetailsT_TitP li.DetailsTCur {
    font-size: 14px;
    height: 34px;
    color: #ff4040;
    font-weight: bold;
    line-height: 30px;
    border-top: 3px solid #ff4040;
    margin-left: 8px;
    margin-top: 0;
    background: #fff;
}
input#Button1 {
    color: #fff;
    background-color: #ffb800;
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    /* background: #fff; */
    border: 1px solid #dcdfe6;
    border-color: #dcdfe6;
    /* color: #606266; */
    -webkit-appearance: none;
    text-align: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    outline: none;
    margin: 0;
    -webkit-transition: .1s;
    transition: .1s;
    font-weight: 500;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 2px;
    margin-bottom: 2px;
    border-color: #ffb800;
}input#btn_shibieadd {
    color: #fff;
    background-color: #ffb800;
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    /* background: #fff; */
    border: 1px solid #dcdfe6;
    border-color: #dcdfe6;
    /* color: #606266; */
    -webkit-appearance: none;
    text-align: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    outline: none;
    margin: 0;
    -webkit-transition: .1s;
    transition: .1s;
    font-weight: 500;
    -webkit-user-select: none;
    -ms-user-select: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 2px;
    margin-bottom: 2px;
    border-color: #ffb800;
}