/**
---------------------------------------弹窗购买部分CSS:Start-----------------------------------------------
 */
.open-commodity, .open-query {
    padding: 50px;
}

.commodity-di .general, .draft_status {
    font-size: 14px;
    color: #7c7674;
}

.commodity_name {
    font-weight: bold;
    font-size: 1.5rem;
    color: #7a7878;
}

.dream-buy-sheet-title.commodity_name {
    text-align: left;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0;
    border: none;
    margin: 0;
    line-height: 1.35;
}

.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],
.dream-field-input, .open-commodity .acg-input {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    height: auto;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    border: 1px solid rgba(241, 180, 202, 0.45);
}

.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: 100% !important;
    max-width: 120px !important;
}

.captcha-input {
    width: 100% !important;
    max-width: 160px !important;
    display: inline-block !important;
    vertical-align: middle;
}

.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;
}

.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 rgba(241, 180, 202, 0.45);
    margin-top: 16px;
    padding-top: 12px;
}

.pay-content label {
    font-size: 16px;
    color: #9b7a88;
}

.pay-button,
.dream-pay-btn {
    position: relative;
    margin: 0;
    background: linear-gradient(135deg, rgba(255, 236, 245, 0.96) 0%, rgba(236, 244, 255, 0.94) 100%);
    font-size: 15px;
    font-weight: 600;
    border-radius: 14px;
    border: 1px solid rgba(241, 180, 202, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 16px;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: 0 4px 14px rgba(241, 180, 202, 0.2);
    color: #5a4a52;
    text-decoration: none !important;
    width: 100%;
    box-sizing: border-box;
}

.pay-button:hover,
.dream-pay-btn:hover {
    color: #4a3a42;
    border-color: rgba(241, 180, 202, 0.85);
    background: linear-gradient(135deg, rgba(241, 180, 202, 0.38) 0%, rgba(155, 188, 255, 0.32) 100%);
    box-shadow: 0 6px 18px rgba(241, 180, 202, 0.32);
}

.dream-buy-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 28px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 8px;
    border: 1px solid rgba(241, 180, 202, 0.55);
    background: linear-gradient(135deg, rgba(241, 180, 202, 0.92) 0%, rgba(233, 180, 237, 0.88) 100%);
    color: #fff !important;
    text-decoration: none !important;
    white-space: nowrap;
    width: auto;
    box-sizing: border-box;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 2px 8px rgba(241, 180, 202, 0.28);
    transition: all .2s ease;
}

.dream-buy-link:hover {
    color: #fff !important;
    filter: brightness(1.05);
    box-shadow: 0 3px 10px rgba(241, 180, 202, 0.38);
}

.pay-button img {
    width: 22px;
    height: 22px;
    min-width: 22px;
    max-width: 22px;
    min-height: 22px;
    max-height: 22px;
    object-fit: contain;
    flex-shrink: 0;
    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;
}

.dream-query-page .hr-top {
    border-bottom: 1px dashed #ff7c7c3b;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.dream-query-page .getCard {
    cursor: pointer;
    color: white;
    background: #f1b4ca;
    padding: 1px 8px;
    font-size: 14px;
    border-radius: 5px;
}

.dream-query-page .card-secret-card {
    border-color: #f3c0c066;
    background: rgba(255, 255, 255, 0.92);
}

.dream-query-page .card-secret-copy {
    background: #f1b4ca;
    border-color: #f1b4ca;
    color: #fff;
}

.dream-query-page .card-secret-copy.done {
    background: #8fd4b0;
    border-color: #8fd4b0;
}

.dream-query-page .card-secret-card--extract {
    border-color: #f3c0c066;
    background: linear-gradient(180deg, rgba(255, 251, 240, 0.95) 0%, rgba(255, 255, 255, 0.92) 50%);
}

