:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --paper: #ffffff;
  --ink: #252525;
  --muted: #6b6b63;
  --line: #dedbd2;
  --accent: #2f6f5e;
  --accent-soft: #e5f0eb;
  --warm: #b96f3a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Noto Sans SC, Microsoft YaHei, sans-serif;
  line-height: 1.72;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.78);
}
.header-inner, main, .site-footer {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { font-weight: 760; font-size: 22px; letter-spacing: .02em; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.hero {
  padding: 54px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 36px;
  align-items: center;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.12; margin: 0 0 16px; }
.hero p { color: var(--muted); max-width: 680px; margin: 0; font-size: 18px; }
.hero-panel {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 22px;
  border-radius: 6px;
}
.hero-panel img { width: 100%; display: block; border-radius: 4px; border: 1px solid var(--line); }
.section { padding: 28px 0; }
.section h2 { margin: 0 0 18px; font-size: 24px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  min-height: 168px;
}
.card time, .meta { color: var(--muted); font-size: 14px; }
.card h3 { margin: 8px 0 10px; font-size: 20px; line-height: 1.35; }
.card p { margin: 0; color: #4c4c46; }
.note-layout { display: grid; grid-template-columns: minmax(0, 720px) 240px; gap: 42px; padding: 42px 0; align-items: start; }
.article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px;
}
.article h1 { line-height: 1.22; margin: 0 0 8px; font-size: 34px; }
.article h2 { margin-top: 32px; }
.article p, .article li { color: #454540; }
.article code { background: #f0eee8; padding: 2px 6px; border-radius: 4px; }
.sidebar { color: var(--muted); font-size: 14px; }
.sidebar .box { border-left: 3px solid var(--accent); padding-left: 14px; margin-bottom: 22px; }
.list { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.list a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--ink); }
.list a:last-child { border-bottom: 0; }
.list span { color: var(--muted); }
.site-footer { padding: 36px 0 44px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 28px; }
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.not-found-inner { width: min(520px, calc(100% - 40px)); }
.not-found h1 { font-size: 42px; margin-bottom: 8px; }
@media (max-width: 780px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 18px 0; }
  .hero { grid-template-columns: 1fr; padding-top: 38px; }
  .grid { grid-template-columns: 1fr; }
  .note-layout { grid-template-columns: 1fr; }
  .article { padding: 22px; }
}
