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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7f1 100%);
    color: #333;
    min-height: 100vh;
    padding-top: 0 !important; /* 修改：顶部间距设为0，优先级最高 */
    padding: 15px;
    /* 移动端预留底部导航空间 */
    padding-bottom: 70px !important;
    /* 仅保留必要的防滚动条，不影响原有布局 */
    overflow-x: hidden;
    width: 100%;
}

/* 错误提示样式 */
.error-tip {
    max-width: 1000px;
    margin: 0 auto 15px;
    padding: 10px;
    background: #fff3cd;
    color: #856404;
    border-radius: 6px;
    text-align: center;
}

/* ========== 核心新增：顶部导航条（.top-red-nav）桌面端样式 ========== */
.top-red-nav {
    max-width: 1000px;
    margin: 0px auto 15px;
    padding: 5px 10px;
    border: 1px solid #f9f9f9;
    background: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}
.top-red-nav .nav-left, .top-red-nav .nav-right {
    display: flex;
    gap: 12px;
    align-items: center;
}
.top-red-nav .nav-link {
    text-decoration: none;
    color: #000000;
    transition: color 0.2s ease;
}
.top-red-nav .nav-link.blue {
    color: #0000FF;
}
.top-red-nav .nav-link:hover {
    color: #4361ee;
}
.top-red-nav .nav-link.red {
    color: #FF0000; /* 红色圆点 */
}
/* ================================================== */

/* header基础样式（宽度和帖子列表一致）- 核心优化垂直居中 */
.header {
    display: flex;
    align-items: center; /* 核心：强制子元素（搜索框/标题）垂直居中 */
    justify-content: space-between;
    padding: 20px 15px;
    margin: 0 auto 10px; /* 核心修改：从15px改为10px，和第一段CSS保持一致 */
    max-width: 1000px;
    width: 100%;
    gap: 20px;
    /* 新增：确保header有足够高度支撑垂直居中 */
    min-height: 80px;
}

.header-search-container {
    width: 70%; /* 搜索框占70%宽度 */
    /* 新增：确保搜索框容器本身垂直居中，和标题区域高度一致 */
    display: flex;
    align-items: center;
    height: 100%;
}

.header-title-area {
    width: 30%; /* 标题占30%宽度 */
    text-align: center;
    /* 核心：让h1在标题区域内垂直+水平居中 */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; /* 继承header高度，确保垂直居中生效 */
}

.header h1 {
    color: #2b2d42;
    font-size: 1.8rem;
    margin: 0 !important; /* 彻底移除默认margin，避免垂直偏移 */
    font-weight: 700;
    line-height: 1.2; /* 优化行高，避免文字本身高度偏移 */
}

.header p {
    color: #6c757d;
    font-size: 0.95rem;
    max-width: 100%;
    margin: 0 auto;
}

