- mobile-web/:独立的 Vue3 + TS + WeUI 手机网页(开发端口 7303、预览 7304, /api 反代到后端 7300);node_modules/、dist/ 由根 .gitignore 统一覆盖 - tools/scan-web-viewer.ps1:扫局域网 80 端口并按网页标题匹配设备的排查脚本 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
569 lines
8.7 KiB
CSS
569 lines
8.7 KiB
CSS
:root {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
|
|
"Microsoft YaHei", sans-serif;
|
|
color: #17233b;
|
|
background: #f5f7fb;
|
|
font-synthesis: none;
|
|
text-rendering: optimizeLegibility;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
font-weight: 400;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body,
|
|
#app {
|
|
width: 100%;
|
|
min-width: 0;
|
|
min-height: 100%;
|
|
margin: 0;
|
|
}
|
|
|
|
body {
|
|
min-height: 100vh;
|
|
min-height: 100dvh;
|
|
overflow-x: hidden;
|
|
background: #f5f7fb;
|
|
}
|
|
|
|
button,
|
|
input {
|
|
font: inherit;
|
|
}
|
|
|
|
button,
|
|
a {
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.page-shell,
|
|
.app-page {
|
|
width: 100%;
|
|
max-width: 480px;
|
|
min-height: 100vh;
|
|
min-height: 100dvh;
|
|
margin: 0 auto;
|
|
overflow-x: clip;
|
|
background: #f5f7fb;
|
|
}
|
|
|
|
.login-page {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
padding: 48px 24px max(32px, env(safe-area-inset-bottom));
|
|
background:
|
|
radial-gradient(ellipse at 95% 4%, rgb(91 128 255 / 13%), transparent 42%),
|
|
#f5f7fb;
|
|
}
|
|
|
|
.login-brand {
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.brand-mark {
|
|
display: grid;
|
|
width: 54px;
|
|
height: 54px;
|
|
place-items: center;
|
|
border-radius: 18px;
|
|
background: linear-gradient(140deg, #6e8eff, #4162e8);
|
|
box-shadow: 0 12px 24px rgb(65 98 232 / 25%);
|
|
color: #fff;
|
|
font-size: 28px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.eyebrow {
|
|
margin: 0 0 10px;
|
|
color: #8490a8;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.18em;
|
|
}
|
|
|
|
.login-brand .eyebrow {
|
|
margin-top: 24px;
|
|
}
|
|
|
|
.login-brand h1,
|
|
.home-header h1,
|
|
.page-title h1 {
|
|
margin: 0;
|
|
color: #182440;
|
|
font-size: 27px;
|
|
font-weight: 750;
|
|
letter-spacing: -0.04em;
|
|
}
|
|
|
|
.muted {
|
|
margin: 9px 0 0;
|
|
color: #8993a8;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.login-card {
|
|
padding: 8px 18px 20px;
|
|
border: 1px solid #edf0f7;
|
|
border-radius: 20px;
|
|
background: #fff;
|
|
box-shadow: 0 14px 40px rgb(36 57 112 / 6%);
|
|
}
|
|
|
|
.login-fields {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.login-fields::before,
|
|
.login-fields::after,
|
|
.login-fields .weui-cell::before {
|
|
border-color: #edf0f5;
|
|
}
|
|
|
|
.login-fields .weui-cell {
|
|
min-height: 58px;
|
|
padding: 10px 0;
|
|
}
|
|
|
|
.login-fields .weui-label {
|
|
width: 52px;
|
|
color: #424e67;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.login-fields .weui-input {
|
|
min-width: 0;
|
|
color: #17233b;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.login-fields .weui-input::placeholder {
|
|
color: #b0b7c5;
|
|
}
|
|
|
|
.form-error {
|
|
margin: 12px 0 0;
|
|
color: #d94b4b;
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.login-button {
|
|
height: 48px;
|
|
margin-top: 24px;
|
|
border-radius: 12px;
|
|
background: #4d6ff0;
|
|
font-size: 15px;
|
|
font-weight: 650;
|
|
line-height: 48px;
|
|
}
|
|
|
|
.login-button:not(.weui-btn_disabled):active {
|
|
background: #3e5fdd;
|
|
}
|
|
|
|
.login-footnote {
|
|
margin: 22px 0 0;
|
|
color: #a0a9ba;
|
|
font-size: 12px;
|
|
text-align: center;
|
|
}
|
|
|
|
.app-page {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.page-content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
padding: max(28px, env(safe-area-inset-top)) 20px 24px;
|
|
}
|
|
|
|
.home-content {
|
|
padding-top: max(38px, env(safe-area-inset-top));
|
|
}
|
|
|
|
.home-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin-bottom: 27px;
|
|
}
|
|
|
|
.home-header h1 {
|
|
font-size: 23px;
|
|
}
|
|
|
|
.home-header .muted {
|
|
font-size: 13px;
|
|
}
|
|
|
|
.avatar-badge,
|
|
.profile-avatar {
|
|
display: grid;
|
|
flex: 0 0 auto;
|
|
place-items: center;
|
|
border-radius: 50%;
|
|
background: #e8edff;
|
|
color: #4e6be1;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.avatar-badge {
|
|
width: 48px;
|
|
height: 48px;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.welcome-card {
|
|
position: relative;
|
|
display: flex;
|
|
min-height: 172px;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
overflow: hidden;
|
|
padding: 24px 20px;
|
|
border-radius: 22px;
|
|
background: linear-gradient(120deg, #4968e9, #6687f6);
|
|
box-shadow: 0 16px 30px rgb(77 111 240 / 21%);
|
|
color: #fff;
|
|
}
|
|
|
|
.welcome-copy {
|
|
position: relative;
|
|
z-index: 1;
|
|
max-width: 70%;
|
|
}
|
|
|
|
.welcome-tag {
|
|
display: inline-block;
|
|
padding: 5px 9px;
|
|
border: 1px solid rgb(255 255 255 / 34%);
|
|
border-radius: 20px;
|
|
background: rgb(255 255 255 / 13%);
|
|
font-size: 10px;
|
|
}
|
|
|
|
.welcome-copy h2 {
|
|
margin: 15px 0 6px;
|
|
font-size: 21px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.welcome-copy p {
|
|
margin: 0;
|
|
color: rgb(255 255 255 / 78%);
|
|
font-size: 12px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.welcome-orbit {
|
|
position: absolute;
|
|
top: 50%;
|
|
right: -17px;
|
|
display: grid;
|
|
width: 132px;
|
|
height: 132px;
|
|
place-items: center;
|
|
transform: translateY(-50%);
|
|
border: 1px solid rgb(255 255 255 / 21%);
|
|
border-radius: 50%;
|
|
background: rgb(255 255 255 / 9%);
|
|
}
|
|
|
|
.welcome-orbit::before {
|
|
position: absolute;
|
|
width: 92px;
|
|
height: 92px;
|
|
border: 1px solid rgb(255 255 255 / 25%);
|
|
border-radius: 50%;
|
|
content: "";
|
|
}
|
|
|
|
.welcome-orbit span {
|
|
color: rgb(255 255 255 / 48%);
|
|
font-size: 42px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.section-block {
|
|
margin-top: 31px;
|
|
}
|
|
|
|
.section-heading {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.section-heading h2 {
|
|
margin: 0;
|
|
font-size: 17px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.section-heading span {
|
|
color: #a6afbf;
|
|
font-size: 9px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.12em;
|
|
}
|
|
|
|
.quick-card {
|
|
display: flex;
|
|
min-height: 78px;
|
|
align-items: center;
|
|
gap: 13px;
|
|
padding: 13px 15px;
|
|
border: 1px solid #edf0f7;
|
|
border-radius: 16px;
|
|
background: #fff;
|
|
}
|
|
|
|
.quick-icon {
|
|
display: grid;
|
|
width: 44px;
|
|
height: 44px;
|
|
flex: 0 0 auto;
|
|
place-items: center;
|
|
border-radius: 14px;
|
|
background: #edf1ff;
|
|
color: #5472ec;
|
|
}
|
|
|
|
.quick-icon svg,
|
|
.nav-item svg {
|
|
width: 22px;
|
|
height: 22px;
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
stroke-width: 1.8;
|
|
}
|
|
|
|
.quick-copy {
|
|
display: flex;
|
|
min-width: 0;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
}
|
|
|
|
.quick-copy strong {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.quick-copy small {
|
|
color: #929caf;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.chevron,
|
|
.profile-arrow {
|
|
color: #aeb6c5;
|
|
font-size: 24px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.tip-card {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-top: 16px;
|
|
padding: 15px;
|
|
border-radius: 15px;
|
|
background: #edf2ff;
|
|
}
|
|
|
|
.tip-dot {
|
|
width: 7px;
|
|
height: 7px;
|
|
flex: 0 0 auto;
|
|
margin-top: 5px;
|
|
border-radius: 50%;
|
|
background: #6482f1;
|
|
}
|
|
|
|
.tip-card strong {
|
|
color: #435dba;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.tip-card p {
|
|
margin: 5px 0 0;
|
|
color: #7180ad;
|
|
font-size: 11px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.page-title {
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.page-title h1 {
|
|
font-size: 25px;
|
|
}
|
|
|
|
.profile-card {
|
|
display: flex;
|
|
min-width: 0;
|
|
align-items: center;
|
|
gap: 14px;
|
|
padding: 21px 17px;
|
|
border-radius: 19px;
|
|
background: linear-gradient(120deg, #4968e9, #6687f6);
|
|
box-shadow: 0 14px 28px rgb(77 111 240 / 18%);
|
|
color: #fff;
|
|
}
|
|
|
|
.profile-avatar {
|
|
width: 54px;
|
|
height: 54px;
|
|
border: 2px solid rgb(255 255 255 / 64%);
|
|
background: rgb(255 255 255 / 20%);
|
|
color: #fff;
|
|
font-size: 22px;
|
|
}
|
|
|
|
.profile-identity {
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.profile-identity h2 {
|
|
overflow: hidden;
|
|
margin: 0;
|
|
font-size: 17px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.profile-identity p {
|
|
margin: 6px 0 0;
|
|
color: rgb(255 255 255 / 77%);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.profile-arrow {
|
|
color: rgb(255 255 255 / 68%);
|
|
}
|
|
|
|
.profile-details {
|
|
margin-top: 17px;
|
|
padding: 4px 16px;
|
|
border: 1px solid #edf0f7;
|
|
border-radius: 17px;
|
|
background: #fff;
|
|
}
|
|
|
|
.detail-row {
|
|
display: flex;
|
|
min-width: 0;
|
|
min-height: 52px;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
border-bottom: 1px solid #f0f2f7;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.detail-row:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.detail-row span {
|
|
flex: 0 0 auto;
|
|
color: #858fa3;
|
|
}
|
|
|
|
.detail-row strong {
|
|
overflow: hidden;
|
|
color: #27344d;
|
|
font-size: 12px;
|
|
font-weight: 550;
|
|
text-align: right;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.logout-button {
|
|
height: 47px;
|
|
margin-top: 25px;
|
|
border: 1px solid #e8ebf2;
|
|
border-radius: 12px;
|
|
background: #fff;
|
|
color: #d64e58;
|
|
font-size: 14px;
|
|
line-height: 45px;
|
|
}
|
|
|
|
.logout-button:not(.weui-btn_disabled):active {
|
|
background: #fff7f7;
|
|
color: #bf3d47;
|
|
}
|
|
|
|
.bottom-nav {
|
|
position: sticky;
|
|
z-index: 5;
|
|
bottom: 0;
|
|
display: flex;
|
|
width: 100%;
|
|
min-height: 62px;
|
|
justify-content: space-around;
|
|
padding: 8px 24px max(8px, env(safe-area-inset-bottom));
|
|
border-top: 1px solid #edf0f5;
|
|
background: rgb(255 255 255 / 96%);
|
|
backdrop-filter: blur(12px);
|
|
}
|
|
|
|
.nav-item {
|
|
display: flex;
|
|
min-width: 76px;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 3px;
|
|
color: #9ba4b5;
|
|
font-size: 10px;
|
|
}
|
|
|
|
.nav-item.active {
|
|
color: #4d6ff0;
|
|
}
|
|
|
|
.nav-item svg {
|
|
width: 21px;
|
|
height: 21px;
|
|
}
|
|
|
|
@media (max-width: 360px) {
|
|
.login-page {
|
|
padding-right: 18px;
|
|
padding-left: 18px;
|
|
}
|
|
|
|
.page-content {
|
|
padding-right: 16px;
|
|
padding-left: 16px;
|
|
}
|
|
|
|
.welcome-copy {
|
|
max-width: 76%;
|
|
}
|
|
|
|
.welcome-orbit {
|
|
right: -40px;
|
|
}
|
|
}
|