/*
Theme Name: 墨痕集
Theme URI: https://liuby.top
Description: GeneratePress 子主题。视觉方向：清爽轻小说风——天空蓝、樱粉、薄荷的三色日系配色，圆润卡片与气泡标签，中文正文用宋体。纯 CSS 实现，不加载任何外部图片。
Author: 墨痕集
Template: generatepress
Version: 3.1.0
Text Domain: mohenji
*/

/* ===============================================================
   1. 设计令牌
   天空蓝（主）/ 樱粉（强调）/ 薄荷（次强调）/ 晨雾白（纸面）
   两种栏目色：樱粉偏日常，天蓝偏工作；色块只做提示，不做大面积铺底。
   =============================================================== */
:root {
  --bg: #f2f7ff;
  --surface: #ffffff;
  --tint: #e6efff;
  --ink: #1f2a44;
  --ink-mid: #4a5568;
  --ink-soft: #6f7b92;
  --ink-faint: #a3adc0;
  --line: #dce6f7;
  --line-strong: #c3d3ee;

  --sky: #62a8ff;
  --sky-deep: #3d7fe0;
  --sky-tint: #e8f2ff;
  --sakura: #ff7ba6;
  --sakura-deep: #e85a8a;
  --sakura-tint: #fff0f5;
  --mint: #43cfb3;
  --mint-tint: #e6faf5;

  --radius: 18px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-1: 0 2px 0 rgba(98, 168, 255, 0.12), 0 8px 20px rgba(70, 120, 200, 0.08);
  --shadow-2: 0 3px 0 rgba(98, 168, 255, 0.16), 0 14px 30px rgba(70, 120, 200, 0.14);
  --squircle: 0 0 0 2px rgba(255, 255, 255, 0.9);

  --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC",
    "Noto Serif CJK SC", "STSong", "SimSun", Georgia, serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans CJK SC", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, "Liberation Mono", monospace;

  --measure: 36em;
  --wrap: 1080px;
  --gutter: 40px;
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===============================================================
   2. 基础排版
   文章用宋体，界面用黑体
   =============================================================== */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 颗粒感点阵：轻小说的星屑感，两种栏目各一点色偏 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(98, 168, 255, 0.16), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(255, 123, 166, 0.14), transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(67, 207, 179, 0.1), transparent 50%);
}
.site-header,
.site-content,
.site-footer {
  position: relative;
  z-index: 1;
}

.main-navigation,
.entry-meta,
.entry-tags,
.tag-links,
.section-badge,
.site-footer,
.site-description,
.mohenji-publish-bar,
.archive-month,
.archive-year-count,
.archive-item time,
.archive-summary,
.entry-summary,
input,
textarea,
button,
select,
.comment-meta,
.nav-links,
.post-navigation {
  font-family: var(--font-sans);
}

.entry-content p,
.entry-summary p {
  margin-bottom: 1.35em;
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6,
.site-title,
.entry-title {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: var(--ink);
  text-wrap: pretty;
}

h2 { font-size: 1.5em; }
h3 { font-size: 1.22em; }
h4 { font-size: 1.06em; }

.entry-content h2 {
  padding-left: 0.7em;
  border-left: 4px solid var(--sky);
  line-height: 1.4;
}
.entry-content h3 {
  padding-left: 0.6em;
  border-left: 3px solid var(--sakura);
  line-height: 1.45;
}

.entry-title {
  font-size: clamp(1.62rem, 1.2rem + 1.7vw, 2.1rem);
  line-height: 1.38;
  letter-spacing: 0.005em;
}

.entry-title a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(transparent 62%, rgba(255, 123, 166, 0.35) 62%);
  background-repeat: no-repeat;
  background-size: 0 100%;
  transition: background-size 0.35s var(--ease-pop), color 0.2s ease;
}
.entry-title a:hover {
  color: var(--sky-deep);
  background-image: linear-gradient(transparent 62%, rgba(98, 168, 255, 0.32) 62%);
  background-size: 100% 100%;
}

/* ---------------------------------------------------------------
   链接
   --------------------------------------------------------------- */
