/* News channel styles for fanwen and wenshi pages. */

/* Fanwen channel and shared news channel cards */
.fanwen-shell {
    padding: 40px 0 42px;
}

.fanwen-shell .main {
    width: 1200px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.fanwen-shell .content,
.fanwen-shell .sidebar {
    min-width: 0;
}

.fanwen-shell .content > .box + .box,
.fanwen-shell .sidebar > .box + .box {
    margin-top: 24px;
}

.fanwen-shell .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);
    overflow: hidden;
}

.fanwen-shell .mcon,
.fanwen-shell .sdc {
    padding: 20px 22px;
}

.fanwen-shell .title,
.fanwen-shell h2,
.fanwen-shell h3,
.fanwen-shell strong {
    color: #243145;
}

.fanwen-shell .title,
.fanwen-shell h1,
.fanwen-shell h2,
.fanwen-shell h3 {
    font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
}

.fanwen-shell .fanwen-hero-box {
    position: relative;
    background:
        linear-gradient(135deg, rgba(244, 249, 255, 0.98) 0%, rgba(249, 252, 255, 0.99) 46%, rgba(241, 247, 255, 0.98) 100%);
}

.fanwen-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.7fr);
    gap: 22px;
    align-items: stretch;
    background:
        radial-gradient(circle at right top, rgba(74, 132, 214, 0.14), transparent 34%),
        radial-gradient(circle at left bottom, rgba(186, 215, 248, 0.16), transparent 36%),
        linear-gradient(135deg, rgba(248, 252, 255, 0.96) 0%, rgba(255, 255, 255, 0.92) 50%, rgba(244, 249, 255, 0.96) 100%);
}

.fanwen-hero-main {
    position: relative;
}

.fanwen-kicker {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2f63b8;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.fanwen-hero .title {
    margin-top: 16px;
    font-size: 34px;
    line-height: 1.3;
    letter-spacing: 1px;
}

.fanwen-hero-desc,
.fanwen-summary,
.fanwen-shell .sdc p,
.fanwen-section-head p,
.fanwen-related-desc,
.fanwen-article-desc {
    color: #5d6b7f;
    line-height: 1.95;
}

.fanwen-hero-desc {
    margin-top: 16px;
    font-size: 15px;
}

.fanwen-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.fanwen-tag-row span {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    height: 34px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e8edf5;
    color: #53627a;
    box-shadow: 0 6px 18px rgba(71, 90, 119, 0.06);
}

.fanwen-hero-side,
.fanwen-reading-tip,
.fanwen-side-guide .sdc {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #dfe9f6;
    border-radius: 20px;
}

.fanwen-hero-side {
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: start;
}

.fanwen-hero-side strong,
.fanwen-reading-tip strong {
    font-size: 18px;
    font-weight: 700;
}

.fanwen-hero-side p,
.fanwen-reading-tip p {
    margin-top: 12px;
    color: #607089;
    line-height: 1.9;
}

.fanwen-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf2f7;
}

.fanwen-section-head h2,
.fanwen-section-head h3 {
    font-size: 28px;
    line-height: 1.35;
}

.fanwen-section-head p {
    margin-top: 8px;
    font-size: 14px;
}

.fanwen-more-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    background: #f3f7ff;
    color: #2f63b8;
    font-weight: 700;
    font-size: 13px;
}

.fanwen-more-link:hover {
    background: #e8f0ff;
}

.fanwen-cate-grid,
.fanwen-topic-grid,
.fanwen-related-grid {
    display: grid;
    gap: 16px;
}

.fanwen-cate-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 0 30px 30px;
}

.fanwen-cate-item a,
.fanwen-topic-card,
.fanwen-related-item {
    display: block;
    height: 100%;
    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;
}

.fanwen-cate-item a {
    padding: 24px 18px;
    text-align: center;
}

.fanwen-cate-item a:hover,
.fanwen-topic-card:hover,
.fanwen-related-item:hover,
.fanwen-article-card:hover {
    transform: translateY(-3px);
    border-color: #d7dfeb;
    box-shadow: 0 14px 30px rgba(71, 90, 119, 0.1);
}

