/* 时间轴轮播主容器 */
.geniatech-timeline-carousel {
    background: #0f1a2b;
    color: #fff;
    font-family: Arial, "Microsoft Yahei", sans-serif;
}

/* 刻度尺容器 */
.geniatech-ruler-wrap {
    width: 100%;
    padding: 0px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(255,255,255,0.05);
    border-radius: 50px;
}

/* 刻度尺 */
.geniatech-ruler {
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: 58px 0 5px 0;
    border-radius: 10px;
    flex: 1;
    position: relative;
    margin: 0 20px;
}

/* 刻度组 */
.geniatech-group {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    opacity: 0.4;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 1.9px;
    cursor: pointer;
}

.geniatech-group.highlight {
    opacity: 1;
}

/* 刻度线容器 */
.geniatech-ticks {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap:3.91px;
}

/* 刻度线 */
.geniatech-tick {
    width: 2px;
    background: rgba(255,255,255,0.5);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.geniatech-tick.short {
    height: 8px;
}

.geniatech-tick.long {
    height: 15px;
}

.geniatech-group.highlight .geniatech-tick {
    background: #fff;
}

/* 年份标签 */
.geniatech-date-label {
    position: absolute;
    bottom: 100%;
    margin-bottom: 8px;
    transform: translateX(-74%);
    font-size: 13px;
    white-space: nowrap;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
    font-weight: normal;
}

.geniatech-date-label.highlight {
    color: #fff;
    font-weight: bold;
}

/* 导航按钮 */
.geniatech-btn {
    background-color: #E40011;
    border: 2px solid #E40011;
    border-style: solid;
    color: #fff;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    margin: 0 10px;
    transition: all 0.3s ease;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.geniatech-btn:hover {
    background-color: #c30010;
    border-color: #c30010;
    transform: translateY(-1px);
}

.geniatech-btn:active {
    transform: translateY(0);
}

/* 边界状态 - 透明背景带边框 */
.geniatech-btn.boundary {
    background-color: transparent;
    border-color: #ffffff;
    color: #ffffff;
}

.geniatech-btn.boundary:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: #ffffff;
    transform: translateY(-1px);
}

/* 内容区域 */
.geniatech-timeline-content {
    margin-bottom: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    position: relative;
}

/* 轮播容器 - 使用flexbox order控制顺序 */
.geniatech-timeline-slides {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    align-items: center;
    justify-content: center;
    gap: 0px;
}

/* 时间轴项目 - 基础样式 */
.geniatech-timeline-item {
    flex: 0 0 calc(35%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
    visibility: visible;
    transition: all 0.5s ease;
    transform: scale(0.85);
    position: relative;
}

/* 左侧项目 */
.geniatech-timeline-item.left-item {
    order: 1;
    opacity: 0.4;
    transform: scale(0.85);
    display: flex
    ;
        justify-content: flex-start;
}

/* 中间激活项 */
.geniatech-timeline-item.center-item.active {
    order: 2;
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* 右侧项目 */
.geniatech-timeline-item.right-item {
    order: 3;
    opacity: 0.4;
    transform: scale(0.85);
}

/* 非激活项目 - 隐藏 */
.geniatech-timeline-item.inactive {
    display: none;
    order: 0;
}

/* 时间轴卡片 - 移除边框和背景 */
.geniatech-timeline-card {
    width: 100%;
    max-width: 420px;
    background: transparent;
    border: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    transition: all 0.3s ease;
}

/* 标题 */
.geniatech-timeline-title {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    margin: 0 0 24px 0;
    line-height: 1.3;
    text-align: center;
}

.geniatech-timeline-item.active .geniatech-timeline-title {
    font-size: 28px;
}

/* 描述 */
.geniatech-timeline-description {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin: 0 0 39px 0;
    text-align: left;
}

.geniatech-timeline-item.active .geniatech-timeline-description {
    font-size: 16px;
}

/* 图片容器 - 默认都存在但隐藏 */
.geniatech-timeline-image {
    width: 100%;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    transform: scale(0.8);
    height: 0;
    overflow: hidden;
}

/* 只有激活项显示图片 */
.geniatech-timeline-item.active .geniatech-timeline-image {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    height: auto;
}

.geniatech-timeline-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

 

/* 响应式设计 */
@media (max-width: 768px) {
    .geniatech-timeline-carousel {
        padding: 20px 10px;
        min-height: 400px;
    }
    
    .geniatech-timeline-content {
        margin-bottom: 30px;
        min-height: 350px;
    }
    
    .geniatech-ruler-wrap {
        padding: 0px 10px;
    }
    
    /* 移动端调整 - 只显示激活项 */
    .geniatech-timeline-slides {
        width: 100%;
        gap: 0;
    }
    
    .geniatech-timeline-item {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 20px;
    }
    
    .geniatech-timeline-item:not(.active) {
        display: none;
    }
    
    .geniatech-timeline-card {
        padding: 25px 15px;
    }
    
    .geniatech-timeline-title {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .geniatech-timeline-item.active .geniatech-timeline-title {
        font-size: 24px;
    }
    
    .geniatech-timeline-description {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .geniatech-timeline-item.active .geniatech-timeline-description {
        font-size: 14px;
    }
    
    .geniatech-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
        margin: 0 5px;
    }
    
    .geniatech-date-label {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .geniatech-timeline-carousel {
        padding: 15px 5px;
        min-height: 350px;
    }
    
    .geniatech-timeline-content {
        min-height: 300px;
    }
    
    .geniatech-timeline-card {
        padding: 20px 10px;
    }
    
    .geniatech-timeline-title {
        font-size: 20px;
    }
    
    .geniatech-timeline-item.active .geniatech-timeline-title {
        font-size: 22px;
    }
    
    .geniatech-timeline-description {
        font-size: 12px;
    }
    
    .geniatech-timeline-item.active .geniatech-timeline-description {
        font-size: 13px;
    }
    
    .geniatech-ruler-wrap {
        padding: 0px 5px;
    }
    
    .geniatech-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.geniatech-timeline-item.active .geniatech-timeline-title {
    animation: fadeInUp 0.6s ease 0.1s both;
}

.geniatech-timeline-item.active .geniatech-timeline-description {
    animation: fadeInUp 0.6s ease 0.2s both;
}

.geniatech-timeline-item.active .geniatech-timeline-image {
    animation: fadeInUp 0.6s ease 0.3s both;
}

/* 隐藏数据脚本 */
.geniatech-timeline-data {
    display: none;
}