a {
  color: var(--sky-deep);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover {
  color: var(--sakura-deep);
}

.entry-content a {
  color: var(--sky-deep);
  border-bottom: 2px solid rgba(98, 168, 255, 0.35);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.entry-content a:hover {
  color: var(--sakura-deep);
  border-bottom-color: var(--sakura);
}

/* 焦点可见 */
a:focus-visible,
button:focus-visible,
.menu-toggle:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(98, 168, 255, 0.55);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection {
  background: rgba(255, 123, 166, 0.28);
  color: var(--ink);
}

/* ===============================================================
   3. 页头：奶油白横幅 + 底部一道粉蓝渐变彩条
   =============================================================== */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 0;
  box-shadow: 0 1px 0 var(--line);
}
.site-header::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--sky) 0%, #8fc2ff 38%, var(--sakura) 78%, var(--mint) 100%);
}

.inside-header {
  padding: 30px var(--gutter) 22px;
}

.site-branding {
  display: flex;
  align-items: baseline;
  gap: 0.85em;
  flex-wrap: wrap;
  position: relative;
}

.main-title,
.site-title {
  margin: 0;
  font-size: 1.8em;
  line-height: 1.2;
}
.site-title a {
  position: relative;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.14em;
}
/* 标题右上角一颗小星，纯 CSS */
.site-title a::after {
  content: "";
  position: absolute;
  top: 0.08em;
  right: -0.55em;
  width: 8px;
  height: 8px;
  background: var(--sakura);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  transition: transform 0.4s var(--ease-pop);
}
.site-title a:hover::after {
  transform: rotate(90deg) scale(1.25);
}
.site-title a:hover {
  color: var(--sky-deep);
}

.site-description {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  padding: 0.15em 0.75em;
  border-radius: var(--radius-pill);
  background: var(--tint);
}

/* 导航：胶囊按钮，当前项粉底白字 */
.main-navigation,
.main-navigation.toggled .main-nav > ul,
.main-navigation .main-nav ul li a,
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li a:active,
.main-navigation .main-nav ul li a:focus {
  background: transparent;
}
.main-navigation .inside-navigation {
  padding: 0 var(--gutter) 16px;
  align-items: center;
}
.main-navigation .main-nav ul {
  gap: 6px;
}
.main-navigation .main-nav ul li a {
  color: var(--ink-mid);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.6;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s var(--ease-pop);
}
.main-navigation .main-nav ul li a:hover {
  color: var(--sky-deep);
  background: var(--sky-tint);
  transform: translateY(-1px);
}
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-menu-ancestor > a,
.main-navigation .main-nav ul li.current-menu-parent > a,
.main-navigation .main-nav ul li.current_page_item > a {
  color: #fff !important;
  background: linear-gradient(135deg, var(--sky) 0%, #7fb8ff 100%) !important;
  box-shadow: 0 3px 0 rgba(61, 127, 224, 0.25);
}
.main-navigation .main-nav ul li.current-menu-item > a:hover,
.main-navigation .main-nav ul li.current_page_item > a:hover {
  color: #fff;
}
.main-navigation .menu-toggle {
  color: var(--sky-deep);
  background: var(--sky-tint);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

/* 工作 / 生活 在导航里各一色点 */
.main-navigation .menu-item-工作 > a::before,
.main-navigation .menu-item-生活 > a::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.5em;
  border-radius: 50%;
  vertical-align: 0.08em;
}
.main-navigation .menu-item-工作 > a::before { background: var(--sky); }
.main-navigation .menu-item-生活 > a::before { background: var(--sakura); }

/* 登录 / 账户 */
.mohenji-account {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin-left: 0.6em;
  padding: 4px 6px 4px 4px;
  border-radius: var(--radius-pill);
  background: var(--tint);
}
.mohenji-account .mohenji-avatar {
  border-radius: 50%;
  display: block;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(98, 168, 255, 0.25);
}
.mohenji-account-link {
  font-weight: 600;
  color: var(--sky-deep) !important;
  padding: 4px 8px !important;
}
.mohenji-account-link:hover {
  color: var(--sakura-deep) !important;
  background: transparent !important;
}
.mohenji-account-action {
  font-size: 12px;
  color: var(--ink-soft) !important;
  padding: 4px 10px 4px 8px !important;
  border-left: 1px dashed var(--line-strong);
  margin-left: 0;
}
.mohenji-account-action:hover {
  color: var(--sakura-deep) !important;
  background: transparent !important;
}
.mohenji-login-link {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sky-deep) !important;
  border: 2px solid var(--sky) !important;
  border-radius: var(--radius-pill) !important;
  padding: 5px 16px !important;
  background: #fff !important;
}
.mohenji-login-link:hover {
  color: #fff !important;
  background: var(--sky) !important;
}

