chore: sync

This commit is contained in:
2026-03-18 22:06:17 +08:00
parent 9b04338e5f
commit 7cb7aeabcb
28 changed files with 3634 additions and 0 deletions

View File

@@ -0,0 +1,334 @@
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Source+Sans+3:wght@300;400;600&display=swap');
:root {
--bg-1: #f8f5f2;
--bg-2: #e9f0f7;
--bg-3: #f4eaf1;
--glass: rgba(255, 255, 255, 0.55);
--glass-strong: rgba(255, 255, 255, 0.72);
--line: rgba(255, 255, 255, 0.35);
--text: #2c2b2d;
--muted: #6c6870;
--accent: #b49acb;
--accent-2: #91a8d0;
--shadow: 0 20px 50px rgba(33, 33, 40, 0.12);
--radius: 14px;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
font-family: 'Source Sans 3', sans-serif;
color: var(--text);
background: radial-gradient(circle at top, var(--bg-2), transparent 60%),
radial-gradient(circle at 10% 20%, var(--bg-3), transparent 55%),
linear-gradient(140deg, var(--bg-1), #fefefe 65%);
}
h1,
h2,
h3,
h4 {
font-family: 'Playfair Display', serif;
margin: 0;
}
p {
margin: 0;
}
.app {
display: flex;
flex-direction: column;
min-height: 100vh;
padding: 28px 5vw 36px;
}
.top-bar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
padding: 20px 26px;
background: var(--glass);
border-radius: var(--radius);
border: 1px solid var(--line);
box-shadow: var(--shadow);
backdrop-filter: blur(18px);
position: sticky;
top: 20px;
z-index: 10;
}
.brand {
display: flex;
gap: 16px;
align-items: center;
}
.brand h1 {
font-size: 26px;
letter-spacing: 1px;
}
.brand p {
color: var(--muted);
font-size: 14px;
}
.brand-mark {
width: 46px;
height: 46px;
border-radius: 16px;
background: linear-gradient(140deg, var(--accent), var(--accent-2));
box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.6);
}
.top-actions {
display: flex;
gap: 12px;
}
button {
border: none;
cursor: pointer;
font-family: 'Source Sans 3', sans-serif;
padding: 10px 18px;
border-radius: 12px;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
button:hover {
transform: translateY(-1px);
}
button.primary {
background: linear-gradient(135deg, var(--accent), var(--accent-2));
color: white;
box-shadow: 0 10px 30px rgba(145, 168, 208, 0.35);
}
button.ghost {
background: rgba(255, 255, 255, 0.6);
color: var(--text);
border: 1px solid var(--line);
}
.main-content {
flex: 1;
padding: 28px 0;
}
.footer {
display: flex;
justify-content: space-between;
color: var(--muted);
font-size: 13px;
}
.footer-mail {
color: var(--accent-2);
text-decoration: none;
font-weight: 600;
}
.footer-mail:hover {
text-decoration: underline;
}
.page-card {
background: var(--glass);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 26px;
box-shadow: var(--shadow);
backdrop-filter: blur(16px);
}
.grid {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 20px;
align-items: stretch;
}
.product-card {
display: flex;
flex-direction: column;
gap: 12px;
padding: 18px;
border-radius: 14px;
background: var(--glass-strong);
border: 1px solid var(--line);
box-shadow: 0 12px 30px rgba(33, 33, 40, 0.1);
height: 100%;
}
.product-card img {
width: 100%;
height: 140px;
object-fit: cover;
border-radius: 12px;
}
.product-meta {
display: flex;
justify-content: space-between;
align-items: baseline;
}
.product-price {
font-weight: 600;
color: var(--accent-2);
}
.badge {
padding: 4px 10px;
border-radius: 10px;
font-size: 12px;
background: rgba(255, 255, 255, 0.7);
}
.admin-grid {
display: grid;
grid-template-columns: 320px 1fr;
gap: 24px;
}
.detail-layout {
display: grid;
grid-template-columns: 1.1fr 1fr;
gap: 24px;
}
.detail-image {
width: 100%;
height: 360px;
object-fit: cover;
border-radius: 16px;
}
.detail-actions {
display: flex;
gap: 12px;
margin-top: 18px;
}
.buy-button {
background: linear-gradient(135deg, var(--accent), var(--accent-2));
color: white;
padding: 12px 22px;
border-radius: 12px;
}
.form-field {
display: flex;
flex-direction: column;
gap: 6px;
margin-bottom: 12px;
}
.form-field input,
.form-field textarea {
border-radius: 14px;
border: 1px solid var(--line);
background: rgba(255, 255, 255, 0.7);
padding: 10px 12px;
font-family: 'Source Sans 3', sans-serif;
}
.form-field textarea {
min-height: 120px;
resize: vertical;
}
.admin-actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.table {
width: 100%;
border-collapse: collapse;
}
.table th,
.table td {
text-align: left;
padding: 12px;
font-size: 14px;
}
.table tr {
border-bottom: 1px solid var(--line);
}
.tag {
font-size: 12px;
color: var(--muted);
}
.markdown {
font-size: 13px;
color: var(--muted);
line-height: 1.6;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
}
@media (max-width: 900px) {
.app {
padding: 18px 4vw 28px;
}
.top-bar {
flex-direction: column;
align-items: flex-start;
padding: 16px 18px;
}
.grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
}
.admin-grid {
grid-template-columns: 1fr;
}
.detail-layout {
grid-template-columns: 1fr;
}
.detail-image {
height: 240px;
}
.footer {
flex-direction: column;
gap: 8px;
}
.page-card {
padding: 18px;
}
.product-card {
padding: 14px;
}
.product-card img {
height: 120px;
}
.markdown {
-webkit-line-clamp: 2;
}
}