/* ==========================================================================
   昀玥堂 / style.css
   视觉基调：小米官网那套 —— 纯白底、橙色强调、大字重标题、卡片化网格、
   悬停上浮阴影。字体全部走系统栈，不依赖外部字体服务（国内首屏更快）。
   ========================================================================== */

/* --- 变量 ---------------------------------------------------------------- */

:root {
  /* 主色 */
  --accent: #FF6700;
  --accent-h: #F25807;
  --accent-soft: #FFF3EB;

  /* 文字 */
  --ink: #191919;
  --ink-2: #333333;
  --ink-3: #555555;
  --ink-4: #757575;
  --ink-5: #9E9E9E;
  --ink-6: #B0B0B0;

  /* 底色 */
  --bg: #FFFFFF;
  --bg-2: #F5F5F5;
  --bg-3: #FAFAFA;
  --card: #F7F7F7;
  --dark: #191919;

  /* 线 */
  --rule: #E5E5E5;
  --rule-soft: #EFEFEF;

  /* 形状 */
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow: 0 2px 10px rgba(0, 0, 0, .05);
  --shadow-h: 0 18px 40px rgba(0, 0, 0, .12);

  /* 字体：系统栈，不引外部字体 */
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
               "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: var(--font-sans);
  --font-poem: "Songti SC", "Noto Serif SC", "Source Han Serif SC", STSong, SimSun,
               "PingFang SC", serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
  --font-num: var(--font-sans);

  /* 页头 LOGO 专用
     Segoe UI Black：Windows 自带（seguibl.ttf，字重 900）；macOS / iOS 没有，
     依次落 Helvetica Neue、Arial、系统无衬线，并用 font-weight:900 逼近
     隶书：走 LiSu（Windows 自带）→ STLiti（macOS 华文隶书）；但 STLiti 缺「玥」，
     所以 LOGO 里的「昀玥堂」已转成矢量 assets/img/wordmark.svg，不依赖字体 */
  --font-black: "Segoe UI Black", "Segoe UI", -apple-system, BlinkMacSystemFont,
                "Helvetica Neue", "Arial Black", Arial, sans-serif;
  --font-lishu: "LiSu", "隶书", SimLi, STLiti, "华文隶书", STKaiti, KaiTi, "楷体", serif;

  /* 版心 */
  --maxw: 1226px;
  --pad-x: 24px;
  --header-h: 64px;
}

/* --- 基础 ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

button { font: inherit; color: inherit; }

code, pre, kbd { font-family: var(--font-mono); }

::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 800; letter-spacing: -.01em; }

p { margin: 0; }

/* 数字统一用等宽数字，跳动时不抖 */
.num, .sv, .v, .y, .c, [data-posts-count], [data-moments-count], [data-num-moments] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* --- 通用零件 ------------------------------------------------------------ */

.hairline { height: 1px; background: var(--rule); }
.rule { height: 1px; background: var(--rule); }
.rule.soft { background: var(--rule-soft); }
.end-rule { height: 1px; background: var(--rule); margin: 44px 0; }

.accent { color: var(--accent); }
.dim { color: var(--ink-5); }

.note {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-5);
}

/* 链接箭头 */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-4);
  transition: color .2s ease;
}

.link-arrow svg { width: 13px; height: 13px; transition: transform .2s ease; }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow.accent { color: var(--accent); }

/* 按钮 */
.btn-ghost,
.btn-primary,
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 160px;
  height: 44px;
  padding: 0 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-h); border-color: var(--accent-h); }

.btn-line {
  background: transparent;
  border-color: rgba(25, 25, 25, .26);
  color: var(--ink-2);
}
.btn-line:hover { background: rgba(25, 25, 25, .05); border-color: rgba(25, 25, 25, .5); }

.btn-ghost {
  background: #fff;
  border-color: var(--rule);
  color: var(--ink-2);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost.is-done {
  background: var(--bg-3);
  border-color: var(--rule-soft);
  color: var(--ink-6);
  cursor: default;
}
.btn-ghost.is-done:hover { border-color: var(--rule-soft); color: var(--ink-6); }

/* ==========================================================================
   页头
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 40px;
  height: var(--header-h);
  padding: 0 var(--pad-x);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ink);
}

/* 页头标记：方折 C + 橙句点，30px 高，与右侧两行字块垂直居中 */
.logo-mark {
  flex: 0 0 auto;
  display: block;
  width: 30px;
  height: 30px;
  color: var(--ink);
}

.logo-txt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

/* 隶书字标：由「隶书」字形转出的矢量路径，各端一致 */
.logo-word {
  display: block;
  height: 20px;
  width: auto;
}

.logo-txt i {
  font-family: var(--font-black);
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .1em;
  color: var(--ink-5);
}

/* 句点用主色，与左侧标记的橙句点呼应；字母保持灰色 */
.logo-txt i .on { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  flex: 1 1 auto;
}

.nav a {
  position: relative;
  padding: 20px 0;
  font-size: 15px;
  color: var(--ink-2);
  transition: color .2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s ease;
}

.nav a:hover { color: var(--accent); }
.nav a.active { color: var(--accent); font-weight: 600; }
.nav a.active::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.icon-btn:hover { background: var(--bg-2); color: var(--accent); }
.icon-btn svg { width: 17px; height: 17px; }

.nav-toggle { display: none; }

/* 页头搜索（小米那种胶囊输入框） */
.hsearch {
  position: relative;
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 6px 0 14px;
  border-radius: 999px;
  background: var(--bg-2);
  transition: background .2s ease, box-shadow .2s ease;
}

.hsearch:focus-within { background: #fff; box-shadow: inset 0 0 0 1px var(--accent); }

.hsearch input {
  width: 128px;
  height: 100%;
  border: 0;
  background: none;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
}

.hsearch input::placeholder { color: var(--ink-6); }
.hsearch input::-webkit-search-cancel-button { -webkit-appearance: none; }

.hsearch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-4);
  cursor: pointer;
  transition: color .2s ease;
}

