/* 自助取卡页：桌面端选购工作台，移动端紧凑商品目录。 */
.shop-index-page #content {
    padding-bottom: 56px !important;
}

.shop-index-page #notice {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto 18px !important;
    padding: 18px 22px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: rgba(var(--accent-rgb), .08) !important;
    box-shadow: none !important;
    box-sizing: border-box;
}

.shop-index-page #content > .main,
.shop-index-page #content > .main > .layui-row,
.shop-index-page #content > .main .layui-col-md8 {
    width: 100% !important;
    margin: 0 !important;
}

body.shop-index-page .shop-purchase-workbench {
    width: min(1240px, calc(100% - 48px));
    min-height: 560px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr);
    overflow: clip;
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 28px 72px rgba(0, 0, 0, .24);
}

html[data-theme="light"] body.shop-index-page .shop-purchase-workbench {
    box-shadow: 0 28px 72px rgba(33, 57, 96, .13);
}

body.shop-index-page .shop-purchase-workbench > .main,
body.shop-index-page .shop-purchase-workbench > .main > .layui-row,
body.shop-index-page .shop-purchase-workbench > .main > .layui-row > [class*="layui-col-"] {
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
}

body.shop-index-page .shop-purchase-workbench > .main:first-child {
    position: relative;
    z-index: 1;
    background: var(--surface-2);
    box-shadow: 1px 0 0 var(--line);
}

body.shop-index-page .shop-purchase-workbench .main-box,
html[data-theme="light"] body.shop-index-page .shop-purchase-workbench .main-box {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.shop-index-page .shop-purchase-workbench #category {
    position: sticky;
    top: 92px;
    min-height: 0 !important;
    padding: 30px 20px !important;
}

body.shop-index-page .shop-purchase-workbench #category .title,
body.shop-index-page .shop-purchase-workbench #goods .title-2 {
    border: 0 !important;
    color: var(--text) !important;
}

body.shop-index-page .shop-purchase-workbench #category .title {
    min-height: 0;
    margin: 0 8px 20px !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.shop-index-page .shop-purchase-workbench #category .title svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

body.shop-index-page .shop-purchase-workbench #category .title span,
body.shop-index-page .shop-purchase-workbench #goods .title-2 > span:not(.shosu) {
    font-size: 18px !important;
    font-weight: 800;
    letter-spacing: 0;
}

body.shop-index-page .shop-purchase-workbench #category .cate {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column;
    gap: 6px !important;
    overflow: visible !important;
}

body.shop-index-page .shop-purchase-workbench #category .cate .cate-box,
html[data-theme="light"] body.shop-index-page .shop-purchase-workbench #category .cate .cate-box {
    width: 100%;
    min-width: 0 !important;
    min-height: 62px;
    margin: 0 !important;
    padding: 12px 14px !important;
    justify-content: center;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: color .18s ease, background-color .18s ease, transform .18s ease !important;
}

body.shop-index-page .shop-purchase-workbench #category .cate .cate-box:not(.cate-box-select):hover,
html[data-theme="light"] body.shop-index-page .shop-purchase-workbench #category .cate .cate-box:not(.cate-box-select):hover {
    background: rgba(var(--accent-rgb), .08) !important;
    transform: translateX(3px);
}

body.shop-index-page .shop-purchase-workbench #category .cate .cate-box-select,
html[data-theme="light"] body.shop-index-page .shop-purchase-workbench #category .cate .cate-box-select,
body.shop-index-page .shop-purchase-workbench #category .cate .cate-box-select:hover,
html[data-theme="light"] body.shop-index-page .shop-purchase-workbench #category .cate .cate-box-select:hover {
    background: linear-gradient(135deg, #087786, #07545f) !important;
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(var(--primary-action-rgb), .22) !important;
    transform: none;
}

body.shop-index-page .shop-purchase-workbench #category .cate .cate-box p {
    margin: 0 0 5px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.35;
}

body.shop-index-page .shop-purchase-workbench #category .cate .cate-box div {
    margin: 0 !important;
    font-size: 12px;
    line-height: 1.3;
}

body.shop-index-page .shop-purchase-workbench #goods {
    min-height: 560px !important;
    padding: 30px 32px 36px !important;
}

body.shop-index-page .shop-purchase-workbench #goods .goods {
    min-height: 0 !important;
    margin: 0 !important;
}

body.shop-index-page .shop-purchase-workbench #goods .title-2 {
    min-height: 44px;
    margin: 0 0 26px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    gap: 10px;
}

