/* 哔咔漫画 - 个人中心页面样式 */

/* 用户资料卡片 */
.bc-user-profile {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    border: 1px solid rgba(244, 114, 182, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.bc-user-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f472b6, #3b82f6, #8b5cf6);
    opacity: 0.8;
}

/* 用户头像 */
.bc-user-avatar {
    box-shadow: 0 8px 25px rgba(244, 114, 182, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.bc-user-avatar::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: linear-gradient(45deg, #f472b6, #3b82f6, #8b5cf6, #f472b6);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bc-user-profile:hover .bc-user-avatar::after {
    opacity: 1;
}

.bc-user-profile:hover .bc-user-avatar {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(244, 114, 182, 0.4);
}

/* Tab导航 */
.bc-tab-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.bc-tab-btn.active {
    box-shadow: 0 8px 25px rgba(244, 114, 182, 0.3);
}

.bc-tab-btn:not(.active):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 114, 182, 0.2);
}

/* 收藏项目 */
.bc-favorite-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    border: 1px solid rgba(244, 114, 182, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.bc-favorite-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.bc-favorite-item:hover::before {
    left: 100%;
}

.bc-favorite-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(244, 114, 182, 0.15);
}

/* 阅读进度条 */
.bc-progress-bar {
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bc-progress-fill {
    position: relative;
    transition: width 0.8s ease-in-out;
}

.bc-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: bc-progress-shine 2s infinite;
}

@keyframes bc-progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 历史记录项 */
.bc-history-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    border: 1px solid rgba(244, 114, 182, 0.2);
    transition: all 0.4s ease;
    position: relative;
}

.bc-history-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(244, 114, 182, 0.15);
}

/* 历史时间显示 */
.bc-history-time {
    font-family: 'Orbitron', monospace;
    min-width: 4rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.bc-history-item:hover .bc-history-time {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 作者卡片 */
.bc-author-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    border: 1px solid rgba(244, 114, 182, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.bc-author-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f472b6, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.bc-author-card:hover::before {
    transform: scaleX(1);
}

.bc-author-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(244, 114, 182, 0.15);
}

/* 作者头像 */
.bc-author-avatar {
    box-shadow: 0 6px 20px rgba(244, 114, 182, 0.2);
    transition: all 0.3s ease;
}

.bc-author-card:hover .bc-author-avatar {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(244, 114, 182, 0.3);
}

/* 最新更新面板 */
.bc-latest-update {
    position: relative;
    background: rgba(244, 114, 182, 0.05);
    border: 1px solid rgba(244, 114, 182, 0.2);
    transition: all 0.3s ease;
}

.bc-latest-update:hover {
    background: rgba(244, 114, 182, 0.1);
    border-color: rgba(244, 114, 182, 0.3);
}

/* 设置面板 */
.bc-settings-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    border: 1px solid rgba(244, 114, 182, 0.2);
}

/* 表单组 */
.bc-form-group {
    position: relative;
    transition: all 0.3s ease;
}

.bc-form-group input,
.bc-form-group textarea {
    transition: all 0.3s ease;
    position: relative;
}

.bc-form-group input:focus,
.bc-form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 114, 182, 0.2);
}

/* 开关样式 */
.bc-switch input {
    opacity: 0;
    position: absolute;
}

.bc-switch label {
    transition: all 0.3s ease;
    position: relative;
}

.bc-switch label span {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bc-switch input:checked + label {
    background: linear-gradient(90deg, #f472b6, #3b82f6);
}

.bc-switch input:checked + label span {
    transform: translateX(1.5rem);
}

.bc-switch:hover label {
    box-shadow: 0 4px 15px rgba(244, 114, 182, 0.3);
}

/* 设置项 */
.bc-setting-item {
    padding: 1.5rem;
    border-radius: 1rem;
    background: rgba(249, 250, 251, 0.8);
    border: 1px solid rgba(229, 231, 235, 0.3);
    transition: all 0.3s ease;
}

.bc-setting-item:hover {
    background: rgba(244, 114, 182, 0.05);
    border-color: rgba(244, 114, 182, 0.2);
    transform: translateY(-2px);
}

/* 按钮样式 */
.bc-continue-btn,
.bc-next-btn,
.bc-reread-btn,
.bc-edit-profile {
    position: relative;
    overflow: hidden;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.bc-continue-btn:hover,
.bc-next-btn:hover,
.bc-reread-btn:hover,
.bc-edit-profile:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Tab面板 */
.bc-tab-pane {
    opacity: 0;
    display: none;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.bc-tab-pane.active {
    opacity: 1;
    display: block;
    transform: translateY(0);
    animation: bc-tab-fade-in 0.4s ease-out;
}

@keyframes bc-tab-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .bc-user-profile .flex {
        flex-direction: column;
        text-align: center;
    }
    
    .bc-user-avatar {
        margin: 0 auto 2rem auto;
    }
    
    .bc-user-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .bc-favorites-grid {
        grid-template-columns: 1fr;
    }
    
    .bc-history-item .flex {
        flex-direction: column;
        text-align: center;
    }
    
    .bc-history-time {
        margin: 0 auto 1rem auto;
    }
    
    .bc-subscriptions-grid {
        grid-template-columns: 1fr;
    }
    
    .bc-settings-form .space-y-6 > * {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .bc-hero-title {
        font-size: 2.5rem;
    }
    
    .bc-user-profile {
        padding: 1.5rem;
    }
    
    .bc-user-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .bc-tabs-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .bc-tab-btn {
        width: 100%;
    }
    
    .bc-favorite-item,
    .bc-history-item,
    .bc-author-card {
        padding: 1rem;
    }
    
    .bc-settings-panel {
        padding: 1.5rem;
    }
    
    .bc-form-actions {
        flex-direction: column;
    }
    
    .bc-form-actions button {
        width: 100%;
    }
}