.hsearch button:hover { color: var(--accent); }
.hsearch button svg { width: 15px; height: 15px; }

/* 旧版状态条：如果还有残留元素，给个能看的样子 */
.statusbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px var(--pad-x);
  background: var(--dark);
  color: #8A8A8A;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
}
.sb-row { display: flex; align-items: center; gap: 8px; }
.sb-dot { width: 5px; height: 5px; border-radius: 50%; background: #3DDC97; }
.sb-dot.warn { background: #FFB020; }
.sb-strong { color: #fff; }
.sb-sep { opacity: .3; }

/* ==========================================================================
   首页 Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 566px;
  display: flex;
  align-items: center;
  padding: 96px var(--pad-x) 94px;
  overflow: hidden;
  color: var(--ink);
  /* 图未加载时先铺宣纸色，避免白闪 */
  background: #F3EEE4;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/guanque-lou.jpg");
  background-size: cover;
  background-position: center 46%;
  transform: scale(1.015);
}

/* 左浓右淡的宣纸雾：文字这侧压到近乎不透明，楼阁那侧完全透出 */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg,
      rgba(251, 248, 242, .975) 0%,
      rgba(251, 248, 242, .96) 22%,
      rgba(251, 248, 242, .78) 42%,
      rgba(251, 248, 242, .3) 64%,
      rgba(251, 248, 242, 0) 86%),
    linear-gradient(180deg,
      rgba(251, 248, 242, .30) 0%,
      rgba(251, 248, 242, 0) 26%,
      rgba(251, 248, 242, 0) 72%,
      rgba(255, 255, 255, .88) 100%);
}

.hero > * { position: relative; z-index: 1; }

.hero-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero h1 {
  max-width: 15em;
  font-size: 54px;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.02em;
  color: #1B1813;
}

/* 标题末尾的省略号用主色，点一下「还没写完」的语气 */
.hero h1 .hero-dots { color: var(--accent); }

.hero-bottom {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.stats { display: flex; align-items: center; }

.stat {
  padding: 0 26px;
  border-left: 1px solid rgba(25, 25, 25, .16);
}
.stat:first-child { padding-left: 0; border-left: 0; }

.stat .v {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  color: #191919;
  letter-spacing: -.01em;
}

.stat .l {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(25, 25, 25, .52);
}

/* ==========================================================================
   服务带（4 个入口）
   ========================================================================== */

.services {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  border-bottom: 1px solid var(--rule-soft);
}

.services-inner { display: grid; grid-template-columns: repeat(3, 1fr); }

.service {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 22px;
  border-left: 1px solid var(--rule-soft);
  transition: background .2s ease;
}

.service:first-child { border-left: 0; padding-left: 0; }
.service:hover { background: var(--bg-3); }

.service .si { flex: 0 0 auto; color: var(--accent); }
.service .si svg { width: 22px; height: 22px; }

.service .st { display: block; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.service .sd { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-5); }

/* ==========================================================================
   区块与标题
   ========================================================================== */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px var(--pad-x) 80px;
}

.section.alt {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  background: var(--bg-2);
}

.section.alt > .section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  text-align: center;
}

.section-head h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
}

.section-head h2 small {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-6);
  letter-spacing: 0;
}

.section-head .sub { font-size: 14px; color: var(--ink-5); }

.section-foot { display: flex; justify-content: center; margin-top: 40px; }

/* ==========================================================================
   文章卡片
   ========================================================================== */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--rule-soft);
  transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
}

.pcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-h);
  border-color: transparent;
}

/* 没有配图时的封面块：用分类名做排版，不留灰块 */
.pcard-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 142px;
  padding: 18px;
  background: linear-gradient(160deg, #FAFAFA 0%, #F0F0F0 100%);
  overflow: hidden;
}

