加账号系统:登录注册、每人 100 分、用一次扣 1 分、CDK 兑换、管理员后台(SQLite)
由 dsh-go 自动上传 · 2026/11/18 01:56:17
This commit is contained in:
1 parent
e028c5f70b
commit
36e64bdf2f
16 files changed
+1358
-41
No files matched your search
@@ -438,3 +438,89 @@ mark { background: rgba(55, 224, 208, .28); color: #eafffb; border-radius: 3px;
|
||||
.color-input-mini { width: 90px; height: 38px; padding: 2px; border-radius: 8px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); cursor: pointer; }
|
||||
.wm-canvas { max-width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; margin-top: 10px; }
|
||||
.drop.over { border-color: var(--accent); background: rgba(91,140,255,.08); }
|
||||
|
||||
/* ---------------- 账号 / 积分 ---------------- */
|
||||
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
|
||||
.who { display: flex; align-items: center; gap: 6px; }
|
||||
.credit-chip {
|
||||
display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
|
||||
border-radius: 999px; border: 1px solid rgba(91,140,255,.45);
|
||||
background: linear-gradient(180deg, rgba(91,140,255,.22), rgba(91,140,255,.12));
|
||||
color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer;
|
||||
}
|
||||
.credit-chip span { color: var(--muted); }
|
||||
.credit-chip b { font-family: var(--mono); font-size: 13px; color: #cfe0ff; }
|
||||
.credit-chip b.low { color: var(--bad); }
|
||||
.user-btn { display: inline-flex; align-items: center; gap: 7px; }
|
||||
.user-btn .avatar-dot { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(140deg, #5b8cff, #37e0d0); }
|
||||
.user-btn em { font-style: normal; font-size: 11px; color: var(--muted); }
|
||||
.admin-btn { color: #ffd9a8; border-color: rgba(242,181,68,.4); }
|
||||
|
||||
.auth {
|
||||
position: fixed; inset: 0; z-index: 9500; display: flex; align-items: center; justify-content: center;
|
||||
padding: 20px; background: radial-gradient(1200px 700px at 50% 20%, rgba(91,140,255,.16), transparent 60%), var(--bg);
|
||||
}
|
||||
.auth-card {
|
||||
width: min(440px, 100%); padding: 28px; border-radius: 20px;
|
||||
border: 1px solid var(--line); background: var(--panel); box-shadow: 0 30px 80px rgba(0,0,0,.55);
|
||||
display: flex; flex-direction: column; gap: 16px;
|
||||
}
|
||||
.auth-brand { display: flex; align-items: center; gap: 12px; }
|
||||
.auth-brand strong { display: block; font-size: 18px; }
|
||||
.auth-brand span { font-size: 12px; color: var(--muted); }
|
||||
.auth-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 12px; margin-bottom: 2px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
|
||||
.auth-tab {
|
||||
flex: 1; height: 34px; border-radius: 9px; border: none; background: transparent; color: var(--muted);
|
||||
font: inherit; font-size: 13.5px; cursor: pointer;
|
||||
}
|
||||
.auth-tab.active { background: rgba(91,140,255,.18); color: var(--text); box-shadow: inset 0 0 0 1px rgba(91,140,255,.35); }
|
||||
.auth-card form { display: flex; flex-direction: column; gap: 12px; }
|
||||
.auth-card .field span { font-size: 12.5px; }
|
||||
.auth-msg { min-height: 18px; font-size: 12.5px; color: var(--muted); }
|
||||
.auth-msg.bad { color: var(--bad); }
|
||||
.auth-msg.good { color: var(--good); }
|
||||
.auth-hint { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0; }
|
||||
.btn.block { width: 100%; height: 40px; }
|
||||
|
||||
.sheet { position: fixed; inset: 0; z-index: 9400; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(4,8,16,.6); backdrop-filter: blur(3px); }
|
||||
.sheet-card { position: relative; width: min(480px, 100%); max-height: 86vh; overflow: auto; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 24px 64px rgba(0,0,0,.5); }
|
||||
.sheet-card h2 { font-size: 16px; margin: 0 0 6px; }
|
||||
.sheet-x { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
|
||||
.sheet-x svg { width: 16px; height: 16px; }
|
||||
|
||||
.paywall { position: fixed; inset: 0; z-index: 9300; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(4,8,16,.62); backdrop-filter: blur(3px); }
|
||||
.paywall-card { width: min(380px, 100%); padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); text-align: center; }
|
||||
.paywall-card h2 { font-size: 17px; margin: 10px 0 6px; }
|
||||
.paywall-ico { width: 44px; height: 44px; margin: 0 auto; border-radius: 14px; display: grid; place-items: center; background: rgba(91,140,255,.16); color: #cfe0ff; }
|
||||
.paywall-ico svg { width: 22px; height: 22px; }
|
||||
.panel.paywall-inline { text-align: center; padding: 30px 20px; }
|
||||
|
||||
/* 管理后台 */
|
||||
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
|
||||
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--panel-2, rgba(255,255,255,.03)); }
|
||||
.stat span { display: block; font-size: 12px; color: var(--muted); }
|
||||
.stat b { font-size: 20px; font-family: var(--mono); }
|
||||
.table { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
|
||||
.tr { display: grid; grid-template-columns: 1.4fr .7fr .6fr 1fr 1.6fr; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.03); }
|
||||
.tr.th { background: transparent; color: var(--muted); font-size: 12px; padding-bottom: 0; }
|
||||
.table .tr:nth-child(n+3) { border: 1px solid var(--line); }
|
||||
.ops { display: flex; gap: 5px; flex-wrap: wrap; }
|
||||
.tag { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 6px; margin-left: 6px; background: rgba(91,140,255,.18); color: #cfe0ff; }
|
||||
.tag.bad { background: rgba(255,107,129,.18); color: #ffb4be; }
|
||||
.good { color: var(--good); }
|
||||
.mono { font-family: var(--mono); display: inline-flex; align-items: center; gap: 6px; }
|
||||
.code-out { margin-top: 10px; }
|
||||
.code-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
|
||||
.code-chip { font-family: var(--mono); font-size: 12px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); cursor: pointer; }
|
||||
.code-chip:hover { border-color: rgba(91,140,255,.5); }
|
||||
.mini-input { width: 92px; }
|
||||
.field.inline { flex: 0 0 auto; }
|
||||
.wrap-row { align-items: flex-end; }
|
||||
.empty { color: var(--muted); font-size: 13px; padding: 10px; }
|
||||
@media (max-width: 720px) {
|
||||
.tr { grid-template-columns: 1.3fr .6fr 1.4fr; }
|
||||
.tr > span:nth-child(3), .tr > span:nth-child(4) { display: none; }
|
||||
.tr.th > span:nth-child(3), .tr.th > span:nth-child(4) { display: none; }
|
||||
.top-right { gap: 4px; }
|
||||
.user-btn em { display: none; }
|
||||
}
|
||||
Reference in new issue
Block a user