/*首页里Header.php复制过来的*/
        :root {
            --theme-primary: #438eb9;
            --theme-primary-dark: #2c6c94;
            --theme-soft: #f3f8fc;
            --theme-hover: #eff7f0;/*这个颜色是鼠标经过的颜色*/
            --theme-active: #d9edcd;/*这个颜色是点击变色的颜色*/
            --theme-accent: #2b7dbc;
            --theme-accent-soft: #dcecf9;
            --theme-button: #2b7dbc;
        }

        html {
            margin: 0;
            padding: 0;
            scrollbar-width: auto;
            scrollbar-color: rgba(43, 125, 188, 0.72) rgba(218, 228, 238, 0.95);
        }

        html::-webkit-scrollbar {
            width: 20px;
        }

        html::-webkit-scrollbar-track {
            background: rgba(218, 228, 238, 0.95);
        }

        html::-webkit-scrollbar-thumb {
            background: rgba(43, 125, 188, 0.72);
            border-radius: 999px;
            border: 2px solid rgba(218, 228, 238, 0.95);
        }

        html::-webkit-scrollbar-thumb:hover {
            background: rgba(43, 125, 188, 0.88);
        }

        body {
            margin: 0;
            padding: 0;
            font-size: 0;
            line-height: 0;
            background: url('<?php echo $data['config']['background_url']; ?>') fixed no-repeat;
            background-size: cover;
        }

        body > #navbar,
        body > #main-container,
        body > #ace-settings-container,
        body > #mobile-topbar,
        body > #mobile-sidebar-mask,
        body > #mobile-bottom-nav,
        body > script,
        body > style {
            font-size: 14px;
            line-height: 1.428571429;
        }

        body > .navbar,
        #navbar.navbar,
        #navbar.navbar-default {
            margin: 0 !important;
            border-radius: 0;
        }

        .main-container:before {
            background: rgba(245, 247, 250, 0.94);
        }

        .main-content,
        .breadcrumbs,
        .page-content {
            background: transparent;
        }

        #navbar {
            background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-dark));
            border: 0;
            min-height: 58px;
        }

        body.layout-navbar-fixed {
            padding-top: 58px;
        }

        #navbar.layout-fixed {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1030;
        }

        #navbar .navbar-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 58px;
            padding: 0 16px;
            margin-left: 500px;
            /*margin-left: 500px;这个是顶部logo与右边订单查询等 中间的距离*/
        }

        #navbar .navbar-header {
            float: none !important;
        }

        .navbar-brand {
            display: flex;
            align-items: center;
            height: 58px;
            padding: 0;
            color: #fff !important;
        }

        .navbar-brand small {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #fff;
            font-size: 18px;
            line-height: 1;
        }

        .navbar-brand span {
            display: inline-block;
            color: #fff;
            font-weight: 600;
            white-space: nowrap;
        }

        .navbar-brand:hover,
        .navbar-brand:focus {
            color: #fff !important;
        }

        .brand-avatar,
        .nav-user-photo {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            object-fit: cover;
        }

        .ace-nav {
            display: flex;
            align-items: stretch;
            height: 58px;
        }

        .ace-nav > li {
            display: flex;
            align-items: stretch;
        }

        .ace-nav > li > a {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            height: 58px;
            padding: 0 14px;
            background: transparent !important;
            color: #fff !important;
            border-left-color: rgba(255, 255, 255, 0.16);
        }

        .ace-nav > li > a > [class*="icon-"],
        .ace-nav > li > a > .fa,
        .ace-nav > li > a > .user-info,
        .ace-nav > li > a > span {
            color: inherit !important;
        }

        .ace-nav > li > a:hover,
        .ace-nav > li > a:focus {
            background: rgba(255, 255, 255, 0.08) !important;
        }

        .mobile-topbar,
        .mobile-sidebar-mask,
        .mobile-bottom-nav {
            display: none;
        }

        #sidebar.layout-fixed {
            position: fixed;
            top: 0;
            bottom: 0;
            width: 300px;
            z-index: 1025;
            overflow-y: auto;
        }

        body.layout-navbar-fixed #sidebar.layout-fixed {
            top: 58px;
        }

        #breadcrumbs.layout-fixed {
            position: sticky;
            top: 0;
            z-index: 1020;
        }

        body.layout-navbar-fixed #breadcrumbs.layout-fixed {
            top: 58px;
        }

        .widget-box {
            border: 0;
            box-shadow: 0 12px 30px rgba(31, 45, 61, 0.08);
        }

        .widget-box .widget-header,
        .commodity-section-header {
            min-height: 45px;
            padding: 0 16px;
            background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-dark));
            color: #fff;
        }

        .widget-box .widget-title,
        .widget-box .widget-toolbar:before,
        .widget-box .widget-toolbar > a {
            color: #fff;
        }

        .widget-main {
            background: rgba(255, 255, 255, 0.97);
        }

        .notice-box {
            font-size: 14px;
            line-height: 1.8;
            color: #000000;
        }

        .site-search {
            display: flex;
            gap: 0px;
        }

        .site-search .form-control {
            height: 40px;
            width: 50%;
        }

        .site-search .btn {
            min-width: 110px;
            background: var(--theme-button);
            border-color: var(--theme-button);
        }

        .sidebar-category-block {
            margin: 5px 5px;
            border: 1px solid #dbe5ef;
            border-radius: 6px;
            overflow: hidden;
            background: #fff;
            box-shadow: 0 10px 24px rgba(31, 45, 61, 0.08);
        }

        .sidebar-category-title {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 14px 16px;
            background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-dark));
            color: #fff;
            font-size: 14px;
            font-weight: 700;
            letter-spacing: .2px;
        }

        .sidebar-category-title i {
            font-size: 15px;
        }

        .sidebar-category-menu {
            /*max-height: calc(100vh - 250px);*/
            overflow-y: auto;
            background: #fff;
        }

        .sidebar-category-menu {
            scrollbar-width: thin;
            scrollbar-color: rgba(43, 125, 188, 0.52) rgba(231, 238, 244, 0.95);
        }

        .sidebar-category-menu::-webkit-scrollbar {
            width: 8px;
            background: rgba(231, 238, 244, 0.95);
        }

        .sidebar-category-menu::-webkit-scrollbar-thumb {
            background: rgba(43, 125, 188, 0.52);
            border-radius: 999px;
            border: 1px solid rgba(231, 238, 244, 0.95);
        }

        .sidebar-category-menu::-webkit-scrollbar-thumb:hover {
            background: rgba(43, 125, 188, 0.72);
        }

        .sidebar-category-menu a {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 14px;
            color: #344250;
            border-bottom: 1px solid #edf2f7;
            transition: background .2s ease, color .2s ease, padding-left .2s ease;
        }

        .sidebar-category-menu a:last-child {
            border-bottom: 0;
        }

        .sidebar-category-menu a:hover,
        .sidebar-category-menu a.active {
            background: var(--theme-soft);
            color: var(--theme-accent);
            text-decoration: none;
            /*padding-left: 18px;*/
            /*padding-left: 18px;这是左侧控制鼠标放上去错位动一下的代码*/
        }

        .category-entry-icon {
            flex: 0 0 26px;
            width: 26px;
            height: 26px;
            border-radius: 4px;
            background: #eef4f9;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            color: var(--theme-accent);
            font-size: 13px;
        }

        .category-entry-icon img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .category-entry-label {
            flex: 1 1 auto;
            min-width: 0;
            font-size: 16px;
            line-height: 1.4;
            word-break: break-all;
        }

        .category-entry-arrow {
            flex: 0 0 auto;
            color: #9fb0c2;
            font-size: 12px;
        }

        .sidebar-category-menu a.active .category-entry-icon {
            background: var(--theme-accent-soft);
        }

        .sidebar-category-menu .category-empty {
            margin: 0;
            border: 0;
            border-radius: 0;
        }

        .commoditys {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .commodity-section {
            border: 1px solid #dfe8f1;
            border-radius: 8px;
            overflow: hidden;
            background: #fff;
            box-shadow: 0 8px 20px rgba(31, 45, 61, 0.06);
            margin-bottom: -18px;
        }

        .commodity-section-header {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            font-weight: 600;
        }

        .commodity-grid {
            background: #fff;
        }

        .commodity-table {
            width: 100%;
            border-collapse: collapse;
            table-layout: fixed;
        }

        .commodity-table thead th {
            padding: 14px 16px;
            background: #f4f8fb;
            border-bottom: 1px solid #e3ebf3;
            color: #6d7c8a;
            font-size: 13px;
            font-weight: 600;
        }

        .commoditys .commodity-section:not(:first-child) .commodity-table thead {
            display: none;
        }

        .commodity-table tbody tr {
            cursor: pointer;
            transition: background .2s ease, color .2s ease;
        }

        .commodity-table tbody tr:hover {
            background: var(--theme-hover);
        }

        .commodity-table tbody tr.is-active {
            background: var(--theme-active);
        }

        .commodity-table tbody tr + tr {
            border-top: 1px solid #ffffff;
        }

        .commodity-table td {
            padding: 6px 10px;
            vertical-align: middle;
            color: #3d4b58;
        }

        .commodity-col-name {
            width: auto;
        }

        .commodity-col-price,
        .commodity-col-stock,
        .commodity-col-action {
            width: 120px;
            text-align: center;
        }

        .commodity-name-wrap {
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 0;
        }

        .commodity-thumb {
            flex: 0 0 42px;
            width: 42px;
            height: 42px;
            border-radius: 6px;
            background: #f4f8fb;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .commodity-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .commodity-name-text {
            min-width: 0;
        }

        .commodity-title {
            color: #000000;
            font-size: 16px;
            /*font-weight: 600;*/
            line-height: 1.6;
            word-break: break-all;
        }

        .commodity-subtitle {
            margin-top: 2px;
            color: #8a97a3;
            font-size: 12px;
        }

        .commodity-price {
            color: #e70505;
            font-weight: 600;
            font-size: 18px;
            float: left;
        }

        .commodity-stock {
            color: #130dfb;
            font-size: 15px;
            float: left;
        }

        .commodity-buy-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            /*gap: 6px;*/
            min-width: 90px;
            padding: 8px 14px;
            border-radius: 999px;
            background: var(--theme-button);
            color: #fff;
            font-size: 16px;
            font-weight: 500;
        }

        .commodity-buy-btn:hover {
            color: #fff;
            text-decoration: none;
        }

        .commodity-mobile-meta {
            display: none;
        }

        .commodity-empty {
            margin: 0;
            border-radius: 0;
        }

        .content-icp {
            padding: 18px 0 28px;
            text-align: center;
            color: #7a8793;
            font-size: 13px;
        }

        .open-commodity .layout {
            background: #fff;
            padding: 18 18 0 18;
        }

        .open-commodity .layout + .layout {
            border-top: 1px solid #eef2f6;
        }

        .pay-button {
            display: inline-flex;
            align-items: center;
            margin: 0 10px 10px 0;
            padding: 8px 14px;
            border-radius: 4px;
            background: var(--theme-button);
            color: #fff;
        }

        .pay-button img {
            width: 18px;
            height: 18px;
            margin-right: 8px;
        }

        .pay-button:hover {
            color: #fff;
            text-decoration: none;
        }

        .acg-input {
            width: 100%;
            height: 36px;
            padding: 0 10px;
            border: 1px solid #d5dbe2;
            border-radius: 4px;
        }

        @media (max-width: 991px) {
            body.layout-navbar-fixed {
                padding-top: 52px;
            }

            #navbar.layout-fixed {
                position: fixed;
            }

            #sidebar.layout-fixed {
                position: static;
                width: auto;
                top: auto;
                bottom: auto;
            }

            #breadcrumbs.layout-fixed {
                position: static;
            }

            #navbar .navbar-container {
                display: block;
                padding: 0 10px;
            }

            .navbar-brand {
                height: 52px;
            }

            .navbar-brand small {
                font-size: 16px;
            }

            .ace-nav {
                height: auto;
                flex-wrap: wrap;
            }

            .ace-nav > li > a {
                height: 48px;
                padding: 0 12px;
            }

            .sidebar-category-block {
                margin: 12px;
            }

            .sidebar-category-menu {
                max-height: none;
            }

            .site-search {
                flex-direction: column;
            }

            .site-search .btn {
                width: 100%;
            }

            .commoditys {
                gap: 12px;
            }

            .commodity-grid {
                border: 0;
                background: transparent;
            }

            .commodity-table,
            .commodity-table thead,
            .commodity-table tbody,
            .commodity-table tr,
            .commodity-table th,
            .commodity-table td {
                display: block;
                width: 100%;
            }

            .commodity-table thead {
                display: none;
            }

            .commodity-table tbody tr {
                margin-bottom: 12px;
                border: 1px solid #e3ebf3;
                border-radius: 8px;
                overflow: hidden;
                background: #fff;
            }

            .commodity-table tbody tr + tr {
                border-top: 1px solid #e3ebf3;
            }

            .commodity-table td {
                padding: 10px 14px;
                text-align: left;
            }

            .commodity-table td + td {
                border-top: 1px solid #eef2f6;
            }

            .commodity-table td:before {
                content: attr(data-label);
                display: block;
                margin-bottom: 6px;
                color: #8a97a3;
                font-size: 12px;
            }

            .commodity-col-name:before {
                display: none;
            }

            .commodity-col-price,
            .commodity-col-stock,
            .commodity-col-action {
                width: 100%;
            }

            .commodity-buy-btn {
                width: 100%;
            }
        }

        @media (max-width: 767px) {
            body,
            body.layout-navbar-fixed {
                padding-top: 56px;
                padding-bottom: 76px;
                background: #eef3f8;
            }

            #navbar,
            .menu-toggler,
            #breadcrumbs,
            #ace-settings-container,
            .page-header,
            .sidebar-collapse {
                display: none !important;
            }

            .mobile-topbar {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                z-index: 1080;
                display: flex;
                align-items: center;
                justify-content: space-between;
                height: 56px;
                padding: 0 10px;
                background: linear-gradient(135deg, var(--theme-primary), #1e93da);
                box-shadow: 0 10px 24px rgba(32, 84, 118, 0.18);
            }

            .mobile-topbar-btn {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                width: 36px;
                height: 36px;
                border: 0;
                border-radius: 10px;
                background: transparent;
                color: #fff;
                font-size: 22px;
                padding: 0;
            }

            .mobile-topbar-title {
                flex: 1 1 auto;
                min-width: 0;
                padding: 0 10px;
                color: #fff;
                font-size: 17px;
                font-weight: 700;
                line-height: 1;
                text-align: center;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .mobile-topbar-actions {
                display: flex;
                align-items: center;
                gap: 2px;
            }

            .mobile-sidebar-mask {
                display: block;
                position: fixed;
                top: 56px;
                left: 0;
                right: 0;
                bottom: 68px;
                z-index: 1065;
                background: rgba(14, 29, 40, 0.42);
                opacity: 0;
                pointer-events: none;
                transition: opacity .22s ease;
            }

            body.mobile-sidebar-open .mobile-sidebar-mask {
                display: block;
                opacity: 1 !important;
                pointer-events: auto;
            }

            #sidebar {
                display: block !important;
                position: fixed;
                top: 56px;
                left: 0;
                /*bottom: 68px;*/
                margin-top: 0px;
                width: 84%;
                max-width: 320px;
                z-index: 1070;
                overflow-y: auto;
                background: #f3f7fb;
                box-shadow: 16px 0 36px rgba(16, 38, 57, 0.18);
                transform: translateX(-108%);
                transition: transform .24s ease;
            }

            body.mobile-sidebar-open {
                overflow: hidden;
            }

            body.mobile-sidebar-open #sidebar {
                transform: translateX(0) !important;
            }

            .main-container,
            .main-container-inner,
            .main-content {
                margin-left: 0 !important;
                min-height: 0;
            }

            .main-container:before {
                background: #eef3f8;
            }

            .page-content {
                padding: 12px 10px 0;
            }

            .widget-box {
                margin-bottom: 10px;
                border-radius: 14px;
                overflow: hidden;
                box-shadow: 0 8px 22px rgba(31, 45, 61, 0.08);
            }

            .widget-box .widget-header,
            .commodity-section-header {
                min-height: 46px;
                padding: 0 14px;
            }

            .widget-main {
                padding: 12px;
            }

            .notice-box {
                font-size: 13px;
                line-height: 1.7;
            }

            .space-12 {
                height: 10px;
                line-height: 10px;
            }

            .site-search {
                flex-direction: row;
                gap: 1px;
            }

            .site-search .form-control {
                height: 40px;
                border-radius: 10px;
            }

            .site-search .btn {
                width: 85px;
                min-width: 85px;
                border-radius: 5px;
            }

            .sidebar .nav-list {
                padding: 12px 12px 0;
            }

            .sidebar .nav-list > li {
                margin-bottom: 8px;
            }

            .sidebar .nav-list > li > a {
                border: 1px solid #e2eaf2;
                border-radius: 12px;
                background: #fff;
                color: #324251;
            }

            .sidebar-category-block {
                margin: 4px 0 0;
                border: 0;
                border-radius: 0;
                background: transparent;
                box-shadow: none;
                /*下面两个是手机版的左侧滚动条显示*/
               overflow-y: scroll;
               height: 400px;
            }

            .sidebar-category-title {
                position: sticky;
                top: 0;
                z-index: 2;
                margin: 0 0 10px;
                padding: 14px 16px;
                border-radius: 0;
                box-shadow: 0 8px 16px rgba(32, 84, 118, 0.15);
            }

            .sidebar-category-menu {
                background: transparent;
                padding: 0 0 0 0;
            }

            .sidebar-category-menu a {
                margin-bottom: 0px;
                padding: 13px 14px;
                border: 1px solid #e3ebf3;
                border-radius: 12px;
                background: #fff;
            }

            .sidebar-category-menu a:hover,
            .sidebar-category-menu a.active {
                padding-left: 14px;
                box-shadow: inset 0 0 0 1px rgba(43, 125, 188, 0.18);
            }

            .commoditys {
                gap: 12px;
            }

            .commodity-section {
                border: 0;
                border-radius: 0;
                background: transparent;
                box-shadow: none;
                overflow: visible;
            }

            .commodity-section-header {
                border-radius: 14px 14px 0 0;
                box-shadow: 0 8px 20px rgba(32, 84, 118, 0.12);
            }

            .commodity-grid {
                padding-top: 0;
            }

            .commodity-table tbody tr {
                margin-bottom: 10px;
                padding: 12px;
                border: 1px solid #e2eaf2;
                border-radius: 14px;
                background: #fff;
                box-shadow: 0 6px 18px rgba(31, 45, 61, 0.06);
            }

            .commodity-table td {
                padding: 0;
                border-top: 0 !important;
            }

            .commodity-table td:before,
            .commodity-col-name:before {
                display: none;
            }

            .commodity-col-name {
                margin-bottom: 10px;
            }

            .commodity-name-wrap {
                align-items: flex-start;
                gap: 10px;
            }

            .commodity-thumb {
                flex: 0 0 56px;
                width: 56px;
                height: 56px;
                border-radius: 12px;
            }

            .commodity-name-text {
                display: flex;
                flex-direction: column;
                gap: 6px;
                padding-top: 2px;
            }

            .commodity-title {
                font-size: 14px;
                line-height: 1.45;
            }

            .commodity-subtitle {
                display: none;
            }

            .commodity-mobile-meta {
                display: flex;
                align-items: center;
                gap: 8px;
                flex-wrap: wrap;
            }

            .commodity-mobile-pill {
                display: inline-flex;
                align-items: center;
                height: 24px;
                padding: 0 8px;
                border-radius: 999px;
                background: #eef5fb;
                color: #567086;
                font-size: 12px;
                font-weight: 600;
            }

            .commodity-mobile-price {
                display: inline-flex;
                align-items: center;
                height: 24px;
                padding: 0 8px;
                border-radius: 999px;
                background: #fff3ef;
                color: #f0643c;
                font-size: 12px;
                font-weight: 700;
            }

            .commodity-col-price,
            .commodity-col-stock {
                display: none !important;
            }

            .commodity-col-action {
                width: 100%;
            }

            .commodity-buy-btn {
                width: 100%;
                min-width: 0;
                height: 40px;
                border-radius: 10px;
                font-size: 14px;
            }

            .content-icp {
                padding: 18px 0 8px;
            }

            .mobile-bottom-nav {
                position: fixed;
                left: 0;
                right: 0;
                bottom: 0;
                z-index: 1080;
                display: flex;
                align-items: stretch;
                background: rgba(255, 255, 255, 0.98);
                box-shadow: 0 -8px 24px rgba(17, 37, 54, 0.12);
                backdrop-filter: blur(10px);
            }

            .mobile-bottom-item {
                flex: 1 1 20%;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 0px;
                height: 68px;
                color: #627485;
                font-size: 11px;
                line-height: 1;
            }

            .mobile-bottom-item i {
                font-size: 18px;
            }

            .mobile-bottom-item:hover,
            .mobile-bottom-item:focus,
            .mobile-bottom-item.is-active {
                color: var(--theme-accent);
                text-decoration: none;
            }

            .mobile-bottom-item.is-disabled {
                opacity: .45;
            }
        }
        
        /*下面两组是手机版购买css*/
@media screen and (min-width:768px){
.layui-layer-page{top:calc((100vh - 600px)/2) !important;}
}
@media screen and (max-width:768px){
    .pc-buy-button{display:none;}
    .mobile-buy-button{width:80px;height:24px;margin-left:1px;}
}
