@charset "utf-8";


/* Package Dialog */
.package-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.package-dialog-overlay.hidden {
    display: none;
}

.package-dialog-container {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 920px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.package-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.package-dialog-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3037;
    margin: 0;
}

.package-dialog-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    cursor: pointer;
    transition: all 0.2s ease;
}

.package-dialog-close:hover {
    background: #f5f5f5;
    color: #333;
}

.package-dialog-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.package-info-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.package-info-label {
    width: 80px;
    flex-shrink: 0;
    font-size: 16px;
    color: #2d3037;
    line-height: 40px;
    padding-right: 12px;
}

.package-info-value {
    flex: 1;
}

.points-number {
    height: 40px;
    line-height: 40px;
    font-weight: bold;
    font-size: 18px;
    color: #2d3037;
}

.package-plan-section {
    display: block;
}

.plan-list-scroll {
    min-height: 172px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.plan-cards {
    display: flex;
    gap: 12px;
}

.plan-card {
    flex-shrink: 0;
    min-width: 180px;
    background-color: #fff;
    border-radius: 12px;
    padding: 24px 20px 34px;
    border: 2px solid #eee;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.plan-card.active {
    border-color: #ff171c;
}

.plan-card:hover {
    border-color: #ff171c;
}

.plan-name {
    font-size: 16px;
    color: #333;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}

.plan-price {
    text-align: center;
    margin-bottom: 16px;
}

.plan-current-price {
    font-size: 24px;
    color: #ff171c;
    font-weight: bold;
    margin-bottom: 12px;
}

.plan-original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.plan-desc-bar {
    text-align: center;
    font-size: 12px;
    color: #fff;
    line-height: 30px;
    background-color: #ff171c;
    margin: 0 -16px -34px;
    padding: 0 8px;
}

.plan-benefits {
    padding-top: 20px;
}

.benefit-item {
    font-size: 16px;
    color: #666;
    line-height: 24px;
    white-space: pre-wrap;
}

.benefit-item p {
    margin: 4px 0;
}

.package-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
}

.pkg-btn {
    min-width: 100px;
    height: 40px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #dcdfe6;
    background: #fff;
    color: #606266;
}

.pkg-btn:hover {
    background: #f5f7fa;
}

.pkg-btn-confirm {
    background: linear-gradient(135deg, #E53E3E 0%, #C53030 100%);
    color: #fff;
    border-color: #E53E3E;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.pkg-btn-confirm:hover {
    background: linear-gradient(135deg, #C53030 0%, #9B2C2C 100%);
    box-shadow: 0 6px 16px rgba(229, 62, 62, 0.4);
}

.pkg-btn-confirm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.pkg-btn-cancel:hover {
    border-color: #c0c4cc;
    color: #333;
}

/* Payment Order Dialog */
.order-pay-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.order-pay-dialog-overlay.hidden {
    display: none;
}

.order-pay-dialog {
    width: 100%;
    max-width: 920px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.order-pay-header {
    position: relative;
    text-align: center;
    padding: 20px 24px;
}

.order-pay-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    color: #2f3542;
    font-weight: 600;
}

.order-pay-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-pay-close:hover {
    color: #666;
}

.order-pay-body {
    padding: 0 52px 26px;
}

.order-pay-table {
    width: 100%;
    border-collapse: collapse;
}

.order-pay-table thead th {
    padding: 14px 12px;
    background: #eff3f9;
    color: #8e95a5;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
}

.order-pay-table tbody td {
    padding: 14px 12px;
    color: #4d5565;
    font-size: 14px;
    border-bottom: 1px solid #eaedf3;
}

.order-pay-row {
    display: flex;
    margin-top: 18px;
    align-items: center;
}

.order-pay-label {
    width: 100px;
    flex-shrink: 0;
    color: #5d6677;
    font-size: 16px;
    line-height: 24px;
    white-space: nowrap;
}

.order-pay-value {
    color: #4d5565;
    font-size: 22px;
    line-height: 32px;
}

.order-pay-channel-list {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.order-pay-channel {
    width: 200px;
    height: 72px;
    border: 1px solid #d8dde8;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    color: #4d5565;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
}

.order-pay-channel.active {
    border-color: #4a98ff;
}

.order-pay-channel.active:after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 22px;
    height: 22px;
    background: #4a98ff;
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

.order-pay-channel.active:before {
    content: "";
    position: absolute;
    right: 5px;
    bottom: 6px;
    width: 8px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    z-index: 1;
}

.order-pay-channel.alipay {
    justify-content: center;
    padding-left: 0;
    gap: 0;
    font-size: 0;
}

.order-pay-channel.wechat {
    justify-content: center;
    padding-left: 0;
    gap: 0;
    font-size: 0;
}

.order-pay-brand-icon {
    width: auto;
    height: 40px;
    max-width: 140px;
    object-fit: contain;
    flex: 0 0 auto;
}

.order-pay-amount {
    color: #ff5757;
    font-size: 34px;
    line-height: 1;
}

.order-pay-submit-wrap {
    margin-top: 20px;
}

.order-pay-password-row {
    align-items: flex-start;
}

.order-pay-password-wrap {
    width: 100%;
    position: relative;
}

.order-pay-password-input {
    width: 100%;
    height: 40px;
    border: 1px solid #4a98ff;
    height: 52px;
    border-radius: 4px;
    padding: 0 42px 0 14px;
    font-size: 14px;
    color: #2f3542;
    outline: none;
    background: #fff;
    box-sizing: border-box;
}

.order-pay-password-input::placeholder {
    color: #b6bfcc;
}

.order-pay-password-input:focus {
    box-shadow: 0 0 0 2px rgba(74, 152, 255, 0.12);
}

.order-pay-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    width: 24px;
    height: 24px;
    color: #b8c0cc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.order-pay-password-toggle:hover {
    color: #8a95a5;
}

.order-pay-password-toggle svg {
    width: 16px;
    height: 16px;
}

.order-pay-submit {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 4px;
    background: #4598ef;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.order-pay-submit:hover {
    background: #3388e0;
}

.order-pay-qrcode-layer {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.order-pay-qrcode-layer.hidden {
    display: none;
}

.order-pay-qrcode-dialog {
    width: 520px;
    max-width: calc(100% - 40px);
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.order-pay-qrcode-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 8px;
}

.order-pay-qrcode-title {
    color: #2f3542;
    font-size: 32px;
    line-height: 1.2;
}

.order-pay-qrcode-close {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #9aa3b2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.order-pay-qrcode-close:hover {
    color: #667085;
}

.order-pay-qrcode-body {
    padding: 14px 22px 34px;
    text-align: center;
}

.order-pay-qrcode-image-wrap {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border: 1px solid #d8dde8;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.order-pay-qrcode-image-wrap img {
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.order-pay-qrcode-tip {
    margin: 18px 0 0;
    color: #2f3542;
    font-size: 19px;
    line-height: 1.4;
}

.order-pay-redirect-tip {
    padding: 14px 0 18px;
}

.order-pay-redirect-icon {
    width: 64px;
    height: 64px;
    margin: 2px auto 16px;
    border-radius: 50%;
    border: 5px solid #fa6666;
    color: #fa6666;
    font-size: 42px;
    line-height: 52px;
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
}

.order-pay-redirect-text {
    margin: 0;
    color: #2f3542;
    font-size: 20px;
    line-height: 1.45;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .package-dialog-overlay {
        padding: 0 12px;
    }

    .package-dialog-container {
        max-width: 90%;
        max-height: 85vh;
        border-radius: 20px 20px 0 0;
        animation: slideUpMobile 0.3s ease-out;
    }

    @keyframes slideUpMobile {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

    .package-dialog-header {
        padding: 16px 20px;
    }

    .package-dialog-title {
        font-size: 16px;
    }

    .package-dialog-body {
        padding: 16px 20px;
    }

    .package-info-label {
        width: 70px;
        font-size: 14px;
    }

    .points-number {
        font-size: 16px;
        height: 36px;
        line-height: 36px;
    }

    .plan-list-scroll {
        min-height: 140px;
    }

    .plan-card {
        min-width: 150px;
        padding: 20px 16px 30px;
    }

    .plan-name {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .plan-current-price {
        font-size: 18px;
    }

    .plan-original-price {
        font-size: 12px;
    }

    .plan-benefits {
        padding-top: 16px;
    }

    .benefit-item {
        font-size: 14px;
    }

    .package-dialog-footer {
        padding: 12px 20px;
    }

    .pkg-btn {
        height: 44px;
        font-size: 14px;
        min-width: 90px;
    }

    .order-pay-dialog-overlay {
        padding: 12px;
    }

    .order-pay-dialog {
        max-width: 100%;
        border-radius: 12px;
    }

    .order-pay-header {
        padding: 14px 16px;
    }

    .order-pay-title {
        font-size: 17px;
    }

    .order-pay-close {
        top: 14px;
        right: 12px;
    }

    .order-pay-body {
        padding: 0 14px 16px;
    }

    .order-pay-table thead th {
        font-size: 13px;
        padding: 10px 8px;
    }

    .order-pay-table tbody td {
        font-size: 14px;
        padding: 10px 8px;
        word-break: break-all;
    }

    .order-pay-row {
        margin-top: 14px;
        align-items: flex-start;
    }

    .order-pay-label {
        width: 76px;
        font-size: 14px;
        line-height: 28px;
    }

    .order-pay-value {
        font-size: 16px;
        line-height: 28px;
    }

    .order-pay-channel-list {
        width: 100%;
        gap: 10px;
    }

    .order-pay-channel {
        width: calc(50% - 5px);
        min-width: 130px;
        height: 52px;
        font-size: 16px;
    }

    .order-pay-channel.alipay,
    .order-pay-channel.wechat {
        padding-left: 0;
        gap: 0;
    }

    .order-pay-brand-icon {
        width: auto;
        height: 28px;
        max-width: 104px;
    }

    .order-pay-amount {
        font-size: 24px;
    }

    .order-pay-submit-wrap {
        margin-top: 16px;
    }

    .order-pay-password-input {
        height: 44px;
        padding-right: 40px;
    }

    .order-pay-submit {
        height: 46px;
        font-size: 16px;
    }

    .order-pay-qrcode-dialog {
        max-width: calc(100% - 24px);
    }

    .order-pay-qrcode-header {
        padding: 14px 14px 8px;
    }

    .order-pay-qrcode-title {
        font-size: 20px;
    }

    .order-pay-qrcode-body {
        padding: 10px 14px 22px;
    }

    .order-pay-qrcode-image-wrap {
        width: 168px;
        height: 168px;
    }

    .order-pay-qrcode-image-wrap img {
        width: 152px;
        height: 152px;
    }

    .order-pay-qrcode-tip {
        margin-top: 14px;
        font-size: 15px;
    }

    .order-pay-redirect-icon {
        width: 52px;
        height: 52px;
        border-width: 4px;
        font-size: 32px;
        line-height: 42px;
        margin-bottom: 12px;
    }

    .order-pay-redirect-text {
        font-size: 16px;
    }
}