/* Dynamic LifeAtlas-style atmosphere for Butterfly. */
#page-header,
#web_bg {
  overflow: hidden;
}

#nav {
  position: fixed !important;
  top: 18px;
  left: 50%;
  width: min(1500px, calc(100% - 52px));
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 16px 46px rgba(5, 10, 18, 0.16);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

#nav a,
#nav #site-name,
#nav .site-name,
#nav .site-page,
#nav span.site-page,
#nav .menus_item .group,
#nav .menus_item i,
#nav .menus_item_child li a {
  color: #1f2937 !important;
  text-shadow: none !important;
}

#nav #blog-info a {
  font-weight: 800;
}

#nav .menus_items {
  display: flex;
  align-items: center;
  gap: 8px;
}

#nav .menus_items .menus_item {
  padding: 0 4px;
}

#nav .menus_items .menus_item > a {
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

#nav .menus_items .menus_item > a:hover,
#nav .menus_items .menus_item > span.site-page:hover {
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.08);
}

#nav .menus_items .menus_item > a:hover i,
#nav .menus_items .menus_item > span.site-page:hover i {
  color: #2563eb !important;
}

#nav .menus_item_child {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 18px 46px rgba(5, 10, 18, 0.16);
  backdrop-filter: blur(18px);
}

#nav .menus_item_child li a:hover {
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.08) !important;
}

#nav.show {
  background: rgba(255, 255, 255, 0.88) !important;
}

#page-header.nav-fixed #nav,
#nav.fixed {
  position: fixed !important;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
}

#body-wrap {
  overflow: visible;
}

#content-inner {
  max-width: 1460px;
}

#aside-content .card-widget,
#recent-posts .recent-post-item,
#page,
.home-workbench,
.home-search-panel,
.notes-control-panel,
.notes-category,
.search-filter-panel,
.search-result-card,
.timeline-shell {
  border-radius: 16px !important;
}

.home-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  gap: 18px;
  margin: 0 0 22px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.86)),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 56px rgba(5, 10, 18, 0.1);
  backdrop-filter: blur(18px);
}

.home-workbench-main {
  min-height: 220px;
  padding: 30px;
  border-radius: 14px;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.62)),
    url("/img/lifeatlas-bg.png") center / cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.home-workbench-kicker,
.notes-control-head span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #38bdf8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-workbench h2 {
  max-width: 640px;
  margin: 0 0 12px;
  color: #fff;
  font-size: 30px;
  line-height: 1.35;
}

.home-workbench p {
  max-width: 680px;
  margin: 0;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.8;
}

.home-workbench-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.home-workbench-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.home-workbench-actions a:hover {
  color: #0f172a;
  background: #b7ff2e;
}

.home-workbench-side {
  display: grid;
  gap: 14px;
}

.home-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.home-stat-grid div,
.home-latest-card {
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.home-stat-grid strong {
  display: block;
  color: #2563eb;
  font-size: 28px;
  line-height: 1;
}

.home-stat-grid span,
.home-latest-card span,
.home-latest-card em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.home-latest-card {
  display: flex;
  min-height: 112px;
  color: #1f2937;
  flex-direction: column;
  justify-content: center;
}

.home-latest-card strong {
  display: block;
  margin: 8px 0;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.45;
}

.media-page {
  max-width: 980px;
  margin: 0 auto;
}

.desktop-widget {
  position: absolute;
  right: clamp(24px, 8vw, 150px);
  bottom: clamp(78px, 14vh, 150px);
  z-index: 4;
  width: 246px;
  padding: 15px 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 12px;
  color: #101827;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(226, 237, 246, 0.76)),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    0 18px 50px rgba(5, 10, 18, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
}

.desktop-widget::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 11px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
}

.desktop-widget-top,
.desktop-widget-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.desktop-widget-top i {
  color: #0ea5e9;
}

.desktop-widget .weather-status i {
  color: #ef4444;
}

