:root {
  --bg: #f7f8fb;
  --bg-card: #ffffff;
  --text: #1c2230;
  --text-dim: #5c6880;
  --line: #e3e7ef;
  --accent: #3b6fe0;
  --accent-2: #2fae94;
  --shadow: 0 1px 3px rgba(20, 30, 60, .06), 0 8px 24px rgba(20, 30, 60, .05);
  /* 代码高亮（pygments/codehilite） */
  --hl-kw: #cf222e;
  --hl-str: #0a3069;
  --hl-com: #6e7781;
  --hl-num: #0550ae;
  --hl-fn: #8250df;
  --hl-bi: #953800;
}
/* 深色主题变量：跟随系统（未手动指定 light 时）或手动 data-theme=dark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1220;
    --bg-card: #151c2e;
    --text: #e8ecf4;
    --text-dim: #9aa6bd;
    --line: #232c42;
    --accent: #7fa8ff;
    --accent-2: #8fd8c8;
    --shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --hl-kw: #ff7b72;
    --hl-str: #a5d6ff;
    --hl-com: #8b949e;
    --hl-num: #79c0ff;
    --hl-fn: #d2a8ff;
    --hl-bi: #ffa657;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1220;
  --bg-card: #151c2e;
  --text: #e8ecf4;
  --text-dim: #9aa6bd;
  --line: #232c42;
  --accent: #7fa8ff;
  --accent-2: #8fd8c8;
  --shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --hl-kw: #ff7b72;
  --hl-str: #a5d6ff;
  --hl-com: #8b949e;
  --hl-num: #79c0ff;
  --hl-fn: #d2a8ff;
  --hl-bi: #ffa657;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}
.wrap { max-width: 920px; margin: 0 auto; padding: 0 1.5rem; }

/* 顶栏 */
header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 3.5rem;
}
.logo {
  font-weight: 700; font-size: 1.05rem; text-decoration: none;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: .95rem;
  margin-left: 1.4rem; transition: color .15s;
}
.nav-links a:hover { color: var(--text); }
.theme-btn {
  background: none; border: none; cursor: pointer;
  font-size: 1rem; margin-left: 1.2rem; padding: 0;
  vertical-align: middle; line-height: 1;
}

/* Hero */
.hero { padding: 5.5rem 0 4rem; }
.hero .hi { color: var(--accent); font-size: 1rem; letter-spacing: .1em; }
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); line-height: 1.25; margin: .5rem 0 1rem; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--text-dim); max-width: 36em; }
.hero .actions { margin-top: 2rem; }
.btn {
  display: inline-block; text-decoration: none; font-size: .95rem;
  padding: .55em 1.4em; border-radius: 8px; margin-right: .8rem;
  transition: transform .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); opacity: .9; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }

/* 分节 */
section { padding: 3.5rem 0; border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 2rem; }
.sec-head h2 { font-size: 1.5rem; }
.sec-head span { color: var(--text-dim); font-size: .9rem; }

/* 卡片 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.4rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: .6rem;
  transition: transform .15s;
}
.card:hover { transform: translateY(-2px); }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--text-dim); font-size: .92rem; flex: 1; }
.card .emoji { font-size: 1.6rem; line-height: 1; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  font-size: .75rem; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 999px; padding: .15em .8em;
}
.card.placeholder { border-style: dashed; box-shadow: none; opacity: .75; }

/* 列表（博客/旅行） */
.post-list { list-style: none; }
.post-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1rem .2rem; border-bottom: 1px dashed var(--line);
}
.post-list a { color: var(--text); text-decoration: none; }
.post-list a:hover { color: var(--accent); }
.post-list time { color: var(--text-dim); font-size: .85rem; white-space: nowrap; }
.empty-note {
  margin-top: 1.2rem; color: var(--text-dim); font-size: .9rem;
  border-left: 3px solid var(--accent-2); padding-left: .9rem;
}

/* 关于 */
.about { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; }
.about .text { flex: 1; min-width: 260px; color: var(--text-dim); }
.about .text strong { color: var(--text); }
.links a { color: var(--accent); text-decoration: none; margin-right: 1.2rem; }
.links a:hover { text-decoration: underline; }

