diff --git a/novel-front/src/main/resources/templates/mobile/index.html b/novel-front/src/main/resources/templates/mobile/index.html index 78ab6a3..2c6f977 100644 --- a/novel-front/src/main/resources/templates/mobile/index.html +++ b/novel-front/src/main/resources/templates/mobile/index.html @@ -40,17 +40,60 @@ -webkit-transition: all .3s; } - .user_link { - vertical-align: middle; - line-height: 40px; - float: right; - color: #3eaf7c; - padding: 11px 12px 0; + /* 顶部 Logo:等比缩放不溢出 */ + .site-header { + padding: 10px 12px 0; } - .user_link a { + .site-logo { + max-height: 40px; + max-width: 140px; + } - color: #3eaf7c; + /* 搜索条:胶囊输入框 + 主题色等高按钮 */ + .search-bar { + display: -webkit-flex; + display: flex; + padding: 10px 12px 12px; + } + + .search-bar input { + -webkit-flex: 1; + flex: 1; + height: 40px; + line-height: 40px; + border: 1px solid #e2ece7; + border-radius: 20px; + background: #fff; + padding: 0 15px; + font-size: 14px; + color: #333; + outline: none; + min-width: 0; + } + + .search-bar input::-webkit-input-placeholder { + color: #b8c4bf; + } + + .search-bar button { + width: 66px; + height: 40px; + margin-left: 8px; + border: none; + border-radius: 20px; + background: #3eaf7c; + color: #fff; + font-size: 14px; + } + + /* 快捷入口卡片:白底圆角浅投影 */ + .quick-entry-card { + background: #fff; + margin: 0 12px 12px; + border-radius: 10px; + padding: 14px 6px 10px; + box-shadow: 0 2px 8px rgba(62, 175, 124, .10); } .container { @@ -91,33 +134,68 @@ white-space: pre-wrap; } - /* 书单广场入口条 */ - .bl-entry { + /* 快捷入口:上图标下文字,包裹在卡片内 */ + .quick-entry { + display: flex; + } + + .quick-entry .qe-item { + flex: 1; display: block; - background-color: #fff; - border: 1px solid rgba(62, 175, 124, 0.35); - border-radius: 6px; - padding: 12px 15px; - color: #000; - font-size: 15px; + text-align: center; + color: #5c6b64; } - .bl-entry .layui-icon { - font-size: 20px; - color: #3eaf7c; - vertical-align: middle; - margin-right: 6px; + .quick-entry .qe-icon { + display: flex; + align-items: center; + justify-content: center; + width: 52px; + height: 52px; + margin: 0 auto 6px auto; + border-radius: 50%; + box-shadow: 0 4px 10px rgba(0, 0, 0, .10); } - .bl-entry .bl-entry-sub { - color: #999; - font-size: 12px; - margin-left: 8px; + .quick-entry .qe-icon svg { + width: 26px; + height: 26px; } - .bl-entry .bl-entry-go { - float: right; - color: #3eaf7c; + .quick-entry .qe-icon-lib { + background: linear-gradient(135deg, #3eaf7c, #6cc798); + } + + .quick-entry .qe-icon-list { + background: linear-gradient(135deg, #ff9e57, #ffc184); + } + + .quick-entry .qe-icon-user { + background: linear-gradient(135deg, #5aa4f4, #8cc3ff); + } + + .quick-entry .qe-icon-rank { + background: linear-gradient(135deg, #ff6b81, #ff9d94); + } + + /* 文字颜色随各自图标主色加深 */ + .quick-entry .qe-item:nth-child(1) .qe-text { + color: #2e8b62; + } + + .quick-entry .qe-item:nth-child(2) .qe-text { + color: #d97b3f; + } + + .quick-entry .qe-item:nth-child(3) .qe-text { + color: #e05c6e; + } + + .quick-entry .qe-item:nth-child(4) .qe-text { + color: #4a86cc; + } + + .quick-entry .qe-text { font-size: 13px; } @@ -130,51 +208,58 @@ -