.desktop-widget-time {
  position: relative;
  margin: 15px 0 14px;
  color: #020617;
  font-family: "Arial Black", "Impact", sans-serif;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.desktop-widget-bottom {
  font-size: 13px;
}

.desktop-widget.aside-weather-widget {
  position: relative;
  inset: auto;
  z-index: auto;
  width: auto;
  margin-top: 20px;
  padding: 16px;
  border-color: rgba(255, 255, 255, 0.32);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(226, 237, 246, 0.82)),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 46px rgba(5, 10, 18, 0.09);
  transform: none;
}

.desktop-widget.aside-weather-widget .desktop-widget-time {
  font-size: 32px;
}

.media-hero,
.media-player-card,
.video-player-card {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 56px rgba(5, 10, 18, 0.12);
  backdrop-filter: blur(18px);
}

.media-hero {
  padding: 34px;
  margin-bottom: 24px;
}

.media-kicker {
  margin: 0 0 8px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.media-hero h2,
.media-info h3 {
  margin: 0 0 12px;
  color: #1f2937;
}

.media-hero p,
.media-info p {
  color: #64748b;
}

.media-player-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  padding: 28px;
  align-items: center;
}

.media-cover {
  aspect-ratio: 1;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.42), rgba(183, 255, 46, 0.24)),
    url("/img/lifeatlas-bg.png") center / cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.media-info audio,
.video-player-card video {
  width: 100%;
}

.media-info span {
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
}

.video-player-card {
  overflow: hidden;
}

.video-player-card video {
  display: block;
  max-height: 520px;
  background: #0b1220;
}

.video-player-card .media-info {
  padding: 28px;
}

.video-hub-page {
  max-width: 1080px;
}

.bangumi-panel {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 56px rgba(5, 10, 18, 0.12);
  backdrop-filter: blur(18px);
}

.bangumi-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.bangumi-panel-head h3 {
  margin: 0 0 10px;
  color: #1f2937;
}

.bangumi-panel-head p,
.bangumi-sync-note p,
.bangumi-card p {
  color: #64748b;
  line-height: 1.75;
}

.bangumi-sync-note {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.05)),
    rgba(248, 250, 252, 0.86);
}

.bangumi-sync-note span,
.bangumi-card span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

.bangumi-sync-note p {
  margin: 8px 0 0;
}

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

.bangumi-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.bangumi-toolbar button {
  height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  color: #475569;
  background: rgba(248, 250, 252, 0.92);
  cursor: pointer;
  font-weight: 800;
}

.bangumi-toolbar button.active,
.bangumi-toolbar button:hover {
  color: #fff;
  border-color: #2563eb;
  background: #2563eb;
}

.bangumi-card {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.84);
}

.bangumi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.bangumi-card > div:last-child {
  padding: 18px;
}

.bangumi-card h4 {
  margin: 8px 0;
  color: #1f2937;
}

.bangumi-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  margin-top: 12px;
  padding: 0 13px;
  border-radius: 999px;
  color: #fff;
  background: #00a1d6;
  font-size: 13px;
  font-weight: 800;
}

.bangumi-cover {
  display: block;
  min-height: 138px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.2), rgba(37, 99, 235, 0.16)),
    var(--bangumi-cover, url("/img/lifeatlas-bg.png")) center / cover;
}

.bangumi-cover.placeholder-two {
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(183, 255, 46, 0.12)),
    url("/img/projects/crossroad-chibi.png") center / cover;
}

.bangumi-cover.placeholder-three {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(15, 23, 42, 0.16)),
    url("/img/projects/rpg-chibi.png") center / cover;
}

.netease-card {
  grid-template-columns: 240px 1fr;
}

.netease-card .aplayer {
  margin: 12px 0 0;
  border-radius: 12px;
  box-shadow: none;
}

.netease-iframe-card {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 56px rgba(5, 10, 18, 0.12);
  backdrop-filter: blur(18px);
}

