/* 页面头部样式 */
.page-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 任务时间线 - div定位布局 */
.missions-timeline {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
}

.timeline-container {
    position: relative;
    height: 300px;
    margin: 3rem 0;
    overflow: hidden;
}

/* 主时间线轴 */
.timeline-axis {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    transform: translateY(-50%);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(79, 172, 254, 0.3);
}

.timeline-axis::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 15px solid #4facfe;
    transform: translateY(-50%);
}

.timeline-axis::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 15px solid #00f2fe;
    transform: translateY(-50%);
}

/* 任务节点 - 绝对定位 */
.mission-point {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.mission-point:hover {
    transform: translateY(-50%) scale(1.1);
}

.mission-marker {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    border: 4px solid white;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 auto;
}

.mission-marker::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -1;
    opacity: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(1.4);
    }
}

.mission-number {
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.mission-info {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.mission-point:hover .mission-info {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

.mission-info h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.mission-date {
    color: #666;
    font-size: 0.8rem;
}

/* 选中状态 */
.mission-point.active .mission-marker {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    transform: scale(1.1);
}

.mission-point.active .mission-marker::before {
    animation: pulse-active 1.5s infinite;
}

@keyframes pulse-active {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
    100% {
        opacity: 0;
        transform: scale(1.6);
    }
}

/* 任务详情区域 */
.mission-details {
    padding: 4rem 0;
    background: white;
    min-height: 500px;
}

.details-container {
    position: relative;
    overflow: hidden;
}

.mission-detail-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.mission-detail-card.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.detail-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #eee;
}

.detail-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.detail-header h2 {
    margin: 0;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.detail-date {
    opacity: 0.9;
    font-size: 1.1rem;
}

.detail-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.detail-text h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #4facfe;
    padding-bottom: 0.3rem;
    display: inline-block;
}

.detail-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.detail-text ul {
    color: #666;
    line-height: 1.8;
    margin-left: 1.5rem;
}

.detail-text li {
    margin-bottom: 0.5rem;
}

.detail-image {
    text-align: center;
}

.detail-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.detail-image img:hover {
    transform: scale(1.05);
}

.image-caption {
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* 统计数据样式 */
.mission-stats {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.2);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .timeline-container {
        height: 400px;
    }
    
    .mission-point {
        position: relative;
        display: block;
        margin: 2rem auto;
        width: fit-content;
    }
    
    .timeline-axis {
        display: none;
    }
    
    .mission-info {
        position: relative;
        top: 10px;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        margin-top: 1rem;
    }
    
    .detail-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .mission-marker {
        width: 50px;
        height: 50px;
    }
    
    .mission-number {
        font-size: 1rem;
    }
    
    .detail-header h2 {
        font-size: 1.5rem;
    }
    
    .detail-date {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* 加载动画 */
.mission-point {
    animation: fadeInUp 0.6s ease forwards;
}

.mission-point:nth-child(2) { animation-delay: 0.1s; }
.mission-point:nth-child(3) { animation-delay: 0.2s; }
.mission-point:nth-child(4) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%);
    }
} 