.pcard-visual::after {
  content: attr(data-cat);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: rgba(25, 25, 25, .045);
  letter-spacing: .3em;
  white-space: nowrap;
  transition: color .26s ease;
}

.pcard:hover .pcard-visual::after { color: rgba(255, 103, 0, .09); }

.pcard-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pcard-visual .pv-cat {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
}

.pcard-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 20px 22px 22px;
}

.pcard-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-6);
}

.pcard h3 {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  transition: color .2s ease;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcard:hover h3 { color: var(--accent); }

.pcard p {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-4);

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
  font-size: 12px;
  color: var(--ink-6);
}

.pcard-foot .go { color: var(--accent); font-weight: 600; }

/* 旧版列表结构（文章页侧栏、搜索结果等处仍在用） */
.post-featured { display: flex; gap: 40px; align-items: flex-start; }
.post-featured .txt { flex: 1 1 auto; min-width: 0; }

.post-item { display: flex; gap: 28px; padding: 26px 0; align-items: flex-start; }
.post-item .txt { flex: 1 1 auto; min-width: 0; }

.thumb {
  flex: 0 0 200px;
  width: 200px;
  height: 126px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.thumb img { width: 100%; height: 100%; object-fit: cover; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-6);
}

.post-meta .cat { color: var(--accent); font-weight: 600; }

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
}

.meta-dim { color: var(--ink-6); }

/* ==========================================================================
   首页：微博卡片
   ========================================================================== */

.moment-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.moment-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--rule-soft);
  transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
}

.moment-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-h);
  border-color: transparent;
}

.moment-card .ic {
  display: block;
  height: 178px;
  background: var(--card);
  overflow: hidden;
}

.moment-card .ic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.moment-card:hover .ic img { transform: scale(1.04); }

.moment-card .d { padding: 18px 22px 0; font-size: 12px; color: var(--ink-6); }

.moment-card .t {
  padding: 8px 22px 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);

  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.moment-card .f {
  margin: auto 22px 20px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
  font-size: 12px;
  color: var(--ink-6);
}

.moments-strip { max-width: var(--maxw); margin: 0 auto; padding: 72px var(--pad-x) 80px; }

.moments-strip .head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.moments-strip .head h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 30px;
  font-weight: 800;
}

.moments-strip .head h2 small { font-size: 14px; font-weight: 400; color: var(--ink-6); }

.strip-empty,
.stream-empty {
  padding: 48px 0;
  text-align: center;
  color: var(--ink-5);
  font-size: 14px;
}

/* ==========================================================================
   域名计时器（复古翻页钟）
   ========================================================================== */

.num-band {
  background: var(--dark);
  color: #fff;
  --fc-w: 50px;
  --fc-h: 64px;
}

.num-band-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px var(--pad-x) 62px;
}

/* 上排：文章数 / 微博数，沿用原来的居中三栏观感，去掉第三格 */
.num-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.num-item { text-align: center; padding: 0 64px; }
.num-item + .num-item { border-left: 1px solid rgba(255, 255, 255, .12); }

.num-item .v {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.num-item .l { margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, .55); }

.num-item .v em { font-style: normal; font-size: 18px; font-weight: 500; color: rgba(255, 255, 255, .6); margin-left: 4px; }

/* 下排：翻页钟 */
.clock-wrap { padding-top: 40px; text-align: center; }

.clock-cap {
  margin-bottom: 24px;
  font-size: 12px;
  letter-spacing: .34em;
  text-indent: .34em;
  color: rgba(255, 255, 255, .42);
}

.clock {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 18px 26px;
}

.fc-group { display: flex; align-items: flex-end; gap: 7px; flex: 0 0 auto; }
.fc-pair { display: flex; gap: 5px; }

.fc-unit {
  /* 贴着数字的基线，不是贴着卡片底边 */
  padding-bottom: calc(var(--fc-h) * .27);
  font-size: 13px;
  line-height: 1;
  color: rgba(255, 255, 255, .55);
}

