body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #222;
    background: #f3f3f3;
}

body.theme-pc.page-detail,
body.theme-pc.page-home,
body.theme-pc.page-category,
body.theme-pc.page-preview {
    padding-top: 124px;
}

/* 移动端样式已迁移到 site-mobile.css，避免互相污染。 */

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: 1200px;
    min-width: 1200px;
    margin: 0 auto;
}

.site-shell {
    background: #f3f3f3;
}

.pc-header,
.pc-topbar {
    background: #fff;
}

.pc-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: 1px solid #f0f0f0;
}

.pc-topbar-inner,
.header-top,
.nav-bar,
.footer-inner,
.pc-quick-links,
.pc-client-links,
.portal-title,
.meta-line,
.mobile-brand-row {
    display: flex;
    align-items: center;
}

.pc-topbar-inner,
.header-top,
.footer-inner,
.portal-title,
.mobile-brand-row {
    justify-content: space-between;
}

.pc-quick-links,
.pc-client-links {
    gap: 18px;
}

.header-top {
    padding: 20px 0 18px;
}

.brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    /* 高度与右侧"站点名(38px) + 上间距(6px) + 标语(13px×1.4)"整体高度对齐 */
    height: 62px;
    width: auto;
    max-width: 260px;
    margin-right: 14px;
    object-fit: contain;
    object-position: left center;
}

.brand-text strong {
    display: block;
    font-size: 38px;
    line-height: 1;
    color: #c40000;
    font-weight: 700;
    letter-spacing: 1px;
}

.brand-text em {
    display: block;
    margin-top: 6px;
    font-style: normal;
    font-size: 13px;
    line-height: 1.4;
    color: #888;
}

.header-search {
    display: flex;
    width: 360px;
    border: 1px solid #e5e5e5;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
}

.header-search input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 0 16px;
    height: 42px;
    font-size: 14px;
}

.header-search button {
    border: 0;
    background: #c40000;
    color: #fff;
    width: 86px;
    cursor: pointer;
    font-size: 14px;
}

.nav-bar {
    gap: 24px;
    overflow-x: auto;
    white-space: nowrap;
    min-height: 46px;
    background: #fff;
    border-top: 1px solid #f5f5f5;
    border-bottom: 1px solid #f5f5f5;
}

.nav-bar a {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    font-size: 16px;
    color: #333;
    position: relative;
}

.nav-bar a:hover,
.pc-quick-links a:hover,
.portal-title a:hover {
    color: #c40000;
}

.nav-bar a.is-active {
    color: #c40000;
    font-weight: 600;
}

.nav-bar a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #c40000;
}

.main-content {
    padding: 38px 0 40px;
}

.pc-home-layout {
    display: grid;
    width: 1200px;
    min-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 880px 310px;
    gap: 10px;
    align-items: start;
}

.pc-home-left {
    min-width: 0;
}

.pc-carousel {
    padding: 15px 0 15px 15px;
    margin-bottom: 22px;
    background: #fff;
    border-radius: 4px;
}

.pc-carousel-main {
    display: grid;
    grid-template-columns: 519px minmax(0, 1fr);
    gap: 0;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.pc-carousel-cover {
    display: block;
    position: relative;
    width: 519px;
    height: 292px;
    background: #f1f1f1;
    overflow: hidden;
}

.pc-carousel-cover img,
.pc-article-cover img,
.mobile-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pc-carousel-side {
    border-left: 1px solid #ededed;
    display: flex;
    flex-direction: column;
}

.pc-carousel-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    height: 28px;
    padding: 0 12px;
    border-radius: 14px;
    background: rgba(48, 40, 34, 0.7);
    color: #fff;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
}

.pc-carousel-count em {
    font-style: normal;
}

.pc-carousel-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 22px;
    border-right: 4px solid transparent;
    border-bottom: 1px solid #ededed;
    background: #fff;
}

.pc-carousel-item:last-child {
    border-bottom: 0;
}

.pc-carousel-item.is-active {
    border-right-color: #f44336;
    background: #f7f7f7;
}

