:root { /* Botanical academic palette: 优雅复古 + 清新自然 */ --bg: #f6f3ee; --panel: #fbf9f6; --panel-soft: #f1ece5; --text: #2f312d; --muted: #6f7168; /* 主强调色:植物绿 */ --accent: #426b57; --accent-hover: #355746; --accent-soft: #dce8df; /* 次级色:雾灰绿 */ --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); 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; 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; gap: 12px; font-family: "Noto Serif SC", "Source Han Serif CN", "Songti SC", "SimSun", serif; font-size: 1.8rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; 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: 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; 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; } .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 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; } .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; 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(--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; } }