/* 一位数字 = 上下两半 + 两片翻页用的活动半片 */
.fc-d {
  position: relative;
  display: block;
  flex: 0 0 var(--fc-w);   /* 不许被压窄，宁可换行 */
  width: var(--fc-w);
  height: var(--fc-h);
  perspective: 260px;
  font-size: calc(var(--fc-h) * .68);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.fc-half, .fc-flap {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  overflow: hidden;
  backface-visibility: hidden;
}

.fc-half i, .fc-flap i {
  display: block;
  font-style: normal;
  line-height: var(--fc-h);
  text-align: center;
  /* 行盒按 em 居中，数字却落在基线上，往上提一点才真正压在翻页缝上 */
  transform: translateY(calc(var(--fc-h) * -.078));
}

.fc-t, .fc-ft { top: 0; border-radius: 7px 7px 0 0; background: linear-gradient(180deg, #414141, #333333); }
.fc-b, .fc-fb { bottom: 0; border-radius: 0 0 7px 7px; background: linear-gradient(180deg, #2b2b2b, #1e1e1e); }

/* 下半片里的数字要往上提半格，才接得上上半片的缺口 */
.fc-b i, .fc-fb i { margin-top: calc(var(--fc-h) / -2); }

/* 中缝：一条暗线 + 一点高光，翻页钟的辨识点 */
.fc-t::after, .fc-ft::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(0, 0, 0, .6);
}

.fc-b::before, .fc-fb::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, .06);
}

.fc-flap { visibility: hidden; z-index: 3; }
.fc-ft { transform-origin: 50% 100%; }
.fc-fb { transform-origin: 50% 0; transform: rotateX(90deg); }

.fc-d.flipping .fc-ft { visibility: visible; animation: fcOut .18s linear both; }
.fc-d.flipping .fc-fb { visibility: visible; animation: fcIn .18s linear .18s both; }

@keyframes fcOut { to { transform: rotateX(-90deg); } }
@keyframes fcIn { from { transform: rotateX(90deg); } to { transform: rotateX(0deg); } }

@media (prefers-reduced-motion: reduce) {
  .fc-d.flipping .fc-ft,
  .fc-d.flipping .fc-fb { animation: none; }
}

/* ==========================================================================
   页脚
   ========================================================================== */

.site-footer { background: var(--bg-2); color: var(--ink-3); padding: 56px 0 0; }

.site-footer .inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }

.foot-top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
  padding-bottom: 36px;
}

.foot-brand .name { font-size: 20px; font-weight: 800; color: var(--ink); }
.foot-brand .tag { margin-top: 10px; font-size: 12.5px; line-height: 1.9; color: var(--ink-5); white-space: pre-line; }

.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }

.foot-col { display: flex; flex-direction: column; gap: 10px; min-width: 110px; }
.foot-col .ct { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.foot-col a, .foot-col span { font-size: 12.5px; color: var(--ink-5); transition: color .2s ease; }
.foot-col a:hover { color: var(--accent); }

.foot-wordmark {
  /* 中英同字号排成一整行，实测整行墨迹宽 ≈ 字号 × 10.42，
     所以按可用宽度（视口 - 两侧留白）反推字号，10.9 是留 5% 余量，
     110px 是桌面端上限（再大就会顶破 1226 的版心） */
  font-size: min(calc((100vw - 2 * var(--pad-x)) / 10.9), 110px);
  font-weight: 800;
  line-height: .86;
  letter-spacing: -.04em;
  color: rgba(25, 25, 25, .06);
  user-select: none;
  padding: 10px 0 26px;
}

/* 英文后缀：与中文同字号、同基线，一起读作一行字标 */
.foot-wordmark .wm-en {
  margin-left: .16em;
  font-family: var(--font-black);
  font-size: 1em;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;      /* 宁可整段不换行，也不要在 CHAODY.COM 中间断开 */
}

.foot-rule { height: 1px; background: var(--rule); }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0 10px;
  font-size: 12px;
  color: var(--ink-6);
}

/* 没有备案号时（本行是最后一行）仍保留底部留白 */
.foot-bottom:last-child { padding-bottom: 26px; }

.foot-bottom a:hover { color: var(--accent); }

/* 备案号：工信部要求——页面底部、可点击、指向备案系统 */
.foot-legal {
  padding: 0 0 26px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-4);
}

.foot-legal a {
  color: var(--ink-3);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s, border-color .18s;
}

.foot-legal a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ==========================================================================
   内页：页头 / 标签栏
   ========================================================================== */

.page-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px var(--pad-x) 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.page-head .l { display: flex; flex-direction: column; gap: 12px; }

.page-head h1 { font-size: 40px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }

.page-head .sub { font-size: 14px; color: var(--ink-5); }

/* 关于页标题左侧的小狐狸（原页头标记，已替换为新标志） */
.page-head h1.h-fox {
  display: flex;
  align-items: center;
  gap: 13px;
}
.page-fox {
  display: block;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
}

.tabs {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px var(--pad-x) 0;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule-soft);
}

.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 0 14px;
  border: 0;
  background: none;
  font-size: 15px;
  color: var(--ink-4);
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease;
}

.tab .n { font-size: 12px; color: var(--ink-6); font-variant-numeric: tabular-nums; }

.tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
  transition: background .2s ease;
}

.tab:hover { color: var(--ink); }
.tab.on { color: var(--accent); font-weight: 600; }
.tab.on::after { background: var(--accent); }
.tab.on .n { color: var(--accent); }

/* ==========================================================================
   筛选 chips
   ========================================================================== */

