@charset "utf-8"; body {
    background-color: #ffffff;
    font-size: 14px;
}

input::-webkit-outer-spin-button,input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

input[type="number"] {
    -moz-appearance: textfield;
}



lia {
    list-style: disc;
}

.noML {
    margin-left: initial !important;
}

.hide {
    display: none;
}

.layui-tab-title .layui-this:after {
    border: none !important;
    height: 0 !important;
}

.layui-tab-title .layui-this {
    color: #737373;
}

.layui-tab-title li {
    color: #737373;
}

.geetest_holder.geetest_wind {
    display: inline-block;
    vertical-align: middle;
}

.notSelection {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}



a {
    color: #161209;
    text-decoration: none;
    transition: color .2s ease,border-color .2s ease,background .2s ease,opacity .2s ease;
}

.layui-row {
    margin: 0 10px;
}

/* 头部基础：高度由 storefront 段落控制（避免裁剪子项） */
.header {
    position: fixed;
    top: 0px;
    z-index: 1000;
    width: 100%;
    height: auto !important;
    border-bottom: 1px solid #e9ecf3;
    background-color: #fff;
    box-shadow: 0 0 0.6rem 0 #d0d0d0;
}

.header .header-box {
    padding: 0;
}

.header .header-box img {
    max-width: 150px;
    max-height: 45px;
}

.header .header-box .info {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .header .header-box img {
        margin: auto;
    }

    .header .header-box .info {
        display: none;
    }
}

/* .header-box .query 已由 storefront（flex）接管，禁用旧浮动与死宽度导航 */

/*内容*/
#content {
    margin-top: 61px;
}

.main .announcement {
    padding: 10px 20px 10px 20px;
}

.home-tips {
    border-radius: 10px !important;
}

