/* 会员开通页面样式 */
.membership-main {
    padding: 0 16px 80px;
    background-color: #f4f5f7;
    min-height: calc(100vh - 60px);
}

/* 会员介绍横幅 */
.membership-banner {
    background: linear-gradient(135deg, #f472b6, #c084fc);
    border-radius: 20px;
    padding: 24px;
    margin: 16px 0;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.banner-subtitle {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

.banner-decoration {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    opacity: 0.3;
}

/* 会员套餐 */
.membership-plans {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.plan-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
}

.plan-card.current-plan {
    border: 2px solid #e5e7eb;
}

.plan-card.premium {
    border: 2px solid #f97373;
    background: linear-gradient(135deg, #fef7f7 0%, #ffffff 100%);
}

.plan-card.premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f472b6, #c084fc);
}

/* 套餐头部 */
.plan-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.plan-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #6b7280;
}

.plan-icon.vip {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #ffffff;
}

.plan-icon.super {
    background: linear-gradient(135deg, #f97373, #f87171);
    color: #ffffff;
}

.plan-info {
    flex: 1;
}

.plan-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.plan-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.plan-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.plan-badge.current {
    background-color: #e5e7eb;
    color: #6b7280;
}

.plan-badge.popular {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #ffffff;
}

.plan-badge.premium {
    background: linear-gradient(135deg, #f97373, #f87171);
    color: #ffffff;
}

/* 套餐功能 */
.plan-features {
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item i {
    font-size: 16px;
    color: #10b981;
}

.feature-item i.disabled {
    color: #d1d5db;
}

.feature-item span {
    color: #374151;
}

/* 套餐价格 */
.plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 16px;
}

.price-amount {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.price-period {
    font-size: 14px;
    color: #6b7280;
}

/* 套餐按钮 */
.plan-button {
    width: 100%;
    padding: 12px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.plan-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.plan-button.premium {
    background: linear-gradient(135deg, #f97373, #f87171);
}

.plan-button.premium:hover {
    box-shadow: 0 8px 25px rgba(249, 115, 115, 0.4);
}

/* 会员权益 */
.membership-benefits {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.benefits-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 20px 0;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.benefit-item {
    text-align: center;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f472b6, #c084fc);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 24px;
    color: #ffffff;
}

.benefit-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
}

.benefit-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

/* 支付弹窗 */
.payment-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-overlay.show {
    opacity: 1;
}

.payment-modal {
    background-color: #ffffff;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 500px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.payment-overlay.show .payment-modal {
    transform: translateY(0);
}

.payment-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.payment-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.payment-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #6b7280;
    transition: all 0.2s ease;
}

.payment-close:hover {
    background-color: #e5e7eb;
}

.payment-body {
    padding: 20px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    background-color: #f9fafb;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-method:last-child {
    margin-bottom: 0;
}

.payment-method:hover {
    background-color: #f3f4f6;
    transform: translateX(4px);
}

.method-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.method-icon.wechat {
    background-color: #09bb07;
    color: #ffffff;
}

.method-icon.alipay {
    background-color: #1677ff;
    color: #ffffff;
}

.method-info {
    flex: 1;
}

.method-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.method-desc {
    font-size: 13px;
    color: #6b7280;
}

.method-arrow {
    font-size: 20px;
    color: #9ca3af;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .membership-main {
        padding: 0 12px 80px;
    }
    
    .membership-banner {
        padding: 20px;
        margin: 12px 0;
    }
    
    .banner-title {
        font-size: 18px;
    }
    
    .plan-card {
        padding: 20px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
