
/* =========================================================
   我的手记 · 个人博客
   A warm, quiet personal blog. Single-file edition.
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #f7f2f7;
  --bg-soft: #f2eaf3;
  --bg-deep: #e9dff0;
  --surface: #fdfaff;
  --surface-2: #f7effa;
  --ink: #2f2638;
  --ink-soft: #65586d;
  --muted: #786880;
  --line: rgba(82, 60, 94, .13);
  --line-strong: rgba(82, 60, 94, .24);
  --peach: #9c79d6;
  --peach-deep: #7e56bd;
  --peach-soft: #e7daf7;
  --rose: #e5a1ba;
  --sage: #92a3c6;
  --sage-deep: #6c7fab;
  --butter: #eccd92;
  --sky: #a8b9d5;
  --shadow-sm: 0 10px 28px rgba(66, 45, 82, .08);
  --shadow: 0 22px 55px rgba(66, 45, 82, .13);
  --shadow-lg: 0 36px 80px rgba(66, 45, 82, .16);
  --serif: "Iowan Old Style", "Palatino Linotype", "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --latin: "Didot", "Bodoni 72", "Iowan Old Style", "Times New Roman", Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 68px;
  --radius: 24px;
  --hero-image: url("hero.jpg");
  --hero-image-modern: image-set(url("hero-1920.avif") type("image/avif"), url("hero-1920.webp") type("image/webp"), url("hero-1920.jpg") type("image/jpeg"));
}

html[data-theme="dark"] {
  --bg: #18131f;
  --bg-soft: #1e1827;
  --bg-deep: #261e31;
  --surface: #241d2d;
  --surface-2: #2c2436;
  --ink: #f4ecf7;
  --ink-soft: #cec0d4;
  --muted: #9b8ca7;
  --line: rgba(244, 236, 247, .12);
  --line-strong: rgba(244, 236, 247, .22);
  --peach: #b492e6;
  --peach-deep: #a17bdd;
  --peach-soft: #3a2c4b;
  --rose: #dfa0b7;
  --sage: #93a1c9;
  --sage-deep: #7587b2;
  --butter: #ddc182;
  --sky: #8fa3c5;
  --shadow-sm: 0 10px 28px rgba(0, 0, 0, .18);
  --shadow: 0 22px 55px rgba(0, 0, 0, .26);
  --shadow-lg: 0 36px 80px rgba(0, 0, 0, .32);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 40% at 12% 4%, rgba(156, 121, 214, .10), transparent 60%),
    radial-gradient(ellipse 60% 38% at 92% 22%, rgba(229, 161, 186, .09), transparent 62%),
    var(--bg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .55s var(--ease), color .55s var(--ease);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(ellipse 70% 40% at 12% 4%, rgba(156, 121, 214, .08), transparent 60%),
    radial-gradient(ellipse 60% 38% at 92% 22%, rgba(229, 161, 186, .06), transparent 62%),
    var(--bg);
}

body.menu-open { overflow: hidden; }
body.menu-open .music-float, body.menu-open .back-top { opacity: 0; visibility: hidden; pointer-events: none; }

::selection { background: var(--peach); color: #fffaf4; }
html[data-theme="dark"] ::selection { background: var(--peach-deep); color: #211c1a; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--peach-soft);
  border: 3px solid var(--bg);
  border-radius: 10px;
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #5c473d; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, h4, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--peach-deep); outline-offset: 4px; border-radius: 4px; }

.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 300;
  padding: 10px 18px; border-radius: 999px;
  background: var(--peach-deep); color: #fffaf4;
  transform: translateY(-180%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- paper texture / ambient ---------- */
.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 24;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.76' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  background-size: 190px 190px;
  mix-blend-mode: multiply;
}
html[data-theme="dark"] .paper-grain { opacity: .06; mix-blend-mode: soft-light; }

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ambient .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .24;
  animation: blobFloat 22s ease-in-out infinite alternate;
}
.ambient .blob-a {
  width: 42vw; height: 42vw; min-width: 360px; min-height: 360px;
  left: -13%; top: 18%;
  background: radial-gradient(circle, rgba(140, 101, 203, .42), transparent 68%);
}
.ambient .blob-b {
  width: 38vw; height: 38vw; min-width: 320px; min-height: 320px;
  right: -12%; top: 52%;
  background: radial-gradient(circle, rgba(89, 111, 181, .38), transparent 68%);
  animation-delay: -8s;
}
.ambient .blob-c {
  width: 30vw; height: 30vw; min-width: 260px; min-height: 260px;
  left: 55%; top: -8%;
  background: radial-gradient(circle, rgba(225, 139, 183, .32), transparent 68%);
  animation-delay: -14s;
}
html[data-theme="dark"] .ambient .blob { opacity: .14; }
@keyframes blobFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(4vw, -5vh, 0) scale(1.12); }
}

