/*
Theme Name: Bujiexu Journal
Theme URI: https://bujiexu.com
Author: Bujiexu
Description: A dynamic personal blog theme for essays, projects, notes and resources.
Version: 1.0.0
Text Domain: bujiexu
*/

:root {
  --ink: #1f2328;
  --muted: #66717d;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --line: #d9dedb;
  --soft: #eef3f0;
  --accent: #1f6f68;
  --warm: #b85c38;
  --shadow: 0 22px 70px rgba(31, 35, 40, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", "Microsoft YaHei", serif;
  overflow-x: hidden;
}

#wpadminbar {
  display: none !important;
}

html[style] {
  margin-top: 0 !important;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 46px);
  padding: 16px clamp(18px, 3.8vw, 58px);
  color: #fff;
  background: linear-gradient(rgba(18, 22, 25, 0.78), rgba(18, 22, 25, 0));
  opacity: 0;
  transform: translateY(-18px);
  animation: headerReveal 1.1s cubic-bezier(.16, 1, .3, 1) .35s forwards;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  font-weight: 800;
  padding: 6px 12px 6px 6px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.055));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 16px 42px rgba(0,0,0,.2);
  backdrop-filter: blur(18px) saturate(1.18);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 10px;
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 30px rgba(0, 0, 0, .16);
  backdrop-filter: blur(18px) saturate(1.25);
}

.site-header .brand-mark {
  display: none;
}

.site-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-title {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: #fff;
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 8px 28px rgba(0,0,0,.28);
  white-space: nowrap;
}

.brand-title span {
  color: #7b6cff;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(10px, 2vw, 24px);
  margin-left: auto;
  font-size: 15px;
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-weight: 900;
}

.site-nav a {
  opacity: .88;
}

.site-nav a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 84vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 124px clamp(22px, 6vw, 90px) 74px;
  color: #fff;
  isolation: isolate;
}

.hero-carousel,
.hero-slide,
.hero::before {
  position: absolute;
  inset: 0;
}

.hero-carousel {
  z-index: -2;
  overflow: hidden;
}

.hero-slide {
  background-image: var(--slide-image);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translateY(var(--camera-y, 0)) scale(calc(var(--camera-scale, 1.08) + .035));
  transition: opacity 1.45s cubic-bezier(.16, 1, .3, 1), transform 6.8s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateY(var(--camera-y, 0)) scale(var(--camera-scale, 1.08));
}

.hero::before {
  content: "";
  background-image:
    linear-gradient(90deg, rgba(18,22,25,.9), rgba(18,22,25,.38) 52%, rgba(18,22,25,.08)),
    linear-gradient(0deg, rgba(18,22,25,.88), rgba(18,22,25,.05) 48%);
  z-index: -1;
  transition: transform .2s ease-out, filter .2s ease-out;
  will-change: transform, filter;
}

.hero.is-scrolling::before {
  filter: saturate(.92) contrast(1.05);
}

.cinematic-canvas,
.hero-vignette,
.motion-orbit {
  position: absolute;
  pointer-events: none;
}

.cinematic-canvas {
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
}

.hero-vignette {
  z-index: 2;
  inset: 0;
  background:
    radial-gradient(circle at 72% 34%, rgba(255, 231, 190, .18), transparent 24%),
    radial-gradient(circle at 24% 68%, rgba(95, 161, 156, .17), transparent 28%),
    linear-gradient(90deg, rgba(10, 13, 16, .34), transparent 46%);
  opacity: .95;
}

.motion-orbit {
  z-index: 3;
  width: min(44vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  filter: blur(.2px);
  opacity: .42;
  transform-origin: center;
}

.orbit-one {
  right: -10vw;
  top: 12vh;
  animation: orbitalDrift 18s cubic-bezier(.45, 0, .25, 1) infinite alternate;
}

.orbit-two {
  left: -17vw;
  bottom: -24vh;
  width: min(52vw, 720px);
  opacity: .26;
  animation: orbitalDrift 24s cubic-bezier(.45, 0, .25, 1) infinite alternate-reverse;
}

.hero-inner {
  position: relative;
  z-index: 4;
  width: min(780px, 100%);
  opacity: 0;
  transform: translate3d(0, 32px, 0) scale(.985);
  animation: heroReveal 1.45s cubic-bezier(.16, 1, .3, 1) .65s forwards;
}

.eyebrow,
.section-kicker {
  margin: 0 0 13px;
  color: var(--warm);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f7bf8b;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.03;
  letter-spacing: 0;
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-weight: 900;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 28px;
  color: rgba(255,255,255,.86);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.carousel-dots {
  display: flex;
  gap: 9px;
  margin-top: 30px;
}

.carousel-dots span {
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .3);
  overflow: hidden;
}

.carousel-dots span::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: rgba(255, 255, 255, .88);
}

.carousel-dots span.is-active::before {
  animation: dotProgress 6.6s linear forwards;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px;
  color: #fff;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(12px);
  font-weight: 750;
  transform: translateY(0);
  transition: transform .22s cubic-bezier(.16, 1, .3, 1), background .22s ease, border-color .22s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
}

.section {
  padding: 74px clamp(22px, 6vw, 90px);
}

.intro {
  background: var(--soft);
}

.intro-grid,
.section-head,
.post-grid,
.topic-grid,
.about-grid,
.content-wrap {
  width: min(1160px, 100%);
  margin-inline: auto;
}

.intro-grid,
.section-head,
.post-card,
.topic-card,
.about-grid {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1);
}

.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(300px, 1fr);
  gap: 34px;
  align-items: end;
}

.intro-grid p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-link {
  color: var(--accent);
  font-weight: 800;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 36px);
}