/* 页脚 */
footer {
  border-top: 1px solid var(--line); padding: 2rem 0 2.5rem;
  color: var(--text-dim); font-size: .85rem; text-align: center;
}
footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--text); }

/* 内页头部 */
.page-head { padding: 3.5rem 0 0; }
.page-head h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.page-head p { color: var(--text-dim); margin-top: .4rem; }
.crumb {
  display: inline-block; margin-top: 2rem; color: var(--text-dim);
  text-decoration: none; font-size: .9rem;
}
.crumb:hover { color: var(--accent); }
.sec-head .more { margin-left: auto; font-size: .85rem; color: var(--accent); text-decoration: none; }
.sec-head .more:hover { text-decoration: underline; }

/* 标签筛选 */
.filter-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 .5rem; }
.filter-tags .tag { cursor: pointer; border: none; font-family: inherit; }
.filter-tags .tag.active { background: var(--accent); color: #fff; }

/* 加载/出错/空态 */
.state-note { color: var(--text-dim); padding: 2rem 0; font-size: .95rem; }
.state-note.error { color: #c0564f; }

/* 卡片补充：图片、评分、元信息 */
.card .thumb {
  width: calc(100% + 2.8rem); margin: -1.4rem -1.4rem .4rem;
  height: 160px; object-fit: cover;
  border-radius: 12px 12px 0 0; border-bottom: 1px solid var(--line);
}
.stars { color: #e8a33d; font-size: .85rem; letter-spacing: .1em; }
.meta { color: var(--text-dim); font-size: .85rem; }
.card .links-row { display: flex; gap: 1rem; font-size: .85rem; }
.card .links-row a { color: var(--accent); text-decoration: none; }
.card .links-row a:hover { text-decoration: underline; }

/* 文章/游记正文 */
.article { padding: 3rem 0 4rem; max-width: 720px; }
.article h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); line-height: 1.3; margin-bottom: .6rem; }
.article .meta { margin-bottom: 2.2rem; }
.prose { color: var(--text); }
.prose h2 { margin: 2rem 0 .8rem; font-size: 1.35rem; }
.prose h3 { margin: 1.6rem 0 .6rem; font-size: 1.1rem; }
.prose p { margin: .9rem 0; }
.prose ul, .prose ol { margin: .9rem 0; padding-left: 1.6em; }
.prose li { margin: .3rem 0; }
.prose a { color: var(--accent); }
.prose blockquote {
  margin: 1.2rem 0; padding: .2rem 1.1rem; color: var(--text-dim);
  border-left: 3px solid var(--accent-2);
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em; background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-radius: 5px; padding: .12em .4em;
}
.prose pre {
  margin: 1.2rem 0; padding: 1rem 1.2rem; overflow-x: auto;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 10px;
}
.prose pre code { background: none; padding: 0; font-size: .85rem; }
.prose img { max-width: 100%; border-radius: 10px; }
.prose table { border-collapse: collapse; margin: 1.2rem 0; width: 100%; }
.prose th, .prose td { border: 1px solid var(--line); padding: .45em .8em; font-size: .92rem; }
.prose th { background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* 游记相册 */
.photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .8rem; margin: 1.5rem 0;
}
.photo-grid img {
  width: 100%; height: 150px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line);
}

/* 代码高亮（token 颜色跟随主题变量） */
.highlight .k, .highlight .kn, .highlight .kd, .highlight .kc, .highlight .kt,
.highlight .kr, .highlight .ow { color: var(--hl-kw); }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sd,
.highlight .se, .highlight .si, .highlight .sx { color: var(--hl-str); }
.highlight .c, .highlight .c1, .highlight .cm, .highlight .cs, .highlight .ch { color: var(--hl-com); font-style: italic; }
.highlight .m, .highlight .mi, .highlight .mf, .highlight .mh, .highlight .mo { color: var(--hl-num); }
.highlight .nf, .highlight .nc, .highlight .nd, .highlight .fm { color: var(--hl-fn); }
.highlight .nb, .highlight .bp, .highlight .nt, .highlight .na { color: var(--hl-bi); }

