﻿:root, html {
  color-scheme: only light !important;
}

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@700;800&family=Fredoka:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;700&family=Quicksand:wght@400;500;600;700&display=swap');


:root {
  --bg: #f8f3ea;
  --paper: #fffaf2;
  --pink: #fa9ebc;
  --pink-soft: #ffe5ee;
  --lilac: #c9b6ff;
  --lilac-soft: #f0eaff;
  --blue: #3a0ca3;
  --ink: #3e4056;
  --muted: #8b8ca6;
  --line: rgba(250, 158, 188, .62);
  --shadow: 0 8px 0 rgba(250, 158, 188, .13), 0 16px 30px rgba(93, 122, 138, .10);
}

body {
  overflow-x: hidden;
}

.bg-effects {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bubble {
  position: absolute;
  display: block;
  pointer-events: none;
}

.bubble {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(250, 158, 188, .55);
  border-radius: 50%;
  background: rgba(255, 229, 238, .35);
  animation: bubbleFloat 9s ease-in-out infinite;
}

.bubble-1 { left: 7%; top: 24%; width: 12px; height: 12px; animation-delay: -1s; }
.bubble-2 { left: 18%; top: 72%; width: 22px; height: 22px; animation-delay: -4s; border-color: rgba(201, 182, 255, .55); }
.bubble-3 { left: 82%; top: 20%; width: 16px; height: 16px; animation-delay: -2s; border-color: rgba(201, 182, 255, .55); }
.bubble-4 { left: 91%; top: 62%; width: 26px; height: 26px; animation-delay: -5s; }
.bubble-5 { left: 52%; top: 88%; width: 10px; height: 10px; animation-delay: -3s; border-color: rgba(201, 182, 255, .55); }

.site-header, .site-main, .site-footer {
  position: relative;
  z-index: 1;
}

.site-header { z-index: 20; }

@keyframes bubbleFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .55; }
  50% { transform: translate3d(10px, -26px, 0) scale(1.12); opacity: .95; }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  animation: riseIn .65s ease both;
}

.hero::after {
  animation: noteFloat 4.5s ease-in-out infinite;
}

.diary-tile {
  animation: riseIn .6s ease both;
}

.diary-tile:nth-child(2) { animation-delay: .08s; }
.diary-tile:nth-child(3) { animation-delay: .16s; }
.diary-tile:nth-child(4) { animation-delay: .24s; }
.diary-tile:nth-child(5) { animation-delay: .32s; }
.diary-tile:nth-child(6) { animation-delay: .40s; }
.diary-tile:nth-child(7) { animation-delay: .48s; }
.diary-tile:nth-child(8) { animation-delay: .56s; }

@keyframes noteFloat {
  0%, 100% { transform: rotate(12deg) translateY(0); }
  50% { transform: rotate(20deg) translateY(-8px); }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Quicksand", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

a { color: inherit; text-decoration: none; }
a:hover { color: #d94f82; }

.container {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 243, 234, .96);
  border-bottom: 2px solid rgba(250, 158, 188, .7);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 88px;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-weight: 800;
  font-size: 19px;
  white-space: nowrap;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--pink-soft);
  border: 2px solid var(--pink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--blue);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.site-nav a:hover::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}

.search-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: rgba(255, 250, 242, .8);
  border: 1px solid rgba(250, 158, 188, .6);
  border-radius: 50%;
  color: var(--blue);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.search-button:hover {
  transform: translateY(-2px);
  background: var(--pink-soft);
  color: #a93663;
}

.search-button svg {
  width: 17px;
  height: 17px;
}

.site-main { min-height: 60vh; }

.hero {
  margin: 54px 0 46px;
  padding: 42px 42px 38px;
  background: #fffaf2;
  border: 2px dashed var(--line);
  border-radius: 22px;
  box-shadow: 0 8px 0 rgba(250, 158, 188, .14), 0 18px 32px rgba(93, 122, 138, .1);
  position: relative;
  overflow: visible;
}

.hero::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 148px;
  height: 26px;
  background: rgba(201, 182, 255, .74);
  border-radius: 2px;
  transform: translateX(-50%) rotate(-2deg);
  box-shadow: 0 1px 3px rgba(93, 122, 138, .12);
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero::after {
  content: "♪";
  position: absolute;
  right: 32px;
  top: 16px;
  color: var(--pink);
  font-size: 96px;
  line-height: 1;
  opacity: .28;
  transform: rotate(12deg);
}

.hero-top, .post-kicker, .article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.eyebrow {
  display: inline-block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.status-pill, .category-pill, .tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--pink-soft);
  border: 1px dashed var(--line);
  border-radius: 999px;
  color: #a93663;
  font-size: 12px;
  font-weight: 600;
}

.hero h1 {
  margin: 12px 0 10px;
  color: var(--blue);
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.hero-desc {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.section { margin: 0 0 56px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 2px dotted rgba(250, 158, 188, .55);
}

.section-head h2, .page-head h1, .comments-title {
  margin: 0;
  color: var(--blue);
  font-size: 26px;
  line-height: 1.3;
}

.section-head a {
  color: var(--muted);
  font-size: 14px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
}

.post-card {
  overflow: hidden;
  background: rgba(255, 250, 242, .92);
  border: 2px dashed var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.post-card:hover {
  transform: translateY(-5px) rotate(-.25deg);
  box-shadow: 0 12px 0 rgba(250, 158, 188, .15), 0 22px 36px rgba(93, 122, 138, .14);
}

.post-cover {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--lilac-soft);
}

.post-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.post-card:hover .post-cover img { transform: scale(1.035); }

.post-body { padding: 22px 24px 24px; }

.post-kicker {
  color: var(--muted);
  font-size: 12px;
}

.post-kicker time { margin-left: auto; }

.post-title {
  margin: 12px 0 8px;
  font-size: 23px;
  line-height: 1.35;
}

.post-title a { color: var(--blue); }

.post-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 12px;
}

.post-meta span { color: #9b6a87; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 36px;
}

.page-link, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 16px;
  background: var(--paper);
  border: 2px dashed var(--line);
  border-radius: 999px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.page-link:hover, .button:hover {
  background: var(--pink-soft);
}

.page-status { color: var(--muted); font-size: 13px; }

.page-head {
  margin: 46px 0 28px;
  padding-bottom: 18px;
  border-bottom: 2px dotted rgba(250, 158, 188, .55);
}

.page-head h1 { margin-top: 8px; font-size: 42px; }

.page-head p { margin: 10px 0 0; color: var(--muted); }

.taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 56px;
}

.taxonomy-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: var(--paper);
  border: 2px dashed rgba(201, 182, 255, .8);
  border-radius: 20px;
  box-shadow: 0 6px 0 rgba(201, 182, 255, .14);
}

.taxonomy-card strong { color: var(--blue); font-size: 18px; }
.taxonomy-card span { color: var(--muted); font-size: 13px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 56px; }
.tag-cloud .tag-pill { padding: 8px 16px; font-size: 14px; }

.archive-list { margin-bottom: 56px; }
.archive-year { margin-bottom: 30px; }
.archive-year > h2 { margin: 0 0 10px; color: var(--pink); font-size: 30px; }
.archive-month { margin: 0 0 16px 0; padding-left: 18px; border-left: 2px dashed var(--lilac); }
.archive-month h3 { margin: 0 0 6px; color: var(--blue); font-size: 16px; }
.archive-post { display: flex; justify-content: space-between; gap: 18px; padding: 5px 0; color: var(--ink); font-size: 15px; }
.archive-post:hover { color: #d94f82; }
.archive-post time { color: var(--muted); font-size: 12px; white-space: nowrap; }

.article { margin: 40px 0 60px; }
.article-header { max-width: 820px; margin: 0 auto 24px; }
.article-header h1 { margin: 14px 0 16px; color: var(--blue); font-size: clamp(34px, 5vw, 54px); line-height: 1.2; }
.article-excerpt { margin: 0 0 16px; color: var(--muted); font-size: 17px; }
.article-meta { color: var(--muted); font-size: 13px; }
.article-cover { display: block; width: min(900px, 100%); max-height: 440px; object-fit: cover; margin: 0 auto 30px; border: 2px dashed var(--line); border-radius: 22px; }

.post-content {
  max-width: 820px;
  margin: 0 auto;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.9;
}

.post-content h1, .post-content h2, .post-content h3, .post-content h4 {
  color: var(--blue);
  line-height: 1.4;
  margin: 1.8em 0 .65em;
}

.post-content h2 { font-size: 27px; }
.post-content h3 { font-size: 21px; }
.post-content p { margin: 0 0 1.1em; }
.post-content a { color: #a93663; text-decoration: underline; text-underline-offset: 3px; }
.post-content ul, .post-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.post-content li { margin: .3em 0; }
.post-content img { max-width: 100%; height: auto; border-radius: 14px; }
.post-content blockquote { margin: 1.4em 0; padding: 12px 18px; background: var(--pink-soft); border-left: 4px solid var(--pink); border-radius: 0 12px 12px 0; color: #7d4d64; }
.post-content code { padding: 2px 6px; background: #f3e7dc; border-radius: 6px; color: #a93663; font-size: .9em; }
.post-content pre { overflow: auto; padding: 18px; background: #24223a; border-radius: 14px; color: #f8f3ea; font-size: 14px; line-height: 1.7; }
.post-content pre code { padding: 0; background: transparent; color: inherit; }
.post-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 14px; }
.post-content th, .post-content td { padding: 9px 12px; border: 1px dashed rgba(201, 182, 255, .65); text-align: left; }
.post-content th { background: var(--lilac-soft); color: var(--blue); }
.post-content hr { border: 0; border-top: 2px dashed var(--line); margin: 2em 0; }

.comments { max-width: 820px; margin: 48px auto 0; padding-top: 24px; border-top: 2px dotted var(--line); }
.comments-title { margin-bottom: 16px; font-size: 22px; }

.not-found { padding: 80px 0; text-align: center; }
.not-found h1 { margin: 12px 0; color: var(--blue); font-size: 42px; }
.not-found p { color: var(--muted); margin-bottom: 22px; }

.site-footer { margin-top: 30px; padding: 34px 0 18px; border-top: 2px dashed var(--line); background: rgba(255, 250, 242, .55); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; }
.footer-inner strong { color: var(--blue); font-size: 18px; }
.footer-inner p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; gap: 14px; font-size: 14px; color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 14px; border-top: 1px dotted rgba(250, 158, 188, .5); color: var(--muted); font-size: 12px; }

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1080px); }
  .header-inner { align-items: flex-start; flex-direction: column; gap: 10px; min-height: 0; padding: 20px 0 14px; }
  .site-nav { width: 100%; gap: 16px; overflow-x: auto; padding-bottom: 4px; font-size: 14px; }
  .header-actions { position: absolute; top: 20px; right: 0; }
  .header-inner { position: relative; }
  .hero { margin-top: 38px; padding: 34px 22px 26px; border-radius: 20px; }
  .hero::before { width: 108px; height: 22px; top: -11px; }
  .hero h1 { font-size: 42px; }
  .hero::after { right: 18px; top: 18px; font-size: 64px; }
  .post-grid, .taxonomy-grid { grid-template-columns: 1fr; }
  .post-body { padding: 18px 18px 20px; }
  .post-title { font-size: 20px; }
  .article { margin-top: 24px; }
  .article-header h1 { font-size: 34px; }
  .footer-inner, .footer-bottom { flex-direction: column; gap: 10px; }
  .archive-post { align-items: baseline; }
}


/* 首页日记：标签纸卡片 */
.diary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 20px;
  padding: 10px 2px 24px;
}

.diary-tile {
  position: relative;
  min-width: 0;
  background: rgba(255, 250, 242, .96);
  border: 1px solid rgba(250, 158, 188, .42);
  border-radius: 16px;
  box-shadow: 0 5px 0 rgba(250, 158, 188, .12), 0 14px 24px rgba(93, 122, 138, .08);
  transform: rotate(-.45deg);
  transition: transform .22s ease, box-shadow .22s ease;
}

.diary-tile:nth-child(2n) {
  background: #fff8fb;
  transform: rotate(.35deg);
}

.diary-tile:nth-child(3n) {
  background: #fbf7ff;
  transform: rotate(-.25deg);
}

.diary-tile:hover {
  transform: translateY(-5px) rotate(0);
  box-shadow: 0 9px 0 rgba(250, 158, 188, .16), 0 20px 32px rgba(93, 122, 138, .13);
}

/* 顶部纸胶带 */
.diary-tile::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 24px;
  width: 58px;
  height: 16px;
  z-index: 2;
  background: rgba(201, 182, 255, .72);
  transform: rotate(-4deg);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(93, 122, 138, .08);
}

.diary-tile:nth-child(2n)::before { background: rgba(189, 224, 214, .78); transform: rotate(3deg); left: auto; right: 24px; }
.diary-tile:nth-child(3n)::before { background: rgba(255, 226, 163, .8); transform: rotate(-2deg); }
.diary-tile:nth-child(4n)::before { background: rgba(250, 158, 188, .65); transform: rotate(4deg); left: auto; right: 22px; }

.diary-tile-link {
  display: flex;
  flex-direction: column;
  min-height: 226px;
  padding: 26px 20px 20px;
  color: inherit;
}

