/* 会员充值界面样式文件 */

/* 会员充值界面从右侧滑出样式 */
.membership-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.membership-overlay.show {
    opacity: 1;
}

.membership-panel {
    position: relative;
    top: 0;
    right: -450px; /* 初始位置在屏幕右侧外 */
    width: 450px; /* 与用户信息面板相同的宽度 */
    height: 100vh;
    background: var(--card-bg);
    border-left: 1px solid var(--border-color);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 10002;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.membership-overlay.show .membership-panel {
    right: 0;
}

.membership-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
}

.membership-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
}

.membership-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

/* 会员套餐选项样式 */
.membership-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.membership-option {
    display: flex;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.membership-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.membership-option.selected {
    border-color: var(--accent-color);
    background: rgba(255, 230, 109, 0.1);
}

.membership-option input[type="radio"] {
    margin-right: 12px;
}

.membership-option-info {
    flex: 1;
}

.membership-option-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.membership-option-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.membership-option-duration {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.membership-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.membership-btn-primary {
    padding: 12px 24px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.membership-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.membership-btn-secondary {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.membership-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 响应式设计 - 会员充值界面 */
@media (max-width: 768px) {
    .membership-panel {
        width: 100%;
        right: -100%;
    }
    
    .membership-header {
        padding: 16px 20px;
    }
    
    .membership-content {
        padding: 20px;
    }
} 