.dream-query-page .card-secret-extract-btn {
    background: linear-gradient(135deg, #f1b4ca 0%, #e9b4ed 100%);
    box-shadow: 0 4px 12px rgba(241, 180, 202, 0.45);
}

.dream-query-page .card-secret-extract-btn:hover {
    box-shadow: 0 6px 16px rgba(241, 180, 202, 0.55);
}

.dream-query-page .card-secret-copy--outline {
    color: #d87898;
    border-color: #f1b4ca;
}

.dream-query-page .card-secret-copy--outline:hover {
    background: #fff5f8;
}

.dream-query-page .card-secret-card--recharge {
    border-color: #d8789833;
    background: linear-gradient(180deg, rgba(240, 247, 255, 0.95) 0%, rgba(255, 255, 255, 0.92) 52%);
}

.dream-query-page .card-secret-card-title--recharge {
    color: #7b5ea7;
}

.dream-query-page .card-secret-steps--recharge {
    border-color: #e9b4ed66;
}

.dream-query-page .card-secret-steps--recharge .card-secret-steps-title {
    color: #7b5ea7;
}

.dream-query-page .card-secret-cdk-block {
    border-color: #e9b4ed;
    box-shadow: 0 2px 8px rgba(233, 180, 237, 0.15);
}

.dream-query-page .card-secret-cdk-label {
    color: #7b5ea7;
}

.dream-query-page .card-secret-cdk-block .card-secret-value {
    color: #7b5ea7;
    background: #faf5ff;
    border-color: #e9b4ed66;
}

.dream-query-page .card-secret-primary-btn {
    background: linear-gradient(135deg, #f1b4ca 0%, #9bbcff 100%);
    box-shadow: 0 4px 12px rgba(155, 188, 255, 0.35);
}

.dream-query-page .card-secret-primary-btn:hover {
    box-shadow: 0 6px 16px rgba(155, 188, 255, 0.45);
}

@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) {
    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) {
    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) {
    position: relative;
    right: 80px;
    width: 80px;
    text-align: center;
    margin: 0 20px;
}

@media screen and (max-width: 768px) {
    .category-list table tr th:nth-child(2), .category-list table tr td:nth-child(2) {
        right: 0;
    }

    .category-list table tr th:nth-child(3), .category-list table tr td:nth-child(3) {
        right: 0;
    }
}

.category-list table .head {
}

.category-list table .item {
    border-bottom: 1px solid #efefef;
}

.category-list table .item:nth-last-child(1) {
    border-bottom: none;
}


.category-list table .head th {
    padding: 10px 0;
    font-weight: bold !important;
    font-size: 14px;
}

.category-list table .item td {
    padding: 10px 0;
    font-size: 14px;
    font-weight: bolder;
}

.category-list table .head th:nth-child(1) {
    border-bottom-left-radius: 10px;
    border-top-left-radius: 10px;
}

.category-list table .head th:nth-child(4) {
    border-bottom-right-radius: 10px;
    border-top-right-radius: 10px;
}

.category-list table .item td:nth-child(1) {
    font-weight: bolder;
}

.category-list table .item td:nth-child(2) {
    color: #fe00dc;
    padding-right: 2px;
}

.category-list table .item td:nth-child(3) {
    color: #2ec25d;
    padding-right: 5px;
}

.category-list table .item td:nth-child(4) a:not(.dream-buy-link) {
    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;
}

/* ========== Dream 移动端 / UX 优化 ========== */

/* Bootstrap 精简替代（原 bootstrap.min.css 210KB，i.css 已含主要组件样式） */
.d-none {
    display: none !important;
}

.text-center {
    text-align: center !important;
}

@media (min-width: 768px) {
    .d-md-none {
        display: none !important;
    }

    .d-md-flex {
        display: flex !important;
    }

    .d-md-block {
        display: block !important;
    }

    /* PC：隐藏移动底栏、显示表格列表 */
    .dream-bottom-tab {
        display: none !important;
    }

    .dream-product-table-wrap {
        display: block !important;
    }

    .dream-product-cards {
        display: none !important;
    }

    .dream-body {
        padding-bottom: env(safe-area-inset-bottom, 0) !important;
    }
}

@media (max-width: 767.98px) {
    .dream-topnav {
        display: none !important;
    }

    .dream-product-table-wrap {
        display: none !important;
    }

    .dream-product-cards {
        display: block !important;
    }
}

.dream-body {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.dream-body.dream-has-bottom-tab {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0));
}

@media (max-width: 767.98px) {
    .dream-body {
        background-attachment: scroll !important;
    }
}

.dream-navbar {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(241, 180, 202, 0.25);
    position: sticky;
    top: 0;
    z-index: 100;
}

.dream-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
}

.dream-brand-text {
    position: relative;
    top: 4px;
    left: 6px;
    font-weight: bold;
    color: #1396558a;
}

.dream-topnav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dream-topnav .nav-link {
    font-weight: 600;
    color: #7a7878;
    padding: 8px 12px;
    border-radius: 999px;
}

.dream-topnav .nav-link.active {
    background: rgba(241, 180, 202, 0.35);
    color: #d87898;
}

