:root {
  --x-blue: #168fd0;
  --x-blue-deep: #0d587f;
  --x-sky: #2aa7e8;
  --x-orange: #e99118;
  --x-orange-deep: #b7650a;
  --x-paper: #fffaf1;
  --x-paper-solid: #fffdf8;
  --x-ink: #20242a;
  --x-muted: #6b7075;
  --x-line: rgba(37, 57, 71, 0.13);
  --x-card: rgba(255, 252, 244, 0.84);
  --x-shadow: 0 18px 55px rgba(73, 52, 18, 0.09);
  --x-radius: 16px;
}

[data-theme='dark'] {
  --x-blue: #66bfe9;
  --x-blue-deep: #a5daf1;
  --x-sky: #173f58;
  --x-orange: #dba24a;
  --x-orange-deep: #f0c36f;
  --x-paper: #171b1f;
  --x-paper-solid: #1d2227;
  --x-ink: #edf0ef;
  --x-muted: #a9b0b3;
  --x-line: rgba(225, 235, 238, 0.12);
  --x-card: rgba(26, 32, 37, 0.88);
  --x-shadow: 0 20px 55px rgba(0, 0, 0, 0.26);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--x-ink);
  background: var(--x-paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
}

a {
  color: var(--x-blue-deep);
}

::selection {
  color: #fff;
  background: var(--x-orange);
}

#page-header.not-top-img {
  height: 64px;
  background: rgba(255, 250, 241, 0.8);
  border-bottom: 1px solid var(--x-line);
  backdrop-filter: blur(18px) saturate(140%);
}

[data-theme='dark'] #page-header.not-top-img {
  background: rgba(23, 27, 31, 0.82);
}

#page-header.not-top-img #nav {
  height: 64px;
  padding: 0 clamp(20px, 4vw, 72px);
}

#nav .site-name {
  color: var(--x-ink);
  font-weight: 760;
  letter-spacing: -0.035em;
}

#nav .site-page,
#nav .menus_item_child li a {
  color: var(--x-ink);
  font-size: 0.92rem;
  font-weight: 560;
}

#nav .menus_items .menus_item:hover .site-page,
#search-button:hover .site-page {
  color: var(--x-orange-deep);
}

#xiexie-home {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: clip;
}

.page:has(#xiexie-home) #content-inner {
  display: block;
  width: 100%;
  max-width: none;
  padding: 0;
}

.x-intro-layer {
  position: fixed;
  z-index: 99999;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  background: #229fe1 url('/img/xiexie/hero-desktop.webp') center center / cover no-repeat;
  transform: scale(1);
  transition: opacity 600ms ease, filter 600ms ease, transform 900ms ease, visibility 0s linear 600ms;
  pointer-events: none;
}

.x-intro-active .x-intro-layer {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.x-intro-active #page-header,
.x-intro-active #rightside {
  opacity: 0;
}

.x-intro-reveal .x-intro-layer {
  opacity: 0;
  filter: blur(18px) saturate(0.82);
  transform: scale(1.025);
  pointer-events: none;
}

.x-intro-active .x-home-shell {
  opacity: 0;
  transform: translateY(12px);
}

.x-intro-reveal .x-home-shell,
.x-intro-done .x-home-shell {
  opacity: 1;
  transform: translateY(0);
}

.x-home-hero {
  position: relative;
  display: flex;
  min-height: calc(100vh - 64px);
  box-sizing: border-box;
  padding: clamp(56px, 8vh, 84px) 0;
  align-items: center;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(255, 249, 237, 0.8) 0%, rgba(255, 249, 237, 0.67) 40%, rgba(255, 249, 237, 0.1) 72%),
    linear-gradient(180deg, rgba(27, 161, 226, 0.16), rgba(238, 152, 25, 0.2));
}

[data-theme='dark'] .x-home-hero {
  background:
    linear-gradient(90deg, rgba(15, 30, 40, 0.9) 0%, rgba(15, 30, 40, 0.72) 44%, rgba(15, 30, 40, 0.24) 78%),
    linear-gradient(180deg, rgba(13, 58, 82, 0.66), rgba(102, 65, 21, 0.54));
}

.x-home-atmosphere {
  position: absolute;
  z-index: -1;
  inset: -28px;
  background: url('/img/xiexie/hero-desktop.webp') center center / cover no-repeat;
  filter: blur(12px) saturate(0.88);
  opacity: 0.48;
  transform: scale(1.025);
}

[data-theme='dark'] .x-home-atmosphere {
  opacity: 0.28;
  filter: blur(14px) saturate(0.62) brightness(0.72);
}

.x-home-shell,
.x-content-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.x-home-shell {
  display: flex;
  align-items: center;
  transition: opacity 600ms ease 100ms, transform 700ms ease 100ms;
}

.x-home-copy {
  width: min(760px, 76%);
  margin: 0 auto;
  text-align: center;
}

.x-home-discovery {
  width: 100%;
}

