/* ============================================================
   核桃小屋 · 水彩画册主题 (Watercolor Sketchbook)
   小学水彩画风格：蜡笔描边、水彩晕染、和纸胶带、手绘虚线
   基于 Hexo + Fluid 框架，仅通过 custom_css 注入
   ============================================================ */

/* ---------- 1. 画册调色盘 ---------- */
:root {
  /* Fluid 主题变量覆写 */
  --body-bg-color: #F7EFDD;
  --navbar-bg-color: #9C6B43;
  --navbar-text-color: #FFF6E6;
  --subtitle-color: #FFF6E6;
  --text-color: #55493A;
  --sec-text-color: #8A765C;
  --board-bg-color: #FCF6E8;
  --post-text-color: #4E4234;
  --post-heading-color: #5A4632;
  --post-link-color: #C75B3A;
  --link-hover-color: #E27B5A;
  --link-hover-bg-color: #FFF1DC;
  --line-color: #E3D3B6;
  --scrollbar-color: #D8B98C;
  --scrollbar-hover-color: #C89B6D;
  --button-bg-color: transparent;
  --button-hover-bg-color: #FFF1DC;

  /* 水彩专属 */
  --wc-paper: #FCF6E8;        /* 画纸 */
  --wc-paper-2: #FFFDF6;      /* 卡片纸 */
  --wc-ink: #55493A;          /* 墨色 */
  --wc-ink-soft: #8A765C;
  --wc-brown: #5B4636;        /* 蜡笔棕描边 */
  --wc-kraft: #C89B6D;
  --wc-crayon-line: #C9A87C;  /* 蜡笔虚线 */
  --wc-sky: #8FD0E8;
  --wc-pink: #F9A8BC;
  --wc-yellow: #FFD76A;
  --wc-green: #A8D878;
  --wc-green-deep: #4E8C4B;
  --wc-red: #E8846B;
  --wc-violet: #C9A8E8;

  --wc-title-font: "YouYuan", "幼圆", "Yuanti SC", "Segoe Print", "Comic Sans MS",
                   "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --wc-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; /* 手绘不规则圆角 */
  --wc-border: 3px dashed var(--wc-crayon-line);
  --wc-shadow: 0 10px 26px rgba(120, 90, 50, 0.16);

  --wc-noise: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='260'%20height='260'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.9'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20values='0%200%200%200%200.55%200%200%200%200%200.45%200%200%200%200%200.33%200%200%200%200.05%200'/%3E%3C/filter%3E%3Crect%20width='260'%20height='260'%20filter='url(%23n)'/%3E%3C/svg%3E");
  --wc-squiggle: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20120%2012'%20preserveAspectRatio='none'%3E%3Cpath%20d='M2%208%20C%2010%203%2014%203%2022%208%20S%2034%2013%2042%208%20S%2054%203%2062%208%20S%2074%2013%2082%208%20S%2094%203%20102%208%20S%20112%2013%20118%208'%20fill='none'%20stroke='%23E2A15C'%20stroke-width='5'%20stroke-linecap='round'/%3E%3C/svg%3E");
  --wc-squiggle-line: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20220%2014'%20preserveAspectRatio='none'%3E%3Cpath%20d='M4%207%20C%2012%200%2018%200%2026%207%20S%2040%2014%2048%207%20S%2062%200%2070%207%20S%2084%2014%2092%207%20S%20106%200%20114%207%20S%20128%2014%20136%207%20S%20150%200%20158%207%20S%20172%2014%20180%207%20S%20194%200%20202%207%20S%20214%2014%20216%207'%20fill='none'%20stroke='%23C9A87C'%20stroke-width='5'%20stroke-linecap='round'/%3E%3C/svg%3E");
  --wc-cloud: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-60%20-120%20260%20140'%3E%3Cpath%20d='M%20-28%20-44%20C%20-30%20-74%208%20-84%2022%20-68%20C%2030%20-100%2074%20-108%2096%20-86%20C%20112%20-100%20152%20-96%20158%20-70%20C%20178%20-66%20186%20-40%20174%20-20%20C%20168%20-4%20150%206%20130%206%20L%20-24%206%20C%20-42%206%20-48%20-18%20-28%20-44%20Z'%20fill='%23FFFEF7'%20fill-opacity='0.94'%20stroke='%238A7A64'%20stroke-width='5'/%3E%3C/svg%3E");
}

