| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- @font-face {
- font-family: "Pacifico";
- src: url("../fonts/Pacifico-Regular.woff2") format("woff2");
- font-weight: normal;
- font-style: normal;
- font-display: swap;
- }
- :root {
- /* 莫兰迪低饱和亮色主题 */
- --bg: #faf8f5;
- --panel: #ffffff;
- --panel-soft: #f5f3f0;
- --text: #2d2a26;
- --muted: #6b665e;
- --accent: #9c7c75;
- --accent-2: #7a8b9c;
- --border: rgba(45,42,38,0.08);
- --pink-soft: #f7f1f2;
- --cream-soft: #fef9f3;
- }
- * { box-sizing: border-box; }
- body {
- margin: 0;
- background: var(--bg);
- color: var(--text);
- font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
- line-height: 1.8;
- 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; }
- .site-title {
- display: flex;
- align-items: center;
- gap: 12px;
- font-family: "Pacifico", cursive;
- font-size: 1.8rem;
- font-weight: 500;
- color: var(--text);
- letter-spacing: 0.02em;
- text-shadow: 2px 2px 4px rgba(156, 124, 117, 0.15);
- }
- .site-title a {
- display: flex;
- align-items: center;
- gap: 12px;
- text-decoration: none;
- }
- .site-title a:hover {
- color: var(--accent);
- text-shadow: 2px 2px 6px rgba(156, 124, 117, 0.25);
- }
- .site-logo {
- width: 64px;
- height: 64px;
- border-radius: 50%;
- object-fit: cover;
- }
- .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); }
- .hero { padding: 28px 24px; margin-bottom: 24px; background: linear-gradient(135deg, var(--pink-soft-2) 0%, var(--green-soft) 100%); border: 1px solid var(--border); }
- .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;
- }
- .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 {
- 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 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; }
- .article h1 {
- margin-bottom: 12px;
- font-family: "Noto Serif SC", "Source Han Serif CN", "Songti SC", "SimSun", serif;
- font-size: 1.8rem;
- letter-spacing: -0.03em;
- font-weight: 700;
- }
- .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; }
- .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; }
- }
|