/**
 * 逗号CMS - 红色宽屏主题样式
 * 主色调：#c00（红色）
 */
/* ========== 初始化样式 ========== */
* {
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, main, nav, section {
    display: block;
}
body {
    background-color: #f9f9f9;
    color: #333;
    font: 16px/1.75em Arial, "Microsoft Yahei", "Lucida Grande";
    overflow-x: hidden;
    width: 100%;
    word-break: break-all;
    text-align: justify;
}
a {
    text-decoration: none;
    outline: none;
    color: #333;
}
a:hover {
    color: #c00;
}
a img {
    border: none;
}
li {
    list-style: none;
}
.clear {
    clear: both;
    height: 0;
    overflow: hidden;
}
.inner {
    width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}
/* ========== 背景色 ========== */
.bgcolor {
    background-color: #c00;
}
/* ========== 公用 ========== */
.mr5 {
    margin-right: 5px;
}
/* ========== 缩略图 ========== */
.thumbnail {
    position: relative;
    overflow: hidden;
}
.thumbnail a {
    display: block;
    position: relative;
    overflow: hidden;
    padding-bottom: 66%;
}
.thumbnail img {
    display: block;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: auto;
    object-fit: cover;
}
/* ========== 顶部栏 ========== */
#header {
    padding: 35px 0;
    background-color: #fff;
    position: relative;
    z-index: 2;
    border-bottom: 1px solid #eee;
}
#header .inner {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
/* LOGO */
#logo {
    float: left;
    flex-shrink: 0;
}
#logo h1 {
    font-size: 0;
}
#logo a {
    display: block;
    height: 40px;
    overflow: hidden;
    font-size: 28px;
    font-weight: 700;
    color: #c00;
    line-height: 40px;
}
#logo a img {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}
/* ========== 搜索 ========== */
.search {
    float: right;
    position: relative;
    margin-left: auto;
}
.searchForm {
    width: 400px;
    padding: 5px 45px 5px 5px;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}
.searchForm .text {
    background-color: #f8f8f8;
    color: #333;
    height: 35px;
    line-height: 35px;
    width: 100%;
    padding: 0 10px;
    font-size: 14px;
    border: none;
    outline: none;
    border-radius: 3px 0 0 3px;
}
.searchForm .submit {
    display: block;
    width: 45px;
    height: 35px;
    position: absolute;
    right: 0;
    top: 5px;
    cursor: pointer;
    font-size: 18px;
    color: #fff;
    text-align: center;
    border: none;
    background: transparent;
    border-radius: 0 3px 3px 0;
}
.searchForm .submit i {
    line-height: 35px;
}
/* ========== 移动端按钮组 ========== */
.mobile-btns {
    display: none;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}
