@charset "UTF-8";
/* ============================================================
   彼岸花事 · 一窗烟雨   v3.0.0
   重写：彼岸花由「粒子补丁」升为主视觉
   墨夜朱燃首屏花田 / 宣纸朱砂正文 / 花随风摆 / 花丝明灭
   ============================================================ */

/* ------------------------------------------------------------
   1. 色与字
   ------------------------------------------------------------ */
:root {
  --paper:      #F4EFE4;   /* 宣纸 */
  --card:       #FBF8F1;   /* 纸面卡片 */
  --card-soft:  #EFE9DC;
  --ink-1:      #1B2421;   /* 浓墨 · 标题 */
  --ink-2:      #414C46;   /* 中墨 · 正文 */
  --ink-3:      #7A857C;   /* 淡墨 · 辅助 */
  --ink-4:      #DACFC0;   /* 极淡 · 边线 */
  --line:       #DCD4C3;
  --line-soft:  #E8E1D3;
  --petal:      #B3322B;   /* 彼岸朱 */
  --petal-deep: #87231E;
  --filament:   #C9973A;
  --glow:       #F0C46B;

  --night:      #0A1318;
  --night-2:    #13242C;
  --night-3:    #1B333C;
  --moon:       #F2E9D4;
  --hill-far:   #16303A;
  --hill-near:  #102229;

  --font-serif: "LXGW WenKai", "霞鹜文楷", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --font-body:  "LXGW WenKai", "霞鹜文楷", "Songti SC", "Noto Serif CJK SC", "STSong", "SimSun", serif;

  --shadow-1: 0 2px 12px rgba(28, 32, 28, .05);
  --shadow-2: 0 14px 40px rgba(28, 32, 28, .11);

  /* 插件（Shadow DOM 内只能通过变量改色） */
  --likcc-summaraid-bg: #FBF8F1;
  --likcc-summaraid-text: #414C46;
  --likcc-reading-panel: #FBF8F1;
  --likcc-reading-text: #414C46;
}

html[data-theme="dark"] {
  --paper:      #0F171A;
  --card:       #182328;
  --card-soft:  #1E2B30;
  --ink-1:      #F0EBDF;
  --ink-2:      #BAC4BC;
  --ink-3:      #87968E;
  --ink-4:      #3B4A4C;
  --line:       #2C3B3E;
  --line-soft:  #243236;
  --petal:      #E44B3D;
  --petal-deep: #A62C25;
  --filament:   #EFC170;
  --glow:       #FFD98E;
  --shadow-1: 0 2px 14px rgba(0, 0, 0, .25);
  --shadow-2: 0 16px 44px rgba(0, 0, 0, .42);
  --likcc-summaraid-bg: #182328;
  --likcc-summaraid-text: #BAC4BC;
  --likcc-reading-panel: #182328;
  --likcc-reading-text: #BAC4BC;
}

