/* 成长档案页面专用样式 */

/* 页面标题区 */
.portfolio-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.portfolio-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.portfolio-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 学习历程时间轴 */
.learning-timeline {
    padding: 80px 0;
    background: #f8f9fa;
}

.learning-timeline h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: #333;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #4a90e2, #667eea);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
}

.timeline-item::before {
    content: attr(data-date);
    position: absolute;
    top: 20px;
    width: 100px;
    text-align: center;
    font-weight: 600;
    color: #4a90e2;
    font-size: 0.9rem;
}

.timeline-item:nth-child(odd)::before {
    right: -50px;
}

.timeline-item:nth-child(even)::before {
    left: -50px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 25px;
    width: 16px;
    height: 16px;
    background: #4a90e2;
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timeline-item:nth-child(odd)::after {
    right: -8px;
}

.timeline-item:nth-child(even)::after {
    left: -8px;
}

.timeline-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.timeline-content h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.achievement-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    background: linear-gradient(45deg, #4a90e2, #667eea);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 能力雷达图 */
.ability-radar {
    padding: 80px 0;
    background: white;
}

.ability-radar h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: #333;
}

.radar-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.radar-chart {
    position: relative;
}

.radar-svg {
    width: 100%;
    height: auto;
    max-width: 400px;
}

.ability-polygon {
    animation: radarPulse 3s ease-in-out infinite;
}

@keyframes radarPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.radar-labels {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.radar-labels .label {
    position: absolute;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.9);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ability-stats h3 {
    margin-bottom: 30px;
    color: #333;
    font-size: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.stat-name {
    min-width: 80px;
    font-weight: 500;
    color: #555;
}

.stat-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a90e2, #667eea);
    border-radius: 4px;
    transition: width 1s ease;
}

.stat-value {
    min-width: 40px;
    text-align: right;
    font-weight: 600;
    color: #4a90e2;
}

/* 作品集展示 */
.portfolio-gallery {
    padding: 80px 0;
    background: #f8f9fa;
}

.portfolio-gallery h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #333;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #4a90e2;
    background: white;
    color: #4a90e2;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #4a90e2;
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.item-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.item-content {
    padding: 20px;
}

.item-content h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1.2rem;
}

.item-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.item-date {
    color: #4a90e2;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 成长目标 */
.growth-goals {
    padding: 80px 0;
    background: white;
}

.growth-goals h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: #333;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.goal-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.goal-card:hover {
    transform: translateY(-5px);
}

.goal-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.goal-card h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.4rem;
}

.goal-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    text-align: left;
}

.goal-card li {
    padding: 8px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.goal-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4a90e2;
    font-weight: bold;
}

.goal-progress {
    text-align: left;
}

.goal-progress span {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a90e2, #667eea);
    border-radius: 4px;
    transition: width 1s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .portfolio-hero h1 {
        font-size: 2rem;
    }
    
    .timeline-container::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 60px !important;
        padding-right: 0 !important;
    }
    
    .timeline-item::before {
        left: -40px !important;
        right: auto !important;
        top: 15px;
        font-size: 0.8rem;
    }
    
    .timeline-item::after {
        left: 12px !important;
        right: auto !important;
    }
    
    .radar-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .goals-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-tabs {
        gap: 5px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .portfolio-hero {
        padding: 60px 0;
    }
    
    .portfolio-hero h1 {
        font-size: 1.8rem;
    }
    
    .learning-timeline,
    .ability-radar,
    .portfolio-gallery,
    .growth-goals {
        padding: 60px 0;
    }
    
    .timeline-content,
    .goal-card {
        padding: 20px;
    }
}