/* ---------- 夜色水彩（暗色模式） ---------- */
html[data-user-color-scheme="dark"] {
  --body-bg-color: #20273D;
  --navbar-bg-color: #453A5C;
  --navbar-text-color: #FFE9C7;
  --subtitle-color: #FFE9C7;
  --text-color: #CFC3AD;
  --sec-text-color: #9C8F79;
  --board-bg-color: #2A3350;
  --post-text-color: #C7BBA5;
  --post-heading-color: #F0E0BE;
  --post-link-color: #F0A378;
  --link-hover-color: #F8C29A;
  --link-hover-bg-color: #384264;
  --line-color: #414D77;
  --scrollbar-color: #55618C;
  --scrollbar-hover-color: #7884AF;
  --button-bg-color: transparent;
  --button-hover-bg-color: #384264;

  --wc-paper: #2A3350;
  --wc-paper-2: #303B5C;
  --wc-ink: #CFC3AD;
  --wc-ink-soft: #9C8F79;
  --wc-brown: #B98F68;
  --wc-kraft: #8A6A45;
  --wc-crayon-line: #6E5A8A;
  --wc-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  --wc-noise: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='260'%20height='260'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.9'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20values='0%200%200%200%200.9%200%200%200%200%200.86%200%200%200%200%200.78%200%200%200%200.03%200'/%3E%3C/filter%3E%3Crect%20width='260'%20height='260'%20filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 2. 基础 ---------- */
body {
  background-color: var(--body-bg-color);
  background-image: var(--wc-noise),
    linear-gradient(180deg, rgba(143, 208, 232, 0.30) 0%, rgba(252, 244, 227, 0) 40%);
  background-repeat: repeat, no-repeat;
  background-size: 260px 260px, 100% 100%;
  -webkit-font-smoothing: antialiased;
}

html[data-user-color-scheme="dark"] body {
  background-image: var(--wc-noise),
    linear-gradient(180deg, rgba(69, 58, 92, 0.4) 0%, rgba(32, 39, 61, 0) 40%);
}

::selection {
  background: #FFD76A;
  color: #5B4636;
}

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-color);
  border-radius: 999px;
  border: 3px solid var(--body-bg-color);
}
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-hover-color); }

a:focus-visible, button:focus-visible {
  outline: 3px dashed #E27B5A;
  outline-offset: 3px;
}

/* 和纸胶带 */
.wc-tape {
  position: absolute;
  width: 92px;
  height: 26px;
  z-index: 6;
  border-radius: 3px;
  opacity: 0.92;
  box-shadow: 0 3px 8px rgba(90, 70, 50, 0.28);
  pointer-events: none;
}
.wc-tape-pink { background-image: repeating-linear-gradient(45deg, rgba(249, 168, 188, 0.85) 0 16px, rgba(255, 255, 255, 0.42) 16px 26px); }
.wc-tape-yellow { background-image: repeating-linear-gradient(45deg, rgba(255, 215, 106, 0.9) 0 16px, rgba(255, 255, 255, 0.45) 16px 26px); }
.wc-tape-sky { background-image: repeating-linear-gradient(45deg, rgba(143, 208, 232, 0.85) 0 16px, rgba(255, 255, 255, 0.45) 16px 26px); }
.wc-tape-green { background-image: repeating-linear-gradient(45deg, rgba(168, 216, 120, 0.85) 0 16px, rgba(255, 255, 255, 0.45) 16px 26px); }
.wc-tape-bl { left: 14px; bottom: 16px; transform: rotate(2deg); }
.wc-tape-br { right: 14px; bottom: 16px; transform: rotate(-2deg); }

/* ---------- 3. 顶部：牛皮纸导航条 ---------- */
.navbar {
  background: linear-gradient(180deg, #A97A50 0%, var(--navbar-bg-color) 100%);
  box-shadow: 0 4px 14px rgba(90, 70, 50, 0.25);
  border-bottom: 3px dashed rgba(255, 246, 230, 0.6);
}
html[data-user-color-scheme="dark"] .navbar {
  background: linear-gradient(180deg, #5C4E78 0%, var(--navbar-bg-color) 100%);
  border-bottom-color: rgba(255, 233, 199, 0.35);
}

.navbar .navbar-brand { padding-top: 0.15rem; padding-bottom: 0.15rem; }
.navbar .navbar-brand img { transform: rotate(-1deg); }

.navbar .nav-item .nav-link {
  font-family: var(--wc-title-font);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  position: relative;
  margin: 0 0.1rem;
  border-radius: 999px;
}
.navbar .nav-item .nav-link:hover {
  color: #FFD76A !important;
  background-color: rgba(255, 255, 255, 0.10);
}
.navbar .nav-item .nav-link:hover::after,
.navbar .nav-item.active .nav-link::after {
  content: "";
  position: absolute;
  left: 0.7em;
  right: 0.7em;
  bottom: 0.25em;
  height: 0.4em;
  background: var(--wc-squiggle) center / 100% 100% no-repeat;
}
.navbar .nav-item.active .nav-link {
  color: #FFD76A !important;
  background-color: rgba(255, 255, 255, 0.10);
}

.navbar .dropdown-menu {
  background: var(--wc-paper-2);
  border: 3px dashed var(--wc-crayon-line);
  border-radius: 18px 10px 20px 12px / 12px 18px 10px 20px;
  box-shadow: var(--wc-shadow);
}
.navbar .dropdown-item {
  color: var(--wc-ink);
  font-family: var(--wc-title-font);
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  color: var(--post-link-color);
  background-color: var(--link-hover-bg-color);
}

/* 移动端九宫格菜单：水彩画纸 */
#mobile-grid-menu {
  background: var(--wc-paper);
  background-image: var(--wc-noise);
}
#mobile-grid-menu .mobile-grid-item {
  border: 2.5px dashed var(--wc-crayon-line);
  border-radius: 20px 12px 22px 10px / 12px 20px 10px 22px;
  background: rgba(156, 107, 67, 0.10);
}
#mobile-grid-menu .mobile-grid-item:hover,
#mobile-grid-menu .mobile-grid-item:active {
  background: rgba(156, 107, 67, 0.20);
}
#mobile-grid-menu .mobile-grid-item i,
#mobile-grid-menu .mobile-grid-item span { color: var(--wc-ink); }
#mobile-grid-menu .mobile-grid-group-header { color: var(--wc-ink-soft); }