/* 站内搜索 */
.search-box {
  width: 100%; max-width: 420px; font: inherit; font-size: .95rem;
  color: var(--text); background: var(--bg-card);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .5em 1.2em; margin-top: 1.5rem;
}
.search-box:focus { outline: none; border-color: var(--accent); }

/* 博客按年归档 */
.year-head {
  font-size: 1.05rem; color: var(--text-dim);
  margin: 2.2rem 0 .3rem; letter-spacing: .05em;
}

/* 文章页导航（上一篇/下一篇） */
.post-nav {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px dashed var(--line);
  font-size: .92rem;
}
.post-nav a { color: var(--accent); text-decoration: none; max-width: 45%; }
.post-nav a:hover { text-decoration: underline; }

/* 目录 */
.toc {
  margin: 1.5rem 0; padding: 1rem 1.4rem;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 10px;
  font-size: .92rem;
}
.toc b { display: block; margin-bottom: .4rem; color: var(--text-dim); font-weight: 600; }
.toc ul { list-style: none; }
.toc li.toc-h3 { padding-left: 1.2em; }
.toc a { color: var(--text); text-decoration: none; line-height: 1.9; }
.toc a:hover { color: var(--accent); }

/* 花园数据 */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem; margin: 2rem 0;
}
.stat-tile {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 1.1rem 1.3rem;
}
.stat-tile .num {
  font-size: 1.7rem; font-weight: 700; line-height: 1.2;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-tile .label { color: var(--text-dim); font-size: .85rem; margin-top: .2rem; }

.heatmap-wrap { overflow-x: auto; padding-bottom: .5rem; }
.heatmap {
  display: grid; grid-auto-flow: column;
  grid-template-rows: repeat(7, 12px); gap: 3px; width: max-content;
}
.hm-cell {
  width: 12px; height: 12px; border-radius: 3px;
  background: color-mix(in srgb, var(--line) 55%, transparent);
}
.hm-cell.l1 { background: color-mix(in srgb, var(--accent-2) 30%, transparent); }
.hm-cell.l2 { background: color-mix(in srgb, var(--accent-2) 55%, transparent); }
.hm-cell.l3 { background: color-mix(in srgb, var(--accent-2) 80%, transparent); }
.hm-cell.l4 { background: var(--accent-2); }
.hm-legend {
  display: flex; align-items: center; gap: .35rem;
  color: var(--text-dim); font-size: .78rem; margin-top: .6rem;
}

/* 浇水按钮 */
.water-row { margin-top: 2.5rem; text-align: center; }
.water-btn {
  font: inherit; font-size: 1rem; cursor: pointer;
  padding: .6em 1.6em; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-card); color: var(--text);
  transition: transform .15s, border-color .15s;
}
.water-btn:hover { transform: translateY(-1px); border-color: var(--accent-2); }
.water-btn.watered { border-color: var(--accent-2); color: var(--accent-2); cursor: default; }
.water-note { color: var(--text-dim); font-size: .8rem; margin-top: .5rem; }

/* 图片灯箱 */
#lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 10, 18, .88);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem; cursor: zoom-out;
}
#lightbox img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 8px; box-shadow: 0 8px 40px rgba(0, 0, 0, .5);
}
.photo-grid img, .card .thumb, .prose img { cursor: zoom-in; }

/* 日常（兼容 moments 旧类名） */
.moment {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 1.1rem 1.4rem; margin-bottom: 1rem;
}
.moment time { color: var(--text-dim); font-size: .82rem; display: block; margin-bottom: .3rem; }
.moment .prose p { margin: .3rem 0; }