.pc-article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pc-article-card {
    display: grid;
    grid-template-columns: 201px 1fr;
    gap: 12px;
    align-items: start;
    min-height: 134px;
    padding: 0;
    background: #fff;
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pc-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.pc-article-cover {
    display: block;
    position: relative;
    width: 201px;
    height: 134px;
    /* 3:2 比例：相比之前的近正方形显得宽一些，画面更舒展 */
    aspect-ratio: 3 / 2;
    background: #f4f4f4;
}

/* 视频文章封面右下角播放图标 */
.pc-article-cover.is-video::after {
    content: '';
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.55);
    background-image: url('/resource/web/img/play.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}

.pc-article-copy h3,
.pc-carousel-item h3,
.mobile-news-copy h3,
.mobile-rank-item span:last-child {
    margin: 0;
    line-height: 1.5;
    font-size: 16px;
    font-weight: 600;
}

.pc-carousel-item h3 {
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.pc-article-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 12px 10px 0;
}

.pc-article-copy h3 {
    font-size: 20px;
    line-height: 1.55;
    font-weight: 400;
    display: -webkit-box;
    overflow: hidden;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.pc-article-copy .meta-line {
    margin-top: auto;
    padding-top: 12px;
}

.pc-home-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pc-side-block {
    background: #fff;
    padding: 16px;
}

/* 内容页侧边 IN视频 卡：底色/圆角与上方热榜保持一致（浅灰） */
.pc-side-block-gray {
    background: #f9f9f9;
    border-radius: 4px;
    padding: 14px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.portal-title {
    margin-bottom: 16px;
}

.portal-title h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
}

.portal-title a {
    font-size: 14px;
    color: #888;
}

.meta-line {
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #888;
}

.hero-badge,
.channel-tag,
.video-duration,
.mobile-rank-num,
.hot-rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-badge,
.channel-tag {
    padding: 2px 8px;
    font-size: 12px;
    color: #c40000;
    background: #fff1f1;
    border-radius: 2px;
}

.hot-rank,
.mobile-news-list,
.mobile-rank-list {
    display: grid;
    gap: 14px;
}

.hot-rank-item,
.mobile-rank-item {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: center;
}

.hot-rank-num {
    width: 24px;
    height: auto;
    background: transparent;
    color: #9a9a9a;
    font-size: 16px;
    font-weight: 700;
    border-radius: 0;
    margin-top: 0;
    line-height: 1;
    justify-content: flex-start;
}

.hot-rank-item:nth-child(-n+3) .hot-rank-num {
    color: #c40000;
}

.mobile-rank-num {
    width: 24px;
    height: 24px;
    background: #c40000;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
    margin-top: 2px;
}

.hot-rank-text {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 15px;
    line-height: 1.4;
}

.pc-video-empty {
    min-height: 240px;
    border: 1px dashed #dedede;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

/* IN 视频区：左封图 + 右标题的紧凑列表 */
.pc-video-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pc-video-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    align-items: start;
    border-radius: 4px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pc-video-card-cover {
    position: relative;
    display: block;
    width: 120px;
    height: 76px;
    background: #f4f4f4;
    overflow: hidden;
}

.pc-video-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* IN 视频卡片封面右下角播放图标 */
.pc-video-card-cover::after {
    content: '';
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.55);
    background-image: url('/resource/web/img/play.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
}

.pc-video-card-title {
    font-size: 18px;
    line-height: 1.5;
    color: #333;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

/* 侧栏视频标题小一号：仅作用于内容页 / 首页·分类页，
   搜索页 (.page-search) 复用了 .pc-home-right 故保持基础字号。 */
.theme-pc.page-home .pc-video-card-title,
.theme-pc.page-detail .pc-video-card-title {
    font-size: 16px;
}

/* IN 视频"查看更多"按钮：跳转视频分类列表 */
.pc-video-more {
    display: block;
    padding: 8px 0 2px;
    margin-top: 2px;
    border-top: 1px solid #f0f0f0;
    color: #999;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    text-decoration: none;
    transition: color 0.2s;
}

.pc-video-more:hover {
    color: #c40000;
}

.pc-footer {
    margin-top: 40px;
    border-top: 1px solid #f3f3f3;
}

.footer-inner {
    min-height: 72px;
    font-size: 13px;
    color: #777;
}

.article-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.article-main {
    background: #fff;
    padding: 20px 24px 32px;
}

.article-side {
    align-self: start;
}

.article-actions {
    position: absolute;
    left: -68px;
    top: 14px;
    display: grid;
    gap: 12px;
}

.article-action {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: #666;
    display: grid;
    place-items: center;
    font-size: 12px;
    cursor: default;
}

.article-action-icon {
    font-size: 14px;
    line-height: 1;
}

.article-title {
    margin: 0 0 18px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.35;
}

.article-meta {
    display: grid;
    gap: 4px;
    margin-bottom: 28px;
    color: #8c8c8c;
    font-size: 14px;
}

.article-intro {
    margin: 18px 0;
    padding: 14px 16px;
    background: #fafafa;
    color: #666;
    border-left: 3px solid #c40000;
    line-height: 1.8;
}

.article-cover {
    margin: 16px 0 22px;
}

.article-content {
    font-size: 17px;
    line-height: 1.95;
}

.article-content img {
    margin: 20px auto;
}

.article-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #f0f0f0;
}

.detail-side-block {
    background: #f5f5f5;
    padding: 18px 20px 20px;
}

.detail-side-block .portal-title {
    margin-bottom: 14px;
}

.detail-side-block .portal-title h2 {
    font-size: 18px;
}

.side-list {
    display: grid;
    gap: 14px;
}

.side-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    align-items: center;
}

.side-item img {
    width: 110px;
    height: 76px;
    object-fit: cover;
}

.page-banner {
    padding-bottom: 18px;
    border-bottom: 1px solid #f2f2f2;
}

.page-banner h1 {
    margin: 10px 0 8px;
    font-size: 30px;
}

.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.pager-btn {
    padding: 10px 18px;
    border-radius: 20px;
    background: #c40000;
    color: #fff;
}

/* 移动端样式块已迁移到 site-mobile.css，避免互相污染。 */

@media (max-width: 1080px) {

    .pc-home-layout,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-actions {
        display: none;
    }


    .pc-home-right,
    .pc-side-block {
        border-left: 0;
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .container {
        width: min(100% - 24px, 1200px);
    }

    .header-search {
        display: none;
    }

    .brand-text strong,
    .article-title {
        font-size: 30px;
    }

    .pc-carousel-main,
    .pc-article-grid,
    .pc-article-card,
    .article-layout,
    .article-switch {
        grid-template-columns: 1fr;
    }

    .pc-carousel-cover {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .pc-article-cover {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }
}

/* ============================================================
 * 内容详情页
 * ============================================================ */
body.theme-pc.page-detail,
body.theme-pc.page-detail .site-shell {
    background: #fff;
}

body.theme-mobile {
    background: #f4f4f4;
}

/* 详情页 flex 两列布局：主内容自适应，热榜固定窄栏。 */
.article-wrap {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    width: 1200px;
    min-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    box-sizing: border-box;
    position: relative;
}

.article-col {
    flex: 0 0 880px;
    min-width: 880px;
    width: 880px;
    max-width: none;
    background: #fff;
    margin: 0 0 24px;
    padding: 0;
    box-sizing: border-box;
}

.article-side {
    flex: 0 0 310px;
    width: 310px;
    box-sizing: border-box;
    padding: 0;
}

.article-detail {
    color: #666;
}

.article-title {
    margin: 0 0 24px;
    font-size: 32px;
    line-height: 42px;
    font-weight: 700;
    color: #000;
    text-align: justify;
}

.article-author,
.article-time {
    font-size: 14px;
    color: #999;
    line-height: 20px;
}

.article-author {
    margin-top: 24px;
}

.article-time {
    margin-top: 8px;
    margin-bottom: 24px;
}

.article-author span,
.article-time span {
    margin-right: 8px;
}

.article-summary {
    margin: 16px 0 22px;
    padding: 14px 16px;
    background: #fafafa;
    border-left: 3px solid #c40000;
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.article-summary cite {
    display: block;
    font-style: normal;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.article-summary p {
    margin: 6px 0 0;
}

.article-cover {
    margin: 16px 0 22px;
}

.article-cover img {
    width: 100%;
    height: auto;
    display: block;
}

/* 视频详情页播放器（PC type=2 文章）：16:9 自适应，缺源时封面图 + 播放图标兜底 */
.pc-video-player {
    position: relative;
    width: 100%;
    margin: 0 0 24px;
    background: #000;
    aspect-ratio: 16 / 9;
    max-height: 70vh;
    overflow: hidden;
    border-radius: 4px;
}

.pc-video-player-tag,
.pc-video-player-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

.pc-video-player-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-video-player-fallback img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.pc-video-player-fallback-icon {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.18)
        url('/resource/web/img/play.svg') center / 30px no-repeat;
    z-index: 2;
}

.pc-video-player-duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 2px 6px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    z-index: 2;
}

.article-content {
    font-size: 18px;
    line-height: 30px;
    color: #666;
    word-break: break-all;
    max-width: 870px;
}

.article-content p {
    margin: 0 0 1em;
    font-size: 18px;
    line-height: 1.5;
    text-align: justify;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 16px auto;
}

.article-tags {
    margin: 24px 0 0;
    padding: 0;
}

.article-tags ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-tags li {
    list-style: none;
}

.article-tags a {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #eee;
    border-radius: 14px;
    color: #999;
    font-size: 13px;
    line-height: 1.4;
    background: #fafafa;
    transition: color 0.2s, border-color 0.2s;
}

.article-tags a:hover {
    color: #c40000;
    border-color: #c40000;
}

.article-disclaimer-title {
    margin-top: 32px;
    text-align: center;
    font-size: 14px;
    color: #afafaf;
    line-height: 20px;
}

.article-disclaimer {
    margin-top: 8px;
    text-align: center;
    font-size: 12px;
    color: #c2c2c2;
    line-height: 20px;
}

.article-like-bar {
    display: flex;
    justify-content: center;
    margin: 36px 0 40px;
}

/* ---- 面包屑导航 ---- */
.breadcrumb {
    margin: 14px 0 18px;
    font-size: 13px;
    line-height: 1.5;
    color: #888;
}
.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}
.breadcrumb-item a {
    color: #888;
    text-decoration: none;
    transition: color 0.18s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 280px;
    display: inline-block;
}
.breadcrumb-item a:hover {
    color: #c40000;
}
.breadcrumb-item.is-current span {
    color: #333;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 320px;
    display: inline-block;
}
.breadcrumb-sep {
    margin: 0 8px;
    color: #ccc;
    font-size: 12px;
    user-select: none;
}

/* ---- 上一篇 / 下一篇 ---- */
.article-prev-next {
    margin: 32px 0 24px;
    padding: 4px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.article-prev-next-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: contents;
}
.article-prev-next-item {
    flex: 1 1 0;
    min-width: 0;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    padding: 12px 16px;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}
.article-prev-next-item.is-empty {
    background: transparent;
    border-color: #f5f5f5;
}
.article-prev-next-item:not(.is-empty):hover {
    border-color: #c40000;
    background: #fff7f7;
}
.article-prev-next-item a {
    display: block;
    text-decoration: none;
    color: #333;
}
.article-prev-next-label {
    display: block;
    font-size: 12px;
    color: #999;
    line-height: 1.4;
    margin-bottom: 4px;
}
.article-prev-next-title {
    display: block;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.article-prev-next-item:not(.is-empty) a:hover .article-prev-next-title {
    color: #c40000;
}
.article-prev-next-item.is-empty .article-prev-next-title {
    color: #ccc;
    font-weight: 400;
    cursor: default;
}
.article-prev-next-item.article-next {
    text-align: right;
}

.like-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 140px;
    height: 60px;
    padding: 0 28px;
    border: 0;
    border-radius: 30px;
    background: #f64e45;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(246, 78, 69, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.like-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(246, 78, 69, 0.36);
}

.like-icon {
    font-size: 20px;
}

.like-count {
    font-weight: 600;
}

/* 已点赞状态：置灰，不再可点击 */
.like-btn.is-liked {
    background: #b8b8b8;
    box-shadow: none;
    cursor: default;
}

.like-btn.is-liked:hover {
    transform: none;
    box-shadow: none;
}

.article-comment {
    margin: 40px 0 36px;
}

.comment-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 16px;
}

.comment-empty {
    padding: 28px 0;
    text-align: center;
    color: #999;
    font-size: 14px;
    background: #fafafa;
    border-radius: 4px;
}

.article-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 22px 0;
    margin-bottom: 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.article-switch strong {
    display: block;
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
    font-weight: 500;
}

.article-switch a,
.article-switch span {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-switch a:hover {
    color: #c40000;
}

.switch-next {
    text-align: right;
}

/* 站点备案信息卡：右侧边栏展示 ICP / 公安备案 / 版权信息 */
.site-info-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    padding: 14px;
    box-sizing: border-box;
}

.site-info-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    line-height: 20px;
}

.site-info-line {
    margin: 0 0 6px;
    font-size: 12px;
    color: #999;
    line-height: 1.7;
    word-break: break-all;
}

.site-info-line:last-child {
    margin-bottom: 0;
}

/* 备案号超链接：保持小字灰色基调，悬浮变红色并加下划线提示可点击 */
.site-info-line .site-info-link {
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-info-line .site-info-link:hover {
    color: #f44336;
    text-decoration: underline;
}

/* 热榜 */
.hot-card {
    background: #f9f9f9;
    border-radius: 4px;
    padding: 14px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.hot-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    line-height: 24px;
    display: flex;
    align-items: center;
}

.hot-icon {
    margin-right: 4px;
    font-size: 18px;
}

.hot-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 6px;
}

.hot-list li {
    margin: 0 0 14px;
    line-height: 20px;
    font-size: 14px;
}

.hot-list li:last-child {
    margin-bottom: 0;
}

.hot-list a {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: #333;
}

.hot-list a:hover .hot-rank-text {
    font-weight: 600;
}

.hot-rank-num {
    flex: 0 0 18px;
    font-size: 16px;
    font-weight: 700;
    color: #999;
    text-align: left;
    line-height: 20px;
    margin-right: 8px;
}

.hot-rank-top {
    color: #c40000;
}

.hot-rank-text {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 20px;
}

/* 左侧浮动工具栏 (赞 / 评论 / 分享) —— 固定在文章主列左侧 */
.article-tools {
    position: fixed;
    top: 168px;
    left: max(20px, calc(50% - 650px));
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tool-btn {
    width: 38px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #fff;
    color: #000;
    font-size: 11px;
    line-height: 1.2;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.tool-btn:hover {
    color: #c40000;
}

.tool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    line-height: 0;
}

.tool-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.tool-count {
    font-size: 11px;
    line-height: 1;
}

/* 左侧浮动点赞按钮：已赞高亮 */
.tool-btn-like.is-liked {
    color: #c40000;
}

/* 点赞图标：未点赞显示空心爱心，已点赞切换为红色实心爱心 */
.tool-btn-like .tool-icon-heart-filled {
    display: none;
}

.tool-btn-like.is-liked .tool-icon-heart-outline {
    display: none;
}

.tool-btn-like.is-liked .tool-icon-heart-filled {
    display: block;
}

/* 分享浮动菜单：悬浮分享按钮时弹出，位于按钮右侧 */
.share-trigger {
    position: relative;
}

/* 透明桥接条：覆盖按钮与菜单之间的空隙，避免鼠标移动时悬浮状态中断 */
.share-trigger::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%;
    width: 8px;
}

.share-menu {
    position: absolute;
    top: 0;
    left: calc(100% + 8px);
    z-index: 40;
    display: none;
    min-width: 132px;
    padding: 5px 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
}

/* 菜单左侧小箭头指向分享按钮 */
.share-menu::before {
    content: '';
    position: absolute;
    top: 16px;
    left: -5px;
    width: 10px;
    height: 10px;
    background: #fff;
    transform: rotate(45deg);
}

.share-trigger:hover .share-menu,
.share-trigger.is-open .share-menu {
    display: block;
}

.share-menu-item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 14px;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 13px;
    line-height: 1;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.share-menu-item:hover {
    background: #f7f7f7;
    color: #c40000;
}

.share-menu-icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

.share-menu-link {
    color: #8a8a8a;
}

/* 分享菜单品牌图标：彩色圆形徽章 */
.share-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.share-badge-wechat {
    background: #07c160;
}

.share-badge-weibo {
    background: #ff8200;
}

.share-badge-qzone {
    background: #ffb400;
    color: #333;
}

/* 复制链接成功轻提示 */
.share-toast {
    position: fixed;
    left: 50%;
    top: 64px;
    transform: translateX(-50%);
    z-index: 1100;
    padding: 10px 20px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.share-toast.is-visible {
    opacity: 1;
}

/* 微信分享二维码弹层 */
.share-qr-layer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-qr-layer[hidden] {
    display: none;
}

.share-qr-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.share-qr-panel {
    position: relative;
    box-sizing: border-box;
    width: 272px;
    padding: 26px 24px 20px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.18);
}

.share-qr-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #999;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.share-qr-close:hover {
    color: #c40000;
}

.share-qr-title {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.share-qr-box {
    width: 176px;
    height: 176px;
    margin: 0 auto;
    overflow: hidden;
}

.share-qr-hint {
    margin-top: 14px;
    font-size: 12px;
    color: #999;
    line-height: 1.6;
}

.share-qr-error {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #999;
    font-size: 13px;
}

/* 右下角浮动作按钮 */
.page-floats {
    position: fixed;
    right: 16px;
    bottom: 88px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.float-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

.float-btn:hover {
    color: #c40000;
}

/* 详情页已移除标签和评论区域，保留基础样式兼容旧模板。 */
.article-tags,
.m-article-tags,
.article-comment,
.m-article-comment {
    display: none;
}


background: #fff;
padding: 16px 14px 0;
margin-bottom: 12px;
}

.m-article-title {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.45;
    font-weight: 700;
    color: #111;
    text-align: justify;
}

.m-article-author,
.m-article-time {
    font-size: 13px;
    color: #999;
    line-height: 20px;
}

.m-article-author {
    margin-bottom: 4px;
}

.m-article-time {
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
}

.m-article-views {
    margin-left: auto;
}

.m-article-summary {
    margin: 14px 0;
    padding: 12px 14px;
    background: #fafafa;
    border-left: 3px solid #c40000;
    color: #666;
    font-size: 13px;
    line-height: 1.7;
    border-radius: 2px;
}

.m-article-summary summary {
    cursor: pointer;
    font-weight: 600;
    color: #333;
    list-style: none;
}

.m-article-summary summary::-webkit-details-marker {
    display: none;
}

.m-article-summary p {
    margin: 6px 0 0;
}

.m-article-cover {
    margin: 12px 0 16px;
}

.m-article-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.m-article-content {
    font-size: 17px;
    line-height: 1.85;
    color: #333;
    word-break: break-all;
}

.m-article-content p {
    margin: 0 0 1em;
}

.m-article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px auto;
}

.m-article-tags {
    margin: 20px 0 0;
    padding: 0;
}

.m-article-tags ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.m-article-tags a {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid #eee;
    border-radius: 14px;
    color: #999;
    font-size: 12px;
    background: #fafafa;
}

.m-article-tags a:hover {
    color: #c40000;
    border-color: #c40000;
}

.m-article-disclaimer-title {
    margin-top: 28px;
    text-align: center;
    font-size: 13px;
    color: #afafaf;
}

.m-article-disclaimer {
    margin-top: 6px;
    margin-bottom: 8px;
    text-align: center;
    font-size: 11px;
    color: #c2c2c2;
    line-height: 1.7;
}

.m-article-like-bar {
    display: flex;
    justify-content: center;
    margin: 24px 0 16px;
}

.m-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 120px;
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 22px;
    background: #f64e45;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(246, 78, 69, 0.24);
}

