.layui-layer-content {
    background-color: #0B121A;
}

.RedeemNow {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s;
}

.cdk_list {
    margin: 20px auto;
    padding: 0 15px;
}

.cdk_list .cart-item {
    display: grid;
    grid-template-columns: 80px 1fr 120px;
    gap: 15px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    align-items: center;
}

.cdk_list .item-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.cdk_list .item-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cdk_list .item-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.cdk_list .item-desc {
    font-size: 13px;
    color: #999;
    margin-bottom: 3px;
}

.cdk_list .item-price {
    font-size: 16px;
    color: #ff6700;
    font-weight: bold;
}

.cdk_list .quantity-control {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #000;
}

.cdk_list .quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #eee;
    background: #f8f8f8;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.cdk_list .quantity-btn:hover {
    background: #f0f0f0;
}

.cdk_list .quantity-input {
    width: 40px;
    height: 30px;
    text-align: center;
    border: 1px solid #eee;
    margin: 0 5px;
    border-radius: 4px;
}

/* 移动端适配 */




/* 积分商城数量步进器（Layui 风格） */
.pointsmall-stepper {
    display: inline-flex !important;
    align-items: center;
    background: #161e29;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.pointsmall-stepper .pointsmall-stepper-btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent !important;
    color: #fff !important;
    font-size: 18px;
    line-height: 36px;
    cursor: pointer;
}

.pointsmall-product-only .goods-list li.item .ptm-item-meta {
    min-height: 34px;
    margin: -4px 0 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
}