.x-wordmark {
  margin: 0;
  color: var(--x-ink);
  font-size: clamp(4rem, 6.6vw, 6.2rem);
  font-weight: 820;
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.x-wordmark-accent {
  display: inline-block;
  margin-left: 0.02em;
  color: var(--x-orange);
  transform: translateY(-0.08em);
}

.x-wordmark-blog {
  display: inline-block;
  margin-left: 0.04em;
  font-size: 0.61em;
  font-weight: 540;
  letter-spacing: -0.05em;
  transform: translateY(-0.13em);
}

.x-home-search-wrap {
  position: relative;
  width: min(520px, 100%);
  margin: clamp(30px, 5vh, 48px) auto 0;
}

.x-home-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 0 16px 0 20px;
  color: var(--x-muted);
  background: var(--x-card);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  box-shadow: var(--x-shadow);
  text-align: left;
  backdrop-filter: blur(18px) saturate(125%);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.x-home-search:hover,
.x-home-search:focus-within {
  border-color: rgba(233, 145, 24, 0.6);
  box-shadow: 0 20px 55px rgba(91, 57, 7, 0.14);
  transform: translateY(-2px);
}

.x-home-search-submit {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  color: var(--x-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.x-home-search-submit:hover {
  color: var(--x-orange-deep);
}

.x-home-search input {
  min-width: 0;
  height: 56px;
  padding: 0;
  color: var(--x-ink);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
}

.x-home-search input::placeholder {
  color: var(--x-muted);
  opacity: 1;
}

.x-home-search kbd {
  padding: 5px 9px;
  color: var(--x-muted);
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid var(--x-line);
  border-radius: 8px;
  font: 600 0.72rem ui-monospace, SFMono-Regular, Consolas, monospace;
}

[data-theme='dark'] .x-home-search kbd {
  background: rgba(255, 255, 255, 0.06);
}

.x-home-search-results {
  position: absolute;
  z-index: 8;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  max-height: min(380px, 48vh);
  padding: 8px;
  overflow-y: auto;
  background: var(--x-paper-solid);
  border: 1px solid var(--x-line);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(23, 43, 52, 0.2);
}

.x-home-search-result {
  display: block;
  padding: 11px 12px;
  color: var(--x-ink);
  border-radius: 11px;
}

.x-home-search-result:hover {
  color: var(--x-ink);
  background: rgba(22, 143, 208, 0.09);
}

.x-home-search-result strong,
.x-home-search-result span {
  display: block;
}

.x-home-search-result strong {
  margin-bottom: 3px;
  font-size: 0.86rem;
}

.x-home-search-result span {
  overflow: hidden;
  color: var(--x-muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.x-home-search-empty {
  margin: 0;
  padding: 18px 12px;
  color: var(--x-muted);
  font-size: 0.78rem;
  text-align: center;
}

.x-home-discovery {
  margin-top: 0;
}

.x-home-section-heading,
.x-latest-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.x-home-section-heading h2,
.x-latest-heading h2 {
  margin: 2px 0 0;
  color: var(--x-ink);
  font-size: clamp(1.48rem, 2.5vw, 2.05rem);
  font-weight: 760;
  letter-spacing: -0.045em;
}

.x-eyebrow {
  margin: 0;
  color: var(--x-orange-deep);
  font: 700 0.69rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.x-text-link {
  flex: 0 0 auto;
  padding-bottom: 3px;
  color: var(--x-muted);
  border-bottom: 1px solid var(--x-line);
  font-size: 0.84rem;
}

.x-text-link:hover {
  color: var(--x-orange-deep);
  border-color: var(--x-orange);
}

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

.x-category-card,
.x-empty-card {
  display: flex;
  min-height: 96px;
  padding: 17px;
  flex-direction: column;
  justify-content: space-between;
  color: var(--x-ink);
  background: var(--x-card);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  box-shadow: 0 10px 32px rgba(55, 49, 28, 0.07);
  backdrop-filter: blur(16px) saturate(125%);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.x-category-card:hover {
  color: var(--x-ink);
  border-color: rgba(233, 145, 24, 0.55);
  box-shadow: 0 14px 34px rgba(88, 57, 13, 0.12);
  transform: translateY(-2px);
}

.x-category-name {
  overflow: hidden;
  font-size: 0.98rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.x-category-count {
  color: var(--x-muted);
  font-size: 0.74rem;
}

.x-tag-heading,
.x-friend-heading {
  margin-top: 38px;
}

.x-tag-cloud {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.x-tag-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  color: var(--x-ink);
  background: rgba(255, 252, 245, 0.7);
  border: 1px solid var(--x-line);
  border-radius: 999px;
  font-size: 0.82rem;
  backdrop-filter: blur(12px);
}

.x-tag-pill small {
  color: var(--x-orange-deep);
  font: 700 0.66rem ui-monospace, Consolas, monospace;
}

.x-tag-pill:hover {
  color: var(--x-paper-solid);
  background: var(--x-orange-deep);
  border-color: transparent;
}

.x-tag-pill:hover small {
  color: inherit;
}

.x-friend-rail {
  display: flex;
  gap: 12px;
  padding: 2px 2px 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(171, 112, 31, 0.35) transparent;
  cursor: grab;
}

.x-friend-rail.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.x-friend-card,
.x-friend-empty {
  display: flex;
  flex: 0 0 250px;
  gap: 13px;
  min-height: 82px;
  padding: 13px;
  align-items: center;
  color: var(--x-ink);
  background: var(--x-card);
  border: 1px solid var(--x-line);
  border-radius: 15px;
  scroll-snap-align: start;
  backdrop-filter: blur(14px);
}

.x-friend-card:hover {
  color: var(--x-ink);
  border-color: rgba(22, 143, 208, 0.48);
  transform: translateY(-2px);
}

.x-friend-card img {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  object-fit: cover;
  border-radius: 13px;
}

.x-friend-copy {
  min-width: 0;
}

.x-friend-copy strong,
.x-friend-copy small {
  display: block;
}

.x-friend-copy strong {
  margin-bottom: 5px;
  overflow: hidden;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.x-friend-copy small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--x-muted);
  font-size: 0.72rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.x-friend-empty {
  flex-basis: 100%;
  justify-content: center;
  color: var(--x-muted);
  border-style: dashed;
}

.x-latest-section {
  position: relative;
  padding: clamp(78px, 10vw, 138px) 0 90px;
  background:
    linear-gradient(180deg, rgba(38, 156, 214, 0.1), transparent 130px),
    var(--x-paper);
}

.x-taxonomy-section {
  padding: 82px 0 90px;
  background:
    linear-gradient(180deg, rgba(233, 145, 24, 0.06), transparent 180px),
    var(--x-paper);
  border-top: 1px solid var(--x-line);
}

.x-home-profile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  margin-bottom: 68px;
  padding: 22px 24px;
  align-items: center;
  background: rgba(255, 253, 248, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(44, 47, 35, 0.08);
  backdrop-filter: blur(18px) saturate(112%);
}

.x-profile-avatar {
  display: block;
  width: 82px;
  height: 82px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(34, 53, 64, 0.1);
  border-radius: 50%;
}

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

.x-profile-main {
  min-width: 0;
}

.x-profile-name {
  display: block;
  color: var(--x-ink);
  font-size: 1.22rem;
  font-weight: 720;
  letter-spacing: -0.035em;
}

.x-profile-stats {
  display: flex;
  gap: clamp(22px, 4vw, 42px);
  margin-top: 12px;
}

.x-profile-stats a {
  display: flex;
  gap: 3px;
  flex-direction: column;
  color: var(--x-muted);
}

.x-profile-stats a:hover {
  color: var(--x-orange-deep);
}

.x-profile-stats b {
  color: var(--x-ink);
  font: 680 0.9rem ui-monospace, SFMono-Regular, Consolas, monospace;
}

.x-profile-stats span {
  font-size: 0.7rem;
}

.x-profile-github {
  display: inline-flex;
  gap: 8px;
  padding: 10px 15px;
  align-items: center;
  color: #fff;
  background: var(--x-ink);
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

.x-profile-github:hover {
  color: #fff;
  background: var(--x-orange-deep);
  transform: translateY(-2px);
}

[data-theme='dark'] .x-home-profile {
  background: rgba(28, 34, 38, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

.x-content-shell {
  max-width: 1180px;
}

.x-latest-count {
  color: var(--x-muted);
  font: 500 0.82rem ui-monospace, SFMono-Regular, Consolas, monospace;
}

.x-post-list {
  border-top: 1px solid var(--x-line);
}

.x-post-row {
  position: relative;
  padding: 32px 0 34px;
  border-bottom: 1px solid var(--x-line);
}

.x-post-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 11px;
  color: var(--x-muted);
  font: 500 0.75rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.x-post-meta a {
  color: inherit;
}

.x-post-row h3 {
  margin: 0 0 11px;
  font-size: clamp(1.34rem, 2.4vw, 1.82rem);
  font-weight: 740;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.x-post-row h3 a {
  color: var(--x-ink);
  background: linear-gradient(var(--x-orange), var(--x-orange)) no-repeat 0 100% / 0 2px;
  transition: background-size 240ms ease, color 180ms ease;
}

.x-post-row:hover h3 a {
  color: var(--x-orange-deep);
  background-size: 100% 2px;
}

.x-post-summary {
  display: -webkit-box;
  max-width: 780px;
  margin: 0;
  overflow: hidden;
  color: var(--x-muted);
  font-size: 0.95rem;
  line-height: 1.85;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.x-post-tags {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.x-post-tags a {
  color: var(--x-blue-deep);
  font-size: 0.76rem;
}

.x-post-pagination {
  display: flex;
  gap: 9px;
  justify-content: center;
  padding: 42px 0 8px;
}

.x-page-button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: var(--x-ink);
  background: transparent;
  border: 1px solid var(--x-line);
  border-radius: 12px;
  font: 650 0.82rem ui-monospace, SFMono-Regular, Consolas, monospace;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.x-page-button:hover:not(:disabled),
.x-page-button.is-current {
  color: #fff;
  background: var(--x-orange-deep);
  border-color: var(--x-orange-deep);
  transform: translateY(-2px);
}

.x-page-button:disabled {
  cursor: not-allowed;
  opacity: 0.32;
}

.x-page-button.is-arrow {
  font-family: inherit;
}

.x-site-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 64px;
  border: 1px solid var(--x-line);
  border-radius: var(--x-radius);
  overflow: hidden;
}

.x-stat {
  display: flex;
  gap: 5px;
  min-height: 105px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.28);
  border-right: 1px solid var(--x-line);
}

.x-stat:last-child {
  border-right: 0;
}

.x-stat strong {
  color: var(--x-ink);
  font: 760 clamp(1.2rem, 2vw, 1.52rem) ui-monospace, SFMono-Regular, Consolas, monospace;
}

.x-stat span {
  color: var(--x-muted);
  font-size: 0.74rem;
}

/* Reading pages */
.post #content-inner.layout,
.page:not(:has(#xiexie-home)) #content-inner.layout {
  padding-top: 34px;
}

.post #body-wrap::before,
.page:not(:has(#xiexie-home)) #body-wrap::before {
  position: fixed;
  z-index: -1;
  top: 64px;
  right: 0;
  left: 0;
  height: 9px;
  background: linear-gradient(90deg, rgba(36, 159, 218, 0.34), rgba(255, 250, 241, 0), rgba(233, 145, 24, 0.34));
  content: '';
}

#post,
#page,
#archive,
#category,
#tag {
  color: var(--x-ink);
  background: var(--x-paper-solid);
  border: 1px solid var(--x-line);
  border-radius: 18px;
  box-shadow: var(--x-shadow);
}

#post {
  padding: clamp(28px, 5vw, 58px) clamp(22px, 6.5vw, 76px);
}

#post-info {
  padding: 0 0 22px;
  text-align: left;
}

#post-info .post-title {
  margin: 0 0 18px;
  color: var(--x-ink);
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  line-height: 1.2;
  letter-spacing: -0.055em;
}

#post-info #post-meta {
  color: var(--x-muted);
  font-size: 0.78rem;
}

.x-post-author {
  display: flex;
  gap: 13px;
  margin: 2px 0 34px;
  align-items: center;
}

.x-author-avatar {
  display: block;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 1px solid var(--x-line);
  border-radius: 14px;
}

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

.x-author-copy strong,
.x-author-copy span {
  display: block;
}

.x-author-copy strong {
  color: var(--x-ink);
  font-size: 0.9rem;
}

.x-author-copy span {
  margin-top: 3px;
  color: var(--x-muted);
  font-size: 0.76rem;
}

#article-container {
  max-width: 760px;
  margin: 0 auto;
  color: var(--x-ink);
  font-size: 1rem;
  line-height: 1.85;
}

#article-container p {
  margin: 1.15em 0;
}

#article-container h2,
#article-container h3,
#article-container h4 {
  color: var(--x-ink);
  letter-spacing: -0.035em;
}

#article-container a {
  color: var(--x-blue-deep);
  text-decoration-color: rgba(22, 143, 208, 0.35);
  text-underline-offset: 0.2em;
}

#article-container blockquote {
  color: var(--x-muted);
  background: rgba(34, 147, 202, 0.06);
  border-left: 3px solid var(--x-blue);
}

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

#post .highlight,
#post pre {
  border-radius: 12px;
}

#post .pagination-post {
  margin-top: 52px;
  border-top: 1px solid var(--x-line);
}

#post-comment {
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--x-line);
}

