/* ===== 发展历程页面专用样式 ===== */

/* 时间轴容器 */
.development-timeline {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.development-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23000" opacity="0.02"/><circle cx="75" cy="75" r="1" fill="%23000" opacity="0.02"/><circle cx="50" cy="10" r="0.5" fill="%23000" opacity="0.01"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

/* 时间轴主体 */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* 时间轴中心线 */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-gold) 50%, var(--color-primary) 100%);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.3);
}

/* 时间轴项目 */
.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-xl);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.timeline-item:nth-child(even) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(odd) {
    animation-delay: 0.4s;
}

/* 时间轴标记点 */
.timeline-marker {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #e74c3c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
    border: 4px solid white;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.timeline-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.timeline-item:hover .timeline-icon::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out infinite;
}

.timeline-year {
    margin-top: var(--spacing-xs);
    background: var(--color-charcoal);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-medium);
    white-space: nowrap;
}

/* 时间轴内容 */
.timeline-content {
    width: calc(50% - 40px);
    padding: 0 var(--spacing-md);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: calc(50% + 40px);
    text-align: left;
}

/* 时间轴卡片 */
.timeline-card {
    background: white;
    border-radius: var(--border-radius-large);
    padding: var(--spacing-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.1);
    position: relative;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
}

.timeline-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--color-primary);
}

/* 指向箭头 */
.timeline-card::after {
    content: '';
    position: absolute;
    top: 30px;
    width: 0;
    height: 0;
    border: 15px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-card::after {
    right: -30px;
    border-left-color: white;
}

.timeline-item:nth-child(even) .timeline-card::after {
    left: -30px;
    border-right-color: white;
}

/* 时间轴内容文字 */
.timeline-info h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-secondary);
}

.timeline-date {
    color: var(--color-gold);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: var(--spacing-sm);
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
}

.timeline-description {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 1rem;
}

/* 数据统计区域 */
.stats-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, transparent 50%, rgba(0,0,0,0.1) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-secondary);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* 未来展望区域 */
.future-vision {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.vision-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.vision-text h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-secondary);
}

.vision-text p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.vision-cta {
    margin-top: var(--spacing-lg);
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.vision-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-heavy);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .development-timeline {
        padding: var(--spacing-lg) 0;
    }
    
    /* 移动端时间轴调整为单列 */
    .timeline::before {
        left: 30px;
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .timeline-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .timeline-year {
        font-size: 12px;
        padding: 4px 12px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        text-align: left !important;
        padding: 0 var(--spacing-sm);
    }
    
    .timeline-card::after {
        left: -15px !important;
        right: auto !important;
        border-right-color: white !important;
        border-left-color: transparent !important;
        border-width: 10px;
    }
    
    .timeline-card {
        padding: var(--spacing-md);
    }
    
    .timeline-info h3 {
        font-size: 1.3rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .vision-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .vision-text h2 {
        font-size: 2rem;
    }
    
    .vision-cta {
        flex-direction: column;
    }
    
    .vision-image img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .timeline-item {
        margin-bottom: var(--spacing-lg);
    }
    
    .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .timeline-year {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .vision-text h2 {
        font-size: 1.8rem;
    }
    
    .vision-image img {
        height: 250px;
    }
}

/* 高分辨率屏幕优化 */
@media (min-width: 1200px) {
    .timeline {
        max-width: 1200px;
    }
    
    .timeline-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .timeline-card {
        padding: var(--spacing-xl);
    }
    
    .timeline-info h3 {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 3.5rem;
    }
}

/* 打印样式 */
@media print {
    .development-timeline {
        background: white !important;
    }
    
    .timeline::before {
        background: #333 !important;
    }
    
    .timeline-icon {
        background: #333 !important;
        box-shadow: none !important;
    }
    
    .timeline-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .stats-section {
        background: white !important;
        color: #333 !important;
    }
    
    .stat-item {
        background: #f5f5f5 !important;
        border: 1px solid #ddd !important;
    }
    
    .stat-number {
        color: #333 !important;
    }
}