.chips { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: var(--ink-3);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.chip:hover { border-color: var(--accent); color: var(--accent); }

.chip .n {
  font-size: 11px;
  color: var(--ink-5);
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.chip.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.chip.on .n { color: rgba(255, 255, 255, .8); }
.chip.on:hover { background: var(--accent-h); border-color: var(--accent-h); color: #fff; }

.post-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }

/* ==========================================================================
   侧栏
   ========================================================================== */

.layout { display: flex; gap: 56px; align-items: flex-start; }
.layout .main { flex: 1 1 auto; min-width: 0; }
.layout .side { flex: 0 0 280px; width: 280px; }

.side-block { display: flex; flex-direction: column; gap: 10px; }
.side-block + .side-block { margin-top: 32px; }

.side-block .st {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink);
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.side-block .sb { font-size: 13px; line-height: 1.9; color: var(--ink-4); }

.side-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.side-links a { font-size: 13px; color: var(--accent); }
.side-links a:hover { opacity: .75; }

.archive-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  font-size: 13px;
  color: var(--ink-3);
  transition: color .2s ease;
}

.archive-row .y { font-weight: 500; }
.archive-row .c { font-size: 12px; color: var(--ink-6); }
.archive-row .bar { flex: 1 1 auto; height: 4px; margin: 0 12px; border-radius: 2px; background: var(--rule-soft); overflow: hidden; }
.archive-row .bar i { display: block; height: 100%; background: var(--accent); opacity: .55; transition: opacity .2s ease; }
.archive-row:hover { color: var(--accent); }
.archive-row:hover .bar i { opacity: 1; }

/* ==========================================================================
   归档页
   ========================================================================== */

.archive-layout {
  display: flex;
  gap: 64px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px var(--pad-x) 88px;
  align-items: flex-start;
}

.archive-side { flex: 0 0 240px; width: 240px; }

.archive-side .sblock + .sblock { margin-top: 26px; }

.archive-side .sv { font-size: 30px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.archive-side .sl { margin-top: 6px; font-size: 12px; color: var(--ink-5); }
.archive-side .note { margin-top: 26px; }

.archive-list { flex: 1 1 auto; min-width: 0; }

.year-block + .year-block { margin-top: 44px; }

.year-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 2px solid var(--ink);
}

.year-head .y { font-size: 22px; font-weight: 800; color: var(--ink); }
.year-head .c { font-size: 12px; color: var(--ink-6); }

.archive-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule-soft);
  transition: color .2s ease, padding-left .2s ease;
}

.archive-item .d { flex: 0 0 92px; font-size: 12.5px; color: var(--ink-6); font-variant-numeric: tabular-nums; }
.archive-item .t { flex: 1 1 auto; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.archive-item .k { flex: 0 0 auto; font-size: 12px; color: var(--ink-6); }

.archive-item:hover { padding-left: 6px; }
.archive-item:hover .t { color: var(--accent); }

/* ==========================================================================
   微博页
   ========================================================================== */

.stream-layout {
  display: flex;
  gap: 56px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px var(--pad-x) 80px;
  align-items: flex-start;
}

.stream-layout .main { flex: 1 1 auto; min-width: 0; }
.stream-layout .side { flex: 0 0 280px; width: 280px; }

.month-block + .month-block { margin-top: 52px; }

.month-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}

.month-head .m { font-size: 21px; font-weight: 800; color: var(--ink); }
.month-head .c { font-size: 12px; color: var(--ink-6); }

.date-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 4px;
  font-size: 12.5px;
  color: var(--ink-5);
}

.date-label i { flex: 1 1 auto; height: 1px; background: var(--rule-soft); }
.month-block .date-label i { display: none; }

.moment {
  padding: 24px 26px;
  margin: 12px 0;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--rule-soft);
  transition: box-shadow .24s ease, border-color .24s ease, transform .24s ease;
}

.moment:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-2px); }

.moment .body { font-size: 15px; line-height: 1.9; color: var(--ink-2); word-break: break-word; }
.moment .body a { color: var(--accent); }
.moment .body a:hover { text-decoration: underline; }

.moment .imgs { display: grid; gap: 6px; margin-top: 14px; border-radius: var(--radius); overflow: hidden; }
.moment .imgs.n1 { grid-template-columns: 1fr; }
.moment .imgs.n2 { grid-template-columns: 1fr 1fr; }
.moment .imgs.n3 { grid-template-columns: repeat(3, 1fr); }
.moment .imgs.n4 { grid-template-columns: 1fr 1fr; }
.moment .imgs.nx { grid-template-columns: repeat(3, 1fr); }
.moment .imgs .img { display: block; overflow: hidden; background: var(--card); aspect-ratio: 4 / 3; }
.moment .imgs.n1 .img { aspect-ratio: 16 / 10; }
.moment .imgs img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.moment .imgs a:hover img { transform: scale(1.03); }

.moment .quote {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-2);
}

.moment .qname { font-size: 12.5px; color: var(--accent); font-weight: 600; }
.moment .qbody { margin-top: 6px; font-size: 13.5px; line-height: 1.8; color: var(--ink-4); }

