/* News topic styles for list and show pages. */

/* Topic show pages */
.topic-show-shell {
    padding: 22px 0 40px;
    background: linear-gradient(180deg, #f5f9ff 0%, #eef5ff 100%);
}

.topic-show-shell .main {
    width: 1200px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
}

.topic-show-shell .content,
.topic-show-shell .sidebar {
    min-width: 0;
}

.topic-show-shell .content > .box + .box,
.topic-show-shell .sidebar > .box + .box {
    margin-top: 24px;
}

.topic-show-shell .box {
    background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
    border: 1px solid #dfe7f3;
    border-radius: 24px;
    box-shadow: 0 16px 36px rgba(71, 90, 119, 0.08);
    overflow: hidden;
}

.topic-show-shell .mcon,
.topic-show-shell .sdc {
    padding: 24px 26px;
}

.topic-show-breadcrumb,
.topic-show-meta,
.topic-show-card-top,
.topic-show-related-meta,
.topic-show-sidebar .sb-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
}

.topic-show-detail-head {
    padding-bottom: 18px;
}

.topic-show-breadcrumb {
    margin-bottom: 14px;
    color: #8793a7;
    font-size: 13px;
}

.topic-show-breadcrumb a {
    color: #6f7d92;
}

.topic-show-breadcrumb a,
.topic-show-breadcrumb span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f7faff;
    border: 1px solid #e2eaf5;
}

.topic-show-breadcrumb span:last-child {
    background: #fff;
    border-color: var(--topic-accent-border);
    color: var(--topic-accent);
}

.topic-show-summary {
    margin-top: 16px;
    padding: 18px 20px;
    border-left: 4px solid var(--topic-accent-border);
    border: 1px solid #e0eaf7;
    background: linear-gradient(180deg, #f7fbff 0%, #f2f7ff 100%);
    border-radius: 0 18px 18px 0;
    color: #55657d;
    line-height: 1.9;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.topic-show-meta {
    margin-top: 18px;
}

.topic-show-meta span,
.topic-show-card-date,
.topic-show-related-meta span,
.topic-show-sidebar .sb-meta span {
    color: #7d899b;
    font-size: 13px;
}

.topic-shell--lishi .topic-show-breadcrumb {
    margin-bottom: 14px;
}

.topic-shell--lishi .topic-show-detail-box {
    box-shadow: 0 18px 40px rgba(47, 99, 184, 0.08);
}

.topic-shell--lishi .topic-show-related-box .mcon {
    background: transparent;
}

.topic-shell--lishi .topic-show-related-box .topic-section-head {
    align-items: flex-start;
    padding-bottom: 0;
    border-bottom: 0;
}

.topic-shell--lishi .topic-show-related-box .topic-section-head h2 {
    margin: 0;
    font-size: 28px;
}

.topic-shell--lishi .topic-show-related-box .topic-section-head p {
    margin: 8px 0 0;
    max-width: 520px;
}

.topic-shell--lishi .topic-show-related-item {
    padding-top: 16px;
    border-color: #dfe9f6;
    background: #fff;
}

.topic-shell--lishi .topic-show-related-item:hover {
    border-color: #d7dfeb;
    box-shadow: 0 14px 30px rgba(71, 90, 119, 0.1);
}

.topic-shell--lishi .topic-show-related-title {
    font-size: 15px;
}

.topic-shell--lishi .topic-show-related-desc {
    min-height: 0;
    color: #63738b;
}

.topic-shell--lishi .topic-show-related-meta {
    margin-top: 8px;
    padding-top: 0;
    border-top: 0;
}

.topic-shell--lishi .topic-show-sidebar .box {
    box-shadow: 0 16px 36px rgba(71, 90, 119, 0.08);
}

.topic-shell--lishi .topic-show-sidebar > .box + .box {
    margin-top: 18px;
}

.topic-shell--lishi .sidebar.topic-show-sidebar > .box + .box {
    margin-top: 18px;
}

.topic-shell--lishi .topic-show-side-panel .sdc {
    padding-top: 18px;
}

.topic-shell--lishi .topic-show-side-panel h3 {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf2f7;
    font-size: 17px;
    line-height: 1.4;
}

.topic-shell--lishi .topic-show-side-panel h3::after {
    content: none;
}

.topic-shell--lishi .topic-show-side-desc {
    display: none;
}

.topic-shell--lishi .topic-show-sidebar-list {
    gap: 0;
}

.topic-shell--lishi .topic-show-sidebar-item {
    min-height: 0;
    padding: 11px 0 11px 38px;
}

.topic-shell--lishi .topic-show-sidebar-item::before {
    top: 10px;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    line-height: 24px;
}

.topic-shell--lishi .topic-show-sidebar .sb-title {
    line-height: 1.5;
}

.topic-shell--lishi .topic-show-sidebar .sb-meta {
    margin-top: 5px;
    gap: 6px 12px;
}

.topic-shell--lishi .topic-show-sidebar .sb-meta span {
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-size: 12px;
}

.topic-show-detail-body {
    padding-top: 0;
}

.topic-show-article-body {
    color: #2b3647;
    font-size: 17px;
    line-height: 2.05;
}

.topic-show-article-body p {
    margin: 1em 0;
    text-indent: 2em;
}

.topic-show-article-body h2,
.topic-show-article-body h3,
.topic-show-article-body h4 {
    margin: 1.5em 0 0.8em;
    line-height: 1.45;
    font-size: 20px;
}

.topic-show-article-body blockquote {
    margin: 1.4em 0;
    padding: 16px 20px;
    border-left: 4px solid var(--topic-accent-border);
    background: #f4f9ff;
    border-radius: 0 16px 16px 0;
    color: #5c6879;
}

.topic-show-article-body ul,
.topic-show-article-body ol {
    margin: 1em 0 1em 1.6em;
}

.topic-show-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.topic-show-miyu-answer {
    padding: 22px 24px;
    border: 1px solid #dfe9f6;
    border-radius: 22px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.topic-show-miyu-answer .button_chakan {
    min-width: 112px;
    height: 42px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--topic-accent) 0%, #7cb5ff 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 12px 24px rgba(79, 140, 255, 0.24);
    cursor: pointer;
}

.topic-show-miyu-answer .button_chakan:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(79, 140, 255, 0.3);
}

.topic-show-miyu-answer .content_ {
    margin-top: 16px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px dashed #cfe0f6;
}

.topic-show-miyu-answer .content_ p {
    margin: 0;
    text-indent: 0;
}

.topic-show-reading-tip {
    margin-top: 26px;
    padding: 20px 22px;
    border: 1px solid #dfe9f6;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #f4f9ff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.topic-show-reading-tip strong {
    display: block;
    margin-bottom: 8px;
    color: #243145;
}

.topic-show-reading-tip p {
    margin: 0;
    color: #617089;
    line-height: 1.85;
}

.topic-show-prev-next {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #dfe9f6;
}

.topic-show-prev-next p + p {
    margin-top: 10px;
}

.topic-show-prev-next a {
    color: #243145;
}

.topic-show-prev-next a:hover {
    color: var(--topic-accent-dark);
}

.topic-show-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 20px 0 0;
    padding: 0;
}