#aside-content .card-widget {
  color: var(--x-ink);
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid var(--x-line);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

[data-theme='dark'] #aside-content .card-widget {
  background: rgba(29, 34, 39, 0.86);
}

#aside-content #card-toc .toc-link.active {
  color: var(--x-orange-deep);
  border-left-color: var(--x-orange);
}

/* Index, taxonomy and friend pages */
#archive,
#category,
#tag,
#page {
  padding: clamp(26px, 4vw, 48px);
}

#archive .article-sort-item-title,
#category .article-sort-item-title,
#tag .article-sort-item-title {
  color: var(--x-ink);
  font-weight: 650;
}

#archive .article-sort-item-time,
#category .article-sort-item-time,
#tag .article-sort-item-time {
  color: var(--x-muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.category-lists .category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 6vw, 72px);
  row-gap: 0;
  padding: 0;
}

.category-lists .category-list-item {
  display: flex;
  margin: 0;
  padding: 17px 2px;
  align-items: baseline;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(35, 54, 65, 0.14);
  border-radius: 0;
  list-style: none;
}

.category-lists .category-list-item::before {
  display: none !important;
}

.category-lists .category-list-link {
  flex: 1;
  color: var(--x-ink);
  font-size: 1rem;
  font-weight: 560;
}

.category-lists .category-list-count {
  color: var(--x-muted);
  font: 500 0.76rem ui-monospace, SFMono-Regular, Consolas, monospace;
}