.m-article-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.m-article-switch strong {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 6px;
    font-weight: 500;
}

.m-article-switch a,
.m-article-switch span {
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.m-article-switch a:hover {
    color: #c40000;
}

.m-switch-next {
    text-align: right;
}

.m-mobile-section {
    padding: 12px 14px;
    background: #fff;
    margin-bottom: 12px;
}

.m-section-title h2 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-left: 3px solid #c40000;
    padding-left: 8px;
    line-height: 1;
}

.m-card-list {
    display: grid;
    gap: 12px;
}

.m-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
    align-items: center;
    color: #222;
}

.m-card img {
    width: 110px;
    height: 76px;
    object-fit: cover;
    border-radius: 4px;
}

.m-card h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.m-article-comment {
    padding: 16px 14px;
    background: #fff;
}

.m-comment-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 12px;
}

.m-comment-empty {
    padding: 22px 0;
    text-align: center;
    color: #999;
    font-size: 13px;
    background: #fafafa;
    border-radius: 4px;
}

/* ---- 信息流加载状态（PC：纯文本结构）---- */
.feed-status {
    padding: 24px 0 36px;
    text-align: center;
    font-size: 13px;
    color: #9b9b9b;
    letter-spacing: 0.5px;
}

/* 响应式 — 内容页 */
@media (max-width: 1268px) {
    .article-tools {
        display: none;
    }
}