.topic-show-related-item {
    position: relative;
    display: block;
    min-height: 0;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #dfe9f6;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(71, 90, 119, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.topic-show-related-item:hover {
    transform: translateY(-3px);
    border-color: #d7dfeb;
    box-shadow: 0 14px 30px rgba(71, 90, 119, 0.1);
}

.topic-show-card-top {
    margin-bottom: 8px;
}

.topic-show-card-badge {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--topic-accent-light);
    color: var(--topic-accent);
    font-size: 12px;
    font-weight: 700;
}

.topic-show-related-title {
    font-size: 15px;
    line-height: 1.6;
    font-weight: 700;
}

.topic-show-related-title a,
.topic-show-sidebar .sb-title a {
    color: #243145;
}

.topic-show-related-title a:hover,
.topic-show-sidebar .sb-title a:hover {
    color: var(--topic-accent-dark);
}

.topic-show-related-desc {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.8;
    color: #63738b;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.topic-show-related-meta {
    margin-top: 8px;
}

.topic-show-sidebar {
    display: block;
}

.topic-show-shell .sidebar.topic-show-sidebar > .box + .box {
    margin-top: 24px;
}

.topic-shell--lishi .sidebar.topic-show-sidebar > .box + .box {
    margin-top: 18px;
}

.topic-show-sidebar .box {
    transition: none;
}

.topic-show-side-panel .sdc {
    position: relative;
    padding-top: 24px;
}

.topic-show-side-panel h3 {
    position: relative;
    margin-bottom: 12px;
    padding-bottom: 12px;
    font-size: 18px;
}

.topic-show-side-panel h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--topic-accent), var(--topic-accent-border));
}

.topic-show-side-desc {
    margin-bottom: 14px;
    color: #6e7e96;
    font-size: 13px;
    line-height: 1.9;
}

.topic-show-nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.topic-show-nav-list li {
    margin: 0;
}

.topic-show-nav-list a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #e2eaf4;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
    color: #53627a;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.topic-show-nav-list a:hover {
    background: #fff;
    border-color: #d4deea;
    color: var(--topic-accent-dark);
}

