430 lines
15 KiB
CSS
430 lines
15 KiB
CSS
:root {
|
|
--bg: #1a0f06;
|
|
--panel: #27170a;
|
|
--panel-2: #35200e;
|
|
--line: #5a3a1c;
|
|
--text: #fff6ea;
|
|
--muted: #d9b993;
|
|
--accent: #ff8a1f;
|
|
--accent-ink: #2a1400;
|
|
--error: #ff7a7a;
|
|
--radius: 12px;
|
|
color-scheme: dark;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
[hidden] { display: none !important; }
|
|
|
|
html, body { margin: 0; height: 100%; }
|
|
body {
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font: 16px/1.6 system-ui, -apple-system, "Segoe UI", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR",
|
|
"Microsoft JhengHei", "PingFang TC", sans-serif;
|
|
}
|
|
a { color: var(--accent); }
|
|
|
|
.layout { display: flex; min-height: 100vh; }
|
|
|
|
/* ---------- 側邊欄 ---------- */
|
|
#sidebar {
|
|
width: 280px;
|
|
flex-shrink: 0;
|
|
background: var(--panel);
|
|
border-right: 1px solid var(--line);
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
.brand { display: flex; align-items: center; justify-content: space-between; }
|
|
.brand a { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
|
|
font-weight: 800; font-size: 20px; }
|
|
.brand .logo { border-radius: 8px; object-fit: cover; }
|
|
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
|
|
.brand-text small { font-size: 12px; font-weight: 500; color: var(--accent); }
|
|
#sidebar-body { display: flex; flex-direction: column; gap: 24px; flex: 1; }
|
|
#sidebar h2 { font-size: 18px; margin: 0 0 4px; }
|
|
|
|
form { display: flex; flex-direction: column; gap: 12px; }
|
|
label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
|
|
input, textarea, select {
|
|
font: inherit;
|
|
color: var(--text);
|
|
background: var(--panel-2);
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
padding: 10px 12px;
|
|
width: 100%;
|
|
}
|
|
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; }
|
|
#code { letter-spacing: .4em; font-size: 20px; text-align: center; }
|
|
textarea { resize: vertical; min-height: 120px; }
|
|
|
|
button, .button {
|
|
font: inherit;
|
|
cursor: pointer;
|
|
border: 1px solid var(--line);
|
|
background: var(--panel-2);
|
|
color: var(--text);
|
|
border-radius: 999px;
|
|
padding: 9px 20px;
|
|
text-decoration: none;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
button:disabled { opacity: .5; cursor: default; }
|
|
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
|
|
button.link { background: none; border: none; padding: 0; color: var(--accent); border-radius: 0; }
|
|
button.link:disabled { color: var(--muted); }
|
|
.icon-btn { padding: 4px 10px; border-radius: 8px; font-size: 20px; }
|
|
|
|
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
|
|
.spacer { flex: 1; }
|
|
.hint { font-size: 13px; color: var(--muted); margin: 0; }
|
|
.muted { color: var(--muted); }
|
|
.error { color: var(--error); font-size: 14px; margin: 0; }
|
|
|
|
#me-box { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
|
|
.me-name { font-size: 20px; font-weight: 700; word-break: break-word; }
|
|
.me-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 12px; }
|
|
.me-nav a { text-decoration: none; }
|
|
|
|
.avatar { border-radius: 50%; object-fit: cover; background: var(--panel-2); width: 96px; height: 96px; }
|
|
.avatar.large { width: 160px; height: 160px; }
|
|
|
|
/* UID 與稱號:每個 UID 都有底色。一般使用者淺咖啡、管理員黃(和 server/app/titles.py TIER_COLORS 一致);
|
|
管理員指定的顏色由 app.js 直接寫在 style 上 */
|
|
.uid-wrap { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
|
|
.profile .uid-wrap { justify-content: center; }
|
|
.uid, .title-badge {
|
|
display: inline-block;
|
|
font-weight: 700;
|
|
font-variant-numeric: tabular-nums;
|
|
padding: 2px 10px;
|
|
border-radius: 8px;
|
|
margin-top: 2px;
|
|
background: #c9a27a;
|
|
color: #2a1400;
|
|
}
|
|
.uid.tier-admin, .title-badge.tier-admin { background: #ffd166; color: #2a1400; }
|
|
|
|
/* 管理員在個人頁設定稱號的表單 */
|
|
.title-form {
|
|
width: 100%;
|
|
text-align: left;
|
|
margin-top: 20px;
|
|
padding: 16px 20px;
|
|
background: var(--panel);
|
|
border: 1px dashed var(--accent);
|
|
border-radius: var(--radius);
|
|
}
|
|
.title-form h2 { font-size: 16px; margin: 0; }
|
|
.title-form .row { align-items: flex-end; flex-wrap: nowrap; }
|
|
.title-form .grow { flex: 1; min-width: 0; }
|
|
.title-form input[type=color] { width: 64px; height: 44px; padding: 4px; cursor: pointer; }
|
|
|
|
.lang { margin-top: auto; }
|
|
|
|
/* ---------- 主畫面 ---------- */
|
|
#main { flex: 1; min-width: 0; padding: 40px 24px 24px; display: flex; flex-direction: column; align-items: center; }
|
|
|
|
/* 每一頁最底下:關於 Yuzumi */
|
|
.site-footer {
|
|
margin-top: auto;
|
|
padding-top: 48px;
|
|
text-align: center;
|
|
font-size: 13px;
|
|
line-height: 1.7;
|
|
color: var(--muted);
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.site-footer .version { font-size: 12px; opacity: .7; }
|
|
|
|
/* 管理員:通知匣、被標記的帳號 */
|
|
.notice-list { list-style: none; margin: 16px 0; padding: 0; width: min(720px, 100%); display: flex; flex-direction: column; gap: 10px; }
|
|
.notice-list li { padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow-wrap: anywhere; }
|
|
.notice-list li.unread { border-color: var(--accent); }
|
|
.flag-box { width: 100%; margin-top: 12px; padding: 12px 16px; border: 1px solid var(--error); border-radius: var(--radius); }
|
|
|
|
/* 手機:提示可以安裝到桌面 */
|
|
.install-hint {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
text-align: left;
|
|
font-size: 14px;
|
|
padding: 10px 12px 10px 16px;
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
}
|
|
.install-hint span { flex: 1; }
|
|
.install-hint .primary { padding: 6px 16px; white-space: nowrap; }
|
|
.install-hint .icon-btn { border: none; background: none; color: var(--muted); padding: 0 6px; }
|
|
#view-checkin, #view-user, #view-upload, #view-review { width: 100%; max-width: 560px; }
|
|
#view-upload h1, #view-review h1 { font-size: 24px; margin: 0 0 8px; }
|
|
#view-upload h2 { font-size: 18px; margin: 28px 0 12px; }
|
|
.center { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
|
|
.center-text { text-align: center; }
|
|
|
|
.big-logo { width: 120px; height: 120px; border-radius: 28%; margin-top: 8vh; box-shadow: 0 16px 48px #ff8a1f44; }
|
|
.big-mark { font-size: 64px; font-weight: 900; letter-spacing: .08em; color: var(--accent); line-height: 1.2; }
|
|
.tagline { font-size: 22px; font-weight: 700; margin: 0; }
|
|
|
|
/* 「等等再吱」之後留在頁面上的入口:影片第一幀的縮圖,點了重新打開全螢幕 */
|
|
.zhi-open {
|
|
position: relative;
|
|
width: 180px;
|
|
aspect-ratio: 9 / 16;
|
|
margin-top: 4vh;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
border-radius: 24px;
|
|
border: 3px solid var(--accent);
|
|
background: var(--panel-2);
|
|
box-shadow: 0 16px 48px #ff8a1f44;
|
|
transition: transform .15s;
|
|
}
|
|
.zhi-open img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; }
|
|
.zhi-open-label {
|
|
position: absolute;
|
|
left: 0; right: 0; bottom: 0;
|
|
padding: 24px 0 12px;
|
|
background: linear-gradient(transparent, #000c 70%);
|
|
color: #fff;
|
|
font-size: 22px;
|
|
font-weight: 900;
|
|
letter-spacing: .1em;
|
|
}
|
|
.zhi-open:hover { transform: scale(1.04); }
|
|
.zhi-open:active { transform: scale(.97); }
|
|
|
|
/* ---------- 全螢幕吱吱 ---------- */
|
|
body.zhi-on { overflow: hidden; }
|
|
.zhi-stage {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 30;
|
|
overflow: hidden;
|
|
background: #1a0f06;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
-webkit-tap-highlight-color: transparent;
|
|
touch-action: manipulation; /* 連點時不要觸發雙擊放大 */
|
|
}
|
|
/* 影片是直式的:寬螢幕上兩側用放大模糊的第一幀填滿 */
|
|
.zhi-stage::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: -40px;
|
|
background: url("/assets/media/zhizhi-poster.webp") center / cover;
|
|
filter: blur(28px) brightness(.55);
|
|
}
|
|
.zhi-stage video {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
pointer-events: none;
|
|
}
|
|
@media (min-aspect-ratio: 3/4) {
|
|
.zhi-stage video { object-fit: contain; }
|
|
}
|
|
.zhi-hint {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translate(-50%, -50%);
|
|
white-space: nowrap;
|
|
pointer-events: none;
|
|
font-size: clamp(40px, 11vw, 96px);
|
|
font-weight: 900;
|
|
letter-spacing: .08em;
|
|
color: #fff;
|
|
-webkit-text-stroke: 2px #2a1400;
|
|
paint-order: stroke fill;
|
|
text-shadow: 0 4px 0 #ff8a1f, 0 10px 32px #000a;
|
|
/* 晚 100ms 才出現:等門的圖先畫出來。每次重新顯示(display 變回來)動畫都會重跑 */
|
|
animation: zhi-show 1ms 100ms both, zhi-breathe 1.4s 100ms ease-in-out infinite;
|
|
}
|
|
.zhi-stage.playing .zhi-hint { display: none; }
|
|
@keyframes zhi-show { from { opacity: 0; } to { opacity: 1; } }
|
|
@keyframes zhi-breathe {
|
|
0%, 100% { transform: translate(-50%, -50%) scale(1); }
|
|
50% { transform: translate(-50%, -50%) scale(1.08); }
|
|
}
|
|
.zhi-count, .zhi-exit {
|
|
position: absolute;
|
|
top: max(16px, env(safe-area-inset-top));
|
|
padding: 8px 18px;
|
|
border-radius: 999px;
|
|
border: 1px solid #ffffff33;
|
|
background: #1a0f06cc;
|
|
color: #fff;
|
|
font-weight: 700;
|
|
backdrop-filter: blur(6px);
|
|
}
|
|
.zhi-count { right: 16px; color: var(--accent); font-size: 18px; font-variant-numeric: tabular-nums; pointer-events: none; }
|
|
.zhi-count.bump { animation: zhi-bump .18s ease-out; }
|
|
@keyframes zhi-bump { 50% { transform: scale(1.18); } }
|
|
.zhi-exit { left: 16px; font-size: 15px; }
|
|
/* 全自動吱吱:中下方的開關 */
|
|
.zhi-auto {
|
|
position: absolute;
|
|
left: 50%;
|
|
bottom: max(28px, env(safe-area-inset-bottom));
|
|
transform: translateX(-50%);
|
|
white-space: nowrap;
|
|
padding: 12px 28px;
|
|
border-radius: 999px;
|
|
border: 2px solid var(--accent);
|
|
background: #1a0f06cc;
|
|
color: #fff;
|
|
font-size: 18px;
|
|
font-weight: 800;
|
|
letter-spacing: .05em;
|
|
backdrop-filter: blur(6px);
|
|
}
|
|
.zhi-auto.on { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 28px #ff8a1faa; }
|
|
|
|
/* 粒子:位置、方向、距離、顏色由 app.js 用 CSS 變數指定 */
|
|
.particle {
|
|
position: fixed;
|
|
left: var(--x);
|
|
top: var(--y);
|
|
width: var(--s);
|
|
height: var(--s);
|
|
border-radius: 50%;
|
|
background: var(--c);
|
|
pointer-events: none;
|
|
z-index: 40;
|
|
animation: burst var(--d, .9s) cubic-bezier(.12, .75, .3, 1) forwards;
|
|
}
|
|
.particle.digit {
|
|
width: auto;
|
|
height: auto;
|
|
background: none;
|
|
color: var(--c);
|
|
font-size: var(--s);
|
|
font-weight: 900;
|
|
line-height: 1;
|
|
text-shadow: 0 2px 6px #0008;
|
|
}
|
|
@keyframes burst {
|
|
from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
|
|
70% { opacity: 1; }
|
|
to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.3) rotate(var(--r)); opacity: 0; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.particle { display: none; }
|
|
.zhi-hint { animation: zhi-show 1ms 100ms both; }
|
|
.zhi-count.bump { animation: none; }
|
|
}
|
|
|
|
.checkin-msg { font-size: 22px; font-weight: 700; margin: 0; }
|
|
.card-img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 12px 40px #0008; background: var(--panel); }
|
|
.stats { color: var(--muted); margin: 0; font-size: 15px; }
|
|
.actions { justify-content: center; }
|
|
|
|
/* ---------- 投稿 / 審核 ---------- */
|
|
.upload-bar { margin-top: 16px; }
|
|
.upload-bar label.button { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); font-weight: 700; }
|
|
.upload-bar label.button.busy { opacity: .5; pointer-events: none; }
|
|
.sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
|
|
.sub-item { position: relative; border-radius: 10px; overflow: hidden; background: var(--panel-2); aspect-ratio: 1; }
|
|
.sub-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
|
.sub-status {
|
|
position: absolute;
|
|
left: 6px; bottom: 6px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
padding: 1px 8px;
|
|
border-radius: 999px;
|
|
background: #000b;
|
|
color: var(--text);
|
|
}
|
|
.sub-status.approved { background: #2f9e5a; color: #fff; }
|
|
.sub-status.rejected { background: #6b3a3a; color: #fff; }
|
|
.source-field { max-width: 360px; width: 100%; margin-top: 12px; text-align: left; }
|
|
#view-images h2 { margin-top: 32px; }
|
|
.seg { gap: 8px; margin-bottom: 12px; }
|
|
.seg button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
|
|
.meme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; width: 100%; }
|
|
.meme-item { display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
|
|
.meme-item img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: var(--panel-2); }
|
|
.meme-item input { padding: 6px 8px; font-size: 14px; }
|
|
.meme-item button { padding: 6px 12px; font-size: 14px; }
|
|
.review-img { max-width: 100%; max-height: 60vh; border-radius: 12px; background: var(--panel); box-shadow: 0 12px 40px #0008; }
|
|
.review-meta { margin: 0; line-height: 1.9; }
|
|
#review-name { font-weight: 700; text-decoration: none; }
|
|
|
|
.profile { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
|
|
.profile h1 { margin: 12px 0 0; font-size: 28px; word-break: break-word; }
|
|
|
|
.bio {
|
|
width: 100%;
|
|
text-align: left;
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
padding: 4px 20px;
|
|
margin-top: 16px;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.bio pre { overflow-x: auto; background: var(--panel-2); padding: 12px; border-radius: 8px; }
|
|
.bio code { background: var(--panel-2); padding: 1px 5px; border-radius: 4px; }
|
|
.bio pre code { padding: 0; }
|
|
.bio blockquote { margin: 0; padding-left: 12px; border-left: 3px solid var(--line); color: var(--muted); }
|
|
.bio table { border-collapse: collapse; }
|
|
.bio th, .bio td { border: 1px solid var(--line); padding: 4px 8px; }
|
|
.bio.empty { color: var(--muted); padding: 16px 20px; }
|
|
|
|
/* ---------- 編輯個人資料 ---------- */
|
|
dialog {
|
|
width: min(560px, calc(100vw - 32px));
|
|
background: var(--panel);
|
|
color: var(--text);
|
|
border: 1px solid var(--line);
|
|
border-radius: 16px;
|
|
padding: 24px;
|
|
}
|
|
dialog::backdrop { background: #000a; }
|
|
dialog h2 { margin: 0 0 4px; }
|
|
.avatar-edit { display: flex; gap: 16px; align-items: center; }
|
|
.avatar-edit .button { margin-bottom: 6px; }
|
|
.preview { margin-top: 0; max-height: 300px; overflow-y: auto; }
|
|
.dialog-actions { margin-top: 8px; }
|
|
|
|
#toast {
|
|
position: fixed;
|
|
left: 50%;
|
|
bottom: 32px;
|
|
transform: translateX(-50%);
|
|
background: var(--panel-2);
|
|
border: 1px solid var(--line);
|
|
padding: 10px 20px;
|
|
border-radius: 999px;
|
|
box-shadow: 0 8px 24px #0008;
|
|
z-index: 50;
|
|
}
|
|
|
|
.only-mobile { display: none; }
|
|
|
|
/* ---------- 手機:側欄收到上方 ---------- */
|
|
@media (max-width: 760px) {
|
|
.layout { flex-direction: column; }
|
|
#sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--line); padding: 12px 16px; gap: 12px; }
|
|
.only-mobile { display: inline-flex; }
|
|
#sidebar:not(.open) #sidebar-body { display: none; }
|
|
#sidebar-body { padding-bottom: 8px; }
|
|
#main { padding: 24px 16px 20px; }
|
|
.big-logo { margin-top: 4vh; }
|
|
.big-mark { font-size: 48px; }
|
|
}
|