body {
  --petal: var(--accent, #B3322B);
}
html[data-theme="dark"] body {
  --petal: color-mix(in srgb, var(--accent, #B3322B) 72%, #FF8060);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(179, 50, 43, .025) 0 22%, transparent 60%),
    radial-gradient(circle at 86% 72%, rgba(24, 56, 64, .035) 0 26%, transparent 62%);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html[data-theme="dark"] body {
  background-image:
    radial-gradient(circle at 14% 20%, rgba(228, 75, 61, .045) 0 24%, transparent 60%),
    radial-gradient(circle at 84% 76%, rgba(70, 130, 140, .045) 0 26%, transparent 62%);
}
html.theme-anim body, html.theme-anim .card, html.theme-anim .site-header { transition: background-color .4s ease, color .4s ease, border-color .4s ease; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; cursor: pointer; }
::selection { background: rgba(179, 50, 43, .22); color: var(--ink-1); }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.site-wrapper { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; }
.site-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ------------------------------------------------------------
   2. 彼岸花 SVG 本体（首屏 / 卡片 / 页脚共用）
   ------------------------------------------------------------ */
.m-petal-shape { fill: var(--petal); opacity: .94; }
.m-petal-vein  { fill: none; stroke: var(--petal-deep); stroke-width: .8; opacity: .55; }
.m-petal-back  { opacity: .58; transform: scale(.84); transform-origin: 60px 66px; }
.m-fil-line    { fill: none; stroke: var(--filament); stroke-width: 1.15; stroke-linecap: round; opacity: .9; }
.m-fil-dot     { fill: var(--glow); animation: filGlow 3.4s ease-in-out infinite; }
.m-fil-group use:nth-child(2n) .m-fil-dot { animation-delay: -1.1s; }
.m-fil-group use:nth-child(3n) .m-fil-dot { animation-delay: -2.3s; }
.m-core        { fill: var(--glow); }
.m-stem        { fill: none; stroke: var(--petal-deep); stroke-width: 2.1; stroke-linecap: round; opacity: .82; }
.m-bloom       { transform-origin: 60px 66px; animation: bloomBreathe 6.5s ease-in-out infinite; }

@keyframes filGlow {
  0%, 100% { opacity: .35; }
  50%      { opacity: 1; }
}
@keyframes bloomBreathe {
  0%, 100% { transform: scale(1) rotate(-.6deg); }
  50%      { transform: scale(1.035) rotate(.6deg); }
}
@keyframes plantSway {
  0%, 100% { transform: rotate(-2.6deg) translateX(-1.5px); }
  50%      { transform: rotate(2.6deg) translateX(1.5px); }
}
.plant {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: plantSway 7s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.layer-far  { opacity: .3; }
.layer-mid  { opacity: .68; }
.layer-near { opacity: 1; filter: drop-shadow(0 0 7px rgba(232, 75, 61, .35)); }

/* ------------------------------------------------------------
   3. 薄檐与导航
   ------------------------------------------------------------ */
.eaves { position: absolute; top: 0; left: 0; right: 0; height: 26px; z-index: 12; pointer-events: none; }
.eaves svg { width: 100%; height: 100%; display: block; }
.eave-fill { fill: var(--ink-4); opacity: .75; }
.eave-edge { stroke: var(--ink-3); stroke-width: 1; opacity: .5; }
html[data-theme="dark"] .eave-fill { opacity: .35; }

.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line-soft); background: var(--paper); }
.site-nav { display: flex; align-items: center; gap: 26px; min-height: 78px; }
.site-title { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; font-family: var(--font-serif); font-size: 19px; font-weight: 700; letter-spacing: .14em; color: var(--ink-1); }
.title-seal {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border-radius: 6px; background: var(--petal); color: #FFF6EC;
  font-size: 12px; letter-spacing: .04em; line-height: 1.15; text-align: center;
  box-shadow: 0 4px 14px rgba(179, 50, 43, .28); transform: rotate(-4deg);
}
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-link { position: relative; display: inline-block; padding: 10px 15px; font-size: 15px; letter-spacing: .12em; color: var(--ink-3); transition: color .25s ease; }
.nav-link::after {
  content: ''; position: absolute; left: 50%; bottom: 4px; width: 0; height: 2px;
  background: var(--petal); border-radius: 2px; transform: translateX(-50%);
  transition: width .3s ease; opacity: .8;
}
.nav-link:hover, .nav-link.active { color: var(--ink-1); }
.nav-link:hover::after, .nav-link.active::after { width: 18px; }
.nav-tools { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.weather-toggle, .theme-toggle {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--line); border-radius: 50%; background: transparent;
  color: var(--ink-3); transition: all .25s ease;
}
.weather-toggle:hover, .theme-toggle:hover { border-color: var(--petal); color: var(--petal); transform: translateY(-2px); }
.weather-glyph { font-family: var(--font-serif); font-size: 15px; font-weight: 700; }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.theme-toggle .icon-sun, html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* ------------------------------------------------------------
   4. 首屏：墨夜花田（恒暗，与正文纸色形成对照）
   ------------------------------------------------------------ */
.hero {
  --hero-petal: color-mix(in srgb, var(--accent, #B3322B) 76%, #FF7A5C);
  --petal: var(--hero-petal);
  --petal-deep: #8E201C;
  --filament: #F2C979;
  --glow: #FFD994;
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: 720px;
  height: 88vh;
  max-height: 940px;
  overflow: hidden;
  isolation: isolate;
  color: #F1EADB;
  background:
    radial-gradient(ellipse 70% 55% at 74% 18%, rgba(58, 96, 108, .42), transparent 70%),
    linear-gradient(180deg, #0A1318 0%, #11232B 45%, #193038 76%, #0B151A 100%);
}
.hero-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-sky::before {
  content: ''; position: absolute; inset: 0 0 32% 0;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 22%, rgba(255,255,255,.55) 50%, transparent),
    radial-gradient(1px 1px at 26% 12%, rgba(255,255,255,.4) 50%, transparent),
    radial-gradient(1.4px 1.4px at 38% 30%, rgba(255,255,255,.35) 50%, transparent),
    radial-gradient(1px 1px at 56% 14%, rgba(255,255,255,.45) 50%, transparent),
    radial-gradient(1.2px 1.2px at 63% 34%, rgba(255,255,255,.3) 50%, transparent),
    radial-gradient(1px 1px at 88% 9%, rgba(255,255,255,.4) 50%, transparent),
    radial-gradient(1.3px 1.3px at 94% 40%, rgba(255,255,255,.3) 50%, transparent),
    radial-gradient(1px 1px at 8% 46%, rgba(255,255,255,.28) 50%, transparent);
  opacity: .8;
}
.hero-moon { position: absolute; top: 12%; right: 15%; width: 128px; height: 128px; border-radius: 50%; }
.hero-moon::before {
  content: ''; position: absolute; inset: -70px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 233, 212, .19) 0%, rgba(242, 233, 212, .07) 36%, transparent 70%);
  animation: moonBreath 8s ease-in-out infinite;
}
.hero-moon span {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #FBF5E6 0%, #E7DCC4 52%, #C9BFA9 100%);
  box-shadow: 0 0 42px rgba(242, 233, 212, .38); opacity: .92;
}
.hero-moon span::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 68% 66%, rgba(160, 152, 132, .22), transparent 42%);
}
@keyframes moonBreath { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.12); opacity: 1; } }