.category-lists .category-list-count::before {
  content: '';
}

.category-lists .category-list-count::after {
  content: ' 篇';
}

.tag-cloud-list a {
  display: inline-block;
  margin: 8px 13px;
  padding: 0;
  color: var(--x-ink) !important;
  background: transparent !important;
  border: 0;
  border-radius: 0;
  font-weight: 520;
  line-height: 1.25;
  opacity: 0.72;
  transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.tag-cloud-list a:hover {
  color: var(--x-orange-deep) !important;
  opacity: 1;
  transform: translateY(-2px);
}

/* Taxonomy overview pages */
.type-categories #content-inner.layout,
.type-tags #content-inner.layout {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 64px);
  margin: 0;
  padding: clamp(56px, 8vw, 92px) 24px 88px;
  overflow: hidden;
  isolation: isolate;
}

.type-categories #content-inner.layout::before,
.type-tags #content-inner.layout::before {
  position: fixed;
  z-index: 0;
  inset: 48px -48px -48px;
  background: url('/img/xiexie/hero-desktop.webp') center center / cover no-repeat;
  filter: blur(42px) saturate(0.64) brightness(1.04);
  opacity: 0.48;
  transform: scale(1.12);
  content: '';
  pointer-events: none;
}

.type-categories #content-inner.layout::after,
.type-tags #content-inner.layout::after {
  position: fixed;
  z-index: 0;
  inset: 64px 0 0;
  background: rgba(255, 250, 241, 0.48);
  content: '';
  pointer-events: none;
}