.home-tips .layui-layer-title {
    background-image: linear-gradient(135deg,#3C8CE7 10%,#00EAFF 100%);
    color: #fff !important;
    height: 60px;
    line-height: 60px;
    border-radius: 10px 10px 0 0;
    background-color: initial;
    border-bottom: initial;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    padding: initial;
    overflow: hidden;
}

.home-tips .layui-layer-setwin {
    color: #fff;
    position: absolute;
    top: initial;
    bottom: -50px;
    left: 50%;
    transform: translate(-50%,0);
    width: 30px;
    height: 30px;
}

.home-tips .layui-layer-setwin a {
    position: initial;
}

.home-tips .layui-layer-content {
    padding: 10px 20px;
    color: #444444;
    font-size: 14px;
    line-height: 2.2;
    letter-spacing: .5px;
    font-weight: 700;
    word-wrap: break-word;
    word-break: normal;
}

.home-tips .layui-layer-setwin {
    color: #fff;
    position: absolute;
    top: initial;
    bottom: -50px;
    left: 50%;
    transform: translate(-50%,0);
    width: 30px;
    height: 30px;
}

.layui-layer-resize {
    position: absolute;
    width: 15px;
    height: 15px;
    right: 0;
    bottom: 0;
    cursor: se-resize;
}

.notice {
    margin-top: 20px;
}

.layui-card {
    border-radius: 6px;
}

.layui-card-header {
    position: relative;
    color: #545454;
    font-size: 15px;
    font-weight: 700;
    height: 11px;
    line-height: 11px;
    padding: 16px;
    border-radius: 2px 2px 0 0;
}

.layui-card-body {
    position: relative;
    padding: 10px 20px 10px 20px;
    line-height: 24px;
}

/*主体*/
.main .main-box {
    margin-top: 20px;
    background: #fff;
    box-shadow: 0 7px 29px 0 rgb(18 52 91 / 11%);
    border-radius: 6px;
    padding-top: 14px;
    padding-bottom: 13px;
}

.main-box:after {
    /*伪元素是行内元素 正常浏览器清除浮动方法*/
    content: "";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.main .title,.main .cate,.main .goods {
    margin: 0 20px;
}

.main .title {
    font-size: 14px;
    font-weight: 700;
}

.main .title svg,.main .title img {
    vertical-align: middle;
}

.main .cate {
    padding-top: 20px;
}

.main .cate .cate-box {
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    min-width: 130px;
    background: #f8f8f8;
    border-radius: 10px;
    margin-right: 14px;
    height: 67px;
    padding-right: 20px;
    padding-left: 19px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: relative;
    margin-bottom: 10px;
}

.main .cate .cate-box-select {
    background: #448bff linear-gradient(45deg,#448bff,#44e9ff);
}

.main .cate .cate-box-select img {
    position: absolute;
    right: -6px;
    bottom: -19px;
}

.main .cate .cate-box p {
    font-weight: 400;
    font-size: 12px;
    color: #545454;
    margin-top: 12px;
}

.main .cate .cate-box-select p {
    color: #fff;
}

.main .cate .cate-box div {
    opacity: .76;
    color: #999;
    font-size: 12px;
    margin-top: 7px;
}

.main .cate .cate-box-select div {
    color: #fff;
}

.main .goods {
    font-size: 13px;
    font-weight: 600;
    color: #545454;
}

.shosu {
    width: 238px;
    background: #f8f8f8;
    border: 1px solid #f0f0f0;
    border-radius: 17px;
    position: relative;
    height: 34px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    margin-left: 30px;
}

.shosu img {
    width: 13px;
    position: absolute;
    left: 18px;
    top: 50%;
    margin-top: -6.5px;
}

.shosu input {
    padding-left: 39px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    background: #f8f8f8;
    border-radius: 17px;
    width: 80%;
}

.main .title-2 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 23px;
    color: #545454;
}

.main .goods .goods-box {
    display: inline-block;
    vertical-align: middle;
    padding-bottom: 10px;
    min-width: 182px;
    padding-left: 18px;
    padding-right: 26px;
    background: #fff;
    border: 2px solid #f1f4fb;
    -webkit-box-shadow: 0 4px 10px 0 rgba(135,142,154,.14);
    box-shadow: 0 4px 10px 0 rgba(135,142,154,.14);
    border-radius: 10px;
    margin-right: 11px;
    margin-bottom: 10px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: relative;
}

.main .goods .goods-name {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 10px;
    color: #545454;
    font-size: 12px;
    font-weight: 400;
    margin-top: 16px;
}

.main .goods .goods-price {
    color: #3C8CE7;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
}

.main .goods .goods-price span {
    font-size: 12px;
    vertical-align: bottom;
}

.main .goods .goods-price div {
    display: inline-block;
    background: #ffebe8;
    color: #fb636b;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 11px;
    margin-left: 5px;
}

.main .goods .goods-num {
    margin-top: 3px;
}

.main .goods .goods-num div {
    display: inline-block;
    width: 53px;
    height: 5px;
    background: #f3f3f3;
    position: relative;
    border-radius: 3px;
}

.main .goods .goods-num div p {
    display: inline-block;
    position: absolute;
    width: 40%;
    height: 100%;
    background: linear-gradient(55deg,#65d69e,#31dd92);
    border-radius: 3px;
}

.main .goods .goods-num span {
    color: #0db26a;
    font-size: 12px;
    margin-left: 20px;
}

.buy {
    text-align: center;
    margin-top: 10px;
}

.buy button {
    background: #448bff linear-gradient(45deg,#448bff,#44e9ff);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0;
    padding: 0.785rem 2.15rem;
    border: 1px solid #ffffff;
    border-radius: 100px;
    transition: all 400ms ease-in-out;
    box-shadow: 0 10px 24px 0 rgba(90,70,176,0.3);
}

.intro {
    padding: 10px 20px;
    color: #444444;
    font-size: 14px;
    line-height: 2.2;
    letter-spacing: .5px;
    font-weight: 700;
}

.qr {
    text-align: center;
    position: relative;
}

.qr svg {
    display: block;
    margin: 0 auto;
}

.qr img {
    height: 300px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

.main-box .goods-img {
    margin-left: 20px;
    margin-right: 10px;
    margin-top: 10px;
    width: calc(100% - 30px);
    height: 0;
    position: relative;
    padding-bottom: calc(100% - 40px);
}

.main-box .goods-msg {
    margin-right: 20px;
    margin-left: 10px;
    margin-top: 7px;
}

.main-box .goods-img img {
    width: calc(100% - 10px);
    box-shadow: 0 5px 6px 0 rgb(204 187 187 / 22%);
    border-radius: 7px;
    margin-top: 5px;
    height: 100%;
    position: absolute;
    object-fit: cover;
}

.main-box .goods-msg .goods-name {
    font-weight: 700;
    font-size: 18px;
    color: #545454;
    border-bottom: 1px solid #f7f7f7;
    padding-bottom: 5px;
}

.small-tips {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 11px;
    margin-left: 5px;
    line-height: initial;
}

.tips-pink {
    background: #ffebe8;
    color: #fb636b;
}

.tips-green {
    background: #dff7ea;
    color: #28C76F;
}

.tips-yellow {
    background: #fbf7da;
    color: #d6b900;
}

.tips-blue {
    background: #cadbff;
    color: #3C8CE7;
}

.tips-red {
    background: #ffd3d3;
    color: #FA016D;
}

/*支付*/
.pay {
    margin-top: 20px;
    border-top: 1px solid #f7f7f7;
    padding-top: 10px;
}

.pay-type {
    display: inline-block;
    text-align: center;
    border-radius: 5px;
    position: relative;
    padding: 7px 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.pay-type svg {
    vertical-align: middle;
}

.pay-select {
    border: 2px solid rgb(51,105,255);
    background: rgb(248,250,255);
    color: rgb(51,105,255);
}

.sale {
    margin-top: 5px;
    margin-left: -5px;
}

.sale .small-tips {
    margin-bottom: 5px;
}

.l-msg {
    color: #999;
    width: 72px;
    display: inline-block;
    vertical-align: middle;
}

.price {
    margin-top: 5px;
}

.price .price-sign {
    color: #e4393c;
    font-size: 16px;
}

.price .price-num {
    color: #e4393c;
    font-size: 22px;
}

.price .price-c {
    margin-left: 5px;
    color: #666;
    font: 12px/150% tahoma,arial,Microsoft YaHei,Hiragino Sans GB,"\u5b8b\u4f53",sans-serif;
}

.entry {
    margin-top: 15px;
}

.pay-num {
    width: 50px !important;
    text-align: center;
    font-size: 20px !important;
}

.sub svg,.add svg {
    vertical-align: middle;
    margin-top: -7px;
    cursor: pointer;
}

.input input {
    display: inline-block;
    padding: 0 5px;
    height: 35px;
    width: 300px;
    font-weight: 500;
    font-size: 14px;
    color: #999;
    background: #fff;
    border: 1px solid #f0f0f0;
    -webkit-box-shadow: 0 4px 10px 0 rgba(135,142,154,.07);
    box-shadow: 0 4px 10px 0 rgba(135,142,154,.07);
    border-radius: 4px;
    overflow: hidden;
}

.code img {
    height: 35px;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
    vertical-align: middle;
    margin-top: -3px;
}

.code input {
    width: 178px !important;
}

#wait-geetest-captcha {
    color: #999;
}

.err_title {
    color: #545454;
    font-size: 20px;
    font-weight: 700;
    margin-top: 20px;
}

.err_content {
    margin-top: 30px;
    margin-bottom: 30px;
    color: #737373;
}

.err_but {
    padding-bottom: 100px;
}

.btn a,.btn button {
    line-height: 45px;
    margin-top: 15px;
    background: #448bff linear-gradient(45deg,#448bff,#44e9ff);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0;
    padding: 0.785rem 2.15rem;
    border: 0px solid #ffffff;
    border-radius: 100px;
    transition: all 400ms ease-in-out;
    box-shadow: 0 10px 20px 0 rgba(90,70,176,0.3);
}

.pay-title {
    color: #737373;
    font-weight: 700;
    font-size: 20px;
    margin: 0 15px;
}

.order-list {
    margin-left: initial;
    margin-right: initial;
    margin-top: 10px;
    border-bottom: 1px solid #f7f7f7;
    padding-bottom: 5px;
}

.info-ui {
    color: #737373;
}

.info-ui strong {
    width: 30%;
    margin-bottom: 3px;
    text-align: right;
    display: inline-block;
}

.order-info {
    width: calc(100% - 12px);
    height: 75px;
    overflow-wrap: break-word;
    padding: 5px;
    overflow: auto;
    resize: none !important;
    border: 0px solid #f0f0f0;
    -webkit-box-shadow: 0 4px 10px 0 rgba(135,142,154,.07);
    box-shadow: 0 4px 10px 0 rgba(135,142,154,.07);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .input input {
        width:calc(100% - 95px);
    }

    .code input {
        width: calc(100% - 219px) !important;
    }

    #content {
        margin-top: 81px;
    }

    .main-box .goods-msg {
        margin-left: 20px;
    }

    .shosu {
        width: 155px;
    }

    .main .goods .goods-price div {
        margin-bottom: 5px;
    }

    .geetest_holder.geetest_wind {
        margin-top: 10px;
    }

    .order-info {
        margin-top: 10px;
    }
}

.main .goods .goods-box {
    margin-left: 1px;
    padding: 8px 15px 12px 10px;
    transition: all .2s;
}

.main .goods .goods-name {
    font-size: 13px;
    font-weight: 700;
}

.main .goods .goods-box:hover {
    transform: translateY(8px);
}

@media (min-width: 768px) {
    .navbar-right {
        float:right!important;
        margin-right: 19px;
    }
}

@media(max-width: 669px) {
    .input input {
        width:calc(100% - 5px);
    }

    .goodsItem {
        width: 269px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

@media(min-width: 669px) {
    .goodsItem {
        width:262px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

.imgBox {
    width: 30%;
}

.imgBox img {
    padding-top: 4px;
    border-radius: 10px;
    width: 100%;
}

.goodDesc {
    width: 62%;
}

.main .goods .goods-num span {
    margin-left: 20px;
}

.goods-price {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.main .goods .goods-num {
    width: 100%;
    height: 20px;
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.main .goods .goods-num div {
    margin-top: 6px;
}

.main .cate .cate-box {
    padding: 5px 10px 5px 10px;
}

.cateBox {
    display: flex;
    overflow-x: auto;
}

.cateBox::-webkit-scrollbar {
    /*display: none;*/
}

.main .cate .cate-box {
    min-width: 99px;
    height: 55px;
}

.main .cate .cate-box p {
    margin-top: 5px;
}

.cbl-m {
    z-index: 100;
    position: fixed;
    display: none;
    width: 3.5em;
    height: 3.5em;
    line-height: 3.5em;
    margin-top: 1em;
    text-align: center;
    color: #9c9c9c;
    background-color: #fff;
    opacity: .8;
    border: .06em solid #e6ebf5;
    overflow: hidden;
    cursor: pointer;
    border-radius: 100%;
    box-shadow: 0 0 1.5em 0 rgba(0,0,0,0.12);
    -webkit-transition: .5s ease all;
    -moz-transition: .5s ease all;
    -o-transition: .5s ease all;
    transition: .5s ease all;
}

.cbla-m {
    z-index: 100;
    position: fixed;
    right: 4.2rem;
    bottom: 4.2rem;
    width: 3.5em;
    height: 3.5em;
    background-color: #fff;
    opacity: .8;
    border: .06em solid #e6ebf5;
    overflow: hidden;
    cursor: pointer;
    border-radius: 100%;
    box-shadow: 0 0 1.5em 0 rgba(0,0,0,0.12);
    -webkit-transition: .5s ease all;
    -moz-transition: .5s ease all;
    -o-transition: .5s ease all;
    transition: .5s ease all;
}

.cbl-m svg {
    margin-left: 1px;
    margin-top: 6px;
}

.cbl-m span {
    font-size: 11px;
    color: black;
    display: block;
    text-align: center;
    margin-top: -38px;
}

.cbla-m svg {
    margin-left: 14px;
    margin-top: 7px;
}

.cbla-m span {
    color: black;
    display: block;
    font-size: 11px;
    text-align: center;
    margin-top: -3px;
}

@media (max-width: 768px) {
    .cbl-m {
        display:inline-block;
        right: 15px;
        bottom: 25%;
    }

    .cbla-m {
        display: none;
    }
}

/* 文章 */
.container {
    margin-top: 82px;
}

.width {
    border-radius: 4px;
    background: white;
    font-size: .95rem;
    max-width: 48rem;
    padding: 1.2rem;
    margin: auto;
}

.atitle {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 11px;
}

.content {
    margin-top: 15px;
}

.wzgd {
    text-align: right;
    padding-bottom: 1em;
    font-size: 1.5em;
    line-height: 1.5em;
    font-weight: 700;
}

.archive-item {
    margin-left: 0rem;
}

.archive-item-link {
    display: inline-block;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 95%;
}

.archive-item-date {
    float: right;
    text-align: right;
    color: #a9a9b3;
}

/* 底部 */
.footer {
    margin-top: 20px;
    text-align: center;
    color: #ffffff;
    font-size: 13px;
    line-height: 25px;
}

.wfo {
    padding: 12px;
}

.wfo p a {
    color: #ffb100;
}

#bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 1000px;
    z-index: -10;
    zoom: 1; background-color: #fff;
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-background-size: cover;
    -o-background-size: cover;
    background-position: center 0;
}

/* -------------------------------------------------------------------------
   Storefront theme — neutral, Western-minimal (loads last to override legacy)
   ------------------------------------------------------------------------- */
:root {
    --sf-bg: #f3f4f6;
    --sf-surface: #ffffff;
    --sf-text: #0f172a;
    --sf-muted: #64748b;
    --sf-border: #e5e7eb;
    --sf-accent: #111827;
    --sf-accent-soft: #1e293b;
    --sf-link: #1d4ed8;
    --sf-radius: 12px;
    --sf-radius-pill: 999px;
    --sf-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    --sf-shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
    --sf-font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--sf-bg) !important;
    color: var(--sf-text);
    font-family: var(--sf-font);
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: 0.01em;
}

a {
    color: var(--sf-link);
}
a:hover {
    color: #1e40af;
}

.header {
    min-height: 56px;
    height: auto !important;
    max-height: none;
    border-bottom: 1px solid var(--sf-border);
    background-color: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: saturate(180%) blur(10px);
    box-shadow: none !important;
    display: flex;
    align-items: center;
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.header-inner > .layui-row {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

.header-inner > .layui-row > [class*="layui-col-"] {
    float: none !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
}

.header-inner [class*="layui-col-"] {
    box-sizing: border-box;
}

.header .header-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0 4px;
    min-height: 56px;
    width: 100%;
}

.header-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 1;
    min-width: 0;
}

.header .header-box img {
    max-height: 36px;
    max-width: 150px;
    width: auto;
    object-fit: contain;
}

.header .header-box .query {
    float: none;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3rem;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.header .header-box .query::-webkit-scrollbar {
    display: none;
    height: 0;
}

.header .header-box .query a,
.header .header-box .nav-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center;
    gap: 0.2rem;
    flex-shrink: 0;
    color: var(--sf-muted) !important;
    margin-top: 0 !important;
    width: auto !important;
    min-width: 0;
    padding: 0.42rem 0.65rem;
    line-height: 1.2;
    border-radius: var(--sf-radius-pill);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-align: center;
    border: 1px solid transparent;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.header .header-box .nav-link .layui-icon {
    font-size: 14px;
    margin-right: 0;
    vertical-align: middle;
    line-height: 1;
}

.header .header-box .nav-link:hover {
    color: var(--sf-text) !important;
    background: #f8fafc;
}

.header .header-box .nav-link--emphasis {
    color: var(--sf-muted) !important;
    background: transparent !important;
    border-color: transparent !important;
}

.header .header-box .nav-link--emphasis:hover {
    color: var(--sf-text) !important;
    background: #f8fafc !important;
    border-color: transparent !important;
}

#content {
    margin-top: 66px;
    padding-bottom: 48px;
}

@media (max-width: 768px) {
    #content {
        margin-top: 70px;
    }

    .header .header-box .query {
        justify-content: flex-end;
    }

    .shosu {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100%;
    }

}

.main .main-box {
    margin-top: 24px;
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    box-shadow: var(--sf-shadow);
    padding-top: 20px;
    padding-bottom: 20px;
}

/* 首页等模块标题对齐由 .sf-section-heading 统一管理 */
.main .title:not(.sf-section-heading),
.main .title-2:not(.sf-section-heading) {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--sf-muted);
}

.sf-section-heading svg path,
.sf-section-heading .icon path,
.main .title svg path,
.main .title-2 svg path {
    fill: #94a3b8 !important;
}

.main .cate .cate-box {
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-pill);
    box-shadow: none;
    min-height: 34px;
    height: auto;
    padding: 5px 12px;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.main .cate .cate-box:hover {
    border-color: #cbd5e1;
}

.main .cate .cate-box-select {
    background: var(--sf-accent) !important;
    border-color: var(--sf-accent) !important;
    color: #fff;
    box-shadow: var(--sf-shadow);
}

.main .cate .cate-box p {
    margin-top: 0;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.25;
    color: var(--sf-text);
}

.main .cate .cate-box-select p,
.main .cate .cate-box-select div {
    color: rgba(255, 255, 255, 0.9) !important;
}

.main .cate .cate-box div {
    opacity: 1;
    color: var(--sf-muted);
    font-size: 11px;
    margin-top: 2px;
    line-height: 1.2;
}

.shosu {
    background: #f8fafc;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-pill);
}

.shosu input {
    background: transparent;
    font-weight: 500;
    color: var(--sf-text);
}

.main .goods {
    font-weight: 500;
    color: var(--sf-text);
}

.goods-grid-wrap {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.main .goods .goods-grid-wrap .goods-box,
.main .goods .goods-grid-wrap .product {
    vertical-align: top;
}

.main .goods .goods-grid-wrap .goods-box {
    margin-left: auto;
    margin-right: auto;
}

.sf-toolbar.sf-section-heading .shosu {
    margin-left: auto;
}

.main .goods .goods-list {
    text-align: center;
}

.main .goods .goods-box {
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    box-shadow: var(--sf-shadow);
    padding: 14px 16px 16px;
    min-width: 200px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.main .goods .goods-box:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: var(--sf-shadow-md);
}

.main .goods .goods-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--sf-text);
    margin-top: 0;
}

.main .goods .goods-price {
    color: var(--sf-accent);
    font-feature-settings: "tnum" 1;
}

.main .goods .goods-num div p {
    background: #10b981;
    border-radius: var(--sf-radius-pill);
}

.main .goods .goods-num span {
    color: var(--sf-muted);
    font-size: 12px;
    font-weight: 500;
    margin-left: 12px;
}

.buy button,
.btn a,
.btn button {
    background: var(--sf-accent) !important;
    color: #fff !important;
    border: 1px solid var(--sf-accent) !important;
    border-radius: var(--sf-radius-pill) !important;
    box-shadow: none !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.75rem 1.75rem !important;
    transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.buy button:hover,
.btn a:hover,
.btn button:hover {
    background: var(--sf-accent-soft) !important;
    border-color: var(--sf-accent-soft) !important;
    transform: translateY(-1px);
}

.pay-title.sf-section-heading {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: nowrap;
    color: var(--sf-text);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 20px 10px;
    line-height: 1.25;
    min-height: 32px;
}

.pay-title.sf-section-heading svg {
    flex-shrink: 0;
    display: block;
    width: 26px;
    height: 26px;
    margin: 0;
    opacity: 0.45;
}

.pay-title.sf-section-heading svg path {
    fill: #64748b !important;
}

.intro {
    font-weight: 400;
    color: #334155;
    line-height: 1.75;
    letter-spacing: 0;
}

/* 详情页顶部：左侧标题·标签 / 右侧价格 */
.goods-msg__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 20px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--sf-border);
}

.goods-msg__main {
    flex: 1 1 200px;
    min-width: 0;
}

.goods-msg__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.goods-title-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    row-gap: 10px;
    margin: 0;
    font-size: clamp(17px, 2.8vw, 20px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--sf-text);
    line-height: 1.35;
}

.goods-title-main__text {
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-word;
}

.goods-msg__price-aside {
    flex-shrink: 0;
    text-align: right;
    align-self: flex-start;
    margin-left: auto;
}

.goods-msg__price-aside.price {
    margin-top: 0;
}

.goods-msg .entry {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 12px;
}

.goods-msg .entry .input,
.goods-msg .entry .order-number-box {
    flex: 1 1 auto;
    min-width: 0;
}

.goods-msg .entry .l-msg {
    flex: 0 0 auto;
    min-width: 7.35rem;
    text-align: right;
    white-space: nowrap;
    margin-top: 0 !important;
}

.sf-badge-deliver--auto {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #d1fae5 !important;
    font-weight: 500 !important;
}

.sf-badge-deliver--manual {
    background: #fff7ed !important;
    color: #c2410c !important;
    border: 1px solid #fed7aa !important;
    font-weight: 500 !important;
}

.price .price-sign,
.price .price-num {
    color: var(--sf-accent) !important;
    font-weight: 600;
    font-feature-settings: "tnum" 1;
}

.input input,
.order-number,
.order-info {
    border-radius: 10px !important;
    border: 1px solid var(--sf-border) !important;
    color: var(--sf-text) !important;
    box-shadow: none !important;
}

.order-number {
    border-left: 1px solid var(--sf-border) !important;
    border-right: 1px solid var(--sf-border) !important;
}

.l-msg {
    color: var(--sf-muted) !important;
    font-weight: 500;
}

.pay-type {
    border: 1px solid var(--sf-border);
    border-radius: 10px;
    padding: 10px 14px;
    background: var(--sf-surface);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.pay-select {
    border: 2px solid var(--sf-accent) !important;
    background: #f8fafc !important;
    color: var(--sf-accent) !important;
}

.layui-card {
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    box-shadow: var(--sf-shadow) !important;
    margin-bottom: 12px !important;
}

.layui-card-header {
    color: var(--sf-text);
    font-weight: 600;
    border-bottom: 1px solid var(--sf-border) !important;
    background: #fafafa !important;
}

.layui-tab-title {
    border-bottom: 1px solid var(--sf-border);
}

.layui-tab-title li {
    color: var(--sf-muted);
    font-weight: 500;
}

.layui-tab-title .layui-this {
    color: var(--sf-text);
}

.layui-tab-title .layui-this:after {
    display: none !important;
}

.layui-tab-title li a {
    color: inherit;
}

.layui-table[lay-skin="nob"] tbody tr {
    border-bottom: 1px solid #f1f5f9;
}

.layui-table[lay-skin="nob"] tbody tr td {
    color: var(--sf-text);
}

.small-tips.tips-green {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #d1fae5;
    font-weight: 500;
}

.small-tips.tips-yellow {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fef3c7;
}

.small-tips.tips-blue {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
}

.home-tips .layui-layer-title {
    background-image: none !important;
    background-color: var(--sf-accent) !important;
    color: #fff !important;
}

.laypro_footer {
    text-align: center;
    padding: 40px 16px 28px;
    color: var(--sf-muted);
    font-size: 13px;
    line-height: 1.7;
    border-top: 1px solid var(--sf-border);
    background: transparent;
}

.laypro_footer__line {
    margin: 0 0 8px;
    font-weight: 500;
    color: #94a3b8;
}

.laypro_footer__stats,
.laypro_footer__stats a {
    color: #94a3b8 !important;
    font-size: 12px;
}

.err_title {
    color: var(--sf-text);
    font-weight: 600;
}

.err_content {
    color: var(--sf-muted);
}

.err_content a {
    color: var(--sf-link);
    text-decoration: none;
    border-bottom: 1px solid rgba(29, 78, 216, 0.35);
}

.no-stock {
    background: #e5e7eb !important;
    color: var(--sf-muted) !important;
    box-shadow: none !important;
    background-image: none !important;
    border-radius: var(--sf-radius-pill) !important;
    font-weight: 600 !important;
}

.loading {
    color: var(--sf-muted);
    font-weight: 500;
}

.layui-btn.qfk-btn,
.layui-btn.goods-btn {
    background: var(--sf-accent) !important;
    border-color: var(--sf-accent) !important;
    color: #fff !important;
    border-radius: var(--sf-radius-pill) !important;
}

.layui-btn.sh-btn {
    background: #0f766e !important;
    border-color: #0f766e !important;
    color: #fff !important;
    border-radius: var(--sf-radius-pill) !important;
}

.layui-btn.del-btn {
    background: #fff !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
    border-radius: var(--sf-radius-pill) !important;
}

.layui-btn.layui-btn-normal.look-kami-btn {
    background: #f8fafc !important;
    color: var(--sf-accent) !important;
    border: 1px solid var(--sf-border) !important;
    border-radius: var(--sf-radius-pill) !important;
}

.width {
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    box-shadow: var(--sf-shadow);
}

.atitle {
    letter-spacing: -0.02em;
    color: var(--sf-text);
}

.archive-item-date {
    color: var(--sf-muted);
}

@media (prefers-reduced-motion: reduce) {
    .main .goods .goods-box:hover,
    .buy button:hover,
    .btn a:hover,
    .btn button:hover {
        transform: none;
    }
}

/* Layui admin mail list (order detail) */
.layadmin-maillist-fluid .layadmin-contact-box {
    border: 1px solid var(--sf-border) !important;
    border-radius: var(--sf-radius);
    background: var(--sf-surface);
    padding: 16px !important;
}

.order-info {
    border-radius: 10px !important;
    border-color: var(--sf-border) !important;
    background: #f8fafc !important;
    color: var(--sf-text) !important;
}

/* Alipay QR CTA in template */
#ali_wappay {
    width: 100%;
    max-width: 320px;
    margin: 20px auto 0;
    display: block;
    border-radius: var(--sf-radius-pill) !important;
    background: var(--sf-accent) !important;
    color: #fff !important;
    border: 1px solid var(--sf-accent) !important;
    font-weight: 600;
}

.product-info p {
    color: var(--sf-muted) !important;
    font-weight: 500;
}

.qr-pay-frame {
    text-align: center;
    max-width: 320px;
    margin: 0 auto !important;
    padding: 16px !important;
    border: 1px solid var(--sf-border) !important;
    border-radius: var(--sf-radius) !important;
    background: #fafafa;
    box-shadow: var(--sf-shadow);
}

/* ---------- 对齐与局部布局补充 ---------- */

.home-notice-shell {
    box-sizing: border-box;
}

.home-notice-inner {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    padding-left: clamp(18px, 4.5vw, 32px) !important;
    padding-right: clamp(18px, 4.5vw, 32px) !important;
    box-sizing: border-box;
}

.sf-section-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    row-gap: 0.35rem;
    margin: 0 20px 12px;
    min-height: 28px;
    line-height: 1.35;
}

