/**
 * 相思 - 支付弹窗样式
 */

/* 支付弹窗 */
#pay-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pay-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.pay-modal-content {
    position: relative;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid rgba(196,30,58,0.3);
    border-radius: 16px;
    padding: 30px 40px;
    text-align: center;
    min-width: 320px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.pay-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: rgba(248,246,241,0.6);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.pay-modal-close:hover {
    color: var(--paper);
}

.pay-modal-content h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5em;
    color: var(--paper);
    margin-bottom: 15px;
}

.pay-modal-product {
    color: rgba(248,246,241,0.8);
    font-size: 1.1em;
    margin-bottom: 5px;
}

.pay-modal-price {
    color: #e63946;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
}

.pay-qrcode-container {
    width: 220px;
    height: 220px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.pay-qrcode-container img {
    max-width: 100%;
    max-height: 100%;
}

.pay-modal-tip {
    color: rgba(248,246,241,0.6);
    font-size: 0.9em;
    margin-top: 15px;
}

.pay-modal-order {
    color: rgba(248,246,241,0.4);
    font-size: 0.75em;
    margin-top: 10px;
}

/* 商品列表 */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    padding: 20px;
}

.product-card {
    background: rgba(30,30,30,0.9);
    border: 1px solid rgba(196,30,58,0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.product-card:hover {
    border-color: rgba(196,30,58,0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(196,30,58,0.2);
}

.product-card.hongdou {
    border-color: rgba(230,57,70,0.3);
}

.product-card.vip {
    border-color: rgba(255,215,0,0.3);
}

.product-name {
    font-size: 1.1em;
    color: var(--paper);
    margin-bottom: 8px;
}

.product-amount {
    font-size: 0.9em;
    color: rgba(248,246,241,0.6);
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.4em;
    color: #e63946;
    font-weight: bold;
}

.product-price::before {
    content: '¥';
    font-size: 0.7em;
}

/* 充值入口按钮 */
.recharge-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #e63946 0%, #c41e3a 100%);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 8px;
}

.recharge-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(230,57,70,0.4);
}

/* 支付方式选择弹窗 */
#paytype-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paytype-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.paytype-modal-content {
    position: relative;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid rgba(196,30,58,0.3);
    border-radius: 16px;
    padding: 30px 40px;
    text-align: center;
    min-width: 320px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.paytype-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: rgba(248,246,241,0.6);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.paytype-modal-close:hover {
    color: #f8f6f1;
}

.paytype-modal-content h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.4em;
    color: #f8f6f1;
    margin-bottom: 25px;
}

.paytype-options {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.paytype-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px 35px;
    border: 2px solid rgba(248,246,241,0.2);
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    transition: all 0.3s;
}

.paytype-btn:hover {
    transform: translateY(-3px);
}

.paytype-btn.wechat:hover {
    border-color: #07c160;
    background: rgba(7,193,96,0.1);
}

.paytype-btn.alipay:hover {
    border-color: #1677ff;
    background: rgba(22,119,255,0.1);
}

.paytype-icon {
    font-size: 2.5em;
}

.paytype-name {
    font-size: 1em;
    color: #f8f6f1;
    font-weight: 500;
}

/* 响应式 */
@media (max-width: 768px) {
    .pay-modal-content {
        min-width: 90%;
        padding: 20px;
    }

    .pay-qrcode-container {
        width: 280px;
        height: 380px;
    }

    .pay-qrcode-container iframe {
        width: 100%;
        height: 100%;
    }

    .product-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .paytype-modal-content {
        min-width: 90%;
        padding: 25px 20px;
    }

    .paytype-options {
        flex-direction: column;
        gap: 15px;
    }

    .paytype-btn {
        padding: 20px;
        flex-direction: row;
        gap: 15px;
    }
}
