初步
This commit is contained in:
@@ -0,0 +1,295 @@
|
||||
:root {
|
||||
color-scheme: light;
|
||||
--bg: #f7f5ef;
|
||||
--surface: #fffdf8;
|
||||
--text: #20242a;
|
||||
--muted: #686f78;
|
||||
--line: #ded8cc;
|
||||
--accent: #0f766e;
|
||||
--accent-strong: #14532d;
|
||||
--shadow: 0 14px 45px rgba(58, 51, 38, 0.1);
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
color: var(--text);
|
||||
font-family:
|
||||
Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
|
||||
"Microsoft YaHei", sans-serif;
|
||||
line-height: 1.75;
|
||||
background:
|
||||
linear-gradient(rgba(247, 245, 239, 0.86), rgba(247, 245, 239, 0.95)),
|
||||
url('/images/background.png') center top / cover fixed;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.site-header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 10;
|
||||
border-bottom: 1px solid rgba(222, 216, 204, 0.8);
|
||||
background: rgba(255, 253, 248, 0.88);
|
||||
backdrop-filter: blur(14px);
|
||||
}
|
||||
|
||||
.nav {
|
||||
width: min(1120px, calc(100% - 32px));
|
||||
min-height: 64px;
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
.brand {
|
||||
font-size: 1.05rem;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 18px;
|
||||
color: var(--muted);
|
||||
font-size: 0.94rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.nav-links a:hover,
|
||||
.site-footer a:hover,
|
||||
.section-heading a:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.hero {
|
||||
width: min(1120px, calc(100% - 32px));
|
||||
min-height: 360px;
|
||||
margin: 0 auto;
|
||||
display: grid;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.hero h1 {
|
||||
margin: 0;
|
||||
font-size: clamp(3rem, 8vw, 6.5rem);
|
||||
line-height: 0.95;
|
||||
}
|
||||
|
||||
.hero p {
|
||||
max-width: 620px;
|
||||
margin: 18px 0 0;
|
||||
color: var(--muted);
|
||||
font-size: 1.12rem;
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
margin: 0 0 16px !important;
|
||||
color: var(--accent-strong) !important;
|
||||
font-size: 0.95rem !important;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.content-wrap {
|
||||
width: min(980px, calc(100% - 32px));
|
||||
margin: 0 auto 72px;
|
||||
}
|
||||
|
||||
.content-wrap.narrow {
|
||||
width: min(780px, calc(100% - 32px));
|
||||
}
|
||||
|
||||
.section-heading {
|
||||
display: flex;
|
||||
align-items: end;
|
||||
justify-content: space-between;
|
||||
gap: 20px;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
.section-heading h2,
|
||||
.content-wrap h1 {
|
||||
margin: 0;
|
||||
font-size: 1.8rem;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.section-heading a {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.post-list {
|
||||
display: grid;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.post-card {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
padding: 22px;
|
||||
background: rgba(255, 253, 248, 0.88);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.post-card h2 {
|
||||
margin: 6px 0 8px;
|
||||
font-size: 1.35rem;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.post-card p {
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
time {
|
||||
color: var(--muted);
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.meta-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
margin-top: 14px;
|
||||
}
|
||||
|
||||
.meta-list a {
|
||||
border: 1px solid rgba(15, 118, 110, 0.28);
|
||||
border-radius: 999px;
|
||||
padding: 2px 10px;
|
||||
color: var(--accent);
|
||||
font-size: 0.86rem;
|
||||
background: rgba(236, 253, 245, 0.7);
|
||||
}
|
||||
|
||||
.article {
|
||||
width: min(820px, calc(100% - 32px));
|
||||
margin: 64px auto 84px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
padding: clamp(24px, 5vw, 48px);
|
||||
background: rgba(255, 253, 248, 0.93);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.article-header {
|
||||
margin-bottom: 28px;
|
||||
padding-bottom: 22px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.article-header h1 {
|
||||
margin: 8px 0 0;
|
||||
font-size: clamp(2rem, 6vw, 3.3rem);
|
||||
line-height: 1.14;
|
||||
}
|
||||
|
||||
.prose :where(h2, h3, h4) {
|
||||
margin-top: 2em;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.prose :where(p, ul, ol, blockquote, pre) {
|
||||
margin: 1.1em 0;
|
||||
}
|
||||
|
||||
.prose a {
|
||||
color: var(--accent);
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 3px;
|
||||
}
|
||||
|
||||
.prose img {
|
||||
max-width: 100%;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.prose pre {
|
||||
overflow-x: auto;
|
||||
border-radius: 8px;
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.prose code {
|
||||
font-family: "JetBrains Mono", Consolas, monospace;
|
||||
}
|
||||
|
||||
.archive-list {
|
||||
margin-top: 24px;
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.archive-list a {
|
||||
display: grid;
|
||||
grid-template-columns: 116px 1fr;
|
||||
gap: 16px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
.term-grid {
|
||||
margin-top: 24px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.term-grid a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
padding: 14px 16px;
|
||||
background: rgba(255, 253, 248, 0.9);
|
||||
}
|
||||
|
||||
.site-footer {
|
||||
width: min(1120px, calc(100% - 32px));
|
||||
margin: 0 auto;
|
||||
padding: 32px 0 44px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 18px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.nav {
|
||||
min-height: auto;
|
||||
padding: 14px 0;
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
width: 100%;
|
||||
overflow-x: auto;
|
||||
gap: 14px;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
|
||||
.hero {
|
||||
min-height: 300px;
|
||||
}
|
||||
|
||||
.archive-list a {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.article {
|
||||
margin-top: 32px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user