.moment .meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
  font-size: 12.5px;
  color: var(--ink-6);
}

.moment .meta a { color: var(--ink-4); }
.moment .meta a:hover { color: var(--accent); }
.moment .meta .src { color: var(--accent); }

.load-more-wrap { display: flex; justify-content: center; margin-top: 40px; }

.sync-card { padding: 20px 22px; border-radius: var(--radius-lg); background: var(--bg-2); }

.sync-card .row { display: flex; align-items: center; gap: 8px; }
.sync-card .dot { width: 6px; height: 6px; border-radius: 50%; background: #3DDC97; }
.sync-card .dot.stale { background: #FFB020; }
.sync-card .st { font-size: 13px; font-weight: 600; color: var(--ink); }
.sync-card .sb { margin-top: 8px; font-size: 12.5px; line-height: 1.8; color: var(--ink-5); }

/* ==========================================================================
   文章页
   ========================================================================== */

/* 标题区与正文左缘对齐：都从 1080 版心内的 760 处开始 */
.article-head {
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px var(--pad-x) 0;
}

.article-head .breadcrumb,
.article-head h1,
.article-head .article-meta { max-width: 760px; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-5); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--ink-6); }
.breadcrumb .cur { color: var(--accent); }

.article-head h1 {
  margin-top: 18px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -.02em;
  color: var(--ink);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 13px;
  color: var(--ink-5);
}

.article-cover { max-width: 960px; margin: 34px auto 0; padding: 0 var(--pad-x); }

.article-cover .img {
  aspect-ratio: 16 / 8;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
}

.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.article-body {
  display: flex;
  gap: 64px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 44px var(--pad-x) 0;
  align-items: flex-start;
}

.article-body .content { flex: 1 1 auto; min-width: 0; max-width: 760px; }

.content { font-size: 16px; line-height: 2.05; color: var(--ink-2); }
.content > * + * { margin-top: 22px; }

.content p { margin: 0; }
.content .lead { font-size: 17px; line-height: 1.95; color: var(--ink-3); }

.content h2 {
  margin: 46px 0 0;
  font-size: 25px;
  font-weight: 800;
  color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.content h3 { margin: 34px 0 0; font-size: 19px; font-weight: 700; color: var(--ink); }

.content blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink-3);
}

.content ul { margin: 20px 0; padding-left: 22px; }
.content li { margin: 8px 0; }
.content li::marker { color: var(--accent); }

.content a { color: var(--accent); border-bottom: 1px solid rgba(255, 103, 0, .32); }
.content a:hover { border-bottom-color: var(--accent); }

.content code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-2);
  font-size: .88em;
  color: var(--ink);
}

.content pre {
  margin: 26px 0;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--dark);
  color: #E6E6E6;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.8;
}

.content pre code { padding: 0; background: none; color: inherit; font-size: inherit; }

.content hr { margin: 44px 0; border: 0; height: 1px; background: var(--rule); }

.content figure { margin: 32px 0; }
.content figure .img { border-radius: var(--radius-lg); overflow: hidden; background: var(--card); }
.content figcaption { margin-top: 10px; font-size: 12.5px; color: var(--ink-5); text-align: center; }

.article-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  flex: 0 0 200px;
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 20px;
  border-left: 1px solid var(--rule-soft);
}

.article-toc .tt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink-6);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.article-toc a { font-size: 13px; line-height: 1.6; color: var(--ink-5); transition: color .2s ease; }
.article-toc a:hover { color: var(--ink-2); }
.article-toc a.on { color: var(--accent); font-weight: 600; }

.article-foot { max-width: 1080px; margin: 0 auto; padding: 56px var(--pad-x) 0; }
.article-foot .inner { max-width: 760px; }

.author-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
}

.author-card .avatar { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; }
.author-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-card .name { font-size: 15px; font-weight: 700; color: var(--ink); }
.author-card .bio { margin-top: 4px; font-size: 12.5px; color: var(--ink-5); }

.article-foot .rule { margin: 36px 0; }

.pn-row { display: flex; gap: 16px; }

.pn-row .col {
  flex: 1 1 0;
  min-width: 0;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule-soft);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.pn-row a.col:hover { border-color: transparent; box-shadow: var(--shadow); }
.pn-row .col.next { text-align: right; }
.pn-row .col:only-child { flex: 0 0 100%; }
.pn-row .lbl { font-size: 12px; color: var(--ink-6); }
.pn-row .ttl {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pn-row a.col:hover .ttl { color: var(--accent); }

/* ==========================================================================
   关于页
   ========================================================================== */

.about-layout {
  display: flex;
  gap: 72px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px var(--pad-x) 88px;
  align-items: flex-start;
}

.about-left { flex: 0 0 300px; width: 300px; }

/* 肖像整张铺满卡片顶部：这是半身构图，裁成小圆框只会剩下一个头，
   所以改成"卡片抬头"——图在上、名字在下，圆角交给卡片自己切。 */
.about-id {
  padding: 0 0 28px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-2);
  text-align: center;

}