.type-categories #page-header.not-top-img,
.type-tags #page-header.not-top-img {
  position: relative;
  z-index: 1000;
}

.type-categories #page,
.type-tags #page {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  min-height: 0;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 52px);
  background: rgba(255, 253, 248, 0.44);
  border: 0;
  border-radius: 18px;
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(108%);
}

.type-categories .page-title,
.type-tags .page-title {
  margin: 0 0 32px;
  color: var(--x-ink);
  font-size: clamp(1.7rem, 3.2vw, 2.25rem);
  font-weight: 720;
  letter-spacing: -0.045em;
}

.type-tags .tag-cloud-list {
  display: flex;
  gap: 8px 12px;
  padding: 8px 0 4px;
  align-items: baseline;
  flex-wrap: wrap;
  text-align: left !important;
}

.type-categories #footer,
.type-tags #footer {
  background: rgba(255, 250, 241, 0.68) !important;
  backdrop-filter: blur(18px);
}

[data-theme='dark'] .type-categories #content-inner.layout::before,
[data-theme='dark'] .type-tags #content-inner.layout::before {
  filter: blur(44px) saturate(0.5) brightness(0.5);
  opacity: 0.52;
}

[data-theme='dark'] .type-categories #content-inner.layout::after,
[data-theme='dark'] .type-tags #content-inner.layout::after {
  background: rgba(18, 24, 28, 0.54);
}

[data-theme='dark'] .type-categories #page,
[data-theme='dark'] .type-tags #page {
  background: rgba(25, 31, 35, 0.56);
}

.flink-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.flink-list-item {
  width: auto !important;
  min-height: 112px;
  margin: 0 !important;
  background: rgba(31, 145, 200, 0.055) !important;
  border: 1px solid var(--x-line);
  border-radius: 15px !important;
  box-shadow: none !important;
}

.flink-list-item a {
  display: grid !important;
  grid-template-columns: 58px 1fr;
  grid-template-rows: auto auto;
  column-gap: 13px;
  height: 100%;
  padding: 16px !important;
  align-items: center;
}

.flink-item-icon {
  grid-row: 1 / 3;
  width: 58px !important;
  height: 58px !important;
  margin: 0 !important;
}

.flink-item-icon img {
  border-radius: 14px !important;
}

.flink-item-name,
.flink-item-desc {
  width: auto !important;
  padding: 0 !important;
  text-align: left !important;
}

.flink-item-desc {
  display: -webkit-box !important;
  overflow: hidden;
  color: var(--x-muted) !important;
  line-height: 1.5;
  white-space: normal !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Friends page */
.type-link #content-inner.layout {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 64px 0 0;
}

.type-link #page {
  --x-friends-final-filter: blur(3px) saturate(0.72) brightness(0.91);
  position: relative;
  min-height: calc(100vh - 64px);
  margin: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  isolation: isolate;
}

.type-link #page-header.not-top-img {
  position: fixed !important;
  z-index: 10001;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  background: rgba(245, 249, 248, 0.66);
  border-color: rgba(255, 255, 255, 0.34);
}

[data-theme='dark'] .type-link #page-header.not-top-img {
  background: rgba(18, 27, 33, 0.72);
}

.x-friends-scene {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.x-friends-background,
.x-friends-weather,
#x-friends-rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.x-friends-background {
  z-index: 0;
  inset: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  background: #269ee1 url('/img/xiexie/friends-rain.webp') center 38% / cover no-repeat;
  filter: var(--x-friends-final-filter);
  transform: scale(1.018);
  animation: x-friends-background-settle 1900ms cubic-bezier(0.22, 0.72, 0.26, 1) 450ms both;
}

.x-friends-weather {
  z-index: 1;
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(13, 42, 60, 0.17), rgba(235, 238, 229, 0.34)),
    linear-gradient(90deg, rgba(228, 242, 244, 0.08), rgba(20, 73, 104, 0.12));
  animation: x-friends-weather-in 1700ms ease-in-out 620ms both;
}

#x-friends-rain {
  z-index: 2;
  opacity: 1;
  animation: x-friends-rain-in 900ms ease 850ms both;
}

.x-friends-intro {
  position: fixed;
  z-index: 9998;
  inset: 0;
  visibility: visible;
  opacity: 1;
  background: #269ee1 url('/img/xiexie/friends-rain.webp') center 38% / cover no-repeat;
  animation: x-friends-reveal 1750ms cubic-bezier(0.45, 0, 0.25, 1) 450ms forwards;
  cursor: pointer;
}

.x-friends-intro::after {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  color: rgba(255, 255, 255, 0.78);
  font: 500 0.7rem ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.14em;
  text-align: center;
  text-shadow: 0 1px 5px rgba(9, 33, 46, 0.28);
  content: '点击跳过';
}