.netease-iframe-card .media-info {
  padding: 28px 28px 0;
}

.netease-iframe-card iframe {
  display: block;
  padding: 0 20px 20px;
}

.music-library-panel {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 56px rgba(5, 10, 18, 0.12);
  backdrop-filter: blur(18px);
}

.music-library-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin: 22px 0 16px;
  padding: 0 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  background: #fff;
}

.music-library-search input {
  width: 100%;
  border: 0;
  outline: none;
  color: #1f2937;
  background: transparent;
  font-size: 15px;
}

.music-library-search span {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.music-track-list {
  display: grid;
  gap: 10px;
  max-height: 680px;
  overflow: auto;
  padding-right: 4px;
}

.music-track-item {
  display: grid;
  grid-template-columns: 38px 48px minmax(0, 1fr) minmax(160px, 0.45fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  color: #1f2937;
  background: rgba(248, 250, 252, 0.82);
}

.music-track-item:hover {
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.28);
  background: #fff;
  transform: translateY(-2px);
}

.music-track-index {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.music-track-item img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.music-track-main {
  min-width: 0;
}

.music-track-main strong,
.music-track-main em,
.music-track-album {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-track-main strong {
  color: inherit;
  font-size: 15px;
}

.music-track-main em,
.music-track-album {
  color: #64748b;
  font-size: 13px;
  font-style: normal;
}

.music-track-empty {
  padding: 18px;
  border-radius: 14px;
  color: #64748b;
  background: rgba(248, 250, 252, 0.86);
}

.media-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: #00a1d6;
  font-weight: 700;
}

.project-page {
  max-width: 1180px;
  margin: 0 auto;
}

.portfolio-hero,
.about-hero,
.about-section,
.project-roadmap,
.learning-paths article {
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 52px rgba(5, 10, 18, 0.1);
  backdrop-filter: blur(18px);
}

.portfolio-hero,
.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
  padding: 34px;
}

.portfolio-hero h2,
.about-hero h2,
.about-section h3,
.project-roadmap h3,
.learning-paths h3 {
  margin: 0 0 12px;
  color: #1f2937;
}

.portfolio-hero p,
.about-hero p,
.about-section p,
.project-roadmap p,
.learning-paths p {
  color: #64748b;
  line-height: 1.8;
}

.portfolio-hero-stats,
.home-stat-grid,
.project-detail-grid,
.skill-grid,
.contact-grid,
.roadmap-grid {
  display: grid;
  gap: 12px;
}

.portfolio-hero-stats {
  grid-template-columns: 1fr;
}

.portfolio-hero-stats div {
  padding: 18px;
  border-radius: 14px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(37, 99, 235, 0.72)),
    url("/img/lifeatlas-bg.png") center / cover;
}

.portfolio-hero-stats strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.portfolio-hero-stats span {
  display: block;
  margin-top: 8px;
  color: rgba(226, 232, 240, 0.9);
  font-size: 13px;
  font-weight: 800;
}

.project-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-showcase-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 56px rgba(5, 10, 18, 0.12);
  backdrop-filter: blur(18px);
}

.project-showcase-cover {
  position: relative;
  min-height: 240px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.48), rgba(183, 255, 46, 0.18)),
    url("/img/lifeatlas-bg.png") center / cover;
}

.project-status {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #0f172a;
  background: #b7ff2e;
  font-size: 12px;
  font-weight: 900;
}

.crossroad-cover {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.14)),
    url("/img/projects/rpg-chibi.png") center / cover;
}

.rpg-cover {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.14)),
    url("/img/projects/crossroad-chibi.png") center / cover;
}

.project-showcase-body {
  padding: 28px;
}

.project-showcase-body span,
.project-title-row em {
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
}

.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-title-row em {
  color: #64748b;
  font-style: normal;
  white-space: nowrap;
}

.project-showcase-body h3 {
  margin: 10px 0 12px;
  color: #1f2937;
}

