/* ============================================================
   CBFI 冰泉制冷 · 发展历程时间线私有样式
   位置：public/static/bingquan/css/history.css
   ============================================================ */

/* ===== 时间线主体（垂直交错，位于左侧栏右边的内容区） ===== */
.timeline{position:relative;width:100%;max-width:none;margin:0 auto}
.timeline::before{content:'';position:absolute;top:0;bottom:0;left:50%;width:3px;margin-left:-1.5px;background:linear-gradient(180deg,var(--primary),#9db9f5);border-radius:2px}
.tl-item{position:relative;width:50%;padding:0 44px 50px 0}
.tl-item:nth-child(even){margin-left:50%;padding:0 0 50px 44px}
.tl-item::after{content:'';position:absolute;top:6px;width:18px;height:18px;border-radius:50%;background:#fff;border:4px solid var(--primary);box-shadow:0 0 0 4px rgba(65,105,225,.12)}
.tl-item:nth-child(odd)::after{right:-9px}
.tl-item:nth-child(even)::after{left:-9px}
.tl-year{font-size:34px;font-weight:800;color:var(--primary);line-height:1;margin-bottom:14px;letter-spacing:1px}
.tl-item:nth-child(odd) .tl-year{text-align:right}
.tl-year sup{font-size:16px;font-weight:600;margin-left:4px;color:var(--gray)}
.tl-card{background:#fff;border:1px solid #eef1f8;border-radius:14px;overflow:hidden;box-shadow:0 8px 28px rgba(65,105,225,.08);transition:var(--transition);position:relative}
.tl-card:hover{transform:translateY(-4px);box-shadow:0 16px 40px rgba(65,105,225,.16);border-color:var(--primary)}
.tl-card .tl-img{aspect-ratio:16/9;overflow:hidden;background:var(--bg)}
.tl-card .tl-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.tl-card:hover .tl-img img{transform:scale(1.06)}
.tl-card .tl-text{padding:20px 22px}
.tl-card .tl-text h3{font-size:17px;color:var(--text);margin-bottom:8px}
.tl-card .tl-text p{font-size:14px;color:var(--gray);line-height:1.9}
.tl-card a{position:absolute;inset:0;z-index:1}

/* ===== 响应式（私有部分）：手机端左对齐单列 ===== */
@media(max-width:768px){
    .timeline::before{left:12px;margin-left:0}
    .tl-item,.tl-item:nth-child(even){width:100%;margin-left:0;padding:0 0 36px 44px}
    .tl-item::after,.tl-item:nth-child(odd)::after,.tl-item:nth-child(even)::after{left:3px;right:auto;width:16px;height:16px}
    .tl-item:nth-child(odd) .tl-year{text-align:left}
    .tl-year{font-size:28px}
}
