diff --git a/ry-vue3/src/views/portal/Publicity.vue b/ry-vue3/src/views/portal/Publicity.vue index 47116aa..3b09844 100644 --- a/ry-vue3/src/views/portal/Publicity.vue +++ b/ry-vue3/src/views/portal/Publicity.vue @@ -694,4 +694,62 @@ main.container { margin-left: 12px; } + + +/* ======================================== + 移动端适配 (≤768px) — 不影响桌面 + - 取消 body 1354px 最小宽度 + - 顶栏 72→56px, padding 60→12 + - nav-list 横向滚动 + - 内容区单列 + - 列表卡片化 + ======================================== */ +@media (max-width: 768px) { + body { min-width: 0 !important; } + + /* 顶栏紧凑 */ + .top-nav { + height: 56px !important; + padding: 0 12px !important; + } + .logo-icon { width: 30px !important; height: 30px !important; } + .logo-title { font-size: 14px !important; } + .logo-subtitle { font-size: 10px !important; } + + /* nav-list 横向滚动 (避免 2 项就溢出) */ + .nav-list { + gap: 16px !important; + margin-left: 12px !important; + flex: 1 !important; + overflow-x: auto; + -webkit-overflow-scrolling: touch; + } + .nav-item { height: 56px !important; } + .nav-link { font-size: 13px !important; white-space: nowrap; } + + /* 顶部工具区 */ + .top-tools { font-size: 13px !important; } + .top-tools .login-btn, + .top-tools .user-link { font-size: 13px !important; padding: 4px 8px !important; } + + /* 页面容器 padding 收窄 */ + .container { padding: 16px 12px !important; } + .page-header { margin-bottom: 16px !important; } + .section-title { font-size: 18px !important; } + .section-subtitle { font-size: 13px !important; } + + /* 筛选条单列 */ + .filter-bar { flex-direction: column !important; gap: 8px !important; } + .filter-input { width: 100% !important; font-size: 14px !important; } + .filter-select-wrap { width: 100% !important; } + .filter-select { width: 100% !important; } + + /* 列表项卡片化 */ + .list-card { padding: 12px !important; } + .list-card-title { font-size: 15px !important; } + .list-card-meta { font-size: 12px !important; gap: 8px !important; flex-wrap: wrap; } + + /* 弹窗全屏 */ + .pub-detail-dialog { width: 100vw !important; max-width: 100vw !important; } +}