:root {
  --accent-teal: #0f766e;
  --accent-teal-soft: rgba(15, 118, 110, 0.12);
  --accent-cyan: #14b8a6;
  --accent-orange: #f97316;
  --accent-ink: #0f172a;
  --accent-slate: #475569;
  --accent-border: rgba(148, 163, 184, 0.18);
  --accent-glass: rgba(255, 255, 255, 0.72);
  --accent-glass-strong: rgba(255, 255, 255, 0.84);
  --accent-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  --accent-shadow-hover: 0 28px 72px rgba(15, 23, 42, 0.2);
  --loader-bg: rgba(7, 13, 24, 0.94);
  --loader-ring: rgba(20, 184, 166, 0.9);
  --loader-ring-soft: rgba(249, 115, 22, 0.75);
  --loader-core: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] {
  --accent-glass: rgba(8, 15, 27, 0.72);
  --accent-glass-strong: rgba(8, 15, 27, 0.82);
  --accent-border: rgba(148, 163, 184, 0.12);
  --accent-shadow: 0 24px 60px rgba(2, 6, 23, 0.4);
  --accent-shadow-hover: 0 28px 72px rgba(2, 6, 23, 0.5);
  --loader-bg: rgba(5, 9, 18, 0.96);
  --loader-core: rgba(255, 255, 255, 0.05);
}

#loading-box {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}

.loading-bg {
  display: none !important;
}

#loading-box::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, var(--loader-ring) 0%, var(--loader-ring-soft) 100%);
  box-shadow: 0 0 16px rgba(20, 184, 166, 0.28);
  transition: opacity 0.22s ease;
}

#loading-box .spinner-box {
  position: fixed !important;
  top: 24px;
  right: 24px;
  left: auto;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

#loading-box .configure-border-1,
#loading-box .configure-border-2 {
  left: auto !important;
  padding: 0 !important;
  border-radius: 999px;
  background: transparent !important;
}

#loading-box .configure-border-1 {
  position: relative;
  width: 42px !important;
  height: 42px !important;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--loader-ring);
  border-right-color: var(--loader-ring);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  animation: site-loader-spin 0.9s linear infinite !important;
}

#loading-box .configure-border-2 {
  position: absolute;
  width: 24px !important;
  height: 24px !important;
  border: 2px solid rgba(255, 255, 255, 0.05);
  border-bottom-color: var(--loader-ring-soft);
  border-left-color: var(--loader-ring-soft);
  animation: site-loader-spin-reverse 0.75s linear infinite !important;
}

#loading-box .configure-core {
  background: var(--loader-core) !important;
  border-radius: 999px;
}

#loading-box .loading-word {
  position: absolute !important;
  top: 52px;
  right: -6px;
  margin-top: 0;
  color: rgba(15, 23, 42, 0.72) !important;
  font-size: 0.68rem !important;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

[data-theme="dark"] #loading-box .loading-word {
  color: rgba(255, 255, 255, 0.72) !important;
}

#loading-box.loading-active::before {
  opacity: 1;
  width: 100%;
  animation: site-loader-bar 1.4s ease-in-out infinite;
}

#loading-box.loading-active .spinner-box {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#loading-box.loaded::before,
#loading-box.loaded .spinner-box {
  opacity: 0;
}

@keyframes site-loader-spin {
  from {
    transform: rotate(0deg);
  }

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

@keyframes site-loader-spin-reverse {
  from {
    transform: rotate(360deg);
  }

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

@keyframes site-loader-bar {
  0% {
    transform: translateX(-18%);
    width: 22%;
  }

  50% {
    transform: translateX(38%);
    width: 34%;
  }

  100% {
    transform: translateX(118%);
    width: 22%;
  }
}

#web_bg {
  opacity: 1;
  filter: none;
  transform: none;
}

#page-header {
  overflow: hidden;
}

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

#page-header #site-title {
  letter-spacing: 0.08em;
  font-weight: 700;
}