.project-showcase-body p,
.project-showcase-body li {
  color: #64748b;
}

.project-showcase-body ul {
  padding-left: 18px;
  margin: 16px 0 22px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.project-tags b {
  padding: 6px 10px;
  border-radius: 999px;
  color: #2563eb;
  background: #e0f2fe;
  font-size: 12px;
}

.project-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.project-detail-grid div,
.roadmap-grid div,
.skill-grid article,
.contact-grid a {
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.82);
}

.project-detail-grid h4,
.skill-grid h4,
.about-timeline h4 {
  margin: 0 0 8px;
  color: #1f2937;
}

.project-summary-strip {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.06)),
    rgba(248, 250, 252, 0.86);
}

.project-summary-strip span {
  display: block;
  margin-bottom: 6px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

.project-summary-strip p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.project-secondary-link,
.about-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: #1f2937;
  background: #eef2ff;
  font-weight: 800;
}

.project-roadmap {
  margin-top: 24px;
  padding: 28px;
}

.roadmap-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.roadmap-grid strong {
  display: block;
  color: #1f2937;
  margin-bottom: 8px;
}

.roadmap-grid span {
  color: #64748b;
  line-height: 1.7;
}

.about-page {
  max-width: 1180px;
  margin: 0 auto;
}

.about-profile-card {
  display: grid;
  justify-items: center;
  padding: 26px;
  border-radius: 16px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(37, 99, 235, 0.68)),
    url("/img/lifeatlas-bg.png") center / cover;
}

.about-profile-card img {
  width: 118px;
  height: 118px;
  border: 4px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  object-fit: cover;
}

.about-profile-card strong {
  margin-top: 16px;
  font-size: 18px;
}

.about-profile-card span {
  margin-top: 6px;
  color: rgba(226, 232, 240, 0.92);
  font-size: 13px;
  font-weight: 800;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.about-section {
  margin-top: 24px;
  padding: 30px;
}

.skill-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.skill-grid i {
  color: #2563eb;
  font-size: 22px;
}

.about-timeline {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.about-timeline article {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.82);
}

.about-timeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: #2563eb;
  font-size: 13px;
  font-weight: 900;
}

.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.contact-grid strong,
.contact-grid span {
  display: block;
}

.contact-grid strong {
  color: #1f2937;
}

.contact-grid span {
  margin-top: 8px;
  color: #64748b;
}

.notes-library {
  max-width: 1180px;
  margin: 0 auto;
}

.learning-paths {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 20px;
}

.learning-paths article {
  padding: 22px;
}

.learning-paths span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.learning-paths a {
  display: inline-flex;
  margin-top: 14px;
  color: #2563eb;
  font-weight: 900;
}

.notes-category {
  overflow: hidden;
  margin: 16px 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 46px rgba(5, 10, 18, 0.08);
  backdrop-filter: blur(18px);
}

.notes-category h2 {
  margin: 0;
  padding: 22px 24px;
  color: #1f2937;
  cursor: pointer;
  font-size: 20px;
  user-select: none;
}

.notes-category h2::after {
  content: attr(data-count);
  float: right;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.notes-category h2::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  border-radius: 999px;
  color: #fff;
  background: #2563eb;
  font-size: 15px;
  line-height: 1;
}

.notes-category.open h2::before {
  content: "-";
}

.notes-category.collapsed .notes-grid {
  display: none;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 24px 24px;
}

.note-card {
  display: flex;
  min-height: 86px;
  padding: 16px 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  color: #1f2937;
  background: rgba(248, 250, 252, 0.78);
  box-shadow: none;
  flex-direction: column;
  justify-content: space-between;
}

.note-card:hover {
  color: #2563eb;
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.28);
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.note-card strong {
  display: block;
  font-size: 16px;
  line-height: 1.45;
}

.note-card span {
  margin-top: 12px;
  color: #64748b;
  font-size: 13px;
}