#petalCanvas {
  position: fixed;
  inset: 0;
  z-index: 40;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  left: 0; top: 0;
  z-index: 90;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
}
.cursor-dot {
  width: 5px; height: 5px;
  background: var(--peach-deep);
  box-shadow: 0 0 0 3px rgba(160, 124, 219, .14);
  transition: opacity .25s, background-color .3s;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid rgba(160, 124, 219, .55);
  transition: width .35s var(--ease), height .35s var(--ease), background-color .35s, border-color .35s, opacity .25s;
}
.cursor-ring::after {
  content: attr(data-label);
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px;
  letter-spacing: .08em;
  color: var(--peach-deep);
  opacity: 0;
  transition: opacity .25s;
  white-space: nowrap;
}
body.cursor-on .cursor-dot, body.cursor-on .cursor-ring { opacity: 1; }
body.cursor-hover .cursor-ring {
  width: 52px; height: 52px;
  background: rgba(160, 124, 219, .11);
  border-color: rgba(160, 124, 219, .82);
}
body.cursor-label .cursor-ring { width: 58px; height: 58px; background: rgba(255, 250, 244, .72); }
body.cursor-label .cursor-ring::after { opacity: 1; }
body.cursor-down .cursor-ring { width: 24px; height: 24px; background: rgba(160, 124, 219, .18); }
html[data-theme="dark"] body.cursor-label .cursor-ring { background: rgba(44, 37, 34, .78); }
@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}
html.cursor-ready, html.cursor-ready a, html.cursor-ready button { cursor: none; }