.x-friends-intro-skip .x-friends-intro {
  visibility: hidden;
  opacity: 0;
  animation: none;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.x-friends-intro-skip .x-friends-background,
.x-friends-intro-skip .x-friends-weather,
.x-friends-intro-skip #x-friends-rain,
.x-friends-intro-skip .x-friends-page {
  animation-delay: 0s;
  animation-duration: 180ms;
}

@keyframes x-friends-background-settle {
  from {
    filter: blur(0) saturate(1) brightness(1);
    transform: scale(1);
  }
  to {
    filter: var(--x-friends-final-filter);
    transform: scale(1.018);
  }
}

@keyframes x-friends-weather-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes x-friends-rain-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes x-friends-reveal {
  0% {
    visibility: visible;
    opacity: 1;
    filter: blur(0) saturate(1);
  }
  99% {
    visibility: visible;
  }
  100% {
    visibility: hidden;
    opacity: 0;
    filter: blur(5px) saturate(0.82);
  }
}

.x-friends-page {
  position: relative;
  z-index: 3;
  width: min(1080px, calc(100% - 48px));
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: 40px 0 88px;
  opacity: 1;
  animation: x-friends-content-in 900ms ease 1050ms both;
}

@keyframes x-friends-content-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.x-friends-heading {
  position: sticky;
  z-index: 4;
  top: 72px;
  display: inline-block;
  width: auto;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.94);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.x-friends-heading::before {
  display: none;
}

.x-friends-heading h1 {
  margin: 0;
  color: inherit;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 14px rgba(8, 31, 44, 0.55);
}

.x-friends-lead {
  margin: 0;
  color: #56666f;
  font-size: clamp(0.9rem, 1.6vw, 1.08rem);
  letter-spacing: 0.06em;
}

.type-link #article-container {
  max-width: none;
  margin-top: 28px;
  font-size: 1rem;
}

.type-link .x-friend-group-heading {
  margin: 44px 0 16px;
  color: #eef7f8;
  text-shadow: 0 2px 14px rgba(10, 38, 55, 0.42);
}

.type-link .x-friend-group-heading h2 {
  margin: 0;
  color: inherit;
  font-size: 1.6rem;
}

.type-link .x-friend-group-heading p {
  margin: 5px 0 0;
  color: rgba(239, 248, 249, 0.82);
  font-size: 0.8rem;
}

.type-link .flink-list {
  gap: 18px;
}

.type-link .flink-list-item {
  min-height: 108px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(16, 47, 68, 0.64), rgba(48, 82, 98, 0.44)) !important;
  border-color: rgba(224, 241, 247, 0.3);
  border-radius: 20px !important;
  box-shadow: 0 15px 34px rgba(5, 27, 40, 0.19), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(13px) saturate(92%);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.type-link .flink-list-item a {
  position: relative;
  grid-template-columns: 66px minmax(0, 1fr) !important;
  column-gap: 16px;
  min-height: 108px;
  padding: 18px 48px 18px 18px !important;
  text-decoration: none !important;
}

.type-link .flink-list-item a::after {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 24px;
  height: 24px;
  color: rgba(235, 247, 250, 0.74);
  content: '→';
  font-size: 1.05rem;
  line-height: 22px;
  text-align: center;
  transform: translateY(-50%);
  transition: transform 220ms ease, color 220ms ease;
}

.type-link .flink-item-icon {
  width: 66px !important;
  height: 66px !important;
  padding: 3px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 50% !important;
  box-shadow: 0 8px 20px rgba(4, 24, 36, 0.18);
}

.type-link .flink-item-icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 50% !important;
}

.type-link .flink-item-name {
  align-self: end;
  color: rgba(249, 252, 253, 0.98) !important;
  font-size: 1.08rem;
  font-weight: 680;
  line-height: 1.3;
  text-decoration: none !important;
  text-shadow: 0 1px 8px rgba(3, 22, 34, 0.24);
}

.type-link .flink-item-desc {
  align-self: start;
  margin-top: 5px;
  color: rgba(224, 239, 244, 0.78) !important;
  font-size: 0.82rem;
  line-height: 1.4;
}

.type-link .flink-list-item:hover {
  background: linear-gradient(135deg, rgba(17, 52, 75, 0.72), rgba(55, 92, 108, 0.52)) !important;
  border-color: rgba(235, 248, 251, 0.5);
  box-shadow: 0 18px 42px rgba(5, 27, 40, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  transform: translateY(-2px);
}

.type-link .flink-list-item:hover a::after {
  color: #fff;
  transform: translate(3px, -50%);
}

.x-friends-empty {
  display: flex;
  min-height: 250px;
  padding: 42px 24px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #1c3544;
  background: rgba(255, 252, 244, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(10, 42, 59, 0.14);
  text-align: center;
  backdrop-filter: blur(20px) saturate(115%);
}

.x-friends-empty i {
  margin-bottom: 18px;
  color: #3d829f;
  font-size: 2.25rem;
}

.x-friends-empty strong,
.x-friends-empty span {
  display: block;
}

.x-friends-empty strong {
  margin-bottom: 7px;
  font-size: 1.18rem;
}

.x-friends-empty span {
  color: #61727b;
  font-size: 0.84rem;
}

.x-friends-note {
  margin-top: 24px;
  padding: 24px;
  color: #223641;
  background: rgba(255, 252, 244, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  backdrop-filter: blur(18px);
}

.type-link #footer {
  position: relative;
  z-index: 3;
  background: rgba(242, 246, 242, 0.76) !important;
  border-color: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px);
}

[data-theme='dark'] .type-link #page {
  --x-friends-final-filter: blur(4px) saturate(0.55) brightness(0.54);
}

