/* ==========================================================================
   奶龙小站 — 二次元 / 奶油配色主题
   纯手写 CSS，无外部字体 / 图片 / 框架依赖
   ========================================================================== */

:root {
  --butter: #FFD75E;
  --butter-deep: #F3C33C;
  --cream: #FFFDF7;
  --cream-2: #FFF8E7;
  --peach: #FFB7A5;
  --matcha: #6FB08B;
  --matcha-deep: #4E8F5C;
  --ink: #2B2B33;
  --ink-soft: #55505C;
  --muted: #857F8C;
  --line: #EFE4C9;
  --surface: #FFFFFF;
  --shadow: 0 2px 0 var(--line), 0 10px 28px -18px rgba(64, 48, 16, .45);
  --radius: 18px;
  --wrap: 1080px;
}

html[data-theme="dark"] {
  --cream: #17181D;
  --cream-2: #1D1E25;
  --ink: #ECE9F2;
  --ink-soft: #CFC9D8;
  --muted: #9B94A6;
  --line: #33323C;
  --surface: #1F2028;
  --butter: #FFDF7A;
  --peach: #FFC0B0;
  --matcha: #86C6A1;
  --shadow: 0 2px 0 var(--line), 0 14px 30px -20px rgba(0, 0, 0, .9);
}

@media (prefers-color-scheme: dark) {
  html[data-theme=""] {
    --cream: #17181D;
    --cream-2: #1D1E25;
    --ink: #ECE9F2;
    --ink-soft: #CFC9D8;
    --muted: #9B94A6;
    --line: #33323C;
    --surface: #1F2028;
    --butter: #FFDF7A;
    --peach: #FFC0B0;
    --matcha: #86C6A1;
    --shadow: 0 2px 0 var(--line), 0 14px 30px -20px rgba(0, 0, 0, .9);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 215, 94, .16), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(255, 183, 165, .14), transparent 38%),
    radial-gradient(circle at 50% 120%, rgba(111, 176, 139, .10), transparent 55%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16.5px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a {
  color: var(--matcha-deep);
  text-decoration: none;
  text-underline-offset: 3px;
}

html[data-theme="dark"] a { color: var(--matcha); }

a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--butter);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--butter);
  color: #2b2b33;
  padding: .5rem 1rem;
  z-index: 99;
}

.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px dashed var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.brand:hover { text-decoration: none; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream-2);
  border: 1px solid var(--line);
  transition: transform .35s cubic-bezier(.34, 1.6, .5, 1);
}

.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.06); }

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.06rem; letter-spacing: .04em; }
.brand-text small { color: var(--muted); font-size: .72rem; letter-spacing: .18em; }

.site-nav {
  display: flex;
  align-items: center;
  gap: .15rem;
  flex-wrap: wrap;
}

.nav-link {
  position: relative;
  padding: .38rem .72rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: .92rem;
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--cream-2);
  color: var(--ink);
  text-decoration: none;
}

.nav-link.is-active {
  color: var(--ink);
  font-weight: 600;
  background: var(--butter);
  box-shadow: 0 1px 0 var(--butter-deep);
}

.theme-toggle {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: .95rem;
  transition: transform .2s ease, background .2s ease;
}

.theme-toggle:hover { transform: translateY(-2px) rotate(8deg); }
.t-moon { display: none; }
html[data-theme="dark"] .t-sun { display: none; }
html[data-theme="dark"] .t-moon { display: inline; }

/* -------------------------------------------------------------------- hero */
.hero { padding: clamp(2rem, 6vw, 4.2rem) 0 clamp(1rem, 3vw, 2rem); }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0 0 1rem;
  padding: .3rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .08em;
}

.sparkle { width: 14px; height: 14px; color: var(--butter-deep); }

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 1.2rem + 3.4vw, 3.15rem);
  line-height: 1.22;
  letter-spacing: -.01em;
}

.hl {
  position: relative;
  display: inline-block;
  padding-inline: .12em;
  z-index: 0;
}

.hl::after {
  content: "";
  position: absolute;
  left: -.04em;
  right: -.04em;
  bottom: .04em;
  height: .46em;
  background: var(--butter);
  border-radius: .3em .5em .35em .45em;
  transform: rotate(-1.1deg);
  z-index: -1;
}

.hero-lede {
  margin: 0 0 1.6rem;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .62rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: .94rem;
  font-weight: 500;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
  background: var(--butter);
  border-color: var(--butter-deep);
  color: #2b2b33;
  box-shadow: 0 3px 0 var(--butter-deep);
}