.notes-control-panel {
  position: sticky;
  top: 82px;
  z-index: 8;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 46px rgba(5, 10, 18, 0.1);
  backdrop-filter: blur(18px);
}

.notes-control-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.notes-control-head strong {
  color: #1f2937;
  font-size: 18px;
}

.notes-control-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 15px;
  background: #fff;
}

.notes-control-search input {
  width: 100%;
  border: 0;
  outline: none;
  color: #1f2937;
  background: transparent;
  font-size: 15px;
}

.notes-category-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 12px;
  padding-bottom: 2px;
}

.notes-category-rail button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  color: #475569;
  background: rgba(248, 250, 252, 0.92);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.notes-category-rail button:hover {
  color: #fff;
  border-color: #2563eb;
  background: #2563eb;
}

.notes-category-rail span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: #2563eb;
  background: #e0f2fe;
}

.notes-category-rail button:hover span {
  color: #0f172a;
  background: #b7ff2e;
}

.notes-control-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.notes-control-actions button {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #1f2937;
  cursor: pointer;
  font-weight: 700;
}

.notes-control-count {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.notes-category.search-empty {
  display: none;
}

.note-card.search-hidden {
  display: none;
}

.home-search-panel {
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 50px rgba(5, 10, 18, 0.1);
  backdrop-filter: blur(18px);
}

.home-search-box,
.search-mainbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  background: #fff;
}

.home-search-box input,
.search-mainbar input {
  width: 100%;
  border: 0;
  outline: none;
  color: #1f2937;
  background: transparent;
  font-size: 16px;
}

.home-search-hint {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 13px;
}

#recent-posts .recent-post-item {
  overflow: hidden;
  min-height: auto !important;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 18px 52px rgba(5, 10, 18, 0.1);
  backdrop-filter: blur(18px);
}

#recent-posts .recent-post-item .post_cover {
  display: none !important;
}

#recent-posts .recent-post-item .recent-post-info {
  width: 100% !important;
  padding: 32px !important;
}

#recent-posts .recent-post-item .article-title {
  color: #1f2937;
  font-size: 24px;
}

#recent-posts .recent-post-item .article-meta-wrap,
#recent-posts .recent-post-item .content {
  color: #64748b;
}

#recent-posts .recent-post-item.search-hidden {
  display: none !important;
}

.search-workbench,
.timeline-page {
  max-width: 1180px;
  margin: 0 auto;
}

.search-hero h2,
.timeline-hero h2 {
  margin-bottom: 10px;
}

.search-mainbar {
  margin-top: 24px;
  min-height: 58px;
}

.search-mainbar button,
.search-mode-tabs button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.search-mainbar button {
  min-width: 70px;
  height: 36px;
  color: #fff;
  background: #2563eb;
}

.search-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.search-tools label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #64748b;
  font-weight: 700;
}

.search-tools input[type="range"] {
  width: 190px;
}

.search-mode-tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
}

.search-mode-tabs button {
  height: 34px;
  padding: 0 16px;
  color: #64748b;
  background: transparent;
}

.search-mode-tabs button.active {
  color: #fff;
  background: #1f2937;
}

.search-filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 46px rgba(5, 10, 18, 0.08);
  backdrop-filter: blur(18px);
}

.search-filter-panel span,
.search-count {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.search-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.search-chip-row button {
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  color: #475569;
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
}

.search-chip-row button.active {
  color: #fff;
  border-color: #2563eb;
  background: #2563eb;
}

.search-result-grid {
  --result-scale: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(18px * var(--result-scale));
}

.search-result-card {
  padding: calc(22px * var(--result-scale));
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 52px rgba(5, 10, 18, 0.1);
  backdrop-filter: blur(18px);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.search-result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(5, 10, 18, 0.14);
}

.search-result-card h3 {
  margin: 0 0 10px;
  font-size: calc(20px * var(--result-scale));
}

.search-result-card h3 a {
  color: #1f2937;
}

.search-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #64748b;
  font-size: calc(13px * var(--result-scale));
}

