:root {
    --primary: #2c7de6;
    --primary-light: #d4e6ff;
    --primary-dark: #0d4a9c;
    --nav-hover: #0d4a9c;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e4e7ed;
    --bg-gray: #f5f7fa;
    --success: #52c41a;
    --warning: #faad14;
    --danger: #f5222d;
    --shadow: 0 4px 12px rgba(0,0,0,0.06);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary);
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 顶部导航栏 */
.topbar-bg {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: #666;
    font-size: 13px;
}

/* 主导航 */
.header {
    background-color: #fff;
}

.header-container {
    display: flex;
    flex-direction: column;
    padding: 15px 0 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.logo {
    height: 70px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%;
    width: auto;
    max-width: 100%;
}

.nav-container {
    background-color: var(--primary-light);
    border-radius: 6px;
    margin-top: 10px;
    padding: 0 8px;
}

.navbar {
    display: flex;
    list-style: none;
    width: 100%;
    padding: 0;
    margin: 0;
}

.navbar li {
    padding: 0;
    position: relative;
}

.navbar li a {
    font-weight: 500;
    font-size: 16px;
    padding: 15px 12px;
    position: relative;
    display: block;
    color: #1a68cc;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.navbar li a .arrow-icon {
    font-size: 12px;
    margin-left: 4px;
    transition: transform 0.3s;
}

.navbar li:hover a .arrow-icon {
    transform: translateY(2px);
}

.navbar li a:hover {
    color: var(--nav-hover);
    background: rgba(255,255,255,0.2);
}

.navbar li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--nav-hover);
    transition: width 0.3s ease;
    width: 0;
}

.navbar li a:hover:after {
    width: 100%;
}

/* 网站统计区 */
.stats-bar {
    background-color: var(--primary-light);
    padding: 8px 0;
    margin: 15px 0;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-info {
    font-size: 14px;
    color: var(--text-light);
}

.stats-info strong {
    color: var(--primary);
    font-weight: bold;
    padding: 0 3px;
}

.quick-links {
    font-size: 14px;
}

.quick-links a {
    margin-left: 10px;
    color: var(--primary);
    font-weight: 500;
    position: relative;
}

.quick-links a:hover:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary);
}

/* 版块通用样式 */
.section {
    margin: 30px 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    color: var(--text-color);
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.site-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary);
    margin: 0 5px;
}

.breadcrumb a:first-child {
    margin-left: 0;
}

.breadcrumb span {
    margin: 0 5px;
    color: #999;
}

/* 文章详情样式 */
.article-detail {
    margin-bottom: 30px;
}

.article-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
    line-height: 1.4;
    text-align: center;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-light);
    justify-content: center;
}

.meta-item {
    margin-right: 25px;
    display: flex;
    align-items: center;
}

.meta-icon {
    margin-right: 8px;
    color: var(--primary);
    font-size: 16px;
}

.article-intro {
    background: var(--bg-gray);
    padding: 18px;
    border-radius: var(--radius);
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    border-left: 3px solid var(--primary);
    max-width: 1200px;
    margin: 0 auto 25px;
}

/* ============================
   UEditor内容增强样式
   ============================ */

.article-content.ueditor-content {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
    margin-bottom: 35px;
    max-width: 1200px;
    margin: 0 auto 35px;
    overflow-wrap: break-word;
    word-break: break-word;
    overflow: hidden;
}

/* 图片处理 - 强制居中显示 */
.article-content .image-wrapper {
    text-align: center;
    margin: 25px 0;
    display: block;
    width: 100%;
}

.article-content img.ueditor-img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: var(--radius);
    margin: 0 auto !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block !important;
    background-color: #f8fafc;
}

/* PC端图片最大宽度限制 */
@media (min-width: 992px) {
    .article-content img.ueditor-img {
        max-width: 800px !important;
    }
}

.article-content img.ueditor-img:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transform: scale(1.01);
}

/* 图片加载状态 */
.img-loading {
    background: linear-gradient(45deg, #f5f5f5, #eaeaea) !important;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.img-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
   0% { left: -100%; }
   100% { left: 100%; }
}

/* 表格处理 - 强制居中显示 */
.article-content .table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 25px 0;
    display: block;
}

.article-content table {
    width: auto !important;
    min-width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
    margin: 0 auto !important;
    display: table;
}

.article-content table td,
.article-content table th {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    min-width: 60px !important;
    max-width: none !important;
    word-break: break-word;
    text-align: left;
}

.article-content table th {
    background-color: var(--bg-gray);
    font-weight: 600;
    color: var(--text-color);
}

.article-content table tr:nth-child(even) {
    background-color: #fafafa;
}

.article-content table tr:hover {
    background-color: var(--primary-light);
}