.btn-primary:hover { box-shadow: 0 5px 0 var(--butter-deep); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
}

.btn-ghost:hover { background: var(--cream-2); }

.hero-stats {
  display: flex;
  gap: 1.8rem;
  margin: 2rem 0 0;
  padding: 0;
}

.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { color: var(--muted); font-size: .76rem; letter-spacing: .14em; }
.hero-stats dd { margin: 0; font-size: 1.32rem; font-weight: 700; line-height: 1.3; }

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
}

.hero-blob {
  position: absolute;
  inset: 6% 4%;
  border-radius: 46% 54% 52% 48% / 50% 44% 56% 50%;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 233, 160, .95), rgba(255, 215, 94, .55) 62%, rgba(255, 215, 94, .12) 100%);
  filter: blur(.3px);
  animation: blob 14s ease-in-out infinite;
}

@keyframes blob {
  0%, 100% { border-radius: 46% 54% 52% 48% / 50% 44% 56% 50%; }
  50% { border-radius: 54% 46% 44% 56% / 42% 54% 46% 58%; }
}

.mascot { position: relative; display: block; }

.mascot-img {
  position: relative;
  display: block;
  height: clamp(260px, 27vw, 380px);
  width: auto;
  filter: drop-shadow(0 20px 26px rgba(120, 90, 20, .26));
  animation: float 6.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1.4deg); }
}

.hero-bubble {
  position: absolute;
  left: 0;
  bottom: 14%;
  max-width: 62%;
  margin: 0;
  padding: .5rem .9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px;
  font-size: .82rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow);
}

/* ------------------------------------------------------------------ 通用块 */
.section { padding-block: clamp(1.6rem, 4vw, 2.8rem); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-head h2,
.page-head h1 {
  font-size: clamp(1.35rem, 1rem + 1.4vw, 1.7rem);
  margin: 0;
  letter-spacing: .01em;
}

.section-head h2::before {
  content: "";
  display: inline-block;
  width: .5em;
  height: .5em;
  margin-right: .5em;
  border-radius: 3px;
  background: var(--peach);
  transform: rotate(12deg) translateY(-.08em);
}

.more { font-size: .88rem; color: var(--muted); }
.more:hover { color: var(--matcha-deep); }

.page-head { padding-block: clamp(1.6rem, 4vw, 2.6rem) 1rem; }
.page-lede { margin: .6rem 0 0; max-width: 44rem; color: var(--ink-soft); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  padding: .12rem .6rem;
  border: 1px dashed var(--line);
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--ink-soft);
  font-size: .76rem;
  line-height: 1.7;
}

.chip:hover {
  border-style: solid;
  border-color: var(--butter-deep);
  background: color-mix(in srgb, var(--butter) 26%, var(--surface));
  color: var(--ink);
  text-decoration: none;
}

.chip em { font-style: normal; color: var(--muted); font-size: .72rem; }
.chip-lg { font-size: .84rem; padding: .2rem .8rem; }
.chip-xs { padding: 0 .5rem; font-size: .7rem; }

/* -------------------------------------------------------------------- 卡片 */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: clamp(.8rem, 2vw, 1.3rem);
}

.post-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
  overflow: hidden;
}

.post-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--butter), var(--peach) 55%, var(--matcha));
  opacity: .8;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 3px 0 var(--line), 0 22px 34px -24px rgba(64, 48, 16, .6);
}

.card-body { padding: 1.3rem 1.25rem 1.1rem; display: flex; flex-direction: column; height: 100%; }

.card-title { margin: 0 0 .5rem; font-size: 1.06rem; line-height: 1.5; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--matcha-deep); text-decoration: none; }

.card-summary {
  margin: 0 0 .9rem;
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.72;
}

.card-tags { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: .8rem; }

.card-meta {
  display: flex;
  gap: .45rem;
  margin: auto 0 0;
  padding-top: .7rem;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: .78rem;
}

/* --------------------------------------------------------------- 首页分栏 */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
  padding-bottom: clamp(2rem, 6vw, 3.4rem);
}

.now-box,
.widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.3rem;
}

.now-box h2 { margin: 0 0 .9rem; font-size: 1.12rem; }

.now-list { margin: 0; padding: 0; list-style: none; }
.now-list li {
  display: flex;
  gap: .6rem;
  padding: .55rem 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: .92rem;
}
.now-list li:last-child { border-bottom: none; }

