/* 一的法则中文网 · 离线镜像阅读主题（淡灰 · 蓝调） */

/* 拉丁字母与数字专用字体（仅覆盖拉丁区段，中文自动回退） */
@font-face {
  font-family: "YDFZ Serif";
  src: url("fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "YDFZ Sans";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f7f8f9;
  --surface: #ffffff;
  --surface-2: #f0f2f4;
  --ink: #222222;
  --ink-soft: #4c4f57;
  --muted: #7c8088;
  --line: #e3e6ea;
  --line-strong: #d3d8de;
  --tint: #f2f4f6;
  --accent: #1e73be;
  --accent-dark: #155a96;
  --accent-soft: #9cc3e4;
  --link: #1e73be;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-md: 0 2px 4px rgba(16, 24, 40, .04), 0 10px 28px rgba(16, 24, 40, .07);
  --radius: 10px;
  --reading-size: 18px;
  --font-serif: "YDFZ Serif", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --font-sans: "YDFZ Sans", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}

html[data-theme="dark"] {
  --bg: #14171a;
  --surface: #1b1f23;
  --surface-2: #20262c;
  --ink: #e3e6e8;
  --ink-soft: #b6bbc2;
  --muted: #8b9199;
  --line: #2b3137;
  --line-strong: #3a424b;
  --tint: #222930;
  --accent: #6fb1e8;
  --accent-dark: #8cc5f2;
  --accent-soft: #3e6d92;
  --link: #8cc5f2;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .2s ease, color .2s ease;
}

::selection { background: rgba(30, 115, 190, .16); }

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(30, 115, 190, .35);
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}

a:hover { color: var(--accent-dark); text-decoration-color: currentColor; }

img { max-width: 100%; height: auto; }

/* ---------- 页头 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(10px);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: .5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover { color: var(--ink); }

.brand-logo {
  width: auto;
  height: 34px;
  display: block;
  opacity: .92;
}

html[data-theme="dark"] .brand-logo { filter: invert(1); opacity: .88; }

.brand-text {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .06em;
}

.site-nav { flex: 1; min-width: 0; }

.nav-list {
  display: flex;
  align-items: center;
  gap: .1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.nav-item { position: relative; display: flex; align-items: center; }

.nav-link,
.nav-list > li > a {
  display: block;
  padding: .44rem .58rem;
  border-radius: 7px;
  font-family: var(--font-sans);
  font-size: .855rem;
  color: #515151;
  text-decoration: none;
  white-space: nowrap;
}

html[data-theme="dark"] .nav-link,
html[data-theme="dark"] .nav-list > li > a { color: var(--ink-soft); }

.nav-link:hover,
.has-sub.open > .nav-link,
.nav-list > li > a:hover {
  color: var(--accent);
  background: rgba(30, 115, 190, .07);
}

html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .has-sub.open > .nav-link,
html[data-theme="dark"] .nav-list > li > a:hover {
  background: rgba(111, 177, 232, .12);
}

.dd-toggle {
  position: relative;
  width: 1.35rem;
  height: 1.7rem;
  margin-left: -.18rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #757a82;
  font-family: var(--font-sans);
  font-size: .62rem;
  line-height: 1;
  cursor: pointer;
}

.dd-toggle::before {
  content: "▾";
  display: block;
  transition: transform .15s ease;
}

.has-sub.open > .dd-toggle::before { transform: rotate(180deg); }
.has-sub:focus-within > .dd-toggle::before { transform: rotate(180deg); }

.dd-toggle:hover,
.has-sub.open > .dd-toggle {
  color: var(--accent);
  background: rgba(30, 115, 190, .07);
}

/* 悬停与面板之间的透明连接区，避免鼠标移入时闪烁 */
.has-sub::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 20px;
}

.dd-panel {
  position: absolute;
  top: calc(100% + 18px);
  left: 0;
  min-width: 224px;
  padding: .45rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: none;
  flex-direction: column;
  z-index: 120;
}

.has-sub:hover > .dd-panel,
.has-sub:focus-within > .dd-panel,
.has-sub.open > .dd-panel { display: flex; }

.dd-sub { list-style: none; margin: 0; padding: 0; }

.dd-sub a {
  display: block;
  padding: .38rem .7rem;
  border-radius: 7px;
  font-family: var(--font-sans);
  font-size: .84rem;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}

.dd-sub a:hover { background: var(--tint); color: var(--accent); }

.dd-group { margin-top: .3rem; }

.dd-group-label {
  display: block;
  padding: .45rem .7rem .22rem;
  font-family: var(--font-sans);
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--muted);
  text-decoration: none;
}

.dd-group .dd-sub { padding-left: .5rem; }

.header-tools { display: flex; align-items: center; gap: .3rem; margin-left: auto; }

.tool {
  padding: .38rem .62rem;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: .78rem;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.4;
}

.tool:hover {
  color: var(--accent);
  background: var(--tint);
  border-color: var(--line);
}

.nav-toggle { display: none; }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: .9rem 1.4rem 1.2rem;
    max-height: 72vh;
    overflow: auto;
    box-shadow: var(--shadow-md);
  }
  body.nav-open .site-nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: .05rem; }
  .nav-item { flex-wrap: wrap; }
  .nav-link, .nav-list > li > a { flex: 1; padding: .62rem .7rem; font-size: .95rem; }
  .dd-toggle { flex: 0 0 2.1rem; width: 2.1rem; height: 2.1rem; margin-left: 0; font-size: .7rem; }
  /* 移动端：箭头图标放大约 21%，并以透明热区补足 44×44px 触控尺寸 */
  .dd-toggle::before { font-size: .85rem; }
  .dd-toggle::after {
    content: "";
    position: absolute;
    top: -.35rem;
    right: -.35rem;
    bottom: -.35rem;
    left: -.35rem;
  }
  .has-sub::after { display: none; }
  .dd-panel {
    position: static;
    flex-basis: 100%;
    display: none;
    padding: .1rem 0 .25rem .8rem;
    box-shadow: none;
    border: 0;
  }
  .has-sub:hover > .dd-panel,
  .has-sub:focus-within > .dd-panel { display: none; }
  .has-sub.open > .dd-panel { display: flex; }
  .header-inner { flex-wrap: wrap; gap: .5rem 1rem; }
  .header-tools { margin-left: auto; }
}