.dream-bottom-tab {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(241, 180, 202, 0.35);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0));
    box-shadow: 0 -4px 20px rgba(241, 180, 202, 0.18);
}

.dream-tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 48px;
    color: #8a8585;
    text-decoration: none !important;
    font-size: 11px;
    border-radius: 10px;
}

.dream-tab-item i {
    font-size: 18px;
}

.dream-tab-item.active {
    color: #d87898;
    background: rgba(241, 180, 202, 0.18);
    font-weight: 600;
}

.dream-notice-alert {
    color: #d87898;
    font-weight: 600;
    margin: 10px 0 0;
}

.dream-search-bar {
    margin-bottom: 12px;
}

.dream-search-input-wrap {
    position: relative;
}

.dream-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #c9a0b0;
    z-index: 1;
}

.dream-search-input {
    padding-left: 38px !important;
    min-height: 44px;
    border-radius: 12px !important;
    border: 1px solid rgba(241, 180, 202, 0.45) !important;
}

.dream-skeleton-card {
    height: 88px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(255,255,255,.5) 25%, rgba(241,180,202,.25) 50%, rgba(255,255,255,.5) 75%);
    background-size: 200% 100%;
    animation: dreamShimmer 1.2s infinite;
}

@keyframes dreamShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.dream-product-cards {
    display: none;
}

.dream-product-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(241, 180, 202, 0.25);
    cursor: pointer;
}

.dream-product-card:last-child {
    border-bottom: none;
}

.dream-product-card-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.dream-product-card .commodity-icon,
.dream-product-cards .commodity-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    max-width: 44px;
    min-height: 44px;
    max-height: 44px;
    object-fit: cover;
    flex-shrink: 0;
    margin-top: 0;
    border-radius: 10px;
    vertical-align: middle;
}

.dream-category-card .card-title .commodity-icon {
    width: 21px;
    height: 21px;
    min-width: 21px;
    max-width: 21px;
    min-height: 21px;
    max-height: 21px;
    object-fit: cover;
    margin-top: 0;
    vertical-align: -4px;
}

.dream-product-card-info {
    min-width: 0;
}

.dream-product-card-name {
    font-weight: 600;
    color: #5a4a52;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: anywhere;
    font-size: 15px;
    letter-spacing: normal;
    transform: none;
}

.dream-product-card-meta {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    font-size: 13px;
}

.dream-product-price {
    color: #fe00dc;
    font-weight: 700;
}

.dream-product-stock {
    color: #2ec25d;
}

.dream-product-buy-btn {
    flex-shrink: 0;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f1b4ca 0%, #e9b4ed 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(241, 180, 202, 0.35);
}

.dream-product-buy-btn.disabled,
.dream-sold-out {
    background: #ececf0;
    color: #999;
    box-shadow: none;
}

.dream-buy-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    min-height: 0;
}

.dream-buy-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: 12px;
    min-height: 0;
}

.dream-buy-scroll .layout-content {
    overflow: visible;
}

.dream-buy-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    margin-bottom: 12px;
}

.dream-meta-row {
    margin: 0 !important;
    background: rgba(255,255,255,.55);
    border-radius: 10px;
    padding: 8px 10px;
}

.dream-amount-row {
    grid-column: 1 / -1;
}

.dream-detail-fold {
    margin: 12px 0;
    padding: 10px 12px;
    background: rgba(255,255,255,.55);
    border-radius: 12px;
    border: 1px dashed rgba(241, 180, 202, 0.45);
}

.dream-detail-fold summary {
    cursor: pointer;
    font-weight: 600;
    color: #7b5ea7;
}

.dream-form-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(241, 180, 202, 0.35);
}

.dream-section-label {
    font-weight: 700;
    color: #7a7878;
    margin-bottom: 8px;
}

.dream-email-hint {
    font-size: 13px;
    color: #9b8a90;
    background: rgba(241, 180, 202, 0.12);
    border-radius: 8px;
    padding: 8px 10px;
}

.dream-field-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch !important;
}

.dream-qty-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center !important;
    gap: 10px;
}

.dream-pay-sticky {
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(255, 240, 247, 0.72) 0%, rgba(255, 228, 240, 0.92) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px dashed rgba(241, 180, 202, 0.55);
    padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -10px 28px rgba(241, 180, 202, 0.18);
}

.dream-pay-head {
    padding: 0 2px 4px;
}

