/**
 * 会员中心样式 - 参照图3
 * iOS 风格 · 紫色渐变 · 毛玻璃
 */

/* ========== 顶部 VIP 横幅 ========== */
.member-banner {
    margin: 12px 16px 16px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #5a2bd1 0%, #7c4dff 50%, #3f51b5 100%);
    box-shadow: 0 8px 32px rgba(90, 43, 209, 0.35);
    padding: 24px;
    color: #fff;
}

.member-banner .banner-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(255,255,255,0.18) 0%, transparent 50%),
        radial-gradient(circle at 15% 85%, rgba(255,255,255,0.1) 0%, transparent 40%);
    pointer-events: none;
}

.member-banner .banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.banner-icon {
    width: 46px; height: 46px;
    border-radius: 14px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.25);
}

.banner-title {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.banner-desc {
    margin: 0;
    font-size: 12px;
    opacity: 0.85;
}

.banner-price-row {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.banner-price {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
}

.banner-price span {
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.banner-unit {
    font-size: 13px;
    opacity: 0.8;
    margin-left: 4px;
}

/* ========== 已是 VIP 提示 ========== */
.member-vip-alert {
    margin: 0 16px 16px;
    background: linear-gradient(135deg, #d4af37 0%, #fce38a 100%);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #5a3e00;
    box-shadow: 0 4px 16px rgba(212,175,55,0.3);
}

.vip-alert-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.vip-alert-text h4 {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 700;
}

.vip-alert-text p {
    margin: 0;
    font-size: 12px;
    opacity: 0.85;
}

#vip-expire-date {
    font-weight: 600;
}

/* ========== 套餐选择 ========== */
.member-plans {
    margin: 16px;
}

.member-plans-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
    padding-left: 2px;
}

.plans-row {
    display: flex;
    gap: 10px;
}

.plan-card {
    flex: 1;
    background: #fff;
    border-radius: 14px;
    border: 2px solid transparent;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.plan-card:active {
    transform: scale(0.97);
}

.plan-card.plan-selected {
    border-color: #7c4dff;
    background: linear-gradient(180deg, rgba(124,77,255,0.08) 0%, #fff 100%);
    box-shadow: 0 4px 16px rgba(124,77,255,0.2);
}

.plan-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b35, #ff4757);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 0 0 10px 10px;
    letter-spacing: 0.02em;
}

.plan-badge.hidden { display: none; }

.plan-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-top: 6px;
}

.plan-cycle {
    font-size: 11px;
    color: var(--text-secondary);
    margin: 2px 0 8px;
}

.plan-price {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.plan-price span {
    font-size: 22px;
    font-weight: 800;
    color: #7c4dff;
    margin-left: 2px;
}

.plan-selected .plan-price span {
    color: #5a2bd1;
}

.plan-tip {
    font-size: 11px;
    color: #ff6b35;
    margin-top: 4px;
    font-weight: 500;
}

.plan-selected .plan-tip {
    color: #7c4dff;
}

/* ========== 特权说明 ========== */
.member-privileges {
    margin: 20px 16px 0;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.priv-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.priv-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.priv-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.priv-icon {
    width: 32px; height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(124,77,255,0.12), rgba(63,81,181,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.priv-text {
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}

/* ========== 底部操作 ========== */
.member-actions {
    margin: 28px 16px 16px;
}

.member-buy-btn {
    background: linear-gradient(135deg, #7c4dff 0%, #5a2bd1 100%);
    font-size: 16px;
    font-weight: 700;
    padding: 16px;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 24px rgba(124,77,255,0.35);
}

.member-buy-btn .buy-price {
    margin-left: 6px;
    font-weight: 800;
}

.member-buy-btn:active {
    opacity: 0.92;
    transform: scale(0.98);
}

.member-detail-link {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.member-detail-link:active {
    color: #7c4dff;
}

/* ========== 响应式：PC 端 ========== */
@media (min-width: 1025px) {
    .member-banner {
        margin-left: 16px;
        margin-right: 16px;
    }
}
