/**
---------------------------------------弹窗购买部分CSS:Start-----------------------------------------------
 */
.open-commodity, .open-query {
    padding: 50px;
}

.commodity-di .general, .draft_status {
    font-size: 14px;
    color: #7c7674;
}

.commodity_name {
    text-align: center;
    font-weight: bold;
    font-size: 1.5rem;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ff7c7c3b;
    margin-bottom: 20px;
    color: #7a7878;
}

.layui-layer[type=page] {
    background: linear-gradient(#ffffffed, #ffe7f4) !important;
    border-radius: 20px !important;
}

.layui-layer {
    box-shadow: rgb(253 173 204 / 35%) 0px 7px 29px 0px !important;
    background: -moz-linear-gradient(top, #ffdede 0%, #ffffff 100%) !important;
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffdede), color-stop(100%, #ffffff)) !important;
    background: -webkit-linear-gradient(top, #ffdede 0%, #ffffff 100%) !important;
    background: -o-linear-gradient(top, #ffdede 0%, #ffffff 100%) !important;
    background: -ms-linear-gradient(top, #ffdede 0%, #ffffff 100%) !important;
    background: linear-gradient(to bottom, #ffdede 0%, #ffffff 100%) !important;
}

.layui-layer-hui {
    font-weight: bold !important;
    color: #6793e8 !important;
    border-radius: 20px !important;
}

.layui-layer-content {
    border-radius: 20px !important;
}

.share_url {
    color: #8e8eefbd;
    cursor: pointer;
    font-size: 14px;
}

.description {
    font-size: 14px;
    color: grey;
}

.description p {
    font-size: 14px !important;
    margin-bottom: 0 !important;
}

.seckill_end_time {
    color: #4caf50 !important;
}

.seckill_start_time {
    color: orangered !important;
}

.commodity-di .price {
    color: green;
    font-weight: bold;
    font-size: 14px !important;
}

.commodity-di .price_tips {
    color: #6772e5;
}

.delivery_way_hand {
    color: white;
    background: #ff000066;
    padding: 2px 4px;
    border-radius: 5px;
    font-size: 12px;
}

.delivery_way_auto {
    color: white;
    background: #00800078;
    padding: 2px 4px;
    border-radius: 5px;
    font-size: 12px;
}

.layui-layer-page input[type=text], .commodity-di input[type=number], .commodity-di input[type=password], .commodity-di input[type=email] {
    display: inline-block !important;
    width: 240px;
    height: 28px;
    background: rgba(255, 255, 255) !important;
    border-radius: 5px !important;
    padding-left: 6px !important;
    border: none;
}

.layui-layer-page textarea {
    background: rgba(255, 255, 255, .5);
    border-radius: 10px;
}

.layui-layer-page textarea:focus {
    outline: none;
}

.layui-layer-page input::placeholder {
    color: #6c6a6a !important;
}

.layui-layer-page input:focus {
    outline: none;
}


.purchase_num {
    width: 80px !important;
}

.card_count {
    color: #0fb183;
}

.card_count_general {
    color: #a5620f !important;
}

.card_count_immediately {
    color: #f16868 !important;
}


.card_count_unknown {
    color: #35b98e !important;
}

.card_count_empty {
    color: #d1d2d6 !important;
}

.purchase_count {
    display: none;
    color: #26fbdd;
}

.captcha-input {
    width: 120px !important;
}

.commodity-di .captcha {
    position: relative;
    top: -2px;
    cursor: pointer;
}

.trade_amount {
    font-weight: bold;
    color: #e72451;
}

.qq-service {
    color: #2aa2e3;
    padding: 0 4px 0 0;
    font-size: 12px;
    margin: 0 4px 0 0;
    border-radius: 5px;
}

.web-service {
    color: #ff8484;
    padding: 0 4px 0 4px;
    margin: 0;
    font-size: 12px;
    border-radius: 5px;
}

.pay-content {
    border-top: 1px dashed #ff7c7c3b;
    margin-top: 20px;
    padding-top: 10px;
}

.pay-content label {
    font-size: 16px;
    color: #bba0a3;
}

.pay-button {
    position: relative;
    margin: 0 4px 8px 0;
    background-color: rgba(70, 166, 255, 0.42);
    font-size: 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    display: inline-block;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
    padding: 2px 5px;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
    -webkit-box-shadow: 0 1px 4px 0 #ff99e899;
    box-shadow: 0 1px 4px 0 #ff99e899;
    color: grey;
}

.pay-button:hover {
    color: white;
    background-color: rgba(227, 165, 165, 0.53);
}


.pay-button img {
    height: 22px;
    border-radius: 6px;
}

.pay_list {
    padding-top: 10px;
}

.draft_status {
    display: none;
}

.draft_status button[type=button] {
    border-radius: 5px;
    background-color: #f3b0b09e;
    color: white;
    cursor: pointer;
    padding: 1px 5px 1px 5px;
    border: none;
}

.draft_status button[type=button]:focus {
    outline: none;
}

.draft_status button[type=button]:disabled {
    background-color: rgba(239, 239, 239, 0.3);
    color: grey;
}

.draft_premium {
    color: red;
}

.draft_status table {
    margin: 10px 0 5px 0;
}

.draft_status .draftCard label {
    font-size: 14px;
    color: grey;
}


.need-login {
    margin-top: 10px;
    font-size: 14px;
    color: #ed8181;
    font-weight: bold;
}

.need-login a {
    color: #526ccb;
}

/* 设置滚动条的样式 */
::-webkit-scrollbar {
    width: 5px;
}

/* 滚动槽 */
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(246, 193, 193, 0.3);
    border-radius: 10px;
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: rgba(245, 196, 196, 0.1);
    -webkit-box-shadow: inset 0 0 6px rgba(236, 186, 186, 0.5);
}

::-webkit-scrollbar-thumb:window-inactive {
    background: rgba(255, 0, 0, 0.2);
}

.lot {
    font-size: 12px;
    list-style-type: none;
    padding: 0;
    color: #0fb183;
}

.open-query .search-query {
    border: none;
    font-size: 14px;
    color: white;
    background: #e9b4ed;
    padding: 2px 10px;
    border-radius: 5px;
}

.open-query .search-value {
    width: 280px;
}

.open-query .search-query:focus {
    outline: none;
}

.open-query .search-page {
    border-bottom: 1px dashed #ff7c7c3b;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.open-query .hr-top {
    border-bottom: 1px dashed #ff7c7c3b;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.open-query .getCard {
    cursor: pointer;
    color: white;
    background: #f1b4ca;
    padding: 1px 5px;
    font-size: 14px;
    border-radius: 5px;
}

.open-query .card-textarea {
    border: 1px solid #f3c0c066;
    width: 100%;
    padding: 10px;
    font-size: 14px;
}

@media screen and (max-width: 768px) {
    .open-commodity, .open-query {
        padding: 20px;
    }

    .layui-layer[type=page] {
        border-radius: 0 !important;
    }
}


/**
---------------------------------------弹窗购买部分CSS:End-----------------------------------------------
 */

.race-click {
    margin-right: 8px;
    padding: 1px 8px;
    text-align: center;
    box-shadow: 0 1px 4px 0 rgb(0 0 0 / 20%);
    border-radius: 10px;
    cursor: pointer;
    display: inline-block;
    user-select: none;
    transition: all .3s ease;
}

.race-click.checked {
    border: 1px solid #03a9f4;
}


.category-list table tr th:nth-child(4), .category-list table tr td:nth-child(4), .shop-content table tr th:nth-child(4), .shop-content table tr td:nth-child(4) {
    position: relative;
    right: 0;
    width: 60px;
    text-align: center;
}

.category-list table tr th:nth-child(3), .category-list table tr td:nth-child(3), .shop-content table tr th:nth-child(3), .shop-content table tr td:nth-child(3) {
    position: relative;
    right: 50px;
    width: 80px;
    text-align: center;
}

.category-list table tr th:nth-child(2), .category-list table tr td:nth-child(2), .shop-content table tr th:nth-child(2), .shop-content table tr td:nth-child(2) {
    position: relative;
    right: 80px;
    width: 80px;
    text-align: center;
    margin: 0 20px;
}

.category-list {
    overflow-y: scroll;
    padding: 0 1rem 0 1rem !important;
    user-select: none;
}

.category-list .category-items {
    height: 768px;
    display: block;
}

.commodity-icon {
    width: 21px;
}

.shop-content {
    height: 768px;
    display: block;
    overflow-y: scroll;
}


.category-list .category-items .item:hover {
    color: #e7a7ed;
}


.shop-content table .item td:nth-child(1) {
    font-weight: bolder;
    padding-right: 64px;
}

@media screen and (max-width: 768px) {
    .category-list table tr th:nth-child(2), .category-list table tr td:nth-child(2), .shop-content table tr th:nth-child(2), .shop-content table tr td:nth-child(2) {
        right: 0;
    }

    .category-list table tr th:nth-child(3), .category-list table tr td:nth-child(3), .shop-content table tr th:nth-child(3), .shop-content table tr td:nth-child(3) {
        right: 0;
    }

    .col-xs-12 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .shop-content table .item td:nth-child(1) {
        font-weight: bolder;
        padding-right: 0;
    }

    .category-list .category-items {
        height: 240px;
    }
}


.category-list table .item, .shop-content table .item {
    border-bottom: 1px solid #efefef;
}

.category-list table .item:nth-last-child(1), .shop-content table .item:nth-last-child(1) {
    border-bottom: none;
}


.category-list table .head th, .shop-content table .head th {
    padding: 10px 0;
    font-weight: bold !important;
    font-size: 14px;
}

.category-list table .item td, .shop-content table .item td {
    padding: 10px 0;
    font-size: 14px;
    font-weight: bolder;
}

.category-list table .head th:nth-child(1), .shop-content table .head th:nth-child(1) {
    border-bottom-left-radius: 10px;
    border-top-left-radius: 10px;
}

.category-list table .head th:nth-child(4), .shop-content table .head th:nth-child(4) {
    border-bottom-right-radius: 10px;
    border-top-right-radius: 10px;
}

.category-list table .item td:nth-child(1), .shop-content table .item td:nth-child(1) {
    font-weight: bolder;
}


.category-list table .item td:nth-child(2), .shop-content table .item td:nth-child(2) {
    color: #fe00dc;
    padding-right: 2px;
}

.category-list table .item td:nth-child(3), .shop-content table .item td:nth-child(3) {
    color: #2ec25d;
    padding-right: 5px;
}

.shop-content table .item td:nth-child(4) a {
    border-radius: 10px;
    border: 1px solid transparent;
    display: inline-block;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
    padding: 2px 5px;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
    -webkit-box-shadow: 0 1px 4px 0 #ff99e899;
    box-shadow: 0 1px 4px 0 #ff99e899;
    color: grey;
}

p {
    font-size: 14px;
}

.category-list .category {
    cursor: pointer;
}

.checked {
    border: none !important;
    color: #f588ce !important;
    font-weight: bold !important;
}

.category-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.category-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 4px;
    border-radius: 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 182, 193, 0.20);
    box-shadow: none;
    cursor: pointer;
    transition: all .2s ease;
}

.category-item:hover {
    background: rgba(255, 245, 248, 0.35);
}

.category-main,
.category-subitem {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.category-thumb,
.category-subicon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 4px;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-meta,
.category-submeta {
    min-width: 0;
}

.category-title,
.category-subname {
    font-size: 14px;
    font-weight: bolder;
    color: #333;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-total,
.category-subcount {
    display: none;
}

.category-arrow {
    color: #3f3f3f;
    font-size: 16px;
    font-weight: 900;
    transition: transform .25s ease, color .25s ease;
    /* 仅在未展开时轻微抖动一下提示可点 */
    animation: category-arrow-nudge 2s ease-in-out infinite;
}

@keyframes category-arrow-nudge {
    0%, 60%, 100% { transform: translateX(0); }
    70%           { transform: translateX(-2px); }
    80%           { transform: translateX(2px); }
    90%           { transform: translateX(-1px); }
}

.category-item:hover .category-arrow {
    color: #f588ce;
    animation: none;
}

.category-group.is-open > .category-item .category-arrow {
    transform: rotate(90deg);
    color: #f588ce;
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    .category-arrow { animation: none; }
}

.category-children {
    display: none;
    margin-left: 10px;
    padding-left: 8px;
    border-left: 1px dashed rgba(255, 114, 171, 0.20);
}

.category-subitem {
    position: relative;
    width: 100%;
    margin-bottom: 0;
    padding: 10px 4px 10px 6px;
    border-radius: 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 182, 193, 0.14);
    box-shadow: none;
    cursor: pointer;
    transition: all .2s ease;
}

.category-subitem:last-child {
    margin-bottom: 0;
}

.category-subitem:hover {
    transform: none;
    background: rgba(255, 245, 248, 0.35);
}

.category-subline {
    position: absolute;
    left: -12px;
    top: 50%;
    width: 8px;
    height: 1px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: rgba(255, 114, 171, 0.26);
}

.category-subitem.checked {
    background: transparent;
    box-shadow: none;
}

.category-subitem.checked .category-subname,
.category-subitem.checked .category-subcount {
    color: #f588ce !important;
}

.category-item.checked,
.category-item.category-parent.checked {
    background: transparent;
}

.category-item.checked .category-title,
.category-item.checked .category-total {
    color: #f588ce !important;
}

.category-item:hover .category-title,
.category-subitem:hover .category-subname {
    color: #e7a7ed;
}

.category-list {
    padding: 0 12px 6px 12px !important;
}

.category-list .category-items {
    height: 560px;
    overflow-y: auto;
    padding-right: 4px;
}

.category-list .category-items::-webkit-scrollbar {
    width: 4px;
}

.category-list .category-items::-webkit-scrollbar-thumb {
    background: rgba(255, 126, 168, 0.22);
    border-radius: 999px;
}

.commodity-icon {
    width: 20px;
    height: 20px;
    object-fit: cover;
}

@media screen and (max-width: 768px) {
    .category-item {
        padding: 7px 8px;
        border-radius: 8px;
    }

    .category-children {
        margin-left: 8px;
        padding-left: 8px;
    }

    .category-list .category-items {
        height: 260px;
    }
}


.commodity-search {
    border: 1px solid rgba(128, 128, 128, 0.11);
    border-radius: 4px;
    padding: 2px;
    padding-left: 10px;
    font-size: 14px;
    display: inline-block;
    width: 60%;
    height: 30px;
    text-align: center;
}

.search-btn {
    height: 30px;
    line-height: 15px;
    font-size: 14px;
}

.span-search {
    margin-left: 6px;
}

/* layui 图标字体：仅为复用用户中心(Cartoon)那枚充值中心图标而引入，不引整套 layui.css 以免污染主页样式 */
@font-face {
    font-family: "layui-icon";
    src: url('/assets/static/layui/font/iconfont.eot');
    src: url('/assets/static/layui/font/iconfont.eot#iefix') format('embedded-opentype'),
         url('/assets/static/layui/font/iconfont.woff2') format('woff2'),
         url('/assets/static/layui/font/iconfont.woff') format('woff'),
         url('/assets/static/layui/font/iconfont.ttf') format('truetype'),
         url('/assets/static/layui/font/iconfont.svg#layui-icon') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.layui-icon {
    font-family: "layui-icon" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== 自定义：左侧分类栏 / 商品列表栏宽度微调（≥768px 桌面端）
   - 分类栏（含公告/搜索若同列）：25% → 30%
   - 商品列表：75% → 70%
   - 移动端（<768px）保持 col-xs-12 整宽不动
   ===== */
@media (min-width: 768px) {
    /* container 缩到 80.75vw 后，分类栏绝对宽度要保持不变 → 百分比从 25.5% 调到 30%
       (25.5% * 95vw = 24.225vw / 80.75vw ≈ 30%)
       减少的总宽度全部从选择商品扣 (74.5% → 70%) */
    .container > .row > .col-3.col-xs-12 {
        flex: 0 0 27%;
        max-width: 27%;
    }
    .container > .row > .col-9.col-xs-12.shop-html {
        flex: 0 0 73%;
        max-width: 73%;
    }
}

/* 分类名容器：撑满卡片宽度，让长名称能多显示几个字而不是太早被 ... 截断 */
.category-list .category-items .item,
.category-list .category-items .item a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ===== 侧边栏(商品分类)与商品栏(选择商品) 等高 + 内部滚动 (2026-05-26) =====
   桌面端：两侧同一高度，用 clamp 控制在 360px ~ 520px 之间
   移动端 (<768px)：保持原来的竖向堆叠 + 260px 内部滚动，不动
*/
@media (min-width: 768px) {
    .category-list,
    .shop-content {
        height: clamp(480px, calc(100vh - 260px), 840px) !important;
        max-height: 840px !important;
        overflow-y: auto !important;
    }
    .category-list .category-items {
        height: 100% !important;
        max-height: none !important;
        min-height: 0;
    }
}

/* ===== PC 端整体页面宽度 (2026-05-27, 改窄 15% 版本) =====
   原: 95vw / 1800px cap
   现: 80.75vw / 1530px cap (各自 ×0.85)
   减下来的宽度全部从选择商品扣, 商品分类绝对宽度保持原值
*/
@media (min-width: 768px) {
    .content-wrapper > .container,
    body > .container,
    .container {
        max-width: 80.75vw !important;
        width: 80.75vw !important;
    }
}
@media (min-width: 1600px) {
    .content-wrapper > .container,
    body > .container,
    .container {
        max-width: 1530px !important;
        width: 1530px !important;
    }
}
