/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 防止移动设备内容溢出 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* 防止长文本溢出 */
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 移动设备字体大小和间距优化 */
@media (max-width: 768px) {

    /* 基础字体大小调整 */
    body {
        font-size: 15px;

    }

    /* 标题字体优化 */
    h1 {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    h2 {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    h3 {
        font-size: 18px;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    /* 正文文本优化 */
    p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    /* 头部字体优化 */
    .logo span {
        font-size: 22px;
    }

    /* 导航字体优化 */
    .main-nav a {
        font-size: 14px;
    }

    /* 线报内容字体优化 */
    .xianbao-title {
        font-size: 16px;
        line-height: 1.4;
    }

    .xianbao-content {
        font-size: 15px;
        line-height: 1.6;
    }

    .xianbao-meta {
        font-size: 13px;
    }

    /* 侧边栏字体优化 */
    .sidebar-section h3 {
        font-size: 16px;
    }

    /* 间距优化 */
    .header-top {
        padding: 12px 0;
    }

    .main-content {
        padding: 15px 0;
        box-sizing: border-box;
        width: 100%;

    }

    .xianbao-item {
        margin-bottom: 15px;
    }

    .sidebar-section {
        padding: 15px;
        margin-bottom: 15px;
    }

    /* 按钮触摸目标优化 */
    button {
        min-height: 44px;
        min-width: 44px;
        padding: 8px 16px;
    }

    /* 导航菜单触摸优化 */
    .main-nav a {
        padding: 12px 15px;
        display: inline-block;
        min-height: 44px;
    }

    /* 用户菜单触摸优化 */
    .user-menu li a {
        padding: 8px 12px;
        display: inline-block;
        min-height: 44px;
    }

    /* 搜索框触摸优化 */
    .search-box input {
        height: 44px;
        padding: 0 12px;
    }

    /* 排行榜触摸优化 */
    .rank-tab {
        min-height: 40px;
        min-width: 60px;
        padding: 10px 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .rank-item {
        min-height: 44px;
        padding: 10px 0;
    }

    /* 线报项目触摸优化 */
    .xianbao-item {
        min-height: 60px;
    }

    /* 线报操作按钮触摸优化 */
    .xianbao-actions button {
        min-width: 60px;
        padding: 8px 12px;
    }

    /* 侧边栏链接触摸优化 */
    .sidebar-section a {
        display: inline-block;
        min-height: 40px;
        padding: 8px 10px;
    }
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #e74c3c;
    font-size: 24px;
    font-weight: bold;
}

.logo i {
    margin-right: 10px;
    font-size: 30px;
}

.header-right {
    display: flex;
    align-items: center;
}

.auto-refresh-timer {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background-color: #f8f9fa;
    border-radius: 20px;
    margin-right: 20px;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.auto-refresh-timer i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.auto-refresh-timer:hover {
    background-color: #e9ecef;
    color: #007bff;
}

.search-box {
    position: relative;
    margin-right: 20px;
}

.search-box input {
    width: 300px;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
}

.user-menu {
    display: flex;
    gap: 15px;
}

.user-menu a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: color 0.3s ease;
}

.user-menu a:hover {
    color: #e74c3c;
}

.user-menu i {
    margin-right: 5px;
}

/* 主导航样式 */
.main-nav {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #e74c3c;
    background-color: #f9f9f9;
}

.sidebar-section a.active {
    color: #e74c3c;
}

/* 主要内容区域 */
.main-content {
    padding: 20px 0;
}

.content {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 15px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr 280px;
    gap: 20px;

}

/* 侧边栏通用样式 */
.sidebar-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-section h3 {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.sidebar-section h3 i {
    margin-right: 8px;
    color: #e74c3c;
}

/* 左侧边栏 */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #666;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.category-list a:hover {
    background-color: #f5f5f5;
    color: #e74c3c;
    padding-left: 20px;
}

.hot-list {
    list-style: none;
}

.hot-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

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

.hot-list a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.hot-list a:hover {
    color: #e74c3c;
}

/* 中央内容区域 */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
}

.content-header h2 {
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.content-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-filter span {
    color: #999;
    font-size: 14px;
}

.content-filter a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.content-filter a:hover,
.content-filter a.active {
    background-color: #e74c3c;
    color: #fff;
}

/* 线报列表样式 */
.xianbao-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.xianbao-item {
    display: flex;
    gap: 15px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.xianbao-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.xianbao-type {
    flex-shrink: 0;
}

.type-tag {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    text-align: center;
    min-width: 80px;
}

.type-tag.type-huafei {
    background-color: #3498db;
}

.type-tag.type-dianshang {
    background-color: #2ecc71;
}

.type-tag.type-yinyue {
    background-color: #9b59b6;
}

.type-tag.type-shenghuo {
    background-color: #f39c12;
}

.type-tag.type-youxi {
    background-color: #e74c3c;
}

.type-tag.type-yule {
    background-color: #9b59b6;
}

.type-tag.type-jiaoyu {
    background-color: #3498db;
}

.type-tag.type-jiankang {
    background-color: #27ae60;
}

.type-tag.type-lvxing {
    background-color: #f39c12;
}

.type-tag.type-jiaju {
    background-color: #1abc9c;
}

.type-tag.type-shuma {
    background-color: #7f8c8d;
}

.xianbao-content {
    flex: 1;
}

.xianbao-title {
    margin-bottom: 10px;
}

.xianbao-title a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.xianbao-title a:hover {
    color: #e74c3c;
}

/* 点击过的文章样式 */
.xianbao-item.clicked .xianbao-title a {
    color: #999;
}

.xianbao-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #999;
}

.xianbao-meta i {
    margin-right: 5px;
}

.xianbao-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.xianbao-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.btn-view {
    display: inline-block;
    padding: 8px 16px;
    background-color: #e74c3c;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.btn-view:hover {
    background-color: #c0392b;
}

/* 已点击文章的查看详情按钮样式 */
.xianbao-item.clicked .btn-view {
    background-color: #999;
}

.xianbao-item.clicked .btn-view:hover {
    background-color: #888;
}

.btn-collect {
    background-color: transparent;
    border: 1px solid #ddd;
    color: #999;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-collect:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

.btn-collect.active {
    border-color: #e74c3c;
    color: #e74c3c;
}

/* 复制按钮样式 */
.btn-copy {
    background-color: transparent;
    border: 1px solid #ddd;
    color: #999;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    margin: 0 5px;
}

.btn-copy:hover {
    border-color: #3498db;
    color: #3498db;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    padding: 20px 0;
}

.page-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #fff;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.page-btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

.page-btn.active {
    background-color: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

.page-btn:disabled,
.page-btn.disabled {
    background-color: #f5f5f5;
    color: #ccc;
    border-color: #e0e0e0;
    cursor: not-allowed;
}

.page-btn:disabled:hover,
.page-btn.disabled:hover {
    background-color: #f5f5f5;
    color: #ccc;
    border-color: #e0e0e0;
}

.page-more {
    display: inline-block;
    padding: 8px 16px;
    color: #666;
}

/* 右侧边栏 */
.notice {
    background-color: #fef5e7;
    border-left: 4px solid #f39c12;
    padding: 15px;
    border-radius: 4px;
}

.notice p {
    color: #856404;
    font-size: 14px;
    line-height: 1.6;
}

.stats-list {
    list-style: none;
}

.stats-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.stats-list li:last-child {
    border-bottom: none;
}

.stats-list span {
    color: #666;
    font-size: 14px;
}

.stats-list strong {
    color: #e74c3c;
    font-size: 16px;
}

.qrcode {
    text-align: center;
}

.qrcode img {
    width: 150px;
    height: 150px;
    margin-bottom: 10px;
}

.qrcode p {
    color: #666;
    font-size: 14px;
}

/* 底部样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.footer-section p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    text-decoration: none;
    color: #ccc;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section ul a:hover {
    color: #e74c3c;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-list i {
    color: #e74c3c;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 12px;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 220px 1fr 250px;
        gap: 15px;
    }

    .search-box input {
        width: 250px;
    }
}

@media (max-width: 768px) {
    /* 防止整体页面横向滚动 */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        padding: 0 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .header-top {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .search-box {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .search-box input {
        width: 100%;
        box-sizing: border-box;
    }

    .user-menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .main-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav ul {
        white-space: nowrap;
    }

    /* 三栏布局改为单栏 */
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    /* 移动端隐藏侧边栏或移到底部 */
    .sidebar-left,
    .sidebar-right {
        order: 2;
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
        overflow: hidden;
    }

    /* 主内容区域 */
    .content {
        order: 1;
        width: 100%;
        box-sizing: border-box;
        padding: 0 5px;
        max-width: 100%;
        overflow: hidden;
    }

    .article-image {
        width: 100%;
        height: auto;
    }

    .xianbao-item {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .xianbao-type {
        align-self: flex-start;
    }

    .xianbao-actions {
        flex-direction: row;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 文章详情页适配 */
    .article-detail,
    .art-main {
        width: 100%;
        box-sizing: border-box;
        padding: 15px;
        overflow-x: hidden;
    }

    .article-content {
        width: 100%;
        box-sizing: border-box;
        padding: 15px;
        overflow-x: hidden;
    }

    /* 文章内图片适配 */
    .article-content img,
    .art-content img {
        max-width: 100%;
        width: 100%;
        height: auto;
        display: block;
    }

    /* 文章内表格适配 */
    .article-content table,
    .art-content table {
        width: 100%;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 评论区适配 */
    .art-fujia,
    .art-fujia-content,
    .article-comments {
        width: 100%;
        box-sizing: border-box;
        padding: 0 !important;
        overflow-x: hidden;
    }
    .article-comments1 {
        width: 100%;
        box-sizing: border-box;
        
        overflow-x: hidden;
    }

    .comment-list,
    .comment-item {
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    /* 文章标题适配 */
    .art-title {
        font-size: 20px;
        word-wrap: break-word;
        word-break: break-all;
    }

    /* 文章元数据适配 */
    .article-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* 文章操作按钮适配 */
    .article-actions {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .btn-share,
    .btn-copy {
        flex: 1;
        min-width: 120px;
        margin: 5px;
    }
}

@media (max-width: 480px) {
    /* 全局防止横向滚动 */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        padding: 0 8px;
    }

    .header-right {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .search-box {
        width: 100%;
        margin-right: 0;
    }

    .search-box input {
        width: 100%;
        font-size: 16px; /* 防止 iOS 缩放 */
    }

    .user-menu {
        width: 100%;
        justify-content: space-around;
        font-size: 12px;
    }

    .content-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .xianbao-meta {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 11px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }

    .page-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* 文章详情页小屏幕优化 */
    .article-detail,
    .art-main {
        padding: 10px;
    }

    .article-content {
        padding: 10px;
    }

    .art-title {
        font-size: 18px;
        line-height: 1.3;
    }

    /* 文章内容图片强制适配 */
    .article-content img,
    .art-content img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* 文章内链接强制换行 */
    .article-content a,
    .art-content a {
        word-wrap: break-word;
        word-break: break-all;
        overflow-wrap: break-word;
    }

    /* 评论区小屏幕优化 */
    .art-fujia-content,
    .article-comments {
        padding: 8px;
    }

    .comment-form textarea {
        font-size: 16px; /* 防止 iOS 缩放 */
    }

    /* 导航栏优化 */
    .main-nav a {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* 文章详情页样式 */
.article-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #999;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.article-meta i {
    margin-right: 5px;
}

.article-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    line-height: 1.8;
    color: #333;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.article-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.article-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e74c3c;
}

.article-image {
    margin: 20px 0;
    text-align: center;
    overflow: hidden;
}

.article-image img {
    max-width: 100%;
    width: 50%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-links {
    margin: 25px 0;
}

.article-links a {
    display: inline-block;
    padding: 12px 20px;
    background-color: #e74c3c;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.article-links a:hover {
    background-color: #c0392b;
}

.article-links i {
    margin-right: 8px;
}

.article-copyright {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.article-copyright h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.article-copyright p {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.article-copyright p:last-child {
    margin-bottom: 0;
    color: #999;
}

.article-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.article-actions button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #666;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.article-actions button:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    background-color: #fdf2f2;
}

.article-comments {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.article-comments h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-comments h3 i {
    color: #e74c3c;
}

.comment-form {
    margin-bottom: 35px;
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    outline: none;
    transition: border-color 0.3s ease;
}

.comment-form textarea:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
}

.btn-submit {
    display: inline-block;
    padding: 10px 25px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #c0392b;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.comment-item:hover {
    background-color: #fafafa;
}

.comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 5px;
}

.comment-author {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.comment-author a {
    color: #0084ff;
    text-decoration: none;
}

.comment-author a:hover {
    color: #0066cc;
}

.comment-time {
    font-size: 12px;
    color: #999;
}

.comment-text {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    word-wrap: break-word;
    word-break: break-word;
}

/* 评论图片容器 */
.comment-image-container {
    margin-top: 10px;
    display: inline-block;
}

.comment-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.comment-image:hover {
    transform: scale(1.02);
}

/* 响应式文章详情页 */
@media (max-width: 768px) {
    .article-title {
        font-size: 20px;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .article-content {
        padding: 15px;
        margin-bottom: 20px;
    }

    /* 评论区域响应式调整 */
    .art-fujia-content,
    .art-comment-content {
        padding: 1em;
    }

    .art-fujia .kuangxian {
        padding: 0.5em 0.8em 0.5em 0.8em !important;
    }

    .article-actions {
        flex-wrap: wrap;
        gap: 10px;
    }

    .article-comments {
        padding: 20px;
    }

    /* 评论区域响应式调整 */
    .art-fujia-content,
    .art-comment-content {
        padding: 1em;
    }

    .art-fujia .kuangxian {
        padding: 0.5em 0.8em 0.5em 0.8em !important;
    }

    /* 移动端评论列表调整 */
    .art-fujia-content .ul {
        padding: 0 0.5em;
    }

    .art-fujia-content .li {
        padding: 0.5em 0;
    }

    .art-fujia-content .clbody {
        padding: 0 0.5em;
    }

    /* 移动端评论项样式 */
    .comment-item {
        padding: 12px 0;
        gap: 10px;
    }

    .comment-avatar img {
        width: 36px;
        height: 36px;
    }

    .comment-header {
        flex-direction: row;
        align-items: center;
    }

    .comment-text {
        font-size: 13px;
    }

    .comment-image {
        max-width: 150px;
        max-height: 150px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 18px;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .article-content {
        padding: 10px;
    }

    .article-copyright {
        padding: 10px;
    }

    .article-comments {
        padding: 15px;
    }

    .comment-form textarea {
        padding: 10px;
        font-size: 14px;
    }

    .comment-text {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* 登录页面样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
}

.login-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 450px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.login-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.tab {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tab:hover {
    background-color: #f5f5f5;
}

.tab.active {
    background-color: #007bff;
    color: #fff;
}

.tab-divider {
    margin: 0 10px;
    color: #ccc;
}

/* 微博登录按钮样式 */
.btn-weibo-login {
    width: 100%;
    padding: 12px;
    background-color: #e6162d;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.btn-weibo-login:hover {
    background-color: #c7162a;
}

.btn-weibo-login i {
    font-size: 18px;
}

/* 登录分隔线样式 */
.login-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    text-align: center;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.login-divider span {
    padding: 0 10px;
    color: #999;
    font-size: 12px;
}

/* 微博登录区域样式 */
.weibo-login {
    text-align: center;
}

/* 微博回调页面样式 */
.callback-container {
    max-width: 400px;
    margin: 80px auto;
    padding: 40px 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.callback-header i {
    font-size: 48px;
    margin-bottom: 15px;
}

.callback-header h2 {
    margin-bottom: 10px;
    color: #333;
}

.callback-header p {
    color: #666;
    margin-bottom: 20px;
}

.btn-back {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-back:hover {
    background-color: #0056b3;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.form-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #666;
}

.checkbox input {
    margin: 0;
    cursor: pointer;
}

.forgot-password {
    color: #e74c3c;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.forgot-password:hover {
    opacity: 0.8;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-login:hover {
    background-color: #c0392b;
}

.login-register {
    text-align: center;
    margin-top: 10px;
}

.btn-register {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background-color: #e74c3c;
    color: #fff;
}

/* 响应式登录页面 */
@media (max-width: 768px) {
    .login-container {
        padding: 30px 20px;
    }

    .login-box {
        padding: 30px 20px;
    }

    .login-header h2 {
        font-size: 20px;
    }

    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 25px 15px;
    }

    .form-group input {
        padding: 12px 12px 12px 40px;
    }

    .btn-login {
        padding: 12px;
        font-size: 14px;
    }
}

/* 注册页面样式 */
.register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
}

.register-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 450px;
}

.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.register-header h2 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.register-header p {
    color: #999;
    font-size: 14px;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 邮箱后缀选择器 */
.email-suffix {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 10px;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
    max-height: 150px;
    overflow-y: auto;
}

.email-suffix.show {
    display: block;
}

.email-suffix span {
    display: inline-block;
    padding: 6px 12px;
    margin: 2px;
    border-radius: 3px;
    background-color: #f5f5f5;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.email-suffix span:hover {
    background-color: #e74c3c;
    color: #fff;
}

/* 验证码区域 */
.captcha-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-image {
    flex-shrink: 0;
    width: 100px;
    height: 45px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    letter-spacing: 5px;
    user-select: none;
}

/* 响应式登录页面 */
@media (max-width: 768px) {
    .login-container {
        padding: 30px 20px;
    }

    .login-box {
        padding: 30px 20px;
    }

    .login-header h2 {
        font-size: 20px;
    }

    .captcha-image {
        width: 80px;
        height: 42px;
        font-size: 16px;
    }

    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 25px 15px;
    }

    .form-group input {
        padding: 12px 12px 12px 40px;
    }

    .btn-login {
        padding: 12px;
        font-size: 14px;
    }

    .captcha-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .captcha-image {
        width: 100%;
        height: 45px;
    }
}

/* 手机验证码区域 */
.mobile-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-send-code {
    flex-shrink: 0;
    padding: 15px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    color: #666;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-send-code:hover {
    background-color: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

.btn-send-code.disabled {
    background-color: #eee;
    color: #999;
    cursor: not-allowed;
}

/* 协议复选框 */
.form-options .checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
}

.form-options .checkbox input {
    margin: 0;
    cursor: pointer;
}

.form-options .checkbox a {
    color: #e74c3c;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.form-options .checkbox a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* 注册按钮 */
.btn-register {
    width: 100%;
    padding: 15px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-register:hover {
    background-color: #c0392b;
}

/* 登录链接 */
.register-login {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.register-login .btn-login-link {
    color: #e74c3c;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-left: 5px;
}

.register-login .btn-login-link:hover {
    text-decoration: underline;
}

/* 响应式注册页面 */
@media (max-width: 768px) {
    .register-container {
        padding: 30px 20px;
    }

    .register-box {
        padding: 30px 20px;
    }

    .register-header h2 {
        font-size: 20px;
    }

    .captcha-image {
        width: 80px;
        height: 42px;
        font-size: 16px;
    }

    .btn-send-code {
        padding: 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .register-box {
        padding: 25px 15px;
    }

    .form-group input {
        padding: 12px 12px 12px 40px;
    }

    .btn-register {
        padding: 12px;
        font-size: 14px;
    }

    .captcha-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .captcha-image {
        width: 100%;
        height: 45px;
    }

    .mobile-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-send-code {
        width: 100%;
    }
}


/* 评论 */
.sb {
    box-shadow: 0 1px 2px rgba(26, 26, 26, .08);
    background: #fff;
}

.br {
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
}

.mb {
    margin-bottom: 20px;
}

.fr {
    float: right;
}

.mianbaoxie {
    font-size: 16px;
    padding: 10px 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.post-comment .emphasize {
    color: #e74c3c
}

#commentbox .comment-list {
    border: 1px solid #eee;
    padding: 0.5em 1em 0.5em 1em;
}

#commentbox .comment-list .pagebar {
    list-style: none;
    border-top: 1px solid #ededed;
}

#commentbox .comment-list .li .clbody {
    margin-left: 55px;
    word-wrap: break-word;
    box-sizing: border-box;
    width: calc(100% - 55px);
}

.art-fujia-content .comment-list .clbody {
    word-wrap: break-word;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
}

.no-comment {
    color: #999;
    text-align: center
}

.no-comment i.iconfont {
    font-size: 60px;
    color: #ddd;
    display: block;
    margin-top: -20px;
    height: 90px
}

#cancel-reply {
    color: #e74c3c
}

#com-tishi {
    color: #e74c3c
}

#com-tishi img {
    max-width: 45px;
    max-height: 45px;
    border-radius: 100px;
}

#com-tishi .expression {
    max-width: 25px;
    max-height: 25px;
    border-radius: 0px;
}

#txaArticle {
    padding: 10px;
    width: 100%;
    border: 1px solid #eee;
    background: #fff;
    -webkit-appearance: none
}

.compost .com-name {
    padding: 0 0 1em .2em;
}

.compost .com-bar {
    width: 100%;
    height: 50px;
    padding: 6px 10px;
    border: 1px solid #ededed;
    margin-top: -8px;
}

.compost .com-bar .btn {
    padding: 0 10px;
    border: 0;
}

.compost .com-bar .btn i.iconfont {
    color: #666;
    font-size: 20px;
    cursor: pointer;
}

.compost .com-bar .com-submit {
    border: none;
    cursor: pointer;
    line-height: 35px;
    background-color: #e74c3c;
    color: #fff;
    padding: 0 15px
}

.compost .com-bar .smile {
    padding: 12px;
}

.compost .com-bar .smile img {
    width: 30px;
    height: 30px;
    padding: 2px;
    border: 1px solid #f6f6f6;
}

.compost .com-bar .smile img:hover {
    border: 1px solid #e74c3c;
}

.compost .com-bar .smile .arrow {
    width: 6px;
    height: 11px;
    overflow: hidden;
    position: absolute;
    left: -6px;
    top: 85px
}

.compost .com-bar .smilebg {
    width: 536px;
    position: absolute;
    z-index: 999;
    display: none;
    background: #fff;
    border: solid #ddd 1px;
    border-radius: 2px;
    box-shadow: 0 0 10px #f1f1f1;
    margin: -76px 0 0 45px;
    line-height: 20px;
}

.comment-list .title {
    font-size: 18px;
    padding-bottom: 0.2em
}

.comment-list .ul {
    list-style: none;
    border-top: 1px solid #ededed
}

.comment-list .li {
    word-wrap: break-word;
    white-space: normal;
    padding: 1em
}

.comment-list .li img {
    max-width: 45px;
    max-height: 45px;
    border-radius: 100px;
    border: 2px solid #fff;
}

.comment-list .li .clbody {
    margin-left: 40px
}

.comment-list .ul .ul {
    margin-left: 3%
}

.comment-list .clbody .p {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.6;
}

.comment-list .clbody .expression {
    width: 25px;
    height: 25px;
}

.comment-list .clbody .author,
.comment-list .clbody .author a {
    color: #666
}

.comment-list .clbody .c-time {
    color: #999;
    font-size: 12px;
}

.comment-list .clbody .c-ip {
    color: #999;
    font-size: 12px;
    margin-left: 8px
}

.comment-list .comment-at {
    color: #e74c3c
}

.comment-list .reply-a {
    opacity: 0.5
}

.comment-list reply-a:hover {
    opacity: 1
}

.comment-list .level-mark {
    min-width: 8px;
    border-radius: 2px;
    font-size: 12px;
    line-height: 18px;
    padding: 0 5px;
    margin-left: 8px;
    color: #fff;
    cursor: pointer;
}

.comment-list .level-louzu {
    background-color: #e74c3c;
}

.comment-list .level-tyhy {
    background-color: #e74c3c;
}

.comment-list .level-byhy {
    background-color: #e74c3c;
}

.comment-list .level-yjhy {
    background-color: #e74c3c;
}

.comment-list .level-gly {
    background-color: #e74c3c;
}

.comment-list .level-bwzz {
    background-color: #ffb800;
}

.comment-list .louzhutoux {
    background-image: url(/zb_users/theme/xianbao_theme/image/avatar/1.png);
    width: 30px;
    height: 30px;
    border-radius: 100px;
    border: 2px solid #fff;
    background-size: 26px 26px;
    float: left;
}

.comment-list .pingluntoux {
    background-image: url(https://new.xianbao.fun/zb_users/theme/xianbao_theme/image/avatar/6.png);
    width: 30px;
    height: 30px;
    border-radius: 100px;
    border: 2px solid #fff;
    background-size: 26px 26px;
    float: left;
}

.art-comment-content .comment-list .cinfo {
    height: 25px;
}

/*链接转二维码处理*/
.url-qr {
    cursor: pointer;
    margin: 0px 6px 0px 2px;
    font-size: 25px;
}

/*--文章附加评论--*/
.art-fujia-content,
.art-comment-content {
    padding: 2em;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
}

/* 强制约束所有子元素宽度 */
.art-fujia-content * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.art-fujia-content .comment-list,
.art-fujia-content .ul,
.art-fujia-content .li,
.art-fujia-content .clbody,
.art-fujia-content .cinfo,
.art-fujia-content .c-neirong {
    width: 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* 修复评论头像区域 */
.art-fujia-content .pingluntoux {
    float: left;
    margin-right: 10px;
}

/* 修复评论主体区域 - 确保不被头像挤占 */
.art-fujia-content .clbody {
    width: calc(100% - 45px) !important;
    margin-left: 40px !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .art-fujia-content,
    .art-comment-content {
        padding: 1em;
    }

    .art-fujia-content .clbody {
        width: 100% !important;
        margin-left: 0 !important;
        clear: both;
    }

    .art-fujia-content .pingluntoux {
        float: left;
        margin-right: 8px;
        margin-bottom: 8px;
        display: block;
        width: 30px !important;
        height: 30px !important;
        background-size: cover !important;
        background-position: center !important;
    }
}

/* 评论表单样式 */
.comment-form {
    position: relative;
    margin-bottom: 20px;
}

/* 评论工具栏 */
.comment-toolbar {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

/* 工具栏按钮 */
.tool-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    margin-right: 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tool-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}

/* 表情面板 */
.emoji-panel {
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    width: 300px;
    max-height: 200px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 10px;
}

.emoji-panel.show {
    display: block;
}

/* 表情列表 */
.emoji-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 表情项 */
.emoji-item {
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.emoji-item:hover {
    background-color: #f0f0f0;
    transform: scale(1.2);
}

/* 图片选择按钮 */
.btn-image {
    position: relative;
}

.image-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* 图片预览容器 */
.image-preview-container {
    margin-top: 10px;
}

/* 图片预览列表 */
.image-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 图片预览项 */
.image-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

/* 预览图片 */
.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 删除预览图片按钮 */
.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-image:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* 评论文本域 */
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
}

/* 提交按钮 */
.btn-submit {
    margin-top: 10px;
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #c0392b;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.close {
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 10px 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #e74c3c;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-img-host,
.btn-cancel,
.btn-confirm {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn-img-host {
    background-color: #f0f0f0;
    color: #333;
}

.btn-img-host:hover {
    background-color: #e0e0e0;
}

.btn-cancel {
    background-color: #f0f0f0;
    color: #333;
}

.btn-cancel:hover {
    background-color: #e0e0e0;
}

.btn-confirm {
    background-color: #e74c3c;
    color: white;
}

.btn-confirm:hover {
    background-color: #c0392b;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}


.art-fujia .kuangxian {
    border: 1px solid #eee;
    padding: 0.5em 1em 0.5em 1em !important;
}

.art-fujia #comment p {
    margin-bottom: 0px !important;
}

.art-fujia-content img {
    cursor: pointer;
    max-width: 100%;
    height: auto;
}

.art-fujia-content .showlouzhu,
.art-fujia-content .pinglunshunxu {
    font-size: 13px;
    border-radius: 20px;
    border: 1px solid #999;
    text-align: center;
    padding: 0em 1em;
    color: #999;
    cursor: pointer;
    margin-right: 10px;
    margin-top: 3px;
}

.art-fujia-content .showlouzhu-hover,
.art-fujia-content .pinglunshunxu-hover {
    border: 1px solid #e74c3c;
    background-color: #e74c3c;
    color: #fff;
}

.art-fujia-content .comment-list .c-time {
    margin-left: 10px;
}

.art-fujia-content .comment-list .cinfo {
    min-height: 30px;
}

.art-fujia-content .comment-list .huifushijian,
.art-fujia-content .comment-list .dianpingshijian {
    font-size: 12px;
    margin-left: 10px;
}

.art-fujia-content .comment-list .c-yingyong,
.art-fujia-content .comment-list .c-dianping {
    margin-top: 5px;
    background: #F9F9F9;
    color: #989898;
}

.art-fujia-content .comment-list .c-yingyong a,
.art-fujia-content .comment-list .c-dianping a {
    color: #989898;
}

.art-fujia-content .cinfo .author a:hover,
.art-fujia-content .comment-list .c-yingyong a:hover,
.art-fujia-content .comment-list .c-dianping a:hover {
    color: #0084ff;
}

.art-fujia .hide {
    display: none;
}

/* 针对实际评论区域结构的修复 */
.art-fujia-content .comment-list .clbody {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
    line-height: 1.6;
}

.art-fujia-content .ul {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0;
}

.art-fujia-content .li {
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
    margin-bottom: 10px;
}

.art-fujia-content .c-neirong {
    box-sizing: border-box;
    width: 100%;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    overflow-x: hidden;
    line-height: 1.6;
    white-space: normal;
}

/* 长链接强制换行 */
.art-fujia-content .c-neirong a {
    word-break: break-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
}

.art-fujia-content .c-neirong img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

a:hover {
    color: #e74c3c;
}

a {
    text-decoration: none;
}

/* 排行榜样式 */
.rank-section {
    margin-bottom: 20px;
}

.rank-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.rank-tabs {
    display: flex;
    gap: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .rank-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .rank-tabs {
        align-self: stretch;
        justify-content: space-between;
    }

    .rank-tab {
        flex: 1;
        text-align: center;
        padding: 6px 8px;
        font-size: 13px;
    }

    .rank-item {
        flex-wrap: wrap;
        gap: 5px;
    }

    .rank-title-link {
        font-size: 13px;
    }

    .rank-comments {
        font-size: 11px;
    }
}

/* 小屏幕设备(480px以下)排行榜优化 */
@media (max-width: 480px) {
    .rank-section {
        padding: 15px;
    }

    .rank-title {
        gap: 8px;
    }

    .rank-title h3 {
        font-size: 14px;
        margin-bottom: 0;
    }

    .rank-tabs {
        gap: 5px;
    }

    .rank-tab {
        padding: 5px 6px;
        font-size: 12px;
    }

    .rank-item {
        padding: 6px 0;
    }

    .rank-number {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 12px;
        margin-right: 8px;
    }

    .rank-title-link {
        font-size: 12px;
        line-height: 1.3;
    }

    .rank-comments {
        font-size: 10px;
        margin-left: 5px;
    }

    .rank-comments i {
        font-size: 9px;
    }
}

.rank-tab {
    padding: 4px 12px;
    background: #f5f5f5;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.rank-tab:hover {
    background: #e9e9e9;
}

.rank-tab.active {
    background: #ff6b6b;
    color: white;
}

.rank-container {
    overflow: hidden;
    position: relative;
}

.rank-content {
    /* display: flex; */
    transition: transform 0.3s ease;
}

.rank-panel {
    width: 100%;
    flex-shrink: 0;
    display: none;
}

.rank-panel.active {
    display: block;
}

.rank-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.rank-item:hover {
    background: #f9f9f9;
    padding-left: 5px;
}

.rank-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    font-weight: bold;
    margin-right: 10px;
    font-size: 14px;
}

.rank-number.top1 {
    background: #ff4757;
    color: white;
}

.rank-number.top2 {
    background: #ffa502;
    color: white;
}

.rank-number.top3 {
    background: #ff6348;
    color: white;
}

.rank-title-link {
    flex: 1;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.rank-title-link:hover {
    color: #ff6b6b;
}

.rank-comments {
    font-size: 12px;
    color: #999;
    margin-left: 8px;
}

.rank-comments i {
    margin-right: 3px;
}


/*--文章详情页--*/
.art-main {
    padding: 2em 3em
}

.art-main .art-title {
    font-size: 28px
}

.art-main .head-info {
    color: #999;
    padding-top: 5px
}

.art-main .head-info .report a {
    color: #999;
}

.art-main .head-info i.iconfont {
    padding-right: 2px
}

.art-main .head-info .category,
.art-main .head-info .author,
.art-main .head-info .comment,
.art-main .head-info .time,
.art-main .head-info .report {
    padding-right: 0.3em
}

.art-main .art-content {
    position: relative;
    font-size: 16px;
    width: 100%;
    word-break: break-all
}

.art-content a,
.art-fujia a {
    color: #0084ff
}

.art-content h1,
.art-content h2,
.art-content h3,
.art-content h4,
.art-content h5,
.art-content h6 {
    margin: 10px 0
}

.art-content h1 {
    font-size: 1.8em
}

.art-content h2 {
    font-size: 1.6em
}

.art-content h3 {
    font-size: 1.4em
}

.art-content h4 {
    font-size: 1.2em
}

.art-content h5 {
    font-size: 1em
}

.art-content h6 {
    font-size: 0.8em
}

.art-content blockquote {
    color: #666;
    font-weight: 400;
    border-left: 4px solid #0084ff;
    padding: .5em 1em;
    background-color: #f9f9f9
}

.art-content img {
    max-width: 100%;
    width: 100%;
    height: auto;
    cursor: pointer;
    margin-top: 10px;
}

.art-content table {
    border-collapse: collapse;
    empty-cells: show;
    border-spacing: 0;
    width: 100%;
}

.art-content table tr.firstRow {
    font-weight: bold;
    background-color: #f8f8f8;
    text-align: left
}

.art-content table th,
.art-content table td {
    padding: .3em .5em;
    margin: 0;
    vertical-align: top;
    border: 1px solid #ddd
}

.art-content blockquote,
.art-content dl,
.art-content form,
.art-content hr,
.art-content ol,
.art-content p,
.art-content pre,
.art-content table,
.art-content ul {
    font-weight: 400;
    margin: 0.5rem 0
}

.art-content blockquote p,
.art-content ul p {
    margin-bottom: 0
}

.art-content li {
    margin-left: 1.2em
}

.art-content hr {
    border: none;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-top: 1px solid #eee;
    height: 1px;
    background: 0 0
}

.art-content b,
.art-content strong {
    font-weight: 700;
}

.art-content .art-copyright {
    font-size: 14px;
    background: #f8f8f8;
    padding: 1em 1.5em;
    margin-top: 1.5em;
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.art-content .tip {
    background-color: #ddeeff;
    color: #0084ff;
    font-size: 14px;
    text-align: center;
    line-height: 35px;
    margin-bottom: 15px;
    border: 1px solid #97cdff;
}

.art-content .tip a {
    color: #0084ff;
}

.art-content .guanlian {
    width: 100%;
    margin: 20px 0 20px 0;
    padding: 12px 15px 15px;
    font-size: 14px;
    color: #888;
    line-height: 22px;
    border: 1px solid rgba(68, 68, 68, .1);
    background: rgba(143, 143, 143, .1);
    border-radius: 3px;
    overflow: hidden;
}

.art-content .guanlian .g-biaoti {
    font-size: 16px;
    margin: 3px 0 18px 0;
    color: #484848;
    padding: 0 0 10px 0;
    border-bottom: 1px solid rgba(68, 68, 68, .1);
}

.art-content .guanlian .d-biaoti {
    font-size: 16px;
    margin: 3px 0 10px 0;
    color: #484848;
    padding: 0 0 10px 0;
    border-bottom: 1px solid rgba(68, 68, 68, .1);
}

.art-content .guanlian .d-neirong {
    margin-left: 80px;
}

.art-content .guanlian .d-tupian img {
    float: left;
    width: 60px;
}

.art-content .imgreader a,
.art-content .tishi a,
.comment-list .tishi a {
    color: #185a97
}

.icon-user {
    font-size: 14px;
}

/*--文章详情页 适配用户中心--*/
.art-content .mochu_us_shoucang {
    margin-top: 25px;
    margin-bottom: 0px;
    text-align: center;
}

.art-content .mochu-us-colluser {
    margin: 5px 5px;
    background-color: #fff;
}

.art-content .mochu-us-zan,
.mochu-us-coll,
.mochu-us-shang,
.mochu-us-zhua,
.mochu-us-bianji,
.mochu-us-copy {
    border-radius: 18px !important;
    border: 1px solid #e74c3c !important;
    text-align: center !important;
    padding: .2em 1em !important;
    color: #e74c3c !important;
    cursor: pointer !important;
    height: 35px !important;
    background-color: transparent;
    border: 1px solid #ddd;
    color: #999;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.art-content .mochu-us-button:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

.art-content .mochu-us-shang-div>p,
.mochu-us-shang-div>button {
    color: #0084ff
}

.art-content .mochu-us-shang-div-span {
    background-color: #0084ff
}

.art-content .mochu-us-shangbuttons {
    border: 1px solid #0084ff
}

.art-content .mochu_us_login_user_us {
    background-color: transparent
}

.art-content .mochu_us_login_user_ul li {
    border: 0 !important
}

#mochu_us_logincelan .mochu_us_login_footerdiv a {
    margin: 5px !important;
    background-color: transparent !important;
    border: 1px solid #e9e9e9 !important
}

.art-content .mochu_us_login_user_ul {
    color: inherit !important
}

.art-content .mochu_us_pst {
    width: 100% !important;
    margin: 0 0 20px 0 !important;
    padding: 12px 15px 15px !important;
    font-size: 14px !important;
    color: #888 !important;
    line-height: 22px !important;
    border: 1px solid rgba(68, 68, 68, .1) !important;
    background: rgba(143, 143, 143, .1) !important;
    border-radius: 3px !important;
    overflow: hidden !important
}

.art-content .mochu_us_pst h2 {
    font-size: 19px !important;
    margin: 0 0 10px 0 !important;
    color: #034eff !important;
    padding: 0 0 5px 0 !important;
    border-bottom: 1px solid rgba(68, 68, 68, .1) !important
}

.art-content .mochu_us_pst p {
    line-height: 2 !important;
    font-size: 15px !important;
    padding: 0 !important;
    color: #555444 !important
}

.art-content .mochu_us_tip_span a,
.art-content .mochu_us_tip_span span {
    color: #034eff !important
}

.art-content .mochu_us_xiazai {
    margin: 0 0 20px 0 !important;
    border: 1px solid rgba(68, 68, 68, .1) !important;
    background: rgba(143, 143, 143, .1) !important;
    padding: 15px !important
}

.art-content .mochu_us_xiazai_lf {
    background-image: url(../image/xz.svg) !important
}

.art-content .mochu-us-shang-div-span,
.mochu_us_xiazai_lr a {
    border-radius: 3px !important;
    background-color: #034eff !important;
}

.art-content .mochu-us-shang-div button,
.mochu-us-shang-div p {
    color: #555444 !important
}

.art-content button.mochu-us-shangbuttons {
    color: #034eff !important;
    border: 1px solid #034eff !important
}

.art-content .imgreader,
.comment-list .imgreader,
.art-content .tishi,
.comment-list .tishi {
    background-color: #f7f7f7;
    display: block;
    font-size: 15px;
    border: 1px solid rgba(68, 68, 68, .1);
    margin: 5px 0px;
    padding: 10px;
    color: #185a97;
    border-radius: 5px;
}

.art-content .copy {
    cursor: pointer;
    background-color: #daedf7;
    display: block;
    font-size: 15px;
    border: 1px solid #c4e2e1;
    margin: 5px 0px;
    padding: 10px;
    color: #4889b2;
    border-radius: 5px;
}


/* 内部评论图片 */
.comment-image {
    max-width: 45px;
    height: auto !important; 
    display: block;
    margin: 0 auto;
    border-radius: 5px;
    border: 2px solid #fff;
}

.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.share-modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.share-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
}

.share-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.share-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
}

.share-modal-close:hover {
    color: #333;
}

.share-modal-body {
    padding: 30px;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
}

.share-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    background-color: #f8f9fa;
}

.share-modal-footer .btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-modal-footer .btn-download {
    background-color: #007bff;
    color: white;
}

.share-modal-footer .btn-download:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.share-modal-footer .btn-close {
    background-color: #6c757d;
    color: white;
}

.share-modal-footer .btn-close:hover {
    background-color: #5a6268;
}

@media (max-width: 768px) {
    .share-modal-content {
        width: 95%;
        max-width: none;
        max-height: 95vh;
    }
    
    .share-modal-header {
        padding: 15px 20px;
    }
    
    .share-modal-header h3 {
        font-size: 18px;
    }
    
    .share-modal-body {
        padding: 20px;
    }
    
    .share-modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .share-modal-footer .btn {
        width: 100%;
        padding: 12px 20px;
    }
}

/* ============ 移动端全局防溢出优化 ============ */
@media (max-width: 768px) {
    /* 强制所有块级元素限制宽度 */
    div, section, article, aside, header, footer, nav, main {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 强制所有图片自适应 */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* 强制所有表格可横向滚动 */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    /* 强制所有pre/code可横向滚动 */
    pre, code {
        overflow-x: auto;
        max-width: 100%;
        word-wrap: normal;
    }

    /* 强制所有链接和文本换行 */
    a, span, p, h1, h2, h3, h4, h5, h6, li, td, th {
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* 移除可能导致溢出的固定宽度 */
    [style*="width"] {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 文章内容区域强制防溢出 */
    .article-content,
    .art-content,
    .art-fujia-content,
    .art-comment-content {
        overflow-x: hidden !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
    }

    /* 评论内容防溢出 */
    .comment-list,
    .comment-item,
    .comment-content,
    .c-neirong,
    .clbody {
        max-width: 100%;
        overflow-x: hidden;
        word-wrap: break-word;
        word-break: break-word;
    }

    /* 隐藏横向滚动条但保留滚动功能 */
    .main-nav::-webkit-scrollbar {
        display: none;
    }
    .main-nav {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

/* 搜索结果页面样式 */
.search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-result-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 15px;
    color: #666;
}

.search-label {
    font-weight: 600;
    color: #333;
}

.search-keyword {
    color: #e74c3c;
    font-weight: 600;
    font-size: 16px;
}

.search-count {
    color: #999;
    font-size: 13px;
}

.search-back {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-back:hover {
    color: #e74c3c;
    border-color: #e74c3c;
}

/* 搜索空状态 */
.search-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.search-empty i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.search-empty p {
    font-size: 15px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .search-result-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}