/* ---------- 4. 横幅与标题牌 ---------- */
.banner .mask {
  background-color: rgba(91, 70, 54, 0.10) !important;
}
html[data-user-color-scheme="dark"] .banner .mask {
  background-color: rgba(35, 40, 75, 0.30) !important;
}

.banner-text .h2 { display: inline-block; margin: 0 auto; max-width: 92%; }
#subtitle {
  display: inline-block;
  background: rgba(252, 246, 232, 0.88);
  border: 3px dashed #C9A87C;
  border-radius: 26px 12px 28px 10px / 12px 26px 10px 28px;
  padding: 0.3em 1em;
  color: #5A4632;
  font-family: var(--wc-title-font);
  box-shadow: 0 12px 30px rgba(90, 70, 50, 0.22);
  transform: rotate(-1.2deg);
}
.typed-cursor { color: #E27B5A; }

.banner-text .post-meta {
  display: inline-block;
  background: rgba(252, 246, 232, 0.85);
  border: 2px dashed #C9A87C;
  border-radius: 999px;
  padding: 0.12em 0.85em;
  margin: 0.35em 0.25em;
  color: #6B5840;
  font-family: var(--wc-title-font);
  font-size: 0.92em;
}
.banner-text .post-meta a { color: #C75B3A; }

/* 横幅文字层级：夜空的星星垫在文字下方 */
.banner-text { position: relative; z-index: 2; }
.banner::after { z-index: 1; }
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  background-image:
    radial-gradient(2px 2px at 12% 22%, rgba(255, 255, 255, 0.9), transparent 100%),
    radial-gradient(1.5px 1.5px at 26% 10%, rgba(255, 255, 255, 0.75), transparent 100%),
    radial-gradient(2.5px 2.5px at 44% 30%, rgba(255, 255, 255, 0.85), transparent 100%),
    radial-gradient(1.5px 1.5px at 58% 14%, rgba(255, 255, 255, 0.7), transparent 100%),
    radial-gradient(2px 2px at 72% 24%, rgba(255, 255, 255, 0.9), transparent 100%),
    radial-gradient(1.5px 1.5px at 86% 8%, rgba(255, 255, 255, 0.7), transparent 100%),
    radial-gradient(2px 2px at 92% 34%, rgba(255, 255, 255, 0.8), transparent 100%),
    radial-gradient(1.5px 1.5px at 8% 40%, rgba(255, 255, 255, 0.65), transparent 100%);
  background-repeat: no-repeat;
}
html[data-user-color-scheme="dark"] .banner::after { opacity: 1; }

/* 漂浮云朵（JS 注入） */
.wc-float-cloud {
  position: absolute;
  pointer-events: none;
  z-index: 4;
  background: var(--wc-cloud) center / contain no-repeat;
  opacity: 0.92;
  animation: wc-float 10s ease-in-out infinite alternate;
}
.wc-float-cloud.wc-cloud-1 { width: 132px; height: 72px; left: 10%; top: 15%; }
.wc-float-cloud.wc-cloud-2 { width: 92px; height: 50px; right: 7%; top: 30%; animation-duration: 14s; animation-delay: 1.2s; opacity: 0.8; }

/* 向下滚动箭头：小圆牌 */
.scroll-down-bar i.iconfont {
  color: #5B4636;
  background: rgba(252, 246, 232, 0.85);
  border: 3px dashed #C9A87C;
  border-radius: 50% 44% 46% 42% / 45% 46% 44% 52%;
  width: 2.7rem;
  height: 2.7rem;
  line-height: 2.2rem;
  text-align: center;
  padding-top: 0;
  box-shadow: 0 4px 12px rgba(90, 70, 50, 0.22);
  animation: wc-bob 1.8s ease-in-out infinite;
}

/* 回到顶部：小太阳按钮 */
#scroll-top-button {
  background: #FFD76A !important;
  border: 3px dashed #5B4636;
  color: #5B4636 !important;
  border-radius: 50% 44% 46% 42% / 45% 46% 44% 52%;
  box-shadow: 0 6px 16px rgba(120, 90, 50, 0.3);
  min-width: 46px;
  min-height: 46px;
}
#scroll-top-button i { color: #5B4636 !important; }
#scroll-top-button:hover { background: #FFC93C !important; }

/* 进度条 */
#nprogress .bar { background: #FFC93C !important; }
#nprogress .peg { box-shadow: 0 0 12px #FFC93C, 0 0 6px #FFC93C !important; }

/* ---------- 5. 画板（内容区） ---------- */
#board {
  background-color: var(--board-bg-color);
  background-image: var(--wc-noise);
  background-size: 260px 260px;
  border: 3px dashed var(--wc-crayon-line);
  border-radius: var(--wc-radius);
  box-shadow: var(--wc-shadow);
  padding: 3rem 2rem;
}
#board::before,
#board::after {
  content: "";
  position: absolute;
  width: 92px;
  height: 26px;
  z-index: 6;
  border-radius: 3px;
  opacity: 0.92;
  box-shadow: 0 3px 8px rgba(90, 70, 50, 0.28);
  pointer-events: none;
}
#board::before {
  left: 18px;
  top: 18px;
  transform: rotate(-3deg);
  background-image: repeating-linear-gradient(45deg, rgba(143, 208, 232, 0.85) 0 16px, rgba(255, 255, 255, 0.45) 16px 26px);
}
#board::after {
  right: 18px;
  top: 18px;
  transform: rotate(3deg);
  background-image: repeating-linear-gradient(45deg, rgba(249, 168, 188, 0.85) 0 16px, rgba(255, 255, 255, 0.42) 16px 26px);
}