.pay-button img,
.dream-pay-btn img {
    width: 22px;
    height: 22px;
    min-width: 22px;
    max-width: 22px;
    min-height: 22px;
    max-height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.dream-pay-head label {
    font-size: 16px;
    font-weight: 700;
    color: #8b6a78;
}

.dream-wechat-tip {
    font-size: 12px;
    color: #b86a28;
    margin: 6px 0 0;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 236, 210, 0.55);
    border: 1px solid rgba(255, 180, 100, 0.25);
}

.dream-pay-sticky .pay_list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
}

.dream-post-pay {
    margin-top: 16px;
    text-align: center;
}

.dream-btn-primary,
.dream-query-page .queryBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #f1b4ca 0%, #9bbcff 100%);
    color: #fff !important;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(241, 180, 202, 0.35);
}

.dream-btn-block {
    display: flex;
    width: 100%;
    text-decoration: none !important;
}

.dream-btn-outline,
.dream-query-page .getCard,
.dream-query-page .dream-btn-outline {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #f1b4ca;
    background: #fff;
    color: #d87898 !important;
    font-weight: 600;
    cursor: pointer;
}

.dream-muted {
    color: #9b8a90;
    font-size: 13px;
}

.dream-secret-modal {
    padding: 16px;
    max-height: 80vh;
    overflow-y: auto;
}

.dream-query-tip {
    color: #9b8a90;
    font-size: 13px;
    margin-bottom: 12px;
}

.dream-query-input-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.dream-query-input-row .dream-search-input {
    flex: 1;
    padding-left: 12px !important;
}

.dream-query-input-row .queryBtn {
    flex-shrink: 0;
    white-space: nowrap;
}

.dream-order-card {
    background: rgba(255,255,255,.72);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid rgba(241, 180, 202, 0.25);
}

.dream-order-row {
    font-size: 14px;
    margin-bottom: 6px;
    word-break: break-word;
}

.dream-card-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.dream-amount {
    color: #e72451;
}