.search-result-card p {
  margin: 14px 0 0;
  color: #64748b;
  font-size: calc(15px * var(--result-scale));
  line-height: 1.8;
}

.search-result-grid.compact {
  grid-template-columns: 1fr;
}

.search-result-grid.compact .search-result-card {
  padding: 18px 20px;
}

.timeline-shell {
  position: relative;
  padding: 28px 30px 34px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 52px rgba(5, 10, 18, 0.1);
  backdrop-filter: blur(18px);
}

.timeline-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: #1f2937;
  font-size: 20px;
}

.timeline-stat i {
  color: #2563eb;
}

.portfolio-timeline {
  position: relative;
  padding-left: 32px;
}

.portfolio-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 9px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(#2563eb, rgba(37, 99, 235, 0.12));
}

.timeline-year {
  margin: 28px 0 14px;
  color: #1f2937;
  font-size: 22px;
}

.timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 14px 0 18px;
  opacity: 0;
  transform: translateY(16px);
  animation: timelineRise 0.58s ease forwards;
  animation-delay: var(--delay, 0ms);
}

.timeline-entry::before {
  content: "";
  position: absolute;
  top: 23px;
  left: -29px;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.timeline-date {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.timeline-card {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.timeline-card a {
  color: #1f2937;
  font-size: 17px;
  font-weight: 800;
}

.timeline-card p {
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.7;
}

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

#aside-content .card-webinfo .webinfo {
  color: #374151;
  font-size: 15px;
}

#aside-content .card-webinfo {
  display: none;
}

#aside-content .card-widget {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 46px rgba(5, 10, 18, 0.09);
  backdrop-filter: blur(18px);
}

#aside-content .item-headline {
  color: #1f2937;
  font-weight: 900;
}

#aside-content .card-info .author-info-name {
  color: #1f2937;
  font-weight: 900;
}

#aside-content .card-info .author-info-description {
  color: #64748b;
}

#aside-content .card-info .site-data {
  display: none;
}

#aside-content #card-info-btn {
  border-radius: 999px;
  background: #2563eb;
}

.card-dev-focus {
  padding: 22px !important;
}

.dev-focus-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.dev-focus-list div {
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.82);
}

.dev-focus-list span,
.dev-stack-row b {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.dev-focus-list strong {
  display: block;
  margin-top: 5px;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.5;
}

.dev-stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.dev-stack-row b {
  padding: 6px 9px;
  border-radius: 999px;
  color: #2563eb;
  background: #e0f2fe;
}

#aside-content .card-webinfo .webinfo-item {
  padding: 5px 0;
}

#aside-content .card-recent-post .aside-list-item {
  min-height: auto;
  padding: 12px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

#aside-content .card-recent-post .aside-list-item:last-child {
  border-bottom: 0;
}

#aside-content .card-recent-post .thumbnail {
  display: none;
}

#aside-content .card-recent-post .content {
  width: 100%;
  padding: 0;
}

#aside-content .card-recent-post .content .title {
  display: block;
  color: #374151;
  font-size: 15px;
  line-height: 1.45;
}

#aside-content .card-recent-post .content time {
  margin-top: 4px;
  color: #8a9099;
  font-size: 13px;
}

#post {
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 52px rgba(5, 10, 18, 0.1);
  backdrop-filter: blur(18px);
}

#article-container {
  color: #334155;
  font-size: 16px;
  line-height: 1.9;
}

#article-container h1,
#article-container h2,
#article-container h3,
#article-container h4 {
  color: #1f2937;
  letter-spacing: 0;
}

#article-container h2 {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

#article-container blockquote {
  border-left: 4px solid #2563eb;
  border-radius: 12px;
  background: #f8fafc;
}

#article-container table {
  overflow: hidden;
  border-radius: 12px;
}