.fanwen-cate-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, #2f63b8, #6b86d7);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 54px;
    box-shadow: 0 10px 26px rgba(47, 99, 184, 0.22);
}

.fanwen-cate-name {
    font-size: 18px;
    font-weight: 700;
    color: #22324b;
}

.fanwen-cate-desc {
    margin-top: 8px;
    color: #72819a;
    font-size: 13px;
    line-height: 1.8;
}

.fanwen-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fanwen-topic-card {
    padding: 22px 24px;
}

.fanwen-topic-card strong {
    display: block;
    font-size: 20px;
    margin-bottom: 8px;
}

.fanwen-topic-card span {
    display: block;
    color: #63738b;
    line-height: 1.9;
}

.fanwen-article-list,
.fanwen-sidebar-list {
    display: grid;
    gap: 18px;
}

.fanwen-list-box {
    background: linear-gradient(180deg, #f4f9ff 0%, #eef5ff 100%) !important;
    border-color: #dce8f8 !important;
}

.fanwen-list-box .mcon {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.18) 100%);
}

.fanwen-article-list {
    margin-top: 0;
}

.fanwen-article-card {
    display: grid;
    grid-template-columns: 156px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    background: linear-gradient(180deg, #fafdff 0%, #ffffff 100%);
    border: 1px solid #dfe9f6;
    border-radius: 20px;
    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;
}

.fanwen-article-cover {
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, #eef4ff, #f6faff);
    min-height: 116px;
}

.fanwen-article-cover img {
    width: 100%;
    height: 100%;
    min-height: 116px;
    object-fit: cover;
    display: block;
}

.fanwen-shell .no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 116px;
    color: #6b7d95;
    font-weight: 700;
    letter-spacing: 2px;
    background:
        linear-gradient(0deg, rgba(47, 99, 184, 0.05), rgba(47, 99, 184, 0.05)),
        repeating-linear-gradient(180deg, transparent 0, transparent 28px, rgba(47, 99, 184, 0.08) 28px, rgba(47, 99, 184, 0.08) 29px);
}

.fanwen-card-top,
.fanwen-shell .article-meta,
.fanwen-shell .sb-meta,
.fanwen-shell .related-meta,
.fanwen-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
}

.fanwen-card-top {
    margin-bottom: 10px;
}

.fanwen-card-badge {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef5ff;
    color: #2f63b8;
    font-size: 12px;
    font-weight: 700;
}

.fanwen-card-date,
.fanwen-shell .article-meta span,
.fanwen-shell .sb-meta span,
.fanwen-shell .related-meta span {
    color: #7d899b;
    font-size: 13px;
}

.fanwen-article-title,
.fanwen-shell .related-title,
.fanwen-shell .sb-title {
    font-size: 18px;
    line-height: 1.5;
    font-weight: 700;
}

.fanwen-article-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.fanwen-shell .related-title,
.fanwen-shell .sb-title {
    font-size: 15px;
    line-height: 1.6;
}

.fanwen-article-title a,
.fanwen-shell .related-title a,
.fanwen-shell .sb-title a {
    color: #243145;
}

.fanwen-article-title a:hover,
.fanwen-shell .related-title a:hover,
.fanwen-shell .sb-title a:hover {
    color: #2f63b8;
}