.post-card {
  display: grid;
  min-height: 292px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(31,35,40,.04);
  transition: transform .16s ease, box-shadow .16s ease;
  transition:
    opacity .9s cubic-bezier(.16, 1, .3, 1),
    transform .9s cubic-bezier(.16, 1, .3, 1),
    box-shadow .18s ease;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.post-card h3 {
  margin-bottom: 12px;
  font-size: 23px;
  line-height: 1.28;
  letter-spacing: 0;
}

.post-card p {
  color: var(--muted);
  line-height: 1.75;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
}

.tag,
.topic-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

.topics {
  background: var(--soft);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.topic-card {
  padding: 22px;
}

.topic-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 34px;
  align-items: center;
}

.about-grid p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.profile-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.profile-panel strong {
  display: block;
  margin-bottom: 12px;
  font-size: 20px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(22px, 6vw, 90px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.beian-links,
.mps-beian {
  display: inline-flex;
  align-items: center;
}

.beian-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 14px;
}

.mps-beian {
  gap: 6px;
}

.mps-beian img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.page-hero {
  padding-top: 132px;
  background: var(--soft);
}

.content-wrap {
  max-width: 860px;
}

.resource-wrap {
  width: min(1240px, 100%);
  margin-inline: auto;
}

.resource-hero {
  padding: 132px clamp(22px, 6vw, 90px) 34px;
  background:
    linear-gradient(180deg, rgba(16, 18, 21, .92), #17191c),
    radial-gradient(circle at 72% 12%, rgba(255, 77, 99, .18), transparent 30%);
  color: #f3f5f8;
}

.resource-hero-inner {
  display: grid;
  width: min(1240px, 100%);
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: end;
}

.resource-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(42px, 5vw, 72px);
}

.resource-hero p:not(.section-kicker) {
  max-width: 660px;
  margin-bottom: 0;
  color: #a9b0ba;
  font-size: 18px;
  line-height: 1.8;
}

.resource-hero-card {
  display: grid;
  gap: 5px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 48px rgba(0,0,0,.2);
  backdrop-filter: blur(18px);
}

.resource-hero-card span {
  color: #ff6c80;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.resource-hero-card strong {
  color: #fff;
}

.resource-hero-card small {
  color: #8f96a1;
}

.entry-content {
  color: #2b3036;
  font-size: 18px;
  line-height: 1.9;
}

.entry-content a {
  color: var(--accent);
  text-decoration: underline;
}

.resource-page {
  padding-top: 34px;
  background:
    radial-gradient(circle at 82% 0, rgba(72, 95, 255, .16), transparent 28%),
    radial-gradient(circle at 14% 12%, rgba(31, 111, 104, .24), transparent 24%),
    #17191c;
  color: #d9dde3;
}

.resource-library {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
}

.resource-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.resource-toolbar {
  position: sticky;
  top: 74px;
  z-index: 60;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(35, 38, 42, .78);
  backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .18);
}

.resource-search {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  color: #eef2f7;
  background: rgba(19, 21, 24, .88);
  outline: 0;
}

.resource-search::placeholder {
  color: #858b94;
}

.resource-search:focus {
  border-color: rgba(255, 77, 99, .62);
  box-shadow: 0 0 0 3px rgba(255, 77, 99, .12);
}

.resource-count {
  flex: 0 0 auto;
  color: #a5abb3;
  font-size: 14px;
}

.resource-current {
  position: sticky;
  top: 88px;
  display: inline-grid;
  min-width: 210px;
  flex: 0 0 auto;
  gap: 2px;
  padding: 9px 14px;
  border: 1px solid rgba(120, 231, 255, .28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(120,231,255,.13), rgba(255,108,128,.1));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 34px rgba(0,0,0,.16);
}

.resource-current span {
  color: #8be9ff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.resource-current strong {
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-current em {
  color: #aeb8c7;
  font-size: 12px;
  font-style: normal;
}

.resource-index {
  position: sticky;
  top: 92px;
  align-self: start;
  display: flex;
  max-height: calc(100vh - 112px);
  overflow: auto;
  flex-direction: column;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 8px;
  background: rgba(35, 38, 42, .86);
  scrollbar-width: thin;
}

.resource-index a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #c1c6ce;
  background: rgba(255, 255, 255, .035);
  font-size: 13px;
  text-decoration: none;
}

.resource-index a:hover {
  border-color: rgba(255, 77, 99, .32);
  color: #fff;
  background: rgba(255, 77, 99, .12);
}

.resource-index a.is-active {
  border-color: rgba(120, 231, 255, .42);
  color: #fff;
  background: linear-gradient(135deg, rgba(120,231,255,.16), rgba(255,108,128,.1));
  box-shadow: inset 3px 0 0 rgba(120, 231, 255, .85), 0 12px 28px rgba(0,0,0,.16);
}

.resource-index span {
  color: #ff6c80;
  font-weight: 800;
}

.resource-groups {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.resource-group {
  scroll-margin-top: 162px;
}

.resource-group[hidden] {
  display: none;
}

.resource-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 0 2px;
  margin-bottom: 10px;
}

.resource-group-head h2 {
  color: #f3f5f8;
  font-size: clamp(22px, 2vw, 30px);
}

.resource-group-head span {
  color: #8f96a1;
  font-size: 14px;
}

.resource-list,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.resource-subgroup {
  display: grid;
  gap: 12px;
}

.resource-subgroup + .resource-subgroup {
  margin-top: 24px;
}

.resource-subgroup h3 {
  margin: 0;
  color: rgba(139, 233, 255, .86);
  font-size: 17px;
  font-weight: 900;
}

.resource-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 76px;
  min-width: 0;
  align-items: center;
  gap: 7px 11px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 8px;
  color: #d8dce2;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.026));
  text-decoration: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 12px 28px rgba(0,0,0,.12);
  transition: transform .18s cubic-bezier(.16, 1, .3, 1), box-shadow .18s ease, border-color .18s ease;
}

.resource-favicon {
  display: grid;
  width: 34px;
  height: 34px;
  grid-column: 1;
  grid-row: 1 / span 3;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.resource-favicon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.resource-favicon i {
  color: rgba(255,255,255,.76);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.resource-favicon:not(.is-fallback) i {
  display: none;
}

.resource-favicon img {
  position: relative;
  z-index: 1;
}

.resource-favicon.is-fallback img {
  display: none;
}

.resource-favicon.is-fallback i {
  display: block;
}

.resource-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 77, 99, .35);
  background: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.04));
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
}

.resource-item[hidden] {
  display: none;
}

.resource-item strong {
  grid-column: 2;
  overflow: hidden;
  color: #f0f2f5;
  font-size: 14px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-item > span:not(.resource-favicon) {
  grid-column: 2;
  width: 100%;
  overflow: hidden;
  color: #8e96a3;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-item em {
  grid-column: 2;
  overflow: hidden;
  color: rgba(174, 184, 199, .7);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-empty {
  padding: 32px;
  border: 1px dashed rgba(255, 255, 255, .13);
  border-radius: 8px;
  color: #9aa2ad;
  text-align: center;
}

.archive-list {
  display: grid;
  gap: 18px;
}

@media (max-width: 920px) {
  .site-header {
    position: absolute;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: 78vh;
  }

  .intro-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .post-grid,
  .topic-grid,
  .resource-library,
  .resource-layout,
  .resource-list,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .resource-index {
    position: static;
    max-height: none;
  }

  .resource-hero-inner {
    grid-template-columns: 1fr;
  }

  .section-head,
  .resource-toolbar,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .cinematic-canvas,
  .motion-orbit {
    display: none;
  }
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translate3d(0, 32px, 0) scale(.985);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes headerReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orbitalDrift {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(.96);
  }
  to {
    transform: translate3d(-28px, 18px, 0) rotate(18deg) scale(1.06);
  }
}

@keyframes dotProgress {
  to {
    transform: scaleX(1);
  }
}

/* Anime ambience layer */
:root {
  --ink: #eef3ff;
  --muted: #a9b4c8;
  --paper: #10131c;
  --surface: rgba(255, 255, 255, .075);
  --line: rgba(255, 255, 255, .12);
  --soft: rgba(255, 255, 255, .055);
  --accent: #78e7ff;
  --warm: #ff7aa8;
  --shadow: 0 22px 70px rgba(0, 0, 0, .28);
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(120, 231, 255, .16), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(255, 122, 168, .14), transparent 26%),
    linear-gradient(180deg, #10131c, #171421 46%, #10131c);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, #000, transparent 78%);
}

.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .72;
}

.site-header {
  background:
    linear-gradient(180deg, rgba(13, 16, 24, .72), rgba(13, 16, 24, .18)),
    rgba(255,255,255,.025);
  backdrop-filter: blur(18px) saturate(1.2);
}

.site-nav a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.site-nav a:hover {
  border-color: rgba(120, 231, 255, .32);
  background: rgba(120, 231, 255, .1);
  color: #fff;
  transform: translateY(-1px);
}

.intro,
.topics {
  background:
    radial-gradient(circle at 20% 0, rgba(120, 231, 255, .12), transparent 24%),
    rgba(255,255,255,.035);
}

.post-card,
.profile-panel,
.topic-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.045));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 30px rgba(0,0,0,.12);
  backdrop-filter: blur(18px) saturate(1.12);
}