/* 视频和iframe处理 */
.article-content .ueditor-media {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 25px auto;
    border-radius: var(--radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* 代码块处理 */
.article-content pre.ueditor-code {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #f6f8fa;
    padding: 16px;
    border-radius: 6px;
    margin: 25px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    border-left: 4px solid var(--primary);
    font-family: "Consolas", "Monaco", "Courier New", monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #24292e;
    display: block;
}

.article-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: "Consolas", "Monaco", "Courier New", monospace;
    font-size: 14px;
    color: #d63384;
}

.article-content pre.ueditor-code code {
    background: none;
    padding: 0;
    border-radius: 0;
    color: inherit;
}

/* UEditor列表样式支持 */
.article-content ul,
.article-content ol {
    margin: 15px 0;
    padding-left: 30px;
    line-height: 1.8;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

.article-content ul ul,
.article-content ol ul {
    list-style-type: circle;
}

.article-content ol ol,
.article-content ul ol {
    list-style-type: decimal;
}

.article-content li {
    margin-bottom: 8px;
    padding-left: 8px;
}

/* 修复长文本溢出问题 */
.article-content p {
    overflow-wrap: break-word;
    word-break: break-word;
    margin-bottom: 16px;
}

/* 修复内联元素溢出问题 */
.article-content * {
    max-width: 100%;
}

/* 修复标题溢出问题 */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    font-weight: 600;
    margin: 25px 0 15px;
    line-height: 1.4;
    word-break: break-word;
    color: #1a202c;
}

.article-content h1 {
    font-size: 28px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
}

.article-content h2 {
    font-size: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
}

.article-content h3 {
    font-size: 20px;
}

.article-content h4 {
    font-size: 18px;
}

.article-content h5 {
    font-size: 16px;
}

.article-content h6 {
    font-size: 14px;
    color: var(--text-light);
}

/* 引用块样式 */
.article-content blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background: var(--bg-gray);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-light);
}

.article-content blockquote p {
    margin-bottom: 0;
}

/* 水平线样式 */
.article-content hr {
    margin: 25px 0;
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
}

/* 链接样式 */
.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* 强调文本样式 */
.article-content strong,
.article-content b {
    font-weight: 700;
    color: #1a202c;
}

.article-content em,
.article-content i {
    font-style: italic;
    color: var(--text-light);
}

/* 图片说明文字 */
.article-content .image-caption {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    margin-top: -10px;
    margin-bottom: 20px;
    font-style: italic;
}

/* UEditor特定类名支持 */
.article-content .ueditor-wrap {
    margin: 15px 0;
}

.article-content .align-center {
    text-align: center;
}

.article-content .align-right {
    text-align: right;
}

.article-content .align-left {
    text-align: left;
}

/* ============================
   移动端UEditor优化
   ============================ */

