/* Career Co-Pilot 2.0 - 自定义样式 */
/* 使用商务蓝色系 + 橙色点缀 */

:root {
    --primary-blue: #1e40af;
    --primary-blue-light: #3b82f6;
    --primary-blue-dark: #1e3a8a;
    --accent-orange: #f97316;
    --accent-orange-light: #fb923c;
    --success-green: #10b981;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-600: #4b5563;
    --gray-900: #111827;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 卡片悬停效果 */
.persona-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.persona-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-blue-light);
}

/* 时间轴样式 */
.timeline-container {
    position: relative;
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.timeline-item:hover {
    background-color: var(--gray-50);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--gray-200);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-icon {
    position: absolute;
    left: 6px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 1;
}

.timeline-icon.completed {
    background-color: var(--success-green);
    color: white;
}

.timeline-icon.current {
    background-color: var(--primary-blue);
    color: white;
    animation: pulse 2s infinite;
}

.timeline-icon.pending {
    background-color: var(--gray-200);
    color: var(--gray-600);
}

.timeline-icon.skipped {
    background-color: var(--accent-orange);
    color: white;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
    }
}

/* AI 对话样式 */
.chat-container {
    max-width: 800px;
    margin: 0 auto;
}

.chat-message {
    display: flex;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

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

.chat-message.ai {
    justify-content: flex-start;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.chat-message.ai .chat-avatar {
    background-color: var(--primary-blue);
    color: white;
    margin-right: 12px;
}

.chat-message.user .chat-avatar {
    background-color: var(--gray-200);
    margin-left: 12px;
}

.chat-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    line-height: 1.5;
}

.chat-message.ai .chat-bubble {
    background-color: #f0f4ff;
    border: 1px solid #dbeafe;
    color: var(--gray-900);
}

.chat-message.user .chat-bubble {
    background-color: white;
    border: 1px solid var(--gray-200);
    color: var(--gray-900);
}

/* 报告样式 */
.report-container {
    background: white;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.report-section {
    margin-bottom: 32px;
}

.report-section h3 {
    color: var(--primary-blue);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-blue-light);
}

/* 技能雷达图容器 */
.chart-container {
    position: relative;
    height: 400px;
    margin: 20px 0;
}

/* Before/After 对比 */
.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0;
}

.comparison-box {
    border-radius: 8px;
    padding: 20px;
    border: 2px solid;
}

.comparison-box.before {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.comparison-box.after {
    border-color: var(--success-green);
    background-color: #f0fdf4;
}

.comparison-box h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.comparison-box.before h4 {
    color: #dc2626;
}

.comparison-box.after h4 {
    color: var(--success-green);
}

/* 跳过模块解释弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-600);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background-color: var(--gray-100);
}

.skip-reason-box {
    background-color: #fff7ed;
    border-left: 4px solid var(--accent-orange);
    padding: 16px;
    margin: 16px 0;
    border-radius: 4px;
}

.skip-reason-box h4 {
    color: var(--accent-orange);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* 徽章 */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background-color: #fed7aa;
    color: #9a3412;
}

.badge-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

/* 响应式 */
@media (max-width: 768px) {
    .comparison-container {
        grid-template-columns: 1fr;
    }
    
    .chat-bubble {
        max-width: 85%;
    }
    
    .modal-content {
        padding: 20px;
    }
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 标签页导航 */
.tab-nav {
    display: inline-block;
    padding: 12px 24px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    color: var(--gray-600);
    font-weight: 500;
    transition: all 0.2s;
}

.tab-nav:hover {
    color: var(--primary-blue);
}

.tab-nav.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.tab-content {
    padding: 24px 0;
}

/* 仪表盘卡片 */
.dashboard-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--gray-200);
    transition: box-shadow 0.2s;
}

.dashboard-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dashboard-stat {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 8px 0;
}

.dashboard-label {
    font-size: 14px;
    color: var(--gray-600);
}