#article-container img {
  border-radius: 12px;
}

#article-container figure.highlight,
#article-container pre {
  border-radius: 14px;
}

@media (max-width: 768px) {
  #nav {
    width: calc(100% - 24px);
    top: 10px;
  }

  .desktop-widget {
    right: 18px;
    bottom: 54px;
    width: 212px;
    transform: scale(0.86);
    transform-origin: right bottom;
  }

  .desktop-widget.aside-weather-widget {
    right: auto;
    bottom: auto;
    width: auto;
    transform: none;
  }

  .home-workbench {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .home-workbench-main {
    padding: 24px;
  }

  .home-workbench h2 {
    font-size: 24px;
  }

  .home-stat-grid {
    grid-template-columns: 1fr;
  }

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

  .music-track-item {
    grid-template-columns: 32px 42px minmax(0, 1fr);
  }

  .music-track-album {
    display: none;
  }

  .bangumi-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .bangumi-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-hero,
  .about-hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .project-showcase-grid {
    grid-template-columns: 1fr;
  }

  .project-detail-grid,
  .roadmap-grid,
  .skill-grid,
  .contact-grid,
  .learning-paths {
    grid-template-columns: 1fr;
  }

  .project-title-row,
  .notes-control-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-timeline article {
    grid-template-columns: 1fr;
  }

  .notes-grid {
    grid-template-columns: 1fr;
  }

  .search-tools,
  .search-filter-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .search-result-grid {
    grid-template-columns: 1fr;
  }

  .timeline-entry {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

#page-header::before,
#web_bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 34%, rgba(255, 181, 82, 0.24), transparent 18%),
    radial-gradient(circle at 18% 16%, rgba(65, 160, 255, 0.18), transparent 24%),
    linear-gradient(90deg, rgba(3, 8, 14, 0.76), rgba(3, 8, 14, 0.12) 56%, rgba(3, 8, 14, 0.42));
}

#page-header #site-info,
#page-header #scroll-down,
#page-header #nav {
  position: relative;
  z-index: 3;
}

#lifeatlas-dynamic-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.92;
}

.memory-float-card {
  position: absolute;
  z-index: 2;
  width: 160px;
  height: 94px;
  border: 1px solid rgba(238, 248, 255, 0.46);
  border-radius: 10px;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    var(--card-image, linear-gradient(135deg, rgba(91, 164, 255, 0.42), rgba(255, 182, 84, 0.32)));
  background-size: cover;
  background-position: center;
  box-shadow:
    0 0 22px rgba(185, 241, 90, 0.22),
    0 18px 48px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(5px);
  opacity: 0.7;
  transform: translate3d(0, 0, 0) rotate(var(--rotate, -6deg));
  animation: memoryFloat var(--duration, 12s) ease-in-out infinite alternate;
}

.memory-float-card::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 10px;
  height: 3px;
  border-radius: 999px;
  background: rgba(195, 255, 56, 0.72);
  box-shadow: 0 0 16px rgba(195, 255, 56, 0.78);
}

.memory-float-card.card-1 {
  left: 8%;
  bottom: 11%;
  --rotate: -8deg;
  --duration: 11s;
}

.memory-float-card.card-2 {
  left: 26%;
  bottom: 16%;
  width: 188px;
  height: 108px;
  --rotate: 7deg;
  --duration: 13s;
}

.memory-float-card.card-3 {
  right: 11%;
  bottom: 12%;
  width: 190px;
  height: 112px;
  --rotate: -5deg;
  --duration: 14s;
}

.memory-float-card.card-4 {
  right: 28%;
  bottom: 22%;
  width: 126px;
  height: 78px;
  --rotate: 3deg;
  --duration: 12s;
}

@keyframes memoryFloat {
  from {
    translate: 0 0;
  }
  to {
    translate: 18px -22px;
  }
}

@media (max-width: 768px) {
  .memory-float-card {
    display: none;
  }
}
