
.history-section {
    font-family: 'Inter', sans-serif;
    --orange-primary: #FF6B35;
    --orange-light: rgba(255, 107, 53, 0.1);
    --orange-medium: rgba(255, 107, 53, 0.3);
}

.history-section .title-gradient {
    background: linear-gradient(135deg, var(--orange-primary) 0%, #FF8C61 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.history-section .title-main {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    margin-bottom: 3rem;
}

.history-section .timeline-horizontal {
    position: relative;
    padding: 2rem 0 1rem 0;
}

.history-section .timeline-line-horizontal {
    position: absolute;
    top: 20px;
    left: 5%;
    right: 5%;
    height: 4px;
    background: linear-gradient(to right, var(--orange-primary), rgba(255, 107, 53, 0.6));
    border-radius: 2px;
}

.history-section .timeline-line-horizontal::after {
    content: '';
    position: absolute;
    right: -8px;
    top: -6px;
    width: 0;
    height: 0;
    border-left: 12px solid var(--orange-primary);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.history-section .timeline-items {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    position: relative;
    z-index: 10;
}

.history-section .timeline-item {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.history-section .timeline-item.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.history-section .year-badge {
    display: inline-block;
    background: var(--orange-primary);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 1.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    width: fit-content;
}

.history-section .history-card-compact {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    text-align: center;
    height: auto;
    margin-bottom: 2rem;
}

.history-section .history-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
}

.history-section .milestone-highlight {
    background: var(--orange-light);
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
    margin: 0.75rem 0;
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.history-section .achievement-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.75rem;
}

.history-section .achievement-tag {
    background: var(--orange-light);
    color: var(--orange-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .history-section .timeline-items {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .history-section .timeline-line-horizontal {
        display: none;
    }
    
    .history-section .timeline-line-horizontal::after {
        display: none;
    }
    
    .history-section .title-main {
        font-size: 1.875rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .history-section .timeline-items {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .history-section .timeline-line-horizontal {
        display: none;
    }
    
    .history-section .timeline-line-horizontal::after {
        display: none;
    }
}

@media (min-width: 1024px) {
    .history-section .title-main {
        font-size: 3rem;
    }
}

/* 特殊处理2021和2024年的内容 */
.history-section .timeline-item.featured {
    grid-column: span 1;
}

@media (min-width: 769px) and (max-width: 1023px) {
    .history-section .timeline-item.featured {
        grid-column: span 1;
    }
}
