position: absolute !important; top: auto !important; left: 50% !important; transform: translateX(-50%) !important; max-width: 380px !important; min-width: 320px !important; /* 固定最小宽度,手机端也不挤压 */ width: 90% !important; } /* 刷新后继续弹窗按钮样式 */ .btn-refresh-continue { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border: none; color: white !important; padding: 10px 30px; border-radius: 8px; font-size: 14px; font-weight: 500; transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); flex: 1; min-width: 120px; /* 按钮最小宽度,不挤压 */ white-space: nowrap; /* 按钮文字不换行 */ } .btn-refresh-continue:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4); } /* 七天显示按钮样式 */ .btn-seven-days { background: #f8f9fa; border: 1px solid #dee2e6; color: #4a5568 !important; padding: 10px 30px; border-radius: 8px; font-size: 14px; font-weight: 500; transition: all 0.3s ease; flex: 1; min-width: 120px; /* 按钮最小宽度,不挤压 */ white-space: nowrap; /* 按钮文字不换行 */ } .btn-seven-days:hover { background: #e9ecef; border-color: #ced4da; } /* 移动端适配 - 保留适配,不额外挤压 */ @media (max-width: 768px) { .user-agreement-modal .modal-dialog { margin: 0 !important; max-width: calc(100% - 2rem) !important; min-width: calc(100% - 2rem) !important; min-height: auto !important; } .user-agreement-modal .modal-body { padding: 0 !important; } .user-agreement-modal .modal-footer { padding: 15px 20px; gap: 10px; } .btn-refresh-continue, .btn-seven-days { padding: 8px 15px; font-size: 13px; min-width: 100px; } /* 移动端轮播图容器适配 - 同步放大 */ .carousel-container { height: 200px !important; width: 100% !important; } } /* ========== LOGO 放大样式 ========== */ /* PC端LOGO样式 */ .logo-2 { max-height: 50px !important; width: auto !important; max-width: 200px; height: unset; } /* 移动端LOGO容器样式优化 */ .mobile-logo .navbar-brand { width: 180px !important; } /* 移动端LOGO图片样式 */ .mobile-logo .logo-2 { max-height: 60px !important; } /* ========== LOGO样式结束 ========== */ /* ========== 最终修复:移动端侧边栏 统一背景+文字颜色 ========== */ /* 全局样式重置 - 消除冲突 */ * { box-sizing: border-box !important; margin: 0; padding: 0; } /* 侧边栏整体容器 - 变窄(280px)+ 禁止滑动 + 统一背景(浅灰色) */ .mobile-sidebar { position: fixed; top: 0; left: 0; height: 100vh !important; width: 100% !important; max-width: 280px !important; /* 修改1:菜单栏变窄,从350px改为280px */ z-index: 99999 !important; transform: translateX(-100%); transition: transform 0.3s ease-in-out; overflow: hidden !important; /* 修改2:禁止侧边栏滑动 */ background: #f5f7fa !important; /* 统一浅灰色背景 */ /* 新增:彻底禁用触摸滚动 */ touch-action: pan-y !important; -webkit-overflow-scrolling: touch !important; } .mobile-sidebar.active { transform: translateX(0); } /* 遮罩层 - 全屏覆盖 */ .sidebar-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); z-index: 99998 !important; display: none; } .sidebar-overlay.active { display: block; } /* 侧边栏内容容器 - 统一浅灰色背景 + 禁止滑动 */ .sidebar-content { height: 100vh !important; width: 100% !important; background: #f5f7fa !important; /* 浅灰色背景,删除蓝色渐变 */ color: #333 !important; /* 统一基础文字色(深灰,提升辨识度) */ border-right: 1px solid #e0e0e0; box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); position: relative; z-index: 1; overflow: hidden !important; /* 修改3:内容容器禁止滑动 */ /* 新增:彻底禁用滚动 */ overflow-y: hidden !important; overflow-x: hidden !important; touch-action: none !important; /* 禁用所有触摸动作 */ } /* 侧边栏头部 - 固定顶部+统一浅灰背景(删除底部边框线) */ .sidebar-header { padding: 15px 20px; border-bottom: none !important; /* 删除×号后面的水平线 */ display: flex; justify-content: flex-end; align-items: center; position: sticky; top: 0; background: #f5f7fa !important; /* 浅灰色背景 */ z-index: 10; } /* 新增:隐藏关闭按钮 */ .sidebar-close { display: none !important; } /* 用户信息容器 - 统一浅灰背景+文字 */ .user-info-container { padding: 20px 0 !important; border-bottom: 1px solid #e0e0e0; width: 100% !important; /* 修改4:修复宽度超出问题,从200%改回100% */ background: #f5f7fa !important; /* 浅灰色背景 */ /* 新增:禁止滚动 */ overflow: hidden !important; } /* 用户卡片样式 - 清除蓝色背景,统一浅灰 */ .user-info-container .card { background: transparent !important; /* 关键修改:移除卡片白色背景 */ border: none; margin: 0 !important; border-radius: 0 !important; position: relative; /* 作为背景绝对定位的参考 */ padding-top: 0 !important; /* 修改5:重置padding,让背景撑满 */ } /* ========== 重点修改:背景改为UID下方水平线至顶部的容器 ========== */ .user-info-container .user-page-background { /* 改为从顶部到UID下方水平线的容器 */ position: absolute; top: 0; /* 顶部紧贴容器 */ left: 0; right: 0; bottom: 0; /* 修改6:底部也紧贴容器,完全撑满 */ width: 100%; /* 宽度铺满容器 */ /* 替换为指定背景图片 */ background: url('/uploads/20260224/dd3dc53f4bf5215467362af5a9debf9e.jpg') no-repeat center center; background-size: cover; /* 确保背景图片完全覆盖容器 */ border-radius: 0; /* 取消圆角,适配长条容器 */ /* 保留原有光影效果 */ box-shadow: inset 0 0 30px rgba(0,0,0,0.2); z-index: 1; /* 背景在最下层 */ height: 100%; /* 修改7:高度100%,完全撑满 */ } /* ========== 重点修改结束 ========== */ /* 移除蓝色渐变动画 */ .user-info-container .user-page-background::after { display: none; } /* 用户头像和名称 - 统一文字颜色 */ .user-info-container .card-body { padding: 30px !important; /* 修改8:重置内边距 */ margin: 0 !important; background: transparent !important; /* 关键修改:移除卡片内容区白色背景 */ position: relative; z-index: 2; /* 确保内容在背景上方 */ } /* 调整头像位置,适配长条背景 */ .user-info-container .d-flex.justify-content-center { justify-content: center !important; margin-top: 50px !important; /* 修改9:调整头像位置 */ position: relative; /* 提高层级 */ z-index: 2; /* 确保头像在背景上方 */ } .user-info-container .avatar-5 { width: 70px; height: 70px; border: 3px solid #e0e0e0; box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); margin: 0 auto !important; position: relative; /* 确保层级 */ z-index: 3; /* 最高层级 */ background: transparent !important; /* 关键修改:移除头像本身的白色背景 */ } /* 名称和按钮容器 - 文字颜色统一 */ .name-info { margin: 0 !important; padding: 15px 0 !important; /* 修改10:调整内边距 */ text-align: center !important; width: 100% !important; color: #333 !important; /* 统一文字色(深灰) */ position: relative; /* 确保层级 */ z-index: 2; /* 在背景上方 */ } /* 新增:用户名称七彩炫光动态样式 - 移除虚影 */ .name-info .h4.font-weight-bold { background: linear-gradient(90deg, #ff0000, #ff9900, #33cc33, #3399ff, #9933ff, #ff33cc, #ff0000); background-size: 600% 100%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: rainbowGlow 1s linear infinite; text-shadow: none !important; /* 修改11:移除昵称炫彩虚影 */ } /* 七彩渐变动画 */ @keyframes rainbowGlow { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } } /* PC端用户名也应用七彩样式 - 移除虚影 */ .widget-user-header .font-weight-bold { background: linear-gradient(90deg, #ff0000, #ff9900, #33cc33, #3399ff, #9933ff, #ff33cc, #ff0000); background-size: 600% 100%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: rainbowGlow 1s linear infinite; text-shadow: none !important; /* 修改12:移除PC端昵称虚影 */ } /* 修改13:UID按钮改为黄色 */ .name-info .badge.jb-blue, .widget-user-header .badge.jb-blue { background: #ffc107 !important; /* 黄色背景 */ color: #000 !important; /* 黑色文字,提高对比度 */ border-color: #ffc107 !important; } .name-info .badge { background: #e0e0e0; color: #666 !important; /* 统一徽章文字色 */ border: 1px solid #ddd; padding: 5px 10px; margin: 0 auto !important; display: inline-block; position: relative; z-index: 2; } /* 未登录状态 - 头像背景统一透明 */ .user-info-container .avatar-5.border { background: transparent !important; /* 关键修改:未登录头像背景改为透明 */ border-color: #e0e0e0 !important; margin: 0 auto !important; color: #666 !important; } /* 登录注册按钮容器 - 统一间距+颜色(保留原有样式,不缩短) */ .name-info .d-flex.gap-2 { display: flex !important; gap: 15px !important; justify-content: center !important; align-items: center !important; width: 100% !important; margin: 10px 0 0 0 !important; } .user-info-container .btn-primary { background: #0ea5e9 !important; border-color: #0ea5e9 !important; box-shadow: 0 4px 10px rgba(14, 165, 233, 0.1); padding: 8px 20px !important; /* 登录按钮保留原长度 */ border-radius: 6px !important; font-size: 14px !important; color: #fff !important; /* 按钮文字白色 */ } .user-info-container .btn-outline-primary { border-color: #0ea5e9 !important; color: #0ea5e9 !important; /* 描边按钮文字蓝色 */ padding: 8px 20px !important; /* 注册按钮保留原长度 */ border-radius: 6px !important; font-size: 14px !important; } .user-info-container .btn-outline-primary:hover { background: rgba(14, 165, 233, 0.1) !important; color: #0ea5e9 !important; } /* 导航菜单容器 - 统一浅灰背景+文字 */ .main-nav-container { padding: 15px 0 !important; border-bottom: 1px solid #e0e0e0; width: 100% !important; background: #f5f7fa !important; /* 浅灰色背景 */ max-height: calc(100vh - 220px); /* 修改14:限制菜单高度 */ overflow: hidden !important; /* 修改15:菜单容器禁止滑动 */ /* 新增:彻底禁用滚动 */ overflow-y: hidden !important; overflow-x: hidden !important; touch-action: none !important; } .menu-list { list-style: none; padding: 0 !important; margin: 0 !important; width: 100% !important; } .menu-list li { border-bottom: 1px solid #e0e0e0; width: 100% !important; background: #f5f7fa !important; } /* 修改:移动端侧边栏菜单按钮加长 - 接近挤满两侧但不太过 */ .menu-list li a { display: block; padding: 12px 20px !important; /* 恢复原内边距,加长按钮 */ color: #000 !important; /* 统一改为黑色 */ text-decoration: none; transition: all 0.3s ease; cursor: pointer; width: 100% !important; /* 改为100%宽度,填满容器 */ margin: 0 !important; /* 取消居中,填满宽度 */ max-width: none !important; /* 取消最大宽度限制 */ text-align: left !important; /* 强制左对齐 */ } .menu-list li a:hover { background: #e9e9e9; color: #000 !important; /* hover后还是黑色 */ padding-left: 22px !important; /* hover时左侧内边距轻微增加 */ } .menu-list li a i { margin-right: 12px !important; /* 图标与文字间距适中 */ color: #000 !important; /* 图标统一黑色 */ } /* 板块信息容器 - 统一浅灰背景+文字 + 禁止滑动 */ .forum-info-container { padding: 15px 20px !important; width: 100% !important; margin: 0 !important; margin-bottom: 0 !important; /* 修改16:取消底部边距 */ background: #f5f7fa !important; /* 浅灰色背景 */ max-height: calc(100vh - 320px); /* 修改17:限制板块容器高度 */ overflow: hidden !important; /* 修改18:板块容器禁止滑动 */ /* 新增:彻底禁用滚动 */ overflow-y: hidden !important; overflow-x: hidden !important; touch-action: none !important; } .forum-item { display: flex; align-items: center; padding: 12px 15px !important; margin-bottom: 8px !important; background: #fff !important; /* 板块项背景白色,与浅灰形成分层 */ border-radius: 8px; border: 1px solid #e0e0e0; color: #333 !important; /* 板块文字统一深灰 */ text-decoration: none; transition: all 0.3s ease; cursor: pointer; width: 100% !important; } .forum-item:hover { background: #f0f0f0; border-color: #ddd; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); color: #333 !important; } .forum-logo { margin-right: 15px; } .forum-icon { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #e0e0e0; } .forum-name { font-size: 15px; font-weight: 500; color: inherit !important; /* 继承父级文字色 */ } /* 汉堡菜单按钮样式 - 确保可点击 + 提升层级 */ .mobile-menu-toggle { cursor: pointer; padding: 10px; z-index: 99999999 !important; /* 大幅提升层级,避免被覆盖 */ display: flex; flex-direction: column; justify-content: center; position: relative; /* 确保z-index生效 */ } .hamburger-line { display: block; width: 22px; height: 2px; background-color: #333; margin: 4px 0; transition: all 0.3s ease; } /* 移动端导航栏 - 修复高度 */ #mobile_nav { height: 60px; align-items: center; pad