.hero-hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 52%; }
.hero-hills .hill-far { fill: #17323C; opacity: .72; }
.hero-hills .hill-mid { fill: #10252D; opacity: .9; }
.hero-fog { position: absolute; inset: 0; overflow: hidden; }
.hero-fog span {
  position: absolute; left: -40%; width: 180%; height: 90px; border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(178, 204, 206, .11) 30%, rgba(178, 204, 206, .16) 55%, transparent);
  filter: blur(14px); animation: fogDrift 26s linear infinite;
}
.hero-fog span:nth-child(1) { top: 38%; animation-duration: 30s; }
.hero-fog span:nth-child(2) { top: 55%; animation-duration: 38s; animation-direction: reverse; opacity: .7; }
.hero-fog span:nth-child(3) { top: 68%; animation-duration: 46s; opacity: .55; }
@keyframes fogDrift { 0% { transform: translateX(-12%); } 50% { transform: translateX(12%); } 100% { transform: translateX(-12%); } }
.hero-water {
  position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background: linear-gradient(180deg, transparent, rgba(9, 26, 32, .8));
  border-top: 1px solid rgba(180, 210, 210, .08);
}
.hero-water::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(190, 215, 214, .05) 0 1px, transparent 1px 13px);
  animation: waterShift 9s linear infinite;
}
@keyframes waterShift { to { transform: translateY(13px); } }

.hero-inner {
  position: relative; z-index: 4; display: flex; align-items: flex-start; justify-content: space-between;
  gap: 40px; width: 100%; max-width: 1180px; height: 100%; margin: 0 auto; padding: 0 28px;
  pointer-events: none;
}
.hero-inner a { pointer-events: auto; }
.hero-copy { padding-top: clamp(104px, 15vh, 172px); max-width: 620px; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 26px; font-size: 13px; letter-spacing: .42em; color: rgba(226, 214, 192, .68); }
.eyebrow-line { display: inline-block; width: 42px; height: 1px; background: linear-gradient(90deg, var(--petal), transparent); }
.hero-title {
  margin: 0; font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(58px, 8.2vw, 108px); line-height: 1.18; letter-spacing: .16em;
  color: #F5EEDF; text-shadow: 0 6px 40px rgba(232, 75, 61, .24), 0 2px 8px rgba(0, 0, 0, .35);
  animation: heroRise .9s cubic-bezier(.2,.7,.3,1) both;
}
.hero-subtitle {
  margin: 20px 0 0; font-family: var(--font-serif); font-size: clamp(17px, 2vw, 23px);
  letter-spacing: .3em; color: rgba(240, 230, 210, .82);
  animation: heroRise .9s .12s cubic-bezier(.2,.7,.3,1) both;
}
.hero-note {
  margin: 34px 0 0; padding-left: 18px; border-left: 1px solid rgba(226, 214, 192, .24);
  font-size: 14.5px; line-height: 2.15; letter-spacing: .08em; color: rgba(206, 214, 208, .72);
  animation: heroRise .9s .24s cubic-bezier(.2,.7,.3,1) both;
}
.hero-scroll {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 54px;
  font-size: 12.5px; letter-spacing: .34em; color: rgba(226, 214, 192, .72);
  animation: heroRise .9s .36s cubic-bezier(.2,.7,.3,1) both;
}
.hero-scroll span { position: relative; display: block; width: 1px; height: 44px; background: rgba(226, 214, 192, .22); overflow: hidden; }
.hero-scroll span::after { content: ''; position: absolute; top: -50%; left: 0; width: 1px; height: 50%; background: var(--petal); animation: scrollLine 2.2s ease-in-out infinite; }
@keyframes scrollLine { 0% { transform: translateY(0); } 100% { transform: translateY(300%); } }
@keyframes heroRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-inscription {
  margin: clamp(120px, 18vh, 200px) 12px 0 0; padding: 0 0 0 18px;
  writing-mode: vertical-rl; font-family: var(--font-serif); font-size: 15px;
  letter-spacing: .42em; line-height: 2; color: rgba(240, 230, 210, .55);
  border-left: 1px solid rgba(226, 214, 192, .18);
  animation: heroRise 1s .5s cubic-bezier(.2,.7,.3,1) both;
}

