/* ============================================================
   KELME 品牌历程时间轴（极简版 · 无框）
   - 年份与内容均无背景/边框，纯文字展示
   - 整体紧凑、留白减少
   - 左侧节点内容右对齐（贴近中央轴线）
   ============================================================ */

.kelme_timeline_section {
    padding: 20px 0 14px;
}

/* ---------- 时间轴主体（竖向 + 中央轴线） ---------- */
.kelme_timeline {
    position: relative;
    padding: 0;
    margin: 0;
}
.kelme_timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(0, 30, 80, 0.35);
    transform: translateX(-50%);
    border-radius: 2px;
}
.kelme_timeline::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 8px;
    height: 22px;
    background: linear-gradient(180deg, transparent, #003366 40%, #1a4d80 60%, transparent);
    border-radius: 4px;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 30, 80, 0.5);
    animation: kelme-timeline-flow 5.5s linear infinite;
    pointer-events: none;
}
@keyframes kelme-timeline-flow {
    0%   { top: -20px; opacity: 0; }
    8%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* ---------- 单个节点 ---------- */
.kelme_tl_item {
    position: relative;
    width: 50%;
    padding: 3px 22px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.kelme_tl_item.is_visible {
    opacity: 1;
    transform: translateY(0);
}

/* 奇数项（1、3、5...）：占据左侧 50% 宽度，内容右对齐贴近中央轴线 */
.kelme_tl_item:nth-child(odd) {
    left: 0;
    text-align: right;
}
/* 偶数项（2、4、6...）：占据右侧 50% 宽度，内容左对齐贴近中央轴线 */
.kelme_tl_item:nth-child(even) {
    left: 50%;
    text-align: left;
}

/* 节点圆点 */
.kelme_tl_item::before {
    content: "";
    position: absolute;
    top: 20px;
    width: 8px;
    height: 8px;
    background: #003366;
    border: none;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(0, 30, 80, 35%);
    z-index: 2;
}
.kelme_tl_item:nth-child(odd)::before {
    right: -4px;
}
.kelme_tl_item:nth-child(even)::before {
    left: -4px;
}

/* 节点内层容器：跟随外层 text-align 靠左/靠右 */
.kelme_tl_inner {
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
}

/* 年份 —— 纯白色文字，加粗，独占一行作为标题 */
.kelme_tl_year {
    display: block;
    width: fit-content;
    max-width: 100%;
    font-size: 22px;
    font-weight: 700;
    color: #003366;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    letter-spacing: 1px;
    margin: 0 0 1px;
    transition: color 0.3s;
}

/* 内容 —— 纯文字段落，无背景无描边 */
.kelme_tl_card {
    display: block;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    color: #1a4d80;
    font-size: 16px;
    line-height: 1.5;
    width: fit-content;
    max-width: 100%;
    text-align: left;
}
.kelme_tl_card .kelme_tl_sub {
    display: block;
    font-size: 16px;
    color: #1a4d80;
    line-height: 1.5;
}

/* 奇数项（左侧）：年份和卡片都靠右贴齐（贴近中央轴线） */
.kelme_tl_item:nth-child(odd) .kelme_tl_year,
.kelme_tl_item:nth-child(odd) .kelme_tl_card {
    margin-left: auto;
}
/* 偶数项（右侧）：年份和卡片都靠左贴齐（贴近中央轴线） */
.kelme_tl_item:nth-child(even) .kelme_tl_year,
.kelme_tl_item:nth-child(even) .kelme_tl_card {
    margin-right: auto;
}

/* ============================================================
   响应式
   ============================================================ */

@media screen and (max-width: 1200px) {
    .kelme_tl_item {
        padding: 3px 16px;
    }
}

@media screen and (max-width: 992px) {
    .kelme_timeline::before,
    .kelme_timeline::after {
        left: 20px;
        transform: none;
    }
    .kelme_tl_item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding: 3px 14px 3px 36px;
    }
    .kelme_tl_item::before {
        left: 12px !important;
        right: auto !important;
    }
    /* 移动端统一左对齐：清掉桌面端的 margin-auto */
    .kelme_tl_item:nth-child(odd) .kelme_tl_year,
    .kelme_tl_item:nth-child(odd) .kelme_tl_card,
    .kelme_tl_item:nth-child(even) .kelme_tl_year,
    .kelme_tl_item:nth-child(even) .kelme_tl_card {
        margin-left: 0;
        margin-right: 0;
    }
}

@media screen and (max-width: 768px) {
    .kelme_timeline_section {
        padding: 14px 0 10px;
    }
    .kelme_tl_year {
        font-size: 20px;
    }
    .kelme_tl_card,
    .kelme_tl_card .kelme_tl_sub {
        font-size: 14px;
        line-height: 1.5;
    }
    .kelme_tl_item {
        padding: 2px 12px 2px 32px;
    }
}
