Spaces:
Sleeping
Sleeping
Delete style.css
Browse files
style.css
DELETED
|
@@ -1,260 +0,0 @@
|
|
| 1 |
-
/* 云端相机 - 深色移动端主题 */
|
| 2 |
-
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
|
| 3 |
-
|
| 4 |
-
:root {
|
| 5 |
-
--bg: #0f1115;
|
| 6 |
-
--card: #1a1d24;
|
| 7 |
-
--card2: #232833;
|
| 8 |
-
--line: #2c3240;
|
| 9 |
-
--text: #f2f4f8;
|
| 10 |
-
--dim: #9aa3b2;
|
| 11 |
-
--accent: #3b82f6;
|
| 12 |
-
--accent2: #2563eb;
|
| 13 |
-
--danger: #ef4444;
|
| 14 |
-
--ok: #22c55e;
|
| 15 |
-
}
|
| 16 |
-
|
| 17 |
-
html, body { height: 100%; }
|
| 18 |
-
body {
|
| 19 |
-
background: var(--bg);
|
| 20 |
-
color: var(--text);
|
| 21 |
-
font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
|
| 22 |
-
overflow: hidden;
|
| 23 |
-
user-select: none;
|
| 24 |
-
-webkit-user-select: none;
|
| 25 |
-
}
|
| 26 |
-
|
| 27 |
-
.hidden { display: none !important; }
|
| 28 |
-
|
| 29 |
-
/* ---------- 通用按钮 ---------- */
|
| 30 |
-
button {
|
| 31 |
-
font-family: inherit;
|
| 32 |
-
border: none;
|
| 33 |
-
border-radius: 14px;
|
| 34 |
-
padding: 14px 18px;
|
| 35 |
-
font-size: 16px;
|
| 36 |
-
color: var(--text);
|
| 37 |
-
background: var(--card2);
|
| 38 |
-
cursor: pointer;
|
| 39 |
-
transition: transform .08s, opacity .15s, background .15s;
|
| 40 |
-
}
|
| 41 |
-
button:active { transform: scale(.97); }
|
| 42 |
-
button.primary { background: var(--accent); font-weight: 600; }
|
| 43 |
-
button.primary:active { background: var(--accent2); }
|
| 44 |
-
button.ghost { background: rgba(255,255,255,.12); }
|
| 45 |
-
button.danger { background: rgba(239,68,68,.15); color: #fca5a5; }
|
| 46 |
-
button.small { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
|
| 47 |
-
button.round { width: 56px; height: 56px; border-radius: 50%; font-size: 22px; background: rgba(255,255,255,.12); }
|
| 48 |
-
button[disabled] { opacity: .5; pointer-events: none; }
|
| 49 |
-
|
| 50 |
-
/* ---------- 页面容器 ---------- */
|
| 51 |
-
.page {
|
| 52 |
-
position: fixed;
|
| 53 |
-
inset: 0;
|
| 54 |
-
display: flex;
|
| 55 |
-
flex-direction: column;
|
| 56 |
-
}
|
| 57 |
-
|
| 58 |
-
/* ---------- 登录页 ---------- */
|
| 59 |
-
#page-login { align-items: center; justify-content: center; padding: 24px; background: radial-gradient(1200px 500px at 50% -10%, #1b2b4a 0%, var(--bg) 60%); }
|
| 60 |
-
.login-box { width: 100%; max-width: 400px; }
|
| 61 |
-
.logo { font-size: 56px; text-align: center; margin-bottom: 8px; }
|
| 62 |
-
.login-box h1 { text-align: center; font-size: 26px; letter-spacing: 1px; }
|
| 63 |
-
.subtitle { text-align: center; color: var(--dim); margin: 8px 0 32px; font-size: 14px; }
|
| 64 |
-
.field { margin-bottom: 16px; }
|
| 65 |
-
.field label { display: block; color: var(--dim); font-size: 13px; margin-bottom: 6px; }
|
| 66 |
-
.field input {
|
| 67 |
-
width: 100%;
|
| 68 |
-
padding: 14px 16px;
|
| 69 |
-
font-size: 16px;
|
| 70 |
-
color: var(--text);
|
| 71 |
-
background: var(--card);
|
| 72 |
-
border: 1px solid var(--line);
|
| 73 |
-
border-radius: 14px;
|
| 74 |
-
outline: none;
|
| 75 |
-
}
|
| 76 |
-
.field input:focus { border-color: var(--accent); }
|
| 77 |
-
#btn-login { width: 100%; margin-top: 8px; }
|
| 78 |
-
.hint { text-align: center; color: var(--dim); font-size: 12px; margin-top: 14px; line-height: 1.6; }
|
| 79 |
-
|
| 80 |
-
/* ---------- 相机页 ---------- */
|
| 81 |
-
#tab-camera { position: relative; }
|
| 82 |
-
#cam-stage { position: absolute; inset: 0; background: #000; overflow: hidden; }
|
| 83 |
-
#cam-video { width: 100%; height: 100%; object-fit: cover; }
|
| 84 |
-
#cam-canvas { display: none; }
|
| 85 |
-
#cam-fallback {
|
| 86 |
-
position: absolute; inset: 0;
|
| 87 |
-
display: flex; flex-direction: column;
|
| 88 |
-
align-items: center; justify-content: center;
|
| 89 |
-
color: var(--dim); gap: 12px;
|
| 90 |
-
}
|
| 91 |
-
.fb-icon { font-size: 48px; }
|
| 92 |
-
#cam-controls {
|
| 93 |
-
position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
|
| 94 |
-
display: flex; align-items: center; justify-content: space-evenly;
|
| 95 |
-
padding: 0 30px;
|
| 96 |
-
}
|
| 97 |
-
.shutter {
|
| 98 |
-
width: 78px; height: 78px; border-radius: 50%;
|
| 99 |
-
background: #fff;
|
| 100 |
-
border: 6px solid rgba(255,255,255,.35);
|
| 101 |
-
background-clip: padding-box;
|
| 102 |
-
font-size: 30px;
|
| 103 |
-
}
|
| 104 |
-
.shutter:active { transform: scale(.92); }
|
| 105 |
-
|
| 106 |
-
/* 拍照预览 */
|
| 107 |
-
#shot-preview {
|
| 108 |
-
position: absolute; inset: 0;
|
| 109 |
-
background: #000;
|
| 110 |
-
display: flex; flex-direction: column;
|
| 111 |
-
align-items: center; justify-content: center;
|
| 112 |
-
padding: 20px;
|
| 113 |
-
}
|
| 114 |
-
#shot-preview img { max-width: 100%; max-height: 62vh; border-radius: 12px; box-shadow: 0 8px 40px rgba(0,0,0,.6); }
|
| 115 |
-
.shot-actions { display: flex; gap: 12px; margin-top: 20px; width: 100%; max-width: 420px; }
|
| 116 |
-
.shot-actions button { flex: 1; }
|
| 117 |
-
|
| 118 |
-
/* 上传进度 */
|
| 119 |
-
#upload-progress {
|
| 120 |
-
position: absolute; left: 24px; right: 24px; top: calc(env(safe-area-inset-top, 0px) + 20px);
|
| 121 |
-
background: var(--card);
|
| 122 |
-
border-radius: 12px;
|
| 123 |
-
padding: 14px;
|
| 124 |
-
text-align: center;
|
| 125 |
-
z-index: 5;
|
| 126 |
-
box-shadow: 0 8px 30px rgba(0,0,0,.5);
|
| 127 |
-
}
|
| 128 |
-
#upload-bar {
|
| 129 |
-
height: 6px; width: 0%;
|
| 130 |
-
background: var(--accent);
|
| 131 |
-
border-radius: 3px;
|
| 132 |
-
margin-bottom: 8px;
|
| 133 |
-
transition: width .2s;
|
| 134 |
-
}
|
| 135 |
-
#upload-text { font-size: 13px; color: var(--dim); }
|
| 136 |
-
|
| 137 |
-
/* ---------- 相册页 ---------- */
|
| 138 |
-
#tab-album { padding-top: calc(env(safe-area-inset-top, 0px) + 12px); padding-bottom: 90px; overflow-y: auto; }
|
| 139 |
-
.tab-head {
|
| 140 |
-
display: flex; align-items: center; justify-content: space-between;
|
| 141 |
-
padding: 8px 16px 14px;
|
| 142 |
-
position: sticky; top: 0;
|
| 143 |
-
background: var(--bg);
|
| 144 |
-
z-index: 2;
|
| 145 |
-
}
|
| 146 |
-
.tab-head h2 { font-size: 18px; }
|
| 147 |
-
#album-grid {
|
| 148 |
-
display: grid;
|
| 149 |
-
grid-template-columns: repeat(3, 1fr);
|
| 150 |
-
gap: 3px;
|
| 151 |
-
padding: 0 3px;
|
| 152 |
-
}
|
| 153 |
-
#album-grid img {
|
| 154 |
-
width: 100%;
|
| 155 |
-
aspect-ratio: 1;
|
| 156 |
-
object-fit: cover;
|
| 157 |
-
border-radius: 2px;
|
| 158 |
-
background: var(--card);
|
| 159 |
-
}
|
| 160 |
-
#album-empty { text-align: center; padding: 80px 20px; color: var(--dim); }
|
| 161 |
-
.empty-icon { font-size: 56px; margin-bottom: 14px; }
|
| 162 |
-
#album-more { text-align: center; color: var(--dim); font-size: 13px; padding: 18px; }
|
| 163 |
-
|
| 164 |
-
/* ---------- 设置页 ---------- */
|
| 165 |
-
#tab-settings { padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 90px; overflow-y: auto; }
|
| 166 |
-
.card {
|
| 167 |
-
background: var(--card);
|
| 168 |
-
border-radius: 16px;
|
| 169 |
-
margin-bottom: 20px;
|
| 170 |
-
overflow: hidden;
|
| 171 |
-
}
|
| 172 |
-
.card-row {
|
| 173 |
-
display: flex; align-items: center; justify-content: space-between;
|
| 174 |
-
padding: 16px;
|
| 175 |
-
border-bottom: 1px solid var(--line);
|
| 176 |
-
font-size: 15px;
|
| 177 |
-
color: var(--dim);
|
| 178 |
-
}
|
| 179 |
-
.card-row b { color: var(--text); }
|
| 180 |
-
.switch-row { cursor: pointer; position: relative; padding-right: 64px; }
|
| 181 |
-
.switch-row input { display: none; }
|
| 182 |
-
.switch {
|
| 183 |
-
position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
|
| 184 |
-
width: 46px; height: 26px;
|
| 185 |
-
background: var(--card2);
|
| 186 |
-
border-radius: 13px;
|
| 187 |
-
transition: background .2s;
|
| 188 |
-
}
|
| 189 |
-
.switch::after {
|
| 190 |
-
content: "";
|
| 191 |
-
position: absolute; top: 3px; left: 3px;
|
| 192 |
-
width: 20px; height: 20px;
|
| 193 |
-
background: #fff;
|
| 194 |
-
border-radius: 50%;
|
| 195 |
-
transition: transform .2s;
|
| 196 |
-
}
|
| 197 |
-
.switch-row input:checked + .switch { background: var(--accent); }
|
| 198 |
-
.switch-row input:checked + .switch::after { transform: translateX(20px); }
|
| 199 |
-
#btn-logout { width: 100%; margin-bottom: 24px; }
|
| 200 |
-
.about { color: var(--dim); font-size: 12px; text-align: center; line-height: 2; }
|
| 201 |
-
|
| 202 |
-
/* ---------- 底部导航 ---------- */
|
| 203 |
-
#tabbar {
|
| 204 |
-
position: absolute; left: 0; right: 0; bottom: 0;
|
| 205 |
-
display: flex;
|
| 206 |
-
background: rgba(18,20,26,.96);
|
| 207 |
-
border-top: 1px solid var(--line);
|
| 208 |
-
padding-bottom: env(safe-area-inset-bottom, 0px);
|
| 209 |
-
z-index: 10;
|
| 210 |
-
}
|
| 211 |
-
.tab-btn {
|
| 212 |
-
flex: 1;
|
| 213 |
-
display: flex; flex-direction: column; align-items: center;
|
| 214 |
-
gap: 3px;
|
| 215 |
-
background: transparent;
|
| 216 |
-
border-radius: 0;
|
| 217 |
-
padding: 9px 0 8px;
|
| 218 |
-
font-size: 11px;
|
| 219 |
-
color: var(--dim);
|
| 220 |
-
}
|
| 221 |
-
.tab-btn.active { color: var(--accent); }
|
| 222 |
-
.tb-icon { font-size: 20px; }
|
| 223 |
-
|
| 224 |
-
/* ---------- 大图查看器 ---------- */
|
| 225 |
-
#viewer {
|
| 226 |
-
position: fixed; inset: 0;
|
| 227 |
-
background: rgba(0,0,0,.95);
|
| 228 |
-
z-index: 50;
|
| 229 |
-
display: flex; flex-direction: column;
|
| 230 |
-
align-items: center; justify-content: center;
|
| 231 |
-
padding: 20px;
|
| 232 |
-
}
|
| 233 |
-
#viewer-img { max-width: 100%; max-height: 66vh; border-radius: 10px; }
|
| 234 |
-
#viewer-info { color: var(--dim); font-size: 13px; margin: 16px 0; text-align: center; line-height: 1.8; }
|
| 235 |
-
.viewer-actions { display: flex; gap: 12px; }
|
| 236 |
-
#btn-viewer-close {
|
| 237 |
-
position: absolute; top: calc(env(safe-area-inset-top, 0px) + 16px); right: 16px;
|
| 238 |
-
width: 40px; height: 40px; border-radius: 50%;
|
| 239 |
-
font-size: 16px;
|
| 240 |
-
background: rgba(255,255,255,.15);
|
| 241 |
-
}
|
| 242 |
-
|
| 243 |
-
/* ---------- Toast ---------- */
|
| 244 |
-
#toast {
|
| 245 |
-
position: fixed; left: 50%; bottom: 110px;
|
| 246 |
-
transform: translateX(-50%);
|
| 247 |
-
background: rgba(20,22,28,.95);
|
| 248 |
-
color: var(--text);
|
| 249 |
-
padding: 12px 22px;
|
| 250 |
-
border-radius: 12px;
|
| 251 |
-
font-size: 14px;
|
| 252 |
-
z-index: 100;
|
| 253 |
-
max-width: 84vw;
|
| 254 |
-
text-align: center;
|
| 255 |
-
box-shadow: 0 8px 30px rgba(0,0,0,.5);
|
| 256 |
-
animation: toast-in .2s;
|
| 257 |
-
}
|
| 258 |
-
#toast.ok { border: 1px solid rgba(34,197,94,.5); }
|
| 259 |
-
#toast.err { border: 1px solid rgba(239,68,68,.5); }
|
| 260 |
-
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|