.topic-show-sidebar-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    counter-reset: topic-show-side-rank;
}

.topic-show-sidebar-item {
    position: relative;
    min-height: 56px;
    padding: 14px 0 14px 44px;
}

.topic-show-sidebar-item::before {
    counter-increment: topic-show-side-rank;
    content: counter(topic-show-side-rank);
    position: absolute;
    left: 0;
    top: 13px;
    width: 26px;
    height: 26px;
    border-radius: 9px;
    background: #f3f7ff;
    color: var(--topic-accent);
    font-size: 12px;
    font-weight: 800;
    line-height: 26px;
    text-align: center;
    box-shadow: inset 0 0 0 1px var(--topic-accent-border);
}

.topic-show-sidebar-item:nth-child(-n+3)::before {
    background: linear-gradient(135deg, var(--topic-accent), var(--topic-accent-dark));
    color: #fff;
    box-shadow: none;
}

.topic-show-sidebar-item + .topic-show-sidebar-item {
    border-top: 1px dashed #dbe7f5;
}

.topic-show-sidebar .sb-info {
    min-width: 0;
}

.topic-show-sidebar .sb-title {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 700;
}

.topic-show-sidebar .sb-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.topic-show-sidebar .sb-meta {
    margin-top: 6px;
    gap: 6px 10px;
}

.topic-show-sidebar .sb-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f6f9fe;
    color: #72829a;
    font-size: 12px;
}

.topic-show-side-link-groups {
    display: grid;
    gap: 12px;
}

.topic-show-side-link-group {
    padding: 0;
    border: 1px solid #e7eef7;
    border-radius: 14px;
    background: #fafcff;
    overflow: hidden;
}

.topic-show-side-link-group + .topic-show-side-link-group {
    padding-top: 0;
    border-top: 1px solid #e7eef7;
}

.topic-show-side-link-group h4 {
    margin: 0;
    padding: 10px 14px;
    color: #243145;
    font-size: 14px;
    line-height: 1.5;
    background: #f3f8ff;
    border-bottom: 1px solid #e7eef7;
}

.topic-show-side-link-group ul,
.topic-show-side-link-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.topic-show-side-link-list li + li {
    border-top: 1px dashed #e6edf6;
}

.topic-show-side-link-group a,
.topic-show-side-link-list a {
    display: block;
    padding: 10px 14px;
    color: #516177;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
}

.topic-show-side-link-group a:hover,
.topic-show-side-link-list a:hover {
    background: #fff;
    color: var(--topic-accent-dark);
}

.empty-text {
    color: #9aa6b8;
}

/* Topic list pages */
.topic-shell {
    --topic-accent: #2f63b8;
    --topic-accent-dark: #214b8d;
    --topic-accent-light: #eef4ff;
    --topic-accent-border: #dce7f7;
    --topic-accent-shadow: rgba(47, 99, 184, 0.14);
    padding: 40px 0 42px;
}

.topic-shell--haoju {
    --topic-accent: #2f63b8;
    --topic-accent-dark: #214b8d;
    --topic-accent-light: #eef4ff;
    --topic-accent-border: #dce7f7;
    --topic-accent-shadow: rgba(47, 99, 184, 0.14);
}

.topic-shell--miyu {
    --topic-accent: #2f63b8;
    --topic-accent-dark: #214b8d;
    --topic-accent-light: #eef4ff;
    --topic-accent-border: #dce7f7;
    --topic-accent-shadow: rgba(47, 99, 184, 0.14);
}

.topic-shell--lishi {
    --topic-accent: #2f63b8;
    --topic-accent-dark: #214b8d;
    --topic-accent-light: #eef4ff;
    --topic-accent-border: #dce7f7;
    --topic-accent-shadow: rgba(47, 99, 184, 0.14);
}

.topic-shell--kaoshi {
    --topic-accent: #2f63b8;
    --topic-accent-dark: #214b8d;
    --topic-accent-light: #eef4ff;
    --topic-accent-border: #dce7f7;
    --topic-accent-shadow: rgba(47, 99, 184, 0.14);
}

