/* 付费功能样式 */

/* 升级弹窗 */
.upgrade-modal-overlay,
.payment-modal-overlay,
.feedback-modal-overlay,
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.upgrade-modal,
.payment-modal,
.feedback-modal,
.success-modal {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-subtitle {
    color: #666;
    font-size: 16px;
}

/* 功能列表 */
.features-list {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.features-list h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    color: #555;
}

.feature-item i {
    font-size: 20px;
    margin-right: 12px;
    color: #667eea;
    width: 24px;
}

/* 定价卡片 */
.pricing-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.price-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.price-card.popular {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.price-card .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6b6b;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.price-card h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.price {
    margin: 20px 0;
}

.price .currency {
    font-size: 20px;
}

.price .amount {
    font-size: 48px;
    font-weight: bold;
}

.price .period {
    font-size: 16px;
    color: #999;
}

.price-card.popular .period {
    color: rgba(255, 255, 255, 0.8);
}

.save-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin: 10px 0;
    display: inline-block;
}

.subscribe-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

.price-card:not(.popular) .subscribe-btn {
    background: #667eea;
    color: white;
}

.price-card:not(.popular) .subscribe-btn:hover {
    background: #5568d3;
}

.price-card.popular .subscribe-btn {
    background: white;
    color: #667eea;
}

.price-card.popular .subscribe-btn:hover {
    transform: scale(1.05);
}

.trial-note {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin-top: 20px;
}

/* 支付方式 */
.payment-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.payment-info p {
    margin: 8px 0;
    color: #555;
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.payment-btn {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.payment-btn:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.payment-btn i {
    font-size: 40px;
}

.payment-btn.wechat i {
    color: #09bb07;
}

.payment-btn.alipay i {
    color: #1677ff;
}

.payment-qr {
    text-align: center;
    padding: 20px;
}

.payment-qr img {
    max-width: 250px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px;
}

.payment-qr .amount {
    font-size: 32px;
    font-weight: bold;
    color: #667eea;
    margin: 15px 0;
}

.payment-note {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin-top: 20px;
}

/* 会员徽章 */
.premium-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.premium-badge:hover {
    transform: scale(1.05);
}

.premium-badge i {
    color: #ffd700;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.8));
}

/* 反馈弹窗 */
.membership-quick-access {
    margin: 20px 0;
    text-align: center;
}

.quick-membership-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.quick-membership-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.quick-membership-btn i {
    color: #ffd700;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.8));
}

.feedback-form {
    margin-top: 20px;
}

.feedback-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.rating-section {
    margin-bottom: 25px;
}

.stars {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.star {
    font-size: 32px;
    cursor: pointer;
    transition: all 0.2s;
    filter: grayscale(100%);
    opacity: 0.5;
}

.star:hover,
.star.active {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.2);
}

.rating-text {
    color: #667eea;
    font-weight: bold;
    margin-top: 10px;
}

.feedback-type select,
.contact-info input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    margin-top: 8px;
    transition: border-color 0.3s;
}

.feedback-type select:focus,
.contact-info input:focus {
    outline: none;
    border-color: #667eea;
}

.feedback-content {
    margin: 20px 0;
}

.feedback-content textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-top: 8px;
    transition: border-color 0.3s;
}

.feedback-content textarea:focus {
    outline: none;
    border-color: #667eea;
}

.feedback-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.cancel-btn,
.submit-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.cancel-btn {
    background: #f0f0f0;
    color: #666;
}

.cancel-btn:hover {
    background: #e0e0e0;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 浮动反馈按钮 */
.floating-feedback-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
    z-index: 1000;
}

.floating-feedback-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
}

/* 感谢提示 */
.thank-you-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    transition: transform 0.3s ease;
}

.thank-you-toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toast-content i {
    font-size: 24px;
    color: #4caf50;
}

/* 成功弹窗 */
.success-modal {
    text-align: center;
    padding: 60px 40px;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.success-modal h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.success-modal p {
    color: #666;
    margin: 10px 0;
    font-size: 16px;
}

.success-modal .primary-btn {
    margin-top: 30px;
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.success-modal .primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .upgrade-modal,
    .payment-modal,
    .feedback-modal {
        padding: 30px 20px;
        width: 95%;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .modal-header h2 {
        font-size: 24px;
    }
    
    .price .amount {
        font-size: 36px;
    }
    
    .floating-feedback-btn {
        bottom: 70px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}
