:root {
    --baihe-history-padding: 376px;
}

.baihe_history {
    padding: var(--component-gap) 0 calc(var(--component-gap) * 2);
    position: relative;
}
.baihe_history svg{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.baihe_history_data {
    display: flex;
    justify-content: space-between;
    padding: var(--component-gap);
    background: var(--color-primary);
    border-radius: 20px;
    margin-bottom: calc(var(--component-gap-sm) * 2);
}

.baihe_history_data_item {
    display: flex;
    cursor: pointer;
}

.baihe_history_data_item_icon {
    width: 46px;
    height: 46px;
    display: block;
}

.baihe_history_data_item_icon_hover {
    width: 46px;
    height: 46px;
    display: none;
}

.baihe_history_data_item:hover .baihe_history_data_item_icon {
    display: none;
}

.baihe_history_data_item:hover .baihe_history_data_item_icon_hover {
    display: block;
}

.baihe_history_data_item_box {
    display: flex;
    flex-direction: column;
}

.baihe_history_data_item img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    margin-right: 24px;
}

.baihe_history_data_item_num {
    color: var(--title-text-color);
    font-size: 60px;
    font-weight: 700;
    line-height: 0.8;
    text-transform: uppercase;
    font-family: var(--title-font-family);
}

.baihe_history_data_item_suffix {
    color: var(--title-text-color);
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    font-family: var(--title-font-family);
}

.baihe_history_data_item_label {
    color: var(--text-color);
    font-size: var(--text-size);
    font-weight: 400;
    line-height: 1.625;
    margin-top: 4px;
}

.baihe_history_data_item:hover .baihe_history_data_item_num,
.baihe_history_data_item:hover .baihe_history_data_item_suffix {
    color: var(--color-second);
}

.baihe_history_data_item_content {
    display: flex;
    align-items: flex-end;
}

.baihe_history_timeline {
    padding-left: calc(var(--page-padding) + 15px);
}

.baihe_history_timeline h2 {
    position: absolute;
    top: -16px;
    left: 0;
    color: var(--title-text-color);
    font-size: var(--title-size-h2);
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    margin-bottom: 60px;
    font-family: var(--title-font-family);
}

.baihe_history_timeline h2 b {
    color: var(--color-primary);
    font-weight: 700;
}

.baihe_history_timeline_wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: flex-start;
    max-height: 612px;
}

.baihe_history_timeline_dates_box {
    padding: var(--component-gap) 0 0;
    height: 100%;
    overflow: hidden;
}