.hero-field {
  position: absolute; left: 0; right: 0; bottom: 0; height: 66%; z-index: 2;
  transform: translate(var(--px, 0px), var(--py, 0px));
  transition: transform .55s cubic-bezier(.2,.7,.3,1);
  pointer-events: none;
}
.hero-field svg { display: block; width: 100%; height: 100%; }
/* 变量写在 use 上，确保克隆进 shadow tree 的花瓣吃到首屏亮朱 */
.hero-field .plant {
  --petal: var(--hero-petal);
  --petal-deep: #8E201C;
  --filament: #F2C979;
  --glow: #FFD994;
}
.field-ground .ground-line { fill: none; stroke: rgba(8, 22, 26, .9); stroke-width: 3; }
.field-ground .grass { fill: none; stroke: #0E242A; stroke-width: 2.2; stroke-linecap: round; opacity: .9; }
.hero-field .layer-far { opacity: .34; }
.hero-field .layer-mid { opacity: .72; }
.hero-field .layer-near { filter: drop-shadow(0 0 10px rgba(232, 75, 61, .42)); }
.hero-veil {
  position: absolute; left: 0; right: 0; bottom: 0; height: 110px; z-index: 5; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--paper) 55%, transparent) 58%, var(--paper) 100%);
}
.hero-fireflies { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }

/* ------------------------------------------------------------
   5. 花事粒子
   ------------------------------------------------------------ */
.sky-weather { position: fixed; inset: 0; z-index: 40; overflow: hidden; pointer-events: none; opacity: .42; }
/* 首页有花田作主景，粒子全开；文章与内页以读字为先，压到四成 */
body:has(.hero) .sky-weather { opacity: 1; }
.petal-fall {
  position: absolute; top: -10vh; width: var(--sz, 15px); height: calc(var(--sz, 15px) * 1.55);
  background: linear-gradient(148deg, #F4775B 0%, var(--petal) 52%, #7C1F1B 100%);
  border-radius: 72% 6% 72% 6%;
  box-shadow: 0 0 8px rgba(232, 75, 61, .35);
  animation: petalDrift linear infinite;
  transform: rotate(var(--hue, 0deg));
}
.petal-fall::after {
  content: ''; position: absolute; left: 46%; top: 92%; width: 1px; height: 20px;
  background: linear-gradient(var(--glow), transparent); transform: rotate(14deg); transform-origin: top;
}
@keyframes petalDrift {
  0%   { transform: translate3d(0, -12vh, 0) rotate(0deg); }
  25%  { transform: translate3d(7vw, 24vh, 0) rotate(150deg); }
  50%  { transform: translate3d(-5vw, 52vh, 0) rotate(300deg); }
  75%  { transform: translate3d(9vw, 80vh, 0) rotate(450deg); }
  100% { transform: translate3d(-2vw, 112vh, 0) rotate(600deg); }
}
.firefly {
  position: absolute; bottom: -6vh; width: var(--fs, 3px); height: var(--fs, 3px);
  border-radius: 50%; background: var(--glow);
  box-shadow: 0 0 9px 2px rgba(255, 214, 138, .55);
  animation: flyRise linear infinite;
}
@keyframes flyRise {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  16%  { opacity: .9; }
  50%  { transform: translate3d(3vw, -34vh, 0); opacity: .7; }
  84%  { opacity: .35; }
  100% { transform: translate3d(-2vw, -68vh, 0); opacity: 0; }
}
.drop-rain {
  position: absolute; top: -8vh; width: 1px;
  background: linear-gradient(180deg, transparent, var(--ink-3));
  animation: rainFall linear infinite;
}
@keyframes rainFall { to { transform: translate3d(-3vw, 118vh, 0); } }
.drop-osmanthus {
  position: absolute; top: -6vh; border-radius: 50% 50% 50% 8%;
  width: 1em; height: 1em; background: var(--glow);
  box-shadow: 0 0 6px rgba(240, 196, 107, .5);
  animation: osmFall linear infinite;
}
@keyframes osmFall {
  0%   { transform: translate3d(0, -8vh, 0) rotate(0); }
  50%  { transform: translate3d(6vw, 54vh, 0) rotate(220deg); }
  100% { transform: translate3d(-3vw, 112vh, 0) rotate(440deg); }
}

/* ------------------------------------------------------------
   6. 章节标题与文章列表
   ------------------------------------------------------------ */
.site-main { flex: 1 0 auto; padding-bottom: 90px; }
.section-head {
  display: flex; align-items: center; gap: 18px; margin: 78px 0 34px;
  scroll-margin-top: 90px;
}
.section-flower { width: 42px; height: 42px; flex: 0 0 auto; opacity: .85; transform: rotate(-14deg); }
.section-flower .m-petal-shape { fill: var(--petal); }
.section-title { margin: 0; font-family: var(--font-serif); font-size: 27px; font-weight: 700; letter-spacing: .22em; color: var(--ink-1); }
.section-rule { flex: 1 1 auto; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.section-count { font-size: 13px; letter-spacing: .16em; color: var(--ink-3); white-space: nowrap; }

.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: post; }
.post-card {
  position: relative; display: flex; align-items: stretch; gap: 26px;
  padding: 30px 34px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 3px;
  box-shadow: var(--shadow-1);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease, border-color .35s ease;
  counter-increment: post;
}
.post-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--petal), transparent);
  opacity: 0; transition: opacity .35s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--petal) 32%, var(--line)); }