.post-card:hover,
.topic-card:hover {
  border-color: rgba(120, 231, 255, .28);
  box-shadow: 0 22px 70px rgba(0,0,0,.28);
}

.tag {
  color: #c5ccda;
  background: rgba(255,255,255,.07);
}

.site-footer {
  background: rgba(10, 12, 18, .54);
}

@media (min-width: 921px) and (max-width: 1160px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-list,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Xinghui-inspired original home layout */
.anime-home {
  position: relative;
  z-index: 1;
}

.home-stage {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 104px clamp(18px, 4vw, 54px) 34px;
  isolation: isolate;
}

.home-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(8, 10, 18, .72), rgba(14, 14, 23, .9) 72%, #10131c),
    url("assets/images/anime-cover-3.png") center / cover;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.06);
}

.home-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 18%, rgba(119, 231, 255, .2), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(255, 122, 168, .18), transparent 24%),
    linear-gradient(rgba(255,255,255,.034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.034) 1px, transparent 1px);
  background-size: auto, auto, 68px 68px, 68px 68px;
  mask-image: linear-gradient(#000, rgba(0,0,0,.82) 74%, transparent);
}

.stage-aura {
  position: absolute;
  inset: auto -10% -28% -10%;
  z-index: -1;
  height: 54vh;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(120, 231, 255, .22), transparent 38%),
    radial-gradient(ellipse at 74% 50%, rgba(255, 122, 168, .2), transparent 32%);
  filter: blur(28px);
}

.home-shell {
  width: min(1260px, 100%);
  margin: 0 auto;
}

.home-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(720px, 100%);
  min-height: 62px;
  margin: 0 auto 26px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.1));
  box-shadow: 0 24px 80px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.26);
  backdrop-filter: blur(28px) saturate(1.28);
}

.home-search span {
  margin-right: 12px;
  color: #bdefff;
  font-size: 28px;
  line-height: 1;
}

.home-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #f8fbff;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
}

.home-search input::placeholder {
  color: rgba(239, 246, 255, .66);
}

.home-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(340px, .92fr);
  gap: 24px;
  margin-bottom: 20px;
}

.glass-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 22px;
  background: rgba(21, 24, 36, .56);
  box-shadow: 0 22px 70px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(20px) saturate(1.16);
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,.18), transparent 34%),
    radial-gradient(circle at 84% 18%, rgba(120,231,255,.15), transparent 28%);
  opacity: .8;
}

.motion-card {
  transform-style: preserve-3d;
  transition: transform .22s cubic-bezier(.16, 1, .3, 1), border-color .22s ease, box-shadow .22s ease;
  will-change: transform;
}

.motion-card:hover {
  border-color: rgba(120, 231, 255, .38);
  box-shadow: 0 28px 88px rgba(0,0,0,.34), 0 0 42px rgba(120,231,255,.08);
}

.identity-card {
  min-height: 300px;
  padding: clamp(26px, 3.4vw, 42px);
}

.identity-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 34px);
}

.identity-avatar {
  display: grid;
  width: clamp(58px, 7vw, 74px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.38), rgba(255,255,255,.14));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 20px 54px rgba(0,0,0,.28);
  backdrop-filter: blur(24px) saturate(1.24);
}

.identity-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.card-kicker {
  margin: 0 0 8px;
  color: #8be9ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.identity-card h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-weight: 900;
}

.identity-card p:not(.card-kicker),
.signal-card p,
.mini-panel em,
.feature-link em {
  color: rgba(238, 243, 255, .76);
}

.identity-card p:not(.card-kicker) {
  max-width: 560px;
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.8;
}

.identity-stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.identity-stats span {
  display: inline-grid;
  min-width: 82px;
  gap: 4px;
  padding: 10px 14px;
  border-right: 1px solid rgba(255,255,255,.16);
  color: rgba(238,243,255,.68);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.identity-stats strong {
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.identity-actions {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  display: flex;
  gap: 10px;
}

.icon-action {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 12px 30px rgba(0,0,0,.18);
  backdrop-filter: blur(18px) saturate(1.18);
  font-size: 14px;
  font-weight: 900;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.icon-action:hover {
  transform: translateY(-3px) rotate(2deg);
  border-color: rgba(120, 231, 255, .46);
  background: linear-gradient(135deg, rgba(120, 231, 255, .26), rgba(255,255,255,.12));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 18px 42px rgba(0,0,0,.24);
}

.signal-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(12,14,22,.1), rgba(12,14,22,.82)),
    url("assets/images/anime-cover-1.png") center / cover;
}

.signal-card h2 {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.18;
}

.signal-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(310px, 4fr) minmax(0, 8fr);
  gap: 20px;
}

.quick-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 20px;
}

.lane-card {
  position: relative;
  display: flex;
  min-height: 126px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.045)),
    rgba(21, 24, 36, .58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 52px rgba(0,0,0,.2);
  backdrop-filter: blur(18px) saturate(1.12);
}

.lane-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 16%, rgba(120,231,255,.18), transparent 28%);
}

.lane-card span,
.lane-card strong,
.lane-card em {
  position: relative;
  z-index: 1;
}

.lane-card span {
  margin-bottom: auto;
  color: #8be9ff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.lane-card strong {
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
}

.lane-card em {
  margin-top: 8px;
  color: rgba(238,243,255,.72);
  font-style: normal;
}

.feature-cover,
.feature-link {
  min-height: 420px;
  border-radius: 22px;
}

.feature-cover {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 22px 70px rgba(0,0,0,.24);
}

.feature-link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  color: #fff;
}

.feature-link img,
.feature-shade {
  position: absolute;
  inset: 0;
}

.feature-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.16, 1, .3, 1);
}

.feature-cover:hover img {
  transform: scale(1.07);
}

.feature-shade {
  background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.82));
}

.feature-meta,
.feature-link strong,
.feature-link em {
  position: relative;
  z-index: 1;
}

.feature-meta {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(0,0,0,.34);
  color: rgba(255,255,255,.88);
  font-size: 11px;
  font-weight: 900;
}

.feature-link strong {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
}

.feature-link em {
  font-style: normal;
  line-height: 1.7;
}