.diary-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.diary-sticker {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--lilac-soft);
  border: 1px solid rgba(201, 182, 255, .7);
  border-radius: 999px;
  color: #6c4bb6;
  font-size: 10px;
  font-weight: 700;
}

.diary-tile h3 {
  margin: 16px 0 9px;
  color: var(--blue);
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -.01em;
}

.diary-tile p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.diary-read {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  padding: 5px 11px;
  background: var(--paper);
  border: 1px dashed rgba(201, 182, 255, .9);
  border-radius: 999px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.diary-tile:hover .diary-read {
  background: var(--pink-soft);
  color: #a93663;
}

.empty {
  padding: 18px 0;
  color: var(--muted);
  font-size: 14px;
}

.home-articles-link {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

@media (max-width: 980px) {
  .diary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .diary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .diary-tile-link { min-height: 210px; padding: 24px 16px 16px; }
  .diary-tile h3 { font-size: 16px; }
}

@media (max-width: 520px) {
  .diary-grid { grid-template-columns: 1fr; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}


/* 留言板 */
.message-board-head {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 20px;
  border-bottom: 2px dotted rgba(250, 158, 188, .55);
}

.message-board-card {
  position: relative;
  max-width: 820px;
  margin: 28px auto 0;
  padding: 34px 30px 28px;
  background: rgba(255, 250, 242, .94);
  border: 2px dashed rgba(250, 158, 188, .7);
  border-radius: 24px;
  box-shadow: 0 8px 0 rgba(250, 158, 188, .13), 0 18px 30px rgba(93, 122, 138, .1);
}

.message-board-card::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 42px;
  width: 74px;
  height: 18px;
  background: rgba(201, 182, 255, .72);
  border-radius: 2px;
  transform: rotate(-3deg);
  box-shadow: 0 1px 2px rgba(93, 122, 138, .08);
}

.message-board-label {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 4px 12px;
  background: var(--pink-soft);
  border: 1px dashed rgba(250, 158, 188, .75);
  border-radius: 999px;
  color: #a93663;
  font-size: 12px;
  font-weight: 700;
}

.message-board-content {
  max-width: none;
  margin-bottom: 24px;
  font-size: 15px;
}

.message-board-card .comments {
  max-width: none;
  margin: 0;
  padding-top: 22px;
  border-top: 1px dashed rgba(201, 182, 255, .7);
}

.message-board-card .comments-title {
  font-size: 21px;
}

@media (max-width: 760px) {
  .message-board-card {
    padding: 26px 18px 22px;
    border-radius: 20px;
  }
}


/* 文章页分类标签 */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 26px;
}

.category-tab {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 13px;
  background: rgba(255, 250, 242, .86);
  border: 1px dashed rgba(201, 182, 255, .8);
  border-radius: 999px;
  color: #6c4bb6;
  font-size: 13px;
  font-weight: 600;
}

.category-tab:hover,
.category-tab.active {
  background: var(--pink-soft);
  border-color: rgba(250, 158, 188, .8);
  color: #a93663;
}

@media (max-width: 760px) {
  .category-tabs { gap: 8px; }
  .category-tab { min-height: 30px; padding: 4px 11px; font-size: 12px; }
}


.page-back {
  display: inline-flex;
  align-items: center;
  margin: 34px 0 0;
  padding: 5px 13px;
  background: rgba(255, 250, 242, .9);
  border: 1px dashed rgba(201, 182, 255, .8);
  border-radius: 999px;
  color: #6c4bb6;
  font-size: 13px;
  font-weight: 600;
}

.page-back:hover {
  background: var(--pink-soft);
  color: #a93663;
}

@media (max-width: 760px) {
  .page-back { margin-top: 22px; }
}


/* 页脚统计卡 */
.footer-stats-wrap {
  display: flex;
  justify-content: center;
  margin: 24px auto 8px;
}

.footer-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(500px, 100%);
  padding: 16px 20px;
  background: rgba(255, 250, 242, .94);
  border: 2px dashed rgba(250, 158, 188, .62);
  border-radius: 18px;
  box-shadow: 0 6px 0 rgba(250, 158, 188, .12), 0 14px 24px rgba(93, 122, 138, .08);
}

.footer-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  text-align: center;
}

.footer-stat + .footer-stat {
  border-left: 1px dashed rgba(201, 182, 255, .7);
}

.footer-stat span {
  color: var(--muted);
  font-size: 11px;
}

.footer-stat strong {
  color: var(--blue);
  font-size: 21px;
  line-height: 1.3;
  font-weight: 800;
}

@media (max-width: 760px) {
  .footer-stats-wrap { margin: 18px auto 6px; }
  .footer-stats { padding: 14px 12px; }
  .footer-stat strong { font-size: 18px; }
}


/* 碎碎念手账文章 */
.scrapbook-post {
  max-width: 1000px;
}

.scrapbook-post .article-header {
  position: relative;
  max-width: 700px;
  margin: 28px auto 34px;
  padding: 34px 30px 28px;
  background: #fffaf2;
  border: 2px dashed rgba(250, 158, 188, .68);
  border-radius: 20px;
  box-shadow: 0 7px 0 rgba(250, 158, 188, .12), 0 16px 28px rgba(93, 122, 138, .09);
  transform: rotate(-.5deg);
}

.scrapbook-post .article-header::before,
.scrapbook-post .scrapbook-card::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 30px;
  width: 64px;
  height: 18px;
  z-index: 2;
  background: rgba(201, 182, 255, .72);
  border-radius: 2px;
  transform: rotate(-4deg);
  box-shadow: 0 1px 2px rgba(93, 122, 138, .08);
}

.scrapbook-post .article-header::after,
.scrapbook-post .scrapbook-card::after {
  content: "";
  position: absolute;
  top: -9px;
  right: 30px;
  width: 54px;
  height: 17px;
  z-index: 2;
  background: rgba(250, 158, 188, .62);
  border-radius: 2px;
  transform: rotate(3deg);
  box-shadow: 0 1px 2px rgba(93, 122, 138, .08);
}

.scrapbook-post .post-content {
  max-width: none;
}

.scrapbook-post .scrapbook-card {
  position: relative;
  width: 700px;
  max-width: calc(100% - 28px);
  margin: 30px auto 38px;
  padding: 30px 30px 26px;
  background: #fffaf2;
  border: 2px dashed rgba(250, 158, 188, .62);
  border-radius: 20px;
  box-shadow: 0 7px 0 rgba(250, 158, 188, .11), 0 16px 28px rgba(93, 122, 138, .08);
  transform: rotate(-.45deg);
}

.scrapbook-post .scrapbook-card:nth-child(2n) {
  margin-left: 4%;
  margin-right: auto;
  transform: rotate(.55deg);
}

.scrapbook-post .scrapbook-card:nth-child(3n) {
  margin-left: auto;
  margin-right: 4%;
  transform: rotate(-.75deg);
}

.scrapbook-post .scrapbook-card:nth-child(4n) {
  margin-left: 7%;
  margin-right: auto;
  transform: rotate(.9deg);
}

.scrapbook-post .scrapbook-card h2 {
  margin-top: 0;
  color: var(--blue);
}

.scrapbook-post .scrapbook-card p:last-child {
  margin-bottom: 0;
}

.scrapbook-post .article-cover {
  max-width: 700px;
}

@media (max-width: 760px) {
  .scrapbook-post .article-header,
  .scrapbook-post .scrapbook-card {
    width: auto;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none;
  }

  .scrapbook-post .scrapbook-card {
    padding: 26px 20px 22px;
  }
}


.diary-grid:has(.diary-tile) + .diary-empty {
  display: none;
}


/* 1.0.2 紧凑页脚与日记标签 */
.diary-kicker { justify-content: flex-end; }
.diary-sticker {
  padding: 1px 6px;
  font-size: 9px;
}
.site-footer {
  margin-top: 16px;
  padding: 18px 0 10px;
}
.footer-inner { gap: 18px; }
.footer-stats-wrap { margin: 12px auto 4px; }
.footer-stats {
  width: min(420px, 100%);
  padding: 10px 14px;
}
.footer-stat { gap: 2px; padding: 1px 8px; }
.footer-stat span { font-size: 10px; }
.footer-stat strong { font-size: 18px; }
.footer-bottom {
  margin-top: 14px;
  padding-top: 8px;
}

@media (max-width: 760px) {
  .site-footer { padding-top: 14px; }
  .footer-stats-wrap { margin-top: 10px; }
  .footer-bottom { margin-top: 10px; }
}


/* 1.0.3 页面撑满视口，footer 贴底并继续压缩 */
html, body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
  min-height: 0;
}

.site-footer {
  flex-shrink: 0;
  margin-top: 10px;
  padding: 12px 0 6px;
}

.footer-inner {
  gap: 10px;
}

.footer-stats-wrap {
  margin: 8px auto 2px;
}

.footer-stats {
  padding: 8px 12px;
}

.footer-stat span {
  font-size: 9px;
}

.footer-stat strong {
  font-size: 16px;
}

.footer-bottom {
  margin-top: 8px;
  padding-top: 5px;
}

@media (max-width: 760px) {
  .site-footer {
    padding-top: 10px;
    padding-bottom: 5px;
  }
  .footer-stats-wrap {
    margin-top: 7px;
  }
  .footer-bottom {
    margin-top: 7px;
    padding-top: 4px;
  }
}


/* 1.0.4 页脚同一行：品牌 / 统计 / 链接 */
.footer-inner {
  align-items: center;
  justify-content: space-between;
}

.footer-inner > div:first-child {
  flex: 1 1 0;
  min-width: 0;
}

.footer-inner > .footer-links {
  flex: 0 0 auto;
}

.footer-inner > .footer-stats-wrap {
  flex: 0 1 420px;
  min-width: 0;
  margin: 0 12px;
  display: flex;
  justify-content: center;
}

.footer-inner > .footer-stats-wrap .footer-stats {
  width: min(420px, 100%);
}

@media (max-width: 760px) {
  .footer-inner {
    align-items: center;
  }
  .footer-inner > .footer-stats-wrap {
    width: 100%;
    margin: 4px 0;
  }
}


/* 1.0.5 移动端页脚统计卡不要被 flex-basis 拉高 */
@media (max-width: 760px) {
  .footer-inner {
    align-items: stretch;
  }

  .footer-inner > .footer-stats-wrap {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    margin: 4px 0;
  }

  .footer-inner > .footer-stats-wrap .footer-stats {
    width: 100%;
    height: auto;
  }

  .footer-stats {
    grid-auto-rows: auto;
  }
}


/* iOS/Safari 深色系统下仍强制浅色 */
@media (prefers-color-scheme: dark) {
  html {
    background: #f8f3ea !important;
  }

  body {
    background: #f8f3ea !important;
    color: #3e4056 !important;
  }

  .site-header,
  .site-footer {
    background-color: rgba(248, 243, 234, .96) !important;
  }
}


/* 1.0.9 首页日期与登录入口 */
.diary-kicker {
  justify-content: space-between;
}

.diary-kicker time {
  color: var(--muted);
  font-size: 10px;
}

.user-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 10px;
  background: rgba(255, 250, 242, .8);
  border: 1px solid rgba(250, 158, 188, .6);
  border-radius: 999px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.user-button:hover {
  background: var(--pink-soft);
  color: #a93663;
}

.user-icon {
  width: 17px;
  height: 17px;
}

.momo-user-avatar-frame {
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 1px;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid var(--pink);
  background: var(--pink-soft);
}

.momo-user-avatar {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border-radius: 50%;
  object-fit: cover;
}

.momo-user-avatar-initial {
  color: #a93663;
  font-size: 12px;
  font-weight: 800;
}

.user-name {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 760px) {
  .user-button {
    height: 34px;
    padding: 0 7px;
    font-size: 11px;
  }
  .user-name {
    display: none;
  }
  .momo-user-avatar-frame {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }
}


/* 1.0.12 品牌字与卡片 hover */
.brand {
  gap: 0;
}

.brand-logo {
  display: none !important;
}

.brand-name {
  font-family: "Fredoka", "Quicksand", "Noto Sans SC", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .4px;
  color: #f27fa8;
  -webkit-text-stroke: .8px #fffaf2;
  text-shadow:
    2px 2px 0 #fffaf2,
    3px 3px 0 rgba(250, 158, 188, .35),
    0 5px 12px rgba(250, 158, 188, .18);
}

.diary-tile {
  will-change: transform;
}

.diary-tile:hover {
  transform: translateY(-8px) rotate(0);
}

.diary-tile:hover .diary-read {
  background: var(--paper);
  color: var(--blue);
}

.diary-read:hover {
  background: var(--pink-soft) !important;
  color: #a93663 !important;
}

@media (max-width: 760px) {
  .brand-name {
    font-size: 23px;
  }
}


/* 1.0.13 修复入场动画覆盖 hover，并加强卡片上提 */
.diary-tile {
  animation-fill-mode: backwards;
  transform-origin: center bottom;
  transition:
    transform .28s cubic-bezier(.2, .8, .2, 1),
    box-shadow .28s ease;
}

.diary-tile:hover {
  transform: translateY(-12px) rotate(-.8deg) scale(1.015);
  box-shadow:
    0 13px 0 rgba(250, 158, 188, .14),
    0 26px 38px rgba(93, 122, 138, .18);
  z-index: 3;
}