#page-header #site-subtitle {
  opacity: 0.94;
}

#page-header.not-home-page:not(.post-bg) {
  height: auto;
  min-height: 0;
  background: transparent !important;
  background-image: none !important;
}

#page-header.not-home-page:not(.post-bg) #page-site-info {
  position: relative;
  top: auto;
  padding: 96px 16px 18px;
}

#page-header.not-home-page:not(.post-bg) #page-site-info #site-title {
  color: var(--font-color);
  text-shadow: none;
}

#page-header.post-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 15, 27, 0.16) 0%, rgba(8, 15, 27, 0.28) 38%, rgba(8, 15, 27, 0.62) 100%);
  z-index: 1;
}

#page-header.post-bg {
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
}

#page-header.post-bg #post-info {
  bottom: -52px;
  text-align: center;
}

#page-header.post-bg .post-title {
  margin-bottom: 14px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

#page-header.post-bg #post-meta {
  display: inline-flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.3rem;
  align-items: center;
  padding: 0.9rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(8, 15, 27, 0.26);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.22);
  backdrop-filter: blur(16px);
  transform: translateY(26px);
}

#page-header.post-bg #post-meta,
#page-header.post-bg #post-meta a {
  color: rgba(255, 255, 255, 0.96);
}

#page-header.post-bg #post-meta .meta-firstline,
#page-header.post-bg #post-meta .meta-secondline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.55rem;
}

#page-header.post-bg #post-meta .post-meta-label {
  opacity: 0.88;
}

#page-header.post-bg #post-meta .post-meta-separator {
  margin: 0 0.08rem;
  opacity: 0.5;
}

#page-header.post-bg #post-meta .post-meta-icon {
  opacity: 0.92;
}

#body-wrap.post #content-inner {
  margin-top: 40px;
}

#nav {
  backdrop-filter: blur(20px);
  background: rgba(8, 15, 27, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#page-header.nav-fixed #nav,
#page-header.not-top-img #nav {
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid var(--accent-border);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] #page-header.nav-fixed #nav,
[data-theme="dark"] #page-header.not-top-img #nav {
  background: rgba(8, 15, 27, 0.76);
}

#recent-posts .recent-post-item,
#aside-content .card-widget,
#post,
#page,
#archive,
#tag,
#category,
#search-mask .search-dialog {
  background: var(--accent-glass);
  border: 1px solid var(--accent-border);
  box-shadow: var(--accent-shadow);
  backdrop-filter: blur(18px);
}

#recent-posts .recent-post-item,
#aside-content .card-widget,
#post,
#page {
  border-radius: 28px;
}

#recent-posts .recent-post-item {
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

#recent-posts .recent-post-item:hover {
  transform: translateY(-8px);
  border-color: rgba(20, 184, 166, 0.28);
  box-shadow: var(--accent-shadow-hover);
}

#recent-posts .recent-post-item .post_cover {
  position: relative;
}

#recent-posts .recent-post-item .post_cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.16));
}

#recent-posts .recent-post-item .post-bg {
  transition: transform 0.5s ease, filter 0.5s ease;
}

#recent-posts .recent-post-item:hover .post-bg {
  transform: scale(1.08);
  filter: saturate(1.05);
}

#recent-posts .recent-post-item > .recent-post-info {
  padding: 28px 28px 24px;
}

#recent-posts .recent-post-item > .recent-post-info > .article-title {
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

#recent-posts .recent-post-item > .recent-post-info > .content {
  color: var(--accent-slate);
  line-height: 1.9;
}

[data-theme="dark"] #recent-posts .recent-post-item > .recent-post-info > .content {
  color: rgba(226, 232, 240, 0.78);
}

#aside-content .card-widget {
  padding: 22px 24px;
}

#aside-content .card-widget .item-headline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.8rem;
  font-size: 1.05rem;
  font-weight: 700;
}

