/* ============================================================
   CEA Horizontal Timeline
   ============================================================ */

/* ---- 外层包裹 ---- */
.cea-timeline-wrap {
    position: relative;
}

/* ---- 水平线：绝对定位在垂直中心 ---- */
.cea-tl-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #c8c8c8;
    transform: translateY(-50%);
    z-index: 0;
}

/* ---- 主 flex 容器 ---- */
.cea-timeline {
    display: flex;
    align-items: stretch;
    position: relative;
    z-index: 1;
    min-width: 560px;
}

/* ---- 每一列 ---- */
.cea-tl-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

/* ---- 上/下半区 ---- */
.cea-tl-half {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 8px;
    min-height: 120px; /* 保证足够高度 */
}

/* 上半区：内容靠底部（贴近中线） */
.cea-tl-top {
    justify-content: flex-end;
    padding-bottom: 14px;
}

/* 下半区：内容靠顶部（贴近中线） */
.cea-tl-bottom {
    justify-content: flex-start;
    padding-top: 14px;
}

/* ---- 节点 ---- */
.cea-tl-dot-wrap {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cea-tl-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid #b0b0b0;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* ---- 镂空序号 ---- */
.cea-tl-number {
    font-size: 72px;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: #1e2d4a;
    text-align: center;
    user-select: none;
    display: block;
    width: 100%;
}

/* 上半区的数字：贴底对齐（靠近线） */
.cea-tl-top .cea-tl-number {
    margin-top: auto;
}

/* 下半区的数字：贴顶对齐（靠近线） */
.cea-tl-bottom .cea-tl-number {
    margin-bottom: auto;
}

/* ---- 卡片 ---- */
.cea-tl-card {
    background-color: #1e2d4a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 14px 16px;
    width: 100%;
    box-sizing: border-box;
}

.cea-tl-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.4;
}

.cea-tl-card-text {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
}

/* ============================================================
   响应式：小屏改为垂直竖向布局
   左侧竖线 + 节点，右侧：大数字 + 卡片 从上到下排列
   ============================================================ */
@media (max-width: 767px) {

    /* 竖线 */
    .cea-tl-line {
        top: 0;
        bottom: 0;
        left: 18px;
        right: auto;
        width: 2px;
        height: 100%;
        transform: none;
    }

    /* 整体纵向堆叠 */
    .cea-timeline {
        flex-direction: column;
        min-width: unset;
    }

    /* 每项：横排（左=节点，右=内容） */
    .cea-tl-item {
        flex-direction: row;
        align-items: flex-start;
        margin-bottom: 24px;
        min-height: unset;
    }

    /* 节点固定宽度，位于左侧竖线处 */
    .cea-tl-dot-wrap {
        flex-shrink: 0;
        width: 38px;
        padding-top: 8px;
        justify-content: center;
    }

    /* 上下半区：重置为普通 block，纵向叠加在右侧 */
    .cea-tl-half {
        flex: unset;
        width: auto;
        min-height: unset;
        display: block;
        padding: 0;
    }

    .cea-tl-top {
        justify-content: flex-start;
        padding-bottom: 0;
    }

    .cea-tl-bottom {
        justify-content: flex-start;
        padding-top: 6px;
    }

    /* 右侧内容区宽度撑满 */
    .cea-tl-item > .cea-tl-top,
    .cea-tl-item > .cea-tl-bottom {
        flex: 1;
        min-width: 0;
    }

    /* 数字缩小 */
    .cea-tl-number {
        font-size: 36px;
        text-align: left;
        margin: 0;
        line-height: 1;
        width: auto;
    }

    /* 重置桌面端 margin auto */
    .cea-tl-top .cea-tl-number,
    .cea-tl-bottom .cea-tl-number {
        margin: 0;
    }
}
