/* 原有样式保持不变 */
.post-timeline {
    padding: 15px;
    background: #fff;
}

.post-timeline .title {
    width: 100%;
    border-bottom: 1px solid #ddd;
    display: table;
    padding: 0 0 3px 0;
}

.post-timeline .title span {
    float: left;
    line-height: 40px;
    font-size: 18px;
    font-weight: normal;
    position: relative;
    text-indent: 10px;
}

.post-timeline .title span:before {
    content: '';
    border-left: 2px solid #0590d6;
    display: inline-block;
    height: 18px;
    position: absolute;
    left: 0;
    bottom: 10px;
}

.post-timeline .post-timeline-content .today {
    width: 150px;
    height: 30px;
    margin: 15px 0;
    display: flex;
    border-radius: 4px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(127, 149, 188, 0.2);
}

.post-timeline .post-timeline-content .today span {
    flex: 0 0 50%;
    line-height: 30px;
    font-size: 14px;
    text-align: center;
}

.post-timeline .post-timeline-content .today time:first-of-type {
    color: #fcb13d;
}

.post-timeline .post-timeline-content .today span:last-of-type {
    color: #ffffff;
    background: #fcb13d;
}

.post-timeline .post-timeline-content ul li {
    display: flex;
    padding-bottom: 25px;
    position: relative;
    cursor: pointer;
}

.post-timeline .post-timeline-content ul li > time {
    flex: 0 0 55px;
    padding-left: 12px;
    line-height: 20px;
    font-size: 14px;
    color: #808595;
    position: relative;
    text-indent: 5px;
}

.post-timeline .post-timeline-content ul li:after {
    display: block;
    position: absolute;
    left: 5px;
    top: 12px;
    content: '';
    width: 1px;
    height: 100%;
    box-sizing: border-box;
    border: 1px dashed #DEDEDE;
}

.post-timeline .post-timeline-content ul li > time:after {
    display: block;
    position: absolute;
    left: 0;
    top: 3px;
    content: '';
    width: 12px;
    height: 12px;
    box-sizing: border-box;
    border: 3px solid rgb(229, 229, 229);
    background: #fff;
    border-radius: 50%;
    z-index: 1;
}

.post-timeline .post-timeline-content ul li .info .title {
    display: block;
    margin-bottom: 10px;
    line-height: 20px;
    font-size: 16px;
    transition: all 0.1s linear;
    color: #04a6e6;
}

.post-timeline .post-timeline-content ul li .info > time {
    display: block;
    background: url(../images/time.png) no-repeat 0 4px;
    text-indent: 23px;
}

.post-timeline .post-timeline-content ul li .info .content-wrapper,
.post-timeline .post-timeline-content ul li .info time {
    line-height: 24px;
    font-size: 14px;
    color: #b8b9bd;
    word-break: break-all;
}

.post-timeline .post-timeline-content ul li .info .content-wrapper:nth-child(3) {
    padding: 10px;
    background-color: rgb(232, 241, 250);
    color: #555;
}

.post-timeline .post-timeline-content ul li:hover time::after {
    border-color: #258cff;
}

.post-timeline .post-timeline-content ul li:hover .info .title {
    color: #0069df;
}

.post-timeline .post-timeline-content ul li:hover .info > time {
    color: #747576;
}

.post-timeline .post-timeline-content ul .more {
    margin: 20px auto;
    width: 150px;
    height: 36px;
    line-height: 36px;
    border: 1px solid #0279ff;
    font-size: 14px;
    font-weight: 400;
    color: #0279ff;
    text-align: center;
    cursor: pointer;
}

.post-timeline .post-timeline-content ul .more:hover {
    border: 1px solid #0279ff;
    color: #fbfdff;
    background-color: #0279ff;
}

/* 添加的折叠展开样式 - 开始 */
.post-timeline .post-timeline-content ul li .info .content-wrapper {
    position: relative;
    max-height: 72px;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-right: 25px;
}

.post-timeline .post-timeline-content ul li .info .content-wrapper.expanded {
    max-height: 1000px;
}

.post-timeline .post-timeline-content ul li .info .content-wrapper::after {
    content: '';
    position: absolute;
    right: 10px;
    bottom: 5px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #0279ff;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.post-timeline .post-timeline-content ul li .info .content-wrapper.expanded::after {
    transform: rotate(180deg);
}

