
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/*.item-buttons .btn-success:hover {*/
/*    background-color: #fff;*/
/*    border: 1px solid #E6E7EB;*/
/*}*/

.item-buttons .btn-primary:hover {
    background-color: #3786FA;
    color: #FFFFFF;
}

.item-buttons .btn-goon:hover {
    background-color: #3786FA;
    color: #FFFFFF;
}

.item-buttons .btn-secondary:hover {
    background-color: #F1F2F4;
    color: #1F2937;
}

.item-buttons .btn-success:hover {
    background-color: #fff;
    border: 1px solid #E6E7EB;
    color: #1F2937;
}

.item-buttons .btn-buy:hover {
    background: #FFFFFF;
    border: 2px solid #FC4A3F;
    border-radius: 8px;
    color: #FC4A3F;
}
.container-header {
    width: 910px;
    margin: 20px auto !important;
    display: flex;
    margin-bottom: 21px;
    align-items: center;
    justify-content: space-between;
}

.bg-title {
    padding: 6px 12px;
    background: #FF6D01;
    border-radius: 4px;
    font-family: PingFangSC-Medium;
    font-weight: 500;
    font-size: 14px;
    color: #FFFFFF;
}

.left-counts {
    display: flex;
    font-family: PingFangSC-Medium;
    font-weight: 500;
    font-size: 12px;
    color: #9399A2;
    align-items: center;
}

.left-counts span {
    color: #FC4A3F;
    margin: 0 4px;
}

.left-counts .buy-btn {
    width: 104px;
    height: 28px;
    border: 1px solid #FC4A3F;
    background: #fff;
    border-radius: 14px;
    margin-left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: PingFangSC-Medium;
    font-weight: 500;
    font-size: 12px;
    color: #FC4A3F;
    cursor: pointer;
}

.mokaoContainer {
    margin-top: 20px;
    width: 910px;
    padding-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
}

.item {
    height: 200px;
    background: #FFFFFF;
    border: 1px solid #E6E7EB;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
}

.item-header {
    display: flex;
    flex-direction: column;
    position: relative;
    border-bottom: #F3F4F6 solid 1px;
    padding-bottom: 16px;
}

.item-title {
    font-family: PingFangSC-Semibold;
    font-weight: 600;
    font-size: 18px;
    color: #111827;
    margin-bottom: 4px;
}

.item-date {
    font-family: PingFangSC-Regular;
    font-weight: 400;
    font-size: 14px;
    color: #617589;
}

.item-status {
    position: absolute;
    top: 0;
    right: 0;
    width: 68px;
    height: 24px;
    border-radius: 4px;
    font-family: PingFangSC-Medium;
    font-weight: 500;
    font-size: 12px;
    color: #166534;
    display: flex;
    justify-content: center;
    align-items: center;
}

.item-status::before {
    content: '';
    width: 16px;
    height: 16px;
    margin-right: 4px;
    background-size: contain;
    background-repeat: no-repeat;
}

.status-active {
    background-color: #DCEAFE;
    color: #1E40AF;
}

.status-active::before {
    background-image: url(https://zhan-www.oss-cn-hangzhou.aliyuncs.com/web/zhan/mokao/icon_jxz.png);
}

.status-pending {
    background-color: #F3F4F6;
    color: #232D3A;
}

.status-pending::before {
    background-image: url(https://zhan-www.oss-cn-hangzhou.aliyuncs.com/web/zhan/mokao/icon_wks.png);
}

.status-completed {
    background-color: #DCFCE8;
    color: #166534;
}

.status-completed::before {
    background-image: url(https://zhan-www.oss-cn-hangzhou.aliyuncs.com/web/zhan/mokao/icon_ywc.png);
}

.status-nobuy {
    background: #FFECE8;
    color: #A83A21;
}

.status-nobuy::before {
    background-image: url(https://zhan-www.oss-cn-hangzhou.aliyuncs.com/web/zhan/mokao/icon_lock.png);
}

.item-footer {
    margin-top: 19px;
}

.progress-bar-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: PingFangSC-Medium;
    font-weight: 500;
    font-size: 10px;
    color: #617589;
    margin-bottom: 9px;
}

.progress-bar {
    height: 8px;
    background-color: #F1F2F4;
    border-radius: 4.5px;
    margin-bottom: 16px;
    overflow: hidden;
}

.progress-bar-empty {
    height: 31px;
    font-family: PingFangSC-Medium;
    font-weight: 500;
    font-size: 12px;
    color: #617589;
    display: flex;
    justify-content: center;
    align-items: end;
    margin-bottom: 16px;
}

.lock .progress-bar-empty {
    margin-top: 4px;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background-color: #147FED;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.item-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    flex: 1;
    height: 40px;
    border: none;
    border-radius: 8px;
    font-family: PingFangSC-Semibold;
    font-weight: 600;
    font-size: 14px;
    color: #1F2937;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-success {
    background-color: #fff;
    border: 1px solid #E6E7EB;
}

.btn-primary {
    background-color: #3786FA;
    color: #FFFFFF;
}

.btn-goon {
    background-color: #3786FA;
    color: #FFFFFF;
}

.btn-secondary {
    background-color: #F1F2F4;
}

.btn-buy {
    background: #FFFFFF;
    border: 2px solid #FC4A3F;
    border-radius: 8px;
    color: #FC4A3F;
}

.mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 100;
    transition: all 0.3s ease;
    display: none;
}

.confirm-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    position: relative;
    width: 384px;
    height: 142px;
    background: #FFFFFF;
    box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 20px 24px;
}

.confirm-content .confirm-title {
    font-family: PingFangSC-Medium;
    font-weight: 500;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.88);
    margin-bottom: 12px;
    position: relative;
}