.fanwen-article-desc {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.fanwen-article-meta {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #dbe7f5;
}

.fanwen-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fanwen-related-item {
    padding: 16px 18px;
    min-height: 0;
}

.fanwen-related-item .fanwen-card-top {
    margin-bottom: 8px;
}

.fanwen-related-desc {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.fanwen-shell .related-meta {
    margin-top: 8px;
}

.fanwen-related-item .related-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.fanwen-pagination {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.fanwen-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.fanwen-pagination li {
    margin: 0;
    list-style: none;
}

.fanwen-pagination a,
.fanwen-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #e5e9f2;
    border-radius: 8px;
    background: #fff;
    color: #53627a;
    font-size: 12px;
    line-height: 1;
}

.fanwen-pagination a:hover {
    border-color: #2f63b8;
    color: #2f63b8;
    background: #f8fbff;
}

.fanwen-pagination li.active a,
.fanwen-pagination .current,
.fanwen-pagination strong {
    border-color: #d9e6fb;
    background: #eef5ff;
    color: #2f63b8;
    font-weight: 700;
}

.fanwen-pagination li:first-child a,
.fanwen-pagination li:last-child a {
    min-width: auto;
    padding: 0 12px;
}

.fanwen-sidebar .sdc h3 {
    position: relative;
    font-size: 18px;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.fanwen-sidebar .sdc h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2f63b8, #8fb4ef);
}

.fanwen-side-guide .sdc {
    background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
}

.fanwen-side-guide .sdc p,
.fanwen-side-desc {
    font-size: 13px;
    line-height: 1.9;
    color: #6e7e96;
}

.fanwen-side-panel .sdc {
    position: relative;
}

.fanwen-side-kicker {
    display: inline-flex;
    align-items: center;
    height: 28px;
    margin-bottom: 10px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef5ff;
    color: #2f63b8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.fanwen-side-nav,
.fanwen-side-list-block {
    background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
}

.fanwen-side-nav .sdc,
.fanwen-side-list-block .sdc {
    padding-top: 24px;
}

.fanwen-side-nav .fanwen-side-desc,
.fanwen-side-list-block .fanwen-side-desc {
    margin-bottom: 14px;
}

.fanwen-sidebar .box {
    transition: none;
}

.fanwen-sidebar .box.fanwen-side-panel,
.fanwen-sidebar .box.fanwen-side-list-block,
.fanwen-sidebar .box.fanwen-side-nav {
    transform: none !important;
    background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%) !important;
    border: 1px solid #dfe9f6 !important;
    box-shadow: 0 14px 36px rgba(71, 90, 119, 0.08) !important;
    transition: none !important;
}

.fanwen-sidebar .box.fanwen-side-panel:hover,
.fanwen-sidebar .box.fanwen-side-list-block:hover,
.fanwen-sidebar .box.fanwen-side-nav:hover {
    transform: none !important;
    background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%) !important;
    border: 1px solid #dfe9f6 !important;
    box-shadow: 0 14px 36px rgba(71, 90, 119, 0.08) !important;
    transition: none !important;
}

.fanwen-shell .sidebar-list,
.fanwen-shell .btn {
    margin: 0;
    padding: 0;
}

.fanwen-sidebar-list {
    gap: 0;
    counter-reset: fanwen-side-rank;
}

.fanwen-sidebar-item {
    position: relative;
    padding: 12px 0 12px 40px;
    min-height: 52px;
}

.fanwen-sidebar-item::before {
    counter-increment: fanwen-side-rank;
    content: counter(fanwen-side-rank);
    position: absolute;
    left: 0;
    top: 13px;
    width: 26px;
    height: 26px;
    border-radius: 9px;
    background: #f3f7ff;
    color: #2f63b8;
    font-size: 12px;
    font-weight: 800;
    line-height: 26px;
    text-align: center;
    box-shadow: inset 0 0 0 1px #d9e6fb;
}

.fanwen-sidebar-item:nth-child(-n+3)::before {
    background: linear-gradient(135deg, #2f63b8, #6b86d7);
    color: #fff;
    box-shadow: none;
}

.fanwen-sidebar-item + .fanwen-sidebar-item {
    border-top: 1px dashed #dbe7f5;
}

.fanwen-sidebar-item .sb-info {
    min-width: 0;
}

.fanwen-sidebar-item .sb-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.fanwen-sidebar .sb-title {
    margin: 0;
}

.fanwen-sidebar .sb-meta {
    margin-top: 6px;
    gap: 6px 10px;
}

.fanwen-sidebar .sb-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #f8fbff;
    color: #7a889c;
    font-size: 12px;
}

.fanwen-chip-list,
.fanwen-entry-btns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.fanwen-chip-list li,
.fanwen-entry-btns li {
    margin: 0;
}

.fanwen-chip-list a,
.fanwen-entry-btns a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
    border: 1px solid #deebfb;
    color: #4d5e78;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.fanwen-chip-list a::before,
.fanwen-entry-btns a::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2f63b8, #7ea9ea);
    box-shadow: 0 0 0 4px rgba(47, 99, 184, 0.08);
}