.mini-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.mini-panel {
  display: flex;
  min-height: 200px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.mini-panel span {
  position: relative;
  z-index: 1;
  margin-bottom: auto;
  color: #8be9ff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-panel strong {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}

.mini-panel em {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-style: normal;
}

.run-panel {
  background:
    linear-gradient(180deg, rgba(21,24,36,.35), rgba(21,24,36,.72)),
    url("assets/images/anime-cover-2.png") center / cover;
}

.mood-panel {
  background:
    radial-gradient(circle at 70% 20%, rgba(255,122,168,.28), transparent 34%),
    rgba(21, 24, 36, .56);
}

.home-band {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 52px clamp(18px, 4vw, 54px);
}

.home-band .section-head {
  padding: 0;
}

.compact-posts .post-card {
  border-radius: 18px;
  background: rgba(255,255,255,.07);
}

.home-topics {
  padding-top: 22px;
}

.home-topics .topic-card {
  border-radius: 18px;
}

.is-visible.motion-card,
.motion-card.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.motion-card {
  opacity: 0;
  transform: translate3d(0, 22px, 0) scale(.985);
}

@media (max-width: 980px) {
  .home-stage {
    padding-top: 92px;
  }

  .home-dashboard,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .signal-card {
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .home-search {
    min-height: 54px;
    border-radius: 20px;
  }

  .identity-main {
    flex-direction: column;
  }

  .identity-actions {
    position: static;
    margin-top: 22px;
  }

  .identity-stats span {
    min-width: 72px;
    padding-left: 0;
  }

  .feature-cover,
  .feature-link {
    min-height: 320px;
  }

  .mini-panel-grid {
    grid-template-columns: 1fr;
  }

  .quick-lanes {
    grid-template-columns: 1fr;
  }
}

/* Music, lyrics, social links and gallery module */
.music-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background:
    radial-gradient(circle at 18% 10%, rgba(255,255,255,.18), transparent 26%),
    linear-gradient(135deg, rgba(58, 72, 104, .78), rgba(40, 78, 103, .62)),
    url("assets/images/anime-cover-1.png") center / cover;
}

.music-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
}

.music-head img {
  width: 78px;
  aspect-ratio: 1;
  border: 3px solid rgba(255,255,255,.42);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 34px rgba(0,0,0,.24);
}

.music-head h2 {
  margin: 0 0 3px;
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}

.music-head p:not(.card-kicker),
.music-lyric-now {
  color: rgba(238, 243, 255, .74);
}

.music-lyric-now {
  position: relative;
  z-index: 1;
  margin: 18px 0;
  font-size: 14px;
  font-weight: 700;
}

.music-progress {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 800;
}

.music-progress i {
  position: relative;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.28);
  cursor: pointer;
}

.music-progress b {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7b6cff, #8be9ff);
  transform-origin: left;
  transform: scaleX(.02);
}

.music-controls {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}

.music-playlist {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.music-track {
  width: auto;
  min-height: 32px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.1);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.music-track.is-active,
.music-track:hover {
  color: #fff;
  border-color: rgba(139, 233, 255, .42);
  background: rgba(123, 108, 255, .28);
}

.music-control,
.music-play {
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.music-control {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255,255,255,.1);
  font-size: 28px;
}

.music-play {
  width: 58px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, #6f63ff, #7f70ff);
  box-shadow: 0 14px 34px rgba(111, 99, 255, .38);
  font-size: 20px;
}

.music-card.is-playing .music-head img {
  animation: albumSpin 10s linear infinite;
}

.music-card.is-playing .music-play {
  background: linear-gradient(135deg, #ff7aa8, #7b6cff);
}

.site-audio {
  display: none;
}

.music-source-note {
  display: none;
}

.lyric-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 80px;
  margin: 0 0 20px;
  padding: 0 28px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 22px;
  color: #fff;
  background: rgba(8, 11, 25, .74);
  box-shadow: 0 20px 58px rgba(0,0,0,.32);
  backdrop-filter: blur(18px) saturate(1.12);
}

.lyric-strip span {
  color: rgba(139, 233, 255, .86);
  font-size: 13px;
  font-weight: 900;
}

.lyric-strip strong {
  overflow: hidden;
  font-size: clamp(16px, 2vw, 22px);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lyric-strip em {
  color: rgba(123, 108, 255, .72);
  font-size: 24px;
  font-style: normal;
}

.media-panel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-panel {
  position: relative;
  display: flex;
  min-height: 200px;
  grid-column: 1 / -1;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 10, 20, .78), rgba(7, 10, 20, .18)),
    url("assets/images/card-night-photo.png") center / cover no-repeat;
}

.gallery-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.16, 1, .3, 1);
}

.gallery-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 10, 20, .78), rgba(7,10,20,.18));
}

html[data-bujiexu-theme="day"] .gallery-panel {
  background:
    linear-gradient(90deg, rgba(255, 235, 248, .28), rgba(255, 214, 238, .08)),
    url("assets/images/card-day-photo.png") center / cover no-repeat;
}

html[data-bujiexu-theme="day"] .gallery-panel::after {
  background: linear-gradient(90deg, rgba(255, 231, 246, .28), rgba(255, 255, 255, .08));
}

html[data-bujiexu-theme="night"] .gallery-panel {
  background:
    linear-gradient(90deg, rgba(7, 10, 20, .72), rgba(7, 10, 20, .18)),
    url("assets/images/card-night-photo.png") center / cover no-repeat;
}

.gallery-panel:hover img {
  transform: scale(1.06);
}

.gallery-panel span,
.gallery-panel strong,
.gallery-panel em {
  position: relative;
  z-index: 1;
}

.gallery-panel span {
  color: #8be9ff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.gallery-panel strong {
  margin-top: 8px;
  color: #fff;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
  text-decoration: underline;
  text-decoration-color: rgba(255, 122, 168, .75);
  text-underline-offset: 5px;
}

.gallery-panel em {
  margin-top: 10px;
  color: rgba(238,243,255,.78);
  font-style: normal;
}

.wechat-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding: 18px 22px;
  color: rgba(238,243,255,.76);
}

.wechat-note strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 20px;
}

.wechat-note span,
.wechat-note em {
  display: block;
}

.wechat-note em {
  margin-top: 8px;
  color: rgba(238,243,255,.58);
  font-style: normal;
}

.wechat-copy {
  position: relative;
  z-index: 1;
}