/* 搜索框样式 */
.search-form {
    display: flex;
    box-shadow: 0 3px 15px rgba(67, 97, 238, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    /* 新增：确保搜索框本身垂直居中 */
    align-self: center;
}

.search-form:focus-within {
    box-shadow: 0 3px 20px rgba(67, 97, 238, 0.3);
    transform: translateY(-2px);
}

.search-input {
    flex: 1;
    padding: 14px 16px;
    border: none;
    font-size: 1rem;
    outline: none;
    background: #fff;
}

.search-btn {
    padding: 0 20px;
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background: linear-gradient(135deg, #3a0ca3 0%, #4361ee 100%);
}

.search-btn:before {
    content: ""; /* 清空原有放大镜emoji */
    /* 引入自定义search.png，路径根据实际存放位置调整 */
    background-image: url("/css/icons/fdj.png"); 
    /* 尺寸匹配原emoji（放大镜emoji默认尺寸约16px，1.4rem≈22.4px，取22px适配） */
    width: 18px; 
    height: 18px;
    display: inline-block; /* 保持行内布局，和按钮文字对齐 */
    margin-right: 6px; /* 保留原有的右侧间距，和原效果一致 */
    background-size: 100% 100%; /* 图片适配容器，不变形 */
    background-repeat: no-repeat;
    background-position: center; /* 图片居中显示 */
    vertical-align: middle; /* 和文字垂直居中对齐，避免偏移 */
}
/* 可选：保留按钮hover时图标的渐变效果（和底部导航风格统一） */
.search-btn:hover:before {
    filter: brightness(0.9) saturate(1.8) hue-rotate(200deg); /* 渐变滤镜 */
    transition: all 0.3s ease; /* 丝滑过渡 */
}

/* ===== 核心修改：完全复刻第一段CSS的横排导航样式（高度精准匹配） ===== */
.top-nav-bar {
    max-width: 1000px;
    margin: 0 auto 15px;
    padding: 6px 10px; /* 中间值：6px，既不高也不矮 */
    background: #fff;
    border: 1px solid #eee;
    display: block;
    height: auto;
}
@media (max-width: 767px) {
    /* 手机端隐藏顶部导航条 */
    .top-red-nav {
        display: none !important;
    }
    .top-nav-bar {
        display: none !important;
    }
}
.top-nav-bar .forum-nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center; /* 垂直居中，消除高度差 */
    margin: 0; /* 清除默认边距 */
    padding: 0; /* 清除默认内边距 */
}
/* 导航链接精确匹配原始CSS尺寸 */
.top-nav-bar .forum-nav ul li a {
    text-decoration: none;
    color: #333;
    padding: 7px 14px; /* 中间值：7px 14px，平衡高度 */
    border-radius: 5px; /* 中间圆角，匹配原始视觉 */
    transition: all 0.2s ease;
    background: transparent;
    line-height: 1.4; /* 统一行高 */
    font-size: 0.9rem; /* 和原始CSS字体大小一致 */
}
.top-nav-bar .forum-nav ul li a:hover,
.top-nav-bar .forum-nav ul li a.active {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: white !important; /* 确保颜色优先级 */
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.3);
}
/* ================================================== */

/* 帖子容器flex布局（左75%帖子，右25%导航） */
.posts-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 20px;
    display: flex;
    gap: 20px;
    position: relative;
}

/* 左侧帖子内容区：占75%宽度 */
.posts-main {
    width: 100%; /* 适配移动端隐藏侧边栏后占满宽度 */
}

/* 导航栏高度自适应，仅保留基础样式（PC端显示） */
.posts-sidebar {
    width: 25%;
    padding: 10px;
    background: transparent;
    border-radius: 8px;
}

/* ===== 新增：右侧导航顶部按钮样式（与原网页一致） ===== */
.sidebar-top-btn {
    display: block;
    width: 100%;
    height: 50px;
    line-height: 50px;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    margin-bottom: 15px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}
@media (max-width: 767px) {
    .posts-sidebar .sidebar-top-btn {
        display: none !important;
    }
}
.sidebar-top-btn:hover {
    background: linear-gradient(135deg, #3a0ca3 0%, #4361ee 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.3);
}
/* ================================================== */

/* ===== 新增：全站置顶帖区域样式（与原网页一致） ===== */
.stick-threads-area {
    margin-top: 2px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fff;
}
.stick-threads-area h4 {
    font-size: 0.95rem;
    color: #4361ee;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px dashed #eee;
}
.stick-threads-area ul {
    list-style: none;
}
.stick-threads-area ul li {
    margin-bottom: 6px;
    height: 42px; /* 置顶帖链接高度固定42 */
    line-height: 42px; /* 垂直居中，保证高度生效 */
}
.stick-threads-area ul li a {
    text-decoration: none;
    color: inherit; /* 文字颜色继承默认（#333） */
    font-size: 12px; /* 字体大小12px */
    padding: 0 12px; /* 水平内边距保留 */
    border-radius: 6px;
    transition: all 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 100%; /* 继承li的42px高度 */
}
.stick-threads-area ul li a:hover {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.3);
    text-decoration: none;
}
.no-stick-threads {
    font-size: 0.9rem;
    color: #999;
    text-align: center;
    padding: 5px 0;
}
/* ================================================== */