/* ---------- 主体骨架 ---------- */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4.5rem;
}

.main-col {
  max-width: 48rem;
  margin: 0 auto;
}

body.page-home .main-col,
body.page-category .main-col,
body.page-sitemap .main-col,
body.page-search .main-col { max-width: 64rem; }

.breadcrumb {
  font-family: var(--font-sans);
  font-size: .76rem;
  color: var(--muted);
  margin: 0 0 1.15rem;
  line-height: 1.7;
}

.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 .45rem; opacity: .55; }

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  line-height: 1.42;
  font-weight: 700;
  letter-spacing: .012em;
  margin: 0 0 .75rem;
  color: var(--ink);
}

.meta {
  font-family: var(--font-sans);
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.9;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

.meta a { color: var(--muted); text-decoration: none; }
.meta a:hover { color: var(--accent); }
.meta .dot { margin: 0 .55rem; opacity: .5; }

/* ---------- 正文 ---------- */

.article-body {
  font-size: var(--reading-size);
  line-height: 1.95;
  color: var(--ink);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.page-title + .article-body { margin-top: 1.9rem; }

.article-body > :first-child { margin-top: 0; }

.article-body p {
  margin: 0 0 1.12em;
  text-align: justify;
  text-justify: inter-ideograph;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5 {
  font-family: var(--font-serif);
  line-height: 1.55;
  margin: 2.2em 0 .8em;
  font-weight: 700;
  color: var(--ink);
}

.article-body h2 {
  font-size: 1.3em;
  padding-left: .62em;
  border-left: 3px solid var(--accent);
}

.article-body h3 { font-size: 1.14em; }
.article-body h4 { font-size: 1.03em; }

.article-body a { color: var(--link); }

.article-body strong { font-weight: 700; color: #111; }
html[data-theme="dark"] .article-body strong { color: #f2f4f6; }

.article-body ul,
.article-body ol { margin: 0 0 1.15em; padding-left: 1.6em; }
.article-body li { margin: .35em 0; }

/* 可折叠目录 */
.article-body details {
  margin: .4em 0 1.6em;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .6em 1em .2em;
}
.article-body details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--link);
  padding: .1em 0;
}
.article-body details summary:hover { text-decoration: underline; }
.article-body details[open] summary { margin-bottom: .55em; }
.article-body details ol { margin-bottom: .8em; }

.article-body blockquote {
  margin: 1.7em 0;
  padding: 1em 1.3em;
  background: var(--tint);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  color: var(--ink-soft);
}

.article-body blockquote p:last-child { margin-bottom: 0; }

.article-body .wp-block-quote.is-style-large,
.article-body .wp-block-quote.has-text-align-center {
  border-left: 0;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}

.article-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.4em 0;
}

.article-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.6em 0;
  font-size: .94em;
}

.article-body th,
.article-body td {
  border: 1px solid var(--line);
  padding: .55em .75em;
  text-align: left;
  vertical-align: top;
}

.article-body th { background: var(--surface-2); font-weight: 700; }

.table-wrap { overflow-x: auto; margin: 1.6em 0; }
.table-wrap table { margin: 0; min-width: 100%; }

.article-body figure { margin: 1.8em 0; }

.article-body figcaption {
  font-family: var(--font-sans);
  font-size: .76rem;
  color: var(--muted);
  text-align: center;
  margin-top: .55em;
}

.article-body img { border-radius: 6px; }

.article-body .wp-block-image img { display: block; margin: 0 auto; }

.article-body iframe {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  margin: 1.5em 0;
  background: var(--tint);
}

.article-body code,
.article-body pre {
  font-family: "Cascadia Code", Consolas, "Courier New", monospace;
  font-size: .88em;
  background: var(--tint);
  border-radius: 5px;
}

.article-body code { padding: .12em .38em; }
.article-body pre { padding: 1em 1.2em; overflow-x: auto; }
.article-body pre code { padding: 0; background: transparent; }

/* 篇目序号链接块：居中、等宽列对齐、轻量悬停 */
.article-body pre.episode-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .12rem .45rem;
  margin: .12rem 0;
  padding: .18rem .6rem;
  background: transparent;
  font-family: var(--font-sans);
  font-size: .92rem;
  line-height: 1.8;
  text-align: center;
  white-space: normal;
  overflow-x: visible;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.article-body pre.episode-links a {
  display: inline-block;
  flex: 0 0 auto;
  min-width: 3.1em;
  padding: .06em .1em;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
}

.article-body pre.episode-links a:hover {
  background: var(--tint);
  color: var(--accent);
}

/* ---------- 寻求者互联地图 ---------- */

.open-user-map { margin: 1.6rem 0 1.8rem; }
.open-user-map .oum-loading-overlay,
.open-user-map .open-add-location-overlay { display: none; }

.leaflet-map {
  height: 480px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--tint);
  z-index: 0;
}

.leaflet-container { font-family: var(--font-sans); }

.seeker-pop .seeker-name { font-weight: 700; margin-bottom: .25rem; }
.seeker-pop .seeker-sub { color: var(--accent); font-size: .85em; margin-bottom: .25rem; word-break: break-all; }
.seeker-pop .seeker-text { line-height: 1.7; margin-bottom: .35rem; }
.seeker-pop .seeker-meta { color: var(--muted); font-size: .75em; }