@media (max-width: 768px) {
  .inside-header {
    padding: 20px 20px 14px;
  }
  .main-navigation .inside-navigation {
    padding: 0 12px 10px;
  }
  .main-navigation .main-nav ul li a {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
  }
  .mohenji-account {
    margin-left: 0;
    margin-top: 8px;
  }
}

/* ===============================================================
   3b. 搜索：桌面点放大镜展开，手机固定在菜单底部
   =============================================================== */
.mohenji-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 8px;
}
.mohenji-search-form {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 4px 0 14px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
  overflow: hidden;
}
.mohenji-search-form:focus-within {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--sky), 0 0 0 4px rgba(98, 168, 255, 0.14);
}
/* label 只承载无障碍名称与点击手势，放大镜用伪元素画出来 */
.mohenji-search-label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: 2px;
  border-radius: 50%;
  color: var(--sky-deep);
  cursor: pointer;
  font-size: 0;
  order: 2;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.mohenji-search-label::before {
  content: "";
  width: 15px;
  height: 15px;
  box-sizing: border-box;
  border: 2.2px solid currentColor;
  border-radius: 50%;
  transform: translate(-1px, -1px);
}
.mohenji-search-label::after {
  content: "";
  position: absolute;
  width: 2.2px;
  height: 7px;
  background: currentColor;
  border-radius: 2px;
  transform: translate(6px, 6px) rotate(-45deg);
}
.mohenji-search-label:hover {
  background: var(--sky-tint);
  color: var(--sakura-deep);
}

.mohenji-search .mohenji-search-input {
  order: 1;
  width: 0;
  padding: 0;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: width 0.28s var(--ease-pop), opacity 0.2s ease;
}
.mohenji-search .mohenji-search-input::-webkit-search-decoration,
.mohenji-search .mohenji-search-input::-webkit-search-cancel-button,
.mohenji-search .mohenji-search-input::-webkit-search-results-button {
  -webkit-appearance: none;
  display: none;
}
.mohenji-search .mohenji-search-input::placeholder {
  color: var(--ink-faint);
}
.mohenji-search .mohenji-search-input:focus {
  outline: none;
  box-shadow: none !important;
}
.mohenji-search-submit {
  order: 3;
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--sky);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.18s ease;
}
.mohenji-search-submit:hover {
  background: var(--sakura);
}
.mohenji-search.is-open .mohenji-search-input {
  width: 170px;
  margin-right: 2px;
  opacity: 1;
}
.mohenji-search.is-open .mohenji-search-submit {
  display: inline-flex;
}

@media (max-width: 768px) {
  .mohenji-search {
    display: block;
    margin: 10px 0 0;
  }
  .mohenji-search-form {
    height: 44px;
    width: 100%;
  }
  .mohenji-search-label {
    display: none;
  }
  .mohenji-search-form {
    box-shadow: inset 0 0 0 1.5px var(--line-strong);
    padding-left: 6px;
  }
  .mohenji-search .mohenji-search-input,
  .mohenji-search.is-open .mohenji-search-input {
    width: 100%;
    padding: 0 4px 0 8px;
    opacity: 1;
  }
  .mohenji-search-submit,
  .mohenji-search.is-open .mohenji-search-submit {
    display: inline-flex;
  }
}

/* ===============================================================
   4. 版心与文章卡片
   =============================================================== */
.site-content,
.grid-container {
  max-width: var(--wrap);
}

#content {
  margin-left: 0;
  margin-right: 0;
  padding-top: 28px;
}
#main {
  margin-left: var(--gutter);
  margin-right: var(--gutter);
  padding-left: 0;
  padding-right: 0;
}
@media (max-width: 768px) {
  #content {
    padding-top: 20px;
  }
  #main {
    margin-left: 16px;
    margin-right: 16px;
  }
}

/* 自定义归档模板里没有 .inside-article 包裹，它自己就是一张卡片 */
#main > article.archive-page {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 30px 32px 36px;
  margin: 0 0 26px;
}
#main > article.archive-page .entry-header {
  margin-bottom: 1.4em;
  padding-bottom: 1.2em;
  border-bottom: 2px dashed var(--line);
}