.wechat-qr {
  position: relative;
  z-index: 1;
  display: grid;
  width: 118px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 8px solid rgba(255,255,255,.94);
  border-radius: 16px;
  background:
    linear-gradient(90deg, #7367e8 10px, transparent 10px) 0 0 / 22px 22px,
    linear-gradient(#9765df 10px, transparent 10px) 0 0 / 22px 22px,
    #fff;
  box-shadow: 0 18px 48px rgba(0,0,0,.26);
}

.wechat-qr i {
  position: absolute;
  inset: 22px;
  border: 8px solid rgba(115, 103, 232, .88);
  border-radius: 10px;
  background: rgba(255,255,255,.82);
}

.wechat-qr b {
  position: relative;
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #7367e8, #a66be8);
  font-size: 18px;
  line-height: 1;
}

.music-library {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
  padding: 24px 28px;
}

.music-library h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
}

.music-library p:not(.card-kicker) {
  margin: 0;
  color: rgba(238,243,255,.72);
  line-height: 1.75;
}

@keyframes musicProgress {
  from {
    transform: scaleX(.2);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes albumSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .music-card {
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  .lyric-strip {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 18px;
    text-align: center;
  }

  .lyric-strip strong {
    white-space: normal;
  }

  .media-panel-grid {
    grid-template-columns: 1fr;
  }

  .gallery-panel {
    grid-column: auto;
  }

  .wechat-note {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Projects */
.projects-page {
  position: relative;
  z-index: 1;
}

.projects-hero {
  position: relative;
  overflow: hidden;
  padding: 150px clamp(20px, 5vw, 70px) 70px;
  background:
    linear-gradient(180deg, rgba(9, 12, 20, .78), rgba(16, 19, 28, .94)),
    url("assets/images/anime-cover-2.png") center / cover;
}

.projects-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 24%, rgba(120,231,255,.16), transparent 25%),
    radial-gradient(circle at 82% 18%, rgba(255,122,168,.15), transparent 24%);
}

.projects-hero .content-wrap {
  position: relative;
  z-index: 1;
}

.projects-hero h1 {
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(48px, 8vw, 86px);
}

.projects-hero p:not(.section-kicker) {
  max-width: 680px;
  margin: 0;
  color: rgba(238,243,255,.72);
  font-size: 18px;
  line-height: 1.8;
}

.projects-section {
  background:
    radial-gradient(circle at 14% 0, rgba(120,231,255,.12), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(255,122,168,.1), transparent 25%);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.project-card {
  position: relative;
  display: flex;
  min-height: 280px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.045)),
    rgba(21, 24, 36, .58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 22px 70px rgba(0,0,0,.24);
  backdrop-filter: blur(18px) saturate(1.12);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 18%, rgba(120,231,255,.18), transparent 24%),
    linear-gradient(135deg, rgba(255,122,168,.11), transparent 48%);
  pointer-events: none;
}

.project-badge,
.project-card strong,
.project-card p,
.project-card em {
  position: relative;
  z-index: 1;
}

.project-badge {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 7px 10px;
  border: 1px solid rgba(120,231,255,.24);
  border-radius: 999px;
  color: #8be9ff;
  background: rgba(120,231,255,.09);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card strong {
  margin-top: 44px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.project-card p {
  max-width: 560px;
  margin: 14px 0 18px;
  color: rgba(238,243,255,.76);
  line-height: 1.78;
}

.project-card em {
  color: rgba(255,122,168,.9);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 760px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* Feature category pages */
.feature-page {
  position: relative;
  z-index: 1;
}

.feature-page-hero {
  position: relative;
  overflow: hidden;
  padding: 150px clamp(20px, 5vw, 70px) 70px;
  background:
    linear-gradient(180deg, rgba(9, 12, 20, .74), rgba(16, 19, 28, .94)),
    url("assets/images/anime-cover-1.png") center / cover;
}

.photo-wall-page .feature-page-hero {
  background:
    linear-gradient(180deg, rgba(9, 12, 20, .62), rgba(16, 19, 28, .92)),
    url("assets/images/anime-cover-3.png") center / cover;
}

.music-page .feature-page-hero {
  background:
    linear-gradient(180deg, rgba(9, 12, 20, .64), rgba(16, 19, 28, .92)),
    url("assets/images/anime-cover-2.png") center / cover;
}

.feature-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 24%, rgba(120,231,255,.16), transparent 25%),
    radial-gradient(circle at 82% 18%, rgba(255,122,168,.15), transparent 24%);
}

.feature-page-hero .content-wrap {
  position: relative;
  z-index: 1;
}

.feature-page-hero h1 {
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(48px, 8vw, 86px);
}

.feature-page-hero p:not(.section-kicker) {
  max-width: 720px;
  margin: 0;
  color: rgba(238,243,255,.72);
  font-size: 18px;
  line-height: 1.8;
}

.feature-mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.mosaic-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  box-shadow: 0 20px 56px rgba(0,0,0,.2);
}

.mosaic-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.16, 1, .3, 1);
}

.mosaic-card:hover img {
  transform: scale(1.06);
}

.mosaic-card figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  color: #fff;
  font-weight: 900;
  text-shadow: 0 8px 22px rgba(0,0,0,.45);
}

.mosaic-card figcaption small {
  display: block;
  max-width: 240px;
  margin-top: 6px;
  color: rgba(238,243,255,.72);
  font-size: 13px;
  font-weight: 700;
}

.archive-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.admin-empty-note {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 28px;
  color: #fff;
}

.admin-empty-note strong {
  font-size: 24px;
}

.admin-empty-note span {
  color: rgba(238,243,255,.68);
}

.music-list {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 26px;
}

.music-list-head,
.music-row {
  position: relative;
  z-index: 1;
}

.music-list-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  color: rgba(238,243,255,.74);
}

.music-list-head strong {
  color: #fff;
  font-size: 22px;
}

.music-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(238,243,255,.72);
}

.music-row span {
  color: #fff;
  font-weight: 900;
}

.music-row b {
  color: #ff7aa8;
  font-size: 13px;
}

.moments-list {
  display: grid;
  gap: 14px;
  width: min(860px, 100%);
  margin: 0 auto;
}

.moment-card {
  padding: 22px 24px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  color: rgba(238,243,255,.78);
  background: rgba(255,255,255,.065);
  box-shadow: 0 18px 52px rgba(0,0,0,.18);
  backdrop-filter: blur(18px) saturate(1.12);
}

.moment-card time {
  display: block;
  margin-bottom: 10px;
  color: #8be9ff;
  font-size: 12px;
  font-weight: 900;
}

.moment-card p {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
}

/* Immersive loader and music studio */
.site-loader {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 50% 42%, rgba(123,108,255,.2), transparent 24%),
    #050817;
  transition: opacity .7s ease, visibility .7s ease;
}

.site-loader.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.loader-core {
  display: grid;
  justify-items: center;
  gap: 16px;
  transform: translateY(-10px);
}

.loader-avatar {
  display: grid;
  width: 92px;
  aspect-ratio: 1;
  place-items: stretch;
  overflow: hidden;
  border: 2px solid rgba(160, 145, 255, .86);
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 32px rgba(123,108,255,.65), 0 0 72px rgba(255,122,168,.22);
  animation: loaderPulse 1.8s ease-in-out infinite;
}

.loader-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loader-core strong {
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: .16em;
}

.loader-core em {
  color: rgba(190, 220, 255, .82);
  font-size: 12px;
  font-style: normal;
  letter-spacing: .58em;
}

.loader-core i {
  display: block;
  width: 160px;
  height: 3px;
  overflow: hidden;
  margin-top: 22px;
  background: rgba(255,255,255,.15);
}

.loader-core i::before {
  content: "";
  display: block;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, #8be9ff, #7b6cff, #ff7aa8);
  animation: loaderBar 1.25s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes loaderBar {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(230%); }
}

.music-studio-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(10,11,22,.2), rgba(11,13,24,.86)),
    url("assets/images/anime-cover-2.png") center top / cover fixed;
}

.music-hero-panel {
  position: relative;
  padding: 140px 0 32px;
}

.music-hero-panel h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1.06;
}

.music-hero-panel p:not(.section-kicker) {
  max-width: 640px;
  margin: 0;
  color: rgba(238,243,255,.76);
  font-size: 19px;
}

.music-studio {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.music-turntable,
.lyric-board,
.message-board {
  border-color: rgba(255,255,255,.18);
  background:
    linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.055)),
    rgba(26, 28, 48, .76);
  backdrop-filter: blur(22px) saturate(1.15);
}

.music-turntable {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(28px, 4vw, 44px);
}

.turntable-cover {
  position: relative;
  width: min(260px, 72vw);
  aspect-ratio: 1;
  overflow: hidden;
  border: 8px solid rgba(91, 112, 156, .72);
  border-radius: 50%;
  background: #111827;
  box-shadow: 0 24px 70px rgba(0,0,0,.36);
}

.turntable-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.turntable-cover span {
  position: absolute;
  inset: 50%;
  width: 58px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #243044;
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 0 14px rgba(255,255,255,.08);
}

.music-studio.is-playing .turntable-cover {
  animation: albumSpin 13s linear infinite;
}

.turntable-meta {
  text-align: center;
}

.turntable-meta h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(28px, 4vw, 40px);
}

.turntable-meta p {
  margin: 0;
  color: rgba(238,243,255,.68);
  font-weight: 800;
}

.studio-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 22px);
}

.music-shuffle,
.music-volume {
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  place-items: center;
  border: 0;
  color: rgba(139,233,255,.78);
  background: transparent;
  font: inherit;
  font-size: 22px;
  cursor: pointer;
}

.lyric-board {
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr);
  overflow: hidden;
  padding: 0;
}

