/* ===================== 帖子列表样式 开始 ===================== */
.post-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px var(--shadow-color);
}

/* 帖子标签页 */
.list-header {
    padding: 0;
    border-bottom: 1px solid var(--border-color);
}

.post-tabs {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    white-space: nowrap;
    min-width: 0; /* 防止撑开父容器 */
}

.post-tabs::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.post-tabs a {
    padding: 12px 20px; /* 增加左右padding补偿容器padding的移除 */
    color: var(--text-light);
    text-decoration: none;
    font-size: 15px;
    position: relative;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: auto;
}

.post-tabs a:hover {
    color: var(--primary-color);
}

.post-tabs a.active {
    color: var(--primary-color);
    font-weight: 500;
}

.post-tabs a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* 添加：节点tab样式区分 */
.post-tabs a.node-tab {
    font-size: 14px;
    color: #6b7280;
    padding: 12px 16px; /* 节点tab稍微小一点 */
}

.post-tabs a.node-tab:hover {
    color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.05);
}

.post-tabs a.node-tab.active {
    color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.1);
}

/* 帖子项样式 */
.post-item {
    display: flex;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
    align-items: flex-start;
    gap: 12px;
}

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

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

/* 帖子内容区 */
.post-content {
    flex: 1;
    min-width: 0;
    padding: 0;
    margin: 0;
}

.post-content h2 {
    margin: 0 0 6px 0;
    font-size: 15px;
    line-height: 1.4;
}

.post-content h2 a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
}

.post-content h2 a:hover {
    color: var(--primary-color);
}

/* 帖子元信息 */
.post-meta {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #ccc;
    gap: 6px;
    flex-wrap: wrap;
}

.meta-dot {
    color: #cbd5e0;
}

/* 帖子列表中的分类标签 - 朴素小巧样式 */
.post-meta .category-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    background: #f8f9fa;
    color: #999;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    margin-right: 4px;
    line-height: 1;
    white-space: nowrap;
}

/* 首页帖子列表的最后回复样式 - 添加前缀避免冲突 */
.post-list .last-reply {
    color: #999;
}

.post-list .last-reply a {
    color: #999;
    text-decoration: none;
}

.post-list .last-reply a:hover {
    color: var(--primary-color);
}