.diary-tile:nth-child(2n):hover {
  transform: translateY(-12px) rotate(.8deg) scale(1.015);
}

.diary-tile:nth-child(3n):hover {
  transform: translateY(-12px) rotate(-.5deg) scale(1.015);
}


/* 1.0.14 更粗、更乱的手账品牌字 */
.brand-name {
  font-family: "Baloo 2", "Fredoka", "Quicksand", "Noto Sans SC", sans-serif;
  font-size: 31px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  color: #f27fa8;
  -webkit-text-stroke: 2px #fffaf2;
  paint-order: stroke fill;
  text-shadow:
    2px 3px 0 #ffd6e5,
    4px 5px 0 rgba(201, 182, 255, .35),
    0 7px 14px rgba(250, 158, 188, .2);
}

.brand-letter {
  display: inline-block;
  transform-origin: 50% 80%;
}

.brand-letter:nth-child(3n+1) {
  transform: translateY(-1px) rotate(-2.5deg);
}

.brand-letter:nth-child(3n+2) {
  transform: translateY(1px) rotate(1.8deg);
}

.brand-letter:nth-child(3n) {
  transform: translateY(-2px) rotate(-1.2deg);
}

@media (max-width: 760px) {
  .brand-name {
    font-size: 25px;
    -webkit-text-stroke-width: 1.5px;
  }
}


/* 1.0.15 手账标题用品牌粉，并收紧第一张内容卡顶部 */
.scrapbook-post .article-excerpt {
  color: #f27fa8;
}

.scrapbook-post .scrapbook-card {
  padding: 18px 30px 26px;
}

.scrapbook-post .scrapbook-card h2 {
  color: #f27fa8;
  line-height: 1.25;
}

.scrapbook-post .scrapbook-card h2:first-child {
  margin-top: 0;
}

@media (max-width: 760px) {
  .scrapbook-post .scrapbook-card {
    padding: 16px 20px 22px;
  }
}


/* 1.0.16 正文一级标题也按手账卡片处理 */
.scrapbook-post .scrapbook-card h1,
.scrapbook-post .scrapbook-card h2 {
  color: #f27fa8;
  margin-top: 0;
  line-height: 1.25;
}

.scrapbook-post .scrapbook-card h1 {
  font-size: 27px;
}

.scrapbook-post .scrapbook-card h1:first-child,
.scrapbook-post .scrapbook-card h2:first-child {
  margin-top: 0;
}


/* 1.0.17 只让摘要行变粉，正文标题保持蓝色 */
.scrapbook-post .article-excerpt {
  color: #f27fa8;
}

.scrapbook-post .scrapbook-card h1,
.scrapbook-post .scrapbook-card h2 {
  color: var(--blue);
}

.diary-tile p.diary-heading {
  color: #f27fa8;
  font-weight: 600;
}


/* 1.0.19 只去掉首屏纸胶带，其他布局保持 1.0.17 */
.hero::before {
  display: none !important;
}


/* 1.0.20 碎碎念卡片只淡入，避免回到首页时先正后歪 */
.diary-tile {
  animation: diaryFadeIn .28s ease both;
}

@keyframes diaryFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* 1.0.21 标题解析前不闪现默认摘要 */
.diary-tile p.diary-excerpt-pending {
  visibility: hidden;
}


/* 1.0.22 实心多彩气泡，从底部上浮 */
.bg-effects .bubble {
  top: auto !important;
  bottom: -120px !important;
  border: 0 !important;
  opacity: 0;
  animation: bubbleRise var(--bubble-duration, 16s) linear infinite !important;
  animation-delay: var(--bubble-delay, 0s) !important;
  will-change: transform, opacity;
}

.bg-effects .bubble-1 {
  left: 7% !important;
  width: 34px !important;
  height: 34px !important;
  background: rgba(250, 158, 188, .22) !important;
  --bubble-duration: 18s;
  --bubble-delay: -2s;
  --bubble-drift: 28px;
}

.bg-effects .bubble-2 {
  left: 19% !important;
  width: 68px !important;
  height: 68px !important;
  background: rgba(201, 182, 255, .18) !important;
  --bubble-duration: 24s;
  --bubble-delay: -11s;
  --bubble-drift: -22px;
}

.bg-effects .bubble-3 {
  left: 34% !important;
  width: 22px !important;
  height: 22px !important;
  background: rgba(255, 226, 163, .25) !important;
  --bubble-duration: 14s;
  --bubble-delay: -6s;
  --bubble-drift: 34px;
}

.bg-effects .bubble-4 {
  left: 51% !important;
  width: 46px !important;
  height: 46px !important;
  background: rgba(189, 224, 214, .22) !important;
  --bubble-duration: 20s;
  --bubble-delay: -3s;
  --bubble-drift: -30px;
}

.bg-effects .bubble-5 {
  left: 68% !important;
  width: 78px !important;
  height: 78px !important;
  background: rgba(250, 158, 188, .15) !important;
  --bubble-duration: 27s;
  --bubble-delay: -18s;
  --bubble-drift: 24px;
}

.bg-effects .bubble-6 {
  left: 80% !important;
  width: 28px !important;
  height: 28px !important;
  background: rgba(201, 182, 255, .24) !important;
  --bubble-duration: 15s;
  --bubble-delay: -8s;
  --bubble-drift: -28px;
}

.bg-effects .bubble-7 {
  left: 91% !important;
  width: 54px !important;
  height: 54px !important;
  background: rgba(255, 226, 163, .18) !important;
  --bubble-duration: 22s;
  --bubble-delay: -14s;
  --bubble-drift: 18px;
}

.bg-effects .bubble-8 {
  left: 44% !important;
  width: 16px !important;
  height: 16px !important;
  background: rgba(250, 158, 188, .28) !important;
  --bubble-duration: 12s;
  --bubble-delay: -4s;
  --bubble-drift: -14px;
}