/* 导航栏2列布局（保留，用于横排导航移动端降级） */
.forum-nav ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.forum-nav ul li a {
    text-decoration: none;
    color: #4361ee;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: block;
    text-align: center;
}

.forum-nav ul li a:hover,
.forum-nav ul li a.active {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.3);
}

/* 广告位样式（导航栏下方预留） */
.ad-space {
    margin-top: 20px;
    padding: 20px 10px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

/* 帖子标题：强制靠左显示 */
.posts-header {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2b2d42;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f2f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.posts-header:before {
    content: ""; /* 清空原有文件夹emoji */
    /* 引入自定义图片wj.png，路径根据实际存放位置调整 */
    background-image: url("/css/icons/wj.png"); 
    /* 尺寸匹配原1.4rem的emoji（1rem≈16px，1.4rem≈22.4px，取22px适配） */
    width: 30px; 
    height: 30px;
    display: inline-block; /* 保持行内布局，和文字在同一行 */
    margin-right: 8px; /* 保留原有的右侧间距，和原效果一致 */
    background-size: 100% 100%; /* 图片适配容器，不变形 */
    background-repeat: no-repeat;
    background-position: center; /* 图片在容器内居中显示 */
    vertical-align: middle; /* 和文字垂直居中对齐，避免偏移 */
}

/* 可选：添加hover渐变效果（和底部导航风格统一） */
.posts-header:hover:before {
    filter: brightness(0.9) saturate(1.8) hue-rotate(200deg); /* 渐变滤镜 */
    transition: all 0.3s ease; /* 丝滑过渡动画 */
}

.posts-header span {
    text-align: left;
    flex: 1;
}

.posts-count {
    color: #4361ee;
    font-size: 0.9rem;
}

.posts-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.post-item {
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

/* ===== 核心修改：删除广告特有的样式 - 开始 ===== */
/* 移除广告项特殊样式（原广告虚线边框/背景色） */
/* 移除广告标题特殊颜色/加粗 */
/* 移除广告元信息特殊颜色 */
/* ===== 核心修改：删除广告特有的样式 - 结束 ===== */

.post-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.1);
}

.post-title {
    font-size: 0.95rem;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    max-height: calc(0.95rem * 1.5 * 2);
}

.post-title a {
    color: #2b2d42;
    text-decoration: none;
    transition: color 0.2s;
}

.post-title a:hover {
    color: #4361ee;
}

.post-meta {
    color: #6c757d;
    font-size: 0.75rem;
    display: flex;
    justify-content: space-between;
}

/* 核心修改：板块链接样式统一（移除红色方框+颜色匹配页面） */
.post-meta span a {
    color: #6c757d; /* 与post-meta文字颜色一致 */
    text-decoration: none; /* 移除下划线 */
    padding: 2px 4px;
    border-radius: 3px;
    background: transparent; /* 移除红色背景 */
    transition: color 0.2s ease;
}
.post-meta span a:hover {
    color: #4361ee; /* hover时与页面其他链接样式一致 */
}

.no-posts {
    text-align: center;
    padding: 30px 15px;
    color: #6c757d;
}

.no-posts:before {
    content: "📭";
    font-size: 3rem;
    color: #e9ecef;
    margin-bottom: 15px;
    display: block;
}

.no-posts h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #495057;
}

/* ========== 替换后的分页样式（统一PC/移动端） ========== */
.pagination {
    margin: 30px 0 15px;
    text-align: center;
    /* 新增：确保分页容器本身居中 */
    width: 100%;
}