.fanwen-chip-list a:hover,
.fanwen-entry-btns a:hover {
    border-color: #c6d7f1;
    background: linear-gradient(180deg, #f1f7ff 0%, #eaf2ff 100%);
    color: #2f63b8;
    transform: translateY(-1px);
}

.fanwen-detail-head {
    padding-bottom: 18px;
}

.fanwen-breadcrumb {
    margin-bottom: 14px;
    color: #8793a7;
    font-size: 13px;
}

.fanwen-breadcrumb a {
    color: #6f7d92;
}

.fanwen-breadcrumb a,
.fanwen-breadcrumb span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f7faff;
    border: 1px solid #e2eaf5;
}

/* Wenshi portal page overrides and direction cards */
.wenshi-shell {
    --topic-accent: #2f63b8;
    --topic-accent-dark: #214b8d;
    --topic-accent-light: #eef4ff;
    --topic-accent-border: #dce7f7;
}

.wenshi-shell .fanwen-kicker {
    background: #edf5ff;
}

.wenshi-shell .fanwen-cate-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.wenshi-shell .fanwen-cate-icon {
    background: linear-gradient(135deg, #2f63b8, #7b97df);
}

.wenshi-shell .fanwen-article-cover .no-img {
    letter-spacing: 1px;
}

.wenshi-shell .fanwen-card-badge {
    background: #eef5ff;
}

.wenshi-shell .fanwen-topic-card strong {
    font-size: 19px;
}

.wenshi-direction-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.wenshi-direction-card {
    display: block;
    padding: 20px 22px;
    border: 1px solid #dfe9f6;
    border-radius: 22px;
    background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
    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;
}

.wenshi-direction-card:hover {
    transform: translateY(-3px);
    border-color: #d7dfeb;
    box-shadow: 0 14px 30px rgba(71, 90, 119, 0.1);
}

.wenshi-direction-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.wenshi-direction-badge {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef5ff;
    color: #2f63b8;
    font-size: 12px;
    font-weight: 700;
}

.wenshi-direction-note {
    color: #7a889c;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
}

.wenshi-direction-card strong {
    display: block;
    color: #243145;
    font-size: 20px;
    line-height: 1.45;
}

.wenshi-direction-card p {
    margin: 10px 0 0;
    color: #607089;
    font-size: 14px;
    line-height: 1.9;
}

.wenshi-direction-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.wenshi-direction-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f6f9fe;
    border: 1px solid #e4ebf5;
    color: #56657c;
    font-size: 12px;
}

.wenshi-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wenshi-quick-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--topic-accent-border);
    color: #51627b;
    font-weight: 700;
}

.wenshi-quick-link:hover {
    background: var(--topic-accent-light);
    border-color: var(--topic-accent-border);
    color: var(--topic-accent-dark);
}

.wenshi-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.wenshi-feature-card {
    display: block;
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e3eaf4;
    box-shadow: 0 10px 24px rgba(71, 90, 119, 0.05);
    color: #223147;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wenshi-feature-card:hover {
    transform: translateY(-1px);
    border-color: var(--topic-accent-border);
    box-shadow: 0 16px 30px rgba(71, 90, 119, 0.1);
    color: var(--topic-accent-dark);
}

.wenshi-feature-tag {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--topic-accent-light);
    color: var(--topic-accent);
    font-size: 12px;
    font-weight: 800;
}