.lyric-tabs {
  display: flex;
  justify-content: center;
  padding: 28px 28px 14px;
}

.lyric-tabs button {
  min-width: 132px;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.24);
  color: rgba(238,243,255,.62);
  background: rgba(8,11,25,.34);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.lyric-tabs button:first-child {
  border-radius: 999px 0 0 999px;
}

.lyric-tabs button:last-child {
  border-radius: 0 999px 999px 0;
}

.lyric-tabs button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #6f63ff, #7b6cff);
  box-shadow: 0 12px 34px rgba(111,99,255,.3);
}

.lyric-panel,
.playlist-panel {
  display: none;
  min-height: 360px;
  padding: 34px clamp(24px, 5vw, 58px);
}

.lyric-panel.is-active,
.playlist-panel.is-active {
  display: block;
}

.lyric-lines {
  max-height: 430px;
  overflow: hidden;
  padding: 70px 0;
  text-align: center;
  mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent);
}

.lyric-lines p {
  margin: 18px 0;
  color: rgba(238,243,255,.18);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
  line-height: 1.7;
  transform: scale(.96);
  transition: color .32s ease, transform .32s ease, text-shadow .32s ease, opacity .32s ease;
}

.lyric-lines p.is-active {
  color: #7f8cff;
  transform: scale(1.08);
  text-shadow: 0 0 26px rgba(123,108,255,.42);
}

.playlist-panel {
  display: none;
  gap: 14px;
}

.playlist-panel.is-active {
  display: grid;
}

.playlist-panel .music-track {
  display: grid;
  width: 100%;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-areas:
    "cover title"
    "cover artist";
  gap: 4px 14px;
  min-height: 74px;
  padding: 10px 14px;
  border-radius: 18px;
  text-align: left;
}

.playlist-panel .music-track img {
  grid-area: cover;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
}

.playlist-panel .music-track span {
  grid-area: title;
  align-self: end;
  color: #fff;
}

.playlist-panel .music-track em {
  grid-area: artist;
  color: rgba(238,243,255,.58);
  font-style: normal;
}

.message-board {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 38px);
}

.message-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.message-head span {
  display: grid;
  width: 46px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 14px;
  color: #7b6cff;
  background: rgba(123,108,255,.14);
}

.message-head h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 28px;
}

.message-head p,
.message-sample p {
  margin: 0;
  color: rgba(238,243,255,.66);
}

.message-line {
  height: 1px;
  margin: 28px 0;
  background: rgba(139,233,255,.18);
}

.message-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.message-input strong {
  display: grid;
  width: 50px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
}

.message-input input {
  min-height: 58px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  color: #fff;
  background: rgba(255,255,255,.08);
  padding: 0 18px;
  font: inherit;
}

.message-input button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #6f63ff;
  padding: 0 20px;
  font: inherit;
  font-weight: 900;
}

.message-sample {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.06);
}

.message-sample span {
  color: #8be9ff;
  font-weight: 900;
}

.mini-now-playing {
  position: fixed;
  z-index: 28;
  right: 28px;
  bottom: 24px;
  display: grid;
  grid-template-columns: 48px minmax(130px, 1fr) 44px 34px;
  gap: 12px;
  align-items: center;
  width: min(340px, calc(100vw - 32px));
  padding: 10px 12px;
}

.mini-now-playing img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.mini-now-playing strong,
.mini-now-playing span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-now-playing strong {
  color: #fff;
}

.mini-now-playing span {
  color: rgba(238,243,255,.58);
  font-size: 12px;
}

.mini-now-playing .music-play {
  width: 44px;
}

.mini-now-playing .music-control {
  width: 34px;
}

@media (max-width: 920px) {
  .music-studio {
    grid-template-columns: 1fr;
  }

  .mini-now-playing {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 860px) {
  .brand-title {
    display: none;
  }

  .feature-mosaic {
    grid-template-columns: 1fr;
  }

  .music-row {
    grid-template-columns: 1fr;
  }
}
/* Global seasonal anime themes */
:root {
  --theme-bg-image: url("assets/images/theme-sakura-morning.png");
  --theme-hero-image: url("assets/images/theme-sakura-hero.png");
  --theme-bg-base: #fff4fb;
  --theme-bg-deep: #eadbf7;
  --theme-bg-mist: rgba(255, 247, 252, .72);
  --theme-panel: rgba(255, 255, 255, .52);
  --theme-panel-strong: rgba(255, 255, 255, .68);
  --theme-panel-dark: rgba(116, 82, 134, .24);
  --theme-border: rgba(255, 255, 255, .62);
  --theme-text: #3f304a;
  --theme-text-strong: #251b30;
  --theme-muted: #786b84;
  --theme-accent: #d765a7;
  --theme-accent-2: #9f86ff;
  --theme-glow: rgba(255, 182, 217, .42);
  --theme-particle: rgba(255, 135, 188, .55);
  --theme-grid: rgba(151, 119, 176, .13);
}

html[data-bujiexu-theme="night"] {
  --theme-bg-image: url("assets/images/theme-firefly-deepspace.png");
  --theme-hero-image: url("assets/images/theme-firefly-deepspace.png");
  --theme-bg-base: #07112f;
  --theme-bg-deep: #030816;
  --theme-bg-mist: rgba(7, 16, 42, .72);
  --theme-panel: rgba(18, 30, 66, .56);
  --theme-panel-strong: rgba(27, 42, 82, .68);
  --theme-panel-dark: rgba(5, 9, 26, .68);
  --theme-border: rgba(150, 190, 255, .24);
  --theme-text: #dce8ff;
  --theme-text-strong: #ffffff;
  --theme-muted: #9fb1db;
  --theme-accent: #8ee8ff;
  --theme-accent-2: #a98cff;
  --theme-glow: rgba(118, 210, 255, .28);
  --theme-particle: rgba(239, 255, 151, .78);
  --theme-grid: rgba(127, 176, 255, .09);
}

html,
body {
  min-height: 100%;
  background:
    radial-gradient(circle at 16% 12%, var(--theme-glow), transparent 28%),
    linear-gradient(180deg, var(--theme-bg-base), var(--theme-bg-deep));
  color: var(--theme-text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.02) 36%, rgba(0,0,0,.22)),
    var(--theme-bg-image) center / cover no-repeat;
  opacity: .94;
  filter: saturate(1.05) contrast(1.02);
  mask-image: none;
  -webkit-mask-image: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 22%, var(--theme-particle) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 34%, var(--theme-particle) 0 1.5px, transparent 3px),
    linear-gradient(var(--theme-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--theme-grid) 1px, transparent 1px);
  background-size: 170px 210px, 230px 180px, 68px 68px, 68px 68px;
  animation: themeDrift 18s linear infinite;
  opacity: .72;
  mask-image: linear-gradient(#000, rgba(0,0,0,.86) 72%, transparent);
}

@keyframes themeDrift {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 38px 240px, -64px 210px, 0 0, 0 0; }
}

.site-header {
  border-bottom: 1px solid var(--theme-border);
  background:
    linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.06)),
    var(--theme-panel-dark);
  box-shadow: 0 18px 70px rgba(46, 28, 72, .18);
}

html[data-bujiexu-theme="night"] .site-header {
  box-shadow: 0 18px 70px rgba(0, 0, 0, .34);
}

.brand,
.site-nav a {
  color: var(--theme-text-strong);
}

