/* 帖子末尾信息：资源入口卡片，2026-11-21 */
.thread-end-info {
    position: relative;
    margin: 18px 0 2px;
    padding: 16px;
    border: 1px solid #e4e9f7;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 72%);
    box-shadow: 0 8px 22px rgba(50, 65, 110, .06);
    overflow: hidden;
    word-break: normal;
}

.thread-end-info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, #7888fc, #a7b4ff, transparent);
    opacity: .9;
}

.tei-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tei-kicker {
    color: #8a96b3;
    font-size: 9px;
    line-height: 1;
    letter-spacing: 1.8px;
    font-weight: 800;
}

.tei-title {
    color: #2d3854;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.2px;
}

.tei-title::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 14px;
    margin-right: 7px;
    border-radius: 999px;
    background: linear-gradient(180deg, #7888fc, #a7b4ff);
    vertical-align: -2px;
}

.tei-hint {
    margin-left: auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef1fb;
    color: #7b87a4;
    font-size: 10.5px;
    line-height: 1.2;
    white-space: nowrap;
}

.tei-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tei-text {
    margin: 0;
    color: #58647c;
    font-size: 13px;
    line-height: 1.75;
    word-break: normal;
    overflow-wrap: break-word;
}

.tei-text + .tei-text {
    margin-top: 0;
}

.tei-inline-link {
    color: #5c6ef0;
    text-decoration: none;
    border-bottom: 1px dashed rgba(92, 110, 240, .45);
    overflow-wrap: anywhere;
}

.tei-inline-link:hover {
    color: #4053d8;
    border-bottom-color: #4053d8;
}

.tei-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid #e2e7f6;
    border-radius: 10px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 2px 7px rgba(50, 65, 110, .03);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.tei-link:hover {
    color: inherit;
    border-color: #b9c3ff;
    box-shadow: 0 7px 16px rgba(91, 110, 230, .12);
    transform: translateY(-1px);
}

.tei-link-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #7888fc, #9aa7ff);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    box-shadow: 0 3px 8px rgba(120, 136, 252, .22);
}

.tei-link-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tei-link-label {
    color: #34405c;
    font-size: 12.5px;
    line-height: 1.35;
    font-weight: 700;
    word-break: normal;
    overflow-wrap: break-word;
}

.tei-link-url {
    color: #8a95ad;
    font-size: 10.5px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tei-link-arrow {
    flex: 0 0 auto;
    color: #7888fc;
    font-size: 17px;
    line-height: 1;
    font-weight: 800;
}

.tei-rich {
    color: #58647c;
    font-size: 13px;
    line-height: 1.75;
    word-break: normal;
    overflow-wrap: break-word;
}

.tei-rich a {
    color: #5c6ef0;
    text-decoration: none;
    border-bottom: 1px dashed rgba(92, 110, 240, .45);
}

body.dark-style .thread-end-info {
    border-color: #3c4254;
    background: linear-gradient(135deg, #232733 0%, #292d3a 72%);
    box-shadow: none;
}

body.dark-style .tei-title { color: #eff2f9; }
body.dark-style .tei-kicker { color: #9aa4ba; }
body.dark-style .tei-hint { background: #343a4c; color: #b8c1d5; }
body.dark-style .tei-text,
body.dark-style .tei-rich { color: #c3cadb; }
body.dark-style .tei-link { background: #2e3341; border-color: #444b60; box-shadow: none; }
body.dark-style .tei-link:hover { border-color: #7e8eff; box-shadow: 0 7px 16px rgba(0, 0, 0, .18); }
body.dark-style .tei-link-label { color: #e6ebf7; }
body.dark-style .tei-link-url { color: #98a3bb; }
body.dark-style .tei-inline-link,
body.dark-style .tei-rich a { color: #aeb9ff; border-bottom-color: rgba(174, 185, 255, .45); }

@media (max-width: 576px) {
    .thread-end-info {
        margin-top: 14px;
        padding: 13px 12px 12px;
        border-radius: 12px;
    }
    .tei-head { gap: 6px; margin-bottom: 10px; }
    .tei-title { font-size: 13px; }
    .tei-hint { font-size: 10px; padding: 3px 7px; }
    .tei-content { gap: 7px; }
    .tei-text { font-size: 12.5px; line-height: 1.7; }
    .tei-link { gap: 8px; padding: 9px 10px; }
    .tei-link-icon { flex-basis: 26px; width: 26px; height: 26px; font-size: 13px; }
    .tei-link-label { font-size: 12px; }
    .tei-link-url { font-size: 10px; }
}