.ss-coord-hint { margin: .35rem 0 0; }
.ss-coord-tools { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ss-coord-tools .gb-hint { margin: 0; }
.leaflet-container.seeker-pick-mode { cursor: crosshair; }

html[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.95) contrast(.9); }
html[data-theme="dark"] .leaflet-container { background: #1b1f23; }
html[data-theme="dark"] .leaflet-popup-content-wrapper,
html[data-theme="dark"] .leaflet-popup-tip { background: var(--surface); color: var(--ink); }

@media (max-width: 640px) {
  .leaflet-map { height: 360px; }
}

/* ---------- 留言板 / 订阅 / 地图提交表单 ---------- */

.guestbook-box,
.seeker-submit-box {
  margin: 1.6rem 0;
  padding: 1.3rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.gb-form { display: flex; flex-direction: column; gap: .55rem; }

.gb-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem 1rem;
}

.gb-form label { font-family: var(--font-sans); font-size: .8rem; color: var(--muted); }

.gb-form input[type="text"],
.gb-form input[type="email"],
.gb-form textarea {
  width: 100%;
  padding: .55rem .7rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: .92rem;
  resize: vertical;
}

.gb-form input:focus,
.gb-form textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }

.gb-actions { display: flex; align-items: center; gap: .8rem; }

.gb-status { font-family: var(--font-sans); font-size: .82rem; color: var(--muted); }

.btn-primary {
  padding: .55rem 1.1rem;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: .88rem;
  cursor: pointer;
}
.btn-primary:hover { background: var(--accent-dark); }

.gb-list { display: flex; flex-direction: column; gap: .9rem; }

.gb-item { border-bottom: 1px solid var(--line); padding-bottom: .9rem; }

.gb-item:last-child { border-bottom: 0; }

.gb-head { display: flex; align-items: baseline; gap: .7rem; margin-bottom: .3rem; }

.gb-author { font-family: var(--font-sans); font-weight: 600; color: var(--ink); }

.gb-time { font-family: var(--font-sans); font-size: .74rem; color: var(--muted); }

.gb-body { line-height: 1.85; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }

.gb-reply {
  margin-top: .5rem;
  padding: .5rem .7rem;
  background: var(--tint);
  border-radius: 7px;
  font-size: .9rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.gb-reply-tag {
  display: inline-block;
  color: var(--accent);
  background: var(--tint);
  font-family: var(--font-sans);
  font-weight: 600;
  margin-right: .4rem;
  padding: .02rem .5rem;
  border-radius: 10px;
  font-size: .78rem;
  vertical-align: 1px;
}

.gb-reply-owner {
  border-left: 3px solid var(--accent);
  background: var(--tint);
}

.gb-reply-tag-user { color: var(--muted); background: transparent; padding-left: 0; }

.gb-reply-time {
  display: block;
  font-family: var(--font-sans);
  font-size: .72rem;
  color: var(--muted);
  margin-top: .2rem;
}

.gb-reply-body { word-break: break-word; white-space: pre-wrap; }

/* 留言回复入口与回复表单 */
.gb-item-actions { margin-top: .45rem; }

.gb-item-actions .link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: .82rem;
  cursor: pointer;
}
.gb-item-actions .link-btn:hover { text-decoration: underline; }

.gb-reply-box {
  display: none;
  margin-top: .6rem;
  padding: .7rem .8rem;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--bg);
}
.gb-reply-box.open { display: block; }
.gb-reply-box .gb-form { gap: .4rem; }
.gb-reply-box textarea { min-height: 62px; }
.gb-reply-box .gb-row { grid-template-columns: auto 1fr; align-items: center; }
.gb-reply-box .gb-row label { min-width: 2.6rem; }

.btn-plain {
  padding: .4rem .8rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: .82rem;
  cursor: pointer;
}
.btn-plain:hover { border-color: var(--accent); color: var(--accent); }
.btn-plain:disabled { opacity: .45; cursor: default; }
.btn-plain:disabled:hover { border-color: var(--line); color: var(--ink); }

/* 分页 */
.gb-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  margin-top: 1.1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
}
.gb-pager:empty { display: none; }

.gb-page-btn { min-width: 2.2rem; text-align: center; }

.gb-page-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.gb-page-info {
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: .78rem;
  color: var(--muted);
}

.guestbook-embed { margin-top: 2.2rem; }

@media (max-width: 640px) {
  .gb-page-info { margin-left: 0; width: 100%; }
}

.gb-empty { color: var(--muted); font-family: var(--font-sans); font-size: .86rem; }

.gb-hint { font-family: var(--font-sans); font-size: .82rem; color: var(--muted); margin: 0 0 .6rem; }

.gb-inline { flex-direction: row; align-items: center; gap: .6rem; }

.gb-inline input[type="email"] { flex: 1; min-width: 0; }

@media (max-width: 640px) {
  .gb-row { grid-template-columns: 1fr; }
  .gb-inline { flex-direction: column; align-items: stretch; }
}

.article-body sup { font-size: .72em; }
.article-body sup a { text-decoration: none; }

.article-body .has-small-font-size { font-size: .88em; }
.article-body .has-medium-font-size { font-size: 1.02em; }
.article-body .has-large-font-size { font-size: 1.18em; }
.article-body .has-text-align-center { text-align: center; }
.article-body .has-text-align-right { text-align: right; }

/* WordPress 区块的静态还原 */

.wp-block-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 430px;
  margin: 1.2rem 0 2rem;
  border-radius: 14px;
  overflow: hidden;
  background: #26303a;
}

.wp-block-cover__image-background {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 0;
  opacity: .5;
}

