/* 支付模态框 */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.payment-modal.active {
    display: flex;
}

.payment-modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.payment-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.payment-modal-close:hover {
    color: #000;
}

.payment-modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* 套餐选择 */
.plan-selection {
    display: grid;
    gap: 1rem;
}

.plan-option {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.plan-option:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
}

.plan-option.selected {
    border-color: #dc2626;
    background: #fef2f2;
}

.plan-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.plan-option-name {
    font-size: 1.25rem;
    font-weight: bold;
}

.plan-option-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #dc2626;
}

.plan-option-features {
    font-size: 0.875rem;
    color: #666;
}

/* 支付方式选择 */
.payment-method-selection {
    display: none;
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-method {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
}

.payment-method-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.payment-method-name {
    font-size: 1.125rem;
    font-weight: 600;
}

.payment-method.wechat:hover {
    border-color: #07C160;
}

.payment-method.alipay:hover {
    border-color: #1677FF;
}

/* 二维码显示 */
.payment-qrcode {
    display: none;
    text-align: center;
}

.qrcode-container {
    margin: 2rem 0;
}

.qrcode-image {
    max-width: 300px;
    width: 100%;
    height: auto;
}

.payment-info {
    margin-top: 1rem;
    padding: 1rem;
    background: #f3f4f6;
    border-radius: 8px;
}

.payment-info p {
    margin: 0.5rem 0;
    color: #666;
}

.payment-status {
    margin-top: 1rem;
    padding: 1rem;
    background: #fef3c7;
    border-radius: 8px;
    text-align: center;
}

.payment-status-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.payment-status-text {
    color: #92400e;
    font-weight: 600;
}

/* 按钮 */
.btn-payment {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-payment-primary {
    background: #dc2626;
    color: white;
}

.btn-payment-primary:hover {
    background: #b91c1c;
}

.btn-payment-secondary {
    background: #e5e7eb;
    color: #374151;
    margin-top: 0.5rem;
}

.btn-payment-secondary:hover {
    background: #d1d5db;
}

.btn-payment:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .payment-modal-content {
        padding: 1.5rem;
    }
}