.brand {
  background: var(--theme-panel);
  border-color: var(--theme-border);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-color: color-mix(in srgb, var(--theme-accent) 58%, transparent);
  background: color-mix(in srgb, var(--theme-accent) 18%, transparent);
  color: var(--theme-text-strong);
}

.theme-toggle {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  background: var(--theme-panel);
  color: var(--theme-text-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 12px 34px rgba(0,0,0,.12);
  cursor: pointer;
  backdrop-filter: blur(20px) saturate(1.2);
}

.theme-toggle span {
  grid-area: 1 / 1;
  transition: opacity .2s ease, transform .2s ease;
}

html[data-bujiexu-theme="day"] .theme-toggle-moon,
html:not([data-bujiexu-theme="night"]) .theme-toggle-moon {
  opacity: 0;
  transform: scale(.6) rotate(-18deg);
}

html[data-bujiexu-theme="night"] .theme-toggle-sun {
  opacity: 0;
  transform: scale(.6) rotate(18deg);
}

.home-stage::before,
.projects-hero,
.feature-page-hero,
.resource-hero,
.page-hero {
  background:
    linear-gradient(90deg, var(--theme-bg-mist), rgba(255,255,255,.08)),
    var(--theme-hero-image) center / cover no-repeat !important;
  transform: none !important;
  filter: saturate(1.04) contrast(1.02) !important;
}

.home-stage::after,
.projects-hero::after,
.feature-page-hero::after {
  background-image:
    radial-gradient(circle at 18% 18%, var(--theme-glow), transparent 28%),
    radial-gradient(circle at 78% 12%, color-mix(in srgb, var(--theme-accent-2) 28%, transparent), transparent 26%),
    linear-gradient(var(--theme-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--theme-grid) 1px, transparent 1px) !important;
}

.home-stage,
.resource-page,
.projects-section,
.feature-page-section,
.archive-page,
.section {
  color: var(--theme-text);
}

.glass-card,
.post-card,
.topic-card,
.profile-panel,
.lane-card,
.gallery-panel,
.mini-panel,
.project-card,
.archive-card,
.resource-toolbar,
.resource-index,
.resource-item,
.resource-hero-card,
.music-player-card,
.lyrics-panel,
.message-board {
  border-color: var(--theme-border) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.035)),
    var(--theme-panel) !important;
  color: var(--theme-text);
  box-shadow: 0 24px 78px rgba(42, 24, 70, .18), inset 0 1px 0 rgba(255,255,255,.14);
  backdrop-filter: blur(22px) saturate(1.22);
}

html[data-bujiexu-theme="night"] .glass-card,
html[data-bujiexu-theme="night"] .post-card,
html[data-bujiexu-theme="night"] .topic-card,
html[data-bujiexu-theme="night"] .profile-panel,
html[data-bujiexu-theme="night"] .lane-card,
html[data-bujiexu-theme="night"] .gallery-panel,
html[data-bujiexu-theme="night"] .mini-panel,
html[data-bujiexu-theme="night"] .project-card,
html[data-bujiexu-theme="night"] .archive-card,
html[data-bujiexu-theme="night"] .resource-toolbar,
html[data-bujiexu-theme="night"] .resource-index,
html[data-bujiexu-theme="night"] .resource-item,
html[data-bujiexu-theme="night"] .resource-hero-card,
html[data-bujiexu-theme="night"] .music-player-card,
html[data-bujiexu-theme="night"] .lyrics-panel,
html[data-bujiexu-theme="night"] .message-board {
  box-shadow: 0 24px 78px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255,255,255,.1);
}

.home-search,
.resource-search,
.message-input input,
.music-progress i {
  border-color: var(--theme-border) !important;
  background: var(--theme-panel-strong) !important;
  color: var(--theme-text-strong) !important;
}

.home-search input,
.home-search input::placeholder,
.resource-search::placeholder {
  color: color-mix(in srgb, var(--theme-text) 70%, transparent) !important;
}

.card-kicker,
.section-kicker,
.resource-current span,
.resource-subgroup h3,
.feature-page-hero .section-kicker {
  color: var(--theme-accent) !important;
}

.identity-card h1,
.music-card h2,
.lane-card strong,
.resource-hero h1,
.projects-hero h1,
.feature-page-hero h1,
.page-hero h1,
.archive-card h3,
.resource-group-head h2,
.resource-item strong {
  color: var(--theme-text-strong) !important;
}

.identity-card p,
.music-artist,
.lane-card em,
.resource-hero p,
.projects-hero p,
.feature-page-hero p,
.resource-item > span:not(.resource-favicon),
.resource-item em,
.post-card p,
.archive-card p {
  color: var(--theme-muted) !important;
}

.identity-avatar,
.brand-mark {
  background: rgba(255,255,255,.72);
  border-color: var(--theme-border);
}

.music-play,
.button.primary,
.message-input button,
.lyric-tabs button.is-active {
  background: linear-gradient(135deg, var(--theme-accent), var(--theme-accent-2)) !important;
  color: #fff !important;
}

.resource-index a.is-active,
.resource-current {
  border-color: color-mix(in srgb, var(--theme-accent) 54%, transparent) !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--theme-accent) 18%, transparent), color-mix(in srgb, var(--theme-accent-2) 16%, transparent)),
    var(--theme-panel-strong) !important;
  color: var(--theme-text-strong);
}

html[data-bujiexu-theme="day"] .ambient-canvas {
  opacity: .42;
  mix-blend-mode: soft-light;
}

html[data-bujiexu-theme="night"] .ambient-canvas {
  opacity: .86;
  mix-blend-mode: screen;
}

.site-loader {
  background:
    radial-gradient(circle at 50% 40%, var(--theme-glow), transparent 24%),
    linear-gradient(180deg, var(--theme-bg-base), var(--theme-bg-deep)) !important;
}

.theme-mode-card {
  appearance: none;
  width: 100%;
  border: 1px solid var(--theme-border);
  text-align: left;
  cursor: pointer;
}

.theme-mode-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--theme-accent) 48%, transparent);
  outline-offset: 3px;
}

/* Theme polish: sakura morning and firefly deep-space consistency */
html[data-bujiexu-theme="day"] {
  --theme-panel: rgba(255, 226, 244, .46);
  --theme-panel-strong: rgba(255, 238, 248, .62);
  --theme-panel-dark: rgba(185, 138, 190, .22);
  --theme-border: rgba(255, 255, 255, .72);
  --theme-text: #624a68;
  --theme-text-strong: #33223e;
  --theme-muted: #7c6884;
  --theme-accent: #e768aa;
  --theme-accent-2: #b995ff;
  --theme-grid: rgba(137, 100, 160, .12);
}

html[data-bujiexu-theme="day"] .site-header,
html[data-bujiexu-theme="day"] .brand,
html[data-bujiexu-theme="day"] .home-search,
html[data-bujiexu-theme="day"] .glass-card,
html[data-bujiexu-theme="day"] .lane-card,
html[data-bujiexu-theme="day"] .mini-panel,
html[data-bujiexu-theme="day"] .resource-toolbar,
html[data-bujiexu-theme="day"] .resource-index,
html[data-bujiexu-theme="day"] .resource-item,
html[data-bujiexu-theme="day"] .resource-current,
html[data-bujiexu-theme="day"] .lyric-strip {
  background:
    linear-gradient(135deg, rgba(255, 245, 252, .42), rgba(234, 205, 244, .24)),
    rgba(255, 226, 244, .34) !important;
  border-color: rgba(255, 255, 255, .68) !important;
  color: var(--theme-text);
  box-shadow: 0 18px 58px rgba(141, 90, 152, .16), inset 0 1px 0 rgba(255,255,255,.36);
}

