/* ===== 2026-10-28 话题列表页改版 (Hermes) ===== */
.tl-page { background: #f8fafc; padding-bottom: 40px; }

/* 排序条 */
.tl-sortbar {
    background: #fff; border-radius: 12px; border: 1px solid #eef2f7;
    box-shadow: 0 1px 3px rgba(15,23,42,.06);
    padding: 0 20px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.tl-sortbar a {
    padding: 15px 16px; font-size: 14.5px; color: #64748b; text-decoration: none;
    border-bottom: 2px solid transparent; font-weight: 500; transition: all .15s;
}
.tl-sortbar a:hover { color: #2563eb; }
.tl-sortbar a.active { color: #2563eb; font-weight: 600; border-bottom-color: #2563eb; }

/* 父话题分类 */
.tl-catbox {
    background: #fff; border-radius: 12px; border: 1px solid #eef2f7;
    box-shadow: 0 1px 3px rgba(15,23,42,.06);
    padding: 18px 20px;
}
.tl-cat-title {
    font-size: 15px; font-weight: 700; color: #0f172a;
    margin-bottom: 13px; display: flex; align-items: center; gap: 8px;
}
.tl-cat-title::before { content: ''; width: 4px; height: 15px; background: #2563eb; border-radius: 2px; }
.tl-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-cats a {
    padding: 6px 14px; border-radius: 8px; background: #f1f5f9;
    color: #475569; font-size: 13px; text-decoration: none;
    transition: all .18s; border: 1px solid transparent; line-height: 1.5;
}
.tl-cats a:hover { background: #e0e7ff; color: #2563eb; border-color: #c7d2fe; }
.tl-cats a.active {
    background: #2563eb; color: #fff; border-color: #2563eb;
    font-weight: 600; box-shadow: 0 2px 8px rgba(37,99,235,.28);
}

/* 话题网格 */
.tl-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 16px; }
@media (max-width: 767px) { .tl-grid { grid-template-columns: 1fr; } }

.tl-card {
    background: #fff; border-radius: 12px; border: 1px solid #eef2f7;
    box-shadow: 0 1px 3px rgba(15,23,42,.06);
    padding: 18px; display: flex; gap: 15px;
    transition: all .2s; position: relative; overflow: hidden;
}
.tl-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: #2563eb; opacity: 0; transition: opacity .2s;
}
.tl-card:hover { box-shadow: 0 6px 20px rgba(15,23,42,.10); border-color: #dbeafe; transform: translateY(-2px); }
.tl-card:hover::before { opacity: 1; }

.tl-logo {
    flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px;
    border: 1px solid #eef2f7; background: #fff; overflow: hidden;
    display: flex; align-items: center; justify-content: center; text-decoration: none;
}
.tl-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
/* 默认占位图弱化，避免抢视觉 */
.tl-logo img[src*="topic.svg"] { padding: 14px; opacity: .4; filter: grayscale(1); }

.tl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tl-name {
    font-size: 16px; font-weight: 700; color: #0f172a;
    text-decoration: none; line-height: 1.4;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tl-name:hover { color: #2563eb; }
.tl-desc {
    font-size: 12.5px; line-height: 1.65; color: #94a3b8; margin: 6px 0 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 33px;
}
.tl-meta { display: flex; align-items: center; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.tl-metric {
    font-size: 12px; color: #475569; background: #f1f5f9;
    border: 1px solid #e2e8f0; padding: 4px 10px; border-radius: 7px;
}
.tl-metric b { color: #0f172a; font-weight: 700; }
.tl-focus {
    font-size: 12px; padding: 4px 10px; border-radius: 7px; text-decoration: none;
    border: 1px solid #bfdbfe; color: #2563eb; background: #eff6ff; transition: all .15s;
}
.tl-focus:hover { background: #2563eb; color: #fff; border-color: #2563eb; }
.tl-focus.focused { border-color: #bbf7d0; color: #15803d; background: #dcfce7; }

/* 空态 */
.tl-empty {
    background: #fff; border-radius: 12px; border: 1px solid #eef2f7;
    padding: 60px 20px; text-align: center; color: #94a3b8; font-size: 14px;
}

/* 分页 */
.tl-pager { padding: 22px 0 6px; text-align: center; }