.wp-block-cover__background {
  position: absolute;
  inset: 0;
  background: #101820;
  opacity: .3;
}

.wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 52rem;
  padding: 2.6rem 1.8rem;
  color: #fbfcfe;
  text-align: center;
}

.wp-block-cover__inner-container p,
.wp-block-cover__inner-container blockquote { color: #fbfcfe; }

.wp-block-cover blockquote {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 1.02em;
  line-height: 1.9;
}

.wp-block-cover a { color: #cfe6fb; }

/* 原站海浪遮罩：本站要览封面与底部图片 */
.article-body .wp-block-cover.is-style-bottom-wave { min-height: 237px; }
.wp-block-cover:not(.components-placeholder):not(.is-placeholder).is-style-bottom-wave{-webkit-mask-image:url("data:image/svg+xml;utf8,<svg width=\"250\" height=\"248\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M250 220.092145s-12.873712-8.581631-26.547345-11.208661c-13.673633-2.62703-19.948005-2.014057-25.847415-1.094596-14.723528 2.276759-29.197081 7.662171-48.145186 21.760565-7.399261 5.341628-19.223078 13.485421-25.122488 15.630829-5.999399 2.145408-13.223677 3.415139-18.873112 2.320543-2.574743-.437838-5.6494355-.612974-12.4487556-3.371355-6.8743126-2.62703-14.6235377-7.049197-19.9230076-10.595688-10.2989701-6.874062-23.6976303-9.501092-33.4966504-9.807579C17.9982002 222.806743 0 237.080273 0 237.080273V0h250z\"/></svg>");mask-image:url("data:image/svg+xml;utf8,<svg width=\"250\" height=\"248\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M250 220.092145s-12.873712-8.581631-26.547345-11.208661c-13.673633-2.62703-19.948005-2.014057-25.847415-1.094596-14.723528 2.276759-29.197081 7.662171-48.145186 21.760565-7.399261 5.341628-19.223078 13.485421-25.122488 15.630829-5.999399 2.145408-13.223677 3.415139-18.873112 2.320543-2.574743-.437838-5.6494355-.612974-12.4487556-3.371355-6.8743126-2.62703-14.6235377-7.049197-19.9230076-10.595688-10.2989701-6.874062-23.6976303-9.501092-33.4966504-9.807579C17.9982002 222.806743 0 237.080273 0 237.080273V0h250z\"/></svg>");-webkit-mask-position:bottom;mask-position:bottom;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:cover;mask-size:cover}
.wp-block-cover:not(.components-placeholder):not(.is-placeholder).is-style-top-wave{-webkit-mask-image:url("data:image/svg+xml;utf8,<svg width=\"250\" height=\"250\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M0 29.809587s12.873712 8.581631 26.547345 11.208661c13.673633 2.62703 19.948005 2.014057 25.847415 1.094596 14.723528-2.276759 29.197081-7.662171 48.145186-21.760565 7.399261-5.341628 19.223078-13.485421 25.122488-15.630829 5.999399-2.145408 13.223677-3.415139 18.873112-2.320543 2.574743.437838 5.6494355.612974 12.4487556 3.371355 6.8743126 2.62703 14.6235377 7.049197 19.9230076 10.595688 10.2989701 6.874062 23.6976303 9.501092 33.4966504 9.807579C232.0017998 27.094989 250 12.821459 250 12.821459v237.080273H0z\"/></svg>");mask-image:url("data:image/svg+xml;utf8,<svg width=\"250\" height=\"250\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M0 29.809587s12.873712 8.581631 26.547345 11.208661c13.673633 2.62703 19.948005 2.014057 25.847415 1.094596 14.723528-2.276759 29.197081-7.662171 48.145186-21.760565 7.399261-5.341628 19.223078-13.485421 25.122488-15.630829 5.999399-2.145408 13.223677-3.415139 18.873112-2.320543 2.574743.437838 5.6494355.612974 12.4487556 3.371355 6.8743126 2.62703 14.6235377 7.049197 19.9230076 10.595688 10.2989701 6.874062 23.6976303 9.501092 33.4966504 9.807579C232.0017998 27.094989 250 12.821459 250 12.821459v237.080273H0z\"/></svg>");-webkit-mask-position:top;mask-position:top;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:cover;mask-size:cover}
.wp-block-image.is-style-bottom-wave img{-webkit-mask-image:url("data:image/svg+xml;utf8,<svg width=\"250\" height=\"248\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M250 220.092145s-12.873712-8.581631-26.547345-11.208661c-13.673633-2.62703-19.948005-2.014057-25.847415-1.094596-14.723528 2.276759-29.197081 7.662171-48.145186 21.760565-7.399261 5.341628-19.223078 13.485421-25.122488 15.630829-5.999399 2.145408-13.223677 3.415139-18.873112 2.320543-2.574743-.437838-5.6494355-.612974-12.4487556-3.371355-6.8743126-2.62703-14.6235377-7.049197-19.9230076-10.595688-10.2989701-6.874062-23.6976303-9.501092-33.4966504-9.807579C17.9982002 222.806743 0 237.080273 0 237.080273V0h250z\"/></svg>");mask-image:url("data:image/svg+xml;utf8,<svg width=\"250\" height=\"248\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M250 220.092145s-12.873712-8.581631-26.547345-11.208661c-13.673633-2.62703-19.948005-2.014057-25.847415-1.094596-14.723528 2.276759-29.197081 7.662171-48.145186 21.760565-7.399261 5.341628-19.223078 13.485421-25.122488 15.630829-5.999399 2.145408-13.223677 3.415139-18.873112 2.320543-2.574743-.437838-5.6494355-.612974-12.4487556-3.371355-6.8743126-2.62703-14.6235377-7.049197-19.9230076-10.595688-10.2989701-6.874062-23.6976303-9.501092-33.4966504-9.807579C17.9982002 222.806743 0 237.080273 0 237.080273V0h250z\"/></svg>");-webkit-mask-position:bottom;mask-position:bottom}
.wp-block-image.is-style-bottom-wave img,.wp-block-image.is-style-top-wave img{-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:cover;mask-size:cover}
.wp-block-image.is-style-top-wave img{-webkit-mask-image:url("data:image/svg+xml;utf8,<svg width=\"250\" height=\"250\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M0 29.809587s12.873712 8.581631 26.547345 11.208661c13.673633 2.62703 19.948005 2.014057 25.847415 1.094596 14.723528-2.276759 29.197081-7.662171 48.145186-21.760565 7.399261-5.341628 19.223078-13.485421 25.122488-15.630829 5.999399-2.145408 13.223677-3.415139 18.873112-2.320543 2.574743.437838 5.6494355.612974 12.4487556 3.371355 6.8743126 2.62703 14.6235377 7.049197 19.9230076 10.595688 10.2989701 6.874062 23.6976303 9.501092 33.4966504 9.807579C232.0017998 27.094989 250 12.821459 250 12.821459v237.080273H0z\"/></svg>");mask-image:url("data:image/svg+xml;utf8,<svg width=\"250\" height=\"250\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M0 29.809587s12.873712 8.581631 26.547345 11.208661c13.673633 2.62703 19.948005 2.014057 25.847415 1.094596 14.723528-2.276759 29.197081-7.662171 48.145186-21.760565 7.399261-5.341628 19.223078-13.485421 25.122488-15.630829 5.999399-2.145408 13.223677-3.415139 18.873112-2.320543 2.574743.437838 5.6494355.612974 12.4487556 3.371355 6.8743126 2.62703 14.6235377 7.049197 19.9230076 10.595688 10.2989701 6.874062 23.6976303 9.501092 33.4966504 9.807579C232.0017998 27.094989 250 12.821459 250 12.821459v237.080273H0z\"/></svg>");-webkit-mask-position:top;mask-position:top}


.wp-block-buttons { display: flex; justify-content: center; gap: .8rem; margin-top: 1.5rem; }

.wp-block-button__link {
  display: inline-block;
  padding: .68em 1.55em;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff !important;
  font-family: var(--font-sans);
  font-size: .9rem;
  text-decoration: none;
  letter-spacing: .05em;
}

.wp-block-button__link:hover { background: rgba(255, 255, 255, .26); }

/* 强调色按钮：日间/夜间模式均保持可见 */
.wp-block-button__link.has-accent-background-color {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff !important;
}
.wp-block-button__link.has-accent-background-color:hover {
  background: var(--accent);
  border-color: var(--accent);
  filter: brightness(.92);
}

.wp-block-columns { display: flex; flex-wrap: wrap; gap: 1.6rem; margin: 2.2rem 0; }
.wp-block-column { flex: 1 1 220px; min-width: 0; }
.wp-block-column > h3 {
  font-family: var(--font-sans);
  font-size: .92rem;
  letter-spacing: .1em;
  text-align: center;
  background: var(--surface-2);
  padding: .55em .8em;
  border-radius: 7px;
}

.wp-block-group { margin: 1.6rem 0; }
.wp-block-spacer { height: 1.2rem; }

.coblocks-alert-paragraph,
.is-style-info {
  background: var(--tint);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 1em 1.2em;
  margin: 1.5em 0;
  font-size: .94em;
}

.wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* ---------- 翻页与分类 ---------- */

.pager {
  margin: 3.2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pager a {
  display: block;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  font-size: .92rem;
  line-height: 1.65;
}

.pager a:hover { border-color: var(--accent-soft); box-shadow: var(--shadow-md); }
.pager a.next { text-align: right; }
.pager .dir {
  display: block;
  font-family: var(--font-sans);
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: .25rem;
}
.pager .spacer { visibility: hidden; }

.cat-bar {
  margin: 1.5rem 0 0;
  font-family: var(--font-sans);
  font-size: .8rem;
  color: var(--muted);
}

.cat-bar a { color: var(--ink-soft); text-decoration: none; }
.cat-bar a:hover { color: var(--accent); }

/* 集会页末尾：对应的卷五评论入口（原站 Pingback 关联） */
.post-commentary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem;
  margin: 1.5rem 0 1rem;
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-family: var(--font-sans);
  font-size: .86rem;
}
/* 紧随「所属分类」时收紧间距，保持元信息区域的视觉节奏 */
.post-commentary + .cat-bar { margin-top: 0; }
.post-commentary .label {
  color: var(--muted);
  letter-spacing: .04em;
}
.post-commentary a {
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}
.post-commentary a:hover { text-decoration: underline; }

.post-list { list-style: none; margin: 1rem 0 0; padding: 0; }

.post-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: .7rem .2rem;
  border-bottom: 1px solid var(--line);
}

.post-list li:last-child { border-bottom: 0; }

.post-list .num {
  flex: 0 0 2.6rem;
  font-family: var(--font-sans);
  font-size: .7rem;
  color: var(--muted);
  text-align: right;
  padding-top: .2rem;
}

.post-list .entry { flex: 1 1 auto; min-width: 0; }

.post-list .entry-title {
  display: inline-block;
  text-decoration: none;
  font-size: 1.02rem;
  color: var(--ink);
}

.post-list .entry-title:hover { color: var(--accent); text-decoration: underline; }

.post-list .entry-meta {
  margin-top: .1rem;
  font-family: var(--font-sans);
  font-size: .72rem;
  color: var(--muted);
}

/* 传讯选集目录：所有篇目统一字号 */
.article-body .transcript-entry {
  margin: .18rem 0;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.9;
  color: var(--ink);
}

.article-body .transcript-entry a {
  color: var(--ink);
  text-decoration: none;
}

.article-body .transcript-entry a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.article-body table { font-variant-numeric: tabular-nums; }

.post-list .entry-excerpt {
  margin: .35rem 0 0;
  max-width: 46rem;
  font-family: var(--font-serif);
  font-size: .88rem;
  line-height: 1.75;
  color: var(--muted);
}

.article-body sup.cite { font-size: .72em; line-height: 0; }
.article-body sup.cite a { color: var(--accent); text-decoration: none; }
.article-body sup.cite a:hover { text-decoration: underline; }

.article-body .note-num {
  display: inline-block;
  margin-right: .18em;
  font-family: var(--font-sans);
  font-size: .78em;
  font-weight: 600;
  color: var(--accent);
  vertical-align: .12em;
}

.article-body .note-back {
  display: inline-block;
  margin-left: .3em;
  font-size: .82em;
  line-height: 1;
  color: var(--accent);
  text-decoration: none;
  opacity: .55;
  transition: opacity .15s ease;
}

.article-body .note-back::after { content: "↩"; }
.article-body .note-back:hover { opacity: 1; }

.article-body .embed-link::after { content: "打开嵌入内容 ↗"; }
.article-body .embed-link {
  display: inline-block;
  padding: .35em .8em;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: .82rem;
  color: var(--accent);
  text-decoration: none;
}
.article-body .embed-link:hover { border-color: var(--accent); }

.lead {
  font-size: 1.01rem;
  color: var(--ink-soft);
  line-height: 1.9;
  margin: .4rem 0 1.6rem;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: .75rem;
  margin: 1.2rem 0 2.2rem;
  padding: 0;
  list-style: none;
}

.cat-grid a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .6rem;
  padding: .9rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  font-size: .95rem;
}