@keyframes bubbleRise {
  0% {
    transform: translate3d(0, 0, 0) scale(.9);
    opacity: 0;
  }
  12% {
    opacity: .75;
  }
  72% {
    opacity: .5;
  }
  100% {
    transform: translate3d(var(--bubble-drift, 20px), -115vh, 0) scale(1.08);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-effects .bubble {
    display: none !important;
  }
}


/* 1.0.23 粉色 P3R 波浪背景与 PJAX 过场 */
.bg-effects .bubble {
  display: none !important;
}

.p3r-wave-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.p3r-wave {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  animation: p3rWaveDrift 22s ease-in-out infinite;
}

.p3r-wave.wave-1 {
  width: 128vw;
  height: 72vw;
  right: -31vw;
  bottom: -17vw;
  border-width: 7.2vw;
  border-color: rgba(255, 190, 215, .30) transparent transparent rgba(255, 190, 215, .16);
  transform: rotate(-27deg);
  animation-delay: -2s;
}

.p3r-wave.wave-2 {
  width: 103vw;
  height: 61vw;
  right: -23vw;
  bottom: -15vw;
  border-width: 4.2vw;
  border-color: transparent rgba(201, 182, 255, .24) transparent rgba(201, 182, 255, .10);
  transform: rotate(23deg);
  animation-delay: -8s;
}

.p3r-wave.wave-3 {
  width: 80vw;
  height: 49vw;
  right: -13vw;
  bottom: -12vw;
  border-width: 2.2vw;
  border-color: rgba(255, 174, 203, .28) transparent transparent transparent;
  transform: rotate(-8deg);
  animation-delay: -14s;
}

.p3r-wave-fill {
  position: absolute;
  border-radius: 50% 50% 0 0;
  pointer-events: none;
  transform-origin: bottom right;
  animation: p3rFillDrift 22s ease-in-out infinite;
}

.p3r-wave-fill.fill-1 {
  width: 74vw;
  height: 32vw;
  right: -18vw;
  bottom: -13vw;
  transform: rotate(-8deg);
  background: rgba(255, 174, 203, .12);
}

.p3r-wave-fill.fill-2 {
  width: 54vw;
  height: 25vw;
  right: -9vw;
  bottom: -10vw;
  transform: rotate(7deg);
  background: rgba(201, 182, 255, .11);
  animation-delay: -9s;
}

.p3r-disc {
  position: fixed;
  width: 78vw;
  height: 78vw;
  min-width: 620px;
  min-height: 620px;
  right: -22vw;
  bottom: -44vw;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  background: #ffd6e5;
  box-shadow:
    0 0 0 24px rgba(255, 174, 203, .05),
    0 0 0 68px rgba(255, 174, 203, .025);
}

@keyframes p3rWaveDrift {
  0%, 100% { transform: rotate(-24deg) scale(1); }
  50% { transform: rotate(-16deg) scale(1.04); }
}

@keyframes p3rFillDrift {
  0%, 100% { transform: rotate(-8deg) translateX(0); }
  50% { transform: rotate(-4deg) translateX(-2vw); }
}

/* 过场：粉色波浪从右下扫过；内容替换完成后退出 */
.p3r-transition {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  overflow: hidden;
  visibility: hidden;
}

.p3r-transition::before {
  content: "";
  position: absolute;
  top: -20vh;
  right: -35vw;
  width: 150vw;
  height: 160vh;
  border-radius: 50% 0 0 50%;
  background: linear-gradient(
    110deg,
    rgba(255, 120, 171, .96) 0 34%,
    rgba(255, 214, 229, .98) 34% 57%,
    rgba(201, 182, 255, .92) 57% 76%,
    transparent 76% 100%
  );
  transform: translateX(120%) rotate(-8deg);
}

html.pjax-loading .p3r-transition {
  visibility: visible;
}

html.pjax-loading .p3r-transition::before {
  animation: p3rTransitionSweep .52s cubic-bezier(.7, 0, .25, 1) both;
}

@keyframes p3rTransitionSweep {
  0% { transform: translateX(120%) rotate(-8deg); }
  45% { transform: translateX(0) rotate(-8deg); }
  70% { transform: translateX(0) rotate(-8deg); }
  100% { transform: translateX(-120%) rotate(-8deg); }
}

@media (max-width: 760px) {
  .p3r-wave.wave-1 { border-width: 10vw; }
  .p3r-wave.wave-2 { border-width: 6vw; }
  .p3r-wave.wave-3 { border-width: 3.5vw; }
}

@media (prefers-reduced-motion: reduce) {
  .p3r-wave,
  .p3r-wave-fill,
  html.pjax-loading .p3r-transition::before {
    animation: none !important;
  }
}


/* 1.0.24 切页只让背景波浪动，不做整屏遮罩 */
.p3r-transition {
  display: none !important;
}

html.pjax-loading .p3r-wave-layer {
  animation: p3rBgBurst .45s ease-out both;
  transform-origin: 82% 100%;
}

html.pjax-loading .p3r-disc {
  animation: p3rDiscBurst .45s ease-out both;
}

html.pjax-loading .p3r-wave {
  animation-duration: 13s;
}

@keyframes p3rBgBurst {
  0% { transform: scale(1); opacity: 1; }
  45% { transform: scale(1.035) translate(-1vw, -.6vw); opacity: .9; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes p3rDiscBurst {
  0% { transform: scale(1); }
  50% { transform: scale(1.035); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html.pjax-loading .p3r-wave-layer,
  html.pjax-loading .p3r-disc {
    animation: none !important;
  }
}


/* 1.0.25 全屏波浪只在背景层扫过，不遮挡正文 */
html.pjax-loading .p3r-wave-layer {
  animation: none !important;
}

.p3r-bg-sweep {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 4;
  visibility: hidden;
}

.p3r-bg-sweep::before {
  content: "";
  position: absolute;
  top: -24vh;
  right: -38vw;
  width: 150vw;
  height: 160vh;
  border-radius: 50% 0 0 50%;
  background: linear-gradient(
    110deg,
    rgba(255, 120, 171, .88) 0 31%,
    rgba(255, 214, 229, .92) 31% 52%,
    rgba(201, 182, 255, .82) 52% 70%,
    transparent 70% 100%
  );
  transform: translateX(120%) rotate(-8deg);
}

html.pjax-loading .p3r-bg-sweep {
  visibility: visible;
}

html.pjax-loading .p3r-bg-sweep::before {
  animation: p3rBgSweep .62s cubic-bezier(.7, 0, .25, 1) both;
}

@keyframes p3rBgSweep {
  0% { transform: translateX(120%) rotate(-8deg); }
  42% { transform: translateX(0) rotate(-8deg); }
  68% { transform: translateX(0) rotate(-8deg); }
  100% { transform: translateX(-120%) rotate(-8deg); }
}

@media (prefers-reduced-motion: reduce) {
  html.pjax-loading .p3r-bg-sweep::before {
    animation: none !important;
  }
}






/* 1.0.28 P3R 风格双层波浪转场 */
.p3r-bg-sweep {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 4;
  visibility: hidden;
}

.p3r-bg-sweep::before,
.p3r-bg-sweep::after {
  content: "";
  position: absolute;
  top: -65vh;
  bottom: -65vh;
  width: 220vw;
  border-radius: 50% 0 50% 0;
  transform-origin: center center;
  transform: translateX(120%) rotate(-8deg);
  opacity: 0;
  backface-visibility: hidden;
}

.p3r-bg-sweep::before {
  left: -90vw;
  background:
    repeating-linear-gradient(115deg,
      rgba(255,255,255,.10) 0 8px,
      transparent 8px 34px),
    linear-gradient(115deg,
      #ff9fc0 0 32%,
      #ffe4ef 32% 54%,
      #e4c8ff 54% 76%,
      #ffd6e5 76% 100%);
}

.p3r-bg-sweep::after {
  left: -70vw;
  background:
    linear-gradient(115deg,
      rgba(255,255,255,.72) 0 5%,
      rgba(255,214,229,.60) 5% 22%,
      rgba(255,159,192,.20) 22% 45%,
      transparent 45% 100%);
  mix-blend-mode: screen;
}

html.pjax-loading .p3r-bg-sweep {
  visibility: visible;
}

html.pjax-loading .p3r-bg-sweep::before {
  animation: p3rSweepMain .72s cubic-bezier(.16, 1, .3, 1) both;
}

html.pjax-loading .p3r-bg-sweep::after {
  animation: p3rSweepAccent .72s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: .035s;
}

@keyframes p3rSweepMain {
  0% {
    transform: translateX(120%) rotate(-8deg) scaleX(1);
    opacity: 0;
  }
  10% { opacity: 1; }
  46% {
    transform: translateX(0) rotate(-8deg) scaleX(1);
    opacity: 1;
  }
  66% {
    transform: translateX(-3%) rotate(-8deg) scaleX(1.015);
    opacity: 1;
  }
  100% {
    transform: translateX(-120%) rotate(-8deg) scaleX(1);
    opacity: 0;
  }
}

@keyframes p3rSweepAccent {
  0% {
    transform: translateX(122%) rotate(-8deg);
    opacity: 0;
  }
  12% { opacity: .9; }
  50% {
    transform: translateX(-1%) rotate(-8deg);
    opacity: .85;
  }
  72% {
    transform: translateX(-7%) rotate(-8deg);
    opacity: .65;
  }
  100% {
    transform: translateX(-122%) rotate(-8deg);
    opacity: 0;
  }
}

/* 波浪背景保持原速，不再在 loading 时跳变 */
html.pjax-loading .p3r-wave {
  animation-duration: 22s !important;
}

html.pjax-loading .p3r-wave-layer,
html.pjax-loading .p3r-disc {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html.pjax-loading .p3r-bg-sweep::before,
  html.pjax-loading .p3r-bg-sweep::after {
    animation: none !important;
  }
}


/* 1.0.30 在 1.0.28 双层波浪基础上平滑收尾 */
.p3r-bg-sweep::before,
.p3r-bg-sweep::after {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity;
  animation-fill-mode: both;
}

html.pjax-loading .p3r-bg-sweep::before {
  animation: p3rSweepMainSmooth .82s cubic-bezier(.55, .06, .22, 1) both;
}

html.pjax-loading .p3r-bg-sweep::after {
  animation: p3rSweepAccentSmooth .78s cubic-bezier(.55, .06, .22, 1) both;
  animation-delay: .035s;
}

@keyframes p3rSweepMainSmooth {
  0% {
    transform: translate3d(120%, 0, 0) rotate(-8deg);
    opacity: 0;
  }
  10% { opacity: 1; }
  46% {
    transform: translate3d(0, 0, 0) rotate(-8deg);
    opacity: 1;
  }
  64% {
    transform: translate3d(0, 0, 0) rotate(-8deg);
    opacity: 1;
  }
  84% {
    transform: translate3d(-105%, 0, 0) rotate(-8deg);
    opacity: .7;
  }
  100% {
    transform: translate3d(-125%, 0, 0) rotate(-8deg);
    opacity: 0;
  }
}

@keyframes p3rSweepAccentSmooth {
  0% {
    transform: translate3d(122%, 0, 0) rotate(-8deg);
    opacity: 0;
  }
  12% { opacity: .9; }
  50% {
    transform: translate3d(-1%, 0, 0) rotate(-8deg);
    opacity: .8;
  }
  78% {
    transform: translate3d(-88%, 0, 0) rotate(-8deg);
    opacity: .45;
  }
  100% {
    transform: translate3d(-125%, 0, 0) rotate(-8deg);
    opacity: 0;
  }
}




/* 1.0.32 内容幕布：从右下圆向外扩散，再收缩 */
.p3r-bg-sweep {
  display: none !important;
}

html.pjax-loading .p3r-wave-layer {
  visibility: hidden !important;
}

html.pjax-loading .site-main {
  pointer-events: none;
}

.site-header {
  z-index: 40 !important;
}

.site-footer {
  position: relative;
  z-index: 40 !important;
  background: var(--bg);
}

.p3r-content-curtain {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}

.p3r-content-curtain::before,
.p3r-content-curtain::after {
  content: "";
  position: absolute;
  left: 95%;
  top: 95%;
  border-radius: 50%;
  transform-origin: center center;
  translate: -50% -50%;
  opacity: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity;
}

.p3r-content-curtain::before {
  width: 140vmax;
  height: 140vmax;
  background:
    radial-gradient(circle at 36% 30%,
      #ff9fc0 0 24%,
      #ffd1e2 24% 43%,
      #ffeaf2 43% 65%,
      #e4c8ff 65% 82%,
      #ffd6e5 82% 100%);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, .55),
    0 0 0 18px rgba(255, 174, 203, .18),
    0 0 0 46px rgba(201, 182, 255, .10);
  transform: scale(.02);
}

.p3r-content-curtain::after {
  width: 104vmax;
  height: 104vmax;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .52);
  box-shadow:
    0 0 0 10px rgba(255, 190, 215, .10),
    0 0 0 28px rgba(201, 182, 255, .08);
  transform: scale(.02);
}

html.pjax-loading .p3r-content-curtain {
  visibility: visible;
}

html.pjax-loading .p3r-content-curtain::before {
  animation: p3rCircleCurtain 1.18s cubic-bezier(.55, .06, .22, 1) both;
}

html.pjax-loading .p3r-content-curtain::after {
  animation: p3rCircleRing 1.18s cubic-bezier(.55, .06, .22, 1) both;
  animation-delay: .035s;
}

@keyframes p3rCircleCurtain {
  0% {
    transform: scale(.02);
    opacity: 0;
  }
  8% { opacity: 1; }
  40% {
    transform: scale(1.9);
    opacity: 1;
  }
  62% {
    transform: scale(1.9);
    opacity: 1;
  }
  100% {
    transform: scale(.02);
    opacity: 0;
  }
}

@keyframes p3rCircleRing {
  0% {
    transform: scale(.03);
    opacity: 0;
  }
  10% { opacity: .9; }
  42% {
    transform: scale(2.15);
    opacity: .75;
  }
  65% {
    transform: scale(2.15);
    opacity: .55;
  }
  100% {
    transform: scale(.03);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.pjax-loading .p3r-content-curtain::before,
  html.pjax-loading .p3r-content-curtain::after {
    animation: none !important;
  }
}


/* 1.0.33 幕布圆心与右下背景圆对齐，并让线条即时出现 */
.p3r-content-curtain::before,
.p3r-content-curtain::after {
  left: 83%;
  top: calc(100% + 5vw);
}

html.pjax-loading .p3r-wave-layer {
  visibility: visible !important;
}


/* 1.0.34 幕布从右下背景圆本体放大，而不是独立小圆 */
.p3r-content-curtain::before,
.p3r-content-curtain::after {
  left: auto;
  top: auto;
  right: -22vw;
  bottom: -44vw;
  width: 78vw;
  height: 78vw;
  min-width: 620px;
  min-height: 620px;
  translate: none;
  transform: scale(1);
}

.p3r-content-curtain::before {
  background: #ffd6e5;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, .5),
    0 0 0 18px rgba(255, 174, 203, .08);
}

.p3r-content-curtain::after {
  width: 78vw;
  height: 78vw;
  min-width: 620px;
  min-height: 620px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .55);
  box-shadow: 0 0 0 14px rgba(255, 174, 203, .06);
}

html.pjax-loading .p3r-content-curtain::before {
  animation: p3rDiscCurtain 1.18s cubic-bezier(.55, .06, .22, 1) both !important;
}

html.pjax-loading .p3r-content-curtain::after {
  animation: p3rDiscRing 1.18s cubic-bezier(.55, .06, .22, 1) both !important;
}

@keyframes p3rDiscCurtain {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  42% {
    transform: scale(3.8);
    opacity: 1;
  }
  64% {
    transform: scale(3.8);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

@keyframes p3rDiscRing {
  0% {
    transform: scale(1.02);
    opacity: .8;
  }
  45% {
    transform: scale(4.05);
    opacity: .55;
  }
  68% {
    transform: scale(4.05);
    opacity: .4;
  }
  100% {
    transform: scale(1.02);
    opacity: 0;
  }
}


/* 1.0.35 扩散后不缩回：幕布淡出，右下重新长出圆和线条 */
html.pjax-loading .p3r-content-curtain::before {
  animation: p3rDiscCurtainLoop 1.18s cubic-bezier(.55, .06, .22, 1) both !important;
}

html.pjax-loading .p3r-content-curtain::after {
  animation: p3rDiscRingLoop 1.18s cubic-bezier(.55, .06, .22, 1) both !important;
}

@keyframes p3rDiscCurtainLoop {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  40% {
    transform: scale(3.8);
    opacity: 1;
  }
  64% {
    transform: scale(3.8);
    opacity: 1;
  }
  80% {
    transform: scale(3.8);
    opacity: 1;
  }
  100% {
    transform: scale(3.8);
    opacity: 0;
  }
}

@keyframes p3rDiscRingLoop {
  0% {
    transform: scale(1.02);
    opacity: .8;
  }
  45% {
    transform: scale(4.05);
    opacity: .55;
  }
  68% {
    transform: scale(4.05);
    opacity: .4;
  }
  100% {
    transform: scale(4.5);
    opacity: 0;
  }
}

/* 新页面背景重新呼吸出来 */
html.pjax-loading .p3r-disc {
  animation: p3rNewDisc 1.18s ease both !important;
  transform-origin: center center;
}

html.pjax-loading .p3r-wave-layer {
  animation: p3rNewWaves 1.18s ease both !important;
}

@keyframes p3rNewDisc {
  0%, 58% {
    opacity: 0;
    transform: scale(.16);
  }
  76% {
    opacity: 1;
    transform: scale(1.03);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes p3rNewWaves {
  0%, 58% { opacity: 0; }
  78% { opacity: .7; }
  100% { opacity: 1; }
}


/* 1.0.36 右下圆固定，只让圆环线条向外扩散；中间内容淡出 */
.p3r-content-curtain {
  display: none !important;
}

html.pjax-loading .p3r-disc {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

html.pjax-loading .p3r-wave-layer {
  visibility: visible !important;
  animation: none !important;
  opacity: 1 !important;
}

.site-main {
  transition: opacity .22s ease;
}

html.pjax-loading .site-main {
  opacity: 0;
  pointer-events: none;
}

.p3r-ripple-rings {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 4;
}

.p3r-ripple-ring {
  position: absolute;
  right: -22vw;
  bottom: -44vw;
  width: 78vw;
  height: 78vw;
  min-width: 620px;
  min-height: 620px;
  border-radius: 50%;
  border: 2px solid rgba(250, 158, 188, .42);
  opacity: 0;
  transform: scale(.25);
  transform-origin: center center;
  will-change: transform, opacity;
}

.p3r-ripple-ring.ring-2 {
  border-color: rgba(201, 182, 255, .38);
  animation-delay: .12s !important;
}

.p3r-ripple-ring.ring-3 {
  border-color: rgba(255, 226, 163, .42);
  animation-delay: .24s !important;
}

.p3r-ripple-ring.ring-4 {
  border-color: rgba(255, 174, 203, .32);
  animation-delay: .36s !important;
}

html.pjax-loading .p3r-ripple-ring {
  animation: p3rRingExpand 1.12s ease-out both !important;
}

@keyframes p3rRingExpand {
  0% {
    transform: scale(.25);
    opacity: 0;
  }
  14% {
    opacity: .9;
  }
  100% {
    transform: scale(4.2);
    opacity: 0;
  }
}


/* 1.0.38 只让原有粗波浪带向外扩散，不增加细圆环 */
.p3r-ripple-rings {
  display: none !important;
}

.p3r-content-curtain {
  display: none !important;
}

html.pjax-loading .p3r-wave-layer {
  animation: p3rThickWaveExpand 1.15s cubic-bezier(.16, 1, .3, 1) both !important;
  transform-origin: 83% 105%;
  will-change: transform, opacity;
}

html.pjax-loading .p3r-wave,
html.pjax-loading .p3r-wave-fill {
  animation-play-state: running !important;
}

@keyframes p3rThickWaveExpand {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
    opacity: 1;
  }
  48% {
    transform: scale(1.12) translate3d(-1.4vw, -.8vw, 0);
    opacity: .92;
  }
  78% {
    transform: scale(1.24) translate3d(-2.2vw, -1.3vw, 0);
    opacity: .62;
  }
  100% {
    transform: scale(1.34) translate3d(-2.8vw, -1.7vw, 0);
    opacity: 0;
  }
}

/* 内容淡出，等粗波浪扩完再淡入 */
.site-main {
  transition: opacity .24s ease;
}

html.pjax-loading .site-main {
  opacity: 0;
  pointer-events: none;
}


/* 1.0.39 冻结波浪自身漂移，整组粗波浪平滑外扩再回到原位 */
html.pjax-loading .p3r-wave,
html.pjax-loading .p3r-wave-fill {
  animation-play-state: paused !important;
}

html.pjax-loading .p3r-wave-layer {
  animation: p3rThickWaveSmooth 1.12s cubic-bezier(.45, 0, .2, 1) both !important;
  transform-origin: 83% 105%;
  will-change: transform, opacity;
}

@keyframes p3rThickWaveSmooth {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
  24% {
    transform: translate3d(-.8vw, -.35vw, 0) scale(1.06);
    opacity: .96;
  }
  52% {
    transform: translate3d(-2.1vw, -1.2vw, 0) scale(1.18);
    opacity: .82;
  }
  76% {
    transform: translate3d(-2.7vw, -1.55vw, 0) scale(1.22);
    opacity: .55;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
}

/* 内容只负责淡入淡出，不参与空间位移 */
.site-main {
  transition: opacity .24s ease;
}

html.pjax-loading .site-main {
  opacity: 0;
  pointer-events: none;
}


/* 1.0.40 复制粗波浪层向外放大并淡出，底层不缩回 */
.p3r-ripple-rings,
.p3r-content-curtain {
  display: none !important;
}

html.pjax-loading .p3r-wave,
html.pjax-loading .p3r-wave-fill {
  animation-play-state: paused !important;
}

html.pjax-loading .p3r-wave-layer {
  visibility: visible !important;
  animation: none !important;
}

.p3r-wave-burst {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
  visibility: hidden;
  transform-origin: 83% 105%;
  will-change: transform, opacity;
}

.p3r-wave-burst .p3r-wave,
.p3r-wave-burst .p3r-wave-fill {
  animation: none !important;
}

html.pjax-loading .p3r-wave-burst {
  visibility: visible;
  animation: p3rThickWaveBurst 1.12s cubic-bezier(.4, 0, .2, 1) both;
}

@keyframes p3rThickWaveBurst {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
  24% {
    transform: translate3d(-.6vw, -.25vw, 0) scale(1.06);
    opacity: .98;
  }
  58% {
    transform: translate3d(-1.6vw, -.9vw, 0) scale(1.22);
    opacity: .78;
  }
  100% {
    transform: translate3d(-2.8vw, -1.6vw, 0) scale(1.42);
    opacity: 0;
  }
}

.site-main {
  transition: opacity .24s ease;
}

html.pjax-loading .site-main {
  opacity: 0;
  pointer-events: none;
}


/* 1.0.41 复制层用不透明奶油底，避免原背景和转场层同时出现 */
.p3r-wave-burst {
  background: var(--bg);
  isolation: isolate;
  will-change: transform, opacity;
}

.p3r-wave-burst .p3r-wave,
.p3r-wave-burst .p3r-wave-fill {
  z-index: 2;
}

.p3r-wave-burst .burst-disc {
  position: absolute;
  right: -22vw;
  bottom: -44vw;
  width: 78vw;
  height: 78vw;
  min-width: 620px;
  min-height: 620px;
  z-index: 3;
  background: #ffd6e5;
}

html.pjax-loading .p3r-wave-burst {
  animation: p3rThickWaveBurstOpaque 1.12s cubic-bezier(.4, 0, .2, 1) both !important;
}

@keyframes p3rThickWaveBurstOpaque {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
  24% {
    transform: translate3d(-.6vw, -.25vw, 0) scale(1.06);
    opacity: 1;
  }
  58% {
    transform: translate3d(-1.6vw, -.9vw, 0) scale(1.22);
    opacity: 1;
  }
  82% {
    transform: translate3d(-2.3vw, -1.3vw, 0) scale(1.3);
    opacity: .9;
  }
  100% {
    transform: translate3d(-2.8vw, -1.6vw, 0) scale(1.42);
    opacity: 0;
  }
}


/* 1.0.42 只做一次平滑放大，减少复合动画的卡顿 */
.p3r-wave-burst {
  transform: translateZ(0);
  will-change: transform, opacity;
}

html.pjax-loading .p3r-wave-burst {
  animation: p3rThickWaveSimple 1.2s cubic-bezier(.22, 1, .36, 1) both !important;
}

@keyframes p3rThickWaveSimple {
  0% {
    transform: translateZ(0) scale(1);
    opacity: 1;
  }
  72% {
    transform: translateZ(0) scale(1.48);
    opacity: .92;
  }
  100% {
    transform: translateZ(0) scale(1.62);
    opacity: 0;
  }
}


/* 1.0.43 实心圆固定，粗波浪一组接一组向外扩散，不遮内容 */
.p3r-content-curtain,
.p3r-bg-sweep,
.p3r-ripple-rings,
.p3r-wave-burst {
  display: none !important;
}

html.pjax-loading .site-main,
html.pjax-loading .site-header,
html.pjax-loading .site-footer {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.p3r-wave-emitter {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
  visibility: hidden;
  transform-origin: 83% 105%;
}

.p3r-wave-emitter .p3r-wave,
.p3r-wave-emitter .p3r-wave-fill {
  animation: none !important;
}

.p3r-wave-pass {
  position: absolute;
  inset: 0;
  transform-origin: 83% 105%;
  opacity: 0;
  will-change: transform, opacity;
}

html.pjax-loading .p3r-wave-layer {
  visibility: hidden !important;
}

html.pjax-loading .p3r-wave-emitter {
  visibility: visible;
}

html.pjax-loading .p3r-wave-pass.pass-1 {
  animation: p3rWaveEmit .78s ease-out both;
}

html.pjax-loading .p3r-wave-pass.pass-2 {
  animation: p3rWaveEmit .78s ease-out both;
  animation-delay: .2s;
}

html.pjax-loading .p3r-wave-pass.pass-3 {
  animation: p3rWaveEmit .78s ease-out both;
  animation-delay: .4s;
}

@keyframes p3rWaveEmit {
  0% {
    transform: scale(1);
    opacity: 0;
  }
  10% { opacity: .95; }
  55% {
    transform: scale(1.7);
    opacity: .62;
  }
  100% {
    transform: scale(2.45);
    opacity: 0;
  }
}

/* 底部实心圆保持固定，不被转场层盖住 */
.p3r-disc {
  z-index: 3 !important;
}


/* 1.0.44 慢速粗波浪发射：从圆内部开始，越过圆边后渐显 */
html.pjax-loading .p3r-wave-pass.pass-1 {
  animation: p3rWaveEmitSmooth 1.25s cubic-bezier(.22, 1, .36, 1) both !important;
}

html.pjax-loading .p3r-wave-pass.pass-2 {
  animation: p3rWaveEmitSmooth 1.25s cubic-bezier(.22, 1, .36, 1) both !important;
  animation-delay: .35s !important;
}

html.pjax-loading .p3r-wave-pass.pass-3 {
  animation: p3rWaveEmitSmooth 1.25s cubic-bezier(.22, 1, .36, 1) both !important;
  animation-delay: .7s !important;
}

@keyframes p3rWaveEmitSmooth {
  0% {
    transform: scale(.78);
    opacity: 0;
  }
  12% {
    opacity: .12;
  }
  28% {
    transform: scale(1.12);
    opacity: .92;
  }
  58% {
    transform: scale(1.68);
    opacity: .55;
  }
  100% {
    transform: scale(2.45);
    opacity: 0;
  }
}


/* 1.0.45 粗波浪用透明纹理缩放，减少多元素重绘卡顿 */
.p3r-wave-emitter {
  background: transparent !important;
}

.p3r-wave-pass {
  background-image: url("../images/p3r-thick-waves.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  transform-origin: 83% 105%;
}

html.pjax-loading .p3r-wave-pass {
  will-change: transform, opacity;
}


/* 1.0.46 只保留背景、实心圆和粗波浪漂浮，不要切页转场 */
.p3r-wave-emitter,
.p3r-wave-burst,
.p3r-ripple-rings,
.p3r-bg-sweep,
.p3r-content-curtain {
  display: none !important;
}

html.pjax-loading .p3r-wave-layer {
  visibility: visible !important;
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

html.pjax-loading .p3r-wave,
html.pjax-loading .p3r-wave-fill {
  animation-play-state: running !important;
}

html.pjax-loading .p3r-disc {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

html.pjax-loading .site-main,
html.pjax-loading .site-header,
html.pjax-loading .site-footer {
  opacity: 1 !important;
  pointer-events: auto !important;
}


/* 1.0.47 整张文章标签纸可点击，标题链负责拉伸热区 */
.post-card {
  position: relative;
  cursor: pointer;
}

.post-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

.post-card .post-kicker,
.post-card .post-meta,
.post-card .post-cover {
  position: relative;
  z-index: 3;
}

.post-card .post-cover {
  z-index: 3;
}


/* 1.0.48 右上角背景音乐开关 */
.music-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: rgba(255, 250, 242, .8);
  border: 1px solid rgba(250, 158, 188, .6);
  border-radius: 50%;
  color: var(--blue);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, opacity .2s ease;
}

.music-toggle:hover {
  background: var(--pink-soft);
  color: #a93663;
}

.music-toggle svg {
  width: 17px;
  height: 17px;
}

.music-toggle.is-muted {
  opacity: .55;
}

.music-slash {
  display: none;
  position: absolute;
  width: 20px;
  height: 2px;
  background: currentColor;
  transform: rotate(-45deg);
  border-radius: 2px;
}

.music-toggle.is-muted .music-slash {
  display: block;
}

@media (max-width: 760px) {
  .music-toggle {
    width: 34px;
    height: 34px;
  }
}


/* 1.0.49 夜间模式与日/夜切换按钮 */
.header-actions .music-toggle { order: 1; }
.header-actions .scheme-toggle { order: 2; }
.header-actions .user-button { order: 3; }

.scheme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: rgba(255, 250, 242, .8);
  border: 1px solid rgba(250, 158, 188, .6);
  border-radius: 50%;
  color: var(--blue);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.scheme-toggle:hover {
  background: var(--pink-soft);
  color: #a93663;
}

.scheme-toggle svg {
  width: 18px;
  height: 18px;
}

.scheme-toggle .moon-icon {
  display: none;
}

html[data-theme="dark"] .scheme-toggle .sun-icon {
  display: none;
}

html[data-theme="dark"] .scheme-toggle .moon-icon {
  display: block;
}

@media (max-width: 760px) {
  .scheme-toggle {
    width: 34px;
    height: 34px;
  }
}

/* 夜间配色：午夜蓝底、粉紫强调、深色纸张 */
html[data-theme="dark"] {
  color-scheme: dark !important;
  --bg: #0b0a18;
  --paper: #17142a;
  --pink: #ff9fc4;
  --pink-soft: #321b39;
  --lilac: #c79bff;
  --lilac-soft: #211a3d;
  --blue: #f2eaff;
  --ink: #e7e0f4;
  --muted: #a39ab8;
  --line: rgba(255, 159, 196, .42);
  --shadow: 0 8px 0 rgba(255, 159, 196, .12), 0 18px 34px rgba(0, 0, 0, .28);
}

html[data-theme="dark"],
html[data-theme="dark"] body {
  background: #0b0a18 !important;
  color: #e7e0f4 !important;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 159, 196, .13), transparent 26rem),
    radial-gradient(circle at 82% 16%, rgba(199, 155, 255, .12), transparent 25rem),
    linear-gradient(180deg, #0d0b1b 0%, #0b0a18 52%, #090711 100%) !important;
}

html[data-theme="dark"] .site-header {
  background: rgba(11, 10, 24, .96) !important;
  border-bottom-color: rgba(255, 159, 196, .55) !important;
}

html[data-theme="dark"] .site-footer {
  background: #0b0a18 !important;
  border-top-color: rgba(255, 159, 196, .32) !important;
}

html[data-theme="dark"] .brand-name {
  color: #ff9fc4 !important;
  text-shadow: 2px 2px 0 #241630, 4px 4px 0 rgba(199, 155, 255, .25) !important;
}

html[data-theme="dark"] .site-nav a,
html[data-theme="dark"] .footer-links a {
  color: #e7dcf5 !important;
}

html[data-theme="dark"] .site-nav a:hover,
html[data-theme="dark"] .site-nav a.active,
html[data-theme="dark"] .footer-links a:hover {
  color: #ff9fc4 !important;
}

html[data-theme="dark"] .search-button,
html[data-theme="dark"] .music-toggle,
html[data-theme="dark"] .scheme-toggle,
html[data-theme="dark"] .user-button {
  background: rgba(23, 20, 42, .88) !important;
  border-color: rgba(255, 159, 196, .42) !important;
  color: #f2eaff !important;
}

html[data-theme="dark"] .search-button:hover,
html[data-theme="dark"] .music-toggle:hover,
html[data-theme="dark"] .scheme-toggle:hover,
html[data-theme="dark"] .user-button:hover {
  background: #321b39 !important;
  color: #ff9fc4 !important;
}

html[data-theme="dark"] .momo-user-avatar-frame {
  border-color: #ff9fc4 !important;
  background: #321b39 !important;
}

html[data-theme="dark"] .hero,
html[data-theme="dark"] .diary-tile,
html[data-theme="dark"] .diary-tile:nth-child(2n),
html[data-theme="dark"] .diary-tile:nth-child(3n),
html[data-theme="dark"] .post-card,
html[data-theme="dark"] .taxonomy-card,
html[data-theme="dark"] .article-header,
html[data-theme="dark"] .scrapbook-card,
html[data-theme="dark"] .message-board-card,
html[data-theme="dark"] .footer-stats {
  background: #17142a !important;
  border-color: rgba(255, 159, 196, .42) !important;
  color: #e7e0f4 !important;
}

html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .diary-tile h3,
html[data-theme="dark"] .post-title a,
html[data-theme="dark"] .section-head h2,
html[data-theme="dark"] .page-head h1,
html[data-theme="dark"] .article-header h1,
html[data-theme="dark"] .scrapbook-card h1,
html[data-theme="dark"] .scrapbook-card h2,
html[data-theme="dark"] .scrapbook-card h3,
html[data-theme="dark"] .taxonomy-card strong,
html[data-theme="dark"] .footer-inner strong {
  color: #f5eaff !important;
}

html[data-theme="dark"] .hero-desc,
html[data-theme="dark"] .diary-tile p,
html[data-theme="dark"] .post-excerpt,
html[data-theme="dark"] .post-meta,
html[data-theme="dark"] .article-excerpt,
html[data-theme="dark"] .article-meta,
html[data-theme="dark"] .footer-inner p,
html[data-theme="dark"] .footer-bottom,
html[data-theme="dark"] .taxonomy-card span {
  color: #a99fbe !important;
}

html[data-theme="dark"] .diary-tile p.diary-heading,
html[data-theme="dark"] .section-head a,
html[data-theme="dark"] .diary-read {
  color: #ff9fc4 !important;
}

html[data-theme="dark"] .post-content,
html[data-theme="dark"] .post-content p,
html[data-theme="dark"] .post-content li {
  color: #d8cfe8;
}

html[data-theme="dark"] .post-content a {
  color: #ff9fc4;
}

html[data-theme="dark"] .post-content code {
  background: #221b36;
  color: #ffc0d9;
}

html[data-theme="dark"] .post-content pre {
  background: #090711;
  color: #e7e0f4;
}

html[data-theme="dark"] .post-content blockquote {
  background: #21152b;
  color: #d8cfe8;
}

html[data-theme="dark"] .p3r-disc {
  background: #4a203d !important;
  box-shadow: 0 0 0 24px rgba(255, 159, 196, .06), 0 0 0 68px rgba(199, 155, 255, .04) !important;
}

html[data-theme="dark"] .p3r-wave.wave-1 {
  border-color: rgba(255, 159, 196, .24) transparent transparent rgba(255, 159, 196, .12) !important;
}

html[data-theme="dark"] .p3r-wave.wave-2 {
  border-color: transparent rgba(199, 155, 255, .22) transparent rgba(199, 155, 255, .08) !important;
}

html[data-theme="dark"] .p3r-wave.wave-3 {
  border-color: rgba(255, 159, 196, .22) transparent transparent transparent !important;
}

html[data-theme="dark"] .p3r-wave-fill.fill-1 {
  background: rgba(255, 159, 196, .10) !important;
}

html[data-theme="dark"] .p3r-wave-fill.fill-2 {
  background: rgba(199, 155, 255, .09) !important;
}


/* 1.0.50 夜间普通文章头保持透明，只有手账文章保留深色纸卡 */
html[data-theme="dark"] .article-header {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .scrapbook-post .article-header {
  background: #17142a !important;
  border: 2px dashed rgba(255, 159, 196, .42) !important;
  box-shadow: 0 7px 0 rgba(255, 159, 196, .12), 0 16px 28px rgba(0, 0, 0, .26) !important;
}


/* 1.0.51 评论插件 Shadow DOM 的夜间变量 */
html[data-theme="dark"] comment-widget,
html[data-theme="dark"] comment-widget[data-color-scheme="dark"] {
  --halo-cw-primary-1-color: #ff9fc4;
  --halo-cw-primary-2-color: #e47dab;
  --halo-cw-primary-3-color: #9b4b72;
  --halo-cw-text-1-color: #f9fafb;
  --halo-cw-text-2-color: #e5dff1;
  --halo-cw-text-3-color: #b2a7c5;
  --halo-cw-muted-1-color: #8d7fa5;
  --halo-cw-muted-2-color: #6f6285;
  --halo-cw-muted-3-color: #4c405e;
  --halo-cw-emoji-picker-rgb-color: 222, 222, 221;
  --halo-cw-emoji-picker-rgb-accent: 255, 159, 196;
  --halo-cw-emoji-picker-rgb-background: 21, 16, 32;
  --halo-cw-emoji-picker-rgb-input: 11, 10, 24;
  --halo-cw-emoji-picker-color-border: rgba(255, 255, 255, .14);
  --halo-cw-emoji-picker-color-border-over: rgba(255, 255, 255, .3);
}

html[data-theme="dark"] .comments-title {
  color: #f5eaff !important;
}

html[data-theme="dark"] .comments {
  color: #e5dff1;
}


/* 1.0.52 文章右侧目录 */
.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 840px) 224px;
  gap: 34px;
  width: min(1120px, 100%);
  margin: 0 auto;
  align-items: start;
}

.article-shell > .article {
  width: 100%;
  min-width: 0;
  margin: 40px 0 60px;
}

.article-toc {
  position: sticky;
  top: 110px;
  margin-top: 40px;
  min-width: 0;
}

.article-toc[hidden] {
  display: none !important;
}

.article-toc-inner {
  padding: 16px 16px 14px;
  background: rgba(255, 250, 242, .82);
  border: 1px dashed var(--line);
  border-radius: 16px;
  box-shadow: 0 5px 0 rgba(250, 158, 188, .08);
}

.article-toc-title {
  padding-bottom: 10px;
  margin-bottom: 9px;
  border-bottom: 1px dashed rgba(201, 182, 255, .7);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}

.article-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: calc(100vh - 190px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.article-toc-link {
  display: block;
  padding: 5px 7px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.article-toc-link:hover,
.article-toc-link.is-active {
  color: #a93663;
  border-left-color: var(--pink);
  background: var(--pink-soft);
}

.article-toc-link.toc-level-h2 {
  padding-left: 18px;
}

.article-toc-link.toc-level-h3 {
  padding-left: 30px;
  font-size: 11px;
}

html[data-theme="dark"] .article-toc-inner {
  background: rgba(23, 20, 42, .9);
  border-color: rgba(255, 159, 196, .42);
}

html[data-theme="dark"] .article-toc-title {
  color: #f5eaff;
  border-bottom-color: rgba(199, 155, 255, .35);
}

html[data-theme="dark"] .article-toc-link:hover,
html[data-theme="dark"] .article-toc-link.is-active {
  color: #ff9fc4;
  background: #321b39;
}

@media (max-width: 1120px) {
  .article-shell {
    display: block;
    width: 100%;
  }

  .article-toc {
    display: none;
  }
}


/* 1.0.55 夜间模式覆盖 Shiki 代码块白底 */
html[data-theme="dark"] .post-content pre,
html[data-theme="dark"] .post-content pre code,
html[data-theme="dark"] .post-content .shiki,
html[data-theme="dark"] .post-content .shiki code,
html[data-theme="dark"] .post-content .shiki .line {
  background: #0d0b1b !important;
  color: #e7e0f4 !important;
  border-color: rgba(199, 155, 255, .28) !important;
}

html[data-theme="dark"] .post-content pre {
  border: 1px solid rgba(199, 155, 255, .22) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] .post-content pre code {
  background: transparent !important;
  padding: 0 !important;
}

html[data-theme="dark"] .post-content .shiki .line {
  background: transparent !important;
}


/* 1.0.59 留言板三种布局 */
.message-board-card.message-board-wide {
  max-width: 1180px;
}

.message-board-card.message-board-wide .message-board-content,
.message-board-card.message-board-wide .comments {
  max-width: none;
}

.message-board-card.message-board-wide .comments-title {
  margin-bottom: 16px;
}


/* 1.0.61 侧边编辑器是独立窗口，不再被大卡片包住 */
.message-board-card.message-board-wide {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.message-board-card.message-board-wide .message-board-label {
  margin-left: 2px;
}

.message-board-card.message-board-wide .comments {
  border-top: 0 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.message-board-card.message-board-wide .comments-title {
  margin-top: 0;
  margin-bottom: 18px;
}

html[data-theme="dark"] .message-board-card.message-board-wide .comment-widget[data-momo-layout="editor-side"] > comment-list,
html[data-theme="dark"] .message-board-card.message-board-wide .comment-widget[data-momo-layout="editor-side"] > comment-form {
  background: #17142a !important;
  border-color: rgba(255, 159, 196, .42) !important;
  box-shadow: 0 7px 0 rgba(255, 159, 196, .10), 0 16px 28px rgba(0, 0, 0, .26) !important;
}


/* 1.0.62 宽屏留言板：评论居中，编辑器独立靠右 */
.message-board-page {
  width: min(1440px, calc(100vw - 32px));
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.message-board-card.message-board-wide {
  max-width: none;
  width: 100%;
}

@media (max-width: 1200px) {
  .message-board-page {
    width: auto;
    left: auto;
    transform: none;
  }

  .message-board-card.message-board-wide {
    width: 100%;
  }
}


/* 1.0.63 手账文章：顶部标题卡保持水平，正文卡片继续交错倾斜 */
.scrapbook-post .article-header {
  transform: rotate(0deg) !important;
}


/* 1.0.64 留言板模式去掉巨大的深色背景圆，只保留淡波浪 */
body:has(.message-board-page) .p3r-disc,
body.is-message-board .p3r-disc {
  display: none !important;
}

body:has(.message-board-page) .p3r-wave-layer,
body.is-message-board .p3r-wave-layer {
  opacity: .34;
}


/* 1.0.65 留言板去掉背景波浪；手账卡片增加错位和倾斜 */
body:has(.message-board-page) .p3r-wave-layer,
body.is-message-board .p3r-wave-layer {
  display: none !important;
}

@media (min-width: 761px) {
  .scrapbook-post .scrapbook-card {
    transform: rotate(-1.1deg);
  }

  .scrapbook-post .scrapbook-card:nth-child(2n) {
    margin-left: 6%;
    margin-right: auto;
    transform: rotate(1.65deg);
  }

  .scrapbook-post .scrapbook-card:nth-child(3n) {
    margin-left: auto;
    margin-right: 5%;
    transform: rotate(-1.9deg);
  }

  .scrapbook-post .scrapbook-card:nth-child(4n) {
    margin-left: 8%;
    margin-right: auto;
    transform: rotate(2.1deg);
  }
}


/* 1.0.66 夜间留言板外层保持透明，避免再次出现大黑底 */
html[data-theme="dark"] .message-board-card.message-board-wide {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* 1.0.67 收紧留言板标签与留言标题之间的间距 */
.message-board-card.message-board-wide .message-board-label { margin-bottom: 6px; }
.message-board-card.message-board-wide .message-board-content { margin-top: 0 !important; margin-bottom: 8px !important; }
.message-board-card.message-board-wide .comments { margin-top: 0 !important; padding-top: 0 !important; }
.message-board-card.message-board-wide .comments-title { margin-top: 0 !important; margin-bottom: 14px !important; }


/* 1.0.69 留言板标签/标题对齐评论列；手账卡片加大错位 */
@media (min-width: 1201px) {
  .message-board-card.message-board-wide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 760px) minmax(0, 1fr);
    column-gap: 24px;
    align-items: start;
  }

  .message-board-card.message-board-wide::before {
    left: calc(50% - 372px);
  }

  .message-board-card.message-board-wide .message-board-label {
    grid-column: 2;
    justify-self: start;
    margin: 0 0 8px;
  }

  .message-board-card.message-board-wide .message-board-content {
    grid-column: 2;
    margin: 0 0 8px;
  }

  .message-board-card.message-board-wide .comments {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 760px) minmax(0, 1fr);
    column-gap: 24px;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .message-board-card.message-board-wide .comments-title {
    grid-column: 2;
    margin: 0 0 14px !important;
  }

  .message-board-card.message-board-wide .comments > comment-widget,
  .message-board-card.message-board-wide .comments > :not(.comments-title) {
    grid-column: 1 / -1;
    min-width: 0;
  }
}

@media (max-width: 1200px) {
  .message-board-card.message-board-wide::before {
    left: 42px;
  }

  .message-board-card.message-board-wide .message-board-label {
    margin-left: 2px;
    margin-bottom: 6px;
  }
}

@media (min-width: 761px) {
  .scrapbook-post .scrapbook-card {
    transform: rotate(-1.35deg) !important;
  }

  .scrapbook-post .scrapbook-card:nth-child(2n) {
    margin-left: 9%;
    margin-right: 1%;
    transform: rotate(2.25deg) !important;
  }

  .scrapbook-post .scrapbook-card:nth-child(3n) {
    margin-left: 12%;
    margin-right: 3%;
    transform: rotate(-2.55deg) !important;
  }

  .scrapbook-post .scrapbook-card:nth-child(4n) {
    margin-left: 5%;
    margin-right: 12%;
    transform: rotate(2.8deg) !important;
  }
}


/* 1.0.70 留言板编辑器内标题；记录文章使用更宽松的手账布局 */
.message-board-card.message-board-wide > .message-board-label {
  display: none !important;
}

.message-board-card.message-board-wide::before {
  display: none !important;
}

.scrapbook-shell {
  display: block;
  width: min(1000px, 100%);
}

.scrapbook-shell .article {
  margin: 40px auto 60px;
}

.scrapbook-shell .article-toc {
  display: none !important;
}


/* 1.0.71 记录页更接近参考站：宽度不一、交错更明显、上下留白更大 */
@media (min-width: 761px) {
  .scrapbook-post .scrapbook-card {
    width: 78%;
    max-width: 780px;
    margin: 46px auto 54px;
    transform: rotate(-1.6deg) !important;
  }

  .scrapbook-post .scrapbook-card:nth-child(2n) {
    width: 72%;
    max-width: 720px;
    margin-left: 20%;
    margin-right: 4%;
    transform: rotate(2.7deg) !important;
  }

  .scrapbook-post .scrapbook-card:nth-child(3n) {
    width: 82%;
    max-width: 820px;
    margin-left: 4%;
    margin-right: 12%;
    transform: rotate(-2.9deg) !important;
  }

  .scrapbook-post .scrapbook-card:nth-child(4n) {
    width: 74%;
    max-width: 740px;
    margin-left: 16%;
    margin-right: 6%;
    transform: rotate(2.2deg) !important;
  }
}


/* 1.0.72 board swap */
.message-board-card.message-board-wide > .message-board-label { display:inline-flex !important; grid-column:2; justify-self:start; position:relative; margin:0 0 10px !important; }
.message-board-card.message-board-wide > .message-board-label::before { content:""; position:absolute; top:-14px; left:22px; width:64px; height:16px; background:rgba(201,182,255,.72); border-radius:2px; transform:rotate(-4deg); box-shadow:0 1px 2px rgba(93,122,138,.08); }
.message-board-card.message-board-wide .comments-title { display:none !important; }
.momo-editor-head { border-bottom:1px dashed rgba(201,182,255,.62) !important; padding:0 0 10px !important; margin:0 0 10px !important; }
.momo-editor-heading { color:var(--blue); font-size:22px; font-weight:800; line-height:1.2; }
.momo-editor-tape, .momo-editor-label { display:none !important; }

/* 1.0.73 胶带移到标签左上角 */
.message-board-card.message-board-wide > .message-board-label::before { top: -12px !important; left: 9px !important; width: 58px !important; height: 15px !important; }
.message-board-card.message-board-wide > .message-board-label { padding: 5px 12px !important; }

/* 1.0.74 评论卡内部标签与胶带 */
.message-board-card.message-board-wide > .message-board-label { display:none !important; }
.comment-list-main { margin-top:0 !important; }
.momo-list-head { position:relative; padding:2px 0 11px; margin:0 0 10px; border-bottom:1px dashed rgba(201,182,255,.62); }
.momo-list-tape { position:absolute; top:-12px; left:10px; width:58px; height:15px; background:rgba(201,182,255,.76); border-radius:2px; transform:rotate(-4deg); box-shadow:0 1px 2px rgba(93,122,138,.08); }
.momo-list-label { display:inline-flex; padding:4px 11px; background:var(--pink-soft); border:1px dashed rgba(250,158,188,.78); border-radius:999px; color:#a93663; font-size:12px; font-weight:700; line-height:1.25; }
.comment-widget[data-momo-layout="editor-side"] > comment-list { padding-top:14px !important; }

/* 1.0.78 收紧留言板页头与评论卡之间的留白 */
.message-board-page .message-board-head { margin-bottom: 8px !important; padding-bottom: 10px !important; }
.message-board-page .message-board-card { margin-top: 10px !important; }

/* 1.0.79 留言板页头右侧漂浮气泡 */
.message-board-decor { position:absolute; top:8px; right:7%; width:390px; height:230px; pointer-events:none; z-index:1; }
.board-bubble { position:absolute; border-radius:50%; border:2px solid rgba(250,158,188,.55); background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.55),rgba(250,158,188,.16) 48%,rgba(201,182,255,.08)); box-shadow:inset 0 0 18px rgba(255,255,255,.18),0 0 22px rgba(250,158,188,.10); animation:momo-board-bubble 7s ease-in-out infinite; }
.board-bubble-1 { width:76px; height:76px; right:36px; top:28px; animation-delay:-1.2s; }
.board-bubble-2 { width:38px; height:38px; right:146px; top:78px; border-color:rgba(201,182,255,.55); animation-delay:-3.4s; }
.board-bubble-3 { width:18px; height:18px; right:112px; top:31px; border-color:rgba(255,226,163,.8); animation-delay:-2.1s; }
.board-bubble-4 { width:52px; height:52px; right:230px; top:142px; animation-delay:-4.3s; }
.board-bubble-5 { width:12px; height:12px; right:190px; top:42px; border-color:rgba(201,182,255,.7); animation-delay:-5.2s; }
.board-spark { position:absolute; right:292px; top:66px; color:rgba(250,158,188,.72); font-size:22px; transform:rotate(12deg); animation:momo-board-spark 5s ease-in-out infinite; }
@keyframes momo-board-bubble { 0%,100% { transform:translate3d(0,0,0) rotate(-2deg); } 50% { transform:translate3d(8px,-14px,0) rotate(3deg); } }
@keyframes momo-board-spark { 0%,100% { opacity:.35; transform:rotate(12deg) scale(.9); } 50% { opacity:.9; transform:rotate(25deg) scale(1.12); } }
html[data-theme="dark"] .board-bubble { border-color:rgba(255,159,196,.5); background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.12),rgba(255,159,196,.12) 48%,rgba(199,155,255,.06)); }
@media (max-width:760px) { .message-board-decor { display:none; } }

/* 1.0.80 全站返回首页按钮 */
.back-home-wrap { display:flex; justify-content:center; padding:34px 20px 30px; position:relative; z-index:2; }
.back-home-button { display:inline-flex; align-items:center; gap:7px; padding:10px 18px; background:var(--paper); border:1px dashed rgba(250,158,188,.7); border-radius:999px; color:#a93663; font-size:14px; font-weight:700; text-decoration:none; box-shadow:0 5px 0 rgba(250,158,188,.12); transition:transform .2s ease,box-shadow .2s ease,background .2s ease; }
.back-home-button:hover { transform:translateY(-2px); background:var(--pink-soft); box-shadow:0 7px 0 rgba(250,158,188,.14); }
.back-home-arrow { font-size:16px; line-height:1; }
html[data-theme="dark"] .back-home-button { background:#17142a; border-color:rgba(255,159,196,.45); color:#ff9fc4; box-shadow:0 5px 0 rgba(255,159,196,.10); }
html[data-theme="dark"] .back-home-button:hover { background:#321b39; }

/* 1.0.81 首页不显示返回首页按钮 */
body:has(.site-main .hero) .back-home-wrap { display:none !important; }

/* 1.0.82 文章页/记录页：返回首页移到评论上方 */
.article-back-home { padding:24px 0 26px; margin-top:26px; }
body:has(.article-shell) > .back-home-wrap { display:none !important; }

/* 1.0.86 留言板恢复波浪背景动画（仍隐藏巨大深色圆盘） */
body:has(.message-board-page) .p3r-wave-layer,
body.is-message-board .p3r-wave-layer {
  display: block !important;
  opacity: .3 !important;
}

/* 1.0.87 留言板恢复与其他页面一致的完整背景动画 */
body:has(.message-board-page) .p3r-wave-layer,
body.is-message-board .p3r-wave-layer {
  display: block !important;
  opacity: 1 !important;
}
body:has(.message-board-page) .p3r-disc,
body.is-message-board .p3r-disc {
  display: block !important;
}

/* 1.0.89 预留滚动条槽位，避免页面宽度左右跳动 */
html { scrollbar-gutter: stable; }
@supports not (scrollbar-gutter: stable) {
  html { overflow-y: scroll; }
}

/* 1.0.91 置顶文章小标签 */
.diary-tile, .post-card { position: relative; }
.pinned-badge { position:absolute; top:12px; right:12px; z-index:6; padding:3px 8px; background:#fff0cf; border:1px solid rgba(255,190,70,.55); border-radius:6px; color:#a93663; font-family:"Baloo 2","Fredoka","Quicksand","Noto Sans SC",sans-serif; font-size:12px; font-weight:800; letter-spacing:.06em; line-height:1.2; transform:rotate(4deg); box-shadow:0 2px 0 rgba(250,158,188,.14); pointer-events:none; }
html[data-theme="dark"] .pinned-badge { background:#3a2a1c; border-color:rgba(255,213,128,.5); color:#ffd98a; box-shadow:0 2px 0 rgba(0,0,0,.18); }

/* 1.0.92 移动端操作收进列表菜单 */
.action-label, .mobile-actions-toggle { display:none; }
@media (max-width:760px) {
  .brand { max-width:calc(100% - 54px); overflow:hidden; text-overflow:ellipsis; }
  .mobile-actions-toggle { display:inline-flex; position:absolute; top:16px; right:0; z-index:31; width:40px; height:40px; padding:10px; flex-direction:column; justify-content:center; align-items:center; gap:4px; background:rgba(255,250,242,.82); border:1px solid rgba(250,158,188,.65); border-radius:50%; color:var(--blue); cursor:pointer; }
  .mobile-actions-toggle span { display:block; width:16px; height:2px; background:currentColor; border-radius:2px; }
  .header-actions { display:none; position:absolute; top:62px; right:0; z-index:30; width:190px; padding:8px; flex-direction:column; align-items:stretch; gap:3px; background:var(--paper); border:1px dashed rgba(250,158,188,.7); border-radius:14px; box-shadow:0 10px 24px rgba(93,122,138,.16); }
  .header-actions.is-open { display:flex; }
  .header-actions > .search-button, .header-actions > .music-toggle, .header-actions > .scheme-toggle, .header-actions > .user-button { display:flex; width:100%; height:auto; min-height:40px; justify-content:flex-start; gap:10px; padding:9px 11px; background:transparent; border:0; border-radius:9px; color:var(--ink); font-size:14px; text-align:left; }
  .header-actions > .search-button:hover, .header-actions > .music-toggle:hover, .header-actions > .scheme-toggle:hover, .header-actions > .user-button:hover { background:var(--pink-soft); transform:none; color:#a93663; }
  .header-actions .action-label { display:inline; font-family:"Noto Sans SC","Microsoft YaHei",sans-serif; font-size:14px; font-weight:600; white-space:nowrap; }
  .header-actions .music-slash { display:none; }
  .header-actions .user-name { display:inline; max-width:100px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .header-actions svg { width:18px; height:18px; flex:0 0 18px; }
  .header-actions .momo-user-avatar-frame { width:24px; height:24px; flex:0 0 24px; }
}

/* 1.0.93 桌面端也使用右上角功能列表按钮 */
.header-inner { position:relative; }
.brand { order:1; }
.site-nav { order:2; }
.mobile-actions-toggle { display:inline-flex; order:3; position:static; width:40px; height:40px; padding:10px; flex-direction:column; justify-content:center; align-items:center; gap:4px; background:rgba(255,250,242,.82); border:1px solid rgba(250,158,188,.65); border-radius:50%; color:var(--blue); cursor:pointer; }
.mobile-actions-toggle span { display:block; width:16px; height:2px; background:currentColor; border-radius:2px; }
.header-actions { display:none; position:absolute; top:calc(100% - 4px); right:0; z-index:30; width:200px; padding:8px; flex-direction:column; align-items:stretch; gap:3px; background:var(--paper); border:1px dashed rgba(250,158,188,.7); border-radius:14px; box-shadow:0 10px 24px rgba(93,122,138,.16); }
.header-actions.is-open { display:flex; }
.header-actions > .search-button, .header-actions > .music-toggle, .header-actions > .scheme-toggle, .header-actions > .user-button { display:flex; width:100%; height:auto; min-height:40px; justify-content:flex-start; gap:10px; padding:9px 11px; background:transparent; border:0; border-radius:9px; color:var(--ink); font-size:14px; text-align:left; }
.header-actions > .search-button:hover, .header-actions > .music-toggle:hover, .header-actions > .scheme-toggle:hover, .header-actions > .user-button:hover { background:var(--pink-soft); transform:none; color:#a93663; }
.header-actions .action-label { display:inline; font-family:"Noto Sans SC","Microsoft YaHei",sans-serif; font-size:14px; font-weight:600; white-space:nowrap; }
.header-actions .music-slash { display:none; }
.header-actions .user-name { display:inline; max-width:100px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.header-actions svg { width:18px; height:18px; flex:0 0 18px; }
.header-actions .momo-user-avatar-frame { width:24px; height:24px; flex:0 0 24px; }
html[data-theme="dark"] .mobile-actions-toggle { background:#17142a; border-color:rgba(255,159,196,.45); }
@media (max-width:760px) {
  .brand { max-width:calc(100% - 54px); overflow:hidden; text-overflow:ellipsis; }
  .mobile-actions-toggle { position:absolute; top:16px; right:0; order:initial; }
  .header-actions { top:62px; right:0; }
}

/* 1.0.94 登录用户菜单按钮显示头像与列表标记 */
.mobile-actions-toggle { width:44px; height:44px; padding:5px; }
.mobile-actions-toggle > .mobile-toggle-bars { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; width:16px; height:16px; }
.mobile-toggle-bars > span { display:block; width:16px; height:2px; background:currentColor; border-radius:2px; }
.mobile-actions-toggle > .mobile-toggle-avatar { display:grid; place-items:center; width:32px; height:32px; overflow:hidden; border-radius:50%; background:var(--pink-soft); color:#a93663; font-size:13px; font-weight:800; line-height:1; }
.mobile-toggle-avatar img { display:block; width:100%; height:100%; object-fit:cover; border-radius:50%; }
.mobile-toggle-avatar > span { display:grid; place-items:center; width:100%; height:100%; }
.mobile-actions-toggle > .mobile-toggle-mark { position:absolute; right:0; bottom:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1.5px; width:15px; height:14px; border:1px solid rgba(250,158,188,.75); border-radius:5px; background:var(--paper); box-shadow:0 1px 2px rgba(93,122,138,.12); }
.mobile-toggle-mark > span { display:block; width:8px; height:1.5px; background:var(--blue); border-radius:2px; }
html[data-theme="dark"] .mobile-toggle-mark { background:#17142a; border-color:rgba(255,159,196,.5); }
html[data-theme="dark"] .mobile-toggle-avatar { background:#321b39; color:#ff9fc4; }

/* 1.0.95 头像菜单标记贴近头像，导航靠右 */
.mobile-actions-toggle > .mobile-toggle-avatar { width:34px; height:34px; }
.mobile-actions-toggle > .mobile-toggle-mark { right:2px; bottom:2px; width:13px; height:13px; border-radius:4px; gap:1px; }
.mobile-toggle-mark > span { width:7px; height:1.5px; }
@media (min-width:761px) { .site-nav { margin-left:auto; margin-right:10px; } }

/* 1.0.96 列表标记压在头像外圈上 */
.mobile-actions-toggle > .mobile-toggle-mark { right:-3px; bottom:-3px; }

/* 1.0.97 修正菜单标记的定位基准 */
.mobile-actions-toggle { position:relative; }
.mobile-actions-toggle > .mobile-toggle-mark { right:3px; bottom:3px; }
@media (max-width:760px) { .mobile-actions-toggle { position:absolute; top:16px; right:0; } }

/* 1.0.98 友人文章页 */
.friends-page, .photo-wall-page { max-width:1080px; margin:0 auto; }
.friends-head, .photo-wall-head { margin-bottom:28px; }
.friend-author-row { display:flex; align-items:center; gap:8px; margin-top:14px; color:var(--muted); font-size:13px; }
.friend-avatar-frame { display:grid; place-items:center; width:28px; height:28px; overflow:hidden; border:2px solid rgba(250,158,188,.55); border-radius:9px; background:var(--pink-soft); color:#a93663; font-weight:800; flex:0 0 28px; }
.friend-avatar { width:100%; height:100%; object-fit:cover; }
.friend-avatar-initial { font-size:12px; }
.friend-author-name { color:var(--blue); font-weight:700; }
.friend-author-id { color:var(--muted); font-size:12px; }
.friends-empty { margin-top:28px; }

/* 1.0.98 照片墙 */
.photo-author-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:16px; margin:26px 0 34px; }
.photo-author-card { display:flex; align-items:center; gap:14px; width:100%; padding:16px; text-align:left; background:var(--paper); border:1px dashed rgba(250,158,188,.65); border-radius:16px; box-shadow:0 5px 0 rgba(250,158,188,.10); color:var(--ink); cursor:pointer; transition:transform .2s ease,box-shadow .2s ease,background .2s ease; }
.photo-author-card:hover { transform:translateY(-2px); background:var(--pink-soft); box-shadow:0 7px 0 rgba(250,158,188,.14); }
.photo-author-avatar { display:grid; place-items:center; width:64px; height:64px; flex:0 0 64px; overflow:hidden; border:2px solid rgba(250,158,188,.6); border-radius:13px; background:var(--pink-soft); color:#a93663; font-size:22px; font-weight:900; }
.photo-author-avatar img { width:100%; height:100%; object-fit:cover; }
.photo-author-meta { display:flex; flex-direction:column; min-width:0; gap:5px; }
.photo-author-meta strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--blue); font-size:16px; }
.photo-author-meta span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:12px; }
.photo-wall-view[hidden], .photo-author-grid[hidden] { display:none !important; }
.photo-back { display:inline-flex; align-items:center; padding:7px 12px; margin:0 0 18px; background:var(--paper); border:1px dashed rgba(250,158,188,.65); border-radius:999px; color:#a93663; font-size:13px; font-weight:700; cursor:pointer; }
.photo-active-author { margin:0 0 16px; color:var(--blue); font-size:22px; font-weight:800; }
.photo-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.photo-card { min-width:0; }
.photo-card[hidden] { display:none !important; }
.photo-card-link { display:block; overflow:hidden; height:100%; background:var(--paper); border:1px dashed rgba(250,158,188,.6); border-radius:16px; color:var(--ink); text-decoration:none; box-shadow:0 6px 0 rgba(250,158,188,.10); transition:transform .2s ease,box-shadow .2s ease; }
.photo-card-link:hover { transform:translateY(-3px) rotate(-.4deg); box-shadow:0 9px 0 rgba(250,158,188,.13); }
.photo-card-image { aspect-ratio:4/3; overflow:hidden; background:var(--pink-soft); }
.photo-card-image img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.photo-card-link:hover .photo-card-image img { transform:scale(1.04); }
.photo-cover-placeholder { display:grid; place-items:center; width:100%; height:100%; color:#a93663; font-family:"Barlow Condensed","Noto Sans SC",sans-serif; font-size:22px; letter-spacing:.1em; }
.photo-card-body { padding:14px 15px 16px; }
.photo-card-category { display:inline-block; margin-bottom:7px; padding:2px 7px; border-radius:999px; background:var(--pink-soft); color:#a93663; font-size:11px; font-weight:700; }
.photo-card-body h2 { margin:0 0 8px; color:var(--blue); font-size:16px; line-height:1.45; }
.photo-card-body time { color:var(--muted); font-size:12px; }
.photo-wall-empty { margin-top:24px; }
html[data-theme="dark"] .photo-author-card, html[data-theme="dark"] .photo-card-link, html[data-theme="dark"] .photo-back { background:#17142a; border-color:rgba(255,159,196,.42); }
html[data-theme="dark"] .photo-author-card:hover { background:#321b39; }
@media (max-width:900px) { .photo-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:620px) { .photo-author-grid { grid-template-columns:1fr 1fr; gap:10px; } .photo-author-card { flex-direction:column; align-items:flex-start; gap:10px; padding:12px; } .photo-author-avatar { width:52px; height:52px; flex-basis:52px; } .photo-grid { grid-template-columns:1fr; } }

/* 1.2.1 友人文章页用户列表 */
.friends-view[hidden], .friend-card[hidden] { display:none !important; }
.friends-grid { margin-top:0; }

/* 1.2.4 移动端底部导航抽屉 */
.mobile-bottom-nav, .mobile-nav-sheet, .mobile-nav-backdrop { display:none; }
@media (max-width:760px) {
  .site-nav { display:none !important; }
  .mobile-bottom-nav { display:inline-flex; position:fixed; left:50%; bottom:calc(14px + env(safe-area-inset-bottom)); transform:translateX(-50%); z-index:60; align-items:center; justify-content:center; gap:8px; min-width:112px; height:46px; padding:0 18px; background:rgba(255,250,242,.94); border:1px dashed rgba(250,158,188,.75); border-radius:999px; box-shadow:0 7px 20px rgba(93,122,138,.18); color:var(--blue); font-size:14px; font-weight:800; cursor:pointer; backdrop-filter:blur(12px); }
  html[data-theme="dark"] .mobile-bottom-nav { background:rgba(23,20,42,.94); border-color:rgba(255,159,196,.48); color:#f5eaff; box-shadow:0 7px 20px rgba(0,0,0,.28); }
  .mobile-bottom-bars { display:flex; flex-direction:column; gap:3px; width:15px; }
  .mobile-bottom-bars span { display:block; width:15px; height:2px; background:currentColor; border-radius:2px; }
  .mobile-nav-backdrop { display:block; position:fixed; inset:0; z-index:58; background:rgba(20,12,30,.38); opacity:1; transition:opacity .18s ease; }
  .mobile-nav-backdrop[hidden] { display:none !important; }
  .mobile-nav-sheet { display:block; position:fixed; left:12px; right:12px; bottom:calc(72px + env(safe-area-inset-bottom)); z-index:61; max-height:70vh; overflow:auto; padding:14px; background:var(--paper); border:1px dashed rgba(250,158,188,.7); border-radius:20px; box-shadow:0 12px 34px rgba(20,12,30,.22); opacity:0; visibility:hidden; transform:translateY(24px); transition:opacity .2s ease,transform .24s cubic-bezier(.22,1,.36,1),visibility .2s; }
  .mobile-nav-sheet.is-open { opacity:1; visibility:visible; transform:translateY(0); }
  .mobile-nav-sheet-head { display:flex; align-items:center; justify-content:space-between; padding:2px 4px 11px; border-bottom:1px dashed rgba(201,182,255,.6); color:var(--blue); }
  .mobile-nav-sheet-head strong { font-size:16px; }
  .mobile-nav-close { display:grid; place-items:center; width:30px; height:30px; padding:0; border:0; border-radius:50%; background:var(--pink-soft); color:#a93663; font-size:22px; line-height:1; cursor:pointer; }
  .mobile-nav-list { display:flex; flex-direction:column; gap:3px; padding-top:8px; }
  .mobile-nav-list a { display:flex; align-items:center; min-height:43px; padding:9px 12px; border-radius:9px; color:var(--ink); font-size:15px; font-weight:600; text-decoration:none; }
  .mobile-nav-list a:hover, .mobile-nav-list a:focus { background:var(--pink-soft); color:#a93663; }
  html[data-theme="dark"] .mobile-nav-sheet { background:#17142a; border-color:rgba(255,159,196,.45); }
  html[data-theme="dark"] .mobile-nav-sheet-head { color:#f5eaff; border-bottom-color:rgba(199,155,255,.35); }
  html[data-theme="dark"] .mobile-nav-list a:hover, html[data-theme="dark"] .mobile-nav-list a:focus { background:#321b39; color:#ff9fc4; }
  body { padding-bottom:calc(72px + env(safe-area-inset-bottom)); }
  html.mobile-nav-open, html.mobile-nav-open body { overflow:hidden; }
}

/* 1.2.5 底部仅保留导航文字并靠右 */
.mobile-bottom-bars { display:none !important; }
@media (max-width:760px) { .mobile-bottom-nav { left:auto; right:16px; transform:none; min-width:0; padding:0 18px; } }

/* 1.2.6 修正未登录状态三条横线 */
.mobile-actions-toggle > .mobile-toggle-bars { background: transparent !important; }
.mobile-toggle-bars > span { background: currentColor !important; }

/* 1.2.7 文章图片点击放大 */
.post-content img { cursor: zoom-in; }
.momo-lightbox { position:fixed; inset:0; z-index:100; display:flex; align-items:center; justify-content:center; padding:24px; background:rgba(9,7,17,.88); backdrop-filter:blur(7px); opacity:0; visibility:hidden; transition:opacity .2s ease,visibility .2s ease; }
.momo-lightbox.is-open { opacity:1; visibility:visible; }
.momo-lightbox figure { display:flex; flex-direction:column; align-items:center; gap:10px; max-width:96vw; margin:0; }
.momo-lightbox-image { display:block; width:auto; height:auto; max-width:min(92vw,1400px); max-height:84vh; object-fit:contain; border-radius:10px; box-shadow:0 20px 50px rgba(0,0,0,.35); transform:scale(.96); transition:transform .22s ease; }
.momo-lightbox.is-open .momo-lightbox-image { transform:scale(1); }
.momo-lightbox-caption { max-width:80vw; color:#f8f3ea; font-size:13px; text-align:center; opacity:.78; }
.momo-lightbox-close { position:absolute; top:20px; right:22px; display:grid; place-items:center; width:40px; height:40px; padding:0; border:1px solid rgba(255,255,255,.25); border-radius:50%; background:rgba(255,255,255,.1); color:#fff; font-size:26px; line-height:1; cursor:pointer; }
html.momo-lightbox-open { overflow:hidden; }
@media (max-width:600px) { .momo-lightbox { padding:14px; } .momo-lightbox-close { top:12px; right:12px; width:36px; height:36px; } .momo-lightbox-image { max-width:94vw; max-height:78vh; } }

/* 1.2.8 放大灯箱图片并隐藏文件名说明 */
.momo-lightbox-image { width:min(92vw,1800px) !important; height:auto !important; max-width:92vw !important; max-height:86vh !important; object-fit:contain !important; }
.momo-lightbox-caption { display:none !important; }
@media (max-width:600px) { .momo-lightbox-image { width:94vw !important; max-width:94vw !important; max-height:78vh !important; } }