/* ---------- layout ---------- */
.page { position: relative; z-index: 1; }
.container { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.section { position: relative; padding: 112px 0; }
.section + .section { border-top: 1px solid var(--line); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(247, 242, 247, .78);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(82, 60, 94, .08);
  transition: background-color .45s, box-shadow .45s, border-color .45s;
}
html[data-theme="dark"] .site-header { background: rgba(24, 19, 31, .80); border-bottom-color: rgba(244, 236, 247, .07); }
.site-header.scrolled {
  background: rgba(247, 242, 247, .93);
  box-shadow: 0 8px 32px rgba(66, 45, 82, .08);
}
html[data-theme="dark"] .site-header.scrolled { background: rgba(24, 19, 31, .95); box-shadow: 0 8px 32px rgba(0, 0, 0, .28); }
.nav-wrap {
  width: min(1240px, calc(100% - 64px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 29px; height: 29px; flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .10em;
  color: var(--ink);
}
.brand-name i { font-style: normal; color: var(--peach-deep); }
.brand-sub {
  margin-top: 2px;
  font-family: var(--sans);
  font-size: 7.5px;
  letter-spacing: .16em;
  color: var(--muted);
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  position: relative;
  padding: 9px 14px;
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color .3s, background-color .3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 3px;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--peach-deep);
  opacity: 0;
  transform: scale(0);
  transition: opacity .3s, transform .3s var(--ease);
}
.nav-link:hover { color: var(--ink); background: rgba(160, 124, 219, .09); }
.nav-link.active { color: var(--peach-deep); }
.nav-link.active::after { opacity: 1; transform: scale(1); }
.nav-actions { display: flex; align-items: center; gap: 7px; }
.round-btn {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  background: rgba(253, 250, 255, .42);
  transition: color .3s, border-color .3s, background-color .3s, transform .35s var(--ease);
}
html[data-theme="dark"] .round-btn { background: rgba(44, 37, 34, .4); }
.round-btn:hover { color: var(--peach-deep); border-color: var(--peach); background: rgba(160, 124, 219, .11); transform: translateY(-1px); }
.round-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun-icon { display: block; }
.theme-toggle .moon-icon { display: none; }
html[data-theme="dark"] .theme-toggle .sun-icon { display: none; }
html[data-theme="dark"] .theme-toggle .moon-icon { display: block; }
.menu-toggle { display: none; position: relative; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle i { display: block; width: 14px; height: 1px; background: var(--ink-soft); transition: transform .35s var(--ease), width .35s; }
.menu-toggle i:nth-child(2) { width: 9px; margin-left: 5px; }
body.menu-open .menu-toggle i:nth-child(1) { transform: translateY(3px) rotate(45deg); }
body.menu-open .menu-toggle i:nth-child(2) { width: 14px; margin-left: 0; transform: translateY(-3px) rotate(-45deg); }

/* ---------- mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 32px 40px;
  background: rgba(247, 242, 247, .96);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  clip-path: circle(0% at calc(100% - 42px) 34px);
  transition: clip-path .7s var(--ease), opacity .35s, visibility .55s;
}
html[data-theme="dark"] .mobile-menu { background: rgba(24, 19, 31, .97); }
body.menu-open .mobile-menu { opacity: 1; visibility: visible; clip-path: circle(150% at calc(100% - 42px) 34px); }
.mobile-menu-label { margin-bottom: 22px; font-family: var(--sans); font-size: 10px; letter-spacing: .18em; color: var(--muted); }
.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(2.4rem, 10vw, 3.5rem);
  line-height: 1.18;
  letter-spacing: -.03em;
  color: var(--ink);
  transition: color .3s, padding-left .4s var(--ease);
}
.mobile-nav a em { font-family: var(--latin); font-size: 10px; letter-spacing: .12em; color: var(--peach-deep); font-style: normal; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--peach-deep); padding-left: 8px; }
.mobile-menu-foot { margin-top: 34px; display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.mobile-menu-foot .small-flower { color: var(--peach); font-size: 16px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: clamp(480px, 68vh, 740px);
  margin-top: var(--header-h);
  overflow: hidden;
  background: var(--bg-deep);
}
.hero-art {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-image: var(--hero-image-modern);
  background-position: center 32%;
  background-size: cover;
  background-repeat: no-repeat;
  transform: translate3d(var(--hero-x, 0), var(--hero-y, 0), 0) scale(1.025);
  transition: transform 1.2s var(--ease);
  will-change: transform;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 11, 27, .10) 0%, transparent 38%, rgba(19, 12, 31, .12) 72%, var(--bg) 100%),
    radial-gradient(ellipse 58% 62% at 22% 28%, rgba(132, 98, 205, .12), transparent 62%);
  pointer-events: none;
}
html[data-theme="dark"] .hero-shade {
  background:
    linear-gradient(180deg, rgba(10, 7, 18, .12) 0%, transparent 40%, rgba(15, 10, 25, .24) 74%, var(--bg) 100%),
    radial-gradient(ellipse 58% 62% at 22% 28%, rgba(102, 73, 165, .12), transparent 62%);
}
html[data-theme="dark"] .hero-art { filter: brightness(.9) saturate(.94); }
.hero-badge {
  position: absolute;
  left: max(32px, calc((100% - 1180px) / 2));
  bottom: 38px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 9px 16px 9px 11px;
  border: 1px solid rgba(255, 250, 244, .5);
  border-radius: 999px;
  background: rgba(255, 250, 244, .6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(38, 22, 56, .2);
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
html[data-theme="dark"] .hero-badge { background: rgba(44, 37, 34, .58); color: var(--ink-soft); border-color: rgba(243, 233, 222, .18); }
.hero-badge .bloom {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--peach);
  color: #fffaf4;
}
.hero-badge .bloom svg { width: 12px; height: 12px; fill: currentColor; }
.hero-badge strong { font-weight: 500; letter-spacing: .1em; color: var(--ink); }
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(46, 31, 62, .82);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .16em;
}
html[data-theme="dark"] .hero-scroll { color: rgba(255, 250, 244, .7); }
.hero-scroll .line { width: 1px; height: 32px; background: linear-gradient(rgba(56,42,70,.48), transparent); position: relative; overflow: hidden; }
html[data-theme="dark"] .hero-scroll .line { background: linear-gradient(rgba(255,250,244,.5), transparent); }
.hero-scroll .line::after { content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: var(--peach-deep); animation: scrollDrop 2.6s var(--ease) infinite; }
@keyframes scrollDrop { 0% { top: -100%; } 65%, 100% { top: 100%; } }
.hero-word {
  position: absolute;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 42px;
  z-index: 2;
  font-family: var(--serif);
  font-style: normal;
  font-size: 21px;
  letter-spacing: .18em;
  color: rgba(255, 250, 244, .84);
  text-shadow: 0 2px 18px rgba(28, 14, 42, .38);
  transform: rotate(-4deg);
}
html[data-theme="light"] .hero-word { color: rgba(255, 250, 244, .92); }
@media (max-width: 760px) { .hero-word { display: none; } }

/* ---------- intro ---------- */
.intro {
  position: relative;
  padding: 0 0 86px;
  text-align: center;
}
.intro-avatar {
  position: relative;
  width: 108px;
  height: 108px;
  margin: -54px auto 24px;
  z-index: 2;
}
.avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(160, 124, 219, .42);
  animation: slowSpin 36s linear infinite;
}
@keyframes slowSpin { to { transform: rotate(360deg); } }
.avatar-ring::after {
  content: "";
  position: absolute;
  top: 50%; right: -4px;
  width: 6px; height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--sage-deep);
}
.avatar-disc {
  width: 100%; height: 100%;
  padding: 5px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(66, 45, 82, .17);
  position: relative;
  z-index: 1;
}
.avatar-disc svg { width: 100%; height: 100%; border-radius: 50%; }
.intro-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: .16em;
  color: var(--muted);
}
.intro-eyebrow::before, .intro-eyebrow::after { content: ""; width: 25px; height: 1px; background: var(--line-strong); }
.intro-title {
  max-width: 780px;
  margin: 20px auto 18px;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.045em;
  color: var(--ink);
}
.intro-title em {
  position: relative;
  font-style: normal;
  color: var(--peach-deep);
  white-space: nowrap;
}
.intro-title em::after {
  content: "";
  position: absolute;
  left: 2%; right: 2%;
  bottom: -2px;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8c38-6 74 1 110-2 28-2 51 1 86-2' fill='none' stroke='%23e9b6b2' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: .85;
}
.intro-copy {
  max-width: 560px;
  margin: 0 auto;
  font-size: 13.5px;
  line-height: 2;
  color: var(--ink-soft);
}
.intro-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.social-btn {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  background: var(--surface);
  transition: color .3s, border-color .3s, background-color .3s, transform .35s var(--ease);
}
.social-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.social-btn:hover { color: var(--peach-deep); border-color: var(--peach); background: var(--surface-2); transform: translateY(-2px); }
.intro-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 32px;
}
.intro-stat { padding: 0 28px; border-right: 1px solid var(--line); text-align: center; }
.intro-stat:last-child { border-right: 0; }
.intro-stat strong {
  display: block;
  font-family: var(--latin);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--ink);
}
.intro-stat span { display: block; margin-top: 7px; font-size: 9px; letter-spacing: .18em; color: var(--muted); }

