:root {
--primary-color: #3498db;
--primary-hover: #2980b9;
--text-color: #333;
--text-light: #888;
--bg-color: #f4f6f9;
--white: #ffffff;
--border-color: #e5e5e5;
--radius: 8px;
--shadow: 0 4px 12px rgba(0,0,0,0.05);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 1.6; color: var(--text-color); background-color: var(--bg-color); }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
a:hover { color: var(--primary-color); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; border-radius: 4px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.site-header { background: var(--white); box-shadow: 0 2px 5px rgba(0,0,0,0.05); position: relative; z-index: 99; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; max-width: 1200px; margin: 0 auto; }
.logo img { height: 35px; width: auto; object-fit: contain; }
.search-box { flex: 1; margin: 0 15px; display: flex; max-width: 400px; }
.search-box input { flex: 1; padding: 8px 12px; border: 1px solid var(--border-color); border-radius: 20px 0 0 20px; outline: none; font-size: 14px; transition: border 0.3s; }
.search-box input:focus { border-color: var(--primary-color); }
.search-box button { padding: 8px 18px; border: none; background: var(--primary-color); color: var(--white); border-radius: 0 20px 20px 0; cursor: pointer; font-size: 14px; }
.search-box button:hover { background: var(--primary-hover); }
.menu-btn { width: 28px; height: 22px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; flex-shrink: 0; }
.menu-btn span { display: block; height: 3px; background-color: var(--text-color); border-radius: 3px; }
.main-nav { display: none; width: 100%; background: var(--white); border-top: 1px solid var(--border-color); position: absolute; top: 100%; left: 0; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
.main-nav.show { display: block; }
.nav-list li a { display: block; padding: 12px 20px; border-bottom: 1px dashed var(--border-color); font-size: 15px; }
.nav-list li:last-child a { border-bottom: none; }
.breadcrumb { padding: 15px 0 5px 0; font-size: 13px; color: var(--text-light); }
.breadcrumb a { color: #555; }
.breadcrumb a:hover { color: var(--primary-color); }
.breadcrumb span { margin: 0 5px; color: #ccc; }
.main-content-wrapper { display: flex; flex-direction: column; gap: 20px; padding-top: 10px; padding-bottom: 40px; }
.article-section { background: var(--white); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.article-title { font-size: 22px; margin-bottom: 12px; line-height: 1.4; color: #222; }
.article-meta { font-size: 13px; color: var(--text-light); margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 12px; }
.article-body { font-size: 16px; color: #444; line-height: 1.8; margin-bottom: 30px; }
.article-body p { margin-bottom: 15px; }
.article-body img { margin: 20px auto; }
.article-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 15px 0; border-top: 1px dashed var(--border-color); margin-bottom: 20px; gap: 15px; }
.article-tags a { display: inline-block; background: #f0f2f5; color: #666; padding: 4px 12px; border-radius: 15px; font-size: 12px; margin-right: 8px; margin-bottom: 5px; }
.article-tags a:hover { background: var(--primary-color); color: var(--white); }
.share-box { font-size: 13px; color: var(--text-light); display: flex; align-items: center; gap: 10px; }
.share-btn { padding: 4px 10px; background: #eee; border-radius: 4px; cursor: pointer; color: #333; }
.author-card { background: #f8f9fa; border-left: 4px solid var(--primary-color); padding: 15px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 30px; font-size: 13px; color: #666; line-height: 1.6; }
.author-card strong { color: #333; }
.article-nav { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; font-size: 14px; }
.article-nav a { display: block; background: var(--bg-color); padding: 12px 15px; border-radius: 6px; border: 1px solid transparent; }
.article-nav a:hover { border-color: var(--primary-color); background: var(--white); }
.related-section h3, .sidebar-widget h3 { font-size: 18px; margin-bottom: 15px; padding-left: 10px; border-left: 4px solid var(--primary-color); color: #222; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.related-card { background: var(--white); border: 1px solid var(--border-color); border-radius: 6px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #ddd; }
.related-card img { width: 100%; aspect-ratio: 11/7; object-fit: cover; border-radius: 0; }
.related-card p { padding: 10px; font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 52px; }
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget { background: var(--white); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.sidebar-widget h3 { font-size: 16px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; margin-bottom: 15px; }
.sidebar-banner img { width: 100%; border-radius: 6px; }
.hot-list li { display: flex; gap: 12px; margin-bottom: 15px; }
.hot-list li:last-child { margin-bottom: 0; }
.hot-list img { width: 90px; height: 65px; object-fit: cover; flex-shrink: 0; border-radius: 4px; }
.hot-info { display: flex; flex-direction: column; justify-content: space-between; }
.hot-info a { font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot-info span { font-size: 12px; color: var(--text-light); }
.text-list li { margin-bottom: 12px; position: relative; padding-left: 15px; }
.text-list li::before { content: "•"; color: var(--primary-color); position: absolute; left: 0; top: -2px; font-size: 18px; }
.text-list a { font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { padding: 5px 10px; border: 1px solid var(--border-color); border-radius: 4px; font-size: 12px; color: #555; }
.tag-cloud a:hover { border-color: var(--primary-color); color: var(--primary-color); }
.site-footer { background: #2c3e50; color: #aeb6bf; text-align: center; padding: 30px 15px; font-size: 14px; margin-top: 20px; }
.site-footer a { color: #fff; margin: 0 10px; }
.footer-links { margin-bottom: 15px; }
@media (min-width: 768px) {
.header-inner { padding: 20px 15px; }
.logo img { height: 45px; }
.search-box { flex: none; width: 350px; margin-left: auto; margin-right: 0; }
.menu-btn { display: none; }
.main-nav { display: block !important; position: static; box-shadow: none; border-top: 1px solid var(--border-color); background: var(--white); }
.nav-list { display: flex; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.nav-list li a { border: none; padding: 15px 25px; font-size: 16px; position: relative; }
.nav-list li a:hover { color: var(--primary-color); }
.nav-list li a::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 3px; background: var(--primary-color); transition: all 0.3s; transform: translateX(-50%); }
.nav-list li a:hover::after { width: 60%; }
.main-content-wrapper { flex-direction: row; align-items: flex-start; }
.article-section { flex: 1; min-width: 0; padding: 30px 40px; }
.sidebar { width: 320px; flex-shrink: 0; }
.sidebar .sidebar-widget:last-child { position: sticky; top: 20px; }
.article-title { font-size: 32px; margin-bottom: 15px; }
.article-nav { flex-direction: row; justify-content: space-between; }
.article-nav a { flex: 1; margin: 0 10px; }
.article-nav a:first-child { margin-left: 0; }
.article-nav a:last-child { margin-right: 0; }
.related-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.sidebar-qrcode {
text-align: center;
padding: 20px 15px;
border-radius: 10px;
}
.sidebar-qrcode h3 {
font-size: 16px;
color: #333;
margin-bottom: 15px;
font-weight: 600;
}
.sidebar-qrcode .qr-code {
display: inline-block;
background: #fff;
padding: 10px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.sidebar-qrcode .qr-code canvas {
display: block !important;
width: 150px !important;
height: 150px !important;
}
.sidebar-qrcode .qr-code img {
display: none !important;
}
@media (max-width: 768px) {
.sidebar-qrcode {
display: none;
}
}
.list-header {
border-bottom: 2px solid #333;
padding-bottom: 10px;
margin-bottom: 20px;
}
.list-header h2 {
font-size: 20px;
color: #333;
margin: 0;
}
.article-list {
display: flex;
flex-direction: column;
gap: 20px;
}
.list-item {
display: flex;
gap: 20px;
padding-bottom: 20px;
border-bottom: 1px solid #eee;
}
.list-item:last-child {
border-bottom: none;
}
.item-thumb {
flex-shrink: 0;
width: 180px;
height: 110px;
overflow: hidden;
border-radius: 4px;
}
.item-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}
.item-thumb:hover img {
transform: scale(1.05);
}
.item-detail {
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.item-title {
font-size: 18px;
margin: 0 0 8px 0;
line-height: 1.4;
}
.item-title a {
color: #333;
text-decoration: none;
font-weight: bold;
}
.item-title a:hover {
color: #007bff;
}
.item-desc {
font-size: 14px;
color: #666;
line-height: 1.6;
margin-bottom: 10px;
}
.item-meta {
font-size: 12px;
color: #999;
display: flex;
gap: 15px;
}
.pagination-wrapper {
margin: 30px 0;
display: flex;
justify-content: center;
}
.pagination-wrapper ul.pagination {
display: flex;
list-style: none;
padding: 0;
gap: 5px;
}
.pagination-wrapper ul.pagination li a,
.pagination-wrapper ul.pagination li span {
padding: 8px 14px;
border: 1px solid #ddd;
color: #333;
text-decoration: none;
border-radius: 4px;
}
.pagination-wrapper ul.pagination li.active span {
background-color: #333;
color: #fff;
border-color: #333;
}
.pagination-wrapper ul.pagination li a:hover {
background-color: #f5f5f5;
}
.sidebar-intro-box {
border-bottom: 1px dashed #eee;
padding-bottom: 15px;
}
.sxlist {
background: #fff;
border: 1px solid #eee;
border-radius: 4px;
padding: 15px 20px;
margin-bottom: 25px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.sxlist_left ul {
list-style: none;
padding: 0;
margin: 0;
}
.sxlist_left ul li {
display: flex;
align-items: flex-start;
gap: 15px;
}
.sxlist_left label {
font-size: 15px;
font-weight: bold;
color: #333;
white-space: nowrap;
padding-top: 5px;
}
.listmd {
display: flex;
flex-wrap: wrap;
gap: 10px 15px;
}
.listmd a {
display: inline-block;
font-size: 14px;
color: #666;
text-decoration: none;
padding: 4px 12px;
border-radius: 3px;
transition: all 0.2s ease;
}
.listmd a:hover {
color: #333;
background-color: #f5f5f5;
}
.listmd a.curr {
background-color: #333;
color: #fff !important;
font-weight: bold;
}
@media screen and (max-width: 768px) {
.sxlist {
padding: 12px 15px;
margin-bottom: 15px;
border-radius: 0;
border-left: none;
border-right: none;
}
.sxlist_left ul li {
flex-direction: column;
gap: 10px;
}
.sxlist_left label {
font-size: 14px;
padding-top: 0;
color: #999;
}
.listmd {
width: 100%;
flex-wrap: nowrap;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
padding-bottom: 5px;
gap: 8px;
}
.listmd::-webkit-scrollbar {
display: none;
}
.listmd a {
flex-shrink: 0;
font-size: 13px;
padding: 5px 14px;
background-color: #f8f9fa;
}
.listmd a.curr {
background-color: #333;
}
}

@media (max-width: 768px) {
    .list-box .item,
    .article-list .article-item,
    .news-list .article-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        width: 100% !important;
        padding: 12px 10px !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
    }
    .list-box .item .item-thumb,
    .article-list .article-thumb {
        flex-shrink: 0 !important;
        width: 95px !important;    /* 移动端缩略图宽度 */
        height: 70px !important;   /* 移动端缩略图高度 */
        margin-right: 12px !important;
        border-radius: 6px !important;
        overflow: hidden !important;
    }

    .list-box .item .item-thumb img,
    .article-list .article-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    /* 3. 文章内容容器撑满剩余空间 */
    .list-box .item .item-content,
    .article-list .article-content {
        flex: 1 !important;
        width: 0 !important;      /* 防止内容挤压变竖排 */
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    /* 4. 文章标题行数与排版 */
    .list-box .item .item-title,
    .article-list .article-title {
        font-size: 14px !important;
        line-height: 1.4 !important;
        font-weight: 600 !important;
        color: #222222 !important;
        margin: 0 0 4px 0 !important;

        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* 5. 文章简介小字 */
    .list-box .item .item-desc,
    .article-list .article-desc {
        font-size: 12px !important;
        color: #666666 !important;
        line-height: 1.4 !important;
        margin: 0 0 6px 0 !important;

        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .list-box .item .item-meta,
    .article-list .article-meta {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        font-size: 11px !important;
        color: #999999 !important;
        white-space: nowrap !important;
        margin-top: auto !important;
    }
}

@media (min-width: 1200px) {
    .pagination .page-link {
        min-width: 46px;
        height: 46px;
        font-size: 16px;
    }
}

@media (max-width: 1024px) {

    .pagination .page-link {
        min-width: 38px;
        height: 38px;
        font-size: 14px;
    }

}

@media (max-width: 768px) {

    .pagination {
        gap: 5px;
    }

    /* 默认隐藏 */
    .pagination .page-item {
        display: none;
    }

    /* 显示：首页、当前页、前一页、后一页、上一页按钮、下一页按钮 */
    .pagination .page-item.active,
    .pagination .page-item.active + .page-item,
    .pagination .page-item:has(+ .page-item.active),
    .pagination .page-item:first-child,
    .pagination .page-item:last-child {
        display: block;
    }

    .pagination .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
        border-radius: 8px;
    }

}

@media (max-width: 480px) {

    .pagination {
        gap: 4px;
    }

    .pagination .page-link {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
        border-radius: 6px;
    }

}

@media (max-width: 360px) {

    .pagination .page-link {
        min-width: 28px;
        height: 28px;
        padding: 0 6px;
        font-size: 11px;
        border-radius: 5px;
    }

}