/* ============================================================
   发展历程 — 卡片统一在时间轴上方，水平依次排列
   站点 rem 基准 = 100px（rem.js），故 .16rem = 16px

   只需调这三个变量即可整体缩放：
     --tl-bottom : 时间轴线距滑动项底部的距离
     --tl-gap    : 卡片底边与时间轴线之间的间隙
     --card-w    : 卡片宽度
   ============================================================ */

.aibo_about2 {
    --tl-bottom: 70px;
    --tl-gap: 18px;
    --card-w: 360px;
    --slide-w: 380px;
    --slide-h: 420px;  /* 从520px降到420px，单排布局 */
}

/* ---------- 容器 ---------- */

.aibo_about2 .container_1300 {
    width: 14rem !important;
    max-width: 95% !important;
}

.aibo_about2_slick {
    position: relative;
    padding: 0 !important;
    overflow: hidden !important;
}

/* ---------- 时间轴线 ----------
   关键：显式 top:auto + transform:none，
   清掉原 style.css 的 top:50% / translate，否则 bottom 会被丢弃 */

.aibo_about2_slick:before {
    content: "";
    position: absolute;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: var(--tl-bottom) !important;
    width: 100% !important;
    height: 1px;
    background: #9f9f9f;
    transform: none !important;
    z-index: 1;
}

/* ---------- 滑动项 ---------- */

.about2_slick_item {
    position: relative;
    width: var(--slide-w) !important;
    height: var(--slide-h) !important;
    padding: 0 !important;
    margin: 0 10px !important;
    flex-shrink: 0;
    overflow: visible !important;
}

.about2_slick_item_re {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ---------- 时间轴节点：圆圈 + 圆点 ----------
   同样必须清掉继承来的 top / transform */

.about2_slick_item_re:before {
    content: "";
    position: absolute;
    left: 50% !important;
    top: auto !important;
    bottom: var(--tl-bottom) !important;
    width: 12px !important;
    height: 12px !important;
    background: #fff;
    border: 1px solid #9f9f9f;
    border-radius: 50%;
    box-sizing: border-box !important;
    transform: translate(-50%, 50%) !important;
    z-index: 2;
}

.about2_slick_item_re:after {
    content: "";
    position: absolute;
    left: 50% !important;
    top: auto !important;
    bottom: var(--tl-bottom) !important;
    width: 6px !important;
    height: 6px !important;
    background: #9f9f9f;
    border-radius: 50%;
    transform: translate(-50%, 50%) !important;
    z-index: 3;
}

/* ---------- 卡片：全部锚在时间轴上方同一高度 ----------
   bottom = 线的位置 + 间隙，所有卡片一致 → 底边天然对齐 */

.about2_slick_item .slick_about2t1,
.about2_slick_item:nth-child(2n) .slick_about2t1,
.about2_slick_item:nth-child(2n+1) .slick_about2t1 {
    position: absolute !important;
    left: 50% !important;
    top: auto !important;
    bottom: calc(var(--tl-bottom) + var(--tl-gap)) !important;
    width: var(--card-w) !important;
    margin-left: calc(var(--card-w) / -2) !important;
    padding: 0 !important;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    overflow: visible !important;
    transition: box-shadow .3s ease, transform .3s ease;
    z-index: 4;                /* 盖住时间轴线 */
}

.about2_slick_item .slick_about2t1:hover {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
    transform: translateY(-4px);
}

/* ---------- 卡片底部三角箭头，指向圆点 ---------- */

.slick_about2t1:after {
    content: "";
    position: absolute;
    left: 50%;
    top: auto !important;
    bottom: -6px;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    background: inherit;       /* 跟随卡片底色，激活态自动变蓝 */
    transform: rotate(45deg);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.06);
    z-index: -1;               /* 藏在卡片体下方，只露出尖角 */
}

/* 原上下交错用的箭头，弃用 */
.slick_about2t1:before,
.about2_slick_item:nth-child(2n) .slick_about2t1:before {
    display: none !important;
}

/* ---------- 卡片内容：图片 / 日期 / 正文 ----------
   字号回到 rem，与站点其余文字同一基准（.16rem = 16px） */

.slick_about2_img {
    width: 100%;
    height: 1.5rem;            /* 150px */
    background: #f4f6f8;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    display: block;
}

.slick_about2_img img {
    width: 100%;
    height: 100%;
    object-fit: contain;       /* 完整显示，不裁剪 */
    object-position: center;
    display: block;
    transition: transform .3s ease;
}

.slick_about2t1:hover .slick_about2_img img {
    transform: scale(1.04);
}

.slick_about2t2 {
    font-size: .2rem !important;      /* 20px */
    font-weight: bold;
    color: #2c5aa0;
    line-height: 1.3;
    padding: .16rem .18rem .06rem !important;
    margin: 0 !important;
}

.slick_about2t3 {
    font-size: .15rem !important;     /* 15px */
    line-height: 1.75 !important;
    color: #555 !important;
    padding: 0 .18rem .2rem !important;
    margin: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    word-break: break-word;
}

/* ---------- 激活态（当前居中项）---------- */

.about2_slick_item.swiper-slide-active .slick_about2t1 {
    background: #3e86e0 !important;
    box-shadow: 0 6px 22px rgba(62, 134, 224, 0.35);
}

.about2_slick_item.swiper-slide-active .slick_about2t2,
.about2_slick_item.swiper-slide-active .slick_about2t3 {
    color: #fff !important;
}

.about2_slick_item.swiper-slide-active .about2_slick_item_re:before {
    border-color: #3e86e0 !important;
}

.about2_slick_item.swiper-slide-active .about2_slick_item_re:after {
    background: #3e86e0 !important;
}

/* 清除 next 的样式，避免双高亮 */
.about2_slick_item.swiper-slide-next .slick_about2t1 {
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.about2_slick_item.swiper-slide-next .slick_about2t2,
.about2_slick_item.swiper-slide-next .slick_about2t3 {
    color: #333333 !important;
}

.about2_slick_item.swiper-slide-next .about2_slick_item_re:before {
    border-color: #e0e0e0 !important;
    background: #ffffff !important;
}

.about2_slick_item.swiper-slide-next .about2_slick_item_re:after {
    background: #cccccc !important;
}

/* ---------- 移动端 ---------- */

@media (max-width: 768px) {
    .aibo_about2 {
        --tl-bottom: 56px;
        --tl-gap: 14px;
        --card-w: 300px;
        --slide-w: 320px;
        --slide-h: 460px;
    }

    .aibo_about2 .container_1300 {
        width: 96% !important;
    }

    .about2_slick_item {
        margin: 0 8px !important;
    }

    .slick_about2_img {
        height: 1.2rem;
    }

    .slick_about2t2 {
        font-size: .18rem !important;
    }

    .slick_about2t3 {
        font-size: .14rem !important;
    }
}