/* 渐变遮罩效果 */
.post-timeline .post-timeline-content ul li .info .content-wrapper:not(.expanded) {
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

/* ===== 关键新增：不需要折叠时的完全展开状态 ===== */
.post-timeline .post-timeline-content ul li .info .content-wrapper.no-collapse {
    max-height: none !important;
    overflow: visible;
    padding-right: 10px;
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

/* 移除不需要折叠的元素的箭头和遮罩 */
.post-timeline .post-timeline-content ul li .info .content-wrapper.no-collapse::after {
    display: none;
}

/*************************************新增响应式****************************************/

/* 平板设备 (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .post-timeline {
        padding: 12px;
    }

    .post-timeline .title span {
        font-size: 16px;
        line-height: 36px;
    }

    .post-timeline .title span:before {
        height: 16px;
        bottom: 9px;
    }

    .post-timeline .post-timeline-content .today {
        width: 140px;
        height: 28px;
        margin: 12px 0;
    }

    .post-timeline .post-timeline-content .today span {
        line-height: 28px;
        font-size: 13px;
    }

    .post-timeline .post-timeline-content ul li {
        padding-bottom: 20px;
    }

    .post-timeline .post-timeline-content ul li > time {
        flex: 0 0 50px;
        font-size: 13px;
        padding-left: 10px;
    }

    .post-timeline .post-timeline-content ul li .info .title {
        font-size: 15px;
        line-height: 18px;
        margin-bottom: 8px;
    }

    .post-timeline .post-timeline-content ul li .info .content-wrapper,
    .post-timeline .post-timeline-content ul li .info time {
        font-size: 13px;
        line-height: 22px;
    }

    .post-timeline .post-timeline-content ul li .info .content-wrapper {
        max-height: 66px; /* 3行 x 22px */
    }

    .post-timeline .post-timeline-content ul .more {
        width: 140px;
        height: 34px;
        line-height: 34px;
        font-size: 13px;
    }
}

/* 手机设备 (< 768px) */
@media screen and (max-width: 767px) {
    .post-timeline {
        padding: 10px;
    }

    .post-timeline .title span {
        font-size: 15px;
        line-height: 34px;
        text-indent: 8px;
    }

    .post-timeline .title span:before {
        height: 14px;
        bottom: 9px;
    }

    .post-timeline .post-timeline-content .today {
        width: 130px;
        height: 26px;
        margin: 10px 0;
    }

    .post-timeline .post-timeline-content .today span {
        line-height: 26px;
        font-size: 12px;
    }

    .post-timeline .post-timeline-content ul li {
        padding-bottom: 18px;
    }

    .post-timeline .post-timeline-content ul li > time {
        flex: 0 0 45px;
        font-size: 12px;
        padding-left: 8px;
        text-indent: 3px;
    }

    .post-timeline .post-timeline-content ul li > time:after {
        width: 10px;
        height: 10px;
        border-width: 2px;
        top: 4px;
    }

    .post-timeline .post-timeline-content ul li:after {
        left: 4px;
        top: 10px;
    }

    .post-timeline .post-timeline-content ul li .info .title {
        font-size: 14px;
        line-height: 17px;
        margin-bottom: 6px;
    }

    .post-timeline .post-timeline-content ul li .info > time {
        text-indent: 20px;
        background-size: 14px;
    }

    .post-timeline .post-timeline-content ul li .info .content-wrapper,
    .post-timeline .post-timeline-content ul li .info time {
        font-size: 12px;
        line-height: 20px;
    }

    .post-timeline .post-timeline-content ul li .info .content-wrapper {
        max-height: 60px; /* 3行 x 20px */
        padding-right: 20px;
    }

    .post-timeline .post-timeline-content ul li .info .content-wrapper::after {
        right: 8px;
        border-left-width: 4px;
        border-right-width: 4px;
        border-top-width: 5px;
    }

    .post-timeline .post-timeline-content ul .more {
        width: 130px;
        height: 32px;
        line-height: 32px;
        font-size: 12px;
        margin: 15px auto;
    }
}

/* 超小屏幕 (< 480px) - 优化时间轴布局 */
@media screen and (max-width: 480px) {
    .post-timeline .post-timeline-content ul li {
        flex-direction: column;
        padding-bottom: 15px;
        padding-left: 0;
    }

    .post-timeline .post-timeline-content ul li > time {
        flex: none;
        width: auto;
        padding-left: 20px;
        margin-bottom: 5px;
        font-size: 11px;
        color: #999;
    }

    .post-timeline .post-timeline-content ul li > time:after {
        left: 0;
        top: 2px;
    }

    .post-timeline .post-timeline-content ul li:after {
        left: 4px;
        top: 20px;
        height: calc(100% - 20px);
    }

    .post-timeline .post-timeline-content ul li .info {
        padding-left: 20px;
    }

    .post-timeline .post-timeline-content ul li .info .title {
        font-size: 13px;
        line-height: 16px;
    }

    .post-timeline .post-timeline-content ul li .info .content-wrapper {
        max-height: 56px; /* 3行 x 18.6px */
    }

    .post-timeline .post-timeline-content ul .more {
        width: 100%;
        max-width: 200px;
    }
}

/* 极小屏幕 (< 360px) */
@media screen and (max-width: 360px) {
    .post-timeline .post-timeline-content .today {
        width: 120px;
        height: 24px;
    }

    .post-timeline .post-timeline-content .today span {
        line-height: 24px;
        font-size: 11px;
    }

    .post-timeline .post-timeline-content ul li .info .title {
        font-size: 12px;
    }

    .post-timeline .post-timeline-content ul li .info .content-wrapper,
    .post-timeline .post-timeline-content ul li .info time {
        font-size: 11px;
        line-height: 18px;
    }

    .post-timeline .post-timeline-content ul li .info .content-wrapper {
        max-height: 54px; /* 3行 x 18px */
    }
}