/* 用户头像 */
.user-avatar {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 操作按钮区域 */
.actions {
    display: flex;
    gap: 6px;
    margin-left: 12px;
    flex-shrink: 0;
}

.action-box {
    --box-size: 46px;
    --icon-color: #4b587c;
    --hover-color: #2d3748;
    --upvote-color: #ff6154;
    --text-size: 11px;
    --icon-size: 14px;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: var(--box-size);
    height: var(--box-size);
    border: 1px solid #edf2f7;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 6px;
    flex-shrink: 0;
    margin: 0;
}

.action-box i {
    color: var(--icon-color);
    font-size: var(--icon-size);
    margin-bottom: 4px;
    transition: color 0.15s ease;
    line-height: 1;
}

.action-box span {
    color: var(--icon-color);
    font-size: var(--text-size);
    font-weight: 500;
    transition: color 0.15s ease;
    line-height: 1;
}

/* 投票按钮样式 */
.action-box.upvote i {
    font-size: calc(var(--icon-size) + 1px);
    margin-bottom: 3px;
    transform: translateY(-1px);
}

.action-box.upvote:hover {
    border-color: var(--upvote-color);
    background-color: #fff8f7;
}

.action-box.upvote:hover i,
.action-box.upvote:hover span {
    color: var(--upvote-color);
}

.action-box.upvote.voted {
    border-color: var(--upvote-color);
    background-color: #fff0ef;
}

.action-box.upvote.voted i,
.action-box.upvote.voted span {
    color: var(--upvote-color);
}

/* 评论按钮样式 */
.action-box.comment i {
    transform: translateY(1px);
}

.action-box.comment:hover {
    border-color: #718096;
    background-color: #f7fafc;
}

.action-box.comment:hover i,
.action-box.comment:hover span {
    color: #4a5568;
}

/* 热度值颜色分级样式 */
.heat-score.level-1 {
    /* 100-199：默认灰色 */
    color: #999 !important;
}

.heat-score.level-2 {
    /* 200-499：蓝色 */
    color: #007bff !important;
}

.heat-score.level-3 {
    /* 500-999：橙色 */
    color: #fd7e14 !important;
}

.heat-score.level-4 {
    /* 1000+：红色 */
    color: #dc3545 !important;
}

/* 投票按钮悬停时的热度值颜色保持原有级别 */
.action-box.upvote:hover .heat-score.level-1 {
    color: #999 !important;
}

.action-box.upvote:hover .heat-score.level-2 {
    color: #007bff !important;
}

.action-box.upvote:hover .heat-score.level-3 {
    color: #fd7e14 !important;
}

.action-box.upvote:hover .heat-score.level-4 {
    color: #dc3545 !important;
}

/* 移动端样式 */
@media screen and (max-width: 768px) {
    .post-item {
        padding: 14px 16px;
        gap: 10px;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
    }

    .actions {
        margin-left: 0px;
    }

    .action-box {
        --box-size: 40px;
        --text-size: 10px;
        --icon-size: 13px;
    }

    /* 中等屏幕移动端也隐藏投票数，显示评论数 */
    .action-box.upvote {
        display: none;
    }

    .action-box.comment {
        display: flex;
    }

    .post-content h2 {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .post-meta {
        font-size: 12px;
        gap: 4px;
    }

    .category-tag {
        display: none;
    }

    .category-tag + .meta-dot {
        display: none;
    }

    .post-list .last-reply {
        display: flex;
        align-items: center;
    }

    .post-list .last-reply span {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .post-meta {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 12px;
    }

    .post-item {
        padding: 12px;
        gap: 6px;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
    }

    .action-box {
        min-width: 38px;
        height: 38px;
    }

    /* 移动端隐藏投票数，显示评论数 */
    .action-box.upvote {
        display: none;
    }

    .action-box.comment {
        display: flex;
    }

    .post-content h2 {
        font-size: 14px;
        line-height: 1.3;
    }

    .category-tag {
        padding: 2px 4px;
        font-size: 10px;
    }

    .post-list .last-reply {
        font-size: 11px;
    }

    .post-list .last-reply span {
        display: none;
    }

    .list-header {
        padding: 0;
    }

    .post-tabs {
        padding: 0; /* 完全移除padding */
    }

    .post-tabs a {
        padding: 12px 15px; /* 小屏幕适中的padding */
        font-size: 14px;
        flex-shrink: 0;
        min-width: auto;
    }

    /* 小屏幕节点tab样式 */
    .post-tabs a.node-tab {
        padding: 12px 12px; /* 节点tab在小屏幕上更紧凑 */
        font-size: 13px;
        flex-shrink: 0;
    }

    .user-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .repo-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .post-list .last-reply {
        color: #ccc;
        font-size: 10px;
    }
}

/* ===================== 帖子列表样式 结束 ===================== */

/* ===================== 侧边栏样式 开始 ===================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-box {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px var(--shadow-color);
}

.sidebar-box h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 600;
}

/* 发帖按钮卡片样式 */
.create-post-card {
    text-align: center;
    padding: 20px;
    background: white;
}

.create-post-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: #4a5568;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.create-post-btn:hover {
    background: #3367d6;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.create-post-btn i {
    font-size: 16px;
    font-weight: normal;
}

/* 节点列表样式 */
.node-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.node-list li {
    margin-bottom: 8px;
}

.node-list li:last-child {
    margin-bottom: 0;
}

.node-list li a {
    display: block;
    padding: 6px 0;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.node-list li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* 搜索框 */
.search-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    height: 36px;
    background: var(--bg-light);
}

.search-button {
    padding: 8px 16px;
    background: var(--primary-color);
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    height: 36px;
    font-size: 14px;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.search-button:hover {
    background: var(--secondary-color);
}

/* 标签云样式 */
.sidebar-box ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-box li a {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-light);
    border-radius: 3px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 13px;
}

.sidebar-box li a:hover {
    background: var(--border-color);
    color: var(--primary-color);
}

/* 给不同标签设置不同的背景色 */
.sidebar-box li:nth-child(1) a { background: #e3f2fd; }
.sidebar-box li:nth-child(2) a { background: #f3e5f5; }
.sidebar-box li:nth-child(3) a { background: #e8f5e9; }
.sidebar-box li:nth-child(4) a { background: #fff3e0; }

/* 最新用户网格布局 */
.new-users {
    margin-top: -5px;
}

.user-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    max-height: 110px; /* 限制高度，确保只显示两排 */
    overflow: hidden;
}

.user-item {
    aspect-ratio: 1;
    display: block;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
}

.user-item:hover {
    transform: translateY(-2px) scale(1.05);
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 码桶网格布局 */
.repo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.repo-card {
    aspect-ratio: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 36px;
    min-height: 36px;
}

.repo-icon {
    font-size: 20px;
    font-weight: 500;
    color: var(--primary-color);
}

.repo-card:hover {
    background: var(--border-color);
}

.repo-card:hover::before {
    content: attr(data-title) "\A" attr(data-desc) "\A" attr(data-lang) " · ⭐️ " attr(data-stars);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    white-space: pre;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.5;
    z-index: 10;
    width: max-content;
    max-width: 200px;
    text-align: center;
}

.repo-card:hover::after {
    content: "";
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
    margin-bottom: -12px;
}

/* ===================== 侧边栏样式 结束 ===================== */

/* ===================== 内容区节点卡片样式 开始 ===================== */
/* 左侧内容区域的节点导航卡片，与右侧栏样式分离 */
.content-nodes-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px var(--shadow-color);
    margin-top: 20px; /* 与帖子列表的间距 */
}

.content-nodes-card h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 600;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .content-nodes-card {
        margin: 10px 0 0 0;
        border-radius: 0;
        box-shadow: none;
    }
}
/* ===================== 内容区节点卡片样式 结束 ===================== */

/* ===================== 响应式设计 开始 ===================== */
@media screen and (max-width: 768px) {
    /* 帖子列表容器调整 */
    .post-list {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    /* 列表头部对齐 */
    .list-header {
        padding: 0; /* 移除padding，让tab占满宽度 */
    }

    /* 标签页调整 */
    .post-tabs {
        background: #fff;
        position: sticky;
        top: 56px;
        z-index: 99;
        width: 100vw; /* 使用视窗宽度 */
        max-width: 100vw; /* 强制不超出视窗 */
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        border-bottom: 1px solid var(--border-color);
        margin-left: calc(-50vw + 50%); /* 让tabs占满整个屏幕宽度 */
        margin-right: calc(-50vw + 50%);
    }

    .post-tabs a {
        padding: 12px 20px; /* 增加左右padding补偿容器padding的移除 */
        font-size: 15px;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: auto;
    }

    /* 移动端节点tab样式 */
    .post-tabs a.node-tab {
        padding: 12px 16px; /* 节点tab稍微小一点 */
        font-size: 14px;
        flex-shrink: 0;
    }

    /* 帖子项布局调整 */
    .post-item {
        padding: 15px;
        gap: 8px;
        background: #fff;
        margin-bottom: 1px;
    }

    /* 用户头像移动端尺寸 */
    .user-avatar {
        width: 40px;
        height: 40px;
    }

    /* 用户网格调整 */
    .user-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* 码桶网格调整 */
    .repo-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* 隐藏侧边栏 */
    .sidebar {
        display: none;
    }

    .actions {
        gap: 6px;
        padding-left: 0px;
    }

    .action-box {
        min-width: 42px;
        height: 42px;
    }

    .action-box i {
        font-size: 14px;
    }

    .action-box.upvote i {
        font-size: 16px;
    }

    .action-box span {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .post-meta {
        flex-wrap: wrap;
        gap: 4px;
        font-size: 10px;
    }

    .post-tabs {
        padding: 0; /* 完全移除padding */
    }

    .post-tabs a {
        padding: 12px 15px; /* 小屏幕适中的padding */
        font-size: 14px;
        flex-shrink: 0;
        min-width: auto;
    }

    /* 小屏幕节点tab样式 */
    .post-tabs a.node-tab {
        padding: 12px 12px; /* 节点tab在小屏幕上更紧凑 */
        font-size: 13px;
        flex-shrink: 0;
    }

    .user-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .repo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* ===================== 响应式设计 结束 ===================== */

/* 热门节点标签样式 */
.hot-nodes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.node-tag {
    display: inline-block;
    padding: 4px 8px;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.node-tag:hover {
    opacity: 0.8;
    color: white;
    text-decoration: none;
}

/* 全部节点标签样式 */
.all-nodes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.6;
}

/* 内容区节点卡片中的节点标签 - 统一朴素灰色 */
.content-nodes-card .node-tag {
    display: inline-block;
    padding: 4px 8px;  /* 恢复与右侧栏一致的尺寸 */
    background: #f8f9fa !important;  /* 统一朴素灰色背景，覆盖内联样式 */
    color: #8590a6 !important;  /* 统一朴素灰色文字，覆盖内联样式 */
    border-radius: 4px;  /* 恢复与右侧栏一致的圆角 */
    font-size: 12px;  /* 恢复与右侧栏一致的字号 */
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.content-nodes-card .node-tag:hover {
    background: #f0f0f0 !important;
    color: #666 !important;
    text-decoration: none;
}

/* 内容区节点卡片中的分类标签 - 更朴素更小 */
.content-nodes-card .category-tag {
    display: inline-block;
    padding: 3px 6px;  /* 比节点标签稍小 */
    background-color: #e9ecef !important;  /* 更淡的灰色背景，覆盖内联样式 */
    color: #6c757d !important;  /* 更淡的灰色文字，覆盖内联样式 */
    border-radius: 2px;  /* 更小的圆角 */
    font-size: 12px;  /* 更小的字号 */
    font-weight: 600;
    margin-right: 6px;  /* 稍微增加与节点标签的间距 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .all-nodes {
        gap: 6px;
    }
    
    .content-nodes-card .node-tag {
        padding: 3px 6px;  /* 移动端稍微减小 */
        font-size: 12px;   /* 移动端稍微减小 */
    }
    
    .content-nodes-card .category-tag,
    .post-meta .category-tag {
        padding: 3px 6px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .all-nodes {
        gap: 4px;
    }
    
    .content-nodes-card .node-tag {
        padding: 2px 5px;  /* 小屏幕进一步减小 */
        font-size: 12px;   /* 小屏幕进一步减小 */
    }
    
    .content-nodes-card .category-tag,
    .post-meta .category-tag {
        font-size: 11px;
    }
}

/* ===================== 分页样式 开始 ===================== */
.pagination-container {
    margin-top: 16px;
    padding: 12px 20px; /* 和帖子列表的左边距保持一致 */
    background: transparent;
    display: flex;
    justify-content: flex-start; /* 左对齐 */
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 左对齐 */
    gap: 2px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    border-radius: 3px;
    color: #8590a6;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
}

.pagination-btn.disabled {
    color: #ccc !important;
    pointer-events: none;
    cursor: not-allowed;
}

.pagination-btn.disabled:hover {
    background: transparent !important;
    color: #ccc !important;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 2px;
}

.pagination-page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    border-radius: 3px;
    color: #8590a6;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
}

.pagination-page:hover {
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
}

.pagination-page.active {
    background: #e8e8e8;
    color: #333;
}

.pagination-page.active:hover {
    background: #e0e0e0;
    color: #333;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #ccc;
    font-size: 12px;
}



/* 移动端分页样式 */
@media (max-width: 768px) {
    .pagination-container {
        padding: 8px 16px; /* 移动端和帖子列表保持一致 */
        margin-top: 12px;
    }
    
    .pagination {
        gap: 1px;
    }
    
    .pagination-btn {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    
    .pagination-page {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    
    .pagination-ellipsis {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .pagination-container {
        padding: 6px 12px; /* 小屏幕和帖子列表保持一致 */
    }
    
    .pagination-btn {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .pagination-page {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .pagination-ellipsis {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}
/* ===================== 分页样式 结束 ===================== */

/* ===================== 赞助商和友情链接样式 开始 ===================== */
/* 置顶图标样式 */
.pin-icon {
    font-size: 14px;
    margin-right: 6px;
    vertical-align: middle;
}

.pin-icon.homepage-pin {
    color: #dc3545;
    animation: pinPulse 2s ease-in-out infinite;
}

.pin-icon.node-pin {
    color: #fd7e14;
    animation: pinPulse 2s ease-in-out infinite;
}

@keyframes pinPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* 置顶帖子链接悬停效果 */
.post-content h2 a:hover .pin-icon {
    transform: rotate(15deg) scale(1.2);
    transition: all 0.2s ease;
}

/* 友情链接样式 - 简洁标签风格 */
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.friend-link-item {
    display: inline-block;
    padding: 6px 10px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 5%;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
    white-space: nowrap;
    line-height: 1.2;
}

.friend-link-item:hover {
    background: #e9ecef;
    color: #007bff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.friend-link-item:active {
    transform: scale(0.96);
}

/* 移动端底部模块样式 */
.mobile-sidebar-bottom {
    display: none;
}

.mobile-section {
    background: white;
    padding: 15px;
    margin-top: 10px;
    border-radius: 0; /* 移除圆角，铺满屏幕 */
    box-shadow: none; /* 移除阴影 */
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.mobile-section:first-child {
    margin-top: 10px;
}

.mobile-section:last-child {
    margin-bottom: 20px; /* 底部间距 */
}

.mobile-section h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

/* 移动端赞助商网格 - 4个一行 */
.sponsor-grid-mobile {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.sponsor-item-mobile {
    display: block;
    text-decoration: none;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    aspect-ratio: 16/9;
    position: relative;
}

.sponsor-item-mobile:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-color: #007bff;
}

.sponsor-item-mobile:active {
    transform: scale(0.96);
}

.sponsor-logo-mobile {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: white;
    padding: 6px;
    box-sizing: border-box;
}

/* 移动端友情链接 - 参考节点tag字号 */
.friend-links-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.friend-link-item-mobile {
    display: inline-block;
    padding: 4px 8px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 5%;
    font-size: 12px; /* 与节点tag一致的字号 */
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
    white-space: nowrap;
    line-height: 1.2;
}

.friend-link-item-mobile:hover {
    background: #e9ecef;
    color: #007bff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.friend-link-item-mobile:active {
    transform: scale(0.96);
}

/* 移动端显示控制 */
@media (max-width: 768px) {
    .mobile-sidebar-bottom {
        display: block;
    }
    
    /* 移动端进一步优化字号 */
    .friend-link-item-mobile {
        font-size: 11px;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .mobile-section h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    /* 小屏幕友情链接字号进一步优化 */
    .friend-link-item-mobile {
        font-size: 11px;
        padding: 3px 6px;
    }
}


/* 社区规则链接样式 */
.sidebar-box ul li a {
    color: #666;
    text-decoration: none;
    display: block;
    padding: 5px;
    transition: color 0.2s ease;
}

.sidebar-box ul li a:hover {
    color: #007bff;
    text-decoration: none;
}
/* ===================== 赞助商和友情链接样式 结束 ===================== */