.post-card:hover::before { opacity: 1; }
.post-index {
  position: absolute; right: 26px; top: 16px; font-family: var(--font-serif);
  font-size: 13px; letter-spacing: .1em; color: var(--ink-4);
}
.post-index::before { content: counter(post, decimal-leading-zero); }
.post-cover-link { flex: 0 0 208px; align-self: stretch; overflow: hidden; border-radius: 2px; }
.post-cover { display: block; width: 100%; height: 100%; min-height: 150px; object-fit: cover; transition: transform .6s ease; }
.post-card:hover .post-cover { transform: scale(1.06); }
.post-content { position: relative; z-index: 2; flex: 1 1 auto; min-width: 0; padding-right: 40px; }
.post-title { margin: 2px 0 12px; font-family: var(--font-serif); font-size: 24px; font-weight: 700; line-height: 1.5; letter-spacing: .05em; }
.post-title a { color: var(--ink-1); transition: color .25s ease; }
.post-card:hover .post-title a { color: var(--petal); }
.post-pinned { display: inline-block; margin-right: 10px; padding: 2px 9px; border: 1px solid var(--petal); border-radius: 2px; font-size: 11px; letter-spacing: .1em; color: var(--petal); vertical-align: 3px; }
.post-excerpt { margin: 0 0 18px; font-size: 15px; line-height: 1.95; color: var(--ink-3); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 13px; letter-spacing: .06em; color: var(--ink-3); }
.post-meta-item:not(:last-child)::after { content: '·'; margin-left: 18px; color: var(--ink-4); }
a.post-meta-item:hover { color: var(--petal); }
.post-flower {
  position: absolute; right: -14px; bottom: -30px; width: 170px; height: 150px;
  opacity: .07; transform: rotate(18deg); transition: opacity .45s ease, transform .6s ease;
  pointer-events: none;
}
.post-card:hover .post-flower { opacity: .2; transform: rotate(8deg) scale(1.06); }
.post-brush { position: absolute; left: 34px; bottom: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--petal), transparent); transition: width .5s ease; }
.post-card:hover .post-brush { width: 120px; }

