实现拾见像素可爱风界面并记录真机验收

This commit is contained in:
2026-11-27 17:14:40 +08:00
parent c9a74443d8
commit d083c9488b
15 changed files with 1259 additions and 129 deletions
+121 -56
View File
@@ -8,25 +8,33 @@
<title>拾见 · 界面预览</title>
<style>
:root {
--ink: #172a24;
--muted: #4e6358;
--green: #076c53;
--screen: #f3f5f0;
--tint: #e5f0e8;
--line: #cbd7ce;
--alert: #863c15;
--danger: #9a342b;
--danger-tint: #f7e9e6;
--ink: #25354e;
--muted: #50627c;
--screen: #edf5ff;
--paper: #fff;
--line: #ccddf5;
--blue: #31588f;
--blue-tint: #e7f0ff;
--coral: #b64154;
--coral-pressed: #9d354b;
--coral-tint: #ffe8ec;
--green: #267252;
--grass-tint: #e9f7eb;
--launcher-art: url('../app/src/main/res/drawable-nodpi/launcher_artwork.jpg');
font: 16px/1.55 system-ui, "Microsoft YaHei", "PingFang SC", sans-serif;
color: var(--ink);
background: #e8ede6;
background: #f4f8ff;
}
* { box-sizing: border-box; }
body { margin: 0; }
body {
margin: 0;
background: radial-gradient(ellipse at 9% 0%, #e3eeff 0, transparent 480px),
radial-gradient(ellipse at 90% 0%, #ffedf1 0, transparent 430px);
}
a { color: inherit; }
a:focus-visible, [tabindex]:focus-visible {
outline: 2px solid var(--green);
outline: 2px solid var(--blue);
outline-offset: 3px;
}
@@ -50,6 +58,7 @@
height: 52px;
border-radius: 14px;
object-fit: cover;
box-shadow: 0 2px 0 #b8cee8, 0 6px 14px #31588f1c;
}
h1, h2, h3, p { margin: 0; }
@@ -71,8 +80,8 @@
scroll-margin-top: 18px;
}
.screen-figure figcaption { padding-inline: 8px; font-size: 16px; font-weight: 700; }
.screen-figure:target .phone { border-color: var(--green); }
.screen-figure figcaption { padding-inline: 8px; color: var(--blue); font-size: 15px; font-weight: 700; }
.screen-figure:target .phone { border-color: #96b4e0; }
.phone {
display: grid;
@@ -80,50 +89,89 @@
min-width: 0;
height: 735px;
overflow: hidden;
border: 1px solid #aebfb2;
border-radius: 26px;
border: 1px solid var(--line);
border-radius: 28px;
background: var(--screen);
box-shadow: 0 12px 28px #172a2411;
box-shadow: 0 3px 0 #dbe8fa, 0 14px 28px #31588f16;
}
.app-name {
padding: 21px 20px 8px;
font-size: 30px;
position: relative;
display: flex;
align-items: center;
gap: 12px;
margin: 14px 14px 8px;
min-height: 76px;
padding: 11px 13px;
border: 1px solid #f5ced7;
border-radius: 20px;
background: linear-gradient(108deg, #fff3f5, var(--coral-tint));
color: var(--ink);
font-size: 27px;
font-weight: 740;
line-height: 1.2;
}
.app-name::before {
content: '';
flex: 0 0 48px;
height: 48px;
border-radius: 12px;
background: #7babf8 var(--launcher-art) center / cover;
box-shadow: 0 2px 0 #eac2d1;
}
.app-name::after {
content: '';
position: absolute;
inset: 29px 34px auto auto;
width: 5px;
height: 5px;
background: #e49aab;
box-shadow: -5px 5px #e49aab, 0 5px #e49aab, 5px 5px #e49aab, 0 10px #e49aab,
15px -6px #88aee0, 24px 14px #a7cda9;
pointer-events: none;
}
.phone-content {
overflow: auto;
padding: 6px 17px 8px;
scrollbar-color: #a9c2b2 transparent;
padding: 4px 14px 12px;
scrollbar-color: #afc6e7 transparent;
scrollbar-width: thin;
}
.card {
margin-bottom: 12px;
padding: 12px 16px 14px;
padding: 14px 15px 15px;
border: 1px solid var(--line);
border-radius: 18px;
background: #fff;
background: var(--paper);
box-shadow: 0 2px 0 #dce9fa;
}
.card h3 { margin-bottom: 4px; font-size: 19px; line-height: 1.45; }
.card h3 { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; font-size: 18px; line-height: 1.45; }
.card h3::before { content: ''; width: 7px; height: 7px; flex: 0 0 7px; background: #82ade6; box-shadow: 3px 3px #cedff7; }
.task-state { border-color: #cde7d3; background: #f6fcf7; box-shadow: 0 2px 0 #deeddf; }
.task-state h3 { color: var(--green); }
.task-state h3::before { background: #77af86; box-shadow: 3px 3px #c8e5ce; }
.card p { margin-top: 6px; font-size: 14px; }
.card .mode { font-size: 15px; }
.card .mode { font-size: 15px; font-weight: 650; }
.hint, .summary { color: var(--muted); }
.phone-content > details.card { margin-top: 12px; }
summary { color: var(--blue); font-weight: 650; cursor: pointer; }
progress {
display: block;
width: 100%;
height: 4px;
height: 7px;
margin: 12px 0 8px;
appearance: none;
overflow: hidden;
border: 0;
border-radius: 4px;
background: var(--tint);
background: #dcefe0;
}
progress::-webkit-progress-bar { background: var(--tint); }
progress::-webkit-progress-bar { background: #dcefe0; }
progress::-webkit-progress-value { background: var(--green); }
progress::-moz-progress-bar { background: var(--green); }
@@ -133,8 +181,8 @@
min-height: 46px;
padding: 6px 10px;
border-radius: 12px;
background: var(--tint);
color: var(--green);
background: var(--blue-tint);
color: var(--blue);
font-size: 15px;
font-weight: 650;
text-align: center;
@@ -147,10 +195,12 @@
}
[hidden] { display: none !important; }
button.action { border: 0; cursor: pointer; }
button.action:disabled { opacity: .48; cursor: default; }
button.action { border: 0; cursor: pointer; font-family: inherit; }
.action:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
button.action:disabled { color: #63758e; background: #edf2fa; cursor: default; }
#photo-items { display: grid; gap: 10px; margin-top: 8px; }
.photo-item img { display: block; width: 96px; height: 76px; object-fit: contain; }
.photo-item { padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #f6f9ff; }
.photo-item img { display: block; width: 96px; height: 76px; margin-top: 5px; border-radius: 7px; object-fit: contain; }
.library-actions, .photo-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.library-level { margin-top: 14px; }
.library-level label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 700; }
@@ -158,37 +208,44 @@
dialog {
width: min(390px, calc(100% - 32px));
padding: 20px;
border: 1px solid var(--line);
border-radius: 18px;
border: 1px solid #f1cad3;
border-radius: 22px;
background: var(--paper);
color: var(--ink);
box-shadow: 0 8px 32px #293b6560, inset 0 5px var(--coral-tint);
}
dialog::backdrop { background: #172a2460; }
dialog::backdrop { background: #26355470; }
dialog h2 { margin-bottom: 12px; font-size: 20px; }
dialog .library-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 10px; }
#library-status { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
#library-error, #library-status.error { color: var(--alert); font-size: 14px; }
#library-error, #library-status.error { color: var(--coral-pressed); font-size: 14px; }
.action.primary, .app-nav [aria-current="page"] {
.action.primary {
color: #fff;
background: var(--green);
background: var(--coral);
}
button.action.primary:hover { background: var(--coral-pressed); }
.action.danger { color: var(--danger); background: var(--danger-tint); }
.action.primary.danger { color: #fff; background: var(--danger); }
.action.danger { color: var(--coral-pressed); background: var(--coral-tint); }
.action.primary.danger { color: #fff; background: var(--coral-pressed); }
.action[aria-disabled="true"] {
color: #fff;
background: #668b7a;
color: #63758e;
background: #e3ecf9;
}
.app-nav {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 4px;
padding: 7px 16px 12px;
gap: 6px;
padding: 8px 14px 11px;
border-top: 1px solid var(--line);
background: #f8fbff;
}
.app-nav a:hover { box-shadow: inset 0 0 0 1px var(--green); }
.app-nav a { color: var(--muted); background: transparent; }
.app-nav [aria-current="page"] { background: #dceaff; color: var(--blue); }
.app-nav a:hover { box-shadow: inset 0 0 0 1px var(--line); }
.fields {
display: grid;
@@ -202,10 +259,11 @@
.control {
display: flex;
align-items: center;
min-height: 42px;
min-height: 44px;
padding: 8px 11px;
border-radius: 9px;
background: var(--screen);
border: 1px solid var(--line);
border-radius: 11px;
background: #f6f9ff;
font-size: 15px;
overflow-wrap: anywhere;
}
@@ -225,12 +283,20 @@
.settings-input {
display: block;
width: 100%;
border: 0;
color: inherit;
font: inherit;
font-size: 15px;
}
.settings-input:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.settings-input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.settings-input:disabled { color: #63758e; background: #edf2fa; }
select.settings-input {
appearance: none;
padding-right: 28px;
background-image: linear-gradient(45deg, transparent 50%, #6984a9 50%), linear-gradient(135deg, #6984a9 50%, transparent 50%);
background-position: right 15px center, right 10px center;
background-size: 5px 5px;
background-repeat: no-repeat;
}
textarea.settings-input { resize: vertical; }
.range {
display: grid;
@@ -251,10 +317,9 @@
font-size: 14px;
overflow-wrap: anywhere;
}
.entries li { padding: 0 0 7px; border-bottom: 1px solid var(--line); }
.entries li:last-child { padding-bottom: 0; border-bottom: 0; }
.entries time { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.entries .warning { color: var(--alert); }
.entries li { padding: 7px 9px; border-left: 3px solid #b9d8c3; border-radius: 8px; background: var(--grass-tint); }
.entries time { display: block; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; white-space: nowrap; }
.entries .warning { border-color: #e8aebc; color: var(--coral-pressed); background: var(--coral-tint); }
@media (max-width: 970px) {
.screen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@@ -295,7 +360,7 @@
<section class="phone" aria-label="拾见任务页">
<h2 class="app-name">拾见</h2>
<div class="phone-content">
<div class="card">
<div class="card task-state">
<h3>准备运行</h3>
<p class="mode" id="task-mode">抖音 · 仅浏览</p>
<p id="task-scope">内容类型 1 个 · 单次 3 个视频</p>