﻿.xstj li {
    position: relative;
    display: flex;
    align-items: center;
    height: 38px;
    line-height: 38px;
    font-size: 14px;
    box-sizing: border-box;
    padding: 0 5px 0 0;
    width: 100%;
    /* 如果要竖排，建议100%，如果要横排可按需调整 */
}

/*线条颜色*/
.xstj li::after {
    background-color: #eee;
}

/*底边边框一像素*/
.xstj li::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    transform-origin: 0 0;
}

/*设备像素比*/
@media only screen and (-webkit-min-device-pixel-ratio: 2.0),
only screen and (min-resolution: 2dppx) {

    .xstj li::after,
    .xstj li::after {
        transform: scaleY(0.5);
    }
}

/*设备像素比*/
@media only screen and (-webkit-min-device-pixel-ratio: 3.0),
only screen and (min-resolution: 3dppx) {

    .xstj li::after,
    .xstj li::after {
        transform: scaleY(0.333);
    }
}

.xstj li .s1 {
    color: #435692;
    font-size: 14px;
    margin-right: 4px;
    flex-shrink: 0;
}

.xstj li .s2 a {
    color: #8a1d1d;
    font-size: 14px;
    margin-right: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    /* 占据中间所有空间 */
    transition: color 0.3s;
}

.xstj li .s5 {
    color: #b3b3b3;
    font-size: 12px;
    margin-left: auto;
    /* 靠右对齐 */
    flex-shrink: 0;
}

.xstj li .s2 a:hover {
    color: #eb6100;
}


.ydb {
    padding: 0;
    margin: 0;
    list-style: none;
}

.ydb li {
    display: flex;
    align-items: center;
    padding: 0 10px;
    height: 36px;
    line-height: 36px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: background 0.2s;
}

.ydb li:hover {
    background: #f7f7f7;
}

.ydb li .s1 {
    color: #8a1d1d;
    margin-right: 8px;
    font-weight: bold;
    flex-shrink: 0;
}

/* 默认PC端，内容不换行，超出省略 */
.ydb li .s2,
.ydb li .s3,
.ydb li .s4 {
    margin-right: 8px;
    color: #435692;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.ydb li .s5 {
    margin-left: auto;
    color: #b3b3b3;
    font-size: 13px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* 手机端，内容自动换行 */
@media (max-width: 640px) {
    .ydb li {
        flex-direction: column !important; /* 强制竖排 */
        align-items: flex-start !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 2px 5px !important;
    }
    .ydb li .s1,
    .ydb li .s2,
    .ydb li .s3,
    .ydb li .s4,
    .ydb li .s5 {
        font-style: normal !important;
        height: 28px !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;   /* 强制100%宽 */
        margin-right: 0 !important;
        margin-bottom: 2px !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }
    .ydb li .s5 {
        text-align: right !important;
        margin-bottom: 0 !important;
    }
    .ydb li .s3 {
        font-size: 14px !important;;
        padding-left: 0 !important;;  
    }
}

.ydb li .s2 {
    margin-right: 16px;           /* 增加与s3的间距 */
    color: #222;
    font-weight: 500;
    font-size: 15px;
    vertical-align: middle;
    display: inline-block;
    max-width: 50%;               /* 调整为50%，让s2和s3更均衡 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ydb li .s3 {
    color: #888;
    font-size: 13px;
    font-style: italic;           /* 斜体显示，区分度更高 */
    padding-left: 10px;           /* 与s2拉开距离 */
    /* border-left: 1px solid #e0e0e0;  去掉竖线 */
    margin-right: 8px;
    vertical-align: middle;
    display: inline-block;
    max-width: 25%;               /* 防止作者名过长 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