.separate-containers .inside-article,
.one-container .inside-article,
.inside-article {
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 30px 32px 32px !important;
  margin: 0 0 26px;
  transform: none;
  transition: box-shadow 0.25s ease, transform 0.25s var(--ease-pop);
}

/* 列表页：卡片轻微上浮 + 阴影加深 */
#main > article {
  padding: 0;
  margin: 0 0 26px;
}
#main > article .inside-article:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-3px);
}

/* 栏目：卡片顶部一条渐变细带 */
#main > article.is-work .inside-article {
  background-image: linear-gradient(90deg, var(--sky), #a9cdff);
  background-repeat: no-repeat;
  background-size: 100% 6px;
  background-position: 0 0;
  padding-top: 34px !important;
}
#main > article.is-life .inside-article {
  background-image: linear-gradient(90deg, var(--sakura), #ffb8cf);
  background-repeat: no-repeat;
  background-size: 100% 6px;
  background-position: 0 0;
  padding-top: 34px !important;
}

/* 栏目标签：小气泡 + 图标（图标由 inc-assets.php 以 CSS 变量注入，缺图时回退成色点） */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.28em 0.85em;
  border-radius: var(--radius-pill);
  margin: 0 0 0.85em;
  background: var(--tint);
  color: var(--ink-soft);
}
.section-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}
.section-badge--work,
.section-badge--life {
  padding-left: 0.6em;
}
.section-badge--work::before,
.section-badge--life::before {
  width: 16px;
  height: 16px;
  background: currentColor;
  border-radius: 0;
  box-shadow: none;
  -webkit-mask: var(--badge-icon) center / contain no-repeat;
  mask: var(--badge-icon) center / contain no-repeat;
}

.section-badge--work {
  color: var(--sky-deep);
  background: var(--sky-tint);
}
.section-badge--life {
  color: var(--sakura-deep);
  background: var(--sakura-tint);
}
/* inc-assets.php 注入 --badge-icon 后，图标自动替代色点 */

/* 元信息 */
.entry-meta {
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.9;
}
.entry-meta a {
  color: var(--ink-soft);
}
.entry-meta a:hover {
  color: var(--sky-deep);
}
.entry-header .entry-meta {
  margin-top: 0.55em;
}
.entry-meta .gp-icon {
  vertical-align: -0.15em;
  margin-right: 0.25em;
  opacity: 0.65;
}
.entry-meta .byline {
  margin-left: 0.4em;
}
.entry-meta .cat-links,
.entry-meta .comments-link,
.entry-meta .tags-links {
  display: inline-block;
  margin-right: 0.6em;
  padding: 0.22em 0.75em;
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--bg);
  border-radius: var(--radius-pill);
}
.entry-meta .cat-links a,
.entry-meta .comments-link a,
.entry-meta .tags-links a {
  color: var(--ink-soft);
}
.entry-meta .cat-links:hover,
.entry-meta .comments-link:hover {
  background: var(--sky-tint);
}
.entry-meta .cat-links a:hover,
.entry-meta .comments-link a:hover {
  color: var(--sky-deep);
}

/* 摘要 */
.entry-summary {
  margin: 1em 0 0;
  color: var(--ink-mid);
  font-size: 15.5px;
  line-height: 1.95;
  letter-spacing: 0.01em;
}
.entry-summary p {
  margin-bottom: 0.7em;
}
.entry-summary p:last-child {
  margin-bottom: 0;
}

/* 列表页配图：圆角 + 框线 */
#main > article .post-image {
  margin: 1.3em 0 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
}
#main > article .post-image img {
  width: 100%;
  height: auto;
  max-height: 330px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-pop), opacity 0.3s ease;
}
#main > article .post-image a:hover img {
  transform: scale(1.03);
}

/* ===============================================================
   5. 正文
   =============================================================== */
.single .inside-article {
  padding: 36px 40px 40px !important;
}
.single .inside-article .entry-header {
  margin-bottom: 1.9em;
  padding-bottom: 1.3em;
  border-bottom: 2px dashed var(--line);
}