.about-avatar {
  width: 100%;
  padding-top: 12px;
  background: var(--bg-2);
}

/* 插画自带白底，multiply 让白直接等于卡片灰，整张卡连成一片，没有接缝 */
.about-avatar img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  mix-blend-mode: multiply;
  /* 画到这里就断了，让下缘化进卡片灰，避免一条硬切边 */
  -webkit-mask-image: linear-gradient(180deg, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 84%, transparent 100%);
}

.about-name { margin-top: 24px; padding: 0 24px; font-size: 20px; font-weight: 800; color: var(--ink); }
.about-meta { margin-top: 8px; padding: 0 24px; font-size: 13px; line-height: 1.9; letter-spacing: .1em; color: var(--ink-4); }
/* 中文逗号字形本身右侧留白偏大，配上字距会像空了两格，收回来一点 */
.about-meta .cm { margin-right: -.22em; color: var(--accent); }

.about-contact { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.about-contact .ct {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink);
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.about-contact a { font-size: 13.5px; color: var(--ink-4); transition: color .2s ease; }
.about-contact a:hover { color: var(--accent); }
.about-contact a.num { font-family: var(--font-mono); font-size: 12.5px; }

.about-right { flex: 1 1 auto; min-width: 0; max-width: 720px; }
.about-right .lead { font-size: 19px; line-height: 1.85; color: var(--ink); font-weight: 500; }

.about-right h2 { margin: 44px 0 14px; font-size: 22px; font-weight: 800; color: var(--ink); }

.about-right p { margin: 0 0 16px; font-size: 15px; line-height: 2; color: var(--ink-3); }
.about-right p a { color: var(--accent); }

.tech-list { margin: 26px 0 8px; border-top: 1px solid var(--rule-soft); }

.tech-list .row {
  display: flex;
  gap: 24px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14px;
}

.tech-list .k { flex: 0 0 72px; color: var(--ink-6); }
.tech-list .v { flex: 1 1 auto; color: var(--ink-2); }
.tech-list .v code { padding: 1px 5px; border-radius: 4px; background: var(--bg-2); font-size: .86em; }

.about-right .closing { margin-top: 8px; font-size: 15px; color: var(--ink-3); }

/* --- 关于：题画诗 -------------------------------------------------------- */

.poem-art {
  margin: 54px 0 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-2);
}

.poem-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* 诗整组按最深的一行取宽、居中摆放，组内统一左对齐——
   标题 4 字、正文 6 字，各自居中会各自算出不同的左缘，这才是「偏左」的根因 */
.poem-inner {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  text-align: left;
}

/* 标题 + 落款先组成一组：组宽由标题四个字决定，落款在组内水平居中，
   于是「唐 · 王之涣」的墨迹中心正好压在「登鹳雀楼」的中心上；
   组本身仍是 .poem-inner 的左缘，正文不会跑偏 */
.poem-head {
  width: fit-content;
  max-width: 100%;
}

.about-right .poem-title {
  position: relative;
  margin: 0;
  padding-top: 28px;
  font-family: var(--font-poem);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .3em;
  margin-right: -.3em;   /* 抵掉末字后多出的字距，组宽 = 四个字的实际宽度 */
  color: var(--ink);
}

/* 橙色短线跟着文字左缘走，不再居中飘着 */
.poem-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 2px;
  background: var(--accent);
}

.poem-by {
  margin-top: 10px;
  padding-left: .18em;            /* 抵掉末字后多出的字距，居中才是真正视觉居中 */
  font-family: var(--font-poem);  /* 和正文同一套宋体，原来是无衬线 */
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: .18em;
  text-align: center;
  color: var(--ink-4);
}

.about-right .poem-body { margin-top: 26px; }

.about-right .poem-body p {
  margin: 0;
  font-family: var(--font-poem);
  font-size: 23px;
  line-height: 2.3;
  letter-spacing: .2em;
  color: var(--ink-2);
}

/* ==========================================================================
   响应式
   ========================================================================== */

/* 窄屏时文字占的比例更大，雾要更厚，否则统计数字会压到楼阁上 */
@media (max-width: 1300px) {
  .hero::after {
    background:
      linear-gradient(96deg,
        rgba(251, 248, 242, .98) 0%,
        rgba(251, 248, 242, .96) 32%,
        rgba(251, 248, 242, .87) 54%,
        rgba(251, 248, 242, .52) 76%,
        rgba(251, 248, 242, .12) 95%),
      linear-gradient(180deg,
        rgba(251, 248, 242, .30) 0%,
        rgba(251, 248, 242, 0) 26%,
        rgba(251, 248, 242, 0) 72%,
        rgba(255, 255, 255, .88) 100%);
  }
}