#aside-content .card-widget .item-headline i {
  color: var(--accent-teal);
}

#aside-content .card-info {
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.12), rgba(255, 255, 255, 0.02)),
    var(--accent-glass-strong);
}

[data-theme="dark"] #aside-content .card-info {
  background:
    linear-gradient(180deg, rgba(20, 184, 166, 0.14), rgba(8, 15, 27, 0.06)),
    var(--accent-glass-strong);
}

.avatar-img {
  width: 118px;
  height: 118px;
  border-radius: 32px;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

.avatar-img img:hover {
  transform: scale(1.05) rotate(0deg);
}

#aside-content .author-info-name {
  font-size: 1.62rem;
  font-weight: 700;
}

#aside-content .author-info-description {
  color: var(--accent-slate);
}

[data-theme="dark"] #aside-content .author-info-description {
  color: rgba(226, 232, 240, 0.72);
}

#card-info-btn {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-cyan));
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.24);
}

#card-info-btn:hover {
  background: linear-gradient(135deg, var(--accent-orange), #fb923c);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.24);
}

.site-data > a {
  border-radius: 18px;
  padding: 12px 8px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.site-data > a:hover {
  background: rgba(15, 118, 110, 0.08);
  transform: translateY(-2px);
}

#aside-content .aside-list > .aside-list-item {
  gap: 0.8rem;
  padding: 0.72rem 0;
  border-bottom-color: rgba(148, 163, 184, 0.16);
}

#aside-content .aside-list > .aside-list-item .thumbnail {
  border-radius: 16px;
}

#aside-content .card-tag-cloud a {
  margin: 0.18rem;
  padding: 0.24rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
}

#pagination .page-number,
#pagination .extend {
  border-radius: 16px;
  border: 1px solid var(--accent-border);
  background: var(--accent-glass);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

#pagination .page-number.current,
#pagination .page-number:hover,
#pagination .extend:hover {
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-cyan));
  color: #fff;
  border-color: transparent;
}

#post,
#page {
  padding: 2rem 2.4rem;
}

#post h1,
#post h2,
#post h3,
#page h1,
#page h2,
#page h3 {
  letter-spacing: 0.01em;
}

#post blockquote,
#page blockquote {
  border-left-width: 5px;
  border-radius: 18px;
  background: rgba(20, 184, 166, 0.08);
}

#post code,
#page code {
  border-radius: 8px;
}

#post .highlight-tools,
#post pre,
#page pre {
  border-radius: 18px;
}

#rightside > div > button,
#rightside #go-up {
  border: 1px solid var(--accent-border);
  background: var(--accent-glass-strong);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(16px);
}

#rightside > div > button:hover,
#rightside #go-up:hover {
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-cyan));
  color: #fff;
}

.aplayer.aplayer-fixed {
  z-index: 9999 !important;
  left: 20px !important;
  bottom: 20px !important;
  max-width: calc(100vw - 40px);
}

.aplayer.aplayer-fixed .aplayer-body {
  left: 0 !important;
  width: 320px !important;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
  border-radius: 22px;
  backdrop-filter: blur(22px);
  overflow: hidden;
}

.aplayer.aplayer-fixed.aplayer-narrow {
  width: 320px !important;
}

.aplayer.aplayer-fixed.aplayer-narrow .aplayer-body {
  left: 0 !important;
  width: 320px !important;
  transition: box-shadow 0.3s ease;
}

.aplayer.aplayer-fixed.aplayer-narrow .aplayer-body:hover {
  left: 0 !important;
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.24);
}

.aplayer.aplayer-fixed .aplayer-info {
  padding: 14px 16px 12px;
}

.aplayer.aplayer-fixed .aplayer-miniswitcher {
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
}