.pagination { display: flex; justify-content: center; gap: 14px; margin: 48px 0 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 118px;
  padding: 10px 24px; border: 1px solid var(--line); border-radius: 2px;
  font-family: var(--font-serif); font-size: 15px; letter-spacing: .14em;
  transition: all .25s ease;
}
.btn-primary { background: var(--petal); border-color: var(--petal); color: #FFF7EE; }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--ink-2); }
.btn-secondary:hover { border-color: var(--petal); color: var(--petal); transform: translateY(-2px); }
.empty-tip { padding: 76px 0; text-align: center; font-family: var(--font-serif); font-size: 18px; letter-spacing: .2em; color: var(--ink-3); }

/* ------------------------------------------------------------
   7. 文章页
   ------------------------------------------------------------ */
.article { max-width: 820px; margin: 0 auto; padding: 66px 0 20px; }
.article-header { position: relative; padding-bottom: 40px; margin-bottom: 46px; border-bottom: 1px solid var(--line-soft); }
.article-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font-size: 13px; letter-spacing: .32em; color: var(--petal); }
.article-eyebrow span { width: 26px; height: 1px; background: var(--petal); }
.article-title { margin: 0 0 22px; font-family: var(--font-serif); font-size: clamp(32px, 4.6vw, 48px); font-weight: 700; line-height: 1.45; letter-spacing: .06em; color: var(--ink-1); }
.article-brush { display: block; width: 84px; height: 4px; margin: 0 0 26px; border-radius: 4px; background: linear-gradient(90deg, var(--petal), color-mix(in srgb, var(--petal) 12%, transparent)); transform: rotate(-1.2deg); }
.article-header .post-meta { justify-content: flex-start; }
.article-taxonomy { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.article-cat, .article-tag { padding: 4px 13px; border: 1px solid var(--line); border-radius: 2px; font-size: 12.5px; letter-spacing: .08em; color: var(--ink-3); transition: all .25s ease; }
.article-cat { border-color: color-mix(in srgb, var(--petal) 42%, var(--line)); color: var(--petal); }
.article-cat:hover, .article-tag:hover { border-color: var(--petal); color: var(--petal); }
.article-flower { position: absolute; right: -8px; top: -46px; width: 120px; height: 110px; opacity: .12; transform: rotate(22deg); pointer-events: none; }

.article-body { font-size: 17px; line-height: 2.1; color: var(--ink-2); overflow-wrap: anywhere; }
.article-body p { margin: 0 0 1.5em; }
.article-body h2, .article-body h3, .article-body h4 {
  margin: 2.2em 0 .9em; font-family: var(--font-serif); font-weight: 700; color: var(--ink-1); letter-spacing: .05em;
}
.article-body h2 { font-size: 27px; padding-left: 16px; border-left: 3px solid var(--petal); }
.article-body h3 { font-size: 22px; }
.article-body h4 { font-size: 18px; }
.article-body a { color: var(--petal); border-bottom: 1px solid color-mix(in srgb, var(--petal) 40%, transparent); }
.article-body a:hover { border-bottom-color: var(--petal); }
.article-body strong { color: var(--ink-1); }
.article-body blockquote {
  position: relative; margin: 2em 0; padding: 18px 24px 18px 30px;
  background: var(--card); border-left: 2px solid var(--petal); color: var(--ink-3);
  font-family: var(--font-serif); font-size: 16.5px;
}
.article-body blockquote::before {
  content: ''; position: absolute; left: -1px; top: -10px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--petal); opacity: .65;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--petal) 16%, transparent);
}
.article-body img { display: block; margin: 2em auto; border-radius: 2px; box-shadow: var(--shadow-1); }
.article-body ul, .article-body ol { padding-left: 1.6em; margin: 0 0 1.5em; }
.article-body li { margin: .4em 0; }
.article-body code { padding: 2px 6px; background: var(--card-soft); border-radius: 2px; font-size: .88em; color: var(--petal); }
.article-body pre { padding: 20px 22px; overflow-x: auto; background: var(--card-soft); border-radius: 2px; line-height: 1.7; }
.article-body pre code { padding: 0; background: none; color: var(--ink-2); }
.article-body hr { margin: 3em 0; border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.article-body table { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: 15px; }
.article-body th, .article-body td { padding: 10px 14px; border: 1px solid var(--line); }
.article-body th { background: var(--card-soft); color: var(--ink-1); }

.article-end { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 68px 0 52px; color: var(--ink-3); font-family: var(--font-serif); font-size: 14px; letter-spacing: .4em; }
.article-end span { width: 72px; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.article-end span:last-child { transform: rotate(180deg); }
.article-end svg { width: 46px; height: 44px; opacity: .85; }
.article-nav { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.article-nav a { max-width: 48%; font-family: var(--font-serif); font-size: 15px; color: var(--ink-3); transition: color .25s ease; overflow-wrap: anywhere; }
.article-nav a:hover { color: var(--petal); }
.article-nav-prev { margin-right: auto; text-align: left; }
.article-nav-next { margin-left: auto; text-align: right; }
.m-petal-group { transform-origin: 60px 66px; }
.article-comment { margin-top: 54px; }

/* ------------------------------------------------------------
   8. 归档 / 分类 / 标签 / 友链 / 错误页
   ------------------------------------------------------------ */
.page-head { position: relative; padding: 64px 0 40px; margin-bottom: 36px; border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.page-head::after {
  content: ''; position: absolute; right: 6px; top: 10px; width: 120px; height: 120px;
  background: radial-gradient(circle, color-mix(in srgb, var(--petal) 12%, transparent), transparent 68%);
  pointer-events: none;
}
.page-title { margin: 0 0 12px; font-family: var(--font-serif); font-size: clamp(34px, 5vw, 54px); font-weight: 700; letter-spacing: .18em; color: var(--ink-1); }
.page-desc { margin: 0; font-size: 15px; letter-spacing: .1em; color: var(--ink-3); }

.term-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.term-card {
  position: relative; display: block; min-height: 118px; padding: 24px 26px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 3px;
  box-shadow: var(--shadow-1); transition: all .3s ease;
}
.term-card::after { content: ''; position: absolute; right: -26px; bottom: -34px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--petal) 22%, transparent), transparent 70%); transition: transform .4s ease; }
.term-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--petal) 35%, var(--line)); box-shadow: var(--shadow-2); }
.term-card:hover::after { transform: scale(1.4); }
.term-name { position: relative; z-index: 1; display: block; font-family: var(--font-serif); font-size: 21px; font-weight: 700; color: var(--ink-1); letter-spacing: .08em; }
.term-card:hover .term-name { color: var(--petal); }
.term-desc { position: relative; z-index: 1; display: block; margin-top: 8px; font-size: 14px; color: var(--ink-3); }
.term-count { position: absolute; z-index: 1; right: 22px; top: 20px; font-size: 13px; color: var(--ink-4); }