.pointsmall-product-only .goods-list li.item .ptm-item-meta-row {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pointsmall-product-only .goods-list li.item .ptm-item-meta-label {
    color: rgba(255, 255, 255, 0.42);
    margin-right: 4px;
}

.pointsmall-stepper .pointsmall-stepper-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.pointsmall-stepper .pointsmall-stepper-input {
    width: 48px !important;
    min-width: 48px;
    height: 36px;
    margin: 0;
    padding: 0 4px;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent !important;
    color: #fff;
    font-size: 14px;
    text-align: center;
}

.goods .total-points,
.total-points {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 1200px;
    min-height: 118px;
    padding: 20px 24px;
    box-sizing: border-box;
    background: #212121;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.goods .total-points .total-points-left,
.total-points .total-points-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.goods .total-points .title,
.total-points .title {
    margin: 0;
    font-family: Montserrat, Montserrat;
    font-weight: 600;
    font-size: 24px;
    color: #FFFFFF;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

.goods .total-points .total-points-value,
.total-points .total-points-value {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.goods .total-points .total-points-value .coin-graphic-img,
.total-points .total-points-value .coin-graphic-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.goods .total-points .total-points-value .total-points-value-text,
.total-points .total-points-value .total-points-value-text {
    font-family: Oswald, Oswald;
    font-weight: 600;
    font-size: 36px;
    color: #FFFFFF;
    line-height: 1.2;
}

.goods .total-points .total-points-value .total-points-value-text-description,
.total-points .total-points-value .total-points-value-text-description {
    font-size: 14px;
    font-weight: 400;
    color: #CCCCCC;
    line-height: 1.4;
}

.goods .total-points .coin-graphic-image,
.total-points .coin-graphic-image {
    position: absolute;
    width: 197px;
    height: 118px;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    max-height: 90px;
    width: auto;
    object-fit: contain;
    pointer-events: none;
}


/* Products 网格沿用 list.css 默认 5 列；这里只去掉默认 li 的项目符号 */
.pointsmall-product-only #items-list li {
    list-style: none;
    margin: 0;
}

/* 卡片整体：自接管布局，避免被 list.css 的 height/justify-content 影响 */
.pointsmall-product-only .goods .goods-list li.item,
.pointsmall-product-only .goods-list li.item {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    height: auto !important;
    min-height: 380px !important;
    padding: 18px !important;
    background: #161e29 !important;
    border-radius: 10px !important;
    box-shadow: 0 0 5px 1px #121d3d;
    position: relative;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease;
}
.pointsmall-product-only .goods-list li.item:hover {
    box-shadow: 0 0 5px 1px rgb(48 221 251) !important;
}

/* 图片框：固定高度，hover 放大；小图也填满高度 */
.pointsmall-product-only .goods-list li.item .item-detail-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
}
.pointsmall-product-only .goods-list li.item .item-img {
    width: 100% !important;
    height: 150px !important;
    max-height: 150px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto 12px !important;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
}
.pointsmall-product-only .goods-list li.item .item-img img {
    width: auto !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    transition: transform 0.3s ease;
}
.pointsmall-product-only .goods-list li.item:hover .item-img img {
    transform: scale(1.1);
}

/* 标题：居中、限 2 行，覆盖 list.css 的 li p 默认样式 */
.pointsmall-product-only .goods-list li.item p.item-title,
.pointsmall-product-only .goods .goods-list.items-list li p.item-title {
    text-align: center !important;
    color: #fff !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    min-height: 40px !important;
    max-height: 40px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
}

/* 数量步进器：保持居中 */
.pointsmall-product-only .goods-list li.item .item-num {
    justify-content: center;
    margin: 6px 0 6px;
}

/* 价格：覆盖 list.css 的青色，金币图标 + 黄色价格 + 隐藏 $ 符号 */
.pointsmall-product-only .goods-list li.item .item-price.sum,
.pointsmall-product-only .goods .goods-list li.item .item-price.sum,
.pointsmall-product-only .goods-list li.item .item-price.ptm-points-price {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    color: #FFB800 !important;
    margin: 6px 0 4px !important;
}
.pointsmall-product-only .goods-list li.item .ptm-points-price .coin-graphic-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}
.pointsmall-product-only .goods-list li.item .ptm-points-price .price,
.pointsmall-product-only .goods .goods-list li.item .ptm-points-price .price {
    color: #FFB800 !important;
    font-family: 'Montserrat Bold', Montserrat, sans-serif !important;
    font-weight: 700 !important;
    font-size: 22px !important;
}
.pointsmall-product-only .goods-list li.item .ptm-points-price .price strong {
    display: none !important;
}
.pointsmall-product-only .goods-list li.item .ptm-points-price .price i {
    font-style: normal !important;
    color: inherit !important;
}

/* Exchange 按钮：复用 buy-now 渐变，贴近底部 */
.pointsmall-product-only .goods-list li.item .exchange-button {
    display: block !important;
    width: 100% !important;
    height: 45px !important;
    line-height: 45px !important;
    margin: auto 0 0 !important;
    padding: 0 !important;
    background: linear-gradient(90deg, #53FECD 0%, #2C74C9 100%) !important;
    border: none !important;
    border-radius: 5px !important;
    font-family: 'Montserrat SemiBold', Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    cursor: pointer;
    transition: filter 0.2s;
}
.pointsmall-product-only .goods-list li.item .exchange-button:hover {
    filter: brightness(1.08);
}
.pointsmall-product-only .goods-list li.item .exchange-button:disabled {
    background: rgba(148, 163, 184, 0.35) !important;
    color: rgba(255,255,255,.72) !important;
    cursor: not-allowed !important;
    filter: none !important;
}

/* 折扣徽章 */
.pointsmall-product-only .goods-list li.item .item-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 2px 8px;
    background: #FF5454;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
}

.pointsmall-product-only .goods-list li.item .ptm-card-qty {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 2px 8px;
    background: #16baaa;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    z-index: 3;
}

/* 同时存在折扣角标时，把折扣下移避免重叠 */
.pointsmall-product-only .goods-list li.item:has(.ptm-card-qty) .item-discount {
    top: 38px;
}

.pointsmall-empty-state {
    display: none;
    margin-top: 16px;
    padding: 46px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 12px;
}

.pointsmall-empty-state strong {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 18px;
}

.pointsmall-product-only {
    margin-top: 8px;
}

/* 顶部标题 + 当前积分 */
.ptm-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 16px 0 8px;
    flex-wrap: wrap;
}
.ptm-page-title {
    font-family: Oswald, Oswald, Montserrat, sans-serif;
    font-weight: 700;
    font-size: 26px;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.2;
}
.ptm-points-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 240px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(64,189,203,0.18), rgba(64,189,203,0.04));
    border: 1px solid rgba(64,189,203,0.35);
    border-radius: 8px;
    overflow: hidden;
}
.ptm-points-card .ptm-points-bg {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    height: 80%;
    opacity: 0.18;
    pointer-events: none;
}
.ptm-points-info {
    position: relative;
    z-index: 1;
}
.ptm-points-label {
    margin: 0 0 4px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ptm-points-value {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ptm-points-coin {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.ptm-points-amount {
    font-family: Oswald, Oswald, Montserrat, sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #FFB800;
    line-height: 1;
}

/* 搜索框跟下拉同行 */
.ptm-search-inline {
    flex: 1;
    min-width: 220px;
    max-width: 320px;
}
.ptm-search-inline .input-box {
    position: relative;
    height: 44px;
    display: flex;
    align-items: center;
    background: #1B1F27;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0 14px 0 38px;
    transition: border-color 0.2s, background-color 0.2s;
}
.ptm-search-inline .input-box:hover { border-color: rgba(64,189,203,0.4); }
.ptm-search-inline .input-box:focus-within {
    border-color: #40BDCB;
    background: #14171D;
}
.ptm-search-inline .input-box .search_ico {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: rgba(255,255,255,0.62);
    pointer-events: none;
}
.ptm-svg-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.ptm-search-inline .input-box input {
    flex: 1;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 14px;
    font-family: Montserrat, sans-serif;
}
.ptm-search-inline .input-box input::placeholder {
    color: rgba(255,255,255,0.45);
}
.ptm-search-inline .input-box .close_ico {
    width: 14px;
    height: 14px;
    margin-left: 8px;
    cursor: pointer;
    opacity: 0.6;
}

.pointsmall-product-only .goods-list li.item .item-num .ptm-qty-btn {
    width: 30px;
    height: 40px;
    padding: 0;
    border: 0;
    background: #ffffff14;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.pointsmall-product-only .goods-list li.item .item-num .ptm-qty-btn:hover {
    background: #ffffff29;
}
.pointsmall-product-only .goods-list li.item .item-num .ptm-qty-btn.sub {
    border-radius: 5px 0 0 5px;
    border-right: 1px solid #000;
}
.pointsmall-product-only .goods-list li.item .item-num .ptm-qty-btn.add {
    border-radius: 0 5px 5px 0;
    border-left: 1px solid #000;
}
.pointsmall-product-only .goods-list li.item .item-num .ptm-qty-btn svg {
    width: 12px;
    height: 12px;
}

.important .input-box .ptm-form-icon {
    position: absolute;
    top: 13px;
    left: 10px;
    width: 20px;
    height: 20px;
    color: rgba(255,255,255,.55);
}
.lang-ar .important .input-box .ptm-form-icon {
    left: unset;
    right: 10px;
}
.important .success-icon .ptm-success-svg {
    width: 80px;
    height: 80px;
    color: #52c41a;
}
.important .ptm-inline-points {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 5px;
    font-size: 18px;
    color: #ffcb02;
}
.important .ptm-inline-points img {
    width: 18px;
    height: 18px;
}
.important .ptm-upload-icon {
    width: 28px;
    height: 28px;
    color: rgba(255,255,255,.65);
}

.pointsmall-product-only .goods-list.items-list {
    margin-top: 0 !important;
}



#item_pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

#item_pager .item_pager_list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#item_pager .item_pager_list .item_pager_button,
#item_pager>a,
#item_pager>span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 6px;
    border: 1px solid #979797;
    font-family: PingFang SC, PingFang SC;
    font-weight: 600;
    font-size: 20px;
    color: #FFFFFF;
    text-align: center;
    font-style: normal;
    text-transform: none;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
}


#item_pager>span.active,
#item_pager .item_pager_list .item_pager_button.active {
    border-color: transparent;
    background: linear-gradient(90deg, #53FECD 0%, #2C74C9 100%);
    color: #FFFFFF;
}

#item_pager>a:hover,
#item_pager .item_pager_list .item_pager_button:hover {
    border-color: #2C74C9;
    background: linear-gradient(90deg, #53FECD 0%, #2C74C9 100%);
}

#item_pager .item_pager_list .item_pager_button.active:hover {
    background: linear-gradient(90deg, #53FECD 0%, #2C74C9 100%);
}


/* PC：分类回到 list.css 默认 .common-box-select 皮肤（改造前外观）。
   自定义双列勾选皮肤只保留在 pointsmall_mobile.css 的弹窗里，PC 不再覆盖。 */

/* ===== Products 筛选：PC 内联 vs 移动端两 chip 弹窗（仿 item） =====
   显隐由 #ptm-filter-wrap.has-servers 驱动（JS 只切类，避免内联 display 压过媒体查询）。 */
#ptm-filter-wrap .ptm-server-block,
#ptm-parse-category-pc,
#ptm-filter-wrap .mobile-filter-box { display: none; }
#ptm-filter-wrap.has-servers .ptm-server-block,
#ptm-filter-wrap.has-servers #ptm-parse-category-pc { display: block; }

/* PC 服务器/分类沿用 list.css 的 .device-server / .common-box-select 皮肤（改造前外观），此处不再自定义 */

/* 移动端：服务器下拉 chip + refine chip（≤768 显示，仿 item） */
.mobile-server-dropdown { flex: 1 1 0; position: relative; min-width: 0; }
#ptm-filter-wrap .mobile-server-dropdown-trigger,
#ptm-filter-wrap .server-refine-btn {
    display: flex; align-items: center; justify-content: space-between; gap: 6px;
    height: 40px; max-width: none; padding: 0 12px; box-sizing: border-box; overflow: hidden;
    line-height: normal; background: #1B1F27;
    border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 8px;
    cursor: pointer; transition: border-color 0.2s, background-color 0.2s;
}
#ptm-filter-wrap .mobile-server-dropdown-trigger:hover,
#ptm-filter-wrap .server-refine-btn:hover {
    border-color: rgba(64, 189, 203, 0.4); background: #14171D; box-shadow: none;
}
.mobile-server-dropdown.open .mobile-server-dropdown-trigger { border-color: #40BDCB; }
#ptm-filter-wrap .mobile-server-dropdown-text,
#ptm-filter-wrap .server-refine-btn .filter-data-trigger {
    flex: 1; min-width: 0; height: auto; min-height: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font: 600 13px Montserrat, sans-serif; line-height: 40px; text-align: left;
    color: #fff; -webkit-text-fill-color: #fff; background: none;
}
.mobile-server-dropdown-arrow {
    width: 8px; height: 8px; flex-shrink: 0;
    border-right: 2px solid rgba(255, 255, 255, 0.6);
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    transform: translateY(-2px) rotate(45deg); transition: transform 0.2s;
}
.mobile-server-dropdown.open .mobile-server-dropdown-arrow { transform: translateY(2px) rotate(-135deg); }
.mobile-server-dropdown-menu {
    position: absolute; top: calc(100% + 5px); left: 0; right: 0; z-index: 20;
    background: rgba(11, 20, 47, 0.97); border: 1px solid rgba(83, 254, 205, 0.3);
    border-radius: 8px; overflow: hidden; opacity: 0; visibility: hidden;
    transform: translateY(-10px); transition: all 0.25s ease;
}
.mobile-server-dropdown.open .mobile-server-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-server-dropdown-menu .Select_Serverpoi { margin: 0; padding: 0; list-style: none; max-height: 240px; overflow-y: auto; }
.mobile-server-dropdown-menu .Select_Serverpoi li {
    display: flex; align-items: center; min-height: 40px; padding: 8px 12px;
    font: 400 12px Oswald, sans-serif; color: #fff; cursor: pointer;
}
.mobile-server-dropdown-menu .Select_Serverpoi li.active { background: linear-gradient(4deg, #53FECD 0%, #2C74C9 100%); }
.server-refine-btn { flex: 1 1 0; min-width: 0; }


/* PC 上彻底禁用底部抽屉（即使误加 .show 也不显示） */


.filter-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 100000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.filter-modal.show { display: flex; opacity: 1; }
.filter-modal.show .filter-modal-content { animation: ptmFilterIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards; }
.filter-modal.closing { opacity: 1; }
.filter-modal.closing .filter-modal-overlay { opacity: 0; }
.filter-modal.closing .filter-modal-content { animation: ptmFilterOut 0.25s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards; }
.filter-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.15s ease-out;
}
.filter-modal.show .filter-modal-overlay { opacity: 1; }
.filter-modal-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90dvh;
    overflow: hidden;
    border-radius: 6px 6px 0 0;
    background: #19273a;
    transform: translateY(100%);
    display: flex;
    flex-direction: column;
    will-change: transform;
}
@keyframes ptmFilterIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes ptmFilterOut { from { transform: translateY(0); } to { transform: translateY(100%); } }
.filter-modal-header {
    position: relative;
    min-height: 44px;
    padding: 10px 44px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.filter-modal-header h3 {
    width: 100%;
    margin: 0;
    font-family: Oswald, sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 26px;
    color: #fff;
    text-align: center;
}
.filter-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.filter-modal-close:hover { background: rgba(83, 254, 205, 0.2); transform: rotate(90deg); }
.lang-ar .filter-modal-close { right: auto; left: 12px; }
.filter-modal-body {
    flex: 1;
    min-height: 0;
    padding: 14px 14px 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.filter-modal-body::-webkit-scrollbar { width: 6px; }
.filter-modal-body::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #53fecd, #2c74c9); border-radius: 3px; }
.filter-modal .filter-section { margin-bottom: 20px; }
.filter-modal .filter-section:last-child { margin-bottom: 0; }
.filter-modal .filter-section-title {
    margin-bottom: 14px;
    font-family: Oswald, sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #fff;
}
.filter-modal .parseCategory { padding: 0; }
.filter-modal-footer {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    padding: 12px 10px max(20px, env(safe-area-inset-bottom));
    background: #19273a;
    box-shadow: 0 -4px 12px 0 rgba(0, 0, 0, 0.2);
}
.filter-modal-footer button {
    flex: 1;
    height: 40px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: Montserrat, sans-serif;
    font-weight: bold;
    font-size: 14px;
    color: #fff;
    transition: filter 0.2s;
}
.filter-modal-footer .filter-reset-btn { border: 1px solid #fff; background: transparent; }
.filter-modal-footer .filter-apply-btn { background: linear-gradient(90deg, #53fecd 0%, #2c74c9 100%); }
.filter-modal-footer .filter-apply-btn:hover { filter: brightness(1.08); }



/* 积分商城分类筛选行（下拉选择 + 搜索） */
.ptm-category-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 24px;
    flex-wrap: wrap;
}
/* 分类 Tab 切换（替代下拉框） */
.ptm-tabs {
    display: flex; align-items: center; gap: 8px;
    margin: 0; padding: 0; list-style: none; flex-wrap: wrap;
}
.ptm-tab {
    padding: 0 18px; height: 44px; line-height: 42px; box-sizing: border-box;
    border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.12);
    background: #1B1F27; color: rgba(255, 255, 255, 0.75);
    font-family: Montserrat, Montserrat, sans-serif; font-weight: 600; font-size: 14px;
    cursor: pointer; user-select: none; white-space: nowrap;
    transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.ptm-tab:hover { border-color: rgba(64, 189, 203, 0.4); color: #fff; }
.ptm-tab.active {
    border-color: transparent; color: #fff;
    background: linear-gradient(90deg, #53FECD 0%, #2C74C9 100%);
}


/* 游戏/类型 → 服务器 级联筛选区 */
.ptm-filter-wrap { margin: 8px 0 20px; }
.ptm-filter-wrap .ptm-filter-gt { margin: 0 0 4px; }
.ptm-filter-wrap .ptm-server-block { margin-top: 8px; margin-bottom: 8px; }
.ptm-filter-wrap .ptm-server-block > p { font-family: 'Montserrat SemiBold', Montserrat, sans-serif; color: #fff; margin-bottom: 7px; }
.ptm-filter-wrap .Select_Serverpoi { flex-wrap: wrap; gap: 6px; }
.ptm-filter-wrap .ptm-parse-category { margin-top: 4px; }


/* Tab Pane 通用 */
.ptm-pane { margin-top: 4px; }

/* 抽奖次数面板（带背景图） */
.ptm-pane-lottery {
    position: relative;
    padding: 24px 20px;
    color: rgba(255, 255, 255, 0.85);
    background-color: #14171D;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}
.ptm-pane-lottery > * { position: relative; z-index: 1; }
.ptm-pane-lottery .ptm-coming-soon-icon {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.6;
}

/* $1 优惠券面板（深色卡片背景） */
.ptm-pane-coupon {
    padding: 24px 20px;
    background: linear-gradient(180deg, #1B1F27 0%, #14171D 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

/* 信息提示条 */
.ptm-coupon-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    background: rgba(64, 189, 203, 0.08);
    border: 1px solid rgba(64, 189, 203, 0.3);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.6;
}
.ptm-coupon-alert .ptm-alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    background: #40BDCB;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    font-weight: bold;
    font-size: 13px;
    font-family: serif;
}
.ptm-coupon-alert strong { color: #53FECD; }

/* 卡片：跟商品卡一致的深色风格 */
.ptm-coupon-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.ptm-product-card {
    position: relative;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    background: linear-gradient(180deg, #1B1F27 0%, #14171D 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.ptm-product-card:hover {
    border-color: rgba(64, 189, 203, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.ptm-product-card .ptm-card-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 10px;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    border-radius: 3px;
    background: linear-gradient(90deg, #53FECD 0%, #2C74C9 100%);
}
.ptm-product-card .ptm-card-icon {
    width: 100%;
    height: 80px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(83, 254, 205, 0.12), rgba(44, 116, 201, 0.12));
    border: 1px solid rgba(83, 254, 205, 0.25);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Oswald, Oswald;
    font-weight: 700;
    font-size: 36px;
    color: #53FECD;
}
.ptm-product-card h3 {
    margin: 0 0 8px;
    font-family: Montserrat, Montserrat;
    font-weight: 700;
    font-size: 16px;
    color: #FFFFFF;
}
.ptm-product-card .ptm-card-desc {
    flex: 1;
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
}
.ptm-product-card .ptm-card-scope {
    display: inline-flex;
    max-width: 100%;
    margin-bottom: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(83, 254, 205, 0.1);
    border: 1px solid rgba(83, 254, 205, 0.25);
    color: #53FECD;
    font-size: 12px;
    line-height: 1.35;
}
.ptm-product-card .ptm-card-scope span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ptm-product-card .ptm-card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.ptm-product-card .ptm-card-price {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: Montserrat, Montserrat;
    font-weight: 700;
    font-size: 18px;
    color: #FFB800;
}
.ptm-product-card .ptm-card-price .ptm-coin-ico {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.ptm-product-card .ptm-card-meta-badge {
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #FFB800;
    background: rgba(255, 184, 0, 0.12);
    border: 1px solid rgba(255, 184, 0, 0.3);
    border-radius: 3px;
}
.ptm-product-card .ptm-card-btn {
    display: block;
    width: 100%;
    padding: 10px 0;
    background: linear-gradient(90deg, #53FECD 0%, #2C74C9 100%);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-family: Montserrat, Montserrat;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.ptm-product-card .ptm-card-btn:hover { opacity: 0.9; }
.ptm-product-card .ptm-card-btn:disabled {
    background: #444;
    cursor: not-allowed;
    opacity: 0.6;
}
.ptm-product-card .ptm-card-balance {
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}
.ptm-product-card .ptm-card-balance strong { color: #FFB800; }
.ptm-product-card .ptm-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    gap: 8px;
}
.ptm-product-card .ptm-card-footer .ptm-card-balance {
    margin-top: 0;
    text-align: left;
    flex: 1;
    min-width: 0;
}
.ptm-card-rules-link {
    font-size: 12px;
    color: #53FECD;
    text-decoration: underline;
    cursor: pointer;
    white-space: nowrap;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.ptm-card-rules-link:hover { opacity: 1; }
.ptm-coupon-rules-list {
    margin: 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    line-height: 1.7;
}
.ptm-coupon-rules-list li {
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.ptm-coupon-rules-list li:last-child { border-bottom: none; }
.ptm-coupon-rules-list .ptm-rk { color: rgba(255, 255, 255, 0.55); margin-right: 6px; }
.ptm-coupon-rules-list .ptm-rv { color: #FFB800; font-weight: 600; }

.ptm-coupon-loading-card {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
    color: rgba(255, 255, 255, 0.5);
}



/* —— Exchange 兑换弹窗（layer 皮肤） —— */
.layui-layer.ptm-redeem-layer {
    background: #1B1F27;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    color: #fff;
    overflow: hidden;
}
.layui-layer.ptm-redeem-layer .layui-layer-title {
    background: #14171D;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-weight: 600;
}
.layui-layer.ptm-redeem-layer .layui-layer-setwin a.layui-layer-close1,
.layui-layer.ptm-redeem-layer .layui-layer-setwin a {
    background-position-y: -39px;
    filter: invert(1) brightness(2);
    opacity: 0.85;
}
.layui-layer.ptm-redeem-layer .layui-layer-content {
    background: #1B1F27;
    color: #fff;
}
.layui-layer.ptm-redeem-layer .important {
    display: block !important;
    padding: 16px 20px;
}
.layui-layer.ptm-redeem-layer h2 {
    color: #fff;
    font-size: 16px;
    margin: 12px 0 10px;
}
.layui-layer.ptm-redeem-layer .input-box input,
.layui-layer.ptm-redeem-layer .input-box textarea {
    background: #14171D;
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    border-radius: 6px;
}
.layui-layer.ptm-redeem-layer .input-box input::placeholder {
    color: rgba(255,255,255,0.4);
}
.layui-layer.ptm-redeem-layer .RedeemNow {
    background: linear-gradient(90deg, #53FECD 0%, #2C74C9 100%);
    border-radius: 6px;
}

/* 移动端适配 */
.layui-layer.ptm-redeem-layer-mobile {
    border-radius: 0 !important;
}
.layui-layer.ptm-redeem-layer-mobile .layui-layer-title {
    height: 42px;
    line-height: 42px;
    padding: 0 50px 0 16px;
    font-size: 15px;
}
.layui-layer.ptm-redeem-layer-mobile .layui-layer-setwin {
    top: 8px;
    right: 8px;
}
.layui-layer.ptm-redeem-layer-mobile .layui-layer-content {
    -webkit-overflow-scrolling: touch;
}
.layui-layer.ptm-redeem-layer-mobile .important .cart-left {
    display: block !important;
}
.layui-layer.ptm-redeem-layer-mobile .important .grid_items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.layui-layer.ptm-redeem-layer-mobile .important .information,
.layui-layer.ptm-redeem-layer-mobile .important .common-info {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}
.layui-layer.ptm-redeem-layer-mobile .cdk_list {
    width: 100%;
    margin: 10px 0 0;
    padding: 0;
    box-sizing: border-box;
}
.layui-layer.ptm-redeem-layer-mobile .cdk_list .cart-item {
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr) !important;
    grid-template-areas:
        "image details"
        "summary summary" !important;
    gap: 10px 12px !important;
    width: 100%;
    margin: 0;
    padding: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 8px;
    box-shadow: none;
    box-sizing: border-box;
    align-items: center;
}
.layui-layer.ptm-redeem-layer-mobile .cdk_list .item-image {
    grid-area: image;
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
}
.layui-layer.ptm-redeem-layer-mobile .cdk_list .item-info:first-of-type {
    grid-area: details;
    min-width: 0;
}
.layui-layer.ptm-redeem-layer-mobile .cdk_list .item-info:last-of-type {
    grid-area: summary;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}
.layui-layer.ptm-redeem-layer-mobile .cdk_list .item-name,
.layui-layer.ptm-redeem-layer-mobile .cdk_list .item-desc {
    margin: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255,255,255,0.72);
    line-height: 1.35;
}
.layui-layer.ptm-redeem-layer-mobile .cdk_list .item-name {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}
.layui-layer.ptm-redeem-layer-mobile .cdk_list .item-info:first-of-type .item-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}
.layui-layer.ptm-redeem-layer-mobile .cdk_list .item-desc {
    font-size: 12px;
}
.layui-layer.ptm-redeem-layer-mobile .cdk_list .item-info:last-of-type .item-name {
    color: #FFB800;
    white-space: nowrap;
}


/* —— 抽奖兑换 Modal 内容 —— */
#ptm-lottery-modal,
#ptm-coupon-modal {
    background: #1B1F27;
    padding: 18px 20px;
    color: #fff;
    box-sizing: border-box;
}
.ptm-lottery-modal-body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.ptm-lr-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.12);
    font-size: 14px;
    gap: 12px;
}
.ptm-lr-row:last-of-type { border-bottom: none; }
.ptm-lr-row > span { color: rgba(255,255,255,0.65); flex-shrink: 0; }
.ptm-lr-row > strong {
    color: #fff;
    text-align: right;
    word-break: break-word;
    min-width: 0;
}
.ptm-lr-row .pointsmall-stepper {
    display: inline-flex;
    align-items: center;
}
.ptm-lr-row .pointsmall-stepper-input {
    width: 56px;
    height: 32px;
    text-align: center;
    background: #14171D;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
}
.ptm-lr-row .pointsmall-stepper-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    background: #14171D !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
}
.ptm-lr-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.ptm-lr-actions button {
    flex: 1;
    height: 42px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
#ptm-lottery-modal-cancel,
#ptm-coupon-modal-cancel {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.18) !important;
    color: #fff;
}
#ptm-lottery-modal-confirm,
#ptm-coupon-modal-confirm {
    background: linear-gradient(90deg, #53FECD 0%, #2C74C9 100%);
    color: #fff;
    flex: 2;
}

/* —— layer 弹窗皮肤：桌面端 —— */
.layui-layer.ptm-lottery-layer {
    background: #1B1F27;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
    overflow: hidden;
}
.layui-layer.ptm-lottery-layer .layui-layer-title {
    background: #14171D;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-weight: 600;
    height: 46px;
    line-height: 46px;
    padding: 0 50px 0 18px;
}
.layui-layer.ptm-lottery-layer .layui-layer-setwin { top: 12px; right: 12px; }
.layui-layer.ptm-lottery-layer .layui-layer-setwin a { filter: invert(1) brightness(2); }
.layui-layer.ptm-lottery-layer .layui-layer-content {
    background: #1B1F27;
    color: #fff;
    -webkit-overflow-scrolling: touch;
}
#ptm-lottery-modal,
#ptm-coupon-modal { display: none; }
.layui-layer.ptm-lottery-layer #ptm-lottery-modal,
.layui-layer.ptm-lottery-layer #ptm-coupon-modal { display: block !important; }

/* —— 移动端：底部抽屉式弹窗 —— */
.layui-layer.ptm-lottery-layer-mobile {
    border-radius: 16px 16px 0 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
}
.layui-layer.ptm-lottery-layer-mobile .layui-layer-title {
    border-radius: 16px 16px 0 0;
}
.layui-layer.ptm-lottery-layer-mobile .layui-layer-content {
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.layui-layer.ptm-lottery-layer-mobile #ptm-lottery-modal,
.layui-layer.ptm-lottery-layer-mobile #ptm-coupon-modal {
    padding: 14px 16px 18px;
}
@media (max-width: 1400px) {
    .pointsmall-product-only #items-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 769px) {
    #ptmFilterModal.filter-modal, #ptmFilterModal.filter-modal.show { display: none !important; }
}

@media (max-width: 1024px) {
    .ptm-coupon-grid { grid-template-columns: repeat(2, 1fr); }
    .pointsmall-product-only #items-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