.entry-content img,
.entry-content figure img {
  border-radius: var(--radius-sm);
  height: auto;
}
.entry-content > p > img,
.entry-content > img {
  display: block;
  max-width: 100%;
  margin: 1.8em auto;
  box-shadow: inset 0 0 0 1px var(--line);
}
.entry-content > p > img[width],
.entry-content > img[width] {
  max-width: 100%;
}
.entry-content > p > img.emoji,
.entry-content img.emoji {
  display: inline;
  margin: 0 0.1em;
  vertical-align: -0.15em;
  box-shadow: none;
}
.entry-content > p > img:not([width]),
.entry-content > img:not([width]) {
  width: auto;
}
.entry-content figure {
  margin: 2em 0;
}
.entry-content figcaption {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 0.6em;
  letter-spacing: 0.02em;
  text-align: center;
}

/* 引用：淡蓝圆角块 + 左侧粉色竖线 + 引号 */
blockquote,
.wp-block-quote {
  position: relative;
  border-left: 4px solid var(--sakura);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: linear-gradient(135deg, var(--sky-tint), #f6faff);
  padding: 1.1em 1.4em 1.1em 1.6em;
  margin: 2.2em 0;
  color: var(--ink-mid);
  font-size: 1.04em;
  font-style: normal;
}
blockquote::before {
  content: "“";
  position: absolute;
  top: -0.15em;
  right: 0.35em;
  font-family: Georgia, serif;
  font-size: 3.4em;
  line-height: 1;
  color: rgba(98, 168, 255, 0.22);
  pointer-events: none;
}
blockquote p:last-child {
  margin-bottom: 0;
}
blockquote cite,
.wp-block-quote cite {
  display: block;
  margin-top: 0.6em;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-style: normal;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

code, pre, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.86em;
}

pre,
.wp-block-code {
  background: #f1f6ff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  overflow-x: auto;
  line-height: 1.7;
  margin: 1.8em 0;
}

:not(pre) > code {
  background: #fff0f5;
  color: var(--sakura-deep);
  padding: 0.14em 0.45em;
  border-radius: 6px;
  border: 0;
}

hr,
.wp-block-separator {
  border: 0;
  border-top: 2px dashed var(--line-strong);
  margin: 2.6em 0;
}

/* 表格 */
.entry-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95em;
  margin: 1.8em 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.entry-content th,
.entry-content td {
  padding: 0.62em 0.9em;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.entry-content thead th {
  background: var(--sky-tint);
  color: var(--ink);
  font-weight: 700;
}
.entry-content tr:last-child td {
  border-bottom: 0;
}

/* 列表 */
.entry-content ul,
.entry-content ol {
  padding-left: 1.4em;
  margin: 0 0 1.35em;
}
.entry-content li {
  margin-bottom: 0.4em;
}
.entry-content li::marker {
  color: var(--sky);
}
.entry-content ol li::marker {
  color: var(--sakura);
  font-weight: 700;
}

/* 标签 */
.entry-tags a,
.tag-links a,
.tags-links a {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--sky-deep);
  background: var(--sky-tint);
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.25em 0.8em;
  margin: 0 0.4em 0.4em 0;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s var(--ease-pop);
}
.entry-tags a:hover,
.tag-links a:hover,
.tags-links a:hover {
  background: var(--sakura);
  color: #fff;
  transform: translateY(-1px);
}

/* 翻页与上一篇 / 下一篇 */
.nav-links,
.page-numbers {
  font-size: 14px;
  letter-spacing: 0.04em;
}
.nav-links a,
.page-numbers a {
  color: var(--sky-deep);
  font-weight: 600;
}
.nav-links a:hover,
.page-numbers a:hover {
  color: var(--sakura-deep);
}
.paging-navigation,
.post-navigation {
  margin-top: 2.4em;
}
.post-navigation .nav-previous a,
.post-navigation .nav-next a {
  display: block;
  padding: 0.9em 1.1em;
  background: var(--bg);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}
.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover {
  background: var(--sky-tint);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.post-navigation .nav-links {
  display: flex;
  gap: 1em;
  justify-content: space-between;
}

/* ===============================================================
   5b. 评论
   =============================================================== */
#comments,
.comment-respond {
  margin-top: 2.6em;
  padding-top: 1.8em;
  border-top: 2px dashed var(--line);
}
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.2em;
}
.comment-list .comment-body {
  border: 0 !important;
  background: var(--bg) !important;
  border-radius: var(--radius-sm) !important;
  padding: 1.1em 1.3em !important;
  margin-bottom: 0.9em;
}
.comment-list .children {
  margin-left: 1.8em;
}
.comment-meta {
  font-size: 12.5px;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}
.comment-author .fn {
  font-weight: 700;
  color: var(--sky-deep);
  font-style: normal;
}
.comment-list .avatar {
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(255, 123, 166, 0.25);
}
.comment-content {
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--ink-mid);
}
.reply a,
.comment-reply-link {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--sky-deep) !important;
  text-decoration: none;
}
.reply a:hover,
.comment-reply-link:hover {
  color: var(--sakura-deep) !important;
}
.comment-respond h3,
.comment-respond .comment-reply-title {
  font-size: 1.1em;
  margin-bottom: 1em;
}
.comment-form label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 0.35em;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.comment-respond input:not([type="submit"]):not([type="checkbox"]),
.comment-respond textarea {
  width: 100%;
  background: #fbfdff;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.65em 0.85em;
  font-size: 15px;
  color: var(--ink);
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus,
.comment-respond textarea:focus {
  border-color: var(--sky);
  outline: none;
  box-shadow: 0 0 0 4px rgba(98, 168, 255, 0.16);
}
.comment-form textarea {
  min-height: 8em;
}
.comment-form .form-submit input,
button[type="submit"],
input[type="submit"] {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--sky) 0%, #7fb8ff 100%);
  color: #fff;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.7em 1.9em;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(61, 127, 224, 0.28);
  transition: transform 0.15s var(--ease-pop), box-shadow 0.15s ease, background-color 0.18s ease;
}
.comment-form .form-submit input:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: linear-gradient(135deg, var(--sakura) 0%, #ff9dba 100%);
  box-shadow: 0 4px 0 rgba(232, 90, 138, 0.28);
  transform: translateY(-1px);
}
.comment-form .form-submit input:active,
button[type="submit"]:active,
input[type="submit"]:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(61, 127, 224, 0.28);
}
.comment-respond .comment-form-cookies-consent label {
  display: inline;
  margin-left: 0.4em;
}