@media (max-width: 1100px) {
    .article-wrap {
        width: calc(100% - 32px);
    }
}

@media (max-width: 880px) {
    .article-wrap {
        flex-direction: column;
        padding-bottom: 20px;
        width: calc(100% - 20px);
    }

    .article-col {
        width: 100%;
        min-width: 0;
        flex: 0 0 auto;
    }

    .article-side {
        flex: 0 0 auto;
        padding: 0;
        width: 100%;
        min-width: 0;
    }

    .article-title {
        font-size: 24px;
        line-height: 1.4;
    }

    .article-content {
        font-size: 16px;
        line-height: 1.8;
    }

    .page-floats {
        right: 12px;
        bottom: 80px;
    }
}

/* ============================================================
 * 搜索结果页：复用首页右栏 + 主体左列
 * ============================================================ */
body.theme-pc.page-search {
    padding-top: 100px;
}

.pc-search-layout {
    display: grid;
    width: 1200px;
    min-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    grid-template-columns: 880px 310px;
    gap: 10px;
    align-items: start;
}

.pc-search-summary {
    background: #fff;
    padding: 18px 22px;
    margin-bottom: 14px;
    border-radius: 4px;
    border-left: 3px solid #c40000;
}

.pc-search-summary h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    font-weight: 500;
}