.sf-section-heading > .sf-heading-icon:first-child + .sf-heading-label,
.sf-heading-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--sf-muted);
    letter-spacing: 0.02em;
    line-height: 1.35;
}

.sf-toolbar.sf-section-heading {
    margin-bottom: 14px;
    justify-content: flex-start;
    align-items: center;
}

.main .goods > .sf-toolbar.sf-section-heading > .icon,
.main .goods > .sf-toolbar.sf-section-heading > svg:first-of-type {
    flex-shrink: 0;
}

.main .goods > .sf-toolbar.sf-section-heading .shosu {
    margin-left: auto;
}

@media (max-width: 768px) {
    .main .goods > .sf-toolbar.sf-section-heading .shosu {
        margin-left: 0;
        width: 100%;
        flex: 1 1 100%;
    }
}

.sf-heading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    overflow: hidden;
}

.sf-heading-icon embed {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    display: block;
    pointer-events: none;
}

.sf-section-heading.sf-section-heading--rule {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sf-border);
}

.sf-toolbar span:not(.shosu):not(.icon) {
    line-height: 1.35;
}

/* Layui Tab 选中态底部强调线全部关闭（兼容 brief / line） */
.layui-tab-title .layui-this:after,
.layui-tab-brief > .layui-tab-title .layui-this:after,
.layui-tab-title li.layui-this:after {
    border: none !important;
    border-bottom: none !important;
    background: transparent !important;
    height: 0 !important;
    opacity: 0 !important;
    display: none !important;
}