/* ===============================================================
   6. 「写一篇」按钮
   =============================================================== */
.mohenji-publish-bar {
  max-width: var(--measure);
  margin: 0 auto 14px;
  display: flex;
  justify-content: flex-end;
}
.mohenji-publish-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.62em 1.3em;
  border: 0;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: #fff;
  box-shadow: 0 4px 0 rgba(61, 127, 224, 0.25);
  transition: transform 0.15s var(--ease-pop), box-shadow 0.15s ease;
}
.mohenji-publish-button--work {
  background: linear-gradient(135deg, var(--sky) 0%, #7fb8ff 100%);
}
.mohenji-publish-button--life {
  background: linear-gradient(135deg, var(--sakura) 0%, #ff9dba 100%);
  box-shadow: 0 4px 0 rgba(232, 90, 138, 0.25);
}
.mohenji-publish-button:hover {
  color: #fff;
  transform: translateY(-2px);
}
.mohenji-publish-button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(61, 127, 224, 0.25);
}
.mohenji-publish-icon {
  font-size: 1.1em;
  line-height: 1;
  font-weight: 700;
}

@media (max-width: 768px) {
  .mohenji-publish-bar {
    justify-content: stretch;
  }
  .mohenji-publish-button {
    flex: 1;
    justify-content: center;
    min-height: 44px;
  }
}

/* ===============================================================
   7. 归档页
   =============================================================== */
.archive-page .entry-title {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.5rem);
}
.archive-summary {
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 0.4em;
}
.archive-year {
  font-family: var(--font-sans);
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--sky-deep);
  margin: 2em 0 0.2em;
  padding-bottom: 0.3em;
  border-bottom: 2px dashed var(--line-strong);
  display: flex;
  align-items: baseline;
  gap: 0.6em;
}
.archive-year-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--sakura-deep);
  background: var(--sakura-tint);
  border-radius: var(--radius-pill);
  padding: 0.15em 0.7em;
  letter-spacing: 0.06em;
}
.archive-month {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.14em;
  margin: 1.7em 0 0.5em;
}
.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.archive-item {
  display: flex;
  align-items: center;
  gap: 0.65em;
  padding: 0.6em 0.8em;
  margin-bottom: 4px;
  border-radius: var(--radius-sm);
  line-height: 1.7;
  transition: background-color 0.18s ease;
}
.archive-item:hover {
  background: var(--sky-tint);
}
.archive-item a {
  color: var(--ink);
  text-decoration: none;
  flex: 1;
  min-width: 0;
  transition: color 0.18s ease;
}
.archive-item a:hover {
  color: var(--sky-deep);
}
.archive-item time {
  color: var(--ink-faint);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.archive-item .section-badge {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  padding: 0.18em 0.65em;
}

@media (max-width: 768px) {
  .archive-item {
    flex-wrap: wrap;
    gap: 0.3em;
  }
  .archive-item a {
    flex-basis: 100%;
  }
  .archive-item time {
    padding-left: 1.6em;
  }
}

/* ===============================================================
   7b. 搜索结果页
   =============================================================== */
.search-results .page-header,
.search-results .no-results {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 26px 32px;
  margin: 0 0 24px;
}
.search-results .page-header .page-title,
.search-results .no-results h1,
.search-results .no-results .page-title {
  font-size: 1.35em;
  margin: 0 0 0.35em;
}
.search-results .page-header .page-title span,
.search-results .no-results .page-title span {
  color: var(--sky-deep);
  background: linear-gradient(transparent 62%, rgba(98, 168, 255, 0.28) 62%);
}
.search-results .archive-description,
.search-results .page-header .taxonomy-description,
.search-results .no-results p {
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 14px;
  margin: 0;
}
.search-results .paging-navigation,
.search-results .page-navigation {
  text-align: center;
  margin: 1.6em 0 2em;
}
/* 无结果页：插图放在卡片内部右上角，文字保持自然宽度（背景图由 inc-assets.php 以 --empty-art 注入） */
.mohenji-no-results .no-results {
  position: relative;
  overflow: hidden;
  min-height: 210px;
}
.mohenji-no-results .no-results::after {
  content: "";
  position: absolute;
  top: 30px;
  right: 32px;
  width: 104px;
  height: 74px;
  background: var(--empty-art, none) center / contain no-repeat;
  pointer-events: none;
}
.mohenji-no-results .no-results .page-title,
.mohenji-no-results .no-results > p,
.mohenji-no-results .no-results .search-form {
  max-width: min(100%, 32em);
}
@media (max-width: 768px) {
  .mohenji-no-results .no-results {
    padding-bottom: 104px;
    overflow: visible;
  }
  .mohenji-no-results .no-results::after {
    top: auto;
    bottom: 18px;
    right: 50%;
    transform: translateX(50%);
    width: 88px;
    height: 62px;
  }
}
/* 页脚：盖掉 GeneratePress 主题自定义里的深色页脚配色（.site-info 的背景/文字色） */
.site-footer,
.site-info {
  background: transparent !important;
  color: var(--ink-faint) !important;
  border-top: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.site-footer {
  padding-top: 14px;
}
.site-info {
  padding: 0 var(--gutter);
}
.site-footer::before {
  content: "";
  display: block;
  height: 5px;
  margin: 0 var(--gutter) 26px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--sky) 0%, #8fc2ff 38%, var(--sakura) 78%, var(--mint) 100%);
  opacity: 0.9;
}
.inside-site-info {
  padding: 0 0 40px;
  text-align: center;
}
.copyright-bar {
  color: var(--ink-faint) !important;
}
.copyright-bar .copyright {
  color: var(--ink-soft);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.site-footer a,
.site-info a {
  color: var(--sky-deep) !important;
  text-decoration: none;
}
.site-footer a:hover,
.site-info a:hover {
  color: var(--sakura-deep) !important;
}
/* 素材出处（仅首页显示） */
.mohenji-credits {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter) 30px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}
.mohenji-credits a {
  color: var(--ink-soft);
  border-bottom: 1px dotted var(--line-strong);
}

/* ===============================================================
   9. 手机端
   =============================================================== */
@media (max-width: 768px) {
  body {
    font-size: 16.5px;
    line-height: 1.9;
  }
  .separate-containers .inside-article,
  .inside-article {
    padding: 22px 18px 24px !important;
    border-radius: 16px;
  }
  #main > article {
    margin-bottom: 18px;
  }
  .single .inside-article {
    padding: 24px 18px 28px !important;
  }
  #main > article.archive-page {
    padding: 22px 18px 26px;
    border-radius: 16px;
  }
  .entry-summary {
    font-size: 15px;
  }
  #main > article .post-image img {
    max-height: 220px;
  }
  .site-footer::before {
    margin: 0 16px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  #main > article .inside-article:hover,
  #main > article .post-image a:hover img {
    transform: none;
  }
}