/* 2026 视觉系统：纸张、苔藓与暖金 */
:root {
  --bg: #f3f1e8;
  --bg-card: #fbfaf4;
  --text: #18312b;
  --text-dim: #68746b;
  --line: #d9d8ca;
  --accent: #1e6b52;
  --accent-2: #bf7a37;
  --forest: #123e33;
  --moss: #8fa879;
  --sun: #e4ad62;
  --paper: #fbfaf4;
  --shadow: 0 18px 45px rgba(38, 57, 45, .08);
  --shadow-hover: 0 24px 54px rgba(28, 57, 44, .14);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101714;
    --bg-card: #17221d;
    --text: #e9ebdf;
    --text-dim: #a3aea5;
    --line: #2d3b34;
    --accent: #8bc7a7;
    --accent-2: #e5ad69;
    --forest: #b5dbc5;
    --moss: #809c75;
    --sun: #e5ad69;
    --paper: #17221d;
    --shadow: 0 18px 45px rgba(0, 0, 0, .22);
    --shadow-hover: 0 24px 54px rgba(0, 0, 0, .34);
  }
}
:root[data-theme="dark"] {
  --bg: #101714;
  --bg-card: #17221d;
  --text: #e9ebdf;
  --text-dim: #a3aea5;
  --line: #2d3b34;
  --accent: #8bc7a7;
  --accent-2: #e5ad69;
  --forest: #b5dbc5;
  --moss: #809c75;
  --sun: #e5ad69;
  --paper: #17221d;
  --shadow: 0 18px 45px rgba(0, 0, 0, .22);
  --shadow-hover: 0 24px 54px rgba(0, 0, 0, .34);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 9% 6%, color-mix(in srgb, var(--sun) 13%, transparent), transparent 24rem),
    radial-gradient(circle at 92% 25%, color-mix(in srgb, var(--moss) 13%, transparent), transparent 28rem),
    var(--bg);
  letter-spacing: .005em;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .32;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 20%, transparent) .6px, transparent .6px);
  background-size: 8px 8px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.wrap { max-width: 1120px; padding-inline: clamp(1.15rem, 4vw, 2rem); }

header {
  border-bottom-color: transparent;
  transition: background .2s, box-shadow .2s, border-color .2s;
}
header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(25, 48, 38, .05);
}
.nav { height: 4.4rem; gap: 2rem; }
.logo {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--text);
  background: none;
  -webkit-text-fill-color: currentColor;
  letter-spacing: 0;
}
.logo-mark {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border-radius: 50% 50% 48% 52% / 46% 46% 54% 54%;
  background: var(--forest);
  color: var(--bg);
  font: 700 .68rem/1 Georgia, serif;
  letter-spacing: .08em;
  transform: rotate(-5deg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bg) 16%, transparent);
}
.logo > span:last-child { display: grid; line-height: 1; }
.logo b { font: 600 .92rem/1 Georgia, "Songti SC", serif; letter-spacing: .04em; }
.logo small { margin-top: .25rem; color: var(--text-dim); font-size: .58rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; }
.nav-links a {
  position: relative;
  margin-left: .25rem;
  padding: .45rem .7rem;
  border-radius: 999px;
  font-size: .88rem;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--forest);
  background: color-mix(in srgb, var(--moss) 16%, transparent);
}
.theme-btn {
  width: 2.1rem;
  height: 2.1rem;
  margin-left: .45rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: color-mix(in srgb, var(--bg-card) 76%, transparent);
}