/* ---------- 6. 首页文章卡片 ---------- */
.index-card {
  position: relative;
  margin-top: 1.5rem !important;
  margin-bottom: 0.4rem !important;
  padding: 1.6rem 1.3rem;
  background: var(--wc-paper-2);
  background-image: var(--wc-noise);
  background-size: 260px 260px;
  border: 3px dashed var(--wc-crayon-line);
  border-radius: var(--wc-radius);
  box-shadow: 0 8px 20px rgba(120, 90, 50, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.index-card:nth-child(odd) { transform: rotate(-0.5deg); }
.index-card:nth-child(even) { transform: rotate(0.6deg); }
.index-card:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 18px 34px rgba(120, 90, 50, 0.22);
}
.index-card::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 14px;
  width: 74px;
  height: 20px;
  z-index: 5;
  border-radius: 3px;
  opacity: 0.9;
  transform: rotate(-3deg);
  box-shadow: 0 2px 6px rgba(90, 70, 50, 0.25);
  background-image: repeating-linear-gradient(45deg, rgba(255, 215, 106, 0.9) 0 14px, rgba(255, 255, 255, 0.45) 14px 22px);
  pointer-events: none;
}

.index-img img {
  width: 100%;
  max-height: 13.5rem;
  object-fit: cover;
  border: 3px dashed var(--wc-crayon-line);
  border-radius: 18px 12px 22px 10px / 14px 20px 12px 18px;
  transform: rotate(-1.2deg);
  box-shadow: 0 6px 14px rgba(120, 90, 50, 0.18);
  transition: transform 0.25s ease;
}
.index-card:hover .index-img img { transform: rotate(0deg) scale(1.015); }