/* 移动端搜索按钮 */
.schBtn {
    display: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 20px;
    text-align: center;
    line-height: 40px;
    color: #666;
    flex-shrink: 0;
    border-radius: 4px;
    transition: background 0.3s;
}
.schBtn:hover {
    background: #f5f5f5;
}
/* 移动端导航按钮 */
.navBtn {
    display: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin-left: 0;
}
.navBtn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #666;
    position: absolute;
    top: 50%;
    left: 0;
    margin-top: -1.5px;
    transition: all 0.3s;
}
.navBtn span:before,
.navBtn span:after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: #666;
    position: absolute;
    left: 0;
    top: -9px;
    transition: transform 0.3s;
}
.navBtn span:after {
    top: auto;
    bottom: -9px;
}
.navBtn.open span {
    height: 0;
}
.navBtn.open span:before {
    transform: rotate(45deg);
    top: 0;
}
.navBtn.open span:after {
    transform: rotate(-45deg);
    bottom: auto;
    top: 0;
}
/* 搜索遮罩 */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}
.search-overlay.active {
    display: flex;
}
.search-overlay-inner {
    width: 90%;
    max-width: 600px;
    position: relative;
}
.search-overlay-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.search-overlay-close:hover {
    opacity: 1;
}
.search-overlay-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 18px;
    border: none;
    border-radius: 8px 0 0 8px;
    outline: none;
    background: #fff;
}
.search-overlay-btn {
    padding: 16px 30px;
    font-size: 18px;
    background: #c00;
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background 0.3s;
}
.search-overlay-btn:hover {
    background: #a00;
}
.search-overlay-inner form {
    display: flex;
}
/* ========== 导航 ========== */
.nav {
    clear: both;
    background: #c00;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav .inner {
    padding: 0 20px;
}
.nav ul {
    position: relative;
    height: 60px;
    display: flex;
}
.nav li {
    float: left;
    text-align: center;
    color: #fff;
    font-size: 18px;
    line-height: 60px;
    position: relative;
    flex-shrink: 0;
    padding: 0 5px;
}
.nav li i {
    margin-right: 5px;
}
.nav li a {
    display: block;
    color: #fff;
    padding: 0 16px;
    position: relative;
    transition: background 0.3s;
}
.nav li a:hover,
.nav li.cur > a {
    background-color: #d72424;
}
/* ========== 广告位轮播图适配红色主题 ========== */
.banner {
    margin: 0 auto 15px;
    max-width: 1200px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 0 2px 0 rgba(98, 124, 153, 0.1);
    background-color: #000;
}
.banner .ad-slider {
    height: 350px;
    border-radius: 4px;
    overflow: hidden;
}
.banner .ad-slider .ad-slider-track {
    height: 350px;
}
.banner .ad-slider .ad-slide {
    height: 350px;
}
.banner .ad-slider .ad-slide a {
    display: block;
    width: 100%;
    height: 100%;
}
.banner .ad-slider .ad-slide img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}
.banner .ad-slider .ad-slider-prev,
.banner .ad-slider .ad-slider-next {
    top: 40%;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 25px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.banner .ad-slider .ad-slider-prev {
    left: -58px;
}
.banner .ad-slider .ad-slider-next {
    right: -58px;
}
.banner:hover .ad-slider .ad-slider-prev {
    left: 10px;
}
.banner:hover .ad-slider .ad-slider-next {
    right: 10px;
}
.banner .ad-slider .ad-slider-dots {
    bottom: 26px;
    right: 20px;
    left: auto;
    transform: none;
    display: flex;
    gap: 8px;
    z-index: 11;
    position: absolute;
}
.banner .ad-slider .ad-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
    display: inline-block;
}
.banner .ad-slider .ad-dot.active {
    width: 12px;
    height: 12px;
    background: #fc7247;
    box-shadow: rgba(0, 0, 0, 0.1) 1px 1px 0;
}
/* ========== 轮播图兼容 ========== */
.jzicon-angle-left:before {
    content: "\f104";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}
.jzicon-angle-right:before {
    content: "\f105";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}