.hero { padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(4rem, 8vw, 7rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.live-dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #54a270;
  box-shadow: 0 0 0 .32rem color-mix(in srgb, #54a270 15%, transparent);
}
.hero h1 {
  max-width: 700px;
  margin: 1.1rem 0 1.35rem;
  font: 600 clamp(2.65rem, 6.5vw, 5.25rem)/1.08 Georgia, "Songti SC", "STSong", serif;
  letter-spacing: -.045em;
}
.hero h1 em { color: var(--accent-2); background: none; -webkit-text-fill-color: currentColor; }
.hero p { max-width: 41rem; font-size: 1rem; line-height: 1.9; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }
.hero-note { margin-top: 1.3rem; font-size: .78rem !important; }
.btn {
  margin: 0;
  padding: .68em 1.35em;
  border-radius: 999px;
  font-weight: 600;
}
.btn-primary {
  color: var(--bg);
  background: var(--forest);
  box-shadow: 0 10px 25px color-mix(in srgb, var(--forest) 20%, transparent);
}
.btn-ghost { background: color-mix(in srgb, var(--bg-card) 60%, transparent); }

.garden-orbit {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
  justify-self: end;
}
.garden-orbit::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 48% 52% 56% 44% / 44% 40% 60% 56%;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--moss) 65%, var(--bg-card)), color-mix(in srgb, var(--sun) 38%, var(--bg-card)));
  opacity: .5;
  filter: blur(.2px);
  transform: rotate(-8deg);
}
.orbit { position: absolute; inset: 7%; border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); border-radius: 50%; }
.orbit::after { content: ""; position: absolute; width: .62rem; height: .62rem; border-radius: 50%; background: var(--accent-2); top: 13%; left: 11%; box-shadow: 0 0 0 .35rem color-mix(in srgb, var(--accent-2) 12%, transparent); }
.orbit-two { inset: 21%; border-style: dashed; transform: rotate(32deg); }
.orbit-two::after { background: var(--accent); top: auto; left: auto; right: 0; bottom: 26%; }
.garden-core {
  position: absolute;
  inset: 33%;
  display: grid;
  place-content: center;
  place-items: center;
  border-radius: 50%;
  color: var(--bg);
  background: var(--forest);
  box-shadow: 0 28px 60px color-mix(in srgb, var(--forest) 28%, transparent);
}
.core-mark { font: 500 clamp(2rem, 6vw, 3.7rem)/1 "Songti SC", Georgia, serif; }
.garden-core small { margin-top: .4rem; text-align: center; font-size: .48rem; line-height: 1.35; letter-spacing: .2em; opacity: .66; }
.orbit-note {
  position: absolute;
  display: grid;
  min-width: 5.6rem;
  padding: .7rem .85rem;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-card) 82%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.orbit-note b { color: var(--forest); font: 600 1.2rem/1 Georgia, serif; }
.orbit-note span { margin-top: .25rem; color: var(--text-dim); font-size: .67rem; }
.note-code { left: 0; top: 18%; }
.note-life { right: -2%; top: 33%; }
.note-road { left: 12%; bottom: 7%; }

section.garden-section { padding: clamp(3.8rem, 7vw, 6.5rem) 0; }
.garden-section .sec-head { align-items: flex-end; margin-bottom: 2.3rem; }
.garden-section .sec-head > div { display: grid; }
.section-index {
  color: var(--accent-2) !important;
  font-size: .65rem !important;
  font-weight: 700;
  letter-spacing: .17em;
}
.sec-head h2 {
  font: 600 clamp(1.75rem, 4vw, 2.65rem)/1.15 Georgia, "Songti SC", serif;
  letter-spacing: -.025em;
}
.sec-head .more { font-weight: 600; }
.sec-head .more b { font-weight: 400; }

.grid { gap: 1.25rem; }
.card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 1.65rem;
  box-shadow: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card::after {
  content: "";
  position: absolute;
  width: 7rem;
  height: 7rem;
  right: -4rem;
  bottom: -4rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--moss) 13%, transparent);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.card h3 { font: 600 1.18rem/1.4 Georgia, "Songti SC", serif; }
.card-kicker { color: var(--accent-2); font-size: .62rem; font-weight: 700; letter-spacing: .16em; }
.card .thumb { width: calc(100% + 3.3rem); margin: -1.65rem -1.65rem .55rem; height: 190px; border-radius: 20px 20px 0 0; }
.food-card .photo-count {
  position: absolute; top: 1rem; right: 1rem; z-index: 1;
  padding: .3rem .65rem; border-radius: 999px;
  color: #fff; background: rgba(12, 24, 19, .72);
  font-size: .68rem; backdrop-filter: blur(8px);
}
.food-thumbs {
  display: flex; gap: .45rem; overflow-x: auto;
  margin: -.05rem 0 .2rem; padding: .1rem 0 .25rem;
  scrollbar-width: thin;
}
.food-thumbs img {
  flex: 0 0 3.4rem; width: 3.4rem; height: 3.4rem;
  border: 1px solid var(--line); border-radius: 10px;
  object-fit: cover; cursor: zoom-in;
}