.pagination-container {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center; /* 核心：默认居中 */
    /* 新增：确保容器本身也居中 */
    margin: 0 auto;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-width: 36px;
    padding: 0 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #4361ee;
    font-weight: 500;
    font-size: 0.9rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: #4361ee;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.pagination .current {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.pagination .disabled {
    color: #adb5bd;
    background: #f8f9fa;
    box-shadow: none;
    cursor: not-allowed;
}

/* ================================================== */

.footer {
    text-align: center;
    padding: 20px 0;
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 15px;
}

.footer a {
    color: #4361ee;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* 响应式适配 */
@media (min-width: 768px) {
    body {
        padding: 20px;
        padding-bottom: 15px !important; /* 重置PC端底部padding */
    }

    .header {
        padding: 30px 20px;
        margin: 0 auto 10px; /* 核心修改：同步修改PC端header底部间距为10px */
        min-height: 90px; /* PC端适配更高的header高度，仍保持居中 */
    }

    .header h1 {
        font-size: 2.2rem;
        margin: 0 !important; /* 保留无margin，确保居中 */
    }

    .header p {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .search-input {
        padding: 18px 25px;
        font-size: 1.1rem;
    }

    .search-btn {
        padding: 0 35px;
        font-size: 1.1rem;
    }

    .posts-container {
        padding: 25px;
    }

    .posts-header {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .posts-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .post-title {
        font-size: 1rem;
        max-height: calc(1rem * 1.5 * 2);
    }

    .post-meta {
        font-size: 0.8rem;
    }

    .no-posts {
        padding: 50px 20px;
    }

    .no-posts:before {
        font-size: 4rem;
        margin-bottom: 20px;
    }

    .no-posts h3 {
        font-size: 1.5rem;
    }

    /* PC端分页样式微调 */
    .pagination {
        margin: 40px 0 20px;
    }

    .pagination-container {
        gap: 8px;
    }

    .pagination a, .pagination span {
        height: 40px;
        min-width: 40px;
        padding: 0 15px;
        border-radius: 8px;
        font-size: 1rem;
    }

    .footer {
        padding: 30px 0;
        font-size: 0.95rem;
        margin-top: 20px;
    }
    /* PC端恢复帖子主区域宽度 */
    .posts-main {
        width: 75%;
    }
}

/* 移动端（小于768px）：导航栏回到顶部，帖子容器恢复单列 */
@media (max-width: 767px) {
    .posts-container {
        flex-direction: column;
    }
    .posts-main {
        width: 100%;
    }
    /* 核心修改：移动端隐藏整个posts-sidebar */
    .posts-sidebar {
        display: none !important;
    }
    .forum-nav ul {
        grid-template-columns: repeat(2, 1fr);
    }
    /* 移动端隐藏标题区域，搜索框铺满整行 */
    .header-title-area {
        display: none !important;
    }
    .header-search-container {
        width: 100% !important;
    }
    /* 适配移动端搜索框 */
    .search-input {
        font-size: 0.9rem;
        padding: 12px 14px;
    }
    .search-btn {
        padding: 0 15px;
        font-size: 0.9rem;
    }
    /* ========== 移动端分页：单行+居中+隐藏滚动条 ========== */
    .pagination-container {
        flex-wrap: nowrap !important; /* 强制不换行 */
        overflow-x: auto !important; /* 保留滚动功能 */
        padding-bottom: 5px !important; /* 预留点击空间 */
        width: 100% !important; /* 占满父容器宽度 */
        justify-content: center !important; /* 居中 */
        -webkit-overflow-scrolling: touch !important; /* 顺滑滚动 */
        /* 隐藏滚动条 - 兼容所有浏览器 */
        -ms-overflow-style: none !important; /* IE/Edge */
        scrollbar-width: none !important; /* Firefox */
    }
    /* 隐藏Webkit内核滚动条（Chrome/Safari） */
    .pagination-container::-webkit-scrollbar {
        display: none !important;
    }
    /* 移动端分页按钮尺寸微调（保持紧凑） */
    .pagination a, .pagination span {
        height: 32px !important;
        min-width: 32px !important;
        padding: 0 10px !important;
        font-size: 0.85rem !important;
    }
}

/* 核心修改：右侧悬浮导航栏（紧贴左侧列表页，缩小间隔） */
.sidebar-nav {
    position: fixed;
    bottom: 40px;          /* 保持距离底部20px */
    left: calc(50% + 500px + 5px); /* 关键：将间隔从15px改为5px，贴近左侧容器 */
    width: 110px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    padding: 15px;
    z-index: 999;
    opacity: 1;
    pointer-events: auto;
}

.sidebar-nav-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2b2d42;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f2f5;
}

.sidebar-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav-item {
    padding: 8px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sidebar-nav-item:hover {
    background: #f8f9fa;
}

.sidebar-nav-item a {
    color: #2b2d42;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    text-align: center;
}

.sidebar-nav-item a:hover {
    color: #4361ee;
    font-weight: 500;
}

/* 小屏移动端：隐藏悬浮导航栏 */
@media (max-width: 1150px) {
    .sidebar-nav {
        display: none !important;
    }
}

.result-container {
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 20px;
}

.no-results {
    text-align: center;
    padding: 30px 15px;
    color: #6c757d;
}

.no-results:before {
    content: "❌";
    font-size: 3rem;
    color: #e9ecef;
    margin-bottom: 15px;
    display: block;
}

.no-results h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #495057;
}

/* 隐藏51.la统计代码 */
#la-script {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* 移动端底部悬浮导航栏核心样式 - 迁移自内联样式，强化隐藏逻辑 */
.mobile-footer-nav {
    display: none !important; /* !important 提升权重，确保电脑版隐藏，抵御其他样式覆盖 */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    z-index: 9999; /* 最高层级，避免被遮挡 */
    padding: 5px 0;
    margin: 0; /* 消除默认边距干扰 */
}

.mobile-nav-list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0; /* 消除默认内外边距 */
}

.mobile-nav-item {
    flex: 1;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-nav-item a {
    text-decoration: none;
    color: #666;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.mobile-nav-item a:before {
    content: "";
    width: 24px;
    height: 24px;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

@media (max-width: 767px) {
    /* 【新增】free项的选中样式 */
    .mobile-nav-item.free.active a:before {
        filter: brightness(0.8) saturate(2) hue-rotate(200deg) drop-shadow(0 0 5px #4361ee) !important;
    }
    .mobile-nav-item.free.active a {
        color: #4361ee !important;
        font-weight: 700 !important;
    }

    /* 以下是原有样式，无需修改，仅补充上面的free选中样式即可 */
    /* 底部导航容器、图标替换、hover效果、其他项选中样式... */
    .mobile-footer-nav {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 60px !important;
        background: #fff !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08) !important;
        z-index: 9999 !important;
        padding: 5px 0 !important;
        margin: 0 !important;
    }

    .mobile-nav-list {
        display: flex !important;
        justify-content: space-around !important;
        align-items: center !important;
        height: 100% !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .mobile-nav-item {
        flex: 1 !important;
        text-align: center !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .mobile-nav-item a {
        text-decoration: none !important;
        color: #666 !important;
        font-size: 0.8rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 3px !important;
        transition: color 0.3s ease !important;
    }

    /* 图标替换样式（原有，无需修改） */
    .mobile-nav-item.home a:before {
        content: "" !important;
        width: 24px !important;
        height: 24px !important;
        display: block !important;
        background-image: url("/css/icons/home.png") !important;
        background-size: 100% 100% !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        transition: all 0.3s ease !important;
    }
    .mobile-nav-item.gold a:before {
        content: "" !important;
        width: 24px !important;
        height: 24px !important;
        display: block !important;
        background-image: url("/css/icons/gold.png") !important;
        background-size: 100% 100% !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        transition: all 0.3s ease !important;
    }
    .mobile-nav-item.best a:before {
        content: "" !important;
        width: 24px !important;
        height: 24px !important;
        display: block !important;
        background-image: url("/css/icons/best.png") !important;
        background-size: 100% 100% !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        transition: all 0.3s ease !important;
    }
    .mobile-nav-item.free a:before {
        content: "" !important;
        width: 24px !important;
        height: 24px !important;
        display: block !important;
        background-image: url("/css/icons/free.png") !important;
        background-size: 100% 100% !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        transition: all 0.3s ease !important;
    }
    .mobile-nav-item.user a:before {
        content: "" !important;
        width: 24px !important;
        height: 24px !important;
        display: block !important;
        background-image: url("/css/icons/user.png") !important;
        background-size: 100% 100% !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        transition: all 0.3s ease !important;
    }

    /* Hover渐变效果（原有，无需修改） */
    .mobile-nav-item a:hover:before,
    .mobile-nav-item a:active:before {
        filter: brightness(0.9) saturate(1.8) hue-rotate(200deg) drop-shadow(0 0 3px #4361ee) !important;
    }
    .mobile-nav-item a:hover,
    .mobile-nav-item a:active {
        color: #4361ee !important;
        font-weight: 600 !important;
    }

    /* 选中效果（原有+新增free） */
    .mobile-nav-item.active a:before {
        filter: brightness(0.8) saturate(2) hue-rotate(200deg) drop-shadow(0 0 5px #4361ee) !important;
    }
    .mobile-nav-item.active a {
        color: #4361ee !important;
        font-weight: 700 !important;
    }

    /* 兜底：user项无选中效果 */
    .mobile-nav-item.user.active {
        active: none !important;
    }
    .mobile-nav-item.user a:before {
        filter: none !important;
    }
}

/* 移动端显示底部导航（保留原媒体查询，优化兼容性） */
@media (max-width: 767px) {
    .mobile-footer-nav {
        display: block !important; /* 移动端强制显示，确保生效 */
    }

    /* 可选：移动端页面底部预留间距，避免内容被导航遮挡 */
    body {
        padding-bottom: 70px !important;
    }
}

/* 横排导航-滚动容器（解决提前换行问题） */
.top-nav-bar .forum-nav-scroll {
    width: 100%;
    overflow-x: auto; /* 横向溢出时显示滚动条 */
    -webkit-overflow-scrolling: touch; /* 移动端顺滑滚动 */
    /* 隐藏滚动条（可选，更美观） */
    scrollbar-width: none; /* Firefox */
}
.top-nav-bar .forum-nav-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* 导航列表强制不换行 */
.top-nav-bar .forum-nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    justify-content: flex-start; /* 从左开始排列 */
    flex-wrap: nowrap; /* 强制不换行 */
    align-items: center;
    margin: 0;
    padding: 0 10px; /* 左右留边距 */
    width: max-content; /* 宽度自适应内容 */
}

/* 适配手机版（原隐藏逻辑保留） */
@media (max-width: 767px) {
    .top-nav-bar {
        display: none !important;
    }
}
/* 今日日期标红样式 */
.date-red {
    color: #ed4040; /* 纯红色 */
    /* font-weight: bold; */ /* 加粗 */
    /* 可选：如果需要更醒目的效果，可以添加以下样式 */
    /* font-size: 14px; */ /* 调整字体大小 */
    /* text-shadow: 0 0 1px #ff0000; */ /* 轻微红色阴影 */
}


/* 友情链接样式 */
.friend-link {
    max-width: 1000px;
    margin: 20px auto;
    border: 1px solid #eee;
    background: #f9f9f9;
}
.link-title {
    padding: 8px 10px;
    font-weight: bold;
    position: relative;
}
.link-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 18px;
    background-color: #ff0000;
    margin-right: 8px;
    vertical-align: middle;
}
.link-list {
    padding: 10px;
    font-size: 14px;
}
.link-list a {
    margin-right: 20px;
    text-decoration: none;
    color: #333;
}
.link-list a:hover {
    color: #4361ee;
}