.topic-shell .main {
    width: 1200px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.topic-shell .content,
.topic-shell .sidebar {
    min-width: 0;
}

.topic-shell .content > .box + .box,
.topic-shell .sidebar > .box + .box {
    margin-top: 24px;
}

.topic-shell .box {
    background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
    border: 1px solid #dfe7f3;
    border-radius: 24px;
    box-shadow: 0 16px 36px rgba(71, 90, 119, 0.08);
    overflow: hidden;
}

.topic-shell .mcon,
.topic-shell .sdc {
    padding: 24px 26px;
}

.topic-shell .title,
.topic-shell h1,
.topic-shell h2,
.topic-shell h3,
.topic-shell strong {
    color: #243145;
}

.topic-shell .title,
.topic-shell h1,
.topic-shell h2,
.topic-shell h3 {
    font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
}

.topic-hero-box {
    position: relative;
    background:
        radial-gradient(circle at right top, var(--topic-accent-shadow), transparent 32%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 252, 255, 0.98) 48%, rgba(245, 248, 255, 0.98) 100%);
}

.topic-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
    align-items: stretch;
}

.topic-hero-main {
    min-width: 0;
}

.topic-hero-kicker {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--topic-accent-light);
    color: var(--topic-accent-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.topic-hero .title {
    margin-top: 12px;
    font-size: 34px;
    line-height: 1.3;
}

.topic-hero-desc,
.topic-section-head p,
.topic-side-desc,
.topic-hero-side p {
    color: #5f6d82;
    line-height: 1.95;
}

.topic-hero-desc {
    margin-top: 16px;
    font-size: 15px;
}

.topic-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.topic-tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--topic-accent-border);
    color: #56657c;
    font-size: 13px;
    font-weight: 700;
}

.topic-hero-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: start;
    padding: 24px 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 250, 255, 0.94) 100%);
    border: 1px solid var(--topic-accent-border);
    border-radius: 22px;
    box-shadow: 0 10px 24px rgba(71, 90, 119, 0.05);
}

.topic-hero-side strong {
    font-size: 18px;
    font-weight: 700;
}

.topic-hero-side p {
    margin-top: 12px;
}

.topic-entry-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.topic-entry-card {
    display: block;
    min-height: 110px;
    padding: 20px 18px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.94) 100%);
    border: 1px solid #e4ebf5;
    color: #27364b;
    box-shadow: 0 10px 24px rgba(71, 90, 119, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.topic-entry-card:hover {
    transform: translateY(-2px);
    border-color: var(--topic-accent-border);
    box-shadow: 0 14px 28px rgba(71, 90, 119, 0.09);
    color: var(--topic-accent-dark);
}

.topic-entry-card strong {
    display: block;
    font-size: 17px;
    line-height: 1.45;
}

.topic-entry-card span {
    display: block;
    margin-top: 10px;
    color: #6a7890;
    font-size: 13px;
    line-height: 1.8;
}

.topic-list-box .mcon {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 251, 255, 0.72) 100%);
}

.topic-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.topic-section-head h2 {
    margin-top: 0;
    font-size: 28px;
    line-height: 1.35;
}

.topic-section-head p {
    margin-top: 10px;
    font-size: 14px;
}

.topic-double-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.topic-panel {
    min-width: 0;
    position: relative;
    padding: 22px;
    background: #fff;
    border: 1px solid #e3eaf4;
    border-radius: 22px;
    box-shadow: 0 10px 24px rgba(71, 90, 119, 0.05);
    overflow: hidden;
}

.topic-panel::before {
    content: none;
}

.topic-panel:nth-child(2) {
    background: #fff;
}

.topic-panel-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef2f7;
}

.topic-panel-head h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.35;
}

.topic-panel-head span {
    display: none;
}

.topic-sidebar .topic-article-list {
    grid-template-columns: minmax(0, 1fr);
}

.topic-article-list,
.topic-chip-list {
    margin: 0;
    padding: 0;
}

.topic-article-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
    counter-reset: topic-rank;
}

.topic-article-list li,
.topic-chip-list li {
    margin: 0;
}

.topic-article-list li a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 14px 10px 48px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    border: 1px solid #dde6f2;
    border-radius: 14px;
    color: #27364f;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    box-shadow: 0 8px 18px rgba(71, 90, 119, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.topic-article-text {
    display: -webkit-box;
    flex: 1 1 auto;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.topic-article-list li a::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: calc(100% - 16px);
    transform: translateY(-50%);
    border-radius: 0 999px 999px 0;
    background: linear-gradient(180deg, rgba(47, 99, 184, 0.06), rgba(47, 99, 184, 0.18));
    transition: background 0.2s ease;
}

.topic-article-list li a::before {
    counter-increment: topic-rank;
    content: counter(topic-rank);
    position: absolute;
    left: 12px;
    top: 50%;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    border-radius: 7px;
    background: var(--topic-accent-light);
    color: var(--topic-accent);
    font-size: 11px;
    font-weight: 800;
    line-height: 22px;
    text-align: center;
    box-shadow: inset 0 0 0 1px var(--topic-accent-border);
}