.post-list { border-top: 1px solid var(--line); }
.post-list li {
  min-height: 5.1rem;
  padding: 1.15rem .1rem;
  border-bottom-style: solid;
}
.content-link { display: grid; flex: 1; min-width: 0; }
.content-title { font: 600 1.12rem/1.45 Georgia, "Songti SC", serif; }
.content-summary {
  margin-top: .25rem;
  max-width: 46rem;
  overflow: hidden;
  color: var(--text-dim);
  font-size: .84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-list time { font-size: .75rem; letter-spacing: .04em; }
.trip-row time { max-width: 15rem; text-align: right; white-space: normal; }

.moment {
  position: relative;
  max-width: 760px;
  margin: 0 0 1rem auto;
  padding: 1.45rem 1.7rem 1.45rem 4.2rem;
  border-radius: 6px 22px 22px 22px;
  box-shadow: none;
}
.moment:nth-child(even) { margin-right: auto; margin-left: 0; }
.moment-mark {
  position: absolute;
  left: 1.25rem;
  top: .65rem;
  color: var(--accent-2);
  font: 500 3.2rem/1 Georgia, serif;
}

/* 日常：记录、风景与自动合集 */
.daily-toolbar {
  display: flex; flex-wrap: wrap; gap: .55rem;
  margin: 1.8rem 0 0;
}
.daily-toolbar button, .clear-collection {
  border: 1px solid var(--line); border-radius: 999px;
  padding: .5rem 1rem; color: var(--text-dim);
  background: var(--bg-card); cursor: pointer; font: inherit; font-size: .82rem;
}
.daily-toolbar button.active { color: var(--bg); border-color: var(--forest); background: var(--forest); }
.collection-section { padding: 3.5rem 0 2.5rem; }
.collection-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem;
}
.collection-card {
  overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 20px;
  color: var(--text); background: var(--bg-card); cursor: pointer; text-align: left;
  font: inherit; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.collection-card:hover, .collection-card.active {
  transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow);
}
.collection-cover {
  display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: repeat(2, 70px);
  gap: 2px; height: 142px; background: color-mix(in srgb, var(--moss) 14%, var(--bg));
}
.collection-cover img { width: 100%; height: 100%; object-fit: cover; }
.collection-cover img:first-child { grid-row: 1 / 3; }
.collection-cover img:only-child { grid-column: 1 / 3; }
.collection-cover.collection-empty { display: grid; place-items: center; color: var(--accent-2); font-size: 2rem; }
.collection-card > span { display: grid; padding: 1rem 1.1rem 1.05rem; }
.collection-card b { font: 600 1.08rem/1.3 Georgia, "Songti SC", serif; }
.collection-card small { margin-top: .3rem; color: var(--text-dim); font-size: .72rem; }
.daily-list-head {
  display: flex; align-items: center; gap: .8rem;
  margin: 2.7rem 0 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.daily-list-head h2 { font: 600 1.65rem/1.2 Georgia, "Songti SC", serif; }
.daily-list-head > span { margin-left: auto; color: var(--text-dim); font-size: .78rem; }
.clear-collection { padding: .3rem .7rem; color: var(--accent); }
.daily-list { display: grid; gap: 1rem; }
.daily-entry.moment {
  width: 100%; max-width: none; margin: 0; padding: 1.35rem;
  border-radius: 18px; box-shadow: none;
}
.daily-entry.kind-scenery { border-color: color-mix(in srgb, var(--moss) 45%, var(--line)); }
.daily-entry-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; }
.daily-entry-head time { margin: 0; }
.daily-kind {
  color: var(--accent); font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.kind-scenery .daily-kind { color: var(--accent-2); }
.daily-title { margin-bottom: .8rem; font: 600 1.25rem/1.4 Georgia, "Songti SC", serif; }
.moment-photos {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 38%);
  gap: .55rem; overflow-x: auto; margin: .8rem 0 1rem; padding-bottom: .35rem;
  scroll-snap-type: x proximity; scrollbar-width: thin;
}
.moment-photos img {
  width: 100%; height: 220px; object-fit: cover; border-radius: 13px;
  border: 1px solid var(--line); cursor: zoom-in; scroll-snap-align: start;
}
.moment-photos img:only-child { width: min(100%, 680px); }
.daily-collections { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.daily-collections span {
  padding: .18rem .6rem; border-radius: 999px;
  color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 10%, transparent);
  font-size: .7rem;
}
.section-moments .daily-entry { max-width: 800px; }
.section-moments .daily-entry:nth-child(even) { margin-left: auto; }