.index-header { margin-bottom: 0.7rem; }
.index-header a {
  color: var(--post-heading-color);
  font-family: var(--wc-title-font);
  font-size: 1.35rem;
}
.index-header a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: rgba(226, 123, 90, 0.6);
  text-underline-offset: 6px;
}
.index-pin { color: #E8A33D; margin-right: 0.3rem; }

.index-excerpt {
  color: var(--wc-ink-soft);
  line-height: 1.9;
  display: block;
}
.index-excerpt:hover { color: var(--wc-ink); text-decoration: none; }

.index-btm .post-meta {
  display: inline-flex;
  align-items: center;
  background: #FFF1DC;
  border: 2px dashed var(--wc-crayon-line);
  border-radius: 999px;
  padding: 0.12rem 0.75rem;
  margin: 0.25rem 0.6rem 0.25rem 0 !important;
  color: #8A6A45;
  font-size: 0.85rem;
}
.index-btm .post-meta:nth-of-type(2) { background: rgba(249, 168, 188, 0.18); }
.index-btm .post-meta:nth-of-type(3) { background: rgba(143, 208, 232, 0.18); }
.index-btm .post-meta a { color: #C75B3A; }
.index-btm .post-meta a:hover { color: #E27B5A; text-decoration: none; }
html[data-user-color-scheme="dark"] .index-btm .post-meta {
  background: #3A4560;
  color: #C7BBA5;
}
html[data-user-color-scheme="dark"] .index-btm .post-meta:nth-of-type(2) { background: rgba(201, 168, 232, 0.16); }
html[data-user-color-scheme="dark"] .index-btm .post-meta:nth-of-type(3) { background: rgba(143, 208, 232, 0.14); }

/* ---------- 7. 分页：蜡笔小纽扣 ---------- */
.pagination .page-item .page-link {
  background: var(--wc-paper-2);
  color: #8A6A45;
  border: 2.5px dashed var(--wc-crayon-line);
  border-radius: 46% 54% 52% 48% / 48% 52% 48% 52%;
  margin: 0 0.22rem;
  font-family: var(--wc-title-font);
  box-shadow: 0 3px 8px rgba(120, 90, 50, 0.12);
  transition: transform 0.15s ease;
}
.pagination .page-item .page-link:hover {
  background: #FFF1DC;
  color: #C75B3A;
  transform: rotate(-3deg) scale(1.06);
}
.pagination .page-item.active .page-link {
  background: #FFD76A;
  border-style: solid;
  border-color: #5B4636;
  color: #5B4636;
}
html[data-user-color-scheme="dark"] .pagination .page-item .page-link { color: #CFC3AD; }
html[data-user-color-scheme="dark"] .pagination .page-item .page-link:hover { background: #384264; }

/* ---------- 8. 文章正文 ---------- */
.post-content { padding: 0.5rem 1rem; }

.markdown-body {
  color: var(--post-text-color);
  font-size: 1rem;
  line-height: 2;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3,
.markdown-body h4, .markdown-body h5, .markdown-body h6 {
  color: var(--post-heading-color);
  font-family: var(--wc-title-font);
  margin: 1.6em 0 0.9em;
  transform: rotate(-0.3deg);
}
.markdown-body h2 { font-size: 1.6rem; border-bottom: 3px dashed var(--wc-crayon-line); padding-bottom: 0.35em; }
.markdown-body h3 { font-size: 1.35rem; }
.markdown-body h4 { font-size: 1.15rem; }
.markdown-body h1 { border-bottom: none; }

.markdown-body h2::before,
.markdown-body h3::before,
.markdown-body h4::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.24em;
  border-radius: 999px;
  margin-right: 0.4em;
  transform: rotate(-2deg) translateY(-0.08em);
}
.markdown-body h2::before { background: #6FA84F; box-shadow: 0.7em 0 0 #A8D878; }
.markdown-body h3::before { background: #F9A8BC; box-shadow: 0.7em 0 0 #F6C6D5; }
.markdown-body h4::before { background: #E8A33D; box-shadow: 0.7em 0 0 #FFD76A; }

.markdown-body p { margin: 0.9em 0; }

.markdown-body a {
  color: var(--post-link-color);
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: rgba(199, 91, 58, 0.5);
  text-underline-offset: 4px;
  transition: background-color 0.2s ease;
}
.markdown-body a:hover {
  background: var(--link-hover-bg-color);
  color: var(--link-hover-color);
}
.markdown-body a.fancybox {
  text-decoration: none;
  background: none;
}
.markdown-body a.fancybox:hover { background: none; }

.markdown-body ul li::marker { color: #F2916F; }
.markdown-body ol li::marker {
  color: #C75B3A;
  font-family: var(--wc-title-font);
  font-weight: bold;
}
.markdown-body li { margin: 0.3em 0; }

.markdown-body blockquote {
  position: relative;
  margin: 1.4em 0;
  padding: 1em 1.3em 1em 3em;
  background: linear-gradient(105deg, rgba(249, 168, 188, 0.16), rgba(255, 215, 106, 0.14));
  border: 3px dashed var(--wc-crayon-line);
  border-radius: 20px 14px 22px 10px / 12px 20px 14px 22px;
  transform: rotate(-0.4deg);
  color: var(--wc-ink-soft);
  border-left: none;
}
.markdown-body blockquote::before {
  content: "\275D";
  position: absolute;
  left: 0.55em;
  top: 0.1em;
  font-size: 2.2em;
  color: #F9A8BC;
  font-family: Georgia, serif;
  opacity: 0.85;
}
html[data-user-color-scheme="dark"] .markdown-body blockquote {
  background: linear-gradient(105deg, rgba(201, 168, 232, 0.14), rgba(255, 215, 106, 0.10));
}

.markdown-body code {
  background: #FFF1DC;
  border: 1.5px dashed #D9B98C;
  color: #C2571F;
  border-radius: 6px;
  padding: 0.1em 0.4em;
}
html[data-user-color-scheme="dark"] .markdown-body code {
  background: #384264;
  border-color: #55618C;
  color: #F8C29A;
}

.markdown-body pre {
  position: relative;
  background: var(--wc-paper-2);
  background-image: var(--wc-noise);
  background-size: 260px 260px;
  border: 3px dashed var(--wc-crayon-line);
  border-radius: 20px 12px 22px 10px / 12px 20px 10px 22px;
  box-shadow: var(--wc-shadow);
}
.markdown-body pre code,
.markdown-body pre code.hljs { background: transparent; border: none; padding: 0; }
.markdown-body pre .code-widget {
  background: rgba(169, 122, 80, 0.92);
  color: #FFF6E6;
  font-family: var(--wc-title-font);
  letter-spacing: 0.05em;
  padding: 0.28rem 0.7rem;
  top: 0.55rem;
  right: 0.7rem;
  border-radius: 12px 12px 5px 5px;
  border-bottom: 2px dashed rgba(255, 246, 230, 0.6);
  box-shadow: 0 2px 6px rgba(90, 70, 50, 0.25);
  transform: rotate(1.5deg);
}
.markdown-body pre:hover .code-widget { background: rgba(169, 122, 80, 1); }
html[data-user-color-scheme="dark"] .markdown-body pre .code-widget {
  background: rgba(92, 78, 120, 0.92);
  border-bottom-color: rgba(255, 233, 199, 0.35);
}
html[data-user-color-scheme="dark"] .markdown-body pre:hover .code-widget { background: rgba(92, 78, 120, 1); }
.markdown-body pre .code-widget i { color: #FFF6E6; }

.markdown-body table {
  border: 3px dashed var(--wc-crayon-line);
  border-radius: 10px;
  box-shadow: none;
}
.markdown-body th {
  background: #FFEFC9;
  color: #6B4F2E;
  font-family: var(--wc-title-font);
}
.markdown-body th, .markdown-body td { border: 1px dashed var(--wc-crayon-line); }
html[data-user-color-scheme="dark"] .markdown-body th { background: #3A4560; color: #F0E0BE; }

hr,
.markdown-body hr {
  border: none;
  height: 16px;
  background: var(--wc-squiggle-line) center / 240px 16px no-repeat;
  margin: 2.2rem auto;
}

.markdown-body img {
  border: 3px dashed var(--wc-crayon-line);
  border-radius: 18px 10px 20px 12px / 12px 18px 10px 20px;
  box-shadow: var(--wc-shadow);
}
.markdown-body figcaption.image-caption {
  color: var(--wc-ink-soft);
  font-family: var(--wc-title-font);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.4rem;
}

/* 主题自带的 note 标签 */
.markdown-body .note {
  border: 2.5px dashed var(--wc-crayon-line);
  border-radius: 18px 10px 20px 12px / 12px 18px 10px 20px;
  padding: 0.9em 1.2em;
  margin: 1.2em 0;
  box-shadow: 0 4px 12px rgba(120, 90, 50, 0.10);
}
.markdown-body .note-info { background: rgba(143, 208, 232, 0.18); }
.markdown-body .note-success { background: rgba(168, 216, 120, 0.20); }
.markdown-body .note-warning { background: rgba(255, 215, 106, 0.22); }
.markdown-body .note-danger { background: rgba(249, 168, 188, 0.20); }

/* label / 按钮 */
.markdown-body .label, .markdown-body .btn {
  font-family: var(--wc-title-font);
  border: 2.5px dashed var(--wc-crayon-line);
  border-radius: 999px;
  background: var(--wc-paper-2);
  color: var(--wc-ink);
  box-shadow: 0 3px 8px rgba(120, 90, 50, 0.12);
}
.markdown-body .btn:hover { background: var(--link-hover-bg-color); color: var(--post-link-color); }

/* ---------- 9. 文章元信息 / 标签 / 版权 ---------- */
.post-metas .post-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  background: var(--wc-paper-2);
  border: 2px dashed var(--wc-crayon-line);
  border-radius: 999px;
  padding: 0.15rem 0.8rem;
  margin: 0.3rem 0.6rem 0.3rem 0 !important;
  color: var(--wc-ink-soft);
  font-size: 0.88rem;
}
.post-metas .post-meta a {
  color: var(--post-link-color);
  margin: 0 0.25em;
}
.post-metas .post-meta a:hover { color: var(--link-hover-color); text-decoration: none; }
.post-metas .post-meta i { margin-right: 0.3em; }

.license-box {
  position: relative;
  background: linear-gradient(115deg, rgba(255, 239, 201, 0.6), rgba(249, 168, 188, 0.14));
  border: 3px dashed var(--wc-crayon-line);
  border-radius: var(--wc-radius);
  padding: 1.1rem 1.3rem;
  box-shadow: 0 6px 16px rgba(120, 90, 50, 0.12);
  transform: rotate(-0.3deg);
}
.license-box::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 84px;
  height: 26px;
  transform: translateX(-50%) rotate(2deg);
  border-radius: 3px;
  opacity: 0.9;
  box-shadow: 0 2px 6px rgba(90, 70, 50, 0.25);
  background-image: repeating-linear-gradient(45deg, rgba(143, 208, 232, 0.85) 0 14px, rgba(255, 255, 255, 0.45) 14px 22px);
}
.license-box .license-title { color: var(--post-heading-color); font-family: var(--wc-title-font); }
.license-box .license-meta { color: var(--wc-ink-soft); }
html[data-user-color-scheme="dark"] .license-box {
  background: linear-gradient(115deg, rgba(255, 215, 106, 0.10), rgba(201, 168, 232, 0.12));
}

.post-prevnext .post-prev a,
.post-prevnext .post-next a {
  display: inline-block;
  background: var(--wc-paper-2);
  border: 2.5px dashed var(--wc-crayon-line);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  color: var(--wc-ink);
  font-family: var(--wc-title-font);
  box-shadow: 0 3px 8px rgba(120, 90, 50, 0.12);
  transition: transform 0.2s ease;
}
.post-prevnext .post-prev a:hover,
.post-prevnext .post-next a:hover {
  background: #FFF1DC;
  color: #C75B3A;
  transform: translateY(-2px) rotate(-1deg);
  text-decoration: none;
}
html[data-user-color-scheme="dark"] .post-prevnext .post-prev a:hover,
html[data-user-color-scheme="dark"] .post-prevnext .post-next a:hover { background: #384264; }

/* ---------- 10. 侧边栏：便签纸 ---------- */
.sidebar.category-bar {
  background: var(--wc-paper-2);
  background-image: var(--wc-noise);
  background-size: 260px 260px;
  border: 3px dashed var(--wc-crayon-line);
  border-radius: var(--wc-radius);
  padding: 1.1rem 1rem;
  box-shadow: var(--wc-shadow);
  /* 保持主题的 position: sticky，不覆盖 */
}
.sidebar.category-bar::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 74px;
  height: 22px;
  transform: translateX(-50%) rotate(-1.5deg);
  border-radius: 3px;
  opacity: 0.9;
  box-shadow: 0 2px 6px rgba(90, 70, 50, 0.25);
  background-image: repeating-linear-gradient(45deg, rgba(255, 215, 106, 0.9) 0 13px, rgba(255, 255, 255, 0.45) 13px 20px);
}
.category-list a {
  color: var(--wc-ink-soft);
  font-family: var(--wc-title-font);
}
.category-list a:hover {
  color: var(--post-link-color);
  background: var(--link-hover-bg-color);
  border-radius: 8px;
  text-decoration: none;
}
.category-count {
  background: rgba(255, 215, 106, 0.55);
  border: 2px dashed var(--wc-crayon-line);
  border-radius: 999px;
  color: #6B4F2E;
  text-align: center;
  font-family: var(--wc-title-font);
}
html[data-user-color-scheme="dark"] .category-count { background: rgba(255, 215, 106, 0.2); color: #FFE9C7; }

#toc {
  background: var(--wc-paper-2);
  background-image: var(--wc-noise);
  background-size: 260px 260px;
  border: 3px dashed var(--wc-crayon-line);
  border-radius: var(--wc-radius);
  padding: 0.9rem 1rem;
  box-shadow: var(--wc-shadow);
  position: relative;
}
#toc::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 74px;
  height: 22px;
  transform: translateX(-50%) rotate(1.5deg);
  border-radius: 3px;
  opacity: 0.9;
  box-shadow: 0 2px 6px rgba(90, 70, 50, 0.25);
  background-image: repeating-linear-gradient(45deg, rgba(249, 168, 188, 0.85) 0 13px, rgba(255, 255, 255, 0.42) 13px 20px);
}
#toc .toc-header {
  font-family: var(--wc-title-font);
  color: var(--post-heading-color);
  border-bottom: 2px dashed var(--wc-crayon-line);
  padding-bottom: 0.5rem;
  margin-bottom: 0.6rem;
}
#toc a { color: var(--wc-ink-soft); }
#toc a:hover { color: var(--post-link-color); }
#toc .tocbot-active-link { color: #C75B3A; font-weight: bold; }

/* ---------- 11. 评论区 ---------- */
#comments {
  background: var(--wc-paper-2);
  background-image: var(--wc-noise);
  background-size: 260px 260px;
  border: 3px dashed var(--wc-crayon-line);
  border-radius: var(--wc-radius);
  padding: 1.2rem 1.1rem;
  box-shadow: var(--wc-shadow);
  margin-top: 2.2rem;
  position: relative;
}
#comments::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 3rem;
  width: 84px;
  height: 24px;
  transform: rotate(-2deg);
  border-radius: 3px;
  opacity: 0.9;
  box-shadow: 0 2px 6px rgba(90, 70, 50, 0.25);
  background-image: repeating-linear-gradient(45deg, rgba(143, 208, 232, 0.85) 0 14px, rgba(255, 255, 255, 0.45) 14px 22px);
}

/* ---------- 12. 列表页：归档 / 分类 / 标签 ---------- */
.list-group-item {
  background: var(--wc-paper-2);
  border: 2.5px dashed var(--wc-crayon-line);
  border-radius: 18px 10px 20px 12px / 12px 18px 10px 20px !important;
  color: var(--wc-ink);
  margin-bottom: 0.7rem;
  box-shadow: 0 3px 10px rgba(120, 90, 50, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.list-group-item:hover {
  background: var(--link-hover-bg-color);
  color: var(--post-link-color);
  transform: translateY(-3px) rotate(-0.4deg);
  box-shadow: 0 10px 20px rgba(120, 90, 50, 0.18);
}
.list-group-item .list-group-item-title { font-family: var(--wc-title-font); }
.list-group-item .list-group-item-text { color: var(--wc-ink-soft); }
.archive-list h4, .archive-list h5, .archive-list .h4, .archive-list .h5 {
  font-family: var(--wc-title-font);
  color: var(--post-heading-color);
}

.tagcloud a {
  display: inline-block;
  background: var(--wc-paper-2);
  border: 2.5px dashed var(--wc-crayon-line);
  border-radius: 999px;
  padding: 0.15em 0.85em;
  margin: 0.3em 0.25em;
  color: var(--wc-ink) !important;
  font-family: var(--wc-title-font);
  box-shadow: 0 3px 8px rgba(120, 90, 50, 0.12);
  transition: transform 0.18s ease, background 0.18s ease;
}
.tagcloud a:nth-child(4n+1) { background: rgba(249, 168, 188, 0.22); transform: rotate(-1deg); }
.tagcloud a:nth-child(4n+2) { background: rgba(255, 215, 106, 0.3); transform: rotate(1deg); }
.tagcloud a:nth-child(4n+3) { background: rgba(143, 208, 232, 0.22); transform: rotate(-1.5deg); }
.tagcloud a:nth-child(4n)   { background: rgba(168, 216, 120, 0.26); transform: rotate(1.5deg); }
.tagcloud a:hover {
  transform: scale(1.08) rotate(0deg);
  background: var(--link-hover-bg-color);
  color: var(--post-link-color) !important;
}

/* ---------- 13. 友链页 ---------- */
.links .card {
  background: var(--wc-paper-2);
  background-image: var(--wc-noise);
  background-size: 260px 260px;
  border: 3px dashed var(--wc-crayon-line);
  border-radius: 24px 14px 26px 12px / 14px 24px 12px 26px;
  box-shadow: 0 6px 16px rgba(120, 90, 50, 0.12);
  margin-bottom: 1.2rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.links .card:nth-child(odd) { transform: rotate(-0.5deg); }
.links .card:nth-child(even) { transform: rotate(0.5deg); }
.links .card:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 0 14px 28px rgba(120, 90, 50, 0.2);
}
.links .card .card-body { padding: 1rem 1.1rem; }
.links .link-avatar img {
  border: 3px dashed var(--wc-crayon-line);
  border-radius: 50% 44% 46% 42% / 45% 46% 44% 52%;
  padding: 3px;
  background: #FFFDF6;
  transform: rotate(-2deg);
}
.links .link-title {
  color: var(--post-heading-color);
  font-family: var(--wc-title-font);
  font-size: 1.05rem;
}
.links .link-intro { color: var(--wc-ink-soft); font-size: 0.88rem; line-height: 1.7; }

/* ---------- 14. 关于页 ---------- */
.about-avatar img {
  border: 4px dashed var(--wc-crayon-line);
  border-radius: 50% 46% 44% 52% / 48% 44% 52% 46%;
  padding: 6px;
  background: #FFFDF6;
  box-shadow: var(--wc-shadow);
  transform: rotate(-1.5deg);
}
.about-name {
  color: var(--post-heading-color);
  font-family: var(--wc-title-font);
  font-size: 1.6rem;
  margin: 0.6rem 0 0.2rem;
}
.about-intro { color: var(--wc-ink-soft); font-family: var(--wc-title-font); }
.about-icons .iconfont {
  color: var(--wc-ink);
  background: var(--wc-paper-2);
  border: 2px dashed var(--wc-crayon-line);
  border-radius: 46% 54% 52% 48% / 48% 52% 48% 52%;
  padding: 0.4rem;
  box-shadow: 0 3px 8px rgba(120, 90, 50, 0.12);
}

/* ---------- 15. 搜索弹窗 ---------- */
.modal-content {
  background: var(--wc-paper-2);
  background-image: var(--wc-noise);
  background-size: 260px 260px;
  border: 3px dashed var(--wc-crayon-line);
  border-radius: var(--wc-radius);
}
#local-search-input {
  border: 2.5px dashed var(--wc-crayon-line);
  border-radius: 999px;
  background: var(--wc-paper);
  color: var(--wc-ink);
  font-family: var(--wc-title-font);
}
.search-result-list-item a { color: var(--wc-ink); }
.search-result-list-item a:hover {
  background: var(--link-hover-bg-color);
  color: var(--post-link-color);
}

/* ---------- 16. 底部：水彩画与版权融为一体 ----------
   水彩画铺满整个页脚作为背景，版权文字直接坐在画的山丘上，
   下半部加一层纸色渐变柔光保证文字可读。页脚 = 画 = 一个整体。 */
footer {
  position: relative;
  /* 与文章内容的距离和原版页脚一致（原版 footer-inner 3rem 上内边距） */
  margin-top: 3rem;
  /* 底部的蜡笔虚线边线 */
  border-top: 3px dashed var(--wc-crayon-line);
  min-height: 12vw;
  background-color: var(--wc-paper);
}
/* 画是真正的 <img class="wc-footer-art">（见 scripts/watercolor-inject.js） */
.wc-footer-art {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  pointer-events: none;
}
html[data-user-color-scheme="dark"] .wc-footer-art {
  filter: brightness(0.62) saturate(0.85);
}
.footer-inner {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding: calc(12vw * 0.42) 1.2rem 1.1rem;
  /* 下半部柔光：让文字在画上依然清晰，同时透出上面的画 */
  background: linear-gradient(180deg,
    rgba(252, 246, 232, 0) 30%,
    rgba(252, 246, 232, 0.88) 76%,
    rgba(252, 246, 232, 0.95) 100%);
  text-align: center;
  color: #6B5840;
}
html[data-user-color-scheme="dark"] .footer-inner {
  background: linear-gradient(180deg,
    rgba(32, 39, 61, 0) 30%,
    rgba(32, 39, 61, 0.88) 76%,
    rgba(32, 39, 61, 0.95) 100%);
  color: #E8DCC3;
}
.wc-footer-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.55rem 1.15rem;
}
.wc-footer-badges a {
  display: inline-block;
  background: rgba(255, 255, 255, 0.55);
  border: 2px dashed var(--wc-crayon-line);
  border-radius: 14px;
  padding: 0.35rem 0.8rem;
  box-shadow: 0 2px 6px rgba(120, 90, 50, 0.12);
  transition: transform 0.2s ease;
}
.wc-footer-badges a:hover { transform: translateY(-2px) rotate(-1deg); }
.wc-footer-badges img { display: block; }
html[data-user-color-scheme="dark"] .wc-footer-badges a { background: rgba(255, 255, 255, 0.06); }

.wc-footer-divider {
  height: 16px;
  background: var(--wc-squiggle-line) center / 260px 16px no-repeat;
  margin: 1rem auto 0.7rem;
  opacity: 0.9;
}
.wc-footer-copy {
  font-family: var(--wc-title-font);
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}
.wc-footer-copy a { color: #C75B3A; }
.wc-footer-copy a:hover { color: #E27B5A; }
.wc-footer-copy .icon-love { color: #F9A8BC; }

/* ---------- 17. 动效 ---------- */
@keyframes wc-float {
  from { transform: translateX(-14px) rotate(-2deg); }
  to   { transform: translateX(14px) rotate(2deg); }
}
@keyframes wc-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

@media (prefers-reduced-motion: reduce) {
  .wc-float-cloud, .scroll-down-bar i.iconfont { animation: none; }
  .index-card, .index-card:hover, .index-card:nth-child(odd), .index-card:nth-child(even),
  .links .card, .links .card:hover, .links .card:nth-child(odd), .links .card:nth-child(even) {
    transform: none;
  }
}

/* ---------- 18. 响应式与打印 ---------- */
/* 平板宽度：画固定 140px 高，保持最低观赏尺寸 */
@media (max-width: 1199px) {
  footer { min-height: 140px; }
  .footer-inner { padding-top: 56px; }
}

@media (max-width: 767px) {
  #board { padding: 2.6rem 1rem 2.2rem; }
  #subtitle { font-size: 1.25rem; padding: 0.3em 0.8em; }
  .banner-text .post-meta { font-size: 0.8em; padding: 0.1em 0.7em; }
  .index-card { padding: 1.2rem 0.9rem; }
  .index-header a { font-size: 1.15rem; }
  .wc-float-cloud { display: none; }
  .wc-tape, #board::before, #board::after { width: 66px; height: 19px; }
  footer { min-height: 16vw; }
  .footer-inner { padding-top: calc(16vw * 0.3); }
}

@media print {
  .wc-tape, #board::before, #board::after, .wc-float-cloud, #scroll-top-button { display: none !important; }
}
