|
|
@@ -1,28 +1,36 @@
|
|
|
+:root {
|
|
|
+ /* Botanical academic palette: 优雅复古 + 清新自然 */
|
|
|
+ --bg: #f6f3ee;
|
|
|
+ --panel: #fbf9f6;
|
|
|
+ --panel-soft: #f1ece5;
|
|
|
+ --text: #2f312d;
|
|
|
+ --muted: #6f7168;
|
|
|
|
|
|
+ /* 主强调色:植物绿 */
|
|
|
+ --accent: #426b57;
|
|
|
+ --accent-hover: #355746;
|
|
|
+ --accent-soft: #dce8df;
|
|
|
|
|
|
-:root {
|
|
|
- /* 莫兰迪低饱和亮色主题 */
|
|
|
- --bg: #faf8f5;
|
|
|
- --panel: #ffffff;
|
|
|
- --panel-soft: #f5f3f0;
|
|
|
- --text: #2d2a26;
|
|
|
- --muted: #6b665e;
|
|
|
- --accent: #9c7c75;
|
|
|
- --accent-2: #7a8b9c;
|
|
|
- --border: rgba(45,42,38,0.08);
|
|
|
- /* 新增配色 */
|
|
|
- --rose-50: #fff1f2;
|
|
|
- --rose-100: #ffe4e6;
|
|
|
- --rose-200: #fecdd3;
|
|
|
- --rose-300: #fda4af;
|
|
|
- --blue-50: #f0f9ff;
|
|
|
- --blue-100: #e0f2fe;
|
|
|
- --blue-200: #bae6fd;
|
|
|
- --blue-300: #7dd3fc;
|
|
|
- --green-soft: #d4e8e3;
|
|
|
- --cream-soft: #fef9f3;
|
|
|
+ /* 次级色:雾灰绿 */
|
|
|
+ --accent-2: #8ca395;
|
|
|
+
|
|
|
+ /* 复古暖调 */
|
|
|
+ --warm: #a07c64;
|
|
|
+ --warm-soft: #efe5da;
|
|
|
+
|
|
|
+ --border: rgba(47, 49, 45, 0.08);
|
|
|
+ --shadow: 0 6px 20px rgba(47, 49, 45, 0.05);
|
|
|
+
|
|
|
+ /* 替换原来的 rose / blue 系 */
|
|
|
+ --hero-bg: #ece4da;
|
|
|
+ --hero-tint: #f3ede5;
|
|
|
+ --list-highlight: #e5efe8;
|
|
|
+ --tag-bg: #eef4ef;
|
|
|
+ --tag-border: #d4e2d7;
|
|
|
}
|
|
|
+
|
|
|
* { box-sizing: border-box; }
|
|
|
+
|
|
|
body {
|
|
|
margin: 0;
|
|
|
background: var(--bg);
|
|
|
@@ -32,11 +40,40 @@ body {
|
|
|
font-size: 16px;
|
|
|
letter-spacing: 0.01em;
|
|
|
}
|
|
|
-a { color: var(--accent); text-decoration: none; }
|
|
|
-a:hover { text-decoration: underline; }
|
|
|
-.wrap { width: min(960px, calc(100% - 32px)); margin: 0 auto; }
|
|
|
-.site-header { position: sticky; top: 0; backdrop-filter: blur(8px); background: rgba(255,255,255,0.85); border-bottom: 1px solid var(--border); }
|
|
|
-.header-inner { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; align-items: center; }
|
|
|
+
|
|
|
+a {
|
|
|
+ color: var(--accent);
|
|
|
+ text-decoration: none;
|
|
|
+ transition: color 0.2s ease;
|
|
|
+}
|
|
|
+
|
|
|
+a:hover {
|
|
|
+ color: var(--accent-hover);
|
|
|
+ text-decoration: underline;
|
|
|
+}
|
|
|
+
|
|
|
+.wrap {
|
|
|
+ width: min(960px, calc(100% - 32px));
|
|
|
+ margin: 0 auto;
|
|
|
+}
|
|
|
+
|
|
|
+.site-header {
|
|
|
+ position: sticky;
|
|
|
+ top: 0;
|
|
|
+ backdrop-filter: blur(10px);
|
|
|
+ background: rgba(246, 243, 238, 0.88);
|
|
|
+ border-bottom: 1px solid var(--border);
|
|
|
+ z-index: 10;
|
|
|
+}
|
|
|
+
|
|
|
+.header-inner {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ gap: 24px;
|
|
|
+ padding: 18px 0;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
+
|
|
|
.site-title {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
@@ -46,58 +83,178 @@ a:hover { text-decoration: underline; }
|
|
|
font-weight: 700;
|
|
|
color: var(--text);
|
|
|
letter-spacing: -0.02em;
|
|
|
- text-shadow: 2px 2px 4px rgba(156, 124, 117, 0.15);
|
|
|
+ text-shadow: 1px 1px 0 rgba(160, 124, 100, 0.08);
|
|
|
}
|
|
|
+
|
|
|
.site-title a {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
gap: 12px;
|
|
|
text-decoration: none;
|
|
|
+ color: inherit;
|
|
|
}
|
|
|
+
|
|
|
.site-title a:hover {
|
|
|
color: var(--accent);
|
|
|
- text-shadow: 2px 2px 6px rgba(156, 124, 117, 0.25);
|
|
|
+ text-shadow: 1px 2px 6px rgba(66, 107, 87, 0.12);
|
|
|
}
|
|
|
+
|
|
|
.site-logo {
|
|
|
width: 64px;
|
|
|
height: 64px;
|
|
|
border-radius: 50%;
|
|
|
object-fit: cover;
|
|
|
+ box-shadow: 0 2px 10px rgba(66, 107, 87, 0.08);
|
|
|
}
|
|
|
-.site-tagline { margin: 6px 0 0; color: var(--muted); font-size: 0.95rem; }
|
|
|
-.site-nav { display: flex; gap: 16px; flex-wrap: wrap; }
|
|
|
-.site-nav a { color: var(--text); font-weight: 500; }
|
|
|
-main.wrap { padding: 32px 0 48px; }
|
|
|
-.card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: 0 4px 16px rgba(45,42,38,0.04); }
|
|
|
-.post-item:first-child { background: var(--blue-50); }
|
|
|
-.hero { padding: 28px 24px; margin-bottom: 24px; background: var(--rose-50); border: 1px solid var(--border); }
|
|
|
+
|
|
|
+.site-tagline {
|
|
|
+ margin: 6px 0 0;
|
|
|
+ color: var(--muted);
|
|
|
+ font-size: 0.95rem;
|
|
|
+}
|
|
|
+
|
|
|
+.site-nav {
|
|
|
+ display: flex;
|
|
|
+ gap: 16px;
|
|
|
+ flex-wrap: wrap;
|
|
|
+}
|
|
|
+
|
|
|
+.site-nav a {
|
|
|
+ color: var(--text);
|
|
|
+ font-weight: 500;
|
|
|
+ padding: 4px 2px;
|
|
|
+ position: relative;
|
|
|
+}
|
|
|
+
|
|
|
+.site-nav a:hover {
|
|
|
+ color: var(--accent);
|
|
|
+ text-decoration: none;
|
|
|
+}
|
|
|
+
|
|
|
+.site-nav a::after {
|
|
|
+ content: "";
|
|
|
+ position: absolute;
|
|
|
+ left: 0;
|
|
|
+ bottom: -3px;
|
|
|
+ width: 0;
|
|
|
+ height: 2px;
|
|
|
+ background: var(--accent);
|
|
|
+ transition: width 0.22s ease;
|
|
|
+}
|
|
|
+
|
|
|
+.site-nav a:hover::after {
|
|
|
+ width: 100%;
|
|
|
+}
|
|
|
+
|
|
|
+main.wrap {
|
|
|
+ padding: 32px 0 48px;
|
|
|
+}
|
|
|
+
|
|
|
+.card {
|
|
|
+ background: var(--panel);
|
|
|
+ border: 1px solid var(--border);
|
|
|
+ border-radius: 18px;
|
|
|
+ padding: 24px;
|
|
|
+ box-shadow: var(--shadow);
|
|
|
+}
|
|
|
+
|
|
|
+.hero {
|
|
|
+ padding: 28px 24px;
|
|
|
+ margin-bottom: 24px;
|
|
|
+ background: linear-gradient(180deg, var(--hero-bg) 0%, var(--hero-tint) 100%);
|
|
|
+ border: 1px solid rgba(160, 124, 100, 0.12);
|
|
|
+}
|
|
|
+
|
|
|
.hero h1 {
|
|
|
font-family: "Noto Serif SC", "Source Han Serif CN", "Songti SC", "SimSun", serif;
|
|
|
font-size: 1.8rem;
|
|
|
font-weight: 700;
|
|
|
margin: 0 0 8px;
|
|
|
+ color: var(--text);
|
|
|
+}
|
|
|
+
|
|
|
+.eyebrow {
|
|
|
+ display: inline-block;
|
|
|
+ margin-bottom: 8px;
|
|
|
+ color: var(--warm);
|
|
|
+ font-size: 0.8rem;
|
|
|
+ text-transform: uppercase;
|
|
|
+ letter-spacing: 0.08em;
|
|
|
+ font-weight: 700;
|
|
|
+}
|
|
|
+
|
|
|
+.grid {
|
|
|
+ display: grid;
|
|
|
+ gap: 16px;
|
|
|
+ margin-bottom: 24px;
|
|
|
+}
|
|
|
+
|
|
|
+.three-up {
|
|
|
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
|
+}
|
|
|
+
|
|
|
+.section-card {
|
|
|
+ transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
|
|
|
}
|
|
|
-.eyebrow { display: inline-block; margin-bottom: 8px; color: var(--accent); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
|
|
|
-.grid { display: grid; gap: 16px; margin-bottom: 24px; }
|
|
|
-.three-up { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
|
|
|
-.section-card h2, .post-item h2, .post-item h3 {
|
|
|
+
|
|
|
+.section-card:hover {
|
|
|
+ transform: translateY(-2px);
|
|
|
+ box-shadow: 0 10px 24px rgba(47, 49, 45, 0.06);
|
|
|
+ border-color: rgba(66, 107, 87, 0.14);
|
|
|
+}
|
|
|
+
|
|
|
+.section-card h2,
|
|
|
+.post-item h2,
|
|
|
+.post-item h3 {
|
|
|
margin-top: 0;
|
|
|
color: var(--text);
|
|
|
font-family: "Noto Serif SC", "Source Han Serif CN", "Songti SC", "SimSun", serif;
|
|
|
font-weight: 600;
|
|
|
}
|
|
|
+
|
|
|
.section-card h2 { font-size: 1.2rem; }
|
|
|
.post-item h2 { font-size: 1.15rem; }
|
|
|
.post-item h3 { font-size: 1.05rem; }
|
|
|
-.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
|
|
|
+
|
|
|
+.section-head {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ gap: 16px;
|
|
|
+ margin-bottom: 16px;
|
|
|
+}
|
|
|
+
|
|
|
.section-head h2 {
|
|
|
font-family: "Noto Serif SC", "Source Han Serif CN", "Songti SC", "SimSun", serif;
|
|
|
font-size: 1.2rem;
|
|
|
font-weight: 600;
|
|
|
margin: 0;
|
|
|
}
|
|
|
-.post-list { display: grid; gap: 16px; }
|
|
|
-.meta { color: var(--muted); font-size: 0.9rem; }
|
|
|
+
|
|
|
+.post-list {
|
|
|
+ display: grid;
|
|
|
+ gap: 16px;
|
|
|
+}
|
|
|
+
|
|
|
+.post-item {
|
|
|
+ transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
|
|
|
+}
|
|
|
+
|
|
|
+.post-item:hover {
|
|
|
+ transform: translateY(-1px);
|
|
|
+ border-color: rgba(66, 107, 87, 0.14);
|
|
|
+}
|
|
|
+
|
|
|
+.post-item:first-child {
|
|
|
+ background: var(--list-highlight);
|
|
|
+ border-color: rgba(66, 107, 87, 0.14);
|
|
|
+}
|
|
|
+
|
|
|
+.meta {
|
|
|
+ color: var(--muted);
|
|
|
+ font-size: 0.9rem;
|
|
|
+}
|
|
|
+
|
|
|
.article h1 {
|
|
|
margin-bottom: 12px;
|
|
|
font-family: "Noto Serif SC", "Source Han Serif CN", "Songti SC", "SimSun", serif;
|
|
|
@@ -105,28 +262,116 @@ main.wrap { padding: 32px 0 48px; }
|
|
|
letter-spacing: -0.03em;
|
|
|
font-weight: 700;
|
|
|
}
|
|
|
-.article h2, .article h3, .article h4, .article h5, .article h6 {
|
|
|
+
|
|
|
+.article h2,
|
|
|
+.article h3,
|
|
|
+.article h4,
|
|
|
+.article h5,
|
|
|
+.article h6 {
|
|
|
font-family: "Noto Serif SC", "Source Han Serif CN", "Songti SC", "SimSun", serif;
|
|
|
font-weight: 600;
|
|
|
margin-top: 1.5em;
|
|
|
}
|
|
|
+
|
|
|
.article h2 { font-size: 1.4rem; }
|
|
|
.article h3 { font-size: 1.2rem; }
|
|
|
-.prose :first-child { margin-top: 0; }
|
|
|
-.prose img { max-width: 100%; height: auto; border-radius: 8px; }
|
|
|
-.prose blockquote { margin: 1.2rem 0; padding: 1rem 1.2rem; background: var(--panel-soft); border-left: 3px solid var(--accent); border-radius: 8px; color: var(--text); }
|
|
|
-.prose code { background: var(--panel-soft); padding: 0.2rem 0.4rem; border-radius: 4px; font-size: 0.9em; }
|
|
|
-.prose pre { background: var(--panel-soft); padding: 16px; border-radius: 10px; overflow-x: auto; border: 1px solid var(--border); }
|
|
|
-.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
|
|
|
-.tag { display: inline-flex; padding: 5px 11px; border-radius: 999px; background: var(--panel-soft); color: var(--text); font-size: 0.85rem; border: 1px solid var(--border); font-weight: 500; }
|
|
|
-.tag:first-child { background: var(--rose-50); border-color: var(--rose-200); }
|
|
|
-.site-footer { padding: 0 0 48px; color: var(--muted); font-size: 0.9rem; }
|
|
|
-@media (max-width: 720px) {
|
|
|
- .header-inner, .section-head { flex-direction: column; align-items: flex-start; }
|
|
|
- .card, .hero { padding: 20px; }
|
|
|
- .article h1 { font-size: 1.5rem; }
|
|
|
- .site-title { font-size: 1.4rem; }
|
|
|
- .site-logo { width: 40px; height: 40px; }
|
|
|
- .site-nav { width: 100%; margin-top: 12px; }
|
|
|
- .site-nav a { font-size: 0.9rem; padding: 6px 12px; }
|
|
|
+
|
|
|
+.prose :first-child {
|
|
|
+ margin-top: 0;
|
|
|
}
|
|
|
+
|
|
|
+.prose img {
|
|
|
+ max-width: 100%;
|
|
|
+ height: auto;
|
|
|
+ border-radius: 8px;
|
|
|
+}
|
|
|
+
|
|
|
+.prose blockquote {
|
|
|
+ margin: 1.2rem 0;
|
|
|
+ padding: 1rem 1.2rem;
|
|
|
+ background: var(--panel-soft);
|
|
|
+ border-left: 3px solid var(--accent);
|
|
|
+ border-radius: 8px;
|
|
|
+ color: var(--text);
|
|
|
+}
|
|
|
+
|
|
|
+.prose code {
|
|
|
+ background: var(--panel-soft);
|
|
|
+ padding: 0.2rem 0.4rem;
|
|
|
+ border-radius: 4px;
|
|
|
+ font-size: 0.9em;
|
|
|
+}
|
|
|
+
|
|
|
+.prose pre {
|
|
|
+ background: var(--panel-soft);
|
|
|
+ padding: 16px;
|
|
|
+ border-radius: 10px;
|
|
|
+ overflow-x: auto;
|
|
|
+ border: 1px solid var(--border);
|
|
|
+}
|
|
|
+
|
|
|
+.tags {
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ gap: 8px;
|
|
|
+ margin-top: 12px;
|
|
|
+}
|
|
|
+
|
|
|
+.tag {
|
|
|
+ display: inline-flex;
|
|
|
+ padding: 5px 11px;
|
|
|
+ border-radius: 999px;
|
|
|
+ background: var(--tag-bg);
|
|
|
+ color: var(--accent);
|
|
|
+ font-size: 0.85rem;
|
|
|
+ border: 1px solid var(--tag-border);
|
|
|
+ font-weight: 500;
|
|
|
+}
|
|
|
+
|
|
|
+.tag:first-child {
|
|
|
+ background: var(--warm-soft);
|
|
|
+ border-color: rgba(160, 124, 100, 0.18);
|
|
|
+ color: var(--warm);
|
|
|
+}
|
|
|
+
|
|
|
+.site-footer {
|
|
|
+ padding: 0 0 48px;
|
|
|
+ color: var(--muted);
|
|
|
+ font-size: 0.9rem;
|
|
|
+}
|
|
|
+
|
|
|
+@media (max-width: 720px) {
|
|
|
+ .header-inner,
|
|
|
+ .section-head {
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: flex-start;
|
|
|
+ }
|
|
|
+
|
|
|
+ .card,
|
|
|
+ .hero {
|
|
|
+ padding: 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .article h1 {
|
|
|
+ font-size: 1.5rem;
|
|
|
+ }
|
|
|
+
|
|
|
+ .site-title {
|
|
|
+ font-size: 1.4rem;
|
|
|
+ }
|
|
|
+
|
|
|
+ .site-logo {
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .site-nav {
|
|
|
+ width: 100%;
|
|
|
+ margin-top: 12px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .site-nav a {
|
|
|
+ font-size: 0.9rem;
|
|
|
+ padding: 6px 12px 6px 0;
|
|
|
+ }
|
|
|
+}
|