.archive-year { margin: 0 0 44px; }
.archive-year-title { margin: 0 0 22px; font-family: var(--font-serif); font-size: 32px; letter-spacing: .16em; color: var(--petal); }
.archive-month { margin-bottom: 24px; }
.archive-month-title { margin: 0 0 12px; font-family: var(--font-serif); font-size: 19px; color: var(--ink-1); letter-spacing: .1em; }
.archive-list { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 1px solid var(--line); }
.archive-list li { position: relative; padding: 9px 0 9px 22px; }
.archive-list li::before { content: ''; position: absolute; left: -22px; top: 20px; width: 7px; height: 7px; border-radius: 50%; background: var(--petal); opacity: .6; }
.archive-list a { font-size: 16px; color: var(--ink-2); transition: color .25s ease; }
.archive-list a:hover { color: var(--petal); }
.archive-date { margin-right: 14px; font-size: 13px; color: var(--ink-3); }

.link-group { margin-bottom: 44px; }
.link-group-title { margin: 0 0 20px; font-family: var(--font-serif); font-size: 21px; letter-spacing: .14em; color: var(--ink-1); }
.link-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.link-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 3px; transition: all .3s ease; }
.link-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--petal) 35%, var(--line)); box-shadow: var(--shadow-2); }
.link-logo { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; background: var(--card-soft); }
.link-name { display: block; font-family: var(--font-serif); font-size: 16px; color: var(--ink-1); }
.link-desc { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; }

.error-page { padding: 96px 0 110px; text-align: center; }
.error-code { display: block; font-family: var(--font-serif); font-size: clamp(80px, 14vw, 160px); line-height: 1; color: var(--petal); opacity: .22; letter-spacing: .1em; }
.error-title { margin: -18px 0 14px; font-family: var(--font-serif); font-size: 30px; letter-spacing: .2em; color: var(--ink-1); }
.error-desc { margin: 0 0 34px; color: var(--ink-3); letter-spacing: .1em; }

/* ------------------------------------------------------------
   9. 页脚
   ------------------------------------------------------------ */