.cat-grid a:hover { border-color: var(--accent-soft); box-shadow: var(--shadow-md); color: var(--accent); }
.cat-grid .count { font-family: var(--font-sans); font-size: .72rem; color: var(--muted); }

.section-title {
  font-family: var(--font-sans);
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: .08em;
  margin: 2.4rem 0 .7rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.sitemap-section h2 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .06em;
  margin: 2.2rem 0 .5rem;
  padding-left: .65em;
  border-left: 3px solid var(--accent);
}
.sitemap-section h3 {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 500;
  color: var(--muted);
  margin: 1.5rem 0 .3rem;
}

.sitemap-links {
  columns: 2 280px;
  column-gap: 2rem;
  margin: .5rem 0 1rem;
  padding: 0;
  list-style: none;
}
.sitemap-links li { break-inside: avoid; padding: .24rem 0; font-size: .92rem; }
.sitemap-links a { text-decoration: none; color: var(--ink-soft); }
.sitemap-links a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- 搜索 ---------- */

.search-box { display: flex; gap: .6rem; margin: 1.4rem 0 1rem; }

.search-box input {
  flex: 1;
  padding: .85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  box-shadow: var(--shadow-sm);
}

.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 115, 190, .14);
}

.search-box button {
  padding: .85rem 1.5rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: .95rem;
  cursor: pointer;
}

