@charset "utf-8";

/**
 * 仅用于根目录 list.html 内 .list-page-textlist
 * 复刻 list/list.html 文本列表版式，并覆盖本站 .listwrap 默认卡片列表样式
 */

.listwrap .list-page-textlist {
    margin-top: 0.2rem;
}

.listwrap .list-page-textlist ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.listwrap .list-page-textlist ul li {
    box-sizing: border-box;
    position: relative;
    left: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding-left: 0;
    padding-right: 0;
    min-height: 64px;
    line-height: normal;
    border-top: 1px dashed #ccc;
    font-size: 16px;
    transition: color 0.35s, border-color 0.35s;
    height: auto !important;
    margin-bottom: 0 !important;
    background: none !important;
    overflow: hidden;
}

/* 悬浮背景铺开层：从左向右延伸 */
.listwrap .list-page-textlist ul li::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(5, 77, 162, 0.10);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.45s ease;
    z-index: 0;
    pointer-events: none;
}

/* 图标作为 flex 首项，与标题同一行垂直居中对齐（避免整行 background 与文字盒高度不一致） */
.listwrap .list-page-textlist ul li::before {
    content: "";
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    background: url(../images/list-dot1.png) no-repeat center;
    background-size: contain;
    align-self: center;
    position: relative;
    z-index: 1;
}

.listwrap .list-page-textlist ul li:hover::before {
    background-image: url(../images/list-dot2.png);
}

.listwrap .list-page-textlist ul li:first-child {
    border-top: none;
}

.listwrap .list-page-textlist ul li a {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.35;
    position: relative;
    z-index: 1;
}

.listwrap .list-page-textlist ul li span {
    order: 2;
    flex-shrink: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    align-self: center;
    float: none;
    padding-left: 15px;
    font-size: 16px;
    color: #666;
    line-height: 1.35;
    min-height: 22px;
    position: relative;
    z-index: 1;
}

.listwrap .list-page-textlist ul li:hover a {
    color: #003f8c;
}

.listwrap .list-page-textlist ul li:hover span {
    color: #003f8c;
}

.listwrap .list-page-textlist ul li:hover::after {
    transform: scaleX(1);
}

@media screen and (max-width: 1024px) {
    .listwrap .list-page-textlist {
        margin-top: 10px;
    }

    .listwrap .list-page-textlist ul li {
        font-size: 16px;
        min-height: 54px;
    }
}

@media screen and (max-width: 670px) {
    .listwrap .list-page-textlist ul li {
        min-height: 50px;
    }
}

@media screen and (max-width: 480px) {
    .listwrap .list-page-textlist ul li {
        display: grid;
        grid-template-columns: 22px minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: start;
        column-gap: 10px;
        row-gap: 4px;
        min-height: 0;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .listwrap .list-page-textlist ul li::before {
        grid-column: 1;
        grid-row: 1 / -1;
        align-self: center;
        width: 20px;
        height: 20px;
    }

    .listwrap .list-page-textlist ul li span {
        grid-column: 2;
        grid-row: 1;
        order: 0;
        margin-left: 0;
        display: block;
        padding-left: 0;
        padding-bottom: 4px;
        font-size: 13px;
        color: #888;
    }

    .listwrap .list-page-textlist ul li a {
        grid-column: 2;
        grid-row: 2;
        order: 0;
        display: block;
        width: 100%;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
}

@media screen and (max-width: 320px) {
    .listwrap .list-page-textlist ul li {
        font-size: 14px;
    }

    .listwrap .list-page-textlist ul li span {
        font-size: 13px;
    }
}
