/* Enhanced Horizontal Timeline Styles - True Horizontal Scrolling */
.horizontal-timeline-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    margin: 0 auto;
    padding: 20px 0 !important;
}

.horizontal-timeline-wrapper {
    position: relative;
    padding: 30px 0 40px 0 !important;
    min-height: 300px !important;
}

/* Timeline Content - No timeline axis or markers */
.timeline-content-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 90%;
    height: auto !important;
    min-height: 450px !important;
}

.timeline-events {
    display: flex;
    gap: 35px !important;
    padding: 10px 0 !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    min-height: 450px !important;
    height: auto !important;
    /* 移动端优化：增强触摸滑动体验 */
    user-select: none;
    touch-action: pan-x;
}

/* 完全隐藏滚动条但保留滚动功能 */
.timeline-events::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
    height: 0; /* Firefox */
    background: transparent;
}

/* 其他浏览器兼容性 */
.timeline-events {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.timeline-event {
    flex: 0 0 auto;
    width: 320px;
    min-height: 380px;
    position: relative;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 筛选时隐藏的事件 */
.timeline-event.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* 事件卡片样式 - 与Company Profile风格完全一致 */
.event-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 380px;
    width: 320px;
    margin-bottom: 30px; 
    margin-top: 0; 
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #00476B;
}

/* 卡片装饰 - 使用主色，与Company Profile板块完全一致 */
.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #00476B;
}

/* 事件头部 - 借鉴Company Profile风格 */
.event-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

/* 年份样式 - 胶囊形状设计 */
.event-year {
    color: #00476B;
    padding: 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 1rem;
    margin-right: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid #00476B;
    background: transparent;
}

.event-year:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 71, 107, 0.1), 0 10px 10px -5px rgba(0, 71, 107, 0.04);
    border-color: #00476B;
}

/* 图标样式 - 借鉴Company Profile风格 */
.event-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid #00476B;
    color: #00476B;
    font-size: 1.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.event-card:hover .event-icon {
    transform: scale(1.05);
    box-shadow: 0 5px 18px rgba(0, 71, 107, 0.35);
}

.event-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0.75rem 0 0.5rem 0;
    color: #1f2937;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.event-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00476B;
    transition: width 0.4s ease;
}

.event-card:hover .event-title::after {
    width: 100%;
}

.event-description {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.event-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.event-tag {
    background: #f0f9ff;
    color: #00476B;
    padding: 0.25rem 0.75rem;
    border-radius: 1.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
    transition: all 0.3s ease;
    border: 1px solid #bae6fd;
}

.event-tag:hover {
    background: rgba(0, 71, 107, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 71, 107, 0.2);
}

/* 年份导航样式 */
.timeline-year-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 4px 0; /* 为悬停效果预留空间 */
    gap: 0.75rem;
}

.timeline-year-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

/* 年份导航项 - 借鉴Company Profile徽章样式 */
.year-nav-item {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 71, 107, 0.2);
    white-space: nowrap;
    color: #00476B;
    padding: 0.625rem 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2rem;
    font-weight: 500;
    font-size: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    background: rgba(0, 71, 107, 0.08);
    text-transform: capitalize;
    letter-spacing: normal;
}

.year-nav-item:hover {
    background: rgba(0, 71, 107, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 71, 107, 0.2);
    border-color: rgba(0, 71, 107, 0.3);
}

.year-nav-item.active {
    color: white;
    border-color: #00476B;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background: #00476B;
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
    .timeline-content-wrapper {
        margin-top: 25px; 
        max-width: 95%; 
    }
    
    .timeline-events {
        margin-top: 8px; 
        min-height: 420px !important; 
        gap: 1.25rem !important; 
    }
    
    .timeline-event {
        width: 290px;
        min-height: 360px;
    }
    
    .event-card {
        width: 290px;
        min-height: 360px;
        height: 360px;
        padding: 1.5rem;
        margin-bottom: 20px; 
    }
    
    .event-title {
        font-size: 1rem; 
    }
    
    .event-description {
        font-size: 0.875rem; 
    }
    
    .horizontal-timeline-wrapper {
        padding: 20px 0 30px 0 !important; 
    }
    
    /* 年份导航项 - 中等屏幕响应式调整 */
    .year-nav-item {
        font-size: 0.8125rem; 
        padding: 0.4375rem 0.625rem; 
        border-width: 1px; 
        border-radius: 1.5rem; 
        letter-spacing: 0.3px;
    }
    
    .year-nav-item.active {
        color: white; 
        border-color: #00476B; 
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        background: #00476B; 
    }
}

/* 超小屏幕设备 */
@media (max-width: 480px) {
    .timeline-content-wrapper {
        margin-top: 15px; 
        max-width: 98%; 
        padding: 0 10px !important;
    }
    
    .timeline-events {
        margin-top: 10px; 
        min-height: 400px !important; 
        gap: 1rem !important; 
        padding: 10px 0 !important;
        height: auto !important;
        /* 超小屏幕触摸优化 */
        -webkit-overflow-scrolling: touch;
    }
    
    .timeline-event {
        width: 260px;
        min-height: 340px;
    }
    
    .event-card {
        width: 260px;
        min-height: 340px;
        height: 340px;
        padding: 1.25rem;
        margin-bottom: 15px; 
        /* 增强触摸反馈 */
        transition: transform 0.2s ease;
    }
    
    /* 触摸反馈效果 */
    .event-card:active {
        transform: scale(0.98);
    }
    
    .event-title {
        font-size: 1rem; 
    }
    
    .event-description {
        font-size: 0.8125rem; 
        line-height: 1.5; 
    }
    
    .event-header {
        margin-bottom: 12px; 
    }
    
    .event-year {
        padding: 6px 16px;
        font-size: 14px;
        border-radius: 20px;
        letter-spacing: 0.3px;
        border-width: 1px;
    }
    
    .event-icon {
        width: 32px; 
        height: 32px; 
        font-size: 14px; 
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
        /* 超小屏幕优化：增大触摸区域 */
        padding: 8px;
    }
    
    /* 超小屏幕导航优化 */
    .timeline-nav {
        padding: 0 5px;
        top: calc(50% - 35px);
    }
    
    /* 年份导航优化 */
    .timeline-year-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 4px 5px; /* 为悬停效果预留空间 */
        gap: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 年份导航项 - 超小屏幕响应式调整 */
    .year-nav-item {
        font-size: 14px;
        padding: 6px 16px;
        border-width: 1px;
        border-radius: 20px;
        letter-spacing: 0.3px;
    }
    
    .year-nav-item.active {
        color: white;
        border-color: #00476b;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        background: #00476b;
    }
}