.dream-status-paid { color: #2ec25d; font-weight: 700; }
.dream-status-unpaid { color: #e72451; font-weight: 700; }
.dream-status-pending { color: #e67e22; font-weight: 700; }
.dream-race { color: #20b033; }

.race-click {
    min-height: 36px;
    line-height: 34px;
    padding: 0 12px;
}

@media (min-width: 769px) {
    .dream-product-table-wrap {
        display: block;
    }

    .dream-product-cards {
        display: none !important;
    }

    .category-list table tr th:nth-child(2),
    .category-list table tr td:nth-child(2),
    .category-list table tr th:nth-child(3),
    .category-list table tr td:nth-child(3),
    .category-list table tr th:nth-child(4),
    .category-list table tr td:nth-child(4) {
        position: static;
        right: auto;
        width: auto;
    }

    .category-list table tr th:nth-child(2),
    .category-list table tr td:nth-child(2) {
        width: 96px;
        text-align: center;
    }

    .category-list table tr th:nth-child(3),
    .category-list table tr td:nth-child(3) {
        width: 96px;
        text-align: center;
    }

    .category-list table tr th:nth-child(4),
    .category-list table tr td:nth-child(4) {
        width: 88px;
        text-align: center;
        white-space: nowrap;
    }

    .category-list table .item td {
        font-weight: normal;
        vertical-align: middle;
    }

    .category-list table .item td:nth-child(1) {
        font-weight: 600;
    }

    .category-list table .item td:nth-child(4) .dream-buy-link {
        min-height: 28px;
        padding: 5px 10px;
        font-size: 12px;
    }

    .dream-pay-sticky .pay_list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .dream-pay-sticky .pay-button {
        width: auto;
        min-width: 140px;
    }

    .open-commodity {
        padding: 0;
    }

    .dream-buy-layout {
        max-height: none;
    }
}

.dream-layer-open .dream-bottom-tab,
.dream-sheet-open .dream-bottom-tab {
    display: none !important;
}

html.dream-no-scroll,
body.dream-no-scroll {
    overflow: hidden !important;
    height: 100%;
    width: 100%;
}

body.dream-no-scroll {
    position: fixed;
    left: 0;
    right: 0;
}

.dream-layer-open #app,
.dream-layer-open .content-wrapper,
.dream-sheet-open #app,
.dream-sheet-open .content-wrapper {
    overflow: hidden !important;
    touch-action: none;
}

.dream-layer-open .layui-layer-shade {
    touch-action: none;
}

.dream-layer-open.dream-body,
.dream-sheet-open.dream-body {
    padding-bottom: 0;
}

/* ========== Dream 购买 Bottom Sheet / Dialog ========== */

.dream-buy-sheet {
    position: fixed;
    inset: 0;
    z-index: 99999;
    visibility: hidden;
    pointer-events: none;
}

.dream-buy-sheet.is-open {
    visibility: visible;
    pointer-events: auto;
}

.dream-buy-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(74, 58, 66, 0.48);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.dream-buy-sheet.is-open .dream-buy-sheet-backdrop {
    opacity: 1;
}

.dream-buy-sheet-panel {
    position: absolute;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #fff5f9 0%, #ffffff 42%, #fff8fc 100%);
    box-shadow: 0 -16px 48px rgba(241, 180, 202, 0.35);
    min-height: 0;
    overflow: hidden;
}

.dream-buy-sheet-panel.open-commodity {
    padding: 0;
}

.dream-buy-sheet-header {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px 12px;
    border-bottom: 1px dashed rgba(241, 180, 202, 0.45);
}

.dream-buy-sheet-title {
    margin: 0;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dream-buy-sheet-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(241, 180, 202, 0.28);
    color: #8b6a78;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.dream-buy-sheet-close:hover {
    background: rgba(241, 180, 202, 0.45);
}

.dream-buy-sheet-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dream-buy-sheet-body .dream-buy-layout {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

.dream-buy-sheet-body .dream-buy-scroll {
    padding: 12px 16px 16px;
}

.dream-sheet-share {
    margin-bottom: 12px !important;
    font-size: 13px;
}

.dream-buy-sheet-footer {
    flex-shrink: 0;
    margin-top: 0 !important;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    border-top: 1px dashed rgba(241, 180, 202, 0.55) !important;
}

.dream-sheet-total {
    font-size: 14px;
    color: #8b6a78;
    margin-bottom: 8px;
}

.dream-sheet-total .trade_amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e72451;
}

@media (max-width: 768px) {
    .dream-buy-sheet-panel {
        left: 0;
        right: 0;
        bottom: 0;
        height: min(92dvh, 92vh);
        max-height: min(92dvh, 92vh);
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        transition: transform 0.34s cubic-bezier(0.32, 0.72, 0, 1);
    }

    .dream-buy-sheet.is-open .dream-buy-sheet-panel {
        transform: translateY(0);
    }

    .dream-buy-sheet-footer .pay_list {
        max-height: 38vh;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
}

@media (min-width: 769px) {
    .dream-buy-sheet-panel {
        left: 50%;
        top: 50%;
        width: calc(100% - 48px);
        max-width: 620px;
        max-height: min(720px, 88vh);
        height: min(720px, 88vh);
        border-radius: 20px;
        transform: translate(-50%, -46%) scale(0.94);
        opacity: 0;
        transition: transform 0.28s ease, opacity 0.28s ease;
    }

    .dream-buy-sheet.is-open .dream-buy-sheet-panel {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    .dream-buy-sheet-body .dream-buy-scroll {
        padding: 16px 24px 20px;
    }

    .dream-buy-sheet-footer {
        padding: 14px 24px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

@media (max-width: 768px) {
    .dream-body {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0));
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    .content-wrapper,
    .dream-home-page,
    .dream-query-page {
        padding-bottom: 8px;
    }

    .dream-product-table-wrap {
        display: none !important;
    }

    .dream-product-cards {
        display: block !important;
    }

    .category-list table tr th:nth-child(2),
    .category-list table tr th:nth-child(3),
    .category-list table tr td:nth-child(2),
    .category-list table tr td:nth-child(3) {
        right: 0;
        position: static;
        width: auto;
    }

    .open-query {
        padding: 12px 12px 0;
        box-sizing: border-box;
    }

    .dream-buy-meta {
        grid-template-columns: 1fr;
    }

    .dream-query-input-row {
        flex-direction: column;
    }

    .dream-query-input-row .queryBtn {
        width: 100%;
    }

    .commodity_name {
        font-size: 1.15rem;
        line-height: 1.4;
        font-weight: 600;
        letter-spacing: normal;
    }

    .description,
    .description p,
    .description img {
        max-width: 100% !important;
        height: auto !important;
    }

    .description img {
        width: auto !important;
        object-fit: contain;
    }
}

@media (max-width: 480px) {
    .commodity_name {
        font-size: 1.1rem;
    }

    .dream-product-card {
        flex-direction: row;
        align-items: flex-start;
    }

    .dream-product-buy-btn {
        align-self: center;
        width: auto;
        white-space: nowrap;
    }
}