.mask .close {
    background: url(https://zhan-www.oss-cn-hangzhou.aliyuncs.com/web/zhan/mokao/common_icon_close.png) no-repeat;
    background-size: contain;
    width: 16px;
    height: 16px;
    position: absolute;
    top: 12px;
    right: 12px;
    cursor: pointer;
    mix-blend-mode: darken;
}

.confirm-content .confirm-text {
    font-family: PingFangSC-Regular;
    font-weight: 400;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.88);
}

.confirm-content .confirm-footer {
    margin-top: 12px;
    text-align: right;
}

.confirm-content .confirm-footer .btn {
    width: 65px;
    height: 32px;
    background: #FFFFFF;
    border: 1px solid #00000026;
    border-radius: 6px;
    margin-left: 6px;
    font-family: PingFangSC-Regular;
    font-weight: 400;
    font-size: 14px;
    color: #000000e0;
    display: inline-block;
}

.confirm-content .confirm-footer .btn.btn-confirm {
    background: #3786FA;
    color: #FFFFFF;
    border: none;
}

.buy-dialog {
    width: 800px;
    height: 460px;
    background: #FFF6EF;
    background-image: url(https://zhan-www.oss-cn-hangzhou.aliyuncs.com/web/zhan/mokao/buy-dialog-bg.png);
    background-repeat: no-repeat;
    background-size: 100%;
    border-radius: 8px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 30px;
}

.buy-title {
    font-family: PingFangSC-Semibold;
    font-weight: 600;
    font-size: 20px;
    color: #333333;
    margin-bottom: 10px;
}

.buy-title-info {
    font-family: PingFangSC-Semibold;
    font-weight: 600;
    font-size: 14px;
    color: #555555;
    margin-bottom: 26px;
}

.goods-list {
    display: flex;
    margin: 0;
    padding: 0;
    gap: 15px;
}

.goods-list li {
    display: block;
    width: 105px;
    height: 127px;
    border: 1px solid #FEE7D0;
    border-radius: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    background-color: #fff;
    padding-top: 15px;
    position: relative;
    text-align: center;
    cursor: pointer;
}

.sales-tips {
    width: 60px;
    height: 20px;
    background-image: linear-gradient(90deg, #F1803D 0%, #F25A1F 100%);
    border-radius: 8px 4px 8px 1px;
    position: absolute;
    left: -1px;
    top: -10px;
    font-family: PingFangSC-Semibold;
    font-weight: 600;
    font-size: 12px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.goods-name {
    font-family: PingFangSC-Regular;
    font-weight: 400;
    font-size: 14px;
    color: #63646A;
    margin-bottom: 5px;
}

.goods-price {
    font-family: PingFangSC-Semibold;
    font-weight: 600;
    font-size: 24px;
    color: #2A2B2E;
    width: 100%;
    text-align: center;
}

.goods-price>span {
    font-size: 14px;
}

.goods-price-old {
    font-family: PingFangSC-Semibold;
    font-weight: 600;
    font-size: 12px;
    color: #949599;
    text-decoration: line-through;
    text-align: center;
}

.goods-detail {
    height: 29px;
    background: #FFF5E5;
    border-radius: 0 0 8px 8px;
    width: 100%;
    font-family: PingFangSC-Semibold;
    font-weight: 600;
    font-size: 12px;
    color: #C07F41;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    bottom: 0;
}

.goods-list li.active {
    background-image: linear-gradient(180deg, #FEE5C3 0%, #FFF8ED 100%);
}

.goods-list li.active .goods-price {
    color: #FF4844;
}

.goods-list li.active .goods-detail {
    background-image: linear-gradient(90deg, #FF4443 0%, #FF7448 100%);
    color: #fff;
}

.buy-dialog-text {
    font-family: PingFangSC-Medium;
    font-weight: 500;
    font-size: 12px;
    color: #555555;
    margin: 20px 0 8px 0;
}

.pay-box {
    width: 740px;
    height: 152px;
    background: #FFFFFF;
    border-radius: 8px;
    display: flex;
    padding: 16px;
}

.pay-channel {
    width: 120px;
    margin-right: 21px;
}

.pay-channel>div {
    height: 56px;
    font-family: PingFangSC-Regular;
    font-weight: 400;
    font-size: 14px;
    color: #333333;
    display: flex;
    align-items: center;
    padding-left: 26px;
    position: relative;
    cursor: pointer;
}

.pay-channel>div::before {
    content: '';
    width: 16px;
    height: 16px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
}

.pay-channel .wechat::before {
    background-image: url(https://zhan-www.oss-cn-hangzhou.aliyuncs.com/web/zhan/mokao/wechat.png);
}

.pay-channel .alipay::before {
    background-image: url(https://zhan-www.oss-cn-hangzhou.aliyuncs.com/web/zhan/mokao/alipay.png);
}

.pay-channel .active {
    background: #F4F5F7;
    border-radius: 8px;
}

.pay-channel .active:after {
    content: '';
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-left: 20px solid #F4F5F7;
    border-bottom: 12px solid transparent;
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
}

.qr-code-box {
    display: flex;
    gap: 16px;
    flex-grow: 1;
}

.qr-code {
    width: 120px;
    height: 120px;
    background: #D8D8D8;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.pay-iframe {
    position: absolute;

    height: 120px;
    left: 0;
    right: 0;
    display: none;
    border:none;
}
.qr-code img {
    max-width: 100%;
    max-height: 100%;
}

.qr-code img {
    max-width: 100%;
    max-height: 100%;
}

.pay-info {
    padding-top: 13px;
    flex-grow: 1;
}

.pay-info .pay-price {
    font-family: PingFangSC-Regular;
    font-weight: 400;
    font-size: 14px;
    color: #555555;
}

.pay-info .pay-price>span {
    font-family: PingFangSC-Medium;
    font-weight: 500;
    font-size: 14px;
    color: #FC4A3F;
}

.pay-info .pay-price>span>span {
    font-size: 24px;
}

.pay-info p {
    font-family: PingFangSC-Regular;
    font-weight: 400;
    font-size: 12px;
    color: #949599;
    margin: 8px 0;
}

.pay-info p:last-child {
    margin-bottom: 0;
}

.pay-info p a {
    color: #555555;
}
.mask.all-opacity {
    background: rgba(0, 0, 0, 0);
}
.confirm-content .confirm-text input {
    width: 100%;
    height: 38px;
    background: #FFFFFF;
    border: 1px solid #E6E7E8;
    border-radius: 4px;
    padding: 0 16px;
    font-size: 14px;
}
.confirm-content .confirm-footer .btn.btn-confirm.orange {
    background: linear-gradient(90deg, #FF4443 0%, #FF7448 100%);
    color: #FFFFFF;
    border: none;
}
.purchase-record-btn,
.exchange-code-btn {
    font-family: PingFangSC-Regular;
    font-weight: 400;
    font-size: 12px;
    color: #939599;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pay-options {
    display: flex;
    justify-content: flex-end;
}

.divider {
    margin: 0 2px;
    font-family: PingFangSC-Regular;
    font-weight: 400;
    font-size: 12px;
    color: #939599;
    width: 12px;
    text-align: center;
}

/* 购买记录对话框样式 */
.purchase-record-dialog {
    width: 650px;
    height: 520px;
    background: #FFFFFF;
    box-shadow: 0 6px 30px 0 #00000014;
    border-radius: 8px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
}

.purchase-record-tabs {
    display: flex;
    height: 36px;
    background: #F4F5F7;
    border-radius: 8px;
    margin: 12px 0;
    justify-content: space-around;
    align-items: center;
    padding: 0 2px;
}

.purchase-record-tab {
    cursor: pointer;
    font-family: PingFangSC-Regular;
    font-weight: 400;
    font-size: 14px;
    color: #63646A;
    flex: 1;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.purchase-record-tab.active {
    background: #FFFFFF;
    color: #333333;
    border-radius: 6px;
    font-weight: 500;
}

.purchase-record-content {
    height: 380px;
    overflow-y: auto;
}

.record-list {
    display: none;
}

.record-list.active {
    display: block;
}

.record-item {
    display: flex;
    padding: 10px 20px;
    border-bottom: 1px solid #F1F2F4;
}

.record-item div {
    flex: 1;
    font-family: PingFangSC-Regular;
    font-weight: 400;
    font-size: 14px;
    color: #374151;
    display: flex;
    align-items: center;
}

.record-package {
    flex: 2;
}

.record-time {
    flex: 1.5;
}

.record-item.header {
    height: 30px;
    background: #F9FAFB;
    border-radius: 8px;
    font-family: PingFangSC-Medium;
    font-weight: 500;
    font-size: 12px;
    color: #4B5563;
    align-items: center;
}

.record-item.header div {
    color: #111827;
}