/**
 * 适应性引导系统样式
 * 提供引导提示、任务继续提示和保存通知的样式
 */

/* 通用样式 */
.welcome-guide,
.continue-task-prompt,
.personalized-recommendations,
.save-notification {
    position: fixed;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', 'Noto Sans SC', Arial, sans-serif;
}

.welcome-guide.active,
.continue-task-prompt.active,
.personalized-recommendations.active,
.save-notification.active {
    opacity: 1;
    transform: translateY(0);
}

.welcome-guide.closing,
.continue-task-prompt.closing,
.personalized-recommendations.closing,
.save-notification.closing {
    opacity: 0;
    transform: translateY(20px);
}

/* 欢迎引导样式 */
.welcome-guide {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.welcome-guide .guide-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(250, 250, 250, 0.95));
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.welcome-guide .guide-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #5ac8fa, #0066cc);
    border-radius: 20px 20px 0 0;
}

.welcome-guide h3 {
    color: #1d1d1f;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.welcome-guide p {
    color: #86868b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.guide-step {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
}

.step-number {
    background: linear-gradient(135deg, #0066cc, #5ac8fa);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.25);
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: #1d1d1f;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-content p {
    color: #86868b;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.guide-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* 继续任务提示样式 */
.continue-task-prompt {
    bottom: 2rem;
    right: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

.continue-task-prompt .prompt-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(250, 250, 250, 0.95));
    border-radius: 16px;
    padding: 1.5rem;
    width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.continue-task-prompt .prompt-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff9500, #ff3b30);
    border-radius: 16px 16px 0 0;
}

.continue-task-prompt h3 {
    color: #1d1d1f;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
}

.continue-task-prompt p {
    color: #86868b;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.continue-task-prompt .progress-percentage {
    color: #0066cc;
    font-weight: 600;
}

.progress-bar {
    height: 6px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    margin-bottom: 1.2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5ac8fa, #0066cc);
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.prompt-actions {
    display: flex;
    justify-content: space-between;
}

/* 个性化推荐样式 */
.personalized-recommendations {
    top: 6rem;
    right: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

.personalized-recommendations .recommendations-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(250, 250, 250, 0.95));
    border-radius: 16px;
    padding: 1.5rem;
    width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.personalized-recommendations .recommendations-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #34c759, #5ac8fa);
    border-radius: 16px 16px 0 0;
}

.personalized-recommendations h3 {
    color: #1d1d1f;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
}

.personalized-recommendations p {
    color: #86868b;
    margin-bottom: 1.2rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.recommendation-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    margin-bottom: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.recommendation-card:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.card-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #0066cc, #5ac8fa);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
}

.card-content h4 {
    color: #1d1d1f;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.card-content p {
    color: #86868b;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* 保存通知样式 */
.save-notification {
    bottom: 2rem;
    left: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

.save-notification .notification-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(250, 250, 250, 0.95));
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.save-notification i {
    color: #34c759;
    font-size: 1.2rem;
}

.save-notification span {
    color: #1d1d1f;
    font-weight: 500;
    font-size: 0.95rem;
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
    .welcome-guide .guide-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .welcome-guide h3 {
        font-size: 1.5rem;
    }
    
    .guide-steps {
        gap: 1rem;
    }
    
    .guide-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .continue-task-prompt,
    .personalized-recommendations {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
    
    .continue-task-prompt .prompt-content,
    .personalized-recommendations .recommendations-content {
        width: auto;
    }
    
    .prompt-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .save-notification {
        left: 1rem;
        bottom: 1rem;
    }
}