/* ---------- section headings ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 46px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: .18em;
  color: var(--muted);
}
.kicker .num { color: var(--peach-deep); }
.kicker .rule { width: 30px; height: 1px; background: var(--line-strong); }
.section-title {
  margin-top: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.04em;
  color: var(--ink);
}
.section-title .flower { display: inline-block; margin-left: 8px; color: var(--peach); font-size: .55em; vertical-align: .3em; }
.section-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; padding-bottom: 7px; }
.section-note { max-width: 280px; text-align: right; font-size: 11.5px; line-height: 1.8; color: var(--muted); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-soft);
  transition: color .3s, border-color .3s;
}
.text-link:hover { color: var(--peach-deep); border-color: var(--peach); }
.text-link svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.text-link:hover svg { transform: translate(3px, -3px); }

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .95s var(--ease), transform .95s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- posts ---------- */
.posts { padding-top: 96px; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform .5s var(--ease), box-shadow .5s, border-color .4s;
  cursor: pointer;
}
.post-card:hover, .post-card:focus-visible {
  transform: translateY(-7px);
  border-color: rgba(160, 124, 219, .42);
  box-shadow: var(--shadow);
}
.post-cover {
  position: relative;
  aspect-ratio: 1.55 / 1;
  overflow: hidden;
  background: var(--bg-soft);
}
.post-cover svg { width: 100%; height: 100%; transition: transform 1.1s var(--ease); }
.post-card:hover .post-cover svg { transform: scale(1.055); }
.post-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(76, 52, 38, .15));
  pointer-events: none;
}
.post-cat {
  position: absolute;
  top: 13px; left: 13px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 250, 244, .55);
  background: rgba(255, 250, 244, .74);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 9px;
  letter-spacing: .12em;
  color: #5c486f;
}
html[data-theme="dark"] .post-cat { background: rgba(44, 37, 34, .7); border-color: rgba(243, 233, 222, .2); color: var(--ink-soft); }
.post-cover-date {
  position: absolute;
  right: 14px; bottom: 11px;
  z-index: 2;
  font-family: var(--latin);
  font-size: 9px;
  letter-spacing: .12em;
  color: rgba(255, 250, 244, .9);
  text-shadow: 0 1px 10px rgba(68, 44, 28, .3);
}
.post-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 19px; }
.post-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -.025em;
  color: var(--ink);
  transition: color .3s;
}
.post-card:hover .post-title { color: var(--peach-deep); }
.post-excerpt {
  margin-top: 9px;
  font-size: 11.5px;
  line-height: 1.85;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
}
.post-read { display: inline-flex; align-items: center; gap: 7px; font-family: var(--sans); font-size: 9px; letter-spacing: .08em; color: var(--muted); }
.post-read::before { content: ""; width: 15px; height: 1px; background: var(--line-strong); }
.post-arrow {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  transition: background-color .35s, color .35s, border-color .35s, transform .45s var(--ease);
}
.post-arrow svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.post-card:hover .post-arrow { background: var(--peach); border-color: var(--peach); color: #fffaf4; transform: rotate(45deg); }

/* ---------- gallery ---------- */
.gallery { background: linear-gradient(180deg, transparent, rgba(241, 233, 246, .7) 20%, rgba(241, 233, 246, .7) 80%, transparent); }
html[data-theme="dark"] .gallery { background: linear-gradient(180deg, transparent, rgba(32, 25, 42, .72) 20%, rgba(32, 25, 42, .72) 80%, transparent); }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: start; }
.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s;
}
.photo-card:nth-child(2) { margin-top: 28px; }
.photo-card:nth-child(4) { margin-top: 16px; }
.photo-card:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: var(--shadow); }
.photo-frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.photo-frame svg { width: 100%; height: 100%; transition: transform 1s var(--ease); }
.photo-card:hover .photo-frame svg { transform: scale(1.055); }
.photo-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(28, 16, 42, .34)); }
.photo-caption {
  position: absolute;
  left: 14px; right: 14px; bottom: 13px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 250, 244, .93);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-shadow: 0 1px 8px rgba(30, 18, 45, .36);
}
.photo-caption .photo-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--peach-soft); }
.photo-caption > span:first-child {
  padding: 4px 9px;
  border: 1px solid rgba(255, 250, 244, .16);
  border-radius: 999px;
  background: rgba(30, 18, 45, .3);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.photo-num {
  position: absolute;
  top: 13px; right: 14px;
  z-index: 2;
  font-family: var(--latin);
  font-size: 9px;
  letter-spacing: .1em;
  color: rgba(255, 250, 244, .8);
  text-shadow: 0 1px 8px rgba(30, 18, 45, .36);
}

/* ---------- about ---------- */
.about-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 64px;
  align-items: center;
}
.about-copy .kicker { margin-bottom: 14px; }
.about-title {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.045em;
}
.about-title em { font-style: normal; color: var(--peach-deep); }
.about-text { max-width: 520px; margin-top: 22px; font-size: 13px; line-height: 2.05; color: var(--ink-soft); }
.about-text + .about-text { margin-top: 12px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.about-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9.5px;
  letter-spacing: .06em;
  color: var(--ink-soft);
  background: rgba(255, 250, 244, .55);
}
html[data-theme="dark"] .about-tag { background: rgba(44, 37, 34, .55); }
.about-tag .hash { color: var(--peach-deep); font-family: var(--latin); }
.about-sign {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-style: normal;
  font-size: 17px;
  color: var(--ink-soft);
}
.about-sign::before { content: ""; width: 36px; height: 1px; background: var(--line-strong); }
.about-sign small { font-family: var(--sans); font-style: normal; font-size: 8.5px; letter-spacing: .16em; color: var(--muted); }
.about-visual { position: relative; padding: 12px 0 18px; }
.about-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 560 / 470;
  border: 1px solid var(--line);
  border-radius: 26px;
  background-image: var(--hero-image);
  background-position: 56% 30%;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: var(--shadow);
  transform: rotate(1.4deg);
}
.about-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(21, 13, 34, .04), rgba(21, 13, 34, .08) 45%, rgba(21, 13, 34, .56) 100%); }
.about-photo-caption { position: absolute; left: 20px; bottom: 18px; z-index: 2; font-family: var(--serif); font-size: 16px; letter-spacing: .18em; color: rgba(255, 250, 244, .94); text-shadow: 0 2px 12px rgba(0, 0, 0, .36); }
.about-photo::after { content: ""; position: absolute; inset: 0; z-index: 3; box-shadow: inset 0 0 0 9px rgba(255, 250, 244, .28); border-radius: inherit; pointer-events: none; }
html[data-theme="dark"] .about-photo::after { box-shadow: inset 0 0 0 9px rgba(44, 37, 34, .3); }
.about-note {
  position: absolute;
  left: -24px; bottom: -4px;
  z-index: 2;
  width: 196px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: -.02em;
  color: var(--ink-soft);
}
.about-note b { display: block; margin-top: 6px; font-family: var(--latin); font-size: 11px; font-weight: 400; font-style: italic; letter-spacing: .04em; color: var(--peach-deep); }
.about-note::before {
  content: "✿";
  position: absolute;
  top: -10px; right: 12px;
  color: var(--peach);
  font-size: 20px;
  transform: rotate(15deg);
}
.about-sticker {
  position: absolute;
  top: 0; right: 12px;
  z-index: 2;
  width: 76px; height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--peach), var(--rose));
  color: #fffaf4;
  font-family: var(--serif);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: .12em;
  text-align: center;
  transform: rotate(9deg);
  box-shadow: 0 10px 25px rgba(66, 45, 82, .14);
}
.about-sticker::before { content: ""; position: absolute; inset: 7px; border: 1px dashed rgba(255, 250, 244, .4); border-radius: 50%; }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  padding: 88px 0 34px;
  overflow: hidden;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}