.search-box button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.search-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  margin: 0 0 .4rem;
  font-family: var(--font-sans);
  font-size: .85rem;
  color: var(--muted);
}

.search-options .opt {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
}
.search-options .opt[hidden] { display: none; }

.search-options select {
  padding: .4rem .6rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: .85rem;
  outline: none;
}

.search-options input[type="checkbox"] {
  accent-color: var(--accent);
  cursor: pointer;
}

.search-status {
  font-family: var(--font-sans);
  font-size: .8rem;
  color: var(--muted);
  margin: .4rem 0 1.5rem;
  min-height: 1.2em;
}

.hit-group { padding: 1.1rem 0 1.2rem; border-bottom: 1px solid var(--line); }
.hit-group-title { margin: 0 0 .3rem; font-size: 1.05rem; font-weight: 700; line-height: 1.5; }
.hit-group-title a { text-decoration: none; color: var(--ink); }
.hit-group-title a:hover { color: var(--accent); }
/* 分组标题行：类别标签与日期同行展示 */
.hit-group .hit-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin: -.1rem 0 .55rem;
  font-family: var(--font-sans);
  font-size: .72rem;
  color: var(--muted);
}
.hit-group .hit-cat {
  padding: .05rem .5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  line-height: 1.7;
}
.hit-group .hit-date { font-variant-numeric: tabular-nums; }
.hit { padding: .65rem 0 0; }
.hit + .hit { margin-top: .55rem; padding-top: .7rem; border-top: 1px dashed var(--line); }
/* 无小标题的段落：箭头图标作为原文跳转入口 */
.hit.hit-jumpable { display: flex; align-items: flex-start; gap: .5rem; }
.hit-jump {
  flex: none;
  display: inline-block;
  margin: -.3rem 0 -.3rem -.15rem;
  padding: .3rem .15rem;
  font-family: var(--font-sans);
  font-size: .9rem;
  line-height: 1.8;
  color: var(--muted);
  text-decoration: none;
}
.hit-jump:hover, .hit-jump:focus-visible { color: var(--accent); }
.hit.hit-jumpable .hit-snippet { flex: 1 1 auto; min-width: 0; }
.hit .hit-meta { font-family: var(--font-sans); font-size: .72rem; color: var(--muted); margin-bottom: .3rem; }
.hit .hit-meta a { color: var(--muted); text-decoration: none; }
.hit .hit-meta a:hover { color: var(--accent); }
.hit .hit-snippet { font-size: .9rem; color: var(--ink-soft); line-height: 1.8; }
/* 问答编号级结果：编号徽标 + 完整问答内容 */
.hit.hit-qa { padding-top: .65rem; }
.hit-qa-meta { display: flex; align-items: center; gap: .5rem; }
.hit-q {
  display: inline-block;
  padding: .05rem .5rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.hit-qa .hit-jump { margin: 0; padding: 0 .15rem; line-height: 1.4; }
.hit-qa-body { margin-top: .35rem; }
.hit-qa-body p { margin: 0 0 .55rem; }
.hit-qa-body p:last-child { margin-bottom: 0; }
.hit mark {
  background: rgba(30, 115, 190, .26);
  color: inherit;
  padding: 0 .1em;
  border-radius: 2px;
}
html[data-theme="dark"] .hit mark {
  background: #f4c95d;
  color: #16181b;
  padding: 0 .15em;
  border-radius: 3px;
}

.search-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  margin: 1.4rem 0 .4rem;
  font-family: var(--font-sans);
  font-size: .8rem;
}

