#web_bg {
  background-image: url('/image/55465536eda2b6ed1699966682.png'), linear-gradient(135deg, #d9eef7 0%, #6fa8c8 45%, #2f7ba5 100%);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

#page-header.full_page {
  background-image: url('/image/55465536eda2b6ed1699966682.png'), linear-gradient(135deg, #d9eef7 0%, #6fa8c8 45%, #2f7ba5 100%) !important;
  background-size: cover;
  background-position: center;
}

#subtitle.starry-typing::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 1em;
  margin-left: 0.12em;
  border-radius: 999px;
  background: currentColor;
  vertical-align: -0.12em;
  animation: starry-caret 0.82s steps(1) infinite;
}

@keyframes starry-caret {
  50% {
    opacity: 0;
  }
}

/* 首页文章卡片透明 */
#recent-posts .recent-post-item {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#recent-posts,
#recent-posts .recent-post-items {
  background: transparent !important;
}

/* 侧边栏卡片透明 */
#aside-content .card-widget {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 文章、独立页面和归档页主体透明 */
.layout > #post,
.layout > #page,
.layout > #archive,
.layout > div:first-child:not(.recent-posts) {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 夜间模式透明 */
[data-theme="dark"] #recent-posts .recent-post-item,
[data-theme="dark"] #aside-content .card-widget,
[data-theme="dark"] .layout > #post,
[data-theme="dark"] .layout > #page,
[data-theme="dark"] .layout > #archive,
[data-theme="dark"] .layout > div:first-child:not(.recent-posts) {
  background: rgba(0, 0, 0, 0.5) !important;
}

.starry-sakura {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  overflow: hidden;
}

.sakura-petal {
  position: absolute;
  top: -24px;
  left: var(--left);
  width: var(--size);
  height: calc(var(--size) * 0.72);
  border-radius: 80% 0 80% 0;
  background: rgba(255, 183, 204, 0.78);
  box-shadow: 0 0 8px rgba(255, 211, 223, 0.8);
  animation: sakura-fall var(--duration) linear var(--delay) infinite;
}

.sakura-petal::after {
  content: "";
  position: absolute;
  inset: 25% 0 0 25%;
  width: 45%;
  height: 45%;
  border-radius: 80% 0 80% 0;
  background: rgba(255, 237, 243, 0.72);
}

@keyframes sakura-fall {
  0% {
    transform: translate3d(0, -5vh, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(var(--drift), 52vh, 0) rotate(180deg);
  }

  100% {
    transform: translate3d(calc(var(--drift) * -0.45), 108vh, 0) rotate(360deg);
  }
}

.starry-dogs {
  position: fixed;
  right: 72px;
  bottom: 16px;
  z-index: 1002;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  pointer-events: auto;
}

.line-dog {
  position: relative;
  width: 122px;
  height: 86px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(40, 55, 70, 0.9);
  cursor: pointer;
  transform-origin: bottom center;
  transition: transform 0.24s ease, color 0.24s ease;
}

.line-dog svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.line-dog path {
  fill: none;
  stroke: currentColor;
  stroke-width: 4.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-dog .dog-fill {
  stroke-width: 0;
}

.line-dog .dog-fill-white {
  fill: rgba(255, 255, 255, 0.82);
}

.line-dog .dog-fill-tan {
  fill: rgba(224, 174, 103, 0.76);
}

.line-dog .fluffy {
  stroke-width: 4.8;
}

.dog-one {
  animation: dog-pounce 3.6s ease-in-out infinite;
}

.dog-two {
  width: 112px;
  height: 82px;
  color: rgba(95, 72, 82, 0.9);
  transform: rotate(-2deg);
  animation: dog-nuzzle 3.6s ease-in-out infinite;
}

.line-dog:hover,
.line-dog.is-happy {
  color: #ff7fa3;
}

.line-dog.is-happy svg {
  animation: dog-hop 0.45s ease;
}

.line-dog .tail-one,
.line-dog .tail-two {
  transform-box: fill-box;
  transform-origin: 0 100%;
}

.line-dog:hover .tail-one,
.line-dog:hover .tail-two,
.line-dog.is-happy .tail-one,
.line-dog.is-happy .tail-two {
  animation: dog-wag 0.22s ease-in-out infinite alternate;
}

.dog-note {
  position: absolute;
  right: 4px;
  top: -14px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #ff6f99;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 16px rgba(80, 60, 70, 0.12);
}

.line-dog:hover .dog-note,
.line-dog.is-happy .dog-note {
  opacity: 1;
  transform: translateY(0);
}

.play-heart {
  position: absolute;
  left: 106px;
  top: -4px;
  width: 16px;
  height: 16px;
  opacity: 0.7;
  transform: rotate(-45deg);
  animation: heart-float 1.8s ease-in-out infinite;
}

.play-heart,
.play-heart::before,
.play-heart::after {
  background: rgba(255, 126, 164, 0.88);
}

.play-heart::before,
.play-heart::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.play-heart::before {
  top: -8px;
  left: 0;
}

.play-heart::after {
  left: 8px;
  top: 0;
}

.play-ball {
  position: absolute;
  left: 118px;
  bottom: 10px;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 127, 163, 0.78);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9) 0 18%, transparent 20%),
    rgba(255, 245, 248, 0.76);
  box-shadow: 0 5px 14px rgba(80, 60, 70, 0.14);
  animation: ball-roll 3.6s ease-in-out infinite;
}

.starry-dogs.is-playing .play-ball {
  animation: ball-roll-fast 0.7s ease-in-out;
}

@keyframes dog-wag {
  from {
    transform: rotate(-8deg);
  }

  to {
    transform: rotate(18deg);
  }
}

@keyframes dog-pounce {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  34% {
    transform: translateY(-7px) rotate(2deg);
  }

  58% {
    transform: translateX(8px) translateY(0) rotate(0deg);
  }
}

@keyframes dog-nuzzle {
  0%,
  100% {
    transform: translateX(0) rotate(-2deg);
  }

  42% {
    transform: translateX(-12px) translateY(-2px) rotate(4deg);
  }

  66% {
    transform: translateX(-2px) translateY(1px) rotate(-4deg);
  }
}

@keyframes dog-hop {
  0%,
  100% {
    transform: translateY(0);
  }

  45% {
    transform: translateY(-8px);
  }
}

@keyframes heart-float {
  0%,
  100% {
    opacity: 0.5;
    transform: translateY(4px) rotate(-45deg) scale(0.82);
  }

  45% {
    opacity: 0.95;
    transform: translateY(-8px) rotate(-45deg) scale(1);
  }
}

@keyframes ball-roll {
  0%,
  100% {
    transform: translateX(-10px) rotate(0deg);
  }

  50% {
    transform: translateX(22px) rotate(180deg);
  }
}

@keyframes ball-roll-fast {
  0% {
    transform: translateX(-12px) rotate(0deg) scale(1);
  }

  50% {
    transform: translateX(34px) rotate(210deg) scale(1.12);
  }

  100% {
    transform: translateX(-10px) rotate(360deg) scale(1);
  }
}

@media (max-width: 768px) {
  .starry-dogs {
    right: 52px;
    bottom: 10px;
    gap: 4px;
  }

  .line-dog {
    width: 78px;
    height: 58px;
  }

  .dog-two {
    width: 72px;
    height: 54px;
  }

  .play-heart {
    left: 68px;
    top: -2px;
    transform: rotate(-45deg) scale(0.75);
  }

  .play-ball {
    left: 76px;
    bottom: 7px;
    width: 14px;
    height: 14px;
  }
}
