/**
 * 商城页面样式
 * 会员等级展示和支付界面
 */

.shop-page {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.shop-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

.shop-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.shop-subtitle {
    font-size: 16px;
    color: #666;
}

/* 会员等级网格 */
.membership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* 会员卡片 */
.membership-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.membership-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #ff6b6b;
}

.membership-card.featured {
    border-color: #ff6b6b;
    transform: scale(1.05);
}

.membership-card.featured::before {
    content: '推荐';
    position: absolute;
    top: 15px;
    right: -30px;
    background: #ff6b6b;
    color: #fff;
    padding: 5px 40px;
    font-size: 12px;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 会员图标 */
.membership-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 15px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 会员等级名称 */
.membership-level {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* 会员权益 */
.membership-benefits {
    margin-bottom: 25px;
}

.benefit-section {
    margin-bottom: 20px;
}

.benefit-section-title {
    font-size: 14px;
    font-weight: bold;
    color: #666;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.benefit-list {
    list-style: none;
    padding: 0;
}

.benefit-item {
    padding: 8px 0;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
}

.benefit-item::before {
    content: '✓';
    color: #4caf50;
    font-weight: bold;
    margin-right: 8px;
    font-size: 16px;
}

.benefit-item.highlight {
    color: #ff6b6b;
    font-weight: bold;
}

.benefit-item.highlight::before {
    color: #ff6b6b;
}

/* 会员条件 */
.membership-conditions {
    margin-bottom: 25px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.condition-title {
    font-size: 13px;
    font-weight: bold;
    color: #666;
    margin-bottom: 10px;
}

.condition-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.condition-item {
    font-size: 13px;
    color: #666;
    padding: 5px 0;
    padding-left: 15px;
    position: relative;
}

.condition-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #999;
}

/* 购买按钮 */
.membership-action {
    text-align: center;
}

.btn-purchase {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-purchase:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.02);
}

.btn-purchase:active {
    transform: scale(0.98);
}

.btn-purchase.disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* 支付模态框 */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.payment-modal.active {
    display: flex;
}

.payment-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.payment-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #333;
}

.payment-modal-body {
    padding: 20px;
}

.order-info {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.order-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}

.order-info strong {
    color: #333;
    margin-right: 8px;
}

.price-highlight {
    color: #ff6b6b;
    font-size: 20px;
    font-weight: bold;
}

.payment-methods {
    margin-bottom: 20px;
}

.payment-methods h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: #667eea;
    background: #f5f7ff;
}

.payment-option input[type="radio"] {
    margin-right: 10px;
}

.payment-icon {
    font-size: 20px;
    margin-right: 10px;
}

.qrcode-container {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode-loading {
    color: #999;
    font-size: 14px;
}

.qrcode-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.payment-tips {
    text-align: center;
    color: #666;
    font-size: 13px;
}

.payment-tips p {
    margin: 5px 0;
}

.payment-status {
    color: #4caf50;
    font-weight: bold;
}

.payment-status.error {
    color: #ff6b6b;
}

.payment-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.btn-cancel {
    padding: 10px 30px;
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background: #e0e0e0;
}

/* 响应式设计已完全删除，仅保留桌面端样式 */

/* 支付成功提示模态框 */
.payment-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.success-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.success-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 12px 0;
}

.success-message {
    font-size: 16px;
    color: #666;
    margin: 0 0 30px 0;
}

.success-message strong {
    color: #667eea;
    font-weight: bold;
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-view-membership {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-membership:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-close-success {
    padding: 12px 24px;
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-success:hover {
    background: #e0e0e0;
}