.wenshi-feature-title {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.wenshi-feature-desc {
    margin-top: 10px;
    color: #66758c;
    font-size: 13px;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.wenshi-feature-meta {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #7a889c;
    font-size: 12px;
}

.wenshi-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.wenshi-news-col {
    background: #fff;
    border: 1px solid #e3eaf4;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(71, 90, 119, 0.05);
    padding: 16px 16px 12px;
}

.wenshi-news-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f7;
}

.wenshi-news-head h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
}

.wenshi-more {
    color: #7a889c;
    font-size: 12px;
    font-weight: 700;
}

.wenshi-more:hover {
    color: var(--topic-accent-dark);
}

.wenshi-news-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.wenshi-news-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed #eef3f8;
}

.wenshi-news-item:last-child {
    border-bottom: 0;
}

.wenshi-news-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    color: #2a3850;
    font-weight: 600;
}

.wenshi-news-item a:hover .wenshi-news-title {
    color: var(--topic-accent-dark);
}

.wenshi-news-date {
    flex: 0 0 auto;
    color: #93a0b3;
    font-size: 12px;
}

.wenshi-cate-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
    padding: 0;
}

.wenshi-cate-item {
    margin: 0;
    list-style: none;
}

.wenshi-cate-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e3eaf4;
    box-shadow: 0 10px 24px rgba(71, 90, 119, 0.05);
    color: #233149;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wenshi-cate-card:hover {
    transform: translateY(-1px);
    border-color: var(--topic-accent-border);
    box-shadow: 0 16px 30px rgba(71, 90, 119, 0.1);
    color: var(--topic-accent-dark);
}

.wenshi-cate-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--topic-accent-light);
    color: var(--topic-accent);
    font-weight: 800;
    font-size: 16px;
    box-shadow: inset 0 0 0 1px var(--topic-accent-border);
    flex: 0 0 auto;
}

.wenshi-cate-title {
    font-weight: 800;
    font-size: 16px;
    line-height: 1.4;
}

.wenshi-cate-desc {
    margin-top: 6px;
    color: #6a7990;
    font-size: 13px;
    line-height: 1.7;
}

.wenshi-topic-second {
    margin-top: 16px;
}

.wenshi-panel-link {
    color: inherit;
}

.wenshi-panel-link:hover {
    color: var(--topic-accent-dark);
}

.wenshi-tip p {
    margin: 10px 0 0;
    color: #5b6c86;
    line-height: 1.8;
}

.wenshi-tip p:first-child {
    margin-top: 0;
}

.fanwen-breadcrumb span:last-child {
    background: #fff;
    border-color: #dbe7f5;
    color: #2f63b8;
}

.fanwen-summary {
    margin-top: 16px;
    padding: 18px 20px;
    border-left: 4px solid #8fb4ef;
    background: #f4f9ff;
    border-radius: 0 18px 18px 0;
}

.fanwen-meta {
    margin-top: 18px;
}

.fanwen-tags {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.fanwen-tags .tags-label {
    color: #65758d;
    font-weight: 700;
}

.fanwen-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #f8fbff;
    color: #2f63b8;
}

.fanwen-detail-body {
    padding-top: 0;
}

.fanwen-article-body {
    color: #2b3647;
    font-size: 17px;
    line-height: 2.05;
}

.fanwen-article-body p {
    margin: 1em 0;
    text-indent: 2em;
}

.fanwen-article-body h2,
.fanwen-article-body h3,
.fanwen-article-body h4 {
    margin: 1.5em 0 0.8em;
    line-height: 1.45;
}

.fanwen-article-body blockquote {
    margin: 1.4em 0;
    padding: 16px 20px;
    border-left: 4px solid #8fb4ef;
    background: #f4f9ff;
    border-radius: 0 16px 16px 0;
    color: #5c6879;
}

.fanwen-reading-tip {
    margin-top: 26px;
    padding: 20px 22px;
}

.fanwen-prev-next {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #dfe9f6;
}

.fanwen-prev-next p + p {
    margin-top: 10px;
}

.fanwen-prev-next a {
    color: #243145;
}

.fanwen-prev-next a:hover {
    color: #2f63b8;
}

/* Fanwen and Wenshi shared rules */


