Files

274 lines
13 KiB
CSS

/* ═══════════════════════════════════════════════════════════
皮纹采集系统 · Apple 风格设计系统(一屏紧凑版 · 1280×720 适配)
═══════════════════════════════════════════════════════════ */
:root {
--bg: #f5f5f7;
--surface: #ffffff;
--surface-2: #fbfbfd;
--text: #1d1d1f;
--text-2: #86868b;
--hairline: rgba(0, 0, 0, .09);
--blue: #0071e3;
--blue-hover: #0077ed;
--green: #34c759;
--red: #ff3b30;
--orange: #ff9500;
--radius-lg: 18px;
--radius-md: 14px;
--radius-pill: 980px;
--shadow-card: 0 2px 8px rgba(0, 0, 0, .03), 0 10px 26px rgba(0, 0, 0, .04);
--font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
"PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
font-family: var(--font);
background: var(--bg);
color: var(--text);
font-size: 14px;
line-height: 1.45;
-webkit-font-smoothing: antialiased;
}
button, input { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
input:focus { outline: none; }
.hidden { display: none !important; }
/* ── 通用按钮(苹果胶囊,紧凑) ───────────────────────── */
.btn {
display: inline-flex; align-items: center; justify-content: center;
padding: 8px 16px; border-radius: var(--radius-pill);
font-size: 13.5px; font-weight: 500; letter-spacing: .01em;
transition: background .18s ease, transform .12s ease, opacity .18s ease;
user-select: none; white-space: nowrap;
}
.btn:active { transform: scale(.975); }
.btn:disabled { opacity: .35; cursor: default; transform: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--blue-hover); }
.btn-secondary {
background: var(--surface); color: var(--text);
border: 1px solid var(--hairline); box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.btn-secondary:hover:not(:disabled) { background: #f2f2f4; }
.btn-ghost { color: var(--blue); padding: 6px 12px; }
.btn-ghost:hover { opacity: .75; }
.btn-text { color: var(--blue); font-size: 13px; padding: 6px 10px; }
.btn-text:hover { opacity: .75; }
.btn-sm { padding: 5px 12px; font-size: 12.5px; }
.btn-block { width: 100%; }
.logo-dot {
width: 12px; height: 12px; border-radius: 50%;
background: conic-gradient(from 210deg, #0071e3, #8e8e93 40%, #1d1d1f 70%, #0071e3);
display: inline-block; margin-right: 8px; flex: none;
}
/* ═══════════════ 登录页 ═══════════════ */
.login-page { display: grid; place-items: center; min-height: 100vh; padding: 24px; overflow: auto; }
.login-wrap {
display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px;
align-items: center; max-width: 860px; width: 100%;
animation: rise .6s cubic-bezier(.28,.8,.3,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; } }
.login-hero h1 { font-size: 40px; font-weight: 700; letter-spacing: -.02em; line-height: 1.12; margin-bottom: 16px; }
.login-hero .logo-dot { width: 18px; height: 18px; margin: 0 0 20px; display: block; }
.login-hero p { color: var(--text-2); font-size: 19px; line-height: 1.45; letter-spacing: -.01em; }
.login-card {
background: var(--surface); border: 1px solid var(--hairline);
border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
padding: 30px 28px 22px; display: flex; flex-direction: column; gap: 15px;
}
.field label {
display: block; font-size: 12px; font-weight: 600; color: var(--text-2);
margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em;
}
.field input {
width: 100%; padding: 11px 14px; font-size: 15px;
background: var(--surface-2); border: 1px solid var(--hairline);
border-radius: 11px; transition: border .15s ease, box-shadow .15s ease;
}
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3.5px rgba(0,113,227,.14); background: #fff; }
.form-msg { min-height: 17px; font-size: 12.5px; color: var(--red); text-align: center; }
.footnote { font-size: 12px; color: var(--text-2); text-align: center; }
@media (max-width: 800px) {
.login-wrap { grid-template-columns: 1fr; gap: 32px; max-width: 400px; }
.login-hero h1 { font-size: 30px; }
.login-hero p { font-size: 16px; }
}
/* ═══════════════ 顶部导航(毛玻璃) ═══════════════ */
.nav {
position: sticky; top: 0; z-index: 50;
background: rgba(255, 255, 255, .72);
-webkit-backdrop-filter: saturate(180%) blur(20px);
backdrop-filter: saturate(180%) blur(20px);
border-bottom: 1px solid var(--hairline);
}
.nav-inner { max-width: 1560px; margin: 0 auto; padding: 0 16px; height: 46px; display: flex; align-items: center; gap: 18px; }
.brand { font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--text); text-decoration: none; display: flex; align-items: center; }
.nav-status { flex: 1; font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.nav-status:not(:empty)::before {
content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none;
background: var(--green); box-shadow: 0 0 0 3px rgba(52,199,89,.18);
animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(52,199,89,0); } }
.nav-right { display: flex; align-items: center; gap: 8px; }
.user-chip { font-size: 12px; color: var(--text-2); padding: 4px 11px; background: rgba(0,0,0,.045); border-radius: var(--radius-pill); white-space: nowrap; }
/* ═══════════════ 工作台(一屏三栏) ═══════════════ */
.workbench {
height: calc(100vh - 46px);
max-width: 1560px; margin: 0 auto; padding: 12px 16px 14px;
display: grid; gap: 14px;
grid-template-columns: 264px minmax(0, 1fr) 268px;
animation: rise .5s cubic-bezier(.28,.8,.3,1) both;
}
.panel {
background: var(--surface); border: 1px solid var(--hairline);
border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
padding: 14px; display: flex; flex-direction: column; gap: 10px;
min-height: 0; min-width: 0; overflow: hidden;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.panel-title { font-size: 16px; font-weight: 700; letter-spacing: -.015em; white-space: nowrap; }
.panel-title::after { content: none; }
/* 订单区 */
.search-row { display: grid; gap: 7px; }
.search-row input {
width: 100%; padding: 8px 12px; font-size: 13px;
background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 10px;
transition: border .15s ease, box-shadow .15s ease;
}
.search-row input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,113,227,.13); background: #fff; }
.list { list-style: none; overflow-y: auto; display: flex; flex-direction: column; min-height: 0; flex: 1; }
#orderList li { flex: none; }
.list li {
padding: 9px 11px; border-radius: 11px; font-size: 13px;
cursor: pointer; transition: background .14s ease; border: 1px solid transparent;
}
.list li + li { margin-top: 3px; }
.list li:hover { background: rgba(0,0,0,.035); }
.list li.active { background: rgba(0,113,227,.07); border-color: rgba(0,113,227,.22); }
.list li small { display: block; color: var(--text-2); font-size: 11.5px; margin-top: 1px; }
.userinfo {
font-size: 12.5px; line-height: 1.5; flex: none;
background: var(--surface-2); border: 1px solid var(--hairline);
border-radius: 11px; padding: 9px 11px;
}
.userinfo small { color: var(--text-2); }
/* ── 设备状态条 ── */
.device-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
.chip {
font-size: 11.5px; color: var(--text-2); padding: 3px 10px;
background: var(--surface-2); border: 1px solid var(--hairline);
border-radius: var(--radius-pill); transition: all .2s ease; white-space: nowrap;
}
.chip-state.on { color: var(--green); border-color: rgba(52,199,89,.35); background: rgba(52,199,89,.08); }
.chip-finger.on { color: var(--blue); border-color: rgba(0,113,227,.35); background: rgba(0,113,227,.07); }
/* ── 采集区 ── */
.video-wrap {
position: relative; flex: 1; min-height: 0; width: 100%;
background: #000; border-radius: var(--radius-md); overflow: hidden;
box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.video-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.video-badge {
position: absolute; left: 10px; top: 10px;
font-size: 11px; color: rgba(255,255,255,.85); letter-spacing: .03em;
background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
padding: 3px 10px; border-radius: var(--radius-pill); pointer-events: none;
transition: opacity .3s ease;
}
.video-wrap.live .video-badge { background: rgba(52,199,89,.32); }
/* ── 采集引导(横排紧凑) ── */
.guide {
flex: none; display: flex; align-items: center; gap: 14px;
padding: 10px 14px;
background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--radius-md);
}
.guide-left { flex: none; min-width: 96px; }
.guide-finger { font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.guide-sub { font-size: 11px; color: var(--text-2); margin-top: 2px; }
.qbars { display: grid; gap: 6px; flex: 1; min-width: 0; }
.qbar { display: grid; grid-template-columns: 50px 1fr 30px; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-2); }
.qbar b { text-align: right; font-size: 11.5px; color: var(--text); font-variant-numeric: tabular-nums; }
.qbar .track { height: 5px; border-radius: 2.5px; background: rgba(120,120,128,.18); overflow: hidden; }
.qbar .track i { display: block; height: 100%; width: 0; border-radius: 2.5px; transition: width .3s ease, background .3s ease; }
.qbar .track i.bad { background: var(--red); }
.qbar .track i.mid { background: var(--orange); }
.qbar .track i.ok { background: var(--green); }
.stable-dots { flex: none; font-size: 12px; letter-spacing: 5px; color: rgba(0,113,227,.85); min-width: 46px; text-align: center; }
.capture-controls { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; flex: none; }
.switch-row {
display: inline-flex; align-items: center; gap: 7px;
font-size: 12.5px; color: var(--text-2); cursor: pointer; user-select: none; white-space: nowrap;
}
.switch-row:not(.switch-accent) { margin-left: auto; }
.switch { position: relative; display: inline-block; width: 38px; height: 23px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; cursor: pointer; z-index: 2; margin: 0; }
.switch i { position: absolute; inset: 0; border-radius: var(--radius-pill); background: rgba(120,120,128,.28); transition: background .2s ease; }
.switch i::after {
content: ""; position: absolute; left: 2px; top: 2px;
width: 19px; height: 19px; border-radius: 50%; background: #fff;
box-shadow: 0 2px 5px rgba(0,0,0,.22); transition: transform .2s cubic-bezier(.3,.9,.4,1.1);
}
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(15px); }
.switch-accent span:first-child { color: var(--blue); font-weight: 500; }
.switch-accent .switch input:checked + i { background: var(--blue); }
/* ── 十指区 ── */
.fingers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; flex: none; }
.fingers button {
padding: 7px 4px; font-size: 11.5px; border-radius: 10px;
background: var(--surface-2); border: 1px solid var(--hairline);
color: var(--text); transition: all .15s ease; line-height: 1.25; text-align: center;
}
.fingers button:hover { border-color: rgba(0,113,227,.4); color: var(--blue); }
.fingers button.active {
background: var(--blue); border-color: var(--blue); color: #fff;
box-shadow: 0 3px 10px rgba(0,113,227,.32);
}
.fingers button.done {
background: rgba(52,199,89,.1); border-color: rgba(52,199,89,.4);
color: var(--green); font-size: 14px; font-weight: 700;
}
.fingers button.current.active { animation: fingerPulse 1.6s ease-in-out infinite; }
@keyframes fingerPulse {
0%, 100% { box-shadow: 0 0 0 0 rgba(0,113,227,.35); }
50% { box-shadow: 0 0 0 6px rgba(0,113,227,0); }
}
.stage-list { flex: 1; min-height: 0; }
.stage-list li {
display: flex; align-items: center; border: 1px solid var(--hairline);
background: var(--surface-2); flex: none;
}
.stage-list li div { display: flex; flex-direction: column; min-width: 0; }
.stage-list li img { width: 38px; height: 38px; object-fit: contain; border-radius: 8px; background: #000; margin-right: 10px; flex: none; }
.stage-list li b { font-size: 12.5px; font-weight: 600; }
.stage-list li small { margin-top: 1px; color: var(--orange); font-size: 11px; }
/* 窄屏回退:允许滚动 */
@media (max-width: 1024px) {
html, body { overflow: auto; }
.workbench { height: auto; grid-template-columns: 1fr; }
.video-wrap { aspect-ratio: 1/1; position: relative; }
}
/* 滚动条 */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.16); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.26); }
::-webkit-scrollbar-track { background: transparent; }