/* Navigation Controls - 借鉴Company Profile风格 */
.timeline-nav {
    position: absolute;
    top: calc(50% - 50px); 
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 3;
    pointer-events: none;
}

.nav-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00476B;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    pointer-events: auto;
    /* 移动端优化：增强触摸区域 */
    touch-action: manipulation;
    /* 增大点击区域 */
    padding: 5px;
}

.nav-btn:hover:not(:disabled) {
    background: #00476B;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.nav-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f3f4f6;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .timeline-content-wrapper {
        max-width: 95%;
    }
    
    .timeline-event {
        width: 260px;
    }
    
    .event-card {
        width: 260px;
        min-height: 380px;
    }
}

@media (max-width: 768px) {
    .horizontal-timeline-wrapper {
        padding: 20px 0 30px 0 !important;
        min-height: 250px !important;
    }
    
    .timeline-content-wrapper {
        height: auto !important;
        min-height: 300px !important;
        padding: 0 15px !important;
    }
    
    .timeline-events {
        gap: 10px !important;
        padding: 10px 0 !important;
        margin-top: 20px;
        min-height: 300px !important;
        height: auto !important;
        /* 移动端触摸优化 */
        -webkit-overflow-scrolling: touch;
    }
    
    .timeline-event {
        width: 260px;
    }
    
    .event-card {
        width: 260px;
        padding: 20px;
        min-height: 360px;
        margin-bottom: 20px; 
        /* 增强触摸反馈 */
        transition: transform 0.2s ease;
    }
    
    /* 触摸反馈效果 */
    .event-card:active {
        transform: scale(0.98);
    }
    
    .event-title {
        font-size: 16px;
    }
    
    .event-description {
        font-size: 13px;
    }
    
    .nav-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
        /* 增大触摸区域 */
        padding: 6px;
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        border: 1px solid #e2e8f0;
        color: #00476B;
    }
    
    .timeline-nav {
        padding: 0 10px;
        top: calc(50% - 40px); 
    }
    
    .nav-btn:hover:not(:disabled) {
        background: #00476B;
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }
    
    /* 年份导航优化 */
    .timeline-year-nav {
        overflow-x: auto;
        padding: 0 10px;
        gap: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 年份导航项 - 响应式调整 */
    .year-nav-item {
        font-size: 14px;
        padding: 6px 16px;
        border-width: 1px;
        border-radius: 20px;
        letter-spacing: 0.3px;
    }
    
    .year-nav-item.active {
        color: white;
        border-color: #00476b;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        background: #00476b;
    }
}

@media (max-width: 480px) {
    .horizontal-timeline-wrapper {
        padding: 15px 0 20px 0 !important;
        min-height: 200px !important;
    }
    
    .timeline-content-wrapper {
        height: auto !important;
        min-height: 280px !important;
    }
    
    .timeline-events {
        gap: 8px !important;
        padding: 10px 0 !important;
        margin-top: 15px;
        min-height: 280px !important;
        height: auto !important;
    }
    
    .timeline-event {
        width: 240px;
    }
    
    .event-card {
        width: 240px;
        padding: 16px;
        min-height: 320px;
        margin-bottom: 15px; 
    }
    
    .event-title {
        font-size: 15px;
    }
    
    .event-description {
        font-size: 12px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        border: 1px solid #e2e8f0;
        color: #00476B;
    }
    
    .nav-btn:hover:not(:disabled) {
        background: #00476B;
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 统一使用淡入上移动画效果 */
.event-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* 年份导航按钮选中效果 */
.year-nav-item.active {
    animation: scaleIn 0.3s ease forwards;
}

/* 为每个事件添加不同的延迟以创建级联效果 */
.timeline-event:nth-child(1) { animation-delay: 0.1s; }
.timeline-event:nth-child(2) { animation-delay: 0.2s; }
.timeline-event:nth-child(3) { animation-delay: 0.3s; }
.timeline-event:nth-child(4) { animation-delay: 0.4s; }
.timeline-event:nth-child(5) { animation-delay: 0.5s; }
.timeline-event:nth-child(6) { animation-delay: 0.6s; }
.timeline-event:nth-child(7) { animation-delay: 0.7s; }
.timeline-event:nth-child(8) { animation-delay: 0.8s; }
.timeline-event:nth-child(9) { animation-delay: 0.9s; }
.timeline-event:nth-child(10) { animation-delay: 1.0s; }
.timeline-event:nth-child(11) { animation-delay: 1.1s; }
.timeline-event:nth-child(12) { animation-delay: 1.2s; }
.timeline-event:nth-child(13) { animation-delay: 1.3s; }
.timeline-event:nth-child(14) { animation-delay: 1.4s; }
.timeline-event:nth-child(15) { animation-delay: 1.5s; }