.pc-search-summary h2 em {
    font-style: normal;
    color: #c40000;
    font-weight: 700;
    margin: 0 2px;
}

.pc-search-summary h2 span {
    color: #c40000;
    font-weight: 700;
    margin: 0 2px;
}

.pc-search-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pc-search-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 18px;
    align-items: stretch;
    background: #fff;
    padding: 18px;
    border-radius: 4px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pc-search-item:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.pc-search-cover {
    position: relative;
    display: block;
    width: 200px;
    height: 132px;
    background: #f4f4f4;
    border-radius: 4px;
    overflow: hidden;
}

.pc-search-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pc-search-cover.is-video::after {
    content: '';
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.55);
    background-image: url('/resource/web/img/play.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.pc-search-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.pc-search-copy h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 600;
}

.pc-search-copy h3 a {
    color: #222;
}

.pc-search-copy h3 a:hover {
    color: #c40000;
}

.pc-search-intro {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pc-search-copy .meta-line {
    margin-top: auto;
    font-size: 13px;
}

.pc-search-cat {
    padding: 1px 8px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 2px;
    color: #888 !important;
}

/* 关键字高亮：搜索结果中的命中关键词用红色突出 */
.pc-search-copy .hl,
.pc-search-summary .hl {
    color: #c40000;
    font-style: normal;
    font-weight: 600;
}

.pc-search-empty {
    background: #fff;
    padding: 56px 24px;
    text-align: center;
    border-radius: 4px;
    color: #999;
    font-size: 14px;
    line-height: 1.8;
}

.pc-search-empty h3 {
    margin: 0 0 8px;
    font-weight: 500;
    font-size: 18px;
    color: #555;
}

.pc-search-empty.pc-search-tip {
    padding: 80px 24px;
}

.pc-search-empty p {
    margin: 0;
}

/* 把首页 nav-bar 的隐藏和搜索结果页的 padding 调整放在一处，
   对屏幕尺寸变化时同步生效 */
@media (max-width: 1080px) {
    .pc-search-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pc-search-layout {
        width: calc(100% - 24px);
        min-width: 0;
    }

    .pc-search-item {
        grid-template-columns: 110px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .pc-search-cover {
        width: 110px;
        height: 80px;
    }

    .pc-search-copy h3 {
        font-size: 16px;
    }

    .pc-search-summary {
        padding: 14px 16px;
    }
}
/* ---- 文章预览页（后台预览按钮） ---- */
.preview-notice {
    width: 848px;
    margin: 12px auto 0;
    padding: 10px 16px;
    box-sizing: border-box;
    background: #fff7e6;
    border: 1px solid #ffe1a8;
    border-radius: 6px;
    color: #8a5a00;
    font-size: 13px;
    line-height: 20px;
}

.preview-notice span {
    font-weight: 700;
    margin-right: 6px;
}

.article-wrap-single {
    width: 880px;
    min-width: 880px;
}

@media (max-width: 1100px) {
    .preview-notice {
        width: calc(100% - 32px);
    }

    .article-wrap-single {
        width: calc(100% - 32px);
        min-width: 0;
    }
}

@media (max-width: 880px) {
    .preview-notice {
        width: calc(100% - 20px);
    }
}

/* ============================================================
 * PC 作者主页：复用搜索页分栏 + 首页双列卡片网格
 * ============================================================
 * 设计意图：
 * - 左列顶部为极简白底作者信息卡（与 m 端类名一致，便于维护）；
 * - 头像 72px 圆形、姓名醒目、简介最多两行；
 * - 下方直接复用 .pc-article-grid 双列卡片，图文/视频混合，无 tab；
 * - 所有新规则均加 body.theme-pc.page-author 前缀，避免污染 m 端。
 */
body.theme-pc.page-author {
    padding-top: 100px;
}

.page-author .author-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
    padding: 22px 24px;
    background: #fff;
    border-radius: 4px;
}

.page-author .author-avatar {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: #f4f4f4;
}

.page-author .author-avatar-img,
.page-author .author-avatar-fallback {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-author .author-avatar-fallback svg {
    display: block;
    width: 100%;
    height: 100%;
}

.page-author .author-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.page-author .author-name {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
    color: #222;
}

.page-author .author-intro {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* 作者页空态：在搜索页空态基础上稍微收紧，避免与上方卡片间距过大 */
.page-author .author-empty {
    padding: 48px 24px;
}

/* 小屏适配：与 .pc-search-layout 的响应式断点保持一致 */
@media (max-width: 768px) {
    body.theme-pc.page-author {
        padding-top: 80px;
    }

    .page-author .author-header {
        gap: 14px;
        padding: 16px 18px;
    }

    .page-author .author-avatar {
        width: 56px;
        height: 56px;
    }

    .page-author .author-name {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .page-author .author-intro {
        font-size: 13px;
    }
}

/* ============================================================
 * PC 详情页作者介绍卡
 * ============================================================
 * 位置：右侧栏 .article-side 顶部、热榜 .hot-card 之前。
 * 设计意图：
 * - 外层 section 复用 .pc-side-block-gray 的间距/圆角，再覆盖为白底灰框；
 * - 栏目标题用 .hot-title/.hot-icon 结构，文案「✍️ 作者」；
 * - 内部作者卡为可点击链接（头像 + 姓名/简介），无右侧 chevron，无 hover 动效；
 * - 所有规则加 .author-intro-block 前缀，避免污染其他页面。
 */
.author-intro-block {
    background: #fff;
    border: 1px solid #f0f0f0;
}

.author-intro-block .author-intro-card {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.author-intro-block .author-intro-card-avatar {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
}

.author-intro-block .author-intro-card-avatar img,
.author-intro-block .author-intro-card-fallback {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-intro-block .author-intro-card-fallback svg {
    display: block;
    width: 100%;
    height: 100%;
}

.author-intro-block .author-intro-card-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1 1 auto;
}

.author-intro-block .author-intro-card-name {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    color: #222;
}

.author-intro-block .author-intro-card-intro {
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.5;
    color: #888;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* 小屏适配：侧栏堆叠到文章下方，适当收紧 */
@media (max-width: 768px) {
    .author-intro-block .author-intro-card {
        gap: 10px;
    }

    .author-intro-block .author-intro-card-avatar {
        width: 40px;
        height: 40px;
    }

    .author-intro-block .author-intro-card-name {
        font-size: 14px;
    }

    .author-intro-block .author-intro-card-intro {
        font-size: 12px;
    }
}