body.shop-index-page .shop-purchase-workbench #goods .title-2 > svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
}

body.shop-index-page .shop-purchase-workbench #goods .shosu,
html[data-theme="light"] body.shop-index-page .shop-purchase-workbench #goods .shosu {
    width: min(340px, 46%);
    height: 44px;
    margin: 0 0 0 auto !important;
    padding: 0 14px;
    border: 1px solid var(--line) !important;
    border-radius: 10px !important;
    background: var(--surface-2) !important;
    box-shadow: none !important;
    box-sizing: border-box;
}

body.shop-index-page .shop-purchase-workbench #goods .shosu:focus-within,
html[data-theme="light"] body.shop-index-page .shop-purchase-workbench #goods .shosu:focus-within {
    border-color: rgba(var(--primary-action-rgb), .7) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-action-rgb), .13) !important;
}

body.shop-index-page .shop-purchase-workbench #goods .shosu input {
    font-size: 14px !important;
    font-weight: 500 !important;
}

body.shop-index-page .shop-purchase-workbench #goods .shosu input::placeholder {
    color: #9aabbe !important;
    opacity: 1;
}

html[data-theme="light"] body.shop-index-page .shop-purchase-workbench #goods .shosu input::placeholder {
    color: #5d6f84 !important;
}

body.shop-index-page .shop-purchase-workbench #goods .goods-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

body.shop-index-page .shop-purchase-workbench #goods .goods-list[style*="display: none"] {
    display: none !important;
}

body.shop-index-page .shop-purchase-workbench #goods .goods .goods-box,
html[data-theme="light"] body.shop-index-page .shop-purchase-workbench #goods .goods .goods-box {
    position: relative;
    width: 100% !important;
    max-width: 100%;
    min-width: 0 !important;
    min-height: 154px;
    margin: 0 !important;
    padding: 14px !important;
    display: block !important;
    overflow: hidden;
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .06), transparent 38%),
        var(--surface-2) !important;
    color: var(--text) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 10px 24px rgba(0, 0, 0, .08) !important;
    box-sizing: border-box;
    transition: border-color .2s ease, background-color .2s ease, transform .2s cubic-bezier(.22, 1, .36, 1), box-shadow .2s ease !important;
}

html[data-theme="light"] body.shop-index-page .shop-purchase-workbench #goods .goods .goods-box {
    background:
        linear-gradient(135deg, rgba(8, 119, 134, .07), transparent 42%),
        #f8fbff !important;
    box-shadow: 0 12px 28px rgba(33, 57, 96, .08) !important;
}

body.shop-index-page .shop-purchase-workbench #goods .goods .goods-box:hover,
html[data-theme="light"] body.shop-index-page .shop-purchase-workbench #goods .goods .goods-box:hover {
    border-color: var(--line-strong) !important;
    background:
        linear-gradient(135deg, rgba(var(--accent-rgb), .16), transparent 45%),
        var(--surface-2) !important;
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .16) !important;
}

html[data-theme="light"] body.shop-index-page .shop-purchase-workbench #goods .goods .goods-box:hover {
    background:
        linear-gradient(135deg, rgba(8, 119, 134, .11), transparent 45%),
        #fff !important;
    box-shadow: 0 18px 34px rgba(33, 57, 96, .13) !important;
}

body.shop-index-page .shop-purchase-workbench #goods .goods .goods-box:focus-visible {
    outline: 2px solid rgba(var(--primary-action-rgb), .9);
    outline-offset: 3px;
}

body.shop-index-page .shop-purchase-workbench #goods .goods-card-link {
    position: absolute;
    z-index: 1;
    inset: 0;
    border-radius: inherit;
}

body.shop-index-page .shop-purchase-workbench #goods .goods-card-link:focus-visible {
    outline: 2px solid rgba(var(--primary-action-rgb), .9);
    outline-offset: -3px;
}

body.shop-index-page .shop-purchase-workbench #goods .goodsItem {
    height: 100%;
    display: grid !important;
    grid-template-columns: minmax(164px, 41%) minmax(0, 1fr);
    align-items: center !important;
    gap: 20px !important;
}

body.shop-index-page .shop-purchase-workbench #goods .goodsItem-no-cover {
    grid-template-columns: 1fr;
}