.search-pager button {
  min-width: 2.1rem;
  padding: .34rem .6rem;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: inherit;
  line-height: 1.4;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}

.search-pager button:hover:not(:disabled) {
  color: var(--accent);
  border-color: var(--accent-soft);
  background: var(--tint);
}

.search-pager button.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

html[data-theme="dark"] .search-pager button.active { color: #14171a; }

.search-pager button:disabled { opacity: .45; cursor: default; }

.search-pager .pager-gap { color: var(--muted); padding: 0 .15rem; }

/* ---------- 页脚 ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 2.2rem 1.5rem 2.6rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  font-family: var(--font-sans);
  font-size: .78rem;
  line-height: 2;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .35rem 1.5rem;
}

.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; }
.footer-copy { margin: 0; white-space: nowrap; }

/* ---------- 其它 ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: .6rem 1rem;
  background: var(--surface);
  z-index: 200;
}
.skip:focus { left: 1rem; top: .6rem; }

.notice {
  font-family: var(--font-sans);
  font-size: .78rem;
  color: var(--muted);
  background: var(--tint);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  margin: 1.8rem 0 0;
  line-height: 1.8;
}

.external-file::after {
  content: " ↗";
  font-size: .8em;
  color: var(--muted);
}

@media (max-width: 760px) {
  .container { padding: 1.3rem 1rem 3rem; }
  .header-inner { padding: .45rem 1rem; min-height: 58px; }
  .brand-logo { height: 30px; }
  .brand-text { font-size: .96rem; }
  .article-body { font-size: var(--reading-size); line-height: 1.92; }
  .page-title { font-size: 1.4rem; }
  .meta { font-size: .74rem; }
  .wp-block-cover { min-height: 330px; border-radius: 12px; }
  .wp-block-cover__inner-container { padding: 2rem 1.2rem; }
  .pager { grid-template-columns: 1fr; }
  .post-list li { flex-wrap: wrap; gap: .25rem .7rem; }
  .post-list .date { margin-left: 0; }
  .sitemap-links { columns: 1; }
  .wp-block-columns { gap: 1.2rem; }
  .site-footer { padding: 1.9rem 1.2rem 2.1rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: .1rem; }
  .footer-links { gap: .3rem 1rem; }
}

@media (max-width: 420px) {
  .header-tools .tool { padding: .34rem .48rem; }
  .brand-text { font-size: .9rem; letter-spacing: .02em; }
}

@media print {
  .site-header, .site-footer, .pager, .breadcrumb, .header-tools { display: none !important; }
  body { background: #fff; color: #000; }
  .container { max-width: none; padding: 0; }
  .main-col { max-width: none; }
  .article-body a { color: #000; }
}

/* ---------- 优迈有声书 · 本地播放器 ---------- */
.ymp {
  margin: 1.2rem 0 1.6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 14px 16px 12px;
}
.ymp-bar { display: flex; align-items: center; gap: 12px; }
.ymp-play {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.ymp-play:hover { filter: brightness(.94); }
.ymp-now { flex: 1; min-width: 0; }
.ymp-title {
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ymp-sub { font-family: var(--font-sans); font-size: .76rem; color: var(--muted); margin-top: 2px; }
.ymp-ctrl { display: flex; gap: 6px; flex: 0 0 auto; }
.ymp-ctrl button,
.ymp-list button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 6px;
}
.ymp-ctrl button { padding: .32rem .6rem; font-size: .78rem; }
.ymp-ctrl button:hover { border-color: var(--accent); color: var(--accent); }
.ymp-progress { display: flex; align-items: center; gap: 10px; margin: .7rem 0 .4rem; }
.ymp-progress input { flex: 1; accent-color: var(--accent); }
.ymp-time { font-family: var(--font-sans); font-size: .76rem; color: var(--muted); white-space: nowrap; }
.ymp-list {
  list-style: none;
  margin: .3rem 0 0;
  padding: 0;
  max-height: 380px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}
.ymp-list li { margin: 0; padding: 0; }
.ymp-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: .5rem .3rem;
  font-size: .86rem;
}
.ymp-list li:last-child button { border-bottom: 0; }
.ymp-list button:hover { background: var(--tint); }
.ymp-list button.active { background: var(--tint); color: var(--accent); font-weight: 600; }
.ymp-num {
  flex: 0 0 2.4rem;
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ymp-name { flex: 1; min-width: 0; }
.ymp-status { margin: .4rem 0 0; font-family: var(--font-sans); font-size: .78rem; color: #d33; min-height: 1em; }
@media (max-width: 640px) {
  .ymp-bar { flex-wrap: wrap; }
  .ymp-now { flex-basis: calc(100% - 56px); }
  .ymp-ctrl { width: 100%; justify-content: flex-end; }
}

/* ---------- RSS 订阅页 ---------- */
.rss-box { margin-top: 1rem; }
.rss-toolbar {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.rss-list { border-top: 1px solid var(--line); }
.rss-item { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.rss-item h2 {
  margin: 0 0 .25rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
}
.rss-item h2 a { color: var(--link); text-decoration: none; }
.rss-item h2 a:hover { text-decoration: underline; }
.rss-meta {
  font-family: var(--font-sans);
  font-size: .76rem;
  color: var(--muted);
}
.rss-item p {
  margin: .35rem 0 0;
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.7;
}
.rss-empty { color: var(--muted); padding: 1rem 0; }

/* ---------- 首页展示图片优化 ---------- */
.home .wp-block-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 440px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  box-shadow: 0 28px 56px -30px rgba(12, 20, 30, .55),
              0 2px 8px rgba(12, 20, 30, .08);
  transition: box-shadow .45s ease, transform .45s ease;
  animation: home-image-in .8s cubic-bezier(.2, .7, .2, 1) backwards;
}

.home .wp-block-cover:hover {
  transform: translateY(-2px);
  box-shadow: 0 36px 68px -32px rgba(12, 20, 30, .6),
              0 4px 12px rgba(12, 20, 30, .1);
}

.home .wp-block-cover__image-background {
  opacity: .7;
  filter: saturate(1.08) contrast(1.05) brightness(.98);
  transform: scale(1.005);
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), opacity .5s ease;
}

.home .wp-block-cover:hover .wp-block-cover__image-background {
  transform: scale(1.05);
  opacity: .78;
}

.home .wp-block-cover__background {
  background: linear-gradient(180deg,
    rgba(6, 14, 24, .46) 0%,
    rgba(12, 28, 46, .20) 42%,
    rgba(8, 18, 30, .30) 68%,
    rgba(4, 10, 18, .50) 100%);
  opacity: 1;
}

/* 暗角：四角自然压暗，与星空边缘融合 */
.home .wp-block-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 118% 108% at 50% 44%,
    rgba(2, 7, 14, 0) 40%,
    rgba(2, 7, 14, .10) 58%,
    rgba(2, 7, 14, .26) 74%,
    rgba(2, 7, 14, .44) 88%,
    rgba(1, 4, 9, .58) 100%);
}

/* 中心辐射光：以中心为原点向外柔和扩散 */
.home .wp-block-cover::after {
  content: "";
  position: absolute;
  inset: -6%;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%,
    rgba(190, 226, 255, .22) 0%,
    rgba(140, 196, 255, .14) 16%,
    rgba(90, 156, 232, .08) 32%,
    rgba(50, 108, 190, .035) 46%,
    rgba(20, 60, 120, 0) 62%);
  mix-blend-mode: screen;
  opacity: .8;
  animation: home-glow 18s ease-in-out infinite alternate;
}