[data-theme='dark'] .x-friends-weather {
  background: linear-gradient(180deg, rgba(8, 23, 32, 0.34), rgba(13, 27, 34, 0.5));
}

[data-theme='dark'] .x-friends-heading,
[data-theme='dark'] .x-friends-empty,
[data-theme='dark'] .type-link .flink-list-item,
[data-theme='dark'] .x-friends-note {
  color: #edf4f5;
  background: rgba(24, 34, 40, 0.78) !important;
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme='dark'] .x-friends-heading h1,
[data-theme='dark'] .x-friends-note {
  color: #edf4f5;
}

[data-theme='dark'] .x-friends-lead,
[data-theme='dark'] .x-friends-empty span {
  color: #b6c5ca;
}

/* Search */
.search-dialog {
  color: var(--x-ink);
  background: var(--x-paper-solid) !important;
  border: 1px solid var(--x-line);
  border-radius: 18px !important;
  box-shadow: 0 30px 90px rgba(12, 24, 31, 0.24);
}

.search-dialog .search-nav,
.search-dialog .search-result-list {
  color: var(--x-ink);
}

/* Right-side tools */
#rightside {
  right: 18px;
}

#rightside > div > button,
#rightside > div > a {
  width: 38px;
  height: 38px;
  margin-top: 7px;
  color: var(--x-ink);
  background: rgba(255, 252, 245, 0.85);
  border: 1px solid var(--x-line);
  border-radius: 50%;
  box-shadow: 0 8px 26px rgba(30, 43, 49, 0.1);
  backdrop-filter: blur(12px);
}

[data-theme='dark'] #rightside > div > button,
[data-theme='dark'] #rightside > div > a {
  background: rgba(29, 34, 39, 0.88);
}

#rightside > div > button:hover,
#rightside > div > a:hover {
  color: #fff;
  background: var(--x-orange-deep);
}

#translateLink {
  font-size: 0.78rem !important;
  font-weight: 760;
}

#x-mobile-tools-toggle {
  display: none;
}

@media (min-width: 769px) {
  #rightside #x-mobile-tools-toggle {
    display: none !important;
  }
}

/* Footer */
#footer {
  color: var(--x-muted);
  background: var(--x-paper) !important;
  border-top: 1px solid var(--x-line);
}

#footer::before {
  display: none;
}

#footer .footer-other {
  padding: 24px 20px;
}

#footer .footer_custom_text {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  color: var(--x-muted);
  font-size: 0.78rem;
}

#footer .footer_custom_text a {
  color: var(--x-muted);
}

#footer .footer_custom_text a:hover {
  color: var(--x-orange-deep);
}

.footer-dot {
  opacity: 0.45;
}

/* 404 */
.type-404 #content-inner.layout {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
}

.type-404 #page {
  margin: 0 !important;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.type-404 .error-content {
  position: relative;
  width: 100vw;
  min-height: calc(100vh - 64px);
  margin: 0 0 0 calc(50% - 50vw) !important;
  overflow: hidden;
}

.type-404 .error-content .error-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.66;
}

.type-404 .error-img::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 250, 241, 0.82), rgba(255, 250, 241, 0.12));
  content: '';
}

.type-404 .error-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.type-404 .error-content .error-info {
  position: absolute;
  z-index: 1;
  top: 50%;
  width: auto;
  height: auto;
  display: block;
  left: max(7vw, 34px);
  color: var(--x-ink);
  transform: translateY(-50%);
}

.type-404 .error_title {
  color: var(--x-orange-deep);
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 820;
  letter-spacing: -0.08em;
}

.type-404 .error_subtitle {
  color: var(--x-ink);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.04em;
}

.type-404 .error-home-link {
  display: inline-flex;
  margin-top: 24px;
  padding: 11px 18px;
  color: #fff;
  background: var(--x-ink);
  border-radius: 999px;
  font-size: 0.82rem;
}

.type-404 .error-home-link:hover {
  color: #fff;
  background: var(--x-orange-deep);
}

[data-theme='dark'] .type-404 .error-home-link {
  color: #171b1f;
  background: var(--x-orange-deep);
}