.article-content {
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 10px auto;
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
}
.article-content p {
    margin-bottom: 12px;
    text-indent: 2em;
}
.article-content h2,
.article-content h3 {
    margin: 20px 0 10px;
}
.article-content blockquote {
    border-left: 3px solid #c00;
    padding: 10px 15px;
    margin: 15px 0;
    background: #fafafa;
    border-radius: 0 5px 5px 0;
}
/* ========== 小编推荐 ========== */
.section {
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
}
#recommend h3 {
    font-weight: normal;
    font-size: 22px;
    line-height: 1.125em;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    color: #c00;
}
#recommend ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 10px;
}
#recommend li {
    overflow: hidden;
    padding: 15px 20px 15px 0;
    border-bottom: 1px solid #f5f5f5;
}
#recommend li:nth-child(3n) {
    padding-right: 0;
}
#recommend .thumbnail {
    float: left;
    width: 150px;
}
#recommend .info {
    margin-left: 170px;
    overflow: hidden;
}
#recommend .title {
    font-size: 16px;
    line-height: 1.75em;
    overflow: hidden;
    text-overflow: ellipsis;
}
#recommend .title a {
    color: #333;
}
#recommend .title a:hover {
    color: #c00;
}
#recommend .intro {
    font-size: 14px;
    line-height: 2em;
    height: 4em;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: justify;
}
/* ========== 文章列表 ========== */
.newsitem {
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
}
.newsitem .thumbnail {
    float: left;
    width: 280px;
}
.newsitem .info {
    margin-left: 310px;
    overflow: hidden;
}
.newsitem h2 {
    font-weight: normal;
    font-size: 22px;
    line-height: 1.5em;
    margin-bottom: 8px;
}
.newsitem h2 a {
    color: #333;
}
.newsitem h2 a:hover {
    color: #c00;
}
.newsitem .meta {
    color: #999;
    margin-bottom: 12px;
    font-size: 14px;
}
.newsitem .meta span {
    float: left;
    padding-right: 20px;
}
.newsitem .meta a {
    color: #999;
}
.newsitem .meta a:hover {
    color: #c00;
}
.newsitem .excerpt {
    font-size: 16px;
    line-height: 2em;
    margin-left: 310px;
    height: 4em;
    overflow: hidden;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: justify;
}
/* ========== 列表模式切换 ========== */
.newsitem.list-mode-1 .thumbnail {
    float: left;
}
.newsitem.list-mode-1 .info {
    margin-left: 310px;
}
.newsitem.list-mode-1 .excerpt {
    margin-left: 310px;
}
.newsitem.list-mode-2 .thumbnail {
    float: right;
}
.newsitem.list-mode-2 .info {
    margin-right: 310px;
    margin-left: 0;
}
.newsitem.list-mode-2 .excerpt {
    margin-right: 310px;
    margin-left: 0;
}
/* ========== 分页 ========== */
.pagenavi {
    font-size: 0;
    line-height: normal;
    text-align: center;
    padding-top: 25px;
    padding-bottom: 10px;
}
.pagenavi a,
.pagenavi a.now {
    display: inline-block;
    font-size: 14px;
    color: #999;
    background-color: #fff;
    margin: 2px 2.5px;
    height: 30px;
    line-height: 30px;
    padding: 0 14px;
    border-radius: 3px;
    border: 1px solid #eee;
}
.pagenavi a:hover {
    background-color: #c00;
    color: #fff;
    border-color: #c00;
}
.pagenavi a.now {
    background-color: #c00;
    color: #fff;
    border-color: #c00;
}
/* ========== 分类页头部 ========== */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px 24px;
    background: #fff;
    border-radius: 5px;
    margin-top: 20px;
    border: 1px solid #eee;
}
.category-header h1 {
    font-size: 22px;
    color: #333;
    font-weight: normal;
    word-break: break-word;
}
.category-header h1 i {
    margin-right: 8px;
}
.category-count {
    font-size: 14px;
    color: #999;
}
/* ========== 主内容 + 侧边栏两栏布局 ========== */
.main-wrap {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}
.main-left {
    flex: 1;
    min-width: 0;
}
.main-right {
    width: 320px;
    flex-shrink: 0;
}
/* ========== 侧边栏 ========== */
.widget {
    margin-bottom: 20px;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 18px 20px;
}
.widget h3 {
    font-weight: normal;
    font-size: 20px;
    line-height: 1.125em;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #c00;
    color: #333;
}
.widget li {
    border-top: 1px solid #f0f0f0;
    overflow: hidden;
    font-size: 15px;
    position: relative;
    padding: 12px 0 12px 14px;
}
.widget li:before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background-color: #c00;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 20px;
}
.widget li a {
    display: block;
    word-break: break-all;
    color: #333;
}
.widget li a:hover {
    color: #c00;
}
.widget .text time {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    color: #999;
    margin-top: 2px;
}
.widget .pic {
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
}
.widget .pic:before {
    display: none;
}
.widget .pic .thumbnail {
    float: left;
    width: 90px;
    padding-top: 0;
}
.widget .pic .thumbnail a {
    padding-bottom: 66%;
}
.widget .pic p {
    margin-left: 102px;
    overflow: hidden;
}
.widget .pic p a {
    display: block;
    font-size: 15px;
    line-height: 1.5em;
    max-height: 4em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.widget .pic p .infotr {
    display: block;
    font-size: 15px;
    line-height: 1.6em;
    max-height: 4em;
    overflow: hidden;
    color: #999;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
/* 推荐文章标签 */
.recommend-tag {
    display: inline-block;
    font-size: 14px;
    color: #c00;
    margin-top: 2px;
}
.recommend-tag i {
    margin-right: 2px;
}

/* ========== 友情链接 ========== */
.links {
    background-color: #fff;
    padding: 15px 0 12px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.links ul {
    overflow: hidden;
    font-size: 0;
    line-height: normal;
    text-align: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}
.links li {
    display: inline-block;
    font-size: 14px;
    color: #999;
    padding: 0 10px;
    line-height: 30px;
    position: relative;
}
.links li a {
    color: #999;
}
.links li a:hover {
    color: #c00;
}
.links li:first-child {
    color: #333;
    font-weight: 600;
}
/* ========== 底部 ========== */
.footer {
    background-color: #fff;
    padding: 20px 0;
}
.footer .inner {
    padding: 0 20px;
}
.btm {
    overflow: hidden;
}
.copyright {
    text-align: center;
    font-size: 14px;
    color: #999;
}
.copyright a {
    color: #999;
    display: inline-block;
}
.copyright a:hover {
    color: #c00;
}
.copyright p {
    margin-bottom: 4px;
}
/* ========== 返回顶部 ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: #c00;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(204, 0, 0, 0.4);
    transition: all 0.3s;
    z-index: 999;
    text-decoration: none;
}
.back-to-top:hover {
    background: #a00;
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(204, 0, 0, 0.5);
}
.back-to-top.show {
    display: flex;
}
/* ========== 文章详情页 ========== */
.article-detail {
    background: #fff;
    padding: 30px;
    border-radius: 5px;
    border: 1px solid #eee;
    overflow: hidden;
    word-break: break-word;
}
.article-detail h1 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #222;
    line-height: 1.4;
    font-weight: 700;
    word-break: break-word;
}
.article-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    word-break: break-word;
}
.article-meta i { margin-right: 3px; }
.article-meta a { color: #999; }
.article-meta a:hover { color: #c00; }
.article-meta span {
    white-space: nowrap;
}
@media (max-width: 768px) {
    .article-meta span {
        white-space: normal;
    }
}
.article-content {
    line-height: 1.8;
    font-size: 16px;
    color: #333;
    overflow: hidden;
    word-break: break-word;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 10px 0;
    display: block;
}
.article-content p {
    margin-bottom: 12px;
    text-indent: 2em;
    word-break: break-word;
    overflow-wrap: break-word;
}
.article-content h2,
.article-content h3 {
    margin: 20px 0 10px;
    word-break: break-word;
}
.article-content blockquote {
    border-left: 3px solid #c00;
    padding: 10px 15px;
    margin: 15px 0;
    background: #fafafa;
    border-radius: 0 5px 5px 0;
    word-break: break-word;
    overflow: hidden;
}
/* 阅读全文 */
.readmore-preview { position: relative; }
.readmore-overlay {
    position: relative;
    margin-top: -120px;
    padding-top: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.92) 50%, #fff 100%);
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.readmore-overlay-link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
}
.readmore-overlay-arrow {
    animation: arrowBounce 1.5s ease-in-out infinite;
    font-size: 28px;
    color: #c00;
    display: block;
}
.readmore-overlay-hint {
    font-size: 14px;
    color: #999;
}
@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(8px); opacity: 1; }
}
.readmore-wrapper {
    text-align: center;
    padding: 20px 0;
}
.readmore-btn {
    background: #c00;
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.3);
}
.readmore-btn:hover {
    background: #a00;
    transform: translateY(-2px);
}
/* 文章导航 */
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}
.article-nav a {
    flex: 1;
    padding: 12px 16px;
    background: #f9f9f9;
    border-radius: 5px;
    transition: all 0.3s;
    word-break: break-word;
    overflow: hidden;
}
.article-nav a:hover {
    background: #fff5f5;
    color: #c00;
}
.article-nav .nav-empty { flex: 1; }
.article-nav .nav-label {
    display: block;
    font-size: 14px;
    color: #999;
    margin-bottom: 4px;
}
.article-nav .nav-title {
    font-size: 14px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .article-nav {
        flex-direction: column;
    }
    .article-nav .nav-next {
        text-align: left;
    }
    .article-nav .nav-title {
        white-space: normal;
        word-break: break-word;
    }
}
/* 相关文章 */
.related-articles {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    overflow: hidden;
}
.related-articles h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #333;
}
.related-articles ul {
    list-style: none;
}
.related-articles ul li {
    padding: 6px 0;
    border-bottom: 1px dashed #f5f5f5;
}
.related-articles ul li a {
    font-size: 14px;
    color: #555;
    display: block;
    word-break: break-word;
    overflow: hidden;
}
.related-articles ul li a:hover {
    color: #c00;
}
/* ========== 响应式 ========== */
@media only screen and (max-width: 1536px) {
    .inner {
        width: 93.75%;
    }
}
@media only screen and (max-width: 1280px) {
    .nav li {
        font-size: 16px;
    }
    .newsitem .thumbnail {
        width: 220px;
    }
    .newsitem .info {
        margin-left: 250px;
    }
    .newsitem .excerpt {
        margin-left: 250px;
    }
    .newsitem.list-mode-2 .info {
        margin-right: 250px;
        margin-left: 0;
    }
    .newsitem.list-mode-2 .excerpt {
        margin-right: 250px;
        margin-left: 0;
    }
    .newsitem h2 {
        font-size: 20px;
    }
    .newsitem .excerpt {
        height: 4em;
        -webkit-line-clamp: 2;
    }
    #recommend ul {
        grid-template-columns: repeat(2, 1fr);
    }
    #recommend li:nth-child(3n) {
        padding-right: 20px;
    }
    #recommend li:nth-child(2n) {
        padding-right: 0;
    }
}
@media only screen and (max-width: 1024px) {
    #header {
        border-bottom: 1px solid #eee;
        padding: 15px 0;
    }
    #header .inner {
        height: 40px;
        display: flex;
        align-items: center;
    }
    #logo a {
        height: 30px;
        line-height: 30px;
        font-size: 22px;
    }
    #logo a img {
        height: 30px;
    }
    /* 桌面端搜索隐藏，移动端按钮组显示 */
    .search {
        display: none;
    }
    .mobile-btns {
        display: flex;
    }
    .schBtn {
        display: block;
    }
    .navBtn {
        display: block;
    }
    .nav {
        position: fixed;
        left: -100%;
        top: 72px;
        height: calc(100% - 72px);
        width: 100%;
        background-color: #fff;
        overflow-y: auto;
        transition: left 0.3s;
        -webkit-overflow-scrolling: touch;
        border-top: 1px solid #eee;
        z-index: 99;
    }
    .nav.open {
        left: 0;
    }
    .nav .inner {
        width: 100%;
        padding: 0;
    }
    .nav ul {
        flex-direction: column;
        height: auto;
        padding-bottom: 100px;
    }
    .nav li {
        float: none;
        width: auto;
        text-align: left;
        border-bottom: 1px solid #eee;
        padding: 0;
        line-height: normal;
    }
    .nav li a {
        color: #333;
        padding: 14px 20px;
        line-height: 26px;
    }
    .nav li a:hover,
    .nav li.cur > a {
        background-color: transparent;
        color: #c00;
    }
    .banner .ad-slider,
    .banner .ad-slider .ad-slide,
    .banner .ad-slider .ad-slider-track {
        height: 45vw !important;
    }
    .banner .ad-slider .ad-slide img {
        height: 45vw !important;
    }
    .banner .ad-slider .ad-slider-prev,
    .banner .ad-slider .ad-slider-next {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    .main-right {
        width: 280px;
    }
    .newsitem .thumbnail {
        width: 200px;
    }
    .newsitem .info {
        margin-left: 220px;
    }
    .newsitem .excerpt {
        margin-left: 220px;
    }
    .newsitem.list-mode-2 .info {
        margin-right: 220px;
        margin-left: 0;
    }
    .newsitem.list-mode-2 .excerpt {
        margin-right: 220px;
        margin-left: 0;
    }
    .newsitem h2 {
        font-size: 18px;
        margin-bottom: 5px;
    }
    .newsitem .meta {
        margin-bottom: 5px;
        font-size: 15px;
    }
    .newsitem .excerpt {
        font-size: 14px;
        height: 3.75em;
        -webkit-line-clamp: 2;
    }
    .pagenavi {
        padding-top: 15px;
    }
    #recommend h3 {
        font-size: 18px;
    }
    #recommend li {
        padding: 12px 15px 12px 0;
    }
    #recommend .thumbnail {
        width: 120px;
    }
    #recommend .info {
        margin-left: 135px;
    }
    #recommend .title {
        font-size: 15px;
    }
    #recommend .intro {
        font-size: 15px;
        height: 3.75em;
        -webkit-line-clamp: 2;
    }
    .widget .pic .thumbnail {
        width: 75px;
    }
    .widget .pic p {
        margin-left: 85px;
    }
    .widget .pic p a {
        font-size: 14px;
    }
    .widget .pic p .infotr {
        font-size: 14px;
    }
    .article-detail {
        padding: 20px;
    }
    .article-detail h1 {
        font-size: 22px;
    }
}
@media only screen and (max-width: 768px) {
    .inner {
        padding: 0 1px;
    }
    .nav {
        top: 62px;
        height: calc(100% - 62px);
    }
    #header {
        padding: 10px 0;
    }
    #header .inner {
        height: 42px;
    }
    #logo a {
        height: 26px;
        line-height: 26px;
        font-size: 18px;
    }
    #logo a img {
        height: 26px;
        max-width: 140px;
    }
    .search-overlay-inner form {
        flex-direction: column;
        gap: 12px;
    }
    .search-overlay-input {
        border-radius: 8px;
        padding: 14px 16px;
        font-size: 16px;
    }
    .search-overlay-btn {
        border-radius: 8px;
        padding: 14px 20px;
        font-size: 16px;
        width: 100%;
        justify-content: center;
    }
    .search-overlay-close {
        top: -44px;
        font-size: 24px;
    }
    .main-wrap {
        flex-direction: column;
        align-items: stretch;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }
    .main-left,
    .main-right {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    .banner {
        margin-bottom: 10px;
    }
    .banner .ad-slider,
    .banner .ad-slider .ad-slide,
    .banner .ad-slider .ad-slider-track {
        height: 45vw !important;
    }
    .banner .ad-slider .ad-slide img {
        height: 45vw !important;
    }
    .banner .ad-slider .ad-slider-prev,
    .banner .ad-slider .ad-slider-next {
        width: 30px;
        height: 30px;
        font-size: 14px;
        top: 50%;
        transform: translateY(-50%);
    }
    .banner .ad-slider .ad-slider-prev {
        left: 5px;
    }
    .banner .ad-slider .ad-slider-next {
        right: 5px;
    }
    .banner:hover .ad-slider .ad-slider-prev {
        left: 5px;
    }
    .banner:hover .ad-slider .ad-slider-next {
        right: 5px;
    }
    .banner .ad-slider .ad-slider-dots {
        bottom: 12px;
        right: 12px;
        gap: 6px;
    }
    .banner .ad-slider .ad-dot {
        width: 6px;
        height: 6px;
    }
    .banner .ad-slider .ad-dot.active {
        width: 10px;
        height: 10px;
    }
    .section {
        padding: 12px;
        margin-bottom: 10px;
        overflow: hidden;
    }
    #recommend ul {
        grid-template-columns: 1fr;
    }
    #recommend li {
        padding: 10px 0;
        border-bottom: 1px solid #f5f5f5;
        overflow: hidden;
    }
    #recommend li:nth-child(3n) {
        padding-right: 0;
    }
    #recommend li:last-child {
        border-bottom: none;
    }
    #recommend .thumbnail {
        float: left;
        width: 100px;
        flex-shrink: 0;
    }
    #recommend .info {
        margin-left: 115px;
        overflow: hidden;
    }
    #recommend .title {
        font-size: 15px;
        line-height: 1.5em;
        max-height: 4em;
        overflow: hidden;
    }
    #recommend .intro {
        font-size: 14px;
        height: 4em;
        -webkit-line-clamp: 2;
    }
    .category-header {
        padding: 12px 16px;
        margin-top: 12px;
        margin-bottom: 12px;
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }
    .category-header h1 {
        font-size: 18px;
        word-break: break-word;
    }
    .category-count {
        font-size: 15px;
    }
    /* ===== 修复文章列表：移动端改用 Grid 布局（缩略图固定左列，标题与简介固定右列） ===== */
    .newsitem {
        display: grid;
        grid-template-columns: 110px minmax(0, 1fr);
        grid-template-areas:
            "thumb info"
            "thumb excerpt";
        column-gap: 15px;
        row-gap: 6px;
        padding: 12px;
        margin-bottom: 10px;
        overflow: hidden;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .newsitem .thumbnail {
        grid-area: thumb;
        float: none !important;
        width: 100%;
    }
    .newsitem .info {
        grid-area: info;
        margin: 0 !important;
        overflow: hidden;
        min-width: 0;
    }
    .newsitem .excerpt {
        grid-area: excerpt;
        margin: 0 !important;
        font-size: 15px;
        height: 4em;
        -webkit-line-clamp: 2;
        line-height: 1.6em;
        overflow: hidden;
        word-break: break-all;
    }
    .newsitem.list-mode-2 .thumbnail {
        float: none !important;
    }
    .newsitem.list-mode-2 .info {
        margin: 0 !important;
    }
    .newsitem.list-mode-2 .excerpt {
        margin: 0 !important;
    }
    .newsitem h2 {
        font-size: 15px;
        line-height: 1.4em;
        margin-bottom: 4px;
        font-weight: 700;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .newsitem .meta {
        display: none;
    }
    .pagenavi a,
    .pagenavi a.now {
        font-size: 15px;
        height: 28px;
        line-height: 28px;
        padding: 0 10px;
    }
    .widget {
        margin-bottom: 15px;
        padding: 14px 16px;
        overflow: hidden;
    }
    .widget h3 {
        font-size: 17px;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    .widget li {
        padding: 10px 0 10px 12px;
        font-size: 14px;
    }
    .widget li:before {
        top: 17px;
        width: 5px;
        height: 5px;
    }
    .widget .pic .thumbnail {
        width: 80px;
    }
    .widget .pic p {
        margin-left: 92px;
    }
    .widget .pic p a {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }
    .widget .pic p .infotr {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }
    .widget .text time {
        font-size: 14px;
    }
    /* ===== 修复文章详情页溢出 ===== */
    .article-detail {
        padding: 15px;
        overflow: hidden;
        word-break: break-word;
    }
    .article-detail h1 {
        font-size: 18px;
        word-break: break-word;
    }
    .article-meta {
        font-size: 14px;
        gap: 10px;
        flex-wrap: wrap;
        word-break: break-word;
    }
    .article-meta span {
        white-space: normal;
    }
    .article-content {
        font-size: 15px;
        overflow: hidden;
        word-break: break-word;
    }
    .article-content p {
        text-indent: 1.5em;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .article-content img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    .article-content h2,
    .article-content h3 {
        word-break: break-word;
    }
    .article-content blockquote {
        word-break: break-word;
        overflow: hidden;
    }
    .article-nav {
        flex-direction: column;
    }
    .article-nav .nav-next {
        text-align: left;
    }
    .article-nav a {
        word-break: break-word;
        overflow: hidden;
    }
    .article-nav .nav-title {
        white-space: normal;
        word-break: break-word;
    }
    .readmore-btn {
        padding: 10px 30px;
        font-size: 14px;
    }
    .readmore-overlay {
        min-height: 80px;
    }
    .readmore-overlay-arrow {
        font-size: 22px;
    }
    .readmore-overlay-hint {
        font-size: 14px;
    }
    .related-articles {
        overflow: hidden;
    }
    .related-articles ul li a {
        word-break: break-word;
        display: block;
        overflow: hidden;
    }
    .links {
        padding: 10px 0 8px;
    }
    .links li {
        font-size: 14px;
        padding: 0 6px;
        line-height: 24px;
    }
    .footer {
        padding: 15px 0;
    }
    .copyright {
        font-size: 14px;
    }
    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
}
@media only screen and (max-width: 480px) {
    #logo a {
        font-size: 16px;
    }
    #logo a img {
        height: 22px;
        max-width: 120px;
    }
    .nav li a {
        padding: 12px 16px;
        font-size: 15px;
    }
    .banner .ad-slider .ad-slider-prev,
    .banner .ad-slider .ad-slider-next {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }
    .section {
        padding: 10px;
        margin-top: 10px;
    }
    #recommend h3 {
        font-size: 16px;
        padding-bottom: 12px;
    }
    #recommend .thumbnail {
        width: 80px;
    }
    #recommend .info {
        margin-left: 92px;
    }
    #recommend .title {
        font-size: 15px;
        max-height: 3em;
    }
    #recommend .intro {
        font-size: 14px;
        height: 3em;
        -webkit-line-clamp: 2;
        line-height: 1.6em;
    }
    .category-header {
        padding: 10px 12px;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    .category-header h1 {
        font-size: 16px;
    }
    .category-count {
        font-size: 14px;
    }
    /* ===== 手机端文章列表 ===== */
    .newsitem {
        grid-template-columns: 90px minmax(0, 1fr);
        column-gap: 10px;
        padding: 10px;
    }
    .newsitem .thumbnail {
        width: 100% !important;
    }
    .newsitem .info {
        margin: 0 !important;
    }
    .newsitem .excerpt {
        margin: 0 !important;
        font-size: 14px;
        height: 3em;
        -webkit-line-clamp: 2;
        line-height: 1.6em;
    }
    .newsitem h2 {
        font-size: 14px;
    }
    .pagenavi a,
    .pagenavi a.now {
        font-size: 14px;
        height: 24px;
        line-height: 24px;
        padding: 0 8px;
        margin: 1px;
    }
    .widget {
        padding: 12px 14px;
        margin-bottom: 10px;
    }
    .widget h3 {
        font-size: 16px;
    }
    .widget li {
        padding: 8px 0 8px 10px;
        font-size: 15px;
    }
    .widget li:before {
        top: 14px;
        width: 4px;
        height: 4px;
    }
    .widget .pic .thumbnail {
        width: 65px;
    }
    .widget .pic p {
        margin-left: 75px;
    }
    .widget .pic p a {
        font-size: 15px;
        -webkit-line-clamp: 2;
    }
    .widget .pic p .infotr {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }
    .widget .text time {
        font-size: 14px;
    }
    .article-detail {
        padding: 12px;
        margin-top: 10px;
    }
    .article-detail h1 {
        font-size: 16px;
    }
    .article-meta {
        font-size: 14px;
        gap: 6px;
    }
    .article-meta span {
        white-space: normal;
        word-break: break-word;
    }
    .article-content {
        font-size: 15px;
    }
    .article-content p {
        text-indent: 1.5em;
    }
    .article-content img {
        max-width: 100%;
        height: auto;
    }
    .readmore-btn {
        padding: 8px 24px;
        font-size: 15px;
    }
    .article-nav .nav-title {
        font-size: 14px;
    }
    .readmore-overlay {
        min-height: 70px;
        margin-top: -80px;
        padding-top: 40px;
    }
    .readmore-overlay-arrow {
        font-size: 18px;
    }
    .readmore-overlay-hint {
        font-size: 14px;
    }
    .links li {
        font-size: 14px;
        padding: 0 4px;
        line-height: 20px;
    }
    .copyright {
        font-size: 14px;
    }
    .back-to-top {
        bottom: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
}

/* ========== 搜索标签 widget ========== */
.tags-widget h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 2px solid #c00;
}
.tags-widget h3 .tags-more {
    font-size: 14px;
    font-weight: normal;
    color: #999;
    transition: color 0.3s;
}
.tags-widget h3 .tags-more:hover {
    color: #c00;
}
.tags-widget h3 .tags-more i {
    font-size: 12px;
}
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
}
.tags-cloud a {
    display: inline-block;
    padding: 5px 14px;
    background: #f9f9f9;
    color: #666;
    border: 1px solid #eee;
    border-radius: 15px;
    font-size: 13px;
    line-height: 1.5;
    transition: all 0.25s;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tags-cloud a:hover {
    background: #c00;
    color: #fff;
    border-color: #c00;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(204, 0, 0, 0.25);
}
.tags-cloud .tags-empty {
    color: #ccc;
    font-size: 14px;
    padding: 10px 0;
}

/* ========== 搜索标签聚合页 ========== */
.tags-page {
    padding: 20px 0;
}
.tags-page-header {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 25px 30px;
    margin-bottom: 20px;
    text-align: center;
}
.tags-page-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}
.tags-page-header h1 i {
    color: #c00;
    margin-right: 8px;
}
.tags-page-header .tags-desc {
    color: #999;
    font-size: 15px;
    line-height: 1.7;
}
.tags-page-header .tags-count {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 16px;
    background: #fff5f5;
    color: #c00;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
}
.tags-page-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}
.tags-page-tabs a {
    padding: 8px 24px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    color: #666;
    font-size: 15px;
    transition: all 0.25s;
}
.tags-page-tabs a:hover {
    border-color: #c00;
    color: #c00;
}
.tags-page-tabs a.active {
    background: #c00;
    color: #fff;
    border-color: #c00;
    box-shadow: 0 3px 10px rgba(204, 0, 0, 0.3);
}
.tags-page-panel {
    display: none;
}
.tags-page-panel.active {
    display: block;
}
.tags-page-cloud {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 35px 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}
.tags-page-cloud .tag-item {
    display: inline-block;
    padding: 8px 22px;
    background: #f9f9f9;
    color: #666;
    border: 1px solid #eee;
    border-radius: 25px;
    font-size: 15px;
    transition: all 0.25s;
    position: relative;
}
.tags-page-cloud .tag-item:hover {
    background: #c00;
    color: #fff;
    border-color: #c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(204, 0, 0, 0.3);
}
.tags-page-cloud .tag-item.hot {
    background: linear-gradient(135deg, #ff4d4d, #c00);
    color: #fff;
    border-color: #c00;
    font-weight: 700;
    font-size: 17px;
    padding: 10px 26px;
    box-shadow: 0 3px 12px rgba(204, 0, 0, 0.3);
}
.tags-page-cloud .tag-item.warm {
    background: #fff0f0;
    color: #c00;
    border-color: #ffcccc;
    font-size: 16px;
    font-weight: 600;
}
.tags-page-cloud .tag-item.top {
    background: linear-gradient(135deg, #ff8a00, #c00);
    color: #fff;
    border-color: #c00;
    font-weight: 700;
}
.tags-page-cloud .tag-item .tag-count {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}
.tags-page-cloud .tag-item.hot .tag-count,
.tags-page-cloud .tag-item.top .tag-count {
    background: rgba(255, 255, 255, 0.25);
}
.tags-page-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.tags-page-empty i {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
    color: #ddd;
}

@media only screen and (max-width: 768px) {
    .tags-page-header {
        padding: 18px 16px;
    }
    .tags-page-header h1 {
        font-size: 20px;
    }
    .tags-page-header .tags-desc {
        font-size: 14px;
    }
    .tags-page-tabs a {
        padding: 6px 18px;
        font-size: 14px;
    }
    .tags-page-cloud {
        padding: 20px 15px;
        gap: 10px;
    }
    .tags-page-cloud .tag-item {
        padding: 6px 16px;
        font-size: 14px;
    }
    .tags-page-cloud .tag-item.hot {
        font-size: 15px;
        padding: 8px 20px;
    }
    .tags-page-cloud .tag-item.warm {
        font-size: 15px;
    }
    .tags-cloud a {
        font-size: 12px;
        padding: 4px 12px;
    }
}

/* ========== 搜索关键词高亮 ========== */
.hongse-search-hit {
    color: #c00;
    font-style: normal;
    font-weight: 700;
    background: #fff5f5;
    padding: 0 2px;
    border-radius: 2px;
}

/* ========== 分词提示条 ========== */
.search-split-bar {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 12px 18px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.search-split-bar .search-split-item {
    display: inline-block;
    padding: 3px 12px;
    background: #fff5f5;
    color: #c00;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}
@media only screen and (max-width: 768px) {
    .search-split-bar {
        padding: 10px 12px;
        font-size: 14px;
    }
    .search-split-bar .search-split-item {
        padding: 2px 10px;
        font-size: 12px;
    }
}