/* ========== 购买会员按钮 ========== */
.buy-member-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(245, 158, 11, 0.25);
    border: 1px solid rgba(245, 158, 11, 0.5);
    border-radius: var(--radius-md, 6px);
    color: #fbbf24;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 0.5rem;
}
.buy-member-btn:hover {
    background: rgba(245, 158, 11, 0.4);
    border-color: rgba(245, 158, 11, 0.7);
}
.buy-member-btn i {
    font-size: 0.9rem;
}

/* ========== 支付弹窗样式 ========== */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.payment-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}
.payment-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.payment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    background: white;
    border-radius: 16px 16px 0 0;
}
.payment-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.payment-modal-header h3 i {
    color: #f59e0b;
}
.modal-close-btn {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close-btn:hover {
    background: #e5e7eb;
    color: #374151;
}
.payment-modal-body {
    padding: 1.25rem;
}
.panel-desc {
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

/* 套餐选项 */
.plan-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.plan-option {
    cursor: pointer;
}
.plan-option input {
    display: none;
}
.plan-card {
    position: relative;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 0.5rem;
    text-align: center;
    transition: all 0.2s;
}
.plan-option input:checked + .plan-card {
    border-color: #3b82f6;
    background: #eff6ff;
}
.plan-card:hover {
    border-color: #9ca3af;
}
.plan-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #3b82f6;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}
.plan-badge.hot {
    background: #1f2937;
}
.plan-duration {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}
.plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ea580c;
}
.plan-unit {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* 支付汇总 */
.payment-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-top: 0.5rem;
}
.payment-summary span {
    color: #4b5563;
    font-size: 0.95rem;
}
.total-price {
    font-size: 1.1rem !important;
}
.total-price strong {
    font-size: 1.5rem;
    color: #ea580c;
}

/* 支付说明 */
.payment-tip {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
}
.payment-tip p {
    margin: 0;
    font-size: 0.85rem;
    color: #0369a1;
    display: flex;
    align-items: center;
    gap: 8px;
}
.payment-tip i {
    font-size: 1.2rem;
}

/* 弹窗底部按钮 */
.payment-modal-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0 0 16px 16px;
}
.btn-cancel {
    flex: 1;
    padding: 0.75rem;
    background: #e5e7eb;
    color: #374151;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-cancel:hover {
    background: #d1d5db;
}
.btn-confirm {
    flex: 2;
    padding: 0.75rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.btn-confirm:hover {
    background: #2563eb;
}
.btn-confirm:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ========== 信息提示弹窗 ========== */
.info-tip-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.info-tip-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}
.info-tip-content {
    position: relative;
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 360px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}
.info-tip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}
.info-tip-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.info-tip-header h3 i {
    color: #3b82f6;
}
.info-tip-body {
    padding: 1.5rem;
    text-align: center;
}
.info-tip-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.info-tip-icon-wrapper i {
    font-size: 28px;
    color: white;
}
.info-tip-body p {
    margin: 0;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
}
.info-tip-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
}
.info-tip-footer .btn-confirm {
    flex: none;
    min-width: 120px;
}

/* ========== 检测支付状态弹窗 ========== */
.payment-checking-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}
.payment-checking-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}
.checking-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.checking-icon i {
    font-size: 32px;
    color: white;
}
.payment-checking-content h3 {
    font-size: 1.2rem;
    color: #1f2937;
    margin: 0 0 0.5rem;
}
.payment-checking-content p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0 0 1rem;
}
.checking-progress {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}
.checking-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 2px;
}

/* ========== 支付失败弹窗 ========== */
.payment-failed-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.payment-failed-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    max-width: 340px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}
.failed-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.failed-icon i {
    font-size: 32px;
    color: white;
}
.payment-failed-content h3 {
    font-size: 1.25rem;
    color: #1f2937;
    margin: 0 0 0.5rem;
}
.payment-failed-content p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
}
.payment-failed-content .failed-hint {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 1.25rem;
}
.failed-buttons {
    display: flex;
    justify-content: center;
}
.btn-retry {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-retry:hover {
    background: #1f2937;
}

/* ========== 成功提示弹窗 ========== */
.success-toast {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.success-toast.show {
    opacity: 1;
    visibility: visible;
}
.success-toast-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    max-width: 320px;
    width: 90%;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.success-toast.show .success-toast-content {
    transform: scale(1);
}
.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    animation: successPop 0.5s ease;
}
@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.success-icon i {
    font-size: 40px;
    color: white;
}
.success-toast h3 {
    margin: 0 0 0.5rem;
    color: #1f2937;
    font-size: 1.25rem;
}
.success-toast p {
    margin: 0 0 1.5rem;
    color: #6b7280;
}
.success-toast-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.success-toast-btn:hover {
    background: #059669;
}

/* 响应式 */
@media (max-width: 480px) {
    .plan-options {
        grid-template-columns: 1fr;
    }
    .plan-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem;
    }
    .plan-duration {
        margin: 0;
    }
    .plan-price {
        font-size: 1.25rem;
    }
    .buy-member-btn span {
        display: none;
    }
    .buy-member-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        margin-right: 0.25rem;
    }
}