@media (max-width: 1080px) {
  .hero h1 { font-size: 44px; }
  .post-grid, .moment-cards { grid-template-columns: repeat(2, 1fr); }
  .archive-layout, .stream-layout, .article-body, .about-layout { gap: 40px; }
  .article-toc { display: none; }
}

@media (max-width: 860px) {
  :root { --pad-x: 18px; }

  .nav { display: none; }

  .nav.open {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--pad-x) 16px;
    background: #fff;
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .08);
  }

  .nav.open a { padding: 14px 0; border-bottom: 1px solid var(--rule-soft); font-size: 15px; }
  .nav.open a::after { display: none; }

  .nav-toggle { display: inline-flex; }
  .hsearch { display: none; }
  .site-header { gap: 12px; }
  .logo { flex: 1 1 auto; }

  .hero { min-height: 460px; padding: 68px var(--pad-x) 60px; }
  .hero::before { background-position: center 44%; }
  .hero::after {
    background:
      linear-gradient(180deg,
        rgba(251, 248, 242, .93) 0%,
        rgba(251, 248, 242, .87) 46%,
        rgba(251, 248, 242, .72) 74%,
        rgba(255, 255, 255, .96) 100%);
  }
  .hero h1 { font-size: 32px; }
  .hero-bottom { margin-top: 30px; gap: 26px; }
  .stat { padding: 0 18px; }
  .stat .v { font-size: 22px; }

  .services-inner { grid-template-columns: 1fr; }
  .service { padding: 18px 0; }
  .service:first-child { padding-top: 22px; }
  .service + .service { border-top: 1px solid var(--rule-soft); border-left: 0; }
  .service:nth-child(n) { padding-left: 0; }

  .section, .moments-strip { padding: 52px var(--pad-x) 56px; }
  .section-head h2, .moments-strip .head h2 { font-size: 24px; }
  .section-head { align-items: flex-start; text-align: left; margin-bottom: 28px; }
  .moments-strip .head { flex-direction: column; align-items: flex-start; gap: 10px; }

  .page-head { padding: 36px var(--pad-x) 0; }
  .page-head h1 { font-size: 30px; }
  .tabs { padding: 24px var(--pad-x) 0; gap: 24px; }

  .num-band { --fc-w: 34px; --fc-h: 48px; }
  .num-band-inner { padding: 44px var(--pad-x) 48px; }
  .num-stats { padding-bottom: 30px; }
  .num-item { padding: 0 30px; }
  .num-item .v { font-size: 30px; }
  .num-item .l { font-size: 12px; }
  .clock-wrap { padding-top: 30px; }
  .clock { gap: 14px 18px; }
  .fc-unit { font-size: 12px; }
  .clock-cap { margin-bottom: 18px; }

  .foot-top { gap: 32px; }
  .foot-cols { gap: 32px; }
  .foot-wordmark { padding: 0 0 18px; }

.archive-layout, .stream-layout, .about-layout, .article-body { flex-direction: column; gap: 32px; }
  .poem-art { margin-top: 36px; }
  .about-right .poem-title { font-size: 24px; }
  .poem-by { font-size: 13.5px; }
  .about-right .poem-body p { font-size: 19px; letter-spacing: .16em; }
  .archive-side, .about-left { flex: none; width: 100%; }
  .about-avatar img { max-height: 360px; object-fit: contain; }
  .stream-layout .side, .layout .side { width: 100%; flex: none; }
  .archive-item .d { flex: 0 0 70px; }

  .article-head { padding: 36px var(--pad-x) 0; }
  .article-head h1 { font-size: 28px; }
  .article-cover { padding: 0; margin-top: 24px; }
  .article-cover .img { border-radius: 0; }
  .content { font-size: 15.5px; line-height: 2; }
  .content h2 { font-size: 21px; margin-top: 36px; }

  .pn-row { flex-direction: column; }
  .pn-row .col.next { text-align: left; }
}

/* 一行摆不下 6 组时改 3 列网格：年月天 / 时分秒，比 flex 自动折行整齐 */
@media (max-width: 680px) {
  .num-band { --fc-w: 30px; --fc-h: 42px; }
  .clock {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    justify-content: center;
    gap: 14px 18px;
  }
}

@media (max-width: 560px) {
  .post-grid, .moment-cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn-primary, .hero-cta .btn-line { flex: 1 1 0; min-width: 0; padding: 0 12px; }
  .stats { width: 100%; }
  .stat { flex: 1 1 0; padding: 0 14px; }
  .moment-card .ic { height: 200px; }
  .year-head .y { font-size: 19px; }
  .foot-bottom { flex-direction: column; gap: 8px; }

  /* 翻页钟在窄屏再收一档（3 列网格见上方 680px 断点） */
  .num-band { --fc-w: 28px; --fc-h: 40px; }
  .num-item { padding: 0 22px; }
  .num-item .v { font-size: 26px; }
  .fc-group { gap: 5px; }
  .fc-pair { gap: 4px; }
}