.aplayer.aplayer-fixed .aplayer-pic {
  margin: 14px 0 0 14px;
  height: 64px !important;
  width: 64px !important;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.aplayer.aplayer-fixed .aplayer-pic img {
  border-radius: 18px;
}

.aplayer.aplayer-fixed .aplayer-music {
  margin-bottom: 10px;
}

.aplayer.aplayer-fixed .aplayer-title {
  color: #0f172a;
  font-weight: 700;
}

.aplayer.aplayer-fixed .aplayer-author {
  color: #64748b;
}

.aplayer.aplayer-fixed .aplayer-controller .aplayer-bar-wrap {
  margin: 0 0 12px;
  padding: 4px 0;
}

.aplayer.aplayer-fixed .aplayer-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
}

.aplayer.aplayer-fixed .aplayer-played {
  background: linear-gradient(90deg, #0f766e, #14b8a6) !important;
}

.aplayer.aplayer-fixed .aplayer-thumb {
  height: 12px !important;
  width: 12px !important;
  border: 2px solid #ffffff;
  background: #14b8a6 !important;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.18);
}

.aplayer.aplayer-fixed .aplayer-time {
  color: #64748b;
}

.aplayer.aplayer-fixed .aplayer-time button,
.aplayer.aplayer-fixed .aplayer-icon {
  color: #0f766e !important;
}

.aplayer.aplayer-fixed .aplayer-time button:hover,
.aplayer.aplayer-fixed .aplayer-icon:hover {
  color: #f97316 !important;
}

.aplayer.aplayer-fixed .aplayer-list {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.aplayer.aplayer-fixed .aplayer-list ol li {
  border-top: none;
}

.aplayer.aplayer-fixed .aplayer-list ol li.aplayer-list-light {
  background: rgba(15, 118, 110, 0.08);
}

.aplayer.aplayer-fixed .aplayer-lrc {
  mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
}

[data-theme="dark"] .aplayer.aplayer-fixed .aplayer-body {
  border-color: rgba(148, 163, 184, 0.12);
  background: rgba(8, 15, 27, 0.82);
  box-shadow: 0 24px 52px rgba(2, 6, 23, 0.4);
}

[data-theme="dark"] .aplayer.aplayer-fixed .aplayer-title {
  color: #e2e8f0;
}

[data-theme="dark"] .aplayer.aplayer-fixed .aplayer-author,
[data-theme="dark"] .aplayer.aplayer-fixed .aplayer-time {
  color: rgba(226, 232, 240, 0.68);
}

[data-theme="dark"] .aplayer.aplayer-fixed .aplayer-list {
  background: rgba(15, 23, 42, 0.72);
  border-top-color: rgba(148, 163, 184, 0.12);
}

[data-theme="dark"] .aplayer.aplayer-fixed .aplayer-list ol li.aplayer-list-light {
  background: rgba(20, 184, 166, 0.12);
}

@media (max-width: 768px) {
  #page-header.not-home-page:not(.post-bg) #page-site-info {
    padding-top: 82px;
    padding-bottom: 14px;
  }

  #page-header.post-bg #post-info {
    bottom: -24px;
  }


  #page-header.post-bg #post-meta {
    width: calc(100% - 30px);
    padding: 0.8rem 0.95rem;
    border-radius: 16px;
    transform: translateY(18px);
  }

  #page-header #site-title {
    font-size: 2.2rem;
  }

  #recent-posts .recent-post-item > .recent-post-info,
  #post,
  #page,
  #aside-content .card-widget {
    padding-left: 20px;
    padding-right: 20px;
  }

  .avatar-img {
    width: 98px;
    height: 98px;
    border-radius: 26px;
  }

  .aplayer.aplayer-fixed,
  .aplayer.aplayer-fixed.aplayer-narrow,
  .aplayer.aplayer-fixed .aplayer-body,
  .aplayer.aplayer-fixed.aplayer-narrow .aplayer-body {
    width: min(320px, calc(100vw - 24px)) !important;
  }

  .aplayer.aplayer-fixed {
    left: 12px !important;
    bottom: 12px !important;
  }
}