@media (max-width: 991px) {
    .article-content.ueditor-content {
        padding: 0 10px;
        font-size: 15px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* 移动端图片优化 */
    .article-content img.ueditor-img {
        max-width: 100% !important;
        height: auto !important;
        margin: 15px auto !important;
    }
    
    /* 移动端表格优化 */
    .article-content .table-wrapper {
        margin: 15px -10px;
        width: calc(100% + 20px);
    }
    
    .article-content table {
        font-size: 14px;
    }
    
    .article-content table td,
    .article-content table th {
        padding: 6px 8px;
        min-width: 60px !important;
    }
    
    /* 移动端代码块优化 */
    .article-content pre.ueditor-code {
        margin: 15px -10px;
        padding: 12px;
        font-size: 13px;
        border-radius: 0;
        width: calc(100% + 20px);
    }
    
    /* 移动端标题优化 */
    .article-content h1,
    .article-content h2,
    .article-content h3,
    .article-content h4,
    .article-content h5,
    .article-content h6 {
        font-size: 16px;
        word-break: break-word;
        margin: 20px 0 12px;
    }
    
    /* 移动端列表优化 */
    .article-content ul,
    .article-content ol {
        padding-left: 20px;
        margin: 12px 0;
    }
    
    .article-content li {
        margin-bottom: 6px;
    }
    
    /* 移动端引用块优化 */
    .article-content blockquote {
        margin: 15px 0;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .article-content.ueditor-content {
        font-size: 14px;
        line-height: 1.8;
    }
    
    .article-content table {
        font-size: 12px;
    }
    
    .article-content table td,
    .article-content table th {
        padding: 4px 6px;
    }
    
    .article-content pre.ueditor-code {
        font-size: 12px;
        padding: 10px;
    }
}

/* 标签样式 */
.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
}

.tag-item {
    padding: 6px 14px;
    background: var(--bg-gray);
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s;
}

.tag-item:hover {
    background: var(--primary);
    color: #fff;
}

/* 二维码区域 */
.qr-card {
    background: var(--bg-gray);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
    max-width: 300px;
    margin: 0 auto 30px;
}

.qr-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.qr-code {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
}

/* 版权声明 */
.copyright-notice {
    background: var(--bg-gray);
    border-radius: var(--radius);
    padding: 20px;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 30px;
    line-height: 1.7;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.copyright-title {
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.copyright-title:before {
    content: "⚠️";
    margin-right: 8px;
}

.copyright-link {
    word-break: break-all;
    color: var(--primary);
    font-weight: 500;
}

/* 上一篇下一篇 */
.article-nav {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
    margin-top: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-item {
    flex: 1;
    padding: 12px 15px;
    border-radius: var(--radius);
    transition: all 0.3s;
}

.nav-item:hover {
    background: var(--bg-gray);
}

.nav-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.nav-title {
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s;
}

.nav-item:hover .nav-title {
    color: var(--primary);
}

.nav-item.prev {
    margin-right: 15px;
    text-align: left;
}

.nav-item.next {
    margin-left: 15px;
    text-align: right;
}

/* 推荐栏目样式 */
.recommendation-section {
    margin-top: 40px;
    max-width: 1200px;
    margin: 40px auto 0;
    position: relative;
}

.recommendation-header {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.recommendation-header:before {
    content: "📌";
    margin-right: 10px;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.recommendation-column {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    position: relative;
}

.recommendation-column-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary);
    display: flex;
    align-items: center;
}

.recommendation-column-title:before {
    content: "📰";
    margin-right: 8px;
}

.recommendation-column.sites .recommendation-column-title:before {
    content: "🌐";
}

.article-list-side {
    list-style: none;
}

.article-item-side {
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
    transition: all 0.3s;
}

.article-item-side:hover {
    background: rgba(44,125,230,0.03);
}

.article-item-side:last-child {
    border-bottom: none;
}

.article-item-side a {
    display: block;
    font-size: 15px;
    transition: all 0.3s;
    padding-left: 28px;
    position: relative;
    color: #444;
    line-height: 1.6;
}

.article-item-side a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.article-item-side a:hover {
    color: var(--primary);
    padding-left: 30px;
}

.recommended-sites {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.recommended-card {
    text-align: center;
    transition: all 0.3s;
    display: block;
    text-decoration: none;
}

.recommended-card:hover {
    transform: translateY(-5px);
}

.recommended-thumb {
    width: 100%;
    height: 90px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 10px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.recommended-thumb img {
    max-width: 90%;
    max-height: 90%;
    height: auto;
}

.recommended-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
}

/* 分页组件 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
}

.pagination a:hover, 
.pagination a.current, 
.pagination span.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    cursor: pointer;
}

.pagination .prev, 
.pagination .next {
    padding: 0 15px;
}

.pagination .ellipsis {
    border: none;
    background: transparent;
    pointer-events: none;
    min-width: auto;
    padding: 0 5px;
}

.pagination .disabled {
    color: #ccc;
    pointer-events: none;
    background: #f8f8f8;
    border-color: #eee;
}

/* 主内容区域 */
.main-content {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    width: 100%;
    margin: 0 auto;
}

/* 页脚 */
.footer {
    margin-top: 40px;
    padding: 50px 0 30px;
    background: #fff;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
}

.footer-menu {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-menu a {
    margin: 0 15px 10px;
    font-size: 14px;
    color: var(--text-light);
    transition: all 0.3s;
}

.footer-menu a:hover {
    color: var(--primary);
}

.footer-copyright {
font-size: 13px;
margin-top: 15px;
line-height: 1.6;
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
}

.footer-beian {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: 15px;
margin-bottom: 5px;
}

.footer-beian a {
display: flex;
align-items: center;
gap: 5px;
color: var(--text-light);
font-size: 13px;
transition: all 0.3s;
}

.footer-beian a:hover {
color: var(--primary);
}

.footer-beian img {
width: 15px;
height: 15px;
vertical-align: middle;
}

.footer-copy {
font-size: 13px;
color: var(--text-light);
margin: 5px 0;
}

.footer-ad {
margin-top: 10px;
width: 100%;
}

/* 移动端调整 */
@media (max-width: 991px) {
    .topbar {
        display: none;
    }
    
    .header-container {
        padding: 10px 0 0;
    }
    
    .header-top {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 10px;
    }
    
    .logo {
        margin-bottom: 15px;
        justify-content: center;
    }
    
    .nav-container {
        margin-top: 10px;
        padding: 0 5px !important;
    }
    
    .navbar {
        flex-wrap: wrap;
        padding: 0;
    }
    
    .navbar li {
        padding: 0;
        flex: 1 0 auto;
        text-align: center;
    }
    
    .navbar li a {
        padding: 10px 5px !important;
        font-size: 14px;
        justify-content: center;
    }
    
    .stats-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .quick-links {
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
    }
    
    .quick-links a {
        margin: 5px 10px 5px 0;
    }
    
    /* 移动端隐藏广告位 */
    .sidebar-ad {
        display: none !important;
    }
    
    /* 移动端隐藏网站统计 */
    .stats-bar {
        display: none !important;
    }
    
    /* 移动端隐藏二维码卡片 */
    .qr-card {
        display: none;
    }
    
    /* 移动端标题和元信息居中 */
    .article-title {
        text-align: center;
        font-size: 22px;
        padding: 0 10px;
    }
    
    .article-meta {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
        padding: 0 10px 15px;
    }
    
    .meta-item {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .tag-group {
        justify-content: center;
        padding: 0 10px;
    }
    
    .article-intro {
        padding: 15px;
        font-size: 15px;
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .copyright-notice {
        padding: 15px;
        margin-left: 10px;
        margin-right: 10px;
    }
    
    /* 移动端推荐栏目调整 */
    .recommendation-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .recommendation-column {
        padding: 15px;
    }
    
    .recommendation-header {
        font-size: 20px;
    }
    
    .recommendation-column-title {
        font-size: 16px;
    }
    
    .recommended-sites {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 修复移动端内联样式溢出 */
    .article-content *[style] {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
    }
    
    /* 修复移动端iframe和视频溢出 */
    .article-content iframe,
    .article-content video {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* 移动端导航调整 */
    .article-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-item.prev,
    .nav-item.next {
        margin: 0;
        text-align: left;
    }
    
    /* 移动端主内容区调整 */
    .main-content {
        padding: 20px 15px;
    }
    
    .footer-menu {
        padding: 0 15px;
    }
    
    .footer-beian {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .article-content.ueditor-content {
        font-size: 14px;
        line-height: 1.8;
    }
    
    .article-intro {
        font-size: 14px;
        padding: 12px;
    }
    
    .main-content {
        padding: 15px 10px;
    }
    
    .article-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-item.prev,
    .nav-item.next {
        margin: 0;
        text-align: left;
    }
    
    .footer-menu a {
        margin: 0 10px 10px;
        font-size: 13px;
    }
    
    /* 小屏幕推荐栏目调整 */
    .recommended-sites {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recommendation-header {
        font-size: 18px;
    }
    
    .article-item-side a {
        font-size: 14px;
    }
    
    .footer-beian {
        gap: 5px;
    }
    
    .footer-beian a {
        font-size: 12px;
    }
    
    .footer-copy {
        font-size: 12px;
    }
}

/* SVG图标 */
.icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    margin-right: 8px;
}

.btn-icon {
    width: 16px;
    height: 16px;
    fill: #fff;
}

/* 图片放大效果 */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 85%;
    max-height: 85%;
    border-radius: 4px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 25px;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0,0,0,0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0,0,0,0.5);
    transform: rotate(90deg);
}

/* 仅在PC端显示放大效果 */
@media (max-width: 991px) {
    .lightbox-overlay {
        display: none !important;
    }
}

/* 新增样式：PC端随机文章标题超出用省略号 */
@media (min-width: 992px) {
    .article-item-side a {
        max-width: 500px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* 灯箱增强样式 */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 85%;
    max-height: 85%;
    border-radius: 8px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    cursor: pointer;
}

.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 25px;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 300;
}

.lightbox-close:hover {
    background: rgba(0,0,0,0.8);
    transform: rotate(90deg);
}

/* 代码块行号样式 */
.ueditor-code {
    position: relative;
    overflow-x: auto;
}

.line-numbers {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    padding: 16px 8px;
    background: #f1f3f4;
    border-right: 1px solid #e1e5e9;
    text-align: right;
    font-family: "Consolas", "Monaco", "Courier New", monospace;
    font-size: 14px;
    color: #666;
    user-select: none;
}

.line-numbers span {
    display: block;
    line-height: 1.5;
}

.ueditor-code pre {
    padding-left: 60px !important;
}

/* 响应式iframe样式 */
.ueditor-media {
    max-width: 100% !important;
    height: auto !important;
}

/* 图片包装容器 */
.image-wrapper {
    text-align: center;
    margin: 25px 0;
    display: block;
    width: 100%;
}

/* 移动端优化 */
@media (max-width: 991px) {
    .lightbox-image {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
    
    .line-numbers {
        display: none;
    }
    
    .ueditor-code pre {
        padding-left: 16px !important;
    }
    
    /* 移动端禁用图片点击放大 */
    .article-content img {
        cursor: default !important;
    }
}

/* 图片加载动画 */
.img-loading {
    background: linear-gradient(45deg, #f5f5f5, #eaeaea) !important;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    min-height: 100px;
}

.img-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
   0% { left: -100%; }
   100% { left: 100%; }
}