html[data-bujiexu-theme="day"] .lyric-strip {
  background:
    linear-gradient(90deg, rgba(255, 217, 239, .54), rgba(226, 205, 255, .42)),
    rgba(255, 241, 250, .34) !important;
}

html[data-bujiexu-theme="day"] .music-card::before,
html[data-bujiexu-theme="day"] .mood-panel::before,
html[data-bujiexu-theme="day"] .mini-panel::before,
html[data-bujiexu-theme="day"] .lane-card::before {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 144, 196, .22), transparent 30%),
    radial-gradient(circle at 22% 90%, rgba(177, 148, 255, .2), transparent 34%) !important;
}

html[data-bujiexu-theme="day"] .resource-page {
  background:
    linear-gradient(180deg, rgba(255, 236, 248, .34), rgba(225, 205, 246, .24)),
    transparent !important;
}

html[data-bujiexu-theme="day"] .resource-search {
  background: rgba(255, 248, 253, .72) !important;
}

html[data-bujiexu-theme="night"] .lyric-strip {
  background:
    linear-gradient(90deg, rgba(12, 21, 52, .72), rgba(39, 27, 72, .58)),
    rgba(8, 12, 32, .56) !important;
}

.resource-item {
  min-height: 58px !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: 5px 10px !important;
  padding: 10px 12px !important;
}

.resource-favicon {
  width: 30px !important;
  height: 30px !important;
  grid-row: 1 / span 2 !important;
  border-radius: 9px !important;
}

.resource-favicon img {
  width: 20px !important;
  height: 20px !important;
}

.resource-item strong {
  font-size: 13px !important;
  line-height: 1.35 !important;
}

.resource-item > span:not(.resource-favicon) {
  font-size: 12px !important;
  line-height: 1.25 !important;
}

.resource-item em {
  display: none !important;
}

.feature-link img,
.gallery-panel img,
.music-head img {
  filter: saturate(1.08) contrast(1.02);
}

html[data-bujiexu-theme="day"] .feature-shade,
html[data-bujiexu-theme="day"] .gallery-panel::after {
  background: linear-gradient(180deg, rgba(72, 34, 86, .04), rgba(84, 42, 91, .48)) !important;
}

/* Patterned home cards for day and night themes */
.feature-grid {
  align-items: stretch;
}

.feature-cover,
.feature-link {
  height: 100%;
}

.quick-lanes .lane-card,
.media-panel-grid .mini-panel,
.theme-mode-card {
  overflow: hidden;
  isolation: isolate;
}

.quick-lanes .lane-card::after,
.media-panel-grid .mini-panel::after,
.theme-mode-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 14%, rgba(255,255,255,.26), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.2));
}

.quick-lanes .lane-card > *,
.media-panel-grid .mini-panel > *,
.theme-mode-card > * {
  position: relative;
  z-index: 1;
}

html[data-bujiexu-theme="day"] .lane-photo {
  background:
    linear-gradient(90deg, rgba(255, 236, 248, .44), rgba(255, 205, 231, .2)),
    url("assets/images/card-day-photo.png") center / cover no-repeat !important;
}

html[data-bujiexu-theme="day"] .lane-music {
  background:
    linear-gradient(90deg, rgba(255, 236, 248, .46), rgba(221, 205, 255, .2)),
    url("assets/images/card-day-music.png") center / cover no-repeat !important;
}

html[data-bujiexu-theme="day"] .lane-moments {
  background:
    linear-gradient(90deg, rgba(255, 236, 248, .46), rgba(246, 198, 232, .2)),
    url("assets/images/card-day-moments.png") center / cover no-repeat !important;
}

html[data-bujiexu-theme="day"] .resource-mini {
  background:
    linear-gradient(90deg, rgba(255, 230, 247, .62), rgba(255, 216, 239, .32)),
    url("assets/images/card-day-resource.png") center / cover no-repeat !important;
}

html[data-bujiexu-theme="day"] .journal-mini {
  background:
    linear-gradient(90deg, rgba(255, 232, 248, .62), rgba(225, 210, 255, .28)),
    url("assets/images/card-day-journal.png") center / cover no-repeat !important;
}

html[data-bujiexu-theme="day"] .run-panel {
  background:
    linear-gradient(90deg, rgba(255, 232, 248, .62), rgba(255, 216, 239, .28)),
    url("assets/images/card-day-runtime.png") center / cover no-repeat !important;
}

html[data-bujiexu-theme="day"] .mood-panel {
  background:
    linear-gradient(90deg, rgba(255, 232, 248, .62), rgba(223, 207, 255, .3)),
    url("assets/images/card-day-mood.png") center / cover no-repeat !important;
}

html[data-bujiexu-theme="night"] .lane-photo {
  background:
    linear-gradient(90deg, rgba(6, 13, 40, .68), rgba(20, 30, 74, .4)),
    url("assets/images/card-night-photo.png") center / cover no-repeat !important;
}

html[data-bujiexu-theme="night"] .lane-music {
  background:
    linear-gradient(90deg, rgba(6, 13, 40, .72), rgba(48, 30, 86, .36)),
    url("assets/images/card-night-music.png") center / cover no-repeat !important;
}

html[data-bujiexu-theme="night"] .lane-moments {
  background:
    linear-gradient(90deg, rgba(6, 13, 40, .7), rgba(27, 48, 92, .38)),
    url("assets/images/card-night-moments.png") center / cover no-repeat !important;
}

html[data-bujiexu-theme="night"] .resource-mini,
html[data-bujiexu-theme="night"] .journal-mini,
html[data-bujiexu-theme="night"] .run-panel,
html[data-bujiexu-theme="night"] .mood-panel {
  background:
    linear-gradient(90deg, rgba(7, 13, 38, .76), rgba(33, 40, 84, .48)),
    url("assets/images/card-night-resource.png") center / cover no-repeat !important;
}

html[data-bujiexu-theme="night"] .journal-mini {
  background:
    linear-gradient(90deg, rgba(7, 13, 38, .76), rgba(33, 40, 84, .48)),
    url("assets/images/card-night-journal.png") center / cover no-repeat !important;
}

html[data-bujiexu-theme="night"] .run-panel {
  background:
    linear-gradient(90deg, rgba(7, 13, 38, .76), rgba(33, 40, 84, .48)),
    url("assets/images/card-night-runtime.png") center / cover no-repeat !important;
}

html[data-bujiexu-theme="night"] .mood-panel {
  background:
    linear-gradient(90deg, rgba(7, 13, 38, .76), rgba(33, 40, 84, .48)),
    url("assets/images/card-night-mood.png") center / cover no-repeat !important;
}

html[data-bujiexu-theme="day"] .quick-lanes .lane-card::after,
html[data-bujiexu-theme="day"] .media-panel-grid .mini-panel::after,
html[data-bujiexu-theme="day"] .theme-mode-card::after {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, .3), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255, 179, 222, .24));
}

html[data-bujiexu-theme="night"] .quick-lanes .lane-card::after,
html[data-bujiexu-theme="night"] .media-panel-grid .mini-panel::after,
html[data-bujiexu-theme="night"] .theme-mode-card::after {
  background:
    radial-gradient(circle at 82% 18%, rgba(142, 232, 255, .2), transparent 24%),
    linear-gradient(180deg, rgba(5, 8, 26, .05), rgba(5, 8, 26, .44));
}