.topic-article-list li:nth-child(-n+3) a::before {
    background: linear-gradient(135deg, var(--topic-accent), var(--topic-accent-dark));
    color: #fff;
    box-shadow: none;
}

.topic-article-list li a:hover {
    transform: translateY(-1px);
    border-color: var(--topic-accent-border);
    box-shadow: 0 10px 20px rgba(71, 90, 119, 0.08);
    color: var(--topic-accent-dark);
}

.topic-article-list li a:hover::after {
    background: linear-gradient(180deg, var(--topic-accent), rgba(47, 99, 184, 0.28));
}

.topic-article-list--compact li a {
    min-height: 38px;
}

.topic-article-list--compact .topic-article-text {
    -webkit-line-clamp: 2;
}

.topic-article-list--latest li a {
    padding-left: 14px;
}

.topic-article-list--latest li a::before,
.topic-article-list--latest li a::after {
    content: none;
}

.topic-article-list--latest-bar li a {
    padding-left: 16px;
}

.topic-article-list--latest-bar li a::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: calc(100% - 16px);
    transform: translateY(-50%);
    border-radius: 0 999px 999px 0;
    background: linear-gradient(180deg, rgba(47, 99, 184, 0.06), rgba(47, 99, 184, 0.18));
    transition: background 0.2s ease;
}

.topic-article-list--latest-bar li a:hover::after {
    background: linear-gradient(180deg, var(--topic-accent), rgba(47, 99, 184, 0.28));
}

.topic-pagination {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eef3f8;
}

.topic-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.topic-pagination a,
.topic-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 9px;
    border: 1px solid #e1e8f3;
    border-radius: 8px;
    background: #fff;
    color: #66758c;
    font-size: 12px;
    line-height: 1;
}

.topic-pagination .pagination li.active a,
.topic-pagination .pagination li.active span {
    border-color: var(--topic-accent-border);
    background: var(--topic-accent-light);
    color: var(--topic-accent);
    font-weight: 700;
}

.topic-pagination a:hover {
    border-color: var(--topic-accent-border);
    color: var(--topic-accent-dark);
    background: #f8fbff;
}

.topic-pagination .page,
.topic-pagination .current,
.topic-pagination strong {
    border-color: var(--topic-accent-border);
    background: var(--topic-accent-light);
    color: var(--topic-accent);
    font-weight: 700;
}

#topic-latest-panel {
    scroll-margin-top: 120px;
}

.topic-panel--loading {
    opacity: 0.72;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.topic-sidebar .box {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.topic-sidebar .box:hover {
    transform: translateY(-2px);
    border-color: var(--topic-accent-border);
    box-shadow: 0 18px 34px rgba(61, 95, 145, 0.09);
}

.topic-sidebar .topic-side-desc {
    display: none;
}

.topic-side-panel .sdc {
    position: relative;
}

.topic-side-panel h3 {
    margin: 6px 0 0;
    font-size: 22px;
    line-height: 1.4;
}

.topic-side-desc {
    margin-top: 10px;
    font-size: 13px;
}

.topic-chip-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.topic-chip-list a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f8fd 100%);
    border: 1px solid #e1e8f2;
    color: #4c5d75;
    font-weight: 600;
    font-size: 13px;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.topic-chip-list a::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--topic-accent), var(--topic-accent-dark));
    box-shadow: 0 0 0 4px rgba(47, 99, 184, 0.08);
    flex: 0 0 auto;
}

.topic-chip-list a:hover {
    transform: translateY(-1px);
    border-color: var(--topic-accent-border);
    background: #fff;
    color: var(--topic-accent-dark);
}

/* Topic pages shared rules */
.seo-links-wrap {
    width: 1200px;
    max-width: 1200px;
    margin: 0 auto 32px;
}

.seo-links-wrap .box {
    background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
    border: 1px solid #dfe9f6;
    border-radius: 24px;
    box-shadow: 0 14px 36px rgba(71, 90, 119, 0.08);
}

.seo-links-wrap .mcon {
    padding: 26px 30px;
}

.seo-links-wrap h2,
.seo-links-wrap h3 {
    color: #243145;
    font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
}

.seo-links-desc {
    margin-top: 10px;
    color: #66768d;
    line-height: 1.9;
}

.seo-link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.seo-link-item {
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #dfe9f6;
    border-radius: 18px;
}

.seo-link-item h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.seo-link-item ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.seo-link-item li + li {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #dbe7f5;
}

.seo-link-item a {
    display: block;
    color: #31415d;
    line-height: 1.7;
}

.seo-link-item a:hover {
    color: #2f63b8;
}