.layui-tab-title > li.layui-this,
.layui-tab-brief > .layui-tab-title > li.layui-this {
    border-bottom: none !important;
    border-top: none !important;
    border-color: transparent !important;
}

/* 详情页步骤条去掉 float，避免表单行错乱 */
.goods-msg .entry .order-number-box {
    float: none !important;
    display: inline-flex;
    align-items: stretch;
}

.goods-msg .entry .sub,
.goods-msg .entry .add,
.goods-msg .entry .input-group-append,
.goods-msg .entry .input-group-prepend {
    float: none !important;
}

.goods-msg .entry .order-number {
    float: none !important;
}

.intro {
    padding-left: clamp(16px, 4vw, 28px);
    padding-right: clamp(16px, 4vw, 28px);
}

@media (max-width: 576px) {
    .goods-msg__top {
        flex-direction: column;
        align-items: stretch;
    }

    .goods-msg__price-aside {
        text-align: left;
        margin-left: 0 !important;
    }
}

@media (max-width: 992px) {
    .layui-col-md4 .goods-img + .layui-col-md8 .goods-msg,
    .main-box form .layui-col-md8:first-of-type .goods-msg {
        margin-top: 8px;
    }
}

.pay-title--spaced-bottom {
    padding-bottom: 14px !important;
    margin-bottom: 8px !important;
}

