style: set CJK+English fonts, reduce base font size to 14px, lighten text colors

This commit is contained in:
2026-07-06 21:10:59 +08:00
parent 68c88a7910
commit e75c4df4e8
2 changed files with 41 additions and 29 deletions

View File

@@ -8,24 +8,24 @@
--bg: #f8fafc;
--card-bg: #fff;
--border: #e2e8f0;
--text: #1e293b;
--text-muted: #64748b;
--text: #475569;
--text-muted: #94a3b8;
--sent: #f59e0b;
--delivered: #10b981;
--received: #8b5cf6;
}
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; font-size: 14px; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Navbar */
.navbar { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1.5rem; background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.nav-brand { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.nav-brand { font-size: 1rem; font-weight: 700; color: var(--text); }
.nav-brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 1.25rem; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: .9rem; }
.nav-links a { color: var(--text-muted); font-size: .8rem; }
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-logout { color: var(--danger) !important; }
@@ -36,12 +36,12 @@ a:hover { text-decoration: underline; }
.auth-form { max-width: 360px; margin: 4rem auto; background: var(--card-bg); padding: 2rem; border-radius: 8px; border: 1px solid var(--border); }
.auth-form h2 { margin-bottom: 1.25rem; }
.auth-form button[type="submit"] { margin-top: 1.25rem; }
.auth-link { margin-top: 1.5rem; text-align: center; font-size: .9rem; }
.auth-link { margin-top: 1.5rem; text-align: center; font-size: .8rem; }
/* Forms */
label { display: block; margin-top: 1rem; font-size: .85rem; font-weight: 500; color: var(--text-muted); }
label { display: block; margin-top: 1rem; font-size: .78rem; font-weight: 500; color: var(--text-muted); }
input[type="text"], input[type="password"], input[type="datetime-local"], input[type="date"], select, textarea {
width: 100%; padding: .5rem .75rem; margin-top: .25rem; border: 1px solid var(--border); border-radius: 6px; font-size: .95rem; background: #fff;
width: 100%; padding: .5rem .75rem; margin-top: .25rem; border: 1px solid var(--border); border-radius: 6px; font-size: .85rem; background: #fff;
}
input:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
input[type="text"] + label, input[type="password"] + label, input[type="datetime-local"] + label, select + label { margin-top: 1.1rem; }
@@ -59,24 +59,24 @@ input[type="text"] + label, input[type="password"] + label, input[type="datetime
.nickname-edit input[type="text"] { width: 140px; flex: none; }
/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .5rem 1rem; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text); cursor: pointer; font-size: .9rem; text-align: center; white-space: nowrap; text-decoration: none; line-height: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .5rem 1rem; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text); cursor: pointer; font-size: .8rem; text-align: center; white-space: nowrap; text-decoration: none; line-height: 1; }
.btn:hover { background: var(--bg); text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: var(--danger-hover); }
.btn-sm { padding: .35rem .75rem; font-size: .85rem; height: 2rem; }
.btn-sm { padding: .35rem .75rem; font-size: .78rem; height: 2rem; }
/* Alert */
.alert { padding: .75rem 1rem; border-radius: 6px; margin-bottom: 1rem; font-size: .9rem; }
.alert { padding: .75rem 1rem; border-radius: 6px; margin-bottom: 1rem; font-size: .8rem; }
.alert-error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
/* Table */
table { width: 100%; border-collapse: collapse; background: var(--card-bg); border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
th, td { padding: .65rem 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .9rem; }
th { background: var(--bg); font-weight: 600; color: var(--text-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
th, td { padding: .65rem 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .8rem; }
th { background: var(--bg); font-weight: 600; color: var(--text-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; }
tr:last-child td { border-bottom: none; }
code { background: var(--bg); padding: .15rem .4rem; border-radius: 4px; font-size: .85rem; word-break: break-all; }
code { background: var(--bg); padding: .15rem .4rem; border-radius: 4px; font-size: .78rem; word-break: break-all; }
.inline { display: inline; }
/* Section */
@@ -88,7 +88,7 @@ code { background: var(--bg); padding: .15rem .4rem; border-radius: 4px; font-si
.card { display: block; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 1.25rem; transition: box-shadow .15s; }
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.06); text-decoration: none; }
.card h3 { margin-bottom: .5rem; }
.stats { display: flex; gap: .75rem; font-size: .85rem; color: var(--text-muted); flex-wrap: wrap; }
.stats { display: flex; gap: .75rem; font-size: .78rem; color: var(--text-muted); flex-wrap: wrap; }
.stat { white-space: nowrap; }
/* Dashboard cards */
@@ -118,7 +118,7 @@ code { background: var(--bg); padding: .15rem .4rem; border-radius: 4px; font-si
.postcard-info { display: flex; flex-direction: column; gap: .15rem; font-size: .9rem; }
/* Badge */
.badge { display: inline-block; padding: .1rem .4rem; border-radius: 999px; font-size: .7rem; font-weight: 600; color: #fff; background: var(--text-muted); white-space: nowrap; line-height: 1.4; align-self: center; }
.badge { display: inline-block; padding: .1rem .4rem; border-radius: 999px; font-size: .65rem; font-weight: 600; color: #fff; background: var(--text-muted); white-space: nowrap; line-height: 1.4; align-self: center; }
.badge-sent { background: var(--sent); }
.badge-delivered { background: var(--delivered); }
.badge-received { background: var(--received); }
@@ -126,20 +126,20 @@ code { background: var(--bg); padding: .15rem .4rem; border-radius: 4px; font-si
/* Detail page */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.5rem; }
.detail-images { display: flex; flex-direction: column; gap: 1.5rem; }
.image-block h3 { margin-bottom: .5rem; font-size: .95rem; }
.image-block h3 { margin-bottom: .5rem; font-size: .85rem; }
.detail-img { width: 100%; max-width: 400px; border-radius: 8px; border: 1px solid var(--border); }
.detail-img.placeholder { display: flex; align-items: center; justify-content: center; height: 200px; background: var(--bg); color: var(--text-muted); font-size: .95rem; }
.detail-img.placeholder { display: flex; align-items: center; justify-content: center; height: 200px; background: var(--bg); color: var(--text-muted); font-size: .85rem; }
.upload-form { margin-top: .5rem; display: flex; gap: .5rem; align-items: center; }
.upload-form input[type="file"] { font-size: .85rem; min-width: 0; max-width: 260px; }
.upload-form input[type="file"] { font-size: .78rem; min-width: 0; max-width: 260px; }
.upload-form .btn { white-space: nowrap; flex-shrink: 0; }
.detail-meta dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; }
.detail-meta dt { font-weight: 600; font-size: .85rem; color: var(--text-muted); }
.detail-meta dd { font-size: .95rem; }
.detail-notes { margin-top: .75rem; padding: .5rem .75rem; background: var(--bg); border-radius: 6px; font-size: .88rem; color: var(--text-muted); white-space: pre-wrap; word-break: break-word; }
.detail-meta dt { font-weight: 600; font-size: .78rem; color: var(--text-muted); }
.detail-meta dd { font-size: .85rem; }
.detail-notes { margin-top: .75rem; padding: .5rem .75rem; background: var(--bg); border-radius: 6px; font-size: .8rem; color: var(--text-muted); white-space: pre-wrap; word-break: break-word; }
/* Tabs */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 1rem; }
.tab { padding: .5rem 1.25rem; border: none; background: none; cursor: pointer; font-size: .9rem; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab { padding: .5rem 1.25rem; border: none; background: none; cursor: pointer; font-size: .8rem; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tab:hover { color: var(--primary); }
@@ -148,8 +148,8 @@ code { background: var(--bg); padding: .15rem .4rem; border-radius: 4px; font-si
.dash-stat-card { display: flex; align-items: center; gap: .75rem; background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.25rem; flex: 1; min-width: 140px; }
.dash-stat-icon { font-size: 1.5rem; }
.dash-stat-body { display: flex; flex-direction: column; }
.dash-stat-value { font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
.dash-stat-label { font-size: .75rem; color: var(--text-muted); }
.dash-stat-value { font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.dash-stat-label { font-size: .68rem; color: var(--text-muted); }
.dash-sent { color: var(--sent); }
.dash-delivered { color: var(--delivered); }
.dash-received { color: var(--received); }
@@ -210,13 +210,13 @@ code { background: var(--bg); padding: .15rem .4rem; border-radius: 4px; font-si
.postcard-row-img { flex-shrink: 0; width: 56px; height: 56px; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.postcard-row-img img { width: 100%; height: 100%; object-fit: cover; }
.postcard-row-img .placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--bg); font-size: 1.2rem; }
.postcard-row-info { flex: 1; display: flex; align-items: center; gap: .75rem; min-width: 0; font-size: .9rem; }
.postcard-row-info { flex: 1; display: flex; align-items: center; gap: .75rem; min-width: 0; font-size: .82rem; }
.postcard-row-info strong { white-space: nowrap; }
.postcard-row-info span { white-space: nowrap; color: var(--text-muted); }
.postcard-row-action { flex-shrink: 0; }
.postcard-row-date { font-size: .78rem; color: var(--text-muted); white-space: nowrap; }
.postcard-row-detail { display: flex; flex-direction: column; gap: 0; font-size: .85rem; color: var(--text-muted); }
.postcard-row-notes { font-size: .8rem; color: var(--text-muted); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.postcard-row-date { font-size: .72rem; color: var(--text-muted); white-space: nowrap; }
.postcard-row-detail { display: flex; flex-direction: column; gap: 0; font-size: .78rem; color: var(--text-muted); }
.postcard-row-notes { font-size: .72rem; color: var(--text-muted); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-title-row { display: flex; align-items: center; gap: .75rem; }
.detail-title-row h1 { margin: 0; }
.btn-back { padding: .35rem .6rem; font-size: 1rem; text-decoration: none; }