/* 专题合集前台 */
.topic-page, .topic-detail { padding: 20px 0 40px; }
.topic-crumb { font-size: 13px; color: #999; margin-bottom: 14px; }
.topic-crumb a { color: #999; }
.topic-crumb a:hover { color: #e62828; }
.topic-crumb span { color: #333; }

.topic-h1 { font-size: 28px; color: #222; margin: 0 0 6px; }
.topic-sub { color: #888; font-size: 14px; margin: 0 0 22px; }

.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.topic-card {
    display: block;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.topic-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.topic-cover {
    height: 130px;
    background: linear-gradient(135deg, #ff7a7a, #e62828);
    position: relative;
    background-size: cover;
    background-position: center;
}
.topic-count {
    position: absolute; right: 10px; bottom: 8px;
    background: rgba(0,0,0,.5); color: #fff;
    font-size: 12px; padding: 2px 8px; border-radius: 10px;
}
.topic-info { padding: 12px 14px; }
.topic-info h3 { font-size: 16px; color: #222; margin: 0 0 6px; }
.topic-info p { font-size: 13px; color: #888; line-height: 1.6; margin: 0; min-height: 42px; }

.topic-detail-hd {
    background: #fff; border-radius: 8px; padding: 20px;
    margin-bottom: 18px; border: 1px solid #eee;
}
.topic-detail-hd h1 { font-size: 24px; color: #222; margin: 0 0 8px; }
.topic-detail-intro { color: #666; font-size: 14px; line-height: 1.8; margin: 0; }
.topic-detail-cover { width: 100%; max-height: 240px; object-fit: cover; border-radius: 6px; margin-bottom: 14px; }

.topic-empty { text-align: center; color: #999; padding: 50px 0; font-size: 14px; }
.topic-empty a { color: #e62828; }

@media (max-width: 900px) {
    .topic-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .topic-grid { grid-template-columns: 1fr; }
    .topic-h1 { font-size: 22px; }
}

/* ========== 新版布局：专题合集列表 / 详情，仅作用于 .mj-new-home ========== */
.mj-new-home .mj-topic-main { max-width: 1188px; padding-top: 14px; }
.mj-new-home .mj-topic-panel { padding: 18px 22px 24px; border-radius: 8px; background: #fff; }
.mj-new-home .mj-topic-head { display: flex; align-items: baseline; gap: 10px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid #f4f4f5; }
.mj-new-home .mj-topic-head h1 { margin: 0; color: #222; font-size: 20px; line-height: 28px; font-weight: 700; }
.mj-new-home .mj-topic-head span { color: #aaa; font-size: 12px; }

.mj-new-home .topic-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mj-new-home .topic-card { border: 1px solid #f2f2f3; }
.mj-new-home .topic-card:hover { border-color: #f7d7d7; box-shadow: 0 8px 20px rgba(230, 40, 40, .08); }
.mj-new-home .topic-cover { height: 118px; }
.mj-new-home .topic-info { padding: 10px 12px 12px; }
.mj-new-home .topic-info h3 { display: -webkit-box; overflow: hidden; font-size: 15px; line-height: 22px; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.mj-new-home .topic-info p { min-height: 40px; font-size: 12.5px; }

.mj-new-home .mj-topic-hero { display: flex; gap: 20px; padding: 22px 26px; margin-bottom: 14px; border-radius: 8px; background: #fff; }
.mj-new-home .mj-topic-hero-pic { flex: none; width: 300px; height: 168px; border-radius: 6px; background: #f6f6f7; overflow: hidden; }
.mj-new-home .mj-topic-hero-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mj-new-home .mj-topic-hero-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.mj-new-home .mj-topic-hero-txt h1 { margin: 0 0 10px; color: #1f1f1f; font-size: 24px; line-height: 34px; font-weight: 700; }
.mj-new-home .mj-topic-hero-txt p { display: -webkit-box; margin: 0; overflow: hidden; color: #777; font-size: 13.5px; line-height: 1.9; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.mj-new-home .mj-topic-hero-meta { display: flex; align-items: center; gap: 12px; margin-top: 14px; color: #aaa; font-size: 12px; }
.mj-new-home .mj-topic-hero-meta span { padding: 0 10px; height: 22px; border-radius: 11px; background: #fff2f2; color: #e62828; line-height: 22px; }
.mj-new-home .mj-topic-hero-meta em { font-style: normal; }

.mj-new-home .mj-topic-list { padding: 14px 18px 18px; border-radius: 8px; background: #fff; }
.mj-new-home .mj-topic-list-head { display: flex; align-items: baseline; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid #f4f4f5; }
.mj-new-home .mj-topic-list-head h2 { margin: 0; color: #222; font-size: 17px; line-height: 26px; font-weight: 700; }
.mj-new-home .mj-topic-list-head span { color: #bbb; font-size: 12px; }
.mj-new-home .mj-topic-list .mj-card { padding: 16px 0; }
.mj-new-home .mj-topic-list .mj-card:last-child { border-bottom: 0; }

@media (min-width: 1500px) {
    .mj-new-home .mj-topic-main { max-width: 1188px; margin-left: 164px; margin-right: auto; padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 1100px) {
    .mj-new-home .topic-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .mj-new-home .mj-topic-main { padding: 10px 10px 20px; }
    .mj-new-home .mj-topic-panel { padding: 14px 14px 16px; }
    .mj-new-home .topic-grid { grid-template-columns: repeat(2, 1fr); }
    .mj-new-home .mj-topic-hero { flex-direction: column; gap: 12px; padding: 14px; }
    .mj-new-home .mj-topic-hero-pic { width: 100%; height: 150px; }
    .mj-new-home .mj-topic-hero-txt h1 { font-size: 19px; line-height: 27px; }
    .mj-new-home .mj-topic-list { padding: 12px 12px 14px; }
}
@media (max-width: 560px) {
    .mj-new-home .topic-grid { grid-template-columns: 1fr; }
}
