/* =========================================================
   方鼎小屋 · Funding's House
   风格：纸感纯净 —— 暖白纸面 / 深墨字 / 细线分隔 / 大量留白
   ========================================================= */

/* ---------- 站名与英文手写字体 ---------- */
@font-face {
  font-family: "JinBang";
  src: url("../fonts/jinbang.woff2") format("woff2"),
       url("../fonts/jinbang.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bradley Hand";
  src: url("../fonts/bradley-hand.woff2") format("woff2"),
       url("../fonts/bradley-hand.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f4ee;
  --paper-2: #fbfaf6;
  --paper-3: #f1eee5;
  --ink: #1c1b18;
  --ink-2: #34322d;
  --muted: #6f6b62;
  --faint: #9b968a;
  --line: #e3dfd4;
  --line-2: #cfc9bb;
  --accent: #2f6f63;
  --accent-deep: #245449;
  --accent-soft: #e9f1ee;

  --serif: "Songti SC", "SimSun", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;

  --wrap: 940px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 极淡纸纹 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(28, 27, 24, 0.055) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.35;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: #cfe3dc; color: var(--ink); }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #efece3; }
::-webkit-scrollbar-thumb {
  background: #cfc9bb;
  border: 3px solid #efece3;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: #b8b1a1; }

main, .footer { position: relative; z-index: 1; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 16px 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  padding: 10px 0;
  background: rgba(246, 244, 238, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand__text strong {
  font-family: "JinBang", var(--serif);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.1;
}

.brand__text em {
  font-family: "Bradley Hand", var(--serif);
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--faint);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  margin-right: 26px;
}

.nav__links a {
  position: relative;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.06em;
  transition: color 0.25s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__end {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav__gh {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nav__gh:hover { color: var(--ink); border-bottom-color: var(--line-2); }

.nav__toggle {
  display: none;
  position: relative;
  width: 30px;
  height: 30px;
}

.nav__toggle span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease);
}

.nav__toggle span:first-child { top: 12px; }
.nav__toggle span:last-child { top: 18px; }

.nav__toggle.is-open span:first-child { transform: translate(-50%, 3px) rotate(45deg); }
.nav__toggle.is-open span:last-child { transform: translate(-50%, -3px) rotate(-45deg); }

/* ---------- 首屏 ---------- */
.hero {
  padding: 168px 0 96px;
}

.hero__index {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--faint);
  margin-bottom: 26px;
}

.hero__title {
  font-family: "JinBang", var(--serif);
  font-size: clamp(3.4rem, 11.5vw, 7.6rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.hero__en {
  margin-top: 8px;
  font-family: "Bradley Hand", var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  color: var(--muted);
}

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: 40px 0 32px;
  max-width: 720px;
}

.hero__lede {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 2.1;
  color: var(--ink-2);
  max-width: 34em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  margin-top: 38px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(47, 111, 99, 0.32);
  padding-bottom: 2px;
  transition: border-color 0.25s ease, gap 0.3s var(--ease);
}

.link-arrow span { transition: transform 0.3s var(--ease); }
.link-arrow:hover { border-bottom-color: var(--accent); gap: 11px; }
.link-arrow:hover span { transform: translateX(2px); }

/* ---------- 区块 ---------- */
.section {
  padding: 84px 0;
  border-top: 1px solid var(--line);
}

.section__grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

.section__side {
  position: sticky;
  top: 96px;
}

.section__head {
  max-width: 620px;
  margin-bottom: 38px;
}

.kicker {
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--faint);
  margin-bottom: 14px;
}

.section__title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.05rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.section__lead {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.section__body > p {
  font-size: 15.5px;
  line-height: 2.05;
  color: var(--muted);
}

.section__body > p + p { margin-top: 16px; }

.section__body .lede {
  font-size: 17px;
  line-height: 2;
  color: var(--ink-2);
}

.facts {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.facts > div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--faint);
  padding-top: 5px;
}

.facts dd {
  font-size: 14.5px;
  color: var(--ink-2);
}

.facts dd a {
  border-bottom: 1px solid var(--line-2);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.facts dd a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- 作品索引 ---------- */
.index { border-top: 1px solid var(--line); }

.index li { border-bottom: 1px solid var(--line); }

.row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto 22px;
  gap: 16px;
  align-items: start;
  padding: 24px 10px;
  transition: background 0.3s ease;
}

.row:hover { background: var(--paper-3); }

.row__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--faint);
  padding-top: 6px;
  transition: color 0.25s ease;
}

.row:hover .row__num { color: var(--accent); }

.row__title {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.row__desc {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
}

.row__tags {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--faint);
  padding-top: 8px;
  white-space: nowrap;
}

.row__arrow {
  font-size: 15px;
  color: var(--faint);
  padding-top: 6px;
  transition: color 0.25s ease, transform 0.3s var(--ease);
}

.row:hover .row__arrow { color: var(--accent); transform: translate(2px, -2px); }

.index__empty {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 10px;
  color: var(--faint);
  border-bottom: 1px dashed var(--line-2);
}

.index__empty .row__title { color: var(--faint); }
.index__empty .row__desc { color: #a9a397; }

/* ---------- 笔记 ---------- */
.notes { border-top: 1px solid var(--line); }

.notes li { border-bottom: 1px solid var(--line); }

.notes li > a {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 32px;
  gap: 24px;
  padding: 22px 8px;
  transition: background 0.3s ease;
}

.notes li > a:hover { background: var(--paper-3); }

.notes li > a:hover .note__title { color: var(--accent); }

.note__date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.04em;
  padding-top: 6px;
}

.note__title {
  font-family: var(--serif);
  font-size: 17.5px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
}

.note__desc {
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- 联系 ---------- */
.section--contact { padding-bottom: 96px; }

.contact__title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.contact__title em {
  font-style: normal;
  color: var(--accent);
  border-bottom: 2px solid var(--accent-soft);
}

.contact__desc {
  margin-top: 18px;
  font-size: 15px;
  line-height: 2.05;
  color: var(--muted);
}

.contact__mail {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 640px;
}

.contact__mail a {
  font-family: var(--mono);
  font-size: clamp(15px, 2.4vw, 21px);
  letter-spacing: 0.01em;
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.contact__mail a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: transparent;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.copy-btn:hover { color: var(--ink); border-color: var(--ink); }

.copy-btn.is-copied {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- 联系方式：纯文字链接 ---------- */
.contact__hint {
  margin-top: 30px;
  font-size: 12.5px;
  color: var(--faint);
  letter-spacing: 0.02em;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin-top: 24px;
}

.contact__links a {
  font-size: 15px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 3px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.contact__links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- 二维码弹层 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(24, 23, 20, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.modal[hidden] { display: none; }

.modal__dialog {
  width: min(86vw, 380px);
  padding: 14px 14px 16px;
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.7);
  animation: modalIn 0.24s ease both;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
}

.modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal__title {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.modal__close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.modal__close:hover {
  color: var(--ink);
  border-color: var(--ink-2);
  background: var(--paper-3);
}

.modal__img {
  width: 100%;
  height: auto;
  max-height: 62vh;
  object-fit: contain;
  display: block;
  border-radius: 2px;
  background: #fff;
}

@media (max-width: 560px) {
  .modal__dialog { width: min(92vw, 360px); padding: 12px 12px 14px; }
  .modal__img { max-height: 58vh; }
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}

.footer__note {
  font-size: 12.5px;
  color: var(--faint);
  letter-spacing: 0.04em;
}

.footer__icp,
.footer__police {
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.03em;
}

.footer__icp a,
.footer__police a {
  color: var(--faint);
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.footer__icp a:hover,
.footer__police a:hover {
  color: var(--ink-2);
  border-bottom-color: var(--line-2);
}

.footer__police img {
  display: inline-block;
  vertical-align: -3px;
  margin-right: 5px;
}

/* ---------- 入场：只做极淡的淡入 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .section__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section__side { position: static; }

  .row {
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    gap: 12px;
  }

  .row__tags { display: none; }

  .index__empty { grid-template-columns: 34px minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .nav { padding: 12px 0; }

  .nav__links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px 28px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(251, 250, 246, 0.98);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__links a {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }

  .nav__links a::after { display: none; }
  .nav__links a:last-child { border-bottom: 0; }

  .nav__toggle { display: block; }
  .nav__gh { font-size: 12px; }

  .hero { padding: 128px 0 72px; }
  .brand__text em { display: none; }

  .notes li > a { grid-template-columns: 1fr; gap: 4px; }
  .note__date { padding-top: 0; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .section { padding: 66px 0; }
  .hero__title { font-size: clamp(3rem, 17vw, 4.4rem); }
  .hero__actions { flex-direction: column; align-items: flex-start; gap: 14px; }
  .facts > div { grid-template-columns: 66px minmax(0, 1fr); gap: 12px; }
  .row { padding: 20px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 触屏与窄屏细节 ---------- */
html { -webkit-tap-highlight-color: transparent; }

/* 复制按钮在手机上要有足够大的点按区 */
.copy-btn {
  min-height: 40px;
  padding-left: 18px;
  padding-right: 18px;
}

/* 邮箱在极窄屏允许断行，不撑破容器 */
.contact__mail a,
.facts dd a { overflow-wrap: anywhere; }

@media (max-width: 560px) {
  .nav__gh { padding: 6px 0; }
  .link-arrow { padding: 4px 0; }
  body::before { background-size: 4px 4px; opacity: 0.25; }
  .row__title { font-size: 16.5px; }
  .note__title { font-size: 16px; }
  .hero__index { margin-bottom: 18px; }
}

/* 横屏手机：首屏不要占太高 */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { padding: 104px 0 48px; }
  .rule { margin: 26px 0 20px; }
  .hero__actions { margin-top: 26px; }
}

/* ---------- 文章页（笔记详情） ---------- */
.post {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 28px;
}

.post__head { padding-top: 150px; }

.post__title {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 4.4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.post__meta {
  margin-top: 14px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.post__body {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  padding-top: 38px;
}

.post__body h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
  margin: 50px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 84px;
}

.post__body h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
  margin: 34px 0 12px;
  scroll-margin-top: 84px;
}

.post__body h4 {
  font-size: 15px;
  color: var(--ink);
  margin: 24px 0 8px;
}

.post__body p {
  margin: 13px 0;
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-2);
}

.post__body ul,
.post__body ol {
  margin: 13px 0;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-2);
}

.post__body ul { list-style: disc; }
.post__body ol { list-style: decimal; }
.post__body li { margin: 5px 0; }
.post__body li::marker { color: var(--faint); }
.post__body li > p { margin: 4px 0; }

.post__body a {
  color: var(--accent);
  border-bottom: 1px dashed rgba(47, 111, 99, 0.45);
}

.post__body a:hover { border-bottom-style: solid; }

.post__body strong { color: var(--ink); }

.post__body code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 6px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.post__body pre {
  margin: 16px 0;
  padding: 15px 17px;
  background: #f0ede4;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  line-height: 1.72;
}

.post__body pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 12.6px;
  color: var(--ink-2);
  overflow-wrap: normal;
}

.post__body blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 4px 4px 0;
}

.post__body blockquote p {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-2);
}

.post__body blockquote h2 {
  font-size: 1.15rem;
  margin: 4px 0 10px;
  padding: 0;
  border: 0;
}

.post__body blockquote ul { font-size: 13.5px; }
.post__body blockquote code { background: rgba(255, 255, 255, 0.65); }
.post__body blockquote pre { background: rgba(255, 255, 255, 0.55); }

.post__body table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.7;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.post__body th,
.post__body td {
  border-bottom: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}

.post__body th {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}

.post__body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 42px 0;
}

.post__foot {
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .post { padding: 0 20px; }
  .post__head { padding-top: 122px; }
  .post__body h2 { margin-top: 40px; font-size: 1.35rem; }
  .post__body h3 { font-size: 1.1rem; }
  .post__body p { font-size: 14.5px; }
  .post__body pre { padding: 13px 14px; }
  .post__body pre code { font-size: 12px; }
  .post__body table { font-size: 12.5px; }
}

/* ---------- 访问验证页 ---------- */
.verify {
  min-height: calc(100vh - 190px);
  display: grid;
  place-items: center;
  padding: 140px 20px 90px;
}

.verify__card {
  width: min(92vw, 440px);
  padding: 34px 32px 24px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 24px 60px -40px rgba(28, 27, 24, 0.55);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.verify__title {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  margin-top: 4px;
}

.verify__desc {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--muted);
}

.verify__question {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-2);
}

.verify__form {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.verify__input {
  flex: 1;
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 22px;
  letter-spacing: 0.32em;
  text-align: center;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.verify__input::placeholder {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.verify__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 111, 99, 0.12);
}

.verify__input:disabled {
  opacity: 0.7;
}

.verify__submit {
  padding: 0 24px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13.5px;
  letter-spacing: 0.1em;
  transition: background 0.25s ease, opacity 0.25s ease;
}

.verify__submit:hover { background: var(--accent-deep); }
.verify__submit:disabled { cursor: default; opacity: 0.85; }

.verify__error {
  margin-top: 10px;
  font-size: 12.5px;
  color: #a8443a;
  letter-spacing: 0.02em;
}

.verify__target {
  margin-top: 22px;
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.03em;
}

.verify__target span { color: var(--muted); }

.verify__back {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}

.verify__back a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.verify__back a:hover {
  color: var(--ink);
  border-bottom-color: var(--line-2);
}

.verify__card.is-shake { animation: vShake 0.38s ease; }

@keyframes vShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

.verify__card.is-pass {
  border-color: rgba(47, 111, 99, 0.45);
  box-shadow: 0 24px 60px -40px rgba(47, 111, 99, 0.6);
}

@media (max-width: 560px) {
  .verify {
    min-height: calc(100vh - 210px);
    padding: 118px 16px 64px;
  }

  .verify__card { padding: 26px 20px 20px; }
  .verify__title { font-size: 1.45rem; }
  .verify__input { font-size: 19px; letter-spacing: 0.26em; }
  .verify__submit { padding: 0 18px; }
}