/* 左侧时间轴日期列表 */
.baihe_history_timeline_dates {
    padding: var(--component-gap) 0 0;
    width: fit-content;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 47px;
    height: 100%;
    overflow-y: auto;
    /* 隐藏滚动条 - Chrome, Safari, Edge */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

/* 隐藏滚动条 - Webkit浏览器 */
.baihe_history_timeline_dates::-webkit-scrollbar {
    display: none;
}

/* 时间轴垂直连接线 - 动态创建的元素 */
.baihe_history_timeline_line {
    position: absolute;
    right: 4px;
    top: 0;
    width: 1px;
    background: linear-gradient(180deg, rgba(153, 153, 153, 0.00) 0%, #999 50%, rgba(153, 153, 153, 0.00) 100%);
    pointer-events: none;
    z-index: 0;
}

.baihe_history_timeline_date_item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* 年份 - 在左侧 */
.baihe_history_timeline_year {
    color: var(--text-color);
    font-size: var(--text-size);
    font-weight: 400;
    line-height: 1.625;
    opacity: 0.6;
    order: 1;
}

.baihe_history_timeline_date_item.active .baihe_history_timeline_year,
.baihe_history_timeline_date_item:hover .baihe_history_timeline_year {
    color: var(--color-primary);
    font-size: var(--text-title-size);
    font-weight: 500;
    font-family: var(--font-medium-family);
    opacity: 1;
}

/* 时间轴圆点 - 在右侧 */
.baihe_history_timeline_dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #999;
    transition: all 0.3s ease;
    flex-shrink: 0;
    order: 2;
}

.baihe_history_timeline_date_item.active .baihe_history_timeline_dot,
.baihe_history_timeline_date_item:hover .baihe_history_timeline_dot {
    background: var(--color-primary);
}

/* 右侧内容区域 */
.baihe_history_timeline_content_wrapper {
    position: relative;
    height: 100%;
}

.baihe_history_timeline_item {
    display: none;
    height: 100%;
    grid-template-columns: 1fr 51.8%;
    gap: 100px;
    align-items: flex-start;
}

.baihe_history_timeline_item.active {
    display: grid;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 中间内容区域 */
.baihe_history_timeline_content {
    display: flex;
    flex-direction: column;
    padding-top: 115px;
    min-width: 0;
}

.baihe_history_timeline_content::-webkit-scrollbar {
    display: none;
}

.baihe_history_timeline_item_date {
    color: var(--color-second);
    font-size: var(--title-size-h3);
    font-weight: 700;
    line-height: 1.5;
    font-family: var(--title-font-family);
}

.baihe_history_timeline_item_title {
    color: var(--title-text-color);
    font-size: var(--title-size-h5);
    font-weight: 500;
    line-height: 1.5;
    margin-top: 19px;
    max-width: 100%;
    /* white-space: nowrap; */
    /* overflow: hidden; */
    text-overflow: ellipsis;
    font-family: var(--font-medium-family);
}

.baihe_history_timeline_item_desc {
    color: var(--text-color);
    font-size: var(--text-size);
    font-weight: 400;
    line-height: 1.625;
    margin-top: 14px;
    max-height: calc(var(--text-size) * 1.625 * 10);
    overflow-y: auto;
}
.baihe_history_timeline_item_desc::-webkit-scrollbar {
  display: none;
}
/* 
.baihe_history_timeline_item_desc {
    color: var(--text-color);
    font-size: var(--text-size);
    font-weight: 400;
    line-height: 1.625;
    margin-top: 14px;
    max-height: calc(var(--text-size) * 1.625 * 10);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
} */

/* 右侧图片区域 */
.baihe_history_timeline_image {
    width: 100%;
    height: 100%;
}

.baihe_history_timeline_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 0 0 20px;
}

.baihe_history .swiper-btn {
    margin-top: 42px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.baihe_history .swiper-btn-prev,
.baihe_history .swiper-btn-next {
    width: 46px;
    height: 46px;
    background: rgba(242, 177, 75, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.baihe_history .swiper-btn {
    color: var(--color-second);
    font-size: 20px;
}

.baihe_history .swiper-btn-prev:hover,
.baihe_history .swiper-btn-next:hover {
    width: 46px;
    height: 46px;
    background: var(--color-second);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.baihe_history .swiper-btn-prev:hover i,
.baihe_history .swiper-btn-next:hover i {
    color: #fff;
    font-size: 20px;
}

@media screen and (max-width: 1500px) {
    :root {
        --baihe-history-padding: 320px;
    }

    .baihe_history_timeline_wrapper {
        max-height: 520px;
    }
}

@media screen and (max-width: 1200px) {
    :root {
        --baihe-history-padding: 250px;
    }
    
    .baihe_history_timeline_wrapper {
        max-height: 520px;
    }

    .baihe_history_data_item img {
        width: 36px;
        height: 36px;
        margin-right: 16px;
    }

    .baihe_history_data_item_num {
        font-size: 36px;
    }

    .baihe_history_timeline_item {
        gap: 50px;
    }

    .baihe_history_timeline_wrapper {
        grid-template-columns: 100px 1fr;
    }

    .baihe_history_timeline_content {
        padding-top: 80px;
    }
}

@media screen and (max-width: 992px) {
    :root {
        --baihe-history-padding: 180px;
    }

    .baihe_history_data {
        flex-wrap: wrap;
        gap: 20px;
    }

    .baihe_history_data_item {
        width: calc(50% - 10px);
    }

    .baihe_history_timeline_item {
        flex-direction: column;
        grid-template-columns: 100%;
        gap: 30px;
    }
        .baihe_history_timeline_item_title{
            margin-top: 10px;
        }
        .baihe_history_timeline_item_desc{
            margin-top: 8px;
            text-align: left;
        }

    .baihe_history_timeline_content {
        order: 2;
        padding-top: 0;
    }
        .baihe_history .swiper-btn{
            margin-top: 24px;
        }

    .baihe_history_timeline {
        padding: 0 calc(var(--page-padding) + 15px);
    }

    .baihe_history_timeline_image img {
        border-radius: 20px;
    }

    .baihe_history_timeline_wrapper {
        max-height: fit-content;
    }

    .baihe_history_timeline_content_wrapper {

        padding-top: calc(var(--component-gap) * 2);
    }
}

@media screen and (max-width: 768px) {
    :root {
        --baihe-history-padding: 130px;
    }
    .baihe_history{
        background: linear-gradient(180deg, rgba(234, 171, 72, 0) 0%, rgba(234, 171, 72, 0.20) 100%);
    }
    .baihe_history_timeline_item {
        gap: 20px;
    }

    .baihe_history .swiper-btn {
        margin-top: 20px;
    }

    .baihe_history_timeline_dates {
        gap: 40px;
    }

}

@media screen and (max-width: 576px) {
    :root {
        --baihe-history-padding: 100px;
    }
}

@media screen and (max-width: 480px) {
    :root {
        --baihe-company-info-height: 80px;
    }

    .baihe_history_data {
        gap: 10px;
    }

    .baihe_history_data_item {
        width: calc(50% - 5px);
    }

    .baihe_history_data_item img {
        width: 30px;
        height: 30px;
        margin-right: 6px;
    }

    .baihe_history_data_item_num {
        font-size: 26px;
        line-height: 1;
    }

    .baihe_history_data_item_suffix {
    
    font-size: 26px;
    }
}