.sf-heading-pay-label {
    font-size: 20px;
    font-weight: 600;
    color: var(--sf-text);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.goods-msg__price-aside.price {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.35rem;
}

.goods-msg__price-aside.price .price-num {
    font-size: 1.65rem !important;
}

/* =====================================================================
 * ≤767px：移动端对齐（抵消旧模板固定宽度 / 侧边距 / 导航裁切）
 * ===================================================================== */
@media (max-width: 767.98px) {
    body {
        overflow-x: hidden;
    }

    /* 收窄 layui-row 外边距，减少左右漂移 */
    .main .layui-row {
        margin-left: 6px !important;
        margin-right: 6px !important;
    }

    /* 两行导航时仍能露出内容区 */
    #content {
        margin-top: 78px !important;
        padding-bottom: 36px !important;
    }

    .header-inner [class*="layui-col-"] {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .header .header-box {
        gap: 6px;
    }

    .header .header-box img {
        max-height: 30px !important;
        max-width: 132px !important;
    }

    .header .header-box .query {
        flex-wrap: nowrap;
        gap: 0.15rem;
        justify-content: flex-end;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .header .header-box .query a,
    .header .header-box .nav-link {
        padding: 0.4rem 0.45rem !important;
        font-size: 11.5px !important;
    }

    /* 抵消 legacy：商品详情表单侧边距错位 */
    .main-box .goods-msg {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    /* 抵消 legacy：商品卡片死宽度 */
    .goodsItem {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .imgBox {
        width: 26% !important;
        flex-shrink: 0;
        min-width: 72px;
    }

    .goodDesc {
        width: auto !important;
        flex: 1 1 0%;
        min-width: 0;
        padding-left: 8px;
    }

    .main .goods .goods-box {
        display: block;
        box-sizing: border-box;
        width: 100%;
        max-width: 460px;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .main .goods .goods-box:hover {
        transform: none !important;
    }

    .goods-grid-wrap {
        padding-left: 4px;
        padding-right: 4px;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }

    .main .main-box {
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }

    .home-notice-inner {
        padding-left: clamp(16px, 5vw, 24px) !important;
        padding-right: clamp(16px, 5vw, 24px) !important;
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    .sf-section-heading,
    .pay-title.sf-section-heading {
        margin-left: 14px !important;
        margin-right: 14px !important;
    }

    .sf-heading-label {
        font-size: 14px !important;
    }

    .sf-heading-pay-label {
        font-size: clamp(17px, 5vw, 19px) !important;
        word-break: break-word;
    }

    /* 「购买数量」：窄屏也保持单行、标签不换行 */
    .goods-msg .entry.entry--qty {
        flex-wrap: nowrap !important;
        align-items: center !important;
    }

    .goods-msg .entry.entry--qty .l-msg {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        min-width: 7.75rem !important;
        text-align: right !important;
        white-space: nowrap !important;
    }

    .goods-msg .entry.entry--qty .order-number-box {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100%;
    }

    /* 其它表单项：窄屏换行/stack */
    .goods-msg .entry:not(.entry--qty) {
        flex-wrap: wrap;
        align-items: flex-start !important;
        row-gap: 6px;
    }

    .goods-msg .entry:not(.entry--qty) .l-msg {
        flex: 1 1 100% !important;
        max-width: 100%;
        text-align: left !important;
        white-space: normal !important;
        min-width: 0 !important;
    }

    .goods-msg .entry:not(.entry--qty) .input,
    .goods-msg .entry:not(.entry--qty) .order-number-box {
        flex: 1 1 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        box-sizing: border-box !important;
    }

    .goods-msg .entry:not(.entry--qty) .input input {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .goods-msg .entry:not(.entry--qty) .order-number-box {
        display: flex !important;
        align-items: stretch;
    }

    .goods-msg .entry:not(.entry--qty) .order-number {
        flex: 1 1 auto;
        width: auto !important;
        min-width: 0;
    }

    /* 超窄屏才竖排价区；略宽手机仍保留左右结构+价在右 */
    .goods-msg__top {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-between;
    }

    .goods-msg__price-aside.price {
        justify-content: flex-end;
        align-self: flex-start;
        width: auto;
        margin-left: auto !important;
        text-align: right;
    }

    .goods-title-main {
        font-size: 16px !important;
    }

    /* 订单 Tab 可滑动 */
    .main-box .layui-tab .layui-tab-title {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        gap: 0;
    }

    .main-box .layui-tab-title > li {
        flex: 0 0 auto;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .main .goods > .sf-toolbar.sf-section-heading {
        margin-left: 14px !important;
        margin-right: 14px !important;
    }
}

/* 极小屏（约 400px 以下）：价区整块换行 */
@media (max-width: 399.98px) {
    .goods-msg__top {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .goods-msg__price-aside.price {
        width: 100% !important;
        justify-content: flex-start !important;
        margin-left: 0 !important;
        margin-top: 4px !important;
        text-align: left !important;
    }

    /* 极小屏防止价格与标题并排过挤 */
    .goods-msg__main {
        flex: 1 1 100%;
    }
}

.sf-section-heading .sf-heading-icon {
    align-self: center;
}

.goods-title-main__icon.sf-heading-icon {
    align-self: flex-start;
    flex-shrink: 0;
    margin-top: 0.12em;
}

.sf-heading-icon embed {
    vertical-align: top;
}