.footer-greet {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.05em;
}
.footer-greet em { font-family: var(--latin); font-style: italic; color: var(--peach-deep); }
.footer-note { max-width: 280px; text-align: right; font-size: 11px; line-height: 1.9; color: var(--muted); }
.footer-middle {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 34px 0;
}
.footer-brandline { display: flex; align-items: center; gap: 12px; }
.footer-brandline .mark { width: 26px; height: 26px; }
.footer-brandline .name { font-family: var(--serif); font-size: 17px; letter-spacing: .1em; }
.footer-brandline .name i { font-style: normal; color: var(--peach-deep); }
.footer-brandline .small { font-family: var(--sans); font-size: 8px; letter-spacing: .14em; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { position: relative; font-size: 10.5px; letter-spacing: .1em; color: var(--ink-soft); transition: color .3s; }
.footer-links a::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1px; background: var(--peach); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.footer-links a:hover { color: var(--peach-deep); }
.footer-links a:hover::after { transform: scaleX(1); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 8.5px;
  letter-spacing: .1em;
  color: var(--muted);
}
.footer-bottom .made { display: inline-flex; align-items: center; gap: 7px; }
.footer-bottom .made .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--peach); }
.footer-flower { color: var(--peach); font-size: 16px; }

/* ---------- floating controls ---------- */
.music-float {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 65;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 15px 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 244, .82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  color: var(--ink-soft);
  box-shadow: 0 12px 34px rgba(66, 45, 82, .14);
  transition: border-color .35s, background-color .35s, transform .35s var(--ease), box-shadow .35s;
}
html[data-theme="dark"] .music-float { background: rgba(44, 37, 34, .8); box-shadow: 0 12px 34px rgba(0, 0, 0, .22); }
.music-float:hover { border-color: var(--peach); transform: translateY(-2px); box-shadow: 0 16px 38px rgba(66, 45, 82, .18); }
.music-disc {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--peach);
  color: #fffaf4;
  transition: background-color .35s;
}
.music-disc::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 250, 244, .45);
  animation: slowSpin 14s linear infinite;
  animation-play-state: paused;
}
.music-float.is-playing .music-disc::before { animation-play-state: running; }
.music-disc svg { width: 14px; height: 14px; fill: currentColor; }
.music-label { font-size: 10px; letter-spacing: .08em; white-space: nowrap; }
.music-bars { display: flex; align-items: flex-end; gap: 2px; height: 11px; margin-left: 1px; }
.music-bars i { display: block; width: 2px; height: 100%; border-radius: 2px; background: var(--peach-deep); transform: scaleY(.28); transform-origin: bottom; opacity: .55; transition: opacity .3s; }
.music-float.is-playing .music-bars i { opacity: 1; animation: barBounce .85s ease-in-out infinite; }
.music-float.is-playing .music-bars i:nth-child(2) { animation-delay: -.25s; }
.music-float.is-playing .music-bars i:nth-child(3) { animation-delay: -.5s; }
.music-float.is-playing .music-bars i:nth-child(4) { animation-delay: -.12s; }
@keyframes barBounce { 0%, 100% { transform: scaleY(.28); } 50% { transform: scaleY(1); } }
.music-hint {
  position: absolute;
  left: 0; bottom: calc(100% + 9px);
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .08em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .35s, transform .35s;
  pointer-events: none;
  box-shadow: var(--shadow-sm);
}
.music-float:hover .music-hint { opacity: 1; transform: none; }
.music-float.is-playing .music-hint { display: none; }

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 65;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 250, 244, .86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(66, 45, 82, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .4s, visibility .4s, transform .4s var(--ease), border-color .3s;
}
html[data-theme="dark"] .back-top { background: rgba(44, 37, 34, .82); }
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { border-color: var(--peach); }
.back-top svg { width: 30px; height: 30px; overflow: visible; }
.top-icon { transition: transform .4s var(--ease); }
.back-top:hover .top-icon { transform: translateY(-2px) rotate(-4deg); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(400px, calc(100vw - 40px));
  padding: 11px 17px 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink-soft);
  font-size: 10.5px;
  letter-spacing: .03em;
  opacity: 0;
  transform: translate(-50%, 18px) scale(.97);
  pointer-events: none;
  transition: opacity .35s, transform .45s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast-mark { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--peach-soft); color: var(--peach-deep); font-size: 11px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .container { width: calc(100% - 48px); }
  .nav-wrap { width: calc(100% - 48px); }
  .hero-badge { left: 24px; }
  .hero-word { right: 24px; }
  .post-card .post-title { font-size: 1.3rem; }
  .about-shell { gap: 42px; }
}
@media (max-width: 920px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .section { padding: 88px 0; }
  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts-grid .post-card:last-child { grid-column: span 2; }
  .posts-grid .post-card:last-child .post-cover { aspect-ratio: 2.35 / 1; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .photo-card:nth-child(2), .photo-card:nth-child(4) { margin-top: 0; }
  .about-shell { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .about-note { left: 8px; }
  .footer-top { align-items: flex-start; flex-direction: column; gap: 16px; }
  .footer-note { text-align: left; }
  .footer-middle { align-items: flex-start; flex-direction: column; gap: 22px; }
}
@media (max-width: 720px) {
  :root { --header-h: 60px; }
  .container { width: calc(100% - 36px); }
  .nav-wrap { width: calc(100% - 28px); gap: 14px; }
  .brand-mark { width: 25px; height: 25px; }
  .brand-name { font-size: 16px; }
  .brand-sub { font-size: 6.5px; }
  .round-btn, .menu-toggle { width: 34px; height: 34px; }
  .hero { height: clamp(380px, 56vh, 520px); }
  .hero-badge { left: 18px; bottom: 22px; font-size: 8.5px; padding: 7px 12px 7px 8px; }
  .hero-badge .bloom { width: 21px; height: 21px; }
  .hero-scroll { display: none; }
  .intro { padding-bottom: 62px; }
  .intro-avatar { width: 88px; height: 88px; margin-top: -44px; margin-bottom: 20px; }
  .intro-title { font-size: clamp(2.1rem, 9vw, 2.9rem); line-height: 1.28; }
  .intro-copy { font-size: 12.5px; padding: 0 6px; }
  .intro-stat { padding: 0 19px; }
  .intro-stat strong { font-size: 22px; }
  .section { padding: 70px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 30px; }
  .section-side { align-items: flex-start; gap: 8px; }
  .section-note { text-align: left; }
  .section-title { font-size: clamp(1.9rem, 7vw, 2.5rem); }
  .posts-grid { grid-template-columns: 1fr; gap: 17px; }
  .posts-grid .post-card:last-child { grid-column: auto; }
  .posts-grid .post-card:last-child .post-cover { aspect-ratio: 1.55 / 1; }
  .post-cover { aspect-ratio: 1.7 / 1; }
  .post-title { font-size: 1.32rem; }
  .gallery { background: rgba(241, 233, 246, .6); }
  html[data-theme="dark"] .gallery { background: rgba(32, 25, 42, .65); }
  .photo-grid { gap: 12px; }
  .photo-caption { left: 11px; right: 11px; bottom: 10px; font-size: 9.5px; }
  .photo-num { top: 10px; right: 11px; }
  .about-photo { transform: none; }
  .about-note { position: relative; left: auto; bottom: auto; width: auto; margin: -12px 14px 0; transform: rotate(-1.5deg); }
  .about-sticker { top: -8px; right: 8px; width: 64px; height: 64px; font-size: 6.5px; }
  .footer-top { padding-bottom: 30px; }
  .footer-greet { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .footer-middle { padding: 26px 0; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 9px; }
  .music-float { left: 14px; bottom: 14px; height: 41px; padding: 0 12px 0 7px; }
  .music-disc { width: 27px; height: 27px; }
  .music-label { font-size: 9px; }
  .back-top { right: 14px; bottom: 14px; width: 41px; height: 41px; }
  .toast { bottom: 72px; font-size: 10px; }
  .intro-stats { flex-wrap: wrap; row-gap: 18px; }
  .intro-stat { padding: 0 15px; }
}
@media (max-width: 430px) {
  .brand-sub { display: none; }
  .photo-caption { font-size: 8.5px; letter-spacing: .04em; }
  .photo-caption .photo-dot { display: none; }
  .intro-eyebrow { font-size: 8px; letter-spacing: .2em; }
  .intro-eyebrow::before, .intro-eyebrow::after { width: 16px; }
  .about-visual { padding-bottom: 8px; }
  .about-note { font-size: 12px; }
  .music-label { display: none; }
  .music-float { padding-right: 8px; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  #petalCanvas, .cursor-dot, .cursor-ring { display: none !important; }
}
@media print {
  .site-header, .music-float, .back-top, .hero-scroll, #petalCanvas, .paper-grain, .cursor-dot, .cursor-ring { display: none !important; }
  body { background: #fff; color: #111; }
  .hero { height: 360px; margin-top: 0; }
}


/* =========================================================
   多页面版 · 磨砂导航 / 首页满屏 / 子页面布局
   ========================================================= */

/* --- frosted glass navigation --- */
.site-header {
  background: rgba(247, 242, 247, .22);
  -webkit-backdrop-filter: blur(30px) saturate(175%);
  backdrop-filter: blur(30px) saturate(175%);
  border-bottom: 1px solid rgba(82, 60, 94, .12);
  box-shadow: 0 8px 32px rgba(66, 45, 82, .04);
  transition: background-color .5s var(--ease), border-color .5s, box-shadow .5s;
}
html[data-theme="dark"] .site-header {
  background: rgba(20, 15, 26, .30);
  border-bottom-color: rgba(244, 236, 247, .13);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
}
.site-header.scrolled {
  background: rgba(247, 242, 247, .36);
  box-shadow: 0 10px 38px rgba(66, 45, 82, .12);
}
html[data-theme="dark"] .site-header.scrolled {
  background: rgba(20, 15, 26, .44);
  box-shadow: 0 10px 38px rgba(0, 0, 0, .25);
}
.brand-name,
.brand-name i,
.nav-link,
.icon-btn,
.menu-toggle,
.menu-toggle i { transition: color .35s, background-color .35s, border-color .35s, box-shadow .35s; }

/* nav sitting on the hero gets a smoked-glass treatment and light text */
body.nav-on-hero .site-header {
  background: rgba(14, 9, 23, .10);
  border-bottom-color: rgba(255, 250, 244, .16);
  box-shadow: none;
}
body.nav-on-hero .brand-name,
body.nav-on-hero .nav-link,
body.nav-on-hero .icon-btn { color: rgba(255, 250, 244, .92); }
body.nav-on-hero .brand-name i { color: #f3b9d3; }
body.nav-on-hero .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .1); }
body.nav-on-hero .nav-link.active { color: #fff; }
body.nav-on-hero .nav-link.active::after { background: #f3b9d3; }
body.nav-on-hero .icon-btn {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .05);
}
body.nav-on-hero .icon-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .1);
}
body.nav-on-hero .menu-toggle { border-color: rgba(255, 255, 255, .24); }
body.nav-on-hero .menu-toggle i { background: rgba(255, 250, 244, .9); }

/* when the mobile menu is open, the header must sit on the light menu */
body.menu-open .site-header,
body.menu-open.nav-on-hero .site-header {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.menu-open .brand-name,
body.menu-open.nav-on-hero .brand-name,
body.menu-open .icon-btn,
body.menu-open.nav-on-hero .icon-btn { color: var(--ink); }
body.menu-open .brand-name i,
body.menu-open.nav-on-hero .brand-name i { color: var(--peach-deep); }
body.menu-open .icon-btn,
body.menu-open.nav-on-hero .icon-btn { border-color: var(--line); background: var(--surface); }
body.menu-open .menu-toggle,
body.menu-open.nav-on-hero .menu-toggle { border-color: var(--line); }
body.menu-open .menu-toggle i,
body.menu-open.nav-on-hero .menu-toggle i { background: var(--ink-soft); }

/* --- full-screen home hero under the glass nav --- */
.hero {
  height: 100svh;
  min-height: 620px;
  margin-top: 0;
}
.hero-art { background-position: center 34%; }
@media (max-width: 720px) {
  .hero { height: 100svh; min-height: 600px; }
  .hero-art { background-position: 42% 30%; }
}

/* --- inner pages start below the fixed glass nav --- */
.inner-page main { padding-top: var(--header-h); }
.inner-page .section { padding-top: 78px; padding-bottom: 104px; }
.inner-page .posts { padding-top: 78px; }
.inner-page .gallery { padding-top: 78px; }
.inner-page .about,
.inner-page .about-section { padding-top: 78px; padding-bottom: 104px; }
@media (max-width: 720px) {
  .inner-page .section,
  .inner-page .posts,
  .inner-page .gallery,
  .inner-page .about,
  .inner-page .about-section { padding-top: 56px; padding-bottom: 72px; }
}

/* footer sits above the fixed ambient background */
.site-footer { position: relative; z-index: 1; }

/* --- homepage landscape hero --- */
.home-page .hero-art {
  background-image: url("hero-home.jpg");
  background-image: image-set(url("hero-home-1920.avif") type("image/avif"), url("hero-home-1920.webp") type("image/webp"), url("hero-home-1920.jpg") type("image/jpeg"));
  background-position: 50% 42%;
}
.home-page .hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 170px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 9, 18, .4), rgba(7, 9, 18, 0));
}
@media (max-width: 720px) {
  .home-page .hero::before { height: 125px; }
  .home-page .hero-art { background-position: 51% 42%; }
}

/* --- homepage always keeps the night treatment (no white bottom glow) --- */
html body.home-page {
  background: #18131f;
}
.home-page .hero {
  background: #18131f;
}
.home-page .hero-shade {
  background:
    linear-gradient(180deg, rgba(10, 7, 18, .12) 0%, transparent 40%, rgba(15, 10, 25, .24) 74%, #18131f 100%),
    radial-gradient(ellipse 58% 62% at 22% 28%, rgba(102, 73, 165, .12), transparent 62%);
}
.home-page .music-float {
  background: rgba(24, 19, 31, .58);
  border-color: rgba(244, 236, 247, .16);
  color: #f4ecf7;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
}
.home-page .music-float .music-label { color: #f4ecf7; }


/* moonzoom entry link */
.back-moonzoom {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .06em;
  white-space: nowrap;
  transition: color .3s, border-color .3s, background-color .3s;
}
.back-moonzoom:hover {
  color: var(--peach-deep);
  border-color: var(--peach);
  background: rgba(160, 124, 219, .10);
}
body.nav-on-hero .back-moonzoom {
  color: rgba(255, 255, 255, .78);
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .04);
}
body.nav-on-hero .back-moonzoom:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .12);
}
.mobile-menu-foot a { color: var(--muted); }
.mobile-menu-foot a:hover { color: var(--peach-deep); }
@media (max-width: 900px) { .back-moonzoom { display: none; } }

/* perf: picture wrapper stays out of layout */
picture { display: contents; }
picture source { display: none; }