@keyframes home-glow {
  from { transform: scale(.97); opacity: .66; }
  to { transform: scale(1.05); opacity: .9; }
}

.home .wp-block-image.is-style-rounded {
  width: min(100%, 430px);
  margin: 2.2rem auto 1.4rem;
}

.home .wp-block-image.is-style-rounded figure {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 20px 28px;
  background: linear-gradient(180deg, #fffdf9 0%, #fbf5ec 100%);
  border: 1px solid rgba(31, 35, 40, .06);
  border-radius: 18px;
  box-shadow: 0 18px 38px -24px rgba(12, 20, 30, .32),
              0 1px 3px rgba(12, 20, 30, .05);
  transition: transform .35s ease, box-shadow .35s ease;
  animation: home-image-in .8s .08s cubic-bezier(.2, .7, .2, 1) backwards;
}

.home .wp-block-image.is-style-rounded img {
  display: block;
  width: 100%;
  max-width: 464px;
  height: auto;
  border-radius: 10px;
  transition: transform .45s ease;
}

.home .wp-block-image.is-style-rounded figure:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 48px -26px rgba(12, 20, 30, .42),
              0 2px 6px rgba(12, 20, 30, .07);
}

.home .wp-block-image.is-style-rounded figure:hover img {
  transform: scale(1.015);
}

html[data-theme="dark"] .home .wp-block-cover {
  border-color: rgba(255, 255, 255, .07);
  box-shadow: 0 28px 56px -30px rgba(0, 0, 0, .75),
              0 2px 8px rgba(0, 0, 0, .35);
}

html[data-theme="dark"] .home .wp-block-image.is-style-rounded figure {
  background: linear-gradient(180deg, #f7f2e9 0%, #efe6d8 100%);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .7);
}

@keyframes home-image-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media screen and (max-width: 760px) {
  .home .wp-block-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 340px;
    border-radius: 14px;
  }
  .home .wp-block-cover__inner-container { padding: 1.9rem 1.1rem; }
  .home .wp-block-cover::after { inset: -4%; opacity: .7; }
  .home .wp-block-cover:hover { transform: none; }
  .home .wp-block-image.is-style-rounded { width: min(100%, 320px); }
  .home .wp-block-image.is-style-rounded figure {
    padding: 14px 18px;
    border-radius: 14px;
  }
  .home .wp-block-image.is-style-rounded img { border-radius: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .home .wp-block-cover,
  .home .wp-block-image.is-style-rounded figure { animation: none; }
  .home .wp-block-cover::after { animation: none; opacity: .8; }
  .home .wp-block-cover,
  .home .wp-block-cover__image-background,
  .home .wp-block-image.is-style-rounded figure,
  .home .wp-block-image.is-style-rounded img { transition: none; }
  .home .wp-block-cover:hover,
  .home .wp-block-cover:hover .wp-block-cover__image-background,
  .home .wp-block-image.is-style-rounded figure:hover,
  .home .wp-block-image.is-style-rounded figure:hover img { transform: none; }
}