.now-dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: .62em;
  border-radius: 50%;
  background: var(--matcha);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--matcha) 22%, transparent);
}

.side { display: grid; gap: 1rem; }
.widget-title {
  margin: 0 0 .8rem;
  font-size: .92rem;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 600;
}

.chip-wrap { display: flex; flex-wrap: wrap; gap: .4rem; }
.widget-fine { margin: .7rem 0 0; color: var(--muted); font-size: .8rem; }
.widget-friend .foot-links { margin: 0; }
.widget-friend .foot-links li { padding: .2rem 0; }

/* -------------------------------------------------------------- 列表 / 归档 */
.archive-list,
.archive-rows,
.guest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.archive-item {
  display: grid;
  grid-template-columns: 6.4rem minmax(0, 1fr) auto;
  gap: .8rem;
  align-items: baseline;
  padding: .78rem .2rem;
  border-bottom: 1px dashed var(--line);
}

.archive-item time { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.archive-item a { color: var(--ink); font-size: .98rem; }
.archive-item a:hover { color: var(--matcha-deep); }
.archive-tags { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }

.archive-year,
.tag-block { margin-bottom: 2rem; }

.archive-year h2,
.tag-block h2 {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin: 0 0 .4rem;
  font-size: 1.16rem;
}

.archive-year h2 span,
.tag-block h2 span { color: var(--muted); font-size: .78rem; font-weight: 400; }
.tag-block { scroll-margin-top: 90px; }

.archive-rows li {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: .8rem;
  align-items: baseline;
  padding: .55rem .2rem;
  border-bottom: 1px dashed var(--line);
}

.archive-rows time { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.archive-rows a { color: var(--ink); }
.archive-rows a:hover { color: var(--matcha-deep); }

/* -------------------------------------------------------------------- 正文 */
.article { padding-block: clamp(1.4rem, 4vw, 2.6rem) 3rem; max-width: 760px; }

.crumbs {
  display: flex;
  gap: .45rem;
  align-items: center;
  color: var(--muted);
  font-size: .82rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.crumbs em { font-style: normal; color: var(--ink-soft); }
.crumbs a { color: var(--muted); }

.article-title {
  margin: 0 0 .7rem;
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.3rem);
  line-height: 1.32;
  letter-spacing: -.005em;
}

.article-meta {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin: 0 0 .9rem;
  color: var(--muted);
  font-size: .84rem;
}

.article-tags { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: 1.8rem; }

.prose { color: var(--ink); }

.prose h2 {
  position: relative;
  margin: 2.2rem 0 .9rem;
  padding-left: .8rem;
  font-size: 1.22rem;
  line-height: 1.5;
}

.prose h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  bottom: .3em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--butter), var(--peach));
}

.prose p { margin: 0 0 1.05rem; }

.prose ul,
.prose ol { margin: 0 0 1.1rem; padding-left: 1.25rem; }
.prose li { margin-bottom: .45rem; }

.prose blockquote {
  margin: 1.3rem 0;
  padding: .85rem 1rem .85rem 1.1rem;
  border-left: 4px solid var(--peach);
  border-radius: 0 12px 12px 0;
  background: var(--cream-2);
  color: var(--ink-soft);
  font-size: .95rem;
}

.prose blockquote p:last-child { margin-bottom: 0; }

.prose code {
  padding: .1em .38em;
  border-radius: 6px;
  background: color-mix(in srgb, var(--butter) 30%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--butter-deep) 26%, transparent);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .87em;
  word-break: break-word;
}

.prose pre {
  margin: 1.2rem 0;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #22232B;
  color: #F0EDF6;
  overflow-x: auto;
  font-size: .86rem;
  line-height: 1.7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

.prose pre code {
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font-size: 1em;
}

.prose strong { color: var(--ink); }

.post-figure {
  margin: 1.6rem 0;
  padding: .8rem .8rem .6rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.post-figure img {
  display: block;
  height: clamp(180px, 24vw, 240px);
  width: auto;
  margin: 0 auto .5rem;
  filter: drop-shadow(0 12px 16px rgba(120, 90, 20, .2));
}

.post-figure figcaption {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.7;
  border-top: 1px dashed var(--line);
  padding-top: .5rem;
}

.article-foot {
  margin-top: 2.4rem;
  padding: 1rem 1.1rem;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--cream-2);
  color: var(--muted);
  font-size: .84rem;
}

.article-foot p { margin: 0 0 .35rem; }
.article-foot p:last-child { margin: 0; }

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
  margin-top: 1.6rem;
}

