/* vip-styles.css - VIP会员系统样式 */

/* ==================== 升级提示弹窗 ==================== */
.vip-prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.vip-prompt-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 360px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.vip-prompt-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.vip-prompt-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.vip-prompt-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.vip-prompt-title {
    color: #ffd700;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.vip-prompt-message {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* 价格选项 */
.vip-prompt-prices {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.vip-price-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.vip-price-item:hover {
    border-color: rgba(255, 215, 0, 0.5);
    background: rgba(255, 215, 0, 0.1);
}

.vip-price-item.featured {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.15);
}

.vip-price-item .badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #1a1a2e;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.vip-price-item .price {
    display: block;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
}

.vip-price-item .period {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* 升级按钮 */
.vip-prompt-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    border: none;
    border-radius: 12px;
    color: #1a1a2e;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.vip-prompt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.vip-prompt-login {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.vip-prompt-login a {
    color: #ffd700;
    text-decoration: none;
}

/* ==================== 锁定徽章 ==================== */
.vip-lock-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

/* 主题卡片锁定状态 */
.topic-card.locked {
    opacity: 0.7;
    position: relative;
}

.topic-card.locked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: inherit;
    z-index: 1;
}

.topic-card.locked .lock-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    z-index: 2;
}

.topic-card.locked:hover {
    transform: none;
    box-shadow: none;
}

.topic-card.locked h3,
.topic-card.locked p {
    position: relative;
    z-index: 2;
}

/* ==================== VIP 徽章 ==================== */
.vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #1a1a2e;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    margin-left: 0.5rem;
}

/* ==================== 免费试用提示条 ==================== */
.free-trial-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.free-trial-bar .progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.free-trial-bar .progress-bar {
    width: 100px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

.free-trial-bar .progress-fill {
    height: 100%;
    background: #ffd700;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.free-trial-bar .upgrade-btn {
    background: #ffd700;
    color: #1a1a2e;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

/* ==================== 移动端深色主题适配 ==================== */
@media (max-width: 768px) {
    .vip-prompt-modal {
        width: 95%;
        padding: 1.5rem;
    }
    
    .vip-prompt-prices {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .vip-price-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.875rem;
    }
    
    .vip-price-item .price {
        font-size: 1.1rem;
    }
    
    .vip-price-item .period {
        display: inline;
        margin: 0;
    }
    
    .vip-price-item .badge {
        position: static;
        transform: none;
        margin-left: 0.5rem;
    }
    
    .free-trial-bar {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}