body.shop-index-page .shop-purchase-workbench #goods .imgBox {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 2;
    align-self: center;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(var(--accent-rgb), .12) !important;
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 30%, rgba(var(--accent-rgb), .14), transparent 45%),
        rgba(255, 255, 255, .04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

body.shop-index-page .shop-purchase-workbench #goods .imgBox img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    display: block;
    padding: 0 !important;
    object-fit: cover;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

body.shop-index-page .shop-purchase-workbench #goods .goods-box:hover .imgBox img {
    transform: scale(1.04);
}

body.shop-index-page .shop-purchase-workbench #goods .goodDesc {
    min-width: 0;
    width: auto !important;
    display: flex !important;
    flex: 1 1 auto;
    align-self: stretch;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2px 0;
}

body.shop-index-page .shop-purchase-workbench #goods .goods-name {
    min-height: 0;
    margin: 0 0 8px !important;
    color: var(--text) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.48;
    letter-spacing: 0;
}

body.shop-index-page .shop-purchase-workbench #goods .goods-price {
    width: auto !important;
    margin: 0 0 18px !important;
    color: var(--gold-2) !important;
    display: block !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

body.shop-index-page .shop-purchase-workbench #goods .goods-num {
    display: grid;
    width: 100% !important;
    height: auto !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
}

body.shop-index-page .shop-purchase-workbench #goods .goods-card-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: auto;
}

body.shop-index-page .shop-purchase-workbench #goods .goods-card-actions .goods-num {
    min-width: 0;
    flex: 1 1 auto;
}

body.shop-index-page .shop-purchase-workbench #goods .goods-order-button {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 40px;
    padding: 0 14px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(var(--primary-action-rgb), .34);
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primary-action-start), var(--primary-action-end));
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
    box-shadow: 0 10px 24px rgba(var(--primary-action-rgb), .24);
    transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease, filter .18s ease;
}

body.shop-index-page .shop-purchase-workbench #goods .goods-order-button:hover {
    border-color: rgba(var(--primary-action-rgb), .68);
    background: linear-gradient(135deg, var(--primary-action-start), var(--primary-action-end));
    color: #fff !important;
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(var(--primary-action-rgb), .32);
}

body.shop-index-page .shop-purchase-workbench #goods a.goods-order-button:active {
    transform: scale(.98);
}

body.shop-index-page .shop-purchase-workbench #goods .goods-order-button-sold-out,
body.shop-index-page .shop-purchase-workbench #goods .goods-order-button-sold-out:hover {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
    color: var(--muted) !important;
    font-weight: 800;
    cursor: default;
    filter: none;
    transform: none;
    box-shadow: none;
}

body.shop-index-page .shop-purchase-workbench #goods .goods-order-button:focus-visible {
    outline: 2px solid rgba(var(--primary-action-rgb), .9);
    outline-offset: 2px;
}

body.shop-index-page .shop-purchase-workbench #goods .goods-num > div {
    width: 100% !important;
    height: 5px;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(var(--accent-rgb), .13);
}

body.shop-index-page .shop-purchase-workbench #goods .goods-num > div p {
    display: block !important;
    height: 100%;
    background: var(--primary-action-start);
    border-radius: inherit;
}

body.shop-index-page .shop-purchase-workbench #goods .goods-num span {
    float: none !important;
    margin: 0 !important;
    color: var(--muted) !important;
    font-size: 12px;
    line-height: 1.2;
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (max-width: 1080px) {
    body.shop-index-page .shop-purchase-workbench {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    body.shop-index-page .shop-purchase-workbench #goods {
        padding-right: 24px !important;
        padding-left: 24px !important;
    }

    body.shop-index-page .shop-purchase-workbench #goods .imgBox {
        width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 820px) {
    .shop-index-page #notice,
    body.shop-index-page .shop-purchase-workbench {
        width: min(100% - 32px, 720px);
    }

    body.shop-index-page .shop-purchase-workbench {
        min-height: 0;
        display: block;
        overflow: visible;
        background: transparent;
        box-shadow: none;
    }

    html[data-theme="light"] body.shop-index-page .shop-purchase-workbench {
        box-shadow: none;
    }

    body.shop-index-page .shop-purchase-workbench > .main:first-child {
        margin-bottom: 14px !important;
        overflow: hidden;
        border-radius: 14px;
        background: var(--surface);
        box-shadow: 0 18px 44px rgba(0, 0, 0, .16);
    }

    body.shop-index-page .shop-purchase-workbench > .main:last-child {
        overflow: hidden;
        border-radius: 14px;
        background: var(--surface);
        box-shadow: 0 18px 44px rgba(0, 0, 0, .16);
    }

    body.shop-index-page .shop-purchase-workbench #category {
        position: static;
        padding: 22px 20px 18px !important;
    }

    body.shop-index-page .shop-purchase-workbench #category .title {
        margin-bottom: 14px !important;
    }

    body.shop-index-page .shop-purchase-workbench #category .cate {
        margin: 0 -20px !important;
        padding: 0 20px 4px !important;
        flex-direction: row;
        overflow-x: auto !important;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
        scrollbar-color: var(--line-strong) transparent;
        flex-wrap: nowrap !important;
    }

    body.shop-index-page .shop-purchase-workbench #category .cate .cate-box,
    html[data-theme="light"] body.shop-index-page .shop-purchase-workbench #category .cate .cate-box {
        width: auto;
        min-width: 168px !important;
        flex: 0 0 auto;
    }

    body.shop-index-page .shop-purchase-workbench #goods {
        min-height: 0 !important;
        padding: 24px 20px 26px !important;
    }
}