.post-nav-item {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: transform .18s ease, border-color .18s ease;
}

.post-nav-item:hover {
  transform: translateY(-2px);
  border-color: var(--butter-deep);
  text-decoration: none;
}

.post-nav-item span { color: var(--muted); font-size: .76rem; }
.post-nav-item strong { color: var(--ink); font-size: .92rem; font-weight: 500; line-height: 1.5; }
.post-nav-item.is-next { text-align: right; }
.post-nav-item.is-empty { background: none; border-style: dashed; color: var(--muted); }
.post-nav-item.is-empty strong { font-weight: 500; font-size: .92rem; }

/* ---------------------------------------------------------------- 关于 / 留言 */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: start;
  padding-bottom: 3rem;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem 1.2rem;
  position: sticky;
  top: 92px;
}

.about-mascot { display: grid; place-items: center; padding: .4rem 0 .8rem; }
.about-mascot .mascot-img { height: 220px; animation: float 7s ease-in-out infinite; }

.about-facts { margin: 0; padding: 0; font-size: .88rem; }
.about-facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem 0;
  border-bottom: 1px dashed var(--line);
}
.about-facts div:last-child { border-bottom: none; }
.about-facts dt { color: var(--muted); }
.about-facts dd { margin: 0; text-align: right; }

.narrow { max-width: 720px; padding-bottom: 3rem; }

.notice {
  padding: 1rem 1.1rem;
  margin-bottom: 1.4rem;
  border: 1px solid color-mix(in srgb, var(--butter-deep) 40%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--butter) 18%, var(--surface));
}

.notice strong { display: block; margin-bottom: .25rem; }
.notice p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

.guest-item {
  padding: .95rem 1.1rem;
  margin-bottom: .7rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.guest-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .35rem;
  font-size: .88rem;
}

.guest-head time { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.guest-item p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

/* -------------------------------------------------------------------- 404 */
.notfound {
  padding-block: clamp(2rem, 6vw, 3.5rem) clamp(3rem, 8vw, 5rem);
  text-align: center;
}

.notfound-art { display: flex; justify-content: center; margin-bottom: .5rem; }
.notfound-art .mascot-img {
  height: clamp(170px, 22vw, 240px);
  filter: drop-shadow(0 16px 20px rgba(120, 90, 20, .22)) saturate(.85);
  transform: rotate(-4deg);
  animation: float 8s ease-in-out infinite;
}

.notfound-code {
  margin: 0;
  font-size: clamp(4.5rem, 3rem + 12vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .04em;
  color: var(--butter);
  -webkit-text-stroke: 2px var(--butter-deep);
  text-shadow: 0 6px 0 color-mix(in srgb, var(--butter-deep) 55%, transparent);
}

.notfound h1 { margin: .6rem 0 .4rem; font-size: 1.5rem; }
.notfound > p { color: var(--ink-soft); margin: 0 0 1.6rem; }
.notfound .hero-actions { justify-content: center; }

/* ------------------------------------------------------------------ footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px dashed var(--line);
  background: color-mix(in srgb, var(--cream-2) 72%, transparent);
  padding-block: 2.2rem 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, .7fr) minmax(0, .7fr);
  gap: clamp(1rem, 3vw, 2.4rem);
}

.foot-title {
  margin: 0 0 .6rem;
  font-size: .88rem;
  letter-spacing: .12em;
  color: var(--ink);
}

.foot-note { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.8; max-width: 34rem; }

.foot-links { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.foot-links li { margin-bottom: .3rem; }
.foot-links a { color: var(--ink-soft); }
.foot-links a:hover { color: var(--matcha-deep); }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: .78rem;
}

.foot-bottom p { margin: 0; }
.foot-fine { display: inline-flex; align-items: center; gap: .4rem; }
.foot-mascot { opacity: .9; }

/* ------------------------------------------------------------- 响应式 / 动效 */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: 220px; }
  .mascot-img { height: clamp(210px, 34vw, 280px); }
  .hero-bubble { display: none; }
  .split { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .header-inner { min-height: 60px; gap: .5rem; }
  .brand-text small { display: none; }
  .site-nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: .5rem; }
  .nav-link { font-size: .86rem; padding: .3rem .6rem; }
  .archive-item { grid-template-columns: 1fr; gap: .25rem; }
  .archive-tags { justify-content: flex-start; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-item.is-next { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .site-footer, .theme-toggle, .post-nav, .hero-art { display: none; }
  body { background: #fff; color: #000; }
}