.site-footer { position: relative; margin-top: auto; padding: 0 0 34px; overflow: hidden; border-top: 1px solid var(--line-soft); }
.footer-scene { position: absolute; left: 0; right: 0; bottom: 0; height: 260px; opacity: .9; pointer-events: none; }
.footer-scene svg { display: block; width: 100%; height: 100%; }
/* 花冠原本贴着 viewBox 底边被切掉一半，整丛上提 */
.footer-scene .footer-field { transform: translateY(-62px); }
.footer-scene .hill-far { fill: color-mix(in srgb, var(--ink-3) 22%, transparent); }
.footer-scene .hill-near { fill: color-mix(in srgb, var(--ink-3) 15%, transparent); }
.footer-scene .layer-far { opacity: .24; }
.footer-scene .layer-mid { opacity: .5; }
.footer-scene .layer-near { opacity: .76; }
.footer-content { position: relative; z-index: 2; padding-top: 56px; text-align: center; isolation: isolate; }
/* 文案区柔化衬底：让诗句与备案号在花田上仍清晰 */
.footer-content::before {
  content: ''; position: absolute; left: 50%; top: 34px; width: min(820px, 94%); height: 170px;
  transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center,
    color-mix(in srgb, var(--paper) 95%, transparent) 0%,
    color-mix(in srgb, var(--paper) 82%, transparent) 52%,
    transparent 78%);
}
.footer-flower { display: block; width: 54px; height: 50px; margin: 0 auto 18px; opacity: .9; }
.footer-poetry { margin: 0 0 16px; font-family: var(--font-serif); font-size: 17px; letter-spacing: .24em; color: var(--ink-1); }
.footer-info { margin: 0; font-size: 13px; letter-spacing: .06em; color: var(--ink-2); }
.footer-info a { color: var(--ink-1); }
.footer-info a:hover { color: var(--petal); }
.footer-divider { margin: 0 8px; color: var(--ink-4); }
.footer-beian { margin-top: 12px; font-size: 12.5px; color: var(--ink-2); }
.footer-beian a { color: var(--ink-2); }
.footer-beian a:hover { color: var(--petal); }
.footer-beian img { vertical-align: middle; }

/* ------------------------------------------------------------
   10. 交互反馈：朱晕、入场
   ------------------------------------------------------------ */
.ripple-layer { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.ripple {
  position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border: 1px solid var(--petal); border-radius: 50%; opacity: .7;
  animation: rippleOut 1.05s ease-out forwards;
}
.ripple::after { content: ''; position: absolute; inset: 6px; border: 1px solid var(--petal); border-radius: 50%; animation: rippleOut 1.05s .12s ease-out forwards; }
@keyframes rippleOut { to { transform: scale(9); opacity: 0; } }
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.revealed { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }

/* ------------------------------------------------------------
   11. 响应式
   ------------------------------------------------------------ */
@media (max-width: 980px) {
  .hero { min-height: 660px; height: 80vh; }
  .hero-inscription { display: none; }
  .hero-copy { max-width: 100%; }
  .post-cover-link { flex-basis: 160px; }
  .article-flower { right: 0; opacity: .08; }
}
@media (max-width: 768px) {
  .site-nav { flex-wrap: wrap; gap: 8px 14px; padding: 12px 0 14px; }
  .site-title { font-size: 17px; }
  .nav-menu { order: 3; width: 100%; margin: 0; justify-content: flex-start; flex-wrap: wrap; gap: 0 4px; }
  .nav-link { padding: 8px 9px; font-size: 14px; }
  .nav-tools { margin-left: auto; }
  .hero { min-height: 620px; height: 78vh; }
  .hero-copy { padding-top: 92px; }
  .hero-title { font-size: clamp(46px, 12vw, 72px); letter-spacing: .1em; }
  .hero-subtitle { letter-spacing: .18em; }
  .hero-field { height: 56%; }
  .hero-moon { width: 92px; height: 92px; top: 9%; right: 9%; }
  .section-head { margin: 54px 0 26px; }
  .post-card { flex-direction: column; gap: 16px; padding: 24px 22px; }
  .post-cover-link { flex: 0 0 auto; width: 100%; }
  .post-cover { height: 190px; }
  .post-content { padding-right: 0; }
  .post-title { font-size: 21px; }
  .post-flower { width: 130px; height: 116px; }
  .article { padding: 44px 0 10px; }
  .article-header { padding-bottom: 28px; margin-bottom: 32px; }
  .article-body { font-size: 16px; }
  .footer-scene { height: 170px; }
}
@media (max-width: 480px) {
  .site-container { padding: 0 18px; }
  .hero-inner { padding: 0 18px; }
  .hero-note { font-size: 13px; }
  .hero-scroll { margin-top: 32px; }
  .section-title { font-size: 23px; }
  .term-list, .link-list { grid-template-columns: 1fr; }
  .article-nav { flex-direction: column; }
  .article-nav a { max-width: 100%; }
  .article-nav-next { margin-left: 0; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .sky-weather, .hero-fireflies { display: none; }
  .reveal { opacity: 1; transform: none; }
}