@media (max-width: 900px) {
  .x-home-copy {
    width: 62%;
  }

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

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

@media (max-width: 768px) {
  #page-header.not-top-img,
  #page-header.not-top-img #nav {
    height: 58px;
  }

  #page-header.not-top-img #nav {
    padding: 0 18px;
  }

  #nav .site-name {
    font-size: 1rem;
  }

  .x-intro-layer {
    background-image: url('/img/xiexie/hero-mobile.webp');
  }

  .x-home-hero {
    min-height: calc(100svh - 58px);
    padding: 48px 0;
    background:
      linear-gradient(180deg, rgba(255, 249, 237, 0.68) 0%, rgba(255, 249, 237, 0.12) 36%, rgba(255, 249, 237, 0.78) 62%, rgba(255, 249, 237, 0.92) 100%);
  }

  [data-theme='dark'] .x-home-hero {
    background: linear-gradient(180deg, rgba(14, 34, 46, 0.75), rgba(14, 34, 46, 0.16) 38%, rgba(21, 27, 31, 0.88) 70%, rgba(21, 27, 31, 0.97));
  }

  .x-home-atmosphere {
    inset: -18px;
    background-image: url('/img/xiexie/hero-mobile.webp');
    background-position: center top;
    filter: blur(9px) saturate(0.88);
    opacity: 0.52;
  }

  .x-home-shell,
  .x-content-shell {
    width: min(100% - 34px, 640px);
  }

  .x-home-copy,
  .x-home-discovery {
    width: 100%;
  }

  .x-wordmark {
    font-size: clamp(3.25rem, 15vw, 4.5rem);
  }

  .x-home-search {
    min-height: 54px;
    border-radius: 15px;
  }

  .x-home-search-wrap {
    margin-top: 24px;
  }

  .x-home-search kbd {
    display: none;
  }

  .x-home-discovery {
    margin-top: 0;
  }

  .x-category-grid {
    display: flex;
    margin-right: -17px;
    padding-right: 17px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .x-category-card,
  .x-empty-card {
    flex: 0 0 158px;
    min-height: 92px;
    scroll-snap-align: start;
  }

  .x-friend-card {
    flex-basis: 235px;
  }

  .x-latest-section {
    padding: 72px 0 72px;
  }

  .x-taxonomy-section {
    padding: 64px 0 72px;
  }

  .x-home-profile {
    grid-template-columns: 66px 1fr;
    gap: 16px;
    margin-bottom: 50px;
    padding: 18px;
    border-radius: 16px;
  }

  .x-profile-avatar {
    width: 66px;
    height: 66px;
  }

  .x-profile-name {
    font-size: 1.08rem;
  }

  .x-profile-stats {
    gap: 20px;
    margin-top: 9px;
  }

  .x-profile-github {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .x-post-row {
    padding: 28px 0;
  }

  .x-post-meta {
    gap: 6px;
    flex-wrap: wrap;
  }

  .x-site-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .x-stat {
    min-height: 92px;
    border-bottom: 0;
  }

  .x-stat:nth-child(2) {
    border-right: 0;
  }

  .post #content-inner.layout,
  .page:not(:has(#xiexie-home)) #content-inner.layout {
    padding: 18px 10px 28px;
  }

  #post,
  #page,
  #archive,
  #category,
  #tag {
    border-radius: 15px;
  }

  #post {
    padding: 28px 20px 36px;
  }

  #post-info .post-title {
    font-size: clamp(1.86rem, 9vw, 2.55rem);
  }

  #article-container {
    font-size: 16px;
    line-height: 1.85;
  }

  .category-lists .category-list,
  .flink-list {
    grid-template-columns: 1fr;
  }

  .type-categories #content-inner.layout,
  .type-tags #content-inner.layout {
    min-height: calc(100vh - 58px);
    padding: 34px 14px 64px;
  }

  .type-categories #content-inner.layout::before,
  .type-tags #content-inner.layout::before {
    background-image: url('/img/xiexie/hero-mobile.webp');
    filter: blur(34px) saturate(0.62);
  }

  .type-categories #content-inner.layout::after,
  .type-tags #content-inner.layout::after {
    top: 58px;
  }

  .type-categories #page,
  .type-tags #page {
    padding: 26px 22px;
    border-radius: 15px;
  }

  .type-categories .page-title,
  .type-tags .page-title {
    margin-bottom: 24px;
  }

  .type-link #content-inner.layout {
    padding: 58px 0 0;
  }

  .type-link #page {
    min-height: calc(100vh - 58px);
    border-radius: 0;
  }

  .x-friends-scene {
    inset: 0;
  }

  .x-friends-background,
  .x-friends-intro {
    background-position: 36% center;
  }

  .x-friends-page {
    width: min(100% - 28px, 640px);
    min-height: calc(100vh - 58px);
    padding: 30px 0 58px;
  }

  .x-friends-heading {
    top: 64px;
    padding: 3px 0;
    border-radius: 0;
  }

  .x-friends-heading h1 {
    font-size: 1.05rem;
  }

  .x-friends-empty {
    min-height: 220px;
    border-radius: 18px;
  }

  #rightside {
    right: 12px;
    bottom: 14px;
  }

  #rightside-config-show {
    display: flex;
    padding: 5px;
    align-items: center;
    flex-direction: column;
    background: rgba(255, 252, 245, 0.78);
    border: 1px solid var(--x-line);
    border-radius: 999px;
    box-shadow: 0 12px 34px rgba(28, 38, 42, 0.14);
    backdrop-filter: blur(14px);
  }

  [data-theme='dark'] #rightside-config-show {
    background: rgba(29, 34, 39, 0.82);
  }

  #rightside-config-show > :not(#x-mobile-tools-toggle):not(#go-up) {
    display: none;
  }

  #rightside.mobile-tools-open #rightside-config-show > :not(#x-mobile-tools-toggle) {
    display: block;
  }

  #rightside > div > button,
  #rightside > div > a {
    width: 35px;
    height: 35px;
    margin: 3px 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  #x-mobile-tools-toggle {
    display: block !important;
  }

  .type-404 .error-img img {
    content: url('/img/xiexie/hero-mobile.webp');
  }

  .type-404 .error-img::after {
    background: linear-gradient(180deg, rgba(255, 250, 241, 0.24), rgba(255, 250, 241, 0.84));
  }

  .type-404 .error-content .error-info {
    top: auto;
    right: 24px;
    bottom: 9vh;
    left: 24px;
    text-align: center;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .x-intro-layer {
    display: none;
  }

  .x-friends-intro,
  #x-friends-rain {
    display: none;
  }
}
