/* 精选专题 — 参考官网集 topics 结构，适配白嫖导航 antidote */

.tp-page {
    --tp-ink: #1f2a37;
    --tp-muted: #6b7c8f;
    --tp-line: rgba(24, 144, 255, 0.12);
    --tp-soft: #f5f8fc;
    --tp-card: #ffffff;
    --tp-accent: var(--bp-blue, #1890ff);
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 20px 64px;
    color: var(--tp-ink);
}

.tp-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 13px;
    color: var(--tp-muted);
    margin-bottom: 18px;
}

.tp-crumb a {
    color: inherit;
    text-decoration: none;
}

.tp-crumb a:hover {
    color: var(--tp-accent);
}

.tp-crumb span {
    opacity: 0.5;
}

.tp-hero {
    margin-bottom: 28px;
}

.tp-hero h1 {
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.tp-hero p {
    margin: 0;
    max-width: 720px;
    color: var(--tp-muted);
    font-size: 15px;
    line-height: 1.7;
}

.tp-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.tp-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(24, 144, 255, 0.08);
    color: var(--tp-accent);
    font-size: 13px;
    font-weight: 600;
}

.tp-sec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 32px 0 14px;
}

.tp-sec-head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.tp-sec-head p {
    margin: 0;
    color: var(--tp-muted);
    font-size: 13px;
}

/* 编辑精选大卡 */
.tp-pick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.tp-pick {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border-radius: 18px;
    background: var(--tp-card);
    border: 1px solid var(--tp-line);
    box-shadow: 0 8px 24px rgba(31, 45, 61, 0.05);
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    min-height: 168px;
}

.tp-pick:hover {
    transform: translateY(-2px);
    border-color: rgba(24, 144, 255, 0.28);
    box-shadow: 0 14px 32px rgba(24, 144, 255, 0.1);
}

.tp-pick-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: var(--tp-muted);
}

.tp-pick h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}

.tp-pick .tp-summary {
    margin: 0;
    color: var(--tp-muted);
    font-size: 13px;
    line-height: 1.55;
    flex: 1;
}

.tp-logo-row {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: auto;
}

.tp-logo-row img,
.tp-logo-row .tp-logo-ph {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 2px solid #fff;
    background: #eef3f9;
    object-fit: cover;
    margin-left: -6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tp-logo-row img:first-child,
.tp-logo-row .tp-logo-ph:first-child {
    margin-left: 0;
}

.tp-logo-ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--tp-accent);
}

/* 全部专题列表卡 */
.tp-list {
    display: grid;
    gap: 12px;
}

.tp-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--tp-card);
    border: 1px solid var(--tp-line);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.tp-row:hover {
    border-color: rgba(24, 144, 255, 0.3);
    box-shadow: 0 10px 28px rgba(24, 144, 255, 0.08);
}

.tp-row h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 800;
}

.tp-row .tp-summary {
    margin: 0 0 10px;
    color: var(--tp-muted);
    font-size: 13px;
    line-height: 1.5;
}

.tp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tp-tag {
    font-size: 12px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--tp-soft);
    color: #4b5c70;
}

.tp-row-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    min-width: 140px;
}

.tp-count {
    font-size: 13px;
    color: var(--tp-muted);
    white-space: nowrap;
}

.tp-go {
    font-size: 13px;
    font-weight: 700;
    color: var(--tp-accent);
}

/* ===== 详情页 ===== */
.tp-detail-card {
    background: var(--tp-card);
    border: 1px solid var(--tp-line);
    border-radius: 20px;
    padding: 28px 28px 22px;
    box-shadow: 0 10px 30px rgba(31, 45, 61, 0.05);
    margin-bottom: 22px;
}

.tp-detail-card h1 {
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.tp-detail-card .tp-lead {
    margin: 0 0 16px;
    color: var(--tp-muted);
    font-size: 15px;
    line-height: 1.75;
    max-width: 760px;
}

.tp-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    color: var(--tp-muted);
    font-size: 13px;
    padding-bottom: 16px;
    border-bottom: 1px dashed rgba(24, 144, 255, 0.18);
}

.tp-detail-meta strong {
    color: var(--tp-accent);
    font-weight: 700;
}

.tp-anchor-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tp-anchor-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(24, 144, 255, 0.08);
    color: var(--tp-accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.tp-anchor-nav a:hover {
    background: rgba(24, 144, 255, 0.14);
}

.tp-anchor-nav em {
    font-style: normal;
    opacity: 0.7;
}

.tp-block {
    margin: 28px 0 8px;
}

.tp-block-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 800;
}

.tp-block-title::before {
    content: '';
    width: 4px;
    height: 16px;
    border-radius: 4px;
    background: var(--tp-accent);
}

.tp-block-title span {
    color: var(--tp-muted);
    font-size: 13px;
    font-weight: 600;
}

.tp-site-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.tp-site {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--tp-card);
    border: 1px solid var(--tp-line);
    text-decoration: none;
    color: inherit;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.tp-site:hover {
    transform: translateY(-1px);
    border-color: rgba(24, 144, 255, 0.28);
    box-shadow: 0 10px 24px rgba(24, 144, 255, 0.08);
}

.tp-site img,
.tp-site .tp-site-ph {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    background: #eef3f9;
    flex: 0 0 auto;
}

.tp-site-ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--tp-accent);
}

.tp-site-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.tp-site-domain {
    margin-top: 3px;
    font-size: 12px;
    color: var(--tp-muted);
}

.tp-other {
    margin-top: 40px;
    padding-top: 8px;
}

.tp-other-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.tp-other-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.tp-other-head a {
    font-size: 13px;
    color: var(--tp-accent);
    text-decoration: none;
    font-weight: 600;
}

.tp-other-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tp-other-list a {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--tp-soft);
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.tp-other-list a:hover {
    background: rgba(24, 144, 255, 0.1);
    color: var(--tp-accent);
}

.tp-empty {
    padding: 48px 20px;
    text-align: center;
    color: var(--tp-muted);
    background: var(--tp-card);
    border: 1px dashed var(--tp-line);
    border-radius: 16px;
}

.tp-hub-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.tp-hub-links a {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--tp-line);
    background: #fff;
    color: var(--tp-muted);
    text-decoration: none;
    font-size: 12px;
}

.tp-hub-links a:hover {
    color: var(--tp-accent);
    border-color: rgba(24, 144, 255, 0.3);
}

@media (max-width: 900px) {
    .tp-pick-grid,
    .tp-site-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tp-row {
        grid-template-columns: 1fr;
    }

    .tp-row-aside {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .tp-page {
        padding: 18px 14px 48px;
    }

    .tp-hero h1,
    .tp-detail-card h1 {
        font-size: 24px;
    }

    .tp-pick-grid,
    .tp-site-grid {
        grid-template-columns: 1fr;
    }

    .tp-detail-card {
        padding: 20px 16px 16px;
    }
}
