/* 时间线样式 - CategoryContentEventsTwo */

.biofcm-timeline-section {
    padding: 130px 0 0 0;
    background: #f8f9fa;
    position: relative;
    overflow: visible;
}

.biofcm-timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, #e0e0e0 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    pointer-events: none;
}

.biofcm-timeline-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.biofcm-timeline-header h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.biofcm-timeline-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.biofcm-timeline-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 140px 40px;
    z-index: 1;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.biofcm-timeline-container::-webkit-scrollbar {
    display: none;
}

.biofcm-timeline-container::after {
    content: '→';
    position: absolute;
    top: 50px;
    right: 20px;
    font-size: 32px;
    color: #009F71;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease;
    animation: biofcm-arrow-bounce 1.5s infinite;
}

.biofcm-timeline-container.scrolled-end::after {
    opacity: 0;
}

@keyframes biofcm-arrow-bounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(8px);
    }
}

.biofcm-timeline-wrapper {
    position: relative;
    min-width: max-content;
    overflow: visible;
}

.biofcm-timeline-items {
    position: relative;
    display: flex;
    justify-content: flex-start;
    height: 350px;
    z-index: 1;
    overflow: visible;
}

/* 波浪线SVG - 放在items内部，与圆点同定位上下文 */
.biofcm-timeline-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.biofcm-timeline-svg {
    width: 100%;
    height: 100%;
}

.biofcm-timeline-path-main {
    fill: none;
    stroke: #009F71;
    stroke-width: 4;
    stroke-linecap: round;
}

.biofcm-timeline-path-shadow {
    fill: none;
    stroke: rgba(0, 159, 113, 0.3);
    stroke-width: 8;
    stroke-linecap: round;
}

.biofcm-timeline-item {
    position: relative;
    flex: 0 0 auto;
    text-align: center;
    padding: 0 40px;
    min-width: 200px;
    max-width: 260px;
    height: 350px;
    z-index: 1;
}

.biofcm-timeline-item-top,
.biofcm-timeline-item-bottom {
    margin: 0;
}

.biofcm-timeline-dot {
    width: 48px;
    height: 48px;
    background: #fff;
    border: 5px solid #009F71;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 2px 15px rgba(0, 159, 113, 0.3);
    transition: all 0.3s ease;
}

.biofcm-timeline-dot:hover {
    background: #009F71;
    box-shadow: 0 4px 25px rgba(0, 159, 113, 0.5);
}

.biofcm-timeline-dot-inner {
    width: 14px;
    height: 14px;
    background: #009F71;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.biofcm-timeline-dot:hover .biofcm-timeline-dot-inner {
    background: #fff;
}

.biofcm-timeline-content {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    text-align: center;
}

.biofcm-timeline-item-top .biofcm-timeline-content {
    bottom: 50px;
}

.biofcm-timeline-item-bottom .biofcm-timeline-content {
    top: 50px;
}

.biofcm-timeline-date {
    font-size: 22px;
    font-weight: 700;
    color: #009F71;
    margin-bottom: 12px;
    line-height: 1.3;
    white-space: nowrap;
}

.biofcm-timeline-title {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    max-width: 200px;
    margin: 0 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .biofcm-timeline-item {
        min-width: 150px;
        padding: 0 20px;
    }
    
    .biofcm-timeline-date {
        font-size: 20px;
    }
}

@media (max-width: 991px) {
    .biofcm-timeline-section {
        padding: 80px 0;
        overflow: visible;
    }
    
    .biofcm-timeline-container {
        padding: 80px 20px;
        cursor: default;
        overflow: visible;
        max-height: none;
    }
    
    .biofcm-timeline-items {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
        height: auto;
        padding-left: 0;
        position: relative;
    }
    
    .biofcm-timeline-item {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        margin: 0 0 80px 0;
        padding: 0;
        max-width: 100%;
        min-width: auto;
        height: auto;
        position: relative;
    }
    
    .biofcm-timeline-item:last-child {
        margin-bottom: 0;
    }
    
    .biofcm-timeline-item-top,
    .biofcm-timeline-item-bottom {
        margin: 0 0 80px 0;
    }
    
    .biofcm-timeline-item-top:last-child,
    .biofcm-timeline-item-bottom:last-child {
        margin-bottom: 0;
    }
    
    .biofcm-timeline-items .biofcm-timeline-dot {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: 0 20px 0 0;
        flex: 0 0 auto;
        flex-shrink: 0;
        z-index: 2;
    }
    
    .biofcm-timeline-items .biofcm-timeline-content {
        margin-left: 0;
        margin-top: 0;
        margin-bottom: 0;
        padding-left: 0;
        position: relative;
        left: auto;
        transform: none;
        width: auto;
        max-width: calc(100% - 68px);
        text-align: left;
        flex: 1 1 auto;
    }
    
    .biofcm-timeline-item-top .biofcm-timeline-content,
    .biofcm-timeline-item-bottom .biofcm-timeline-content {
        bottom: auto;
        top: auto;
    }
    
    .biofcm-timeline-wave {
        display: none;
    }
    
    .biofcm-timeline-items::before {
        content: '';
        position: absolute;
        left: 24px;
        top: 0;
        bottom: 0;
        width: 4px;
        background: #009F71;
        z-index: 1;
    }
    
    .biofcm-timeline-date {
        white-space: normal;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    
    .biofcm-timeline-title {
        line-height: 1.6;
    }
}

@media (max-width: 576px) {
    .biofcm-timeline-section {
        padding: 60px 0;
        overflow: visible;
    }
    
    .biofcm-timeline-container {
        padding: 60px 15px;
        max-height: none;
    }
    
    .biofcm-timeline-header h2 {
        font-size: 28px;
    }
    
    .biofcm-timeline-date {
        font-size: 18px;
    }
    
    .biofcm-timeline-title {
        font-size: 13px;
    }
    
    .biofcm-timeline-item {
        margin-bottom: 60px;
    }
    
    .biofcm-timeline-item:last-child {
        margin-bottom: 0;
    }
    
    .biofcm-timeline-dot {
        width: 40px;
        height: 40px;
        margin-right: 15px;
    }
    
    .biofcm-timeline-content {
        max-width: calc(100% - 55px);
    }
    
    .biofcm-timeline-items::before {
        left: 20px;
    }
}