@media (max-width: 640px) {
    .shop-index-page #content {
        padding-bottom: 32px !important;
    }

    .shop-index-page #notice,
    body.shop-index-page .shop-purchase-workbench {
        width: calc(100% - 24px);
    }

    .shop-index-page #notice {
        padding: 16px !important;
    }

    body.shop-index-page .shop-purchase-workbench #category {
        padding: 20px 16px 16px !important;
    }

    body.shop-index-page .shop-purchase-workbench #category .title {
        margin-right: 4px !important;
        margin-left: 4px !important;
    }

    body.shop-index-page .shop-purchase-workbench #category .cate {
        margin-right: -16px !important;
        margin-left: -16px !important;
        padding-right: 16px !important;
        padding-left: 16px !important;
        flex-wrap: wrap !important;
    }

    body.shop-index-page .shop-purchase-workbench #category .cate .cate-box,
    html[data-theme="light"] body.shop-index-page .shop-purchase-workbench #category .cate .cate-box {
        width: calc(50% - 3px);
        min-width: 0 !important;
        min-height: 58px;
    }

    body.shop-index-page .shop-purchase-workbench #goods {
        padding: 20px 16px 22px !important;
    }

    body.shop-index-page .shop-purchase-workbench #goods .title-2 {
        margin-bottom: 18px !important;
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) !important;
        gap: 10px;
    }

    body.shop-index-page .shop-purchase-workbench #goods .shosu,
    html[data-theme="light"] body.shop-index-page .shop-purchase-workbench #goods .shosu {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 4px !important;
    }

    body.shop-index-page .shop-purchase-workbench #goods .goods-list {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    body.shop-index-page .shop-purchase-workbench #goods .goods .goods-box,
    html[data-theme="light"] body.shop-index-page .shop-purchase-workbench #goods .goods .goods-box {
        min-height: 138px;
        padding: 12px !important;
    }

    body.shop-index-page .shop-purchase-workbench #goods .goodsItem {
        grid-template-columns: 146px minmax(0, 1fr);
        gap: 14px !important;
    }

    body.shop-index-page .shop-purchase-workbench #goods .goodsItem-no-cover {
        grid-template-columns: 1fr;
    }

    body.shop-index-page .shop-purchase-workbench #goods .imgBox {
        width: 100% !important;
        height: auto !important;
    }

    body.shop-index-page .shop-purchase-workbench #goods .goods-card-actions {
        gap: 8px;
    }

    body.shop-index-page .shop-purchase-workbench #goods .goods-order-button {
        width: 100%;
        min-height: 34px;
        padding: 0 10px;
        font-size: 12px;
        box-sizing: border-box;
    }

    body.shop-index-page .shop-purchase-workbench #goods .goods-name {
        min-height: 38px;
        margin-bottom: 8px !important;
        font-size: 14px !important;
    }

    body.shop-index-page .shop-purchase-workbench #goods .goods-price {
        margin-bottom: 12px !important;
        font-size: 20px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.shop-index-page .shop-purchase-workbench #category .cate .cate-box,
    body.shop-index-page .shop-purchase-workbench #goods .goods .goods-box,
    body.shop-index-page .shop-purchase-workbench #goods .imgBox img,
    body.shop-index-page .shop-purchase-workbench #goods .goods-order-button {
        transition: none !important;
    }
}