.page-head { position: relative; padding: clamp(4rem, 8vw, 7rem) 0 2.3rem; border-bottom: 1px solid var(--line); }
.page-head::before {
  content: "SHADOW GARDEN / " attr(data-label);
  display: block;
  margin-bottom: .8rem;
  color: var(--accent-2);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .18em;
}
.page-head h1 { font: 600 clamp(2.35rem, 6vw, 4.4rem)/1.05 Georgia, "Songti SC", serif; letter-spacing: -.04em; }
.page-head p { max-width: 44rem; margin-top: 1rem; font-size: 1rem; }
body[data-page="blog"] .page-head::before { content: "SHADOW GARDEN / WRITING"; }
body[data-page="projects"] .page-head::before { content: "SHADOW GARDEN / BUILDS"; }
body[data-page="moments"] .page-head::before { content: "SHADOW GARDEN / DAILY"; }
body[data-page="food"] .page-head::before { content: "SHADOW GARDEN / TASTES"; }
body[data-page="travel"] .page-head::before { content: "SHADOW GARDEN / JOURNEYS"; }
body[data-page="about"] .page-head::before { content: "SHADOW GARDEN / PROFILE"; }
.search-box { padding: .7em 1.3em; margin-top: 2rem; border-radius: 14px; }
.filter-tags { margin-top: 1rem; }
.tag { border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent); }

.article {
  max-width: 790px;
  margin-inline: auto;
  padding-top: 2.2rem;
}
.article h1 { font: 600 clamp(2.1rem, 5vw, 3.7rem)/1.18 Georgia, "Songti SC", serif; letter-spacing: -.035em; }
.article > .meta { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.prose { font-size: 1.02rem; line-height: 1.95; }
.prose h2, .prose h3 { font-family: Georgia, "Songti SC", serif; }
.prose h2 { margin-top: 2.8rem; }
.prose blockquote { padding: .7rem 1.2rem; border-radius: 0 12px 12px 0; background: color-mix(in srgb, var(--moss) 10%, transparent); }
.toc, .stat-tile { border-radius: 18px; box-shadow: none; }
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat-tile { min-height: 7.5rem; display: grid; align-content: center; }
.stat-tile .num { color: var(--forest); background: none; -webkit-text-fill-color: currentColor; font: 600 2rem/1 Georgia, serif; }
.about .text { max-width: 760px; font-size: 1.05rem; }

footer { margin-top: 5rem; padding: 2.7rem 0 3.2rem; background: color-mix(in srgb, var(--bg-card) 50%, transparent); }

@media (max-width: 820px) {
  .nav { height: auto; min-height: 4rem; align-items: flex-start; padding-block: .75rem; }
  .nav-links { max-width: calc(100vw - 7rem); overflow-x: auto; padding-bottom: .15rem; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: 0 0 auto; padding-inline: .6rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .garden-orbit { width: min(90vw, 390px); justify-self: center; }
  .garden-section .sec-head { align-items: flex-start; flex-wrap: wrap; }
  .garden-section .sec-head > span { order: 3; width: 100%; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 1rem; }
  .logo > span:last-child { display: none; }
  .nav-links { max-width: calc(100vw - 4.7rem); }
  .nav-links a { font-size: .8rem; }
  .hero { padding-top: 3.8rem; }
  .hero h1 { font-size: clamp(2.5rem, 13vw, 3.5rem); }
  .garden-orbit { width: 90%; }
  .orbit-note { min-width: 4.8rem; padding: .55rem .65rem; }
  .note-life { right: -5%; }
  .sec-head { gap: .45rem 1rem; }
  .sec-head .more { margin-left: 0; }
  .post-list li { align-items: flex-start; flex-direction: column; gap: .35rem; }
  .trip-row time { max-width: none; text-align: left; }
  .moment { padding-left: 3.4rem; }
  .daily-entry.moment { padding: 1.1rem; }
  .moment-photos { grid-auto-columns: 82%; }
  .moment-photos img { height: 210px; }
  .collection-grid { grid-template-columns: 1fr; }
  .daily-list-head { align-items: flex-start; flex-wrap: wrap; }
  .daily-list-head > span { margin-left: 0; }
  .content-summary { max-width: calc(100vw - 2.2rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
