/* 会员中心页面专用样式 */

.member-center {
    padding: 100px 0 50px;
    background: #f8f9fa;
    min-height: 100vh;
}

/* 会员状态卡片 */
.member-status {
    margin-bottom: 3rem;
}

.status-card {
    background: linear-gradient(135deg, #5edf2b 0%, #0b6c0b 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.status-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.avatar {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.user-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.member-type {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0.3rem;
}

.expire-date {
    font-size: 0.9rem;
    opacity: 0.8;
}

.status-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 会员特权 */
.member-benefits {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.member-benefits h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #333;
    font-weight: 600;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: #f8f9fa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.benefit-item i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.benefit-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.benefit-item p {
    color: #666;
    line-height: 1.6;
}

/* 会员套餐 */
.membership-plans {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.membership-plans h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #333;
    font-weight: 600;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.plan-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.plan-card.featured {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: scale(1.05);
}

.plan-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #ff6b6b;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #dee2e6;
}

.plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.plan-price .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
}

.plan-price .period {
    font-size: 1rem;
    color: #666;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: #555;
}

.plan-features i {
    color: #28a745;
    font-size: 0.9rem;
}

.plan-btn {
    width: 100%;
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.plan-btn.primary {
    background: #667eea;
}

.plan-btn:hover {
    background: #5a6fd8;
}

.plan-btn.primary:hover {
    background: #5a6fd8;
}

/* 阅读记录 */
.reading-history {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.reading-history h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #333;
    font-weight: 600;
    text-align: center;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.history-item:hover {
    background: #e9ecef;
}

.history-item img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.history-info {
    flex: 1;
}

.history-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.history-info p {
    color: #666;
    margin-bottom: 0.3rem;
}

.read-time {
    font-size: 0.9rem;
    color: #999;
}

.continue-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.continue-btn:hover {
    background: #218838;
}

/* 会员状态指示器 */
.member-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.member-indicator.vip {
    background: #ffc107;
    color: #856404;
}

.member-indicator.normal {
    background: #6c757d;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .status-card {
        flex-direction: column;
        text-align: center;
    }
    
    .status-info {
        flex-direction: column;
        text-align: center;
    }
    
    .status-actions {
        justify-content: center;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .plan-card.featured {
        transform: none;
    }
    
    .plan-card.featured:hover {
        transform: translateY(-5px);
    }
    
    .history-item {
        flex-direction: column;
        text-align: center;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* 会员等级徽章 */
.member-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 1rem;
}

.member-badge.bronze {
    background: #cd7f32;
    color: white;
}

.member-badge.silver {
    background: #c0c0c0;
    color: #333;
}

.member-badge.gold {
    background: #ffd700;
    color: #333;
}

.member-badge.platinum {
    background: #e5e4e2;
    color: #333;
}