/* =========================================================
   Gleam — Halo 2 theme
   A WeChat Moments-style timeline: full-bleed cover, profile
   card, vertical friend-feed, likes and comments.
   ========================================================= */

:root {
  --wx-accent: #576b95;
  --wx-accent-ink: #3f5178;
  --wx-page-bg: #f2f2f2;
  --wx-card: #ffffff;
  --wx-text: #191919;
  --wx-text-2: #7f7f7f;
  --wx-text-3: #b2b2b2;
  --wx-line: #ededed;
  --wx-hover: #f6f6f6;
  --wx-like: #e64340;
  --wx-width: 680px;
  --wx-cover-h: 360px;
  --wx-radius: 12px;
  --wx-shadow: 0 18px 60px rgba(0, 0, 0, 0.07);
}

html.dark {
  --wx-page-bg: #0f0f0f;
  --wx-card: #191919;
  --wx-text: #e4e4e4;
  --wx-text-2: #9b9b9b;
  --wx-text-3: #6f6f6f;
  --wx-line: #2a2a2a;
  --wx-hover: #232323;
  --wx-accent: #7d90b8;
  --wx-accent-ink: #9db0d8;
  --wx-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--wx-page-bg);
  color: var(--wx-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}

img {
  max-width: 100%;
  border: 0;
}

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

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: color-mix(in srgb, var(--wx-accent) 22%, transparent);
}

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

/* ---------------------------------------------------------
   Cover + top navigation
   --------------------------------------------------------- */

.wx-header {
  position: relative;
}

.wx-cover {
  position: relative;
  width: 100%;
  max-width: var(--wx-width);
  margin: 0 auto;
  height: var(--wx-cover-h);
  overflow: hidden;
  background: #20262b;
  isolation: isolate;
}

.wx-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.94) contrast(1.02);
  transform-origin: center;
  animation: wx-cover-in 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes wx-cover-in {
  from {
    transform: scale(1.045);
    opacity: 0.55;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.wx-cover-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, calc(0.62 * var(--wx-cover-shade, 55) / 100)) 0%, rgba(0, 0, 0, 0) 34%),
    linear-gradient(0deg, rgba(0, 0, 0, calc(0.52 * var(--wx-cover-shade, 55) / 100)) 0%, rgba(0, 0, 0, 0) 46%);
  pointer-events: none;
}

.wx-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(16px, 3.6vw, 40px);
}

.wx-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.wx-brand-mark {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.wx-brand-logo {
  flex: none;
  display: block;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  object-fit: cover;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.22);
}

.wx-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.wx-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(18, 18, 18, 0.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.12);
  max-width: min(56vw, 520px);
  overflow-x: auto;
  scrollbar-width: none;
}

.wx-nav::-webkit-scrollbar {
  display: none;
}

.wx-nav-link {
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12.5px;
  line-height: 1.3;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.wx-nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.wx-toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(18, 18, 18, 0.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.wx-toggle:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: rotate(-8deg);
}

.wx-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wx-toggle .wx-icon-sun {
  display: none;
}

html.dark .wx-toggle .wx-icon-sun {
  display: block;
}

html.dark .wx-toggle .wx-icon-moon {
  display: none;
}

.wx-cover-tag {
  position: absolute;
  left: clamp(18px, 4vw, 46px);
  bottom: 24px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.wx-cover-tag-cn {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.32em;
}

.wx-cover-tag-en {
  font-size: 10px;
  letter-spacing: 0.3em;
  opacity: 0.72;
}

.wx-profile-wrap {
  position: relative;
  z-index: 6;
  max-width: var(--wx-width);
  margin: 0 auto;
  padding: 0 26px;
  background: var(--wx-card);
  transition: background-color 0.25s ease;
}

.wx-profile-wrap--plain {
  margin-top: 20px;
  padding-top: 0;
  border-radius: 18px 18px 0 0;
}

.wx-profile-wrap--plain .wx-avatar {
  margin-top: 0;
}

.wx-profile-wrap--plain .wx-profile-info,
.wx-profile-wrap--plain .wx-social {
  margin-top: 0;
}

.wx-profile-wrap--plain .wx-name {
  color: var(--wx-text);
  text-shadow: none;
}

.wx-profile {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 0;
}

.wx-avatar {
  flex: none;
  display: block;
  width: 84px;
  height: 84px;
  margin-top: -54px;
  border-radius: 12px;
  border: 4px solid var(--wx-card);
  overflow: hidden;
  background: var(--wx-hover);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wx-avatar:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.wx-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wx-profile-info {
  min-width: 0;
  margin-top: -50px;
  padding-top: 4px;
}

.wx-name {
  margin: 0;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.wx-profile-wrap:not(.wx-profile-wrap--plain) .wx-name {
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.wx-sign {
  margin: 7px 0 0;
  color: var(--wx-text-2);
  font-size: 13px;
  line-height: 1.55;
  max-width: 46ch;
}

.wx-loc {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 6px 0 0;
  color: var(--wx-text-3);
  font-size: 12px;
}

.wx-loc svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.wx-social {
  flex: none;
  align-self: center;
  display: grid;
  grid-template-columns: repeat(4, 32px);
  gap: 7px;
  margin-left: auto;
  padding-top: 2px;
}

.wx-social-link {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--wx-line);
  border-radius: 50%;
  background: var(--wx-hover);
  color: var(--wx-text-2);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.wx-social-link:hover {
  color: var(--wx-accent);
  border-color: color-mix(in srgb, var(--wx-accent) 40%, var(--wx-line));
  background: var(--wx-card);
  transform: translateY(-1px);
}

.wx-social-link:focus-visible {
  outline: 2px solid var(--wx-accent);
  outline-offset: 2px;
}

.wx-social-link svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wx-social-image {
  display: block;
  width: 17px;
  height: 17px;
  border-radius: 3px;
  object-fit: contain;
}

/* ---------------------------------------------------------
   Main column
   --------------------------------------------------------- */

.wx-main {
  max-width: var(--wx-width);
  margin: 0 auto;
  padding: 0 26px 46px;
  background: var(--wx-card);
  border-radius: 0 0 18px 18px;
  box-shadow: none;
  transition: background-color 0.25s ease;
}

.wx-main--post,
.wx-main--plugin {
  padding-top: 22px;
}

.wx-feed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 8px;
}

.wx-feed-head-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.wx-feed-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--wx-text);
}

.wx-feed-title::before {
  content: none;
}

.wx-feed-count,
.wx-feed-page {
  color: var(--wx-text-3);
  font-size: 13px;
}

.wx-feed {
  display: block;
}

/* ---------------------------------------------------------
   Moment item
   --------------------------------------------------------- */

.wx-moment {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--wx-line);
  transition: background-color 0.18s ease;
}

.wx-moment:last-child {
  border-bottom: 0;
}

.wx-moment-avatar {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--wx-hover);
  flex: none;
}

.wx-moment-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wx-moment-body {
  min-width: 0;
}

.wx-moment-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  line-height: 1.35;
}

.wx-head-dot {
  color: var(--wx-text-3);
  font-size: 13px;
}

.wx-moment .wx-time {
  color: var(--wx-text-2);
  font-size: 14px;
}

.wx-moment-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-left: auto;
  border-radius: 50%;
  color: var(--wx-text-3);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.wx-moment-open:hover {
  color: var(--wx-text);
  background: var(--wx-hover);
}

.wx-moment-open svg {
  fill: currentColor;
  stroke: none;
}

.wx-moment-name {
  color: var(--wx-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.18s ease;
}

.wx-moment-name:hover {
  color: var(--wx-accent);
}

.wx-pin {
  flex: none;
  padding: 0 6px;
  border: 1px solid var(--wx-line);
  border-radius: 4px;
  color: var(--wx-text-2);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.6;
}

.wx-pin--mini {
  font-size: 9px;
  padding: 0 4px;
  margin-left: 2px;
}

.wx-moment-text {
  margin-top: 2px;
}

.wx-moment-title {
  display: block;
  color: var(--wx-text);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
}

.wx-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--wx-excerpt-lines, 4);
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--wx-text);
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-line;
  word-break: break-word;
}

.wx-more {
  display: inline-block;
  margin-top: 5px;
  color: var(--wx-accent);
  font-size: 14px;
  transition: opacity 0.18s ease;
}

.wx-more:hover {
  opacity: 0.75;
}

/* image grid */

.wx-media {
  --wx-card-media-h: 220px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  margin-top: 11px;
  width: min(100%, 516px);
  border: 1px solid var(--wx-line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--wx-hover);
}

.wx-media > img {
  display: block;
  min-width: 0;
  width: 100%;
  height: var(--wx-card-media-h);
  aspect-ratio: auto;
  object-fit: cover;
  background: var(--wx-hover);
}

.wx-media > img:only-child {
  grid-column: 1 / -1;
  width: 100%;
  height: var(--wx-card-media-h);
  min-width: 0;
  max-height: none;
  aspect-ratio: auto;
}

.wx-media:has(> img:nth-child(2):last-child),
.wx-media:has(> img:nth-child(4):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 516px);
}

.wx-media:has(> img:nth-child(3):last-child) {
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, 516px);
}

.wx-media.wx-media--post {
  width: 100%;
  max-width: 100%;
  margin-top: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  border-radius: 8px;
}

.wx-media.wx-media--post > img {
  height: auto;
  aspect-ratio: 4 / 3;
}

.wx-media.wx-media--post > img:only-child {
  aspect-ratio: 16 / 9;
  max-height: 520px;
  min-width: 100%;
}

.wx-media.wx-media--post:has(> img:nth-child(2):last-child),
.wx-media.wx-media--post:has(> img:nth-child(4):last-child) {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* location + footer line */

.wx-moment-loc {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 8px 0 0;
  color: var(--wx-text-2);
  font-size: 12.5px;
  word-break: break-word;
}

.wx-moment-loc svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.wx-post-loc {
  margin-top: 20px;
  font-size: 13px;
}

.wx-moment-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 11px;
  min-height: 26px;
}

.wx-time {
  flex: none;
  color: var(--wx-text-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.wx-views {
  flex: none;
  margin-left: 2px;
  color: var(--wx-text-3);
  font-size: 12px;
}

.wx-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.wx-act {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 3px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--wx-text-2);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.wx-act svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wx-act:hover {
  color: var(--wx-accent);
  background: transparent;
}

.wx-act.is-liked {
  color: var(--wx-like);
  background: transparent;
}

.wx-act.is-liked svg {
  fill: currentColor;
  stroke: currentColor;
  animation: wx-pop 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* twitter-style action row */

.wx-moment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 470px);
  margin-top: 9px;
}

.wx-tweet-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--wx-text-2);
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.16s ease;
}

.wx-tweet-action svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wx-tweet-action:hover {
  color: var(--wx-accent);
}

.wx-tweet-action.is-liked {
  color: #f91880;
}

.wx-tweet-action.is-liked svg {
  fill: currentColor;
  stroke: currentColor;
  animation: wx-pop 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.wx-tweet-action.wx-views {
  margin: 0;
  color: var(--wx-text-2);
  font-size: 13px;
  cursor: default;
}

@keyframes wx-pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.32);
  }
  100% {
    transform: scale(1);
  }
}

/* ---------------------------------------------------------
   Post detail
   --------------------------------------------------------- */

.wx-post {
  min-width: 0;
}

.wx-post-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wx-post-head-info {
  min-width: 0;
}

.wx-post-head-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--wx-accent);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.wx-post-head .wx-time {
  display: block;
  margin-top: 2px;
}

.wx-post-title {
  margin: 18px 0 12px;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  word-break: break-word;
}

.wx-post-content {
  margin-top: 8px;
}

.wx-post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}

.wx-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--wx-hover);
  color: var(--wx-text-2);
  font-size: 12px;
  line-height: 1.6;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.wx-chip:hover {
  color: var(--wx-accent);
}

.wx-chip--cat {
  color: var(--wx-accent);
  background: color-mix(in srgb, var(--wx-accent) 8%, var(--wx-card));
}

.wx-post-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--wx-line);
}

.wx-like-big,
.wx-comment-big {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--wx-hover);
  color: var(--wx-text-2);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.wx-like-big {
  border-color: var(--wx-line);
  background: var(--wx-card);
}

.wx-like-big:hover {
  border-color: color-mix(in srgb, var(--wx-like) 35%, var(--wx-line));
}

.wx-like-big svg,
.wx-comment-big svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wx-like-big em,
.wx-comment-big em {
  color: var(--wx-text-3);
  font-size: 12px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.wx-like-big:hover,
.wx-like-big.is-liked {
  color: var(--wx-like);
  background: color-mix(in srgb, var(--wx-like) 8%, var(--wx-card));
}

.wx-like-big.is-liked svg {
  fill: currentColor;
}

.wx-like-big.is-liked em {
  color: var(--wx-like);
}

.wx-comment-big {
  border-color: var(--wx-line);
  background: transparent;
}

.wx-comment-big:hover {
  color: var(--wx-accent);
  border-color: color-mix(in srgb, var(--wx-accent) 35%, transparent);
}

.wx-post-views {
  margin-left: auto;
  color: var(--wx-text-3);
  font-size: 12px;
}

.wx-post-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--wx-line);
  color: var(--wx-text-2);
  font-size: 13px;
}

.wx-post-nav a {
  transition: color 0.18s ease;
}

.wx-post-nav a:hover {
  color: var(--wx-accent);
}

/* article header + reading aids */

.wx-read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: 2px;
  pointer-events: none;
}

.wx-read-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--wx-accent);
  transition: width 0.08s linear;
}

.wx-article-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0 16px;
  border-bottom: 1px solid var(--wx-line);
}

.wx-article-share {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--wx-line);
  border-radius: 999px;
  background: transparent;
  color: var(--wx-text-2);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.wx-article-share svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wx-article-share:hover {
  color: var(--wx-accent);
  border-color: color-mix(in srgb, var(--wx-accent) 35%, var(--wx-line));
}

.wx-article .wx-post-head {
  padding-top: 20px;
}

.wx-article .wx-post-head-name {
  color: var(--wx-text);
  font-size: 14.5px;
}

.wx-article .wx-post-head-name a:hover {
  color: var(--wx-accent);
}

.wx-post-head-meta {
  margin-top: 2px;
  color: var(--wx-text-3);
  font-size: 12px;
}

.wx-article .wx-post-title {
  margin: 22px 0 0;
  font-size: 29px;
  line-height: 1.35;
  letter-spacing: -0.022em;
}

.wx-post-lead {
  margin: 12px 0 0;
  color: var(--wx-text-2);
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-line;
}

.wx-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--wx-text-3);
  font-size: 12px;
}

.wx-post-meta a {
  color: var(--wx-text-2);
  transition: color 0.16s ease;
}

.wx-post-meta a:hover {
  color: var(--wx-accent);
}

.wx-post-meta-dot {
  opacity: 0.5;
}

.wx-post-toc {
  margin: 22px 0 12px;
  border: 0;
  border-top: 1px solid var(--wx-line);
  border-bottom: 1px solid var(--wx-line);
  border-radius: 0;
  background: transparent;
}

.wx-post-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  color: var(--wx-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  list-style: none;
}

.wx-post-toc summary::-webkit-details-marker {
  display: none;
}

.wx-post-toc summary svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease;
}

.wx-post-toc[open] summary svg {
  transform: rotate(180deg);
}

.wx-post-toc nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  max-height: 184px;
  overflow: auto;
  padding: 0 0 11px;
  scrollbar-width: thin;
}

.wx-post-toc a {
  display: block;
  overflow: hidden;
  padding: 2px 0;
  color: var(--wx-text-2);
  font-size: 12.5px;
  line-height: 1.6;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wx-post-toc a:hover {
  color: var(--wx-accent);
}

.wx-post-toc a[data-level="3"] {
  padding-left: 14px;
  color: var(--wx-text-3);
}

.wx-author-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--wx-line);
  border-radius: 14px;
  background: var(--wx-hover);
}

.wx-author-avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
}

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

.wx-author-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.wx-author-label {
  color: var(--wx-text-3);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.wx-author-name {
  margin-top: 1px;
  color: var(--wx-text);
  font-size: 13.5px;
  font-weight: 600;
}

.wx-author-bio {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  margin: 2px 0 0;
  color: var(--wx-text-2);
  font-size: 11.5px;
  line-height: 1.5;
}

.wx-author-link {
  flex: none;
  color: var(--wx-text-2);
  font-size: 11.5px;
  transition: color 0.16s ease;
}

.wx-author-link:hover {
  color: var(--wx-accent);
}

.wx-post-neighbors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 22px;
}

.wx-post-neighbors a {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--wx-line);
  border-radius: 12px;
  transition: border-color 0.16s ease;
}

.wx-post-neighbors a:hover {
  border-color: color-mix(in srgb, var(--wx-accent) 35%, var(--wx-line));
}

.wx-post-neighbors span {
  display: block;
  color: var(--wx-text-3);
  font-size: 10.5px;
}

.wx-post-neighbors strong {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--wx-text);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wx-post-neighbor-next {
  text-align: right;
}

/* prose */

.prose {
  color: var(--wx-text);
  font-size: 16px;
  line-height: 1.85;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.prose > * + * {
  margin-top: 1.15em;
}

.prose p {
  margin: 0;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  margin: 1.7em 0 0.7em;
  color: var(--wx-text);
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.005em;
}

.prose h1 {
  font-size: 1.45em;
}

.prose h2 {
  font-size: 1.28em;
}

.prose h3 {
  font-size: 1.14em;
}

.prose h4,
.prose h5,
.prose h6 {
  font-size: 1.02em;
}

.prose a {
  color: var(--wx-accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--wx-accent) 32%, transparent);
  transition: border-color 0.18s ease;
}

.prose a:hover {
  border-bottom-color: var(--wx-accent);
}

.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.4em auto;
  border-radius: 8px;
}

.prose figure {
  margin: 1.5em 0;
}

.prose figure img {
  margin: 0 auto;
}

.prose figcaption {
  margin-top: 0.6em;
  color: var(--wx-text-3);
  font-size: 12px;
  text-align: center;
}

.prose blockquote {
  margin: 1.4em 0;
  padding: 12px 16px;
  border-left: 3px solid color-mix(in srgb, var(--wx-accent) 55%, transparent);
  border-radius: 0 8px 8px 0;
  background: var(--wx-hover);
  color: var(--wx-text-2);
}

.prose blockquote p {
  margin: 0;
}

.prose ul,
.prose ol {
  margin: 0;
  padding-left: 1.35em;
}

.prose li {
  margin: 0.35em 0;
}

.prose hr {
  margin: 2.2em 0;
  border: 0;
  border-top: 1px solid var(--wx-line);
}

.prose code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--wx-hover);
  color: var(--wx-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    monospace;
  font-size: 0.88em;
}

.prose pre {
  margin: 1.4em 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--wx-hover);
  overflow-x: auto;
  line-height: 1.65;
}

.prose pre code {
  padding: 0;
  background: transparent;
  font-size: 13px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 14px;
}

.prose th,
.prose td {
  padding: 8px 10px;
  border: 1px solid var(--wx-line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--wx-hover);
  font-weight: 600;
}

.prose .hljs,
.prose .highlight {
  border-radius: 10px;
}

/* comments */

.wx-comments {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--wx-line);
  scroll-margin-top: 24px;
}

.wx-comments-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.wx-comments-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.wx-comments-head span {
  color: var(--wx-accent);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.wx-comment-widget {
  margin-top: 4px;
}

/* comment widget design tokens (plugin-comment-widget) */

html {
  --halo-cw-primary-1-color: var(--wx-accent);
  --halo-cw-primary-2-color: color-mix(in srgb, var(--wx-accent) 78%, #fff);
  --halo-cw-primary-3-color: color-mix(in srgb, var(--wx-accent) 18%, var(--wx-card));
  --halo-cw-text-1-color: var(--wx-text);
  --halo-cw-text-2-color: var(--wx-text-2);
  --halo-cw-text-3-color: var(--wx-text-3);
  --halo-cw-muted-1-color: var(--wx-line);
  --halo-cw-muted-2-color: var(--wx-hover);
  --halo-cw-muted-3-color: var(--wx-card);
  --halo-cw-base-font-size: 14px;
  --halo-cw-base-font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --halo-cw-avatar-rounded: 8px;
  --halo-cw-avatar-size: 36px;
  --halo-cw-base-rounded: 8px;
}

/* ---------------------------------------------------------
   Filter / panel / archive / tags / categories
   --------------------------------------------------------- */

.wx-filter {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 0 10px;
}

.wx-filter-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--wx-accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wx-filter-title {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.35;
  word-break: break-word;
}

.wx-filter-desc {
  max-width: 62ch;
  margin: 7px 0 0;
  color: var(--wx-text-2);
  font-size: 13px;
  line-height: 1.6;
}

.wx-filter-count {
  flex: none;
  color: var(--wx-text-3);
  font-size: 12px;
}

.wx-panel {
  padding: 30px 0 10px;
}

.wx-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--wx-line);
}

.wx-panel-title {
  margin: 0;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.wx-panel-sub {
  margin: 6px 0 0;
  color: var(--wx-text-3);
  font-size: 12px;
}

.wx-panel-link {
  flex: none;
  color: var(--wx-text-2);
  font-size: 12px;
  transition: color 0.18s ease;
}

.wx-panel-link:hover {
  color: var(--wx-accent);
}

.wx-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 22px 0 6px;
}

.wx-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 12px;
  background: var(--wx-hover);
  color: var(--wx-text);
  font-size: 14px;
  line-height: 1.5;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.wx-tag:hover {
  transform: translateY(-2px);
  color: var(--wx-accent);
  background: color-mix(in srgb, var(--wx-accent) 9%, var(--wx-card));
}

.wx-tag-hash {
  color: var(--wx-accent);
  font-weight: 600;
}

.wx-tag-name {
  max-width: 24ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wx-tag-count {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--wx-card);
  color: var(--wx-text-3);
  font-size: 10px;
  font-style: normal;
  text-align: center;
}

.wx-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  padding: 22px 0 8px;
}

.wx-cat-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--wx-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--wx-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.wx-cat-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--wx-accent) 26%, var(--wx-line));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.wx-cat-cover {
  position: relative;
  height: 108px;
  background: linear-gradient(135deg, #435568 0%, var(--wx-accent) 100%);
  overflow: hidden;
}

.wx-cat-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wx-cat-initial {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.wx-cat-body {
  padding: 12px 14px 14px;
}

.wx-cat-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.wx-cat-name em {
  color: var(--wx-text-3);
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
}

.wx-cat-body p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--wx-text-3);
  font-size: 12px;
  line-height: 1.55;
}

.wx-archive-list {
  padding: 10px 0;
}

.wx-year {
  padding: 18px 0 6px;
}

.wx-year-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.wx-year-head h2 {
  margin: 0;
  color: var(--wx-text-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
}

.wx-year-line {
  flex: 1;
  height: 1px;
  background: var(--wx-line);
}

.wx-year-posts {
  display: flex;
  flex-direction: column;
}

.wx-archive-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 8px;
  border-radius: 10px;
  color: var(--wx-text);
  transition: background-color 0.18s ease;
}

.wx-archive-row:hover {
  background: var(--wx-hover);
}

.wx-archive-date {
  flex: none;
  width: 46px;
  color: var(--wx-text-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.wx-archive-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.wx-archive-thumb {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.wx-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 0 8px;
}

.wx-pager-btn {
  padding: 7px 15px;
  border: 1px solid var(--wx-line);
  border-radius: 999px;
  color: var(--wx-text-2);
  font-size: 12px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.wx-pager-btn:hover {
  color: var(--wx-accent);
  border-color: color-mix(in srgb, var(--wx-accent) 35%, var(--wx-line));
}

.wx-pager-num {
  color: var(--wx-text-3);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.wx-author-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--wx-line);
}

.wx-author-avatar {
  flex: none;
  width: 68px;
  height: 68px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--wx-hover);
}

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

.wx-author-info {
  min-width: 0;
}

.wx-author-info h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
}

.wx-author-info p {
  margin: 5px 0 0;
  color: var(--wx-text-2);
  font-size: 12.5px;
  line-height: 1.55;
}

.wx-author-count {
  display: inline-block;
  margin-top: 6px;
  color: var(--wx-text-3);
  font-size: 11px;
}

/* ---------------------------------------------------------
   Empty / more / buttons
   --------------------------------------------------------- */

.wx-empty {
  padding: 72px 0 60px;
  text-align: center;
}

.wx-empty--slim {
  padding: 36px 0 26px;
}

.wx-empty-icon {
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  color: var(--wx-text-3);
  opacity: 0.55;
}

.wx-empty-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.wx-empty h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.wx-empty p {
  margin: 8px 0 0;
  color: var(--wx-text-3);
  font-size: 13px;
  line-height: 1.6;
}

.wx-empty .wx-btn {
  margin-top: 16px;
}

.wx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 18px;
  border: 1px solid var(--wx-line);
  border-radius: 999px;
  background: var(--wx-card);
  color: var(--wx-text-2);
  font-size: 13px;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.wx-btn:hover {
  color: var(--wx-accent);
  border-color: color-mix(in srgb, var(--wx-accent) 35%, var(--wx-line));
}

.wx-btn--primary {
  border-color: transparent;
  background: var(--wx-accent);
  color: #fff;
}

.wx-btn--primary:hover {
  color: #fff;
  background: var(--wx-accent-ink);
}

.wx-more-wrap {
  padding: 22px 0 6px;
  text-align: center;
}

.wx-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 36px;
  padding: 0 22px;
  border: 1px solid var(--wx-line);
  border-radius: 999px;
  background: var(--wx-hover);
  color: var(--wx-text-2);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.wx-more-btn:hover {
  color: var(--wx-accent);
  border-color: color-mix(in srgb, var(--wx-accent) 35%, var(--wx-line));
  background: var(--wx-card);
}

.wx-more-btn[disabled] {
  cursor: default;
  opacity: 0.55;
}

.wx-more-tip {
  margin: 9px 0 0;
  color: var(--wx-text-3);
  font-size: 11px;
}

.wx-more-tip a {
  color: var(--wx-text-2);
  border-bottom: 1px solid var(--wx-line);
}

/* ---------------------------------------------------------
   Plugin pages: moments / photos / links
   --------------------------------------------------------- */

.wx-subpage {
  min-width: 0;
}

.wx-subhead {
  padding: 22px 0 18px;
}

.wx-subhead-eyebrow {
  margin: 0 0 7px;
  color: var(--wx-accent);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wx-subhead-title {
  margin: 0;
  color: var(--wx-text);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.wx-subhead-desc {
  margin: 8px 0 0;
  max-width: 560px;
  color: var(--wx-text-2);
  font-size: 13.5px;
  line-height: 1.7;
  white-space: pre-line;
}

.wx-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--wx-line);
}

.wx-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 31px;
  padding: 0 12px;
  border: 1px solid var(--wx-line);
  border-radius: 999px;
  background: var(--wx-card);
  color: var(--wx-text-2);
  font-size: 12.5px;
  line-height: 1;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.wx-tab:hover {
  color: var(--wx-accent);
  border-color: color-mix(in srgb, var(--wx-accent) 45%, var(--wx-line));
}

.wx-tab.is-active {
  color: var(--wx-card);
  background: var(--wx-text);
  border-color: var(--wx-text);
}

.wx-tab-count {
  font-size: 10.5px;
  opacity: 0.7;
}

.wx-subnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 16px;
}

.wx-subnav-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--wx-text-2);
  font-size: 13px;
  transition: color 0.16s ease;
}

.wx-subnav-back:hover {
  color: var(--wx-accent);
}

.wx-subnav-back svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wx-subnav-meta {
  color: var(--wx-text-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.wx-page-cover {
  margin: 0 0 24px;
}

.wx-page-cover img {
  display: block;
  width: 100%;
  height: 320px;
  border-radius: 16px;
  border: 1px solid var(--wx-line);
  object-fit: cover;
}

.wx-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px 0 2px;
}

.wx-pager-link {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--wx-line);
  border-radius: 999px;
  color: var(--wx-text-2);
  font-size: 12.5px;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.wx-pager-link:hover {
  color: var(--wx-accent);
  border-color: color-mix(in srgb, var(--wx-accent) 40%, var(--wx-line));
}

.wx-pager-status {
  color: var(--wx-text-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* moments plugin */

.wx-moment-stream {
  padding-top: 2px;
}

.wx-moment--plugin .wx-plugin-content {
  margin-top: 3px;
  color: var(--wx-text);
  font-size: 15px;
  line-height: 1.7;
  word-break: break-word;
}

.wx-plugin-content p {
  margin: 0 0 6px;
}

.wx-plugin-content p:last-child {
  margin-bottom: 0;
}

.wx-plugin-content a {
  color: var(--wx-accent);
}

.wx-moment-time-link {
  color: var(--wx-text-2);
  font-size: 14px;
  transition: color 0.16s ease;
}

.wx-moment-time-link:hover {
  color: var(--wx-accent);
}

.wx-moment-media {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  margin-top: 11px;
  width: min(100%, 516px);
  border: 1px solid var(--wx-line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--wx-hover);
}

.wx-moment-media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.wx-moment-media img:only-child {
  grid-column: 1 / -1;
  width: auto;
  min-width: 100%;
  max-height: 360px;
  aspect-ratio: 16 / 10;
}

.wx-moment-media:has(img:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wx-moment-media video,
.wx-moment-media audio {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
}

.wx-moment-media video {
  max-height: 380px;
  background: #000;
}

.wx-moment-media audio {
  padding: 12px;
}

.wx-moment--detail {
  grid-template-columns: 48px minmax(0, 1fr);
  padding-top: 4px;
  border-bottom: 0;
}

.wx-moment-detail-title {
  margin: 8px 0 10px;
  color: var(--wx-text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.wx-moment--detail .wx-plugin-content,
.wx-plugin-content--detail {
  margin-top: 0;
  font-size: 16px;
  line-height: 1.85;
}

/* photos plugin */

.wx-gallery {
  columns: 3 190px;
  column-gap: 12px;
  padding-top: 18px;
}

.wx-photo-card {
  display: block;
  break-inside: avoid;
  margin: 0 0 12px;
  border: 1px solid var(--wx-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--wx-card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.wx-photo-card:hover {
  border-color: color-mix(in srgb, var(--wx-accent) 35%, var(--wx-line));
  transform: translateY(-2px);
}

.wx-photo-card figure {
  margin: 0;
}

.wx-photo-card img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.2s ease;
}

.wx-photo-card:hover img {
  opacity: 0.94;
}

.wx-photo-card figcaption {
  padding: 9px 11px 11px;
}

.wx-photo-card strong {
  display: block;
  overflow: hidden;
  color: var(--wx-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wx-photo-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  margin-top: 2px;
  color: var(--wx-text-3);
  font-size: 11.5px;
  line-height: 1.5;
}

.wx-photo-hero {
  margin: 0;
}

.wx-photo-hero img {
  display: block;
  width: 100%;
  max-height: 72vh;
  border-radius: 18px;
  background: #0d0d0d;
  object-fit: contain;
}

.wx-photo-hero figcaption {
  padding: 16px 2px 0;
}

.wx-photo-hero h1 {
  margin: 0;
  color: var(--wx-text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
}

.wx-photo-hero-desc {
  margin: 6px 0 0;
  color: var(--wx-text-2);
  font-size: 13.5px;
  line-height: 1.7;
}

.wx-photo-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 7px;
  color: var(--wx-text-3);
  font-size: 11.5px;
}

.wx-photo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.wx-photo-info {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--wx-line);
  border-radius: 14px;
  background: var(--wx-card);
}

.wx-photo-info h2,
.wx-photo-neighbors h2 {
  margin: 0 0 10px;
  color: var(--wx-text-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.wx-photo-info dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px 18px;
  margin: 0;
}

.wx-photo-info dl > div {
  min-width: 0;
}

.wx-photo-info dt {
  color: var(--wx-text-3);
  font-size: 10.5px;
}

.wx-photo-info dd {
  margin: 1px 0 0;
  color: var(--wx-text);
  font-size: 12.5px;
  word-break: break-word;
}

.wx-photo-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.wx-photo-nav a {
  flex: 1 1 200px;
  padding: 12px 14px;
  border: 1px solid var(--wx-line);
  border-radius: 12px;
  transition: border-color 0.16s ease;
}

.wx-photo-nav a:hover {
  border-color: color-mix(in srgb, var(--wx-accent) 40%, var(--wx-line));
}

.wx-photo-nav span {
  display: block;
  color: var(--wx-text-3);
  font-size: 10.5px;
}

.wx-photo-nav strong {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--wx-text);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wx-photo-nav-next {
  text-align: right;
}

.wx-photo-neighbors {
  margin-top: 22px;
}

.wx-photo-neighbor-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.wx-photo-neighbor-list a {
  display: block;
  flex: 0 0 118px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--wx-hover);
}

.wx-photo-neighbor-list a.is-current {
  outline: 2px solid var(--wx-accent);
  outline-offset: 1px;
}

.wx-photo-neighbor-list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* links plugin */

.wx-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 18px;
}

.wx-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--wx-line);
  border-radius: 14px;
  background: var(--wx-card);
  transition: border-color 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.wx-link-card:hover {
  border-color: color-mix(in srgb, var(--wx-accent) 38%, var(--wx-line));
  background: var(--wx-hover);
  transform: translateY(-1px);
}

.wx-link-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  overflow: hidden;
  background: var(--wx-hover);
}

.wx-link-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wx-link-logo-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: color-mix(in srgb, var(--wx-accent) 14%, var(--wx-card));
  color: var(--wx-accent);
  font-size: 17px;
  font-weight: 700;
}

.wx-link-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.wx-link-body strong {
  overflow: hidden;
  color: var(--wx-text);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wx-link-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  margin-top: 1px;
  color: var(--wx-text-2);
  font-size: 11.5px;
  line-height: 1.5;
}

.wx-link-domain {
  overflow: hidden;
  margin-top: 2px;
  color: var(--wx-text-3);
  font-size: 10.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wx-link-arrow {
  flex: none;
  fill: none;
  stroke: var(--wx-text-3);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.38;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.wx-link-card:hover .wx-link-arrow {
  opacity: 1;
  transform: translate(1px, -1px);
}


/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.wx-footer {
  display: flex;
  justify-content: center;
  padding: 26px 20px 40px;
  background: var(--wx-page-bg);
}

.wx-footer-inner {
  display: flex;
  width: 100%;
  max-width: var(--wx-width);
  margin: 0 auto;
  flex-direction: column;
  align-items: center;
  color: var(--wx-text-3);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

.wx-footer-links {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid color-mix(in srgb, var(--wx-line) 78%, transparent);
}

.wx-footer-links a {
  color: var(--wx-text-2);
  font-size: 12.5px;
  transition: color 0.18s ease;
}

.wx-footer-links a:hover {
  color: var(--wx-accent);
}

.wx-footer-bottom {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.wx-footer-links + .wx-footer-bottom {
  padding-top: 15px;
}

.wx-footer-meta {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0;
  font-size: 11.5px;
  text-align: center;
}

.wx-footer-meta a {
  color: var(--wx-text-2);
  transition: color 0.18s ease;
}

.wx-footer-meta a:hover {
  color: var(--wx-accent);
}

.wx-dot {
  opacity: 0.5;
}

.wx-footer-legal {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  font-size: 11.5px;
  text-align: center;
}

.wx-footer-legal-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--wx-text-3);
  transition: color 0.18s ease;
}

.wx-footer-legal-item:hover {
  color: var(--wx-text-2);
}

.wx-footer-police svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wx-footer halo-footer :is(div, p, ul, li),
.wx-footer .halo-footer :is(div, p, ul, li) {
  color: inherit;
  font-size: inherit;
}

.wx-footer halo-footer,
.wx-footer .halo-footer {
  display: block;
  margin-top: 10px;
  text-align: center;
}

/* ---------------------------------------------------------
   Error page
   --------------------------------------------------------- */

.wx-body--error .wx-main {
  padding-top: 56px;
}

.wx-error {
  padding: 20px 0 70px;
  text-align: center;
}

.wx-error-code {
  display: block;
  color: var(--wx-text);
  font-size: 76px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  opacity: 0.14;
}

.wx-error h1 {
  margin: 12px 0 0;
  font-size: 22px;
  font-weight: 650;
}

.wx-error p {
  margin: 10px auto 0;
  max-width: 34ch;
  color: var(--wx-text-2);
  font-size: 13px;
  line-height: 1.7;
}

.wx-error-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

/* ---------------------------------------------------------
   Feed style: plain
   --------------------------------------------------------- */

.wx-style-plain .wx-main {
  background: transparent;
  box-shadow: none;
}

.wx-style-plain .wx-moment {
  margin-bottom: 12px;
  padding: 18px;
  border: 1px solid var(--wx-line);
  border-radius: 14px;
  background: var(--wx-card);
}

.wx-style-plain .wx-post {
  padding: 22px;
  border: 1px solid var(--wx-line);
  border-radius: 14px;
  background: var(--wx-card);
}

/* ---------------------------------------------------------
   Toast + image viewer
   --------------------------------------------------------- */

.wx-toast {
  position: fixed;
  left: 50%;
  bottom: 44px;
  z-index: 60;
  max-width: 80vw;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.86);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.wx-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

html.dark .wx-toast {
  background: rgba(245, 245, 245, 0.92);
  color: #111;
}

.wx-lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.wx-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.wx-lightbox img {
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  transform: scale(0.97);
  transition: transform 0.24s ease;
}

.wx-lightbox.is-open img {
  transform: scale(1);
}

.wx-lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.wx-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 760px) {
  :root {
    --wx-cover-h: 300px;
  }

  .wx-cover-tag {
    left: 16px;
    bottom: 18px;
  }

  .wx-topbar {
    padding: 14px 16px;
    gap: 10px;
  }

  .wx-nav {
    max-width: 52vw;
  }

  .wx-nav-link {
    padding: 6px 6px;
    font-size: 11.5px;
  }

  .wx-toggle {
    width: 34px;
    height: 34px;
  }

  .wx-profile-wrap {
    margin-top: 0;
    padding: 0 16px;
  }

  .wx-profile {
    gap: 12px;
    padding: 14px 0;
  }

  .wx-profile-info {
    margin-top: -46px;
  }

  .wx-social {
    grid-template-columns: repeat(4, 32px);
    gap: 6px;
  }

  .wx-social-link {
    width: 32px;
    height: 32px;
  }

  .wx-social-link svg {
    width: 16px;
    height: 16px;
  }

  .wx-avatar {
    width: 64px;
    height: 64px;
    margin-top: -42px;
    border-width: 3px;
    border-radius: 10px;
  }

  .wx-profile-info {
    padding-top: 0;
  }

  .wx-name {
    font-size: 19px;
  }

  .wx-main {
    padding: 0 16px 34px;
    border-radius: 0;
    box-shadow: none;
  }

  .wx-feed-head {
    padding-top: 20px;
  }

  .wx-moment {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 0 8px;
  }

  .wx-moment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }

  .wx-moment-title {
    font-size: 15px;
  }

  .wx-excerpt {
    font-size: 14.5px;
    -webkit-line-clamp: var(--wx-excerpt-lines, 5);
  }

  .wx-moment-actions {
    width: 100%;
  }

  .wx-tweet-action {
    font-size: 12.5px;
  }

  .wx-media {
    width: 100%;
    max-width: 100%;
  }

  .wx-media:has(> img:nth-child(2):last-child),
  .wx-media:has(> img:nth-child(4):last-child) {
    width: 100%;
  }

  .wx-post-title {
    font-size: 21px;
  }

  .wx-article .wx-post-title {
    margin-top: 18px;
    font-size: 23px;
  }

  .wx-post-lead {
    font-size: 14.5px;
  }

  .wx-post-meta {
    font-size: 11.5px;
  }

  .wx-post-toc nav {
    max-height: 150px;
  }

  .wx-page-cover img {
    height: 200px;
  }

  .wx-author-card {
    padding: 13px;
  }

  .wx-author-link {
    display: none;
  }

  .wx-post-neighbors {
    grid-template-columns: 1fr;
  }

  .wx-post-neighbor-next {
    text-align: left;
  }

  .prose {
    font-size: 15px;
    line-height: 1.8;
  }

  .wx-subhead {
    padding: 16px 0 14px;
  }

  .wx-subhead-title {
    font-size: 24px;
  }

  .wx-subhead-desc {
    font-size: 13px;
  }

  .wx-media {
    --wx-card-media-h: 180px;
  }

  .wx-gallery {
    columns: 2 140px;
    column-gap: 8px;
    padding-top: 14px;
  }

  .wx-photo-card {
    margin-bottom: 8px;
    border-radius: 11px;
  }

  .wx-photo-card figcaption {
    padding: 7px 9px 9px;
  }

  .wx-link-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 14px;
  }

  .wx-link-card {
    padding: 12px;
  }

  .wx-moment--detail {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }

  .wx-plugin-content--detail {
    font-size: 15.5px;
    line-height: 1.8;
  }

  .wx-photo-hero img {
    border-radius: 12px;
  }

  .wx-photo-hero h1 {
    font-size: 21px;
  }

  .wx-photo-nav {
    gap: 8px;
  }

  .wx-photo-neighbor-list {
    gap: 6px;
  }

  .wx-photo-neighbor-list a {
    flex-basis: 96px;
  }

  .wx-filter {
    align-items: flex-start;
  }

  .wx-filter-title {
    font-size: 19px;
  }

  .wx-panel-title {
    font-size: 21px;
  }

  .wx-cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .wx-archive-thumb {
    width: 36px;
    height: 36px;
  }

  .wx-post-bar {
    flex-wrap: wrap;
  }

  .wx-post-views {
    margin-left: 0;
  }

  .wx-footer {
    padding: 28px 16px 36px;
  }

  .wx-footer-top {
    flex-direction: column;
    gap: 18px;
    padding-bottom: 16px;
  }

  .wx-footer-links {
    text-align: left;
  }

  .wx-footer-link-list {
    justify-content: flex-start;
    max-width: none;
  }

  .wx-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .wx-nav {
    max-width: 60vw;
  }

  .wx-cover-tag {
    display: none;
  }

  .wx-profile-info {
    padding-top: 0;
  }

  .wx-sign {
    font-size: 12px;
  }

  .wx-media > img:only-child {
    max-height: 240px;
  }

  .wx-cat-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   v1.3 article meta / footer / comments / link applications
   --------------------------------------------------------- */

.wx-article .wx-post-title {
  margin: 12px 0 0;
}

.wx-post-meta {
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
}

.wx-post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.wx-post-meta-item svg {
  flex: none;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--wx-accent);
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.72;
}

.wx-post-cat-list {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.wx-post-cat-list a + a::before {
  content: "/";
  margin: 0 5px;
  color: var(--wx-text-3);
  opacity: 0.65;
}

.wx-excerpt {
  max-height: calc(1.55em * var(--wx-excerpt-lines, 4));
}

/* comments */

.wx-comments {
  margin-top: 38px;
  padding: 20px;
  border: 1px solid var(--wx-line);
  border-radius: 16px;
  background: var(--wx-card);
}

.wx-comments-head {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.wx-comments-head h2 {
  font-size: 16px;
  letter-spacing: -0.01em;
}

.wx-comments-head span {
  font-size: 12px;
}

.wx-comments-hint {
  color: var(--wx-text-3) !important;
  font-size: 11.5px !important;
}

.wx-comment-widget {
  margin-top: 0;
}

comment-widget {
  --halo-cw-primary-1-color: var(--wx-accent);
  --halo-cw-primary-2-color: color-mix(in srgb, var(--wx-accent) 78%, #fff);
  --halo-cw-primary-3-color: color-mix(in srgb, var(--wx-accent) 18%, var(--wx-card));
  --halo-cw-text-1-color: var(--wx-text);
  --halo-cw-text-2-color: var(--wx-text-2);
  --halo-cw-text-3-color: var(--wx-text-3);
  --halo-cw-muted-1-color: var(--wx-line);
  --halo-cw-muted-2-color: var(--wx-hover);
  --halo-cw-muted-3-color: var(--wx-card);
  --halo-cw-base-font-size: 14px;
  --halo-cw-base-font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --halo-cw-avatar-rounded: 8px;
  --halo-cw-avatar-size: 36px;
  --halo-cw-base-rounded: 9px;
}

/* link applications */

.wx-subhead--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.wx-link-apply-entry {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--wx-accent) 45%, var(--wx-line));
  border-radius: 999px;
  color: var(--wx-accent);
  font-size: 12px;
  font-weight: 500;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.wx-link-apply-entry:hover {
  background: color-mix(in srgb, var(--wx-accent) 8%, var(--wx-card));
  border-color: var(--wx-accent);
}

.wx-link-apply-entry svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.wx-notice {
  margin: 14px 0 0;
  padding: 10px 13px;
  border: 1px solid var(--wx-line);
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.6;
}

.wx-notice--success {
  border-color: color-mix(in srgb, var(--wx-accent) 32%, var(--wx-line));
  background: color-mix(in srgb, var(--wx-accent) 7%, var(--wx-card));
  color: var(--wx-accent);
}

.wx-notice--error {
  border-color: color-mix(in srgb, #d93a3a 32%, var(--wx-line));
  background: color-mix(in srgb, #d93a3a 7%, var(--wx-card));
  color: #b92f2f;
}

.wx-link-apply {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--wx-line);
  scroll-margin-top: 20px;
}

.wx-link-apply-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.wx-link-apply-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.wx-link-apply-head > div > p:not(.wx-subhead-eyebrow) {
  max-width: 52ch;
  margin: 7px 0 0;
  color: var(--wx-text-2);
  font-size: 12.5px;
  line-height: 1.7;
}

.wx-apply-site {
  flex: 0 0 236px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--wx-line);
  border-radius: 12px;
  background: var(--wx-hover);
}

.wx-apply-site > span {
  display: block;
  margin-bottom: 7px;
  color: var(--wx-text-3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.wx-apply-site p {
  display: flex;
  gap: 7px;
  margin: 3px 0;
  font-size: 11.5px;
  line-height: 1.55;
}

.wx-apply-site b {
  flex: none;
  color: var(--wx-text-3);
  font-weight: 400;
}

.wx-apply-site em {
  min-width: 0;
  overflow: hidden;
  color: var(--wx-text);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wx-link-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--wx-line);
  border-radius: 16px;
  background: var(--wx-card);
}

.wx-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.wx-field--wide,
.wx-captcha,
.wx-link-form-foot {
  grid-column: 1 / -1;
}

.wx-field > span,
.wx-captcha > span {
  color: var(--wx-text-2);
  font-size: 11.5px;
  line-height: 1.4;
}

.wx-field i,
.wx-captcha i {
  color: var(--wx-like);
  font-style: normal;
}

.wx-field input,
.wx-field textarea,
.wx-captcha input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--wx-line);
  border-radius: 9px;
  background: var(--wx-page-bg);
  color: var(--wx-text);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.wx-field input,
.wx-captcha input {
  height: 40px;
  padding: 0 11px;
}

.wx-field textarea {
  min-height: 74px;
  padding: 9px 11px;
  resize: vertical;
}

.wx-field input::placeholder,
.wx-field textarea::placeholder,
.wx-captcha input::placeholder {
  color: var(--wx-text-3);
}

.wx-field input:focus,
.wx-field textarea:focus,
.wx-captcha input:focus {
  border-color: var(--wx-accent);
  background: var(--wx-card);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wx-accent) 12%, transparent);
}

.wx-captcha {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.wx-captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wx-captcha-row img {
  flex: none;
  width: 132px;
  height: 44px;
  border: 1px solid var(--wx-line);
  border-radius: 9px;
  background: #fff;
  object-fit: cover;
  cursor: pointer;
}

.wx-captcha-row button {
  flex: none;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--wx-line);
  border-radius: 8px;
  background: var(--wx-hover);
  color: var(--wx-text-2);
  font-size: 11.5px;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.wx-captcha-row button:hover {
  color: var(--wx-accent);
  border-color: color-mix(in srgb, var(--wx-accent) 35%, var(--wx-line));
}

.wx-captcha-row input {
  flex: 1;
  max-width: 220px;
}

.wx-link-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
}

.wx-link-form-foot p {
  margin: 0;
  color: var(--wx-text-3);
  font-size: 11px;
  line-height: 1.55;
}

.wx-link-submit {
  flex: none;
  height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--wx-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--wx-accent) 22%, transparent);
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.wx-link-submit:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.wx-link-submit:active {
  transform: translateY(0);
}

@media (max-width: 760px) {
  .wx-subhead--split,
  .wx-link-apply-head,
  .wx-link-form-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .wx-link-apply-entry {
    margin-top: 2px;
  }

  .wx-apply-site {
    flex: none;
    width: 100%;
  }

  .wx-link-form {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 13px;
  }

  .wx-captcha-row {
    flex-wrap: wrap;
  }

  .wx-captcha-row input {
    flex: 1 1 100%;
    max-width: none;
  }

  .wx-comments {
    margin-top: 30px;
    padding: 16px 14px;
  }

  .wx-link-submit {
    width: 100%;
  }
}

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

/* ---------------------------------------------------------
   v1.4 header search / nav / RSS / reward / collapsible apply
   --------------------------------------------------------- */

.wx-search-toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(18, 18, 18, 0.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.wx-search-toggle:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.wx-search-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wx-nav-link.is-active {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.wx-search[hidden] {
  display: none;
}

.wx-search {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(72px, 12vh, 140px) 16px 24px;
}

.wx-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.46);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.wx-search-dialog {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  max-height: min(70vh, 620px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--wx-line) 82%, #fff);
  border-radius: 18px;
  background: var(--wx-card);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
}

.wx-search-form {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--wx-line);
}

.wx-search-form > svg {
  flex: none;
  fill: none;
  stroke: var(--wx-text-3);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wx-search-input {
  flex: 1;
  min-width: 0;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--wx-text);
  font: inherit;
  font-size: 15px;
  outline: none;
}

.wx-search-input::placeholder {
  color: var(--wx-text-3);
}

.wx-search-input::-webkit-search-cancel-button,
.wx-search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.wx-search-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--wx-hover);
  color: var(--wx-text-2);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.wx-search-close:hover {
  background: var(--wx-line);
  color: var(--wx-text);
}

.wx-search-results {
  min-height: 80px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
}

.wx-search-hint,
.wx-search-empty {
  margin: 0;
  padding: 24px 14px;
  color: var(--wx-text-3);
  font-size: 12.5px;
  line-height: 1.7;
  text-align: center;
}

.wx-search-count {
  margin: 0;
  padding: 8px 10px 6px;
  color: var(--wx-text-3);
  font-size: 11.5px;
}

.wx-search-result {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  transition: background-color 0.16s ease;
}

.wx-search-result:hover {
  background: var(--wx-hover);
}

.wx-search-result strong {
  display: block;
  color: var(--wx-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.wx-search-result span {
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  color: var(--wx-text-3);
  font-size: 12px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.wx-search-open {
  overflow: hidden;
}

.wx-feed-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wx-rss-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 9px;
  border: 1px solid var(--wx-line);
  border-radius: 999px;
  background: var(--wx-card);
  color: var(--wx-text-2);
  font-size: 11.5px;
  line-height: 1;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.wx-rss-link:hover {
  border-color: color-mix(in srgb, var(--wx-accent) 45%, var(--wx-line));
  color: var(--wx-accent);
}

.wx-rss-link svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.wx-reward {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--wx-accent) 24%, var(--wx-line));
  border-radius: 14px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--wx-accent) 7%, var(--wx-card)), var(--wx-card) 68%);
}

.wx-reward-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.wx-reward-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--wx-accent) 12%, var(--wx-card));
  color: var(--wx-accent);
}

.wx-reward-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.wx-reward h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
}

.wx-reward-copy p {
  margin: 3px 0 0;
  color: var(--wx-text-3);
  font-size: 12px;
  line-height: 1.6;
}

.wx-reward-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: var(--wx-accent);
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 550;
  cursor: pointer;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--wx-accent) 22%, transparent);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.wx-reward-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.wx-reward-btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wx-link-apply {
  margin-top: 32px;
  padding: 0;
  border: 1px solid var(--wx-line);
  border-radius: 16px;
  background: var(--wx-card);
  overflow: hidden;
  scroll-margin-top: 20px;
}

.wx-link-apply[open] {
  border-color: color-mix(in srgb, var(--wx-accent) 24%, var(--wx-line));
}

.wx-link-apply > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.wx-link-apply > summary::-webkit-details-marker {
  display: none;
}

.wx-link-apply > summary::marker {
  content: "";
}

.wx-link-apply-head-text {
  min-width: 0;
}

.wx-link-apply-head-text .wx-subhead-eyebrow {
  margin: 0 0 4px;
}

.wx-link-apply-head-text h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.wx-link-apply-head-text > p:not(.wx-subhead-eyebrow) {
  max-width: 58ch;
  margin: 5px 0 0;
  color: var(--wx-text-3);
  font-size: 12px;
  line-height: 1.65;
}

.wx-link-apply-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--wx-accent);
  font-size: 11.5px;
  font-weight: 500;
}

.wx-link-apply-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease;
}

.wx-link-apply[open] .wx-link-apply-toggle svg {
  transform: rotate(180deg);
}

.wx-apply-when-open {
  display: none;
}

.wx-link-apply[open] .wx-apply-when-closed {
  display: none;
}

.wx-link-apply[open] .wx-apply-when-open {
  display: inline;
}

.wx-link-apply-body {
  padding: 0 20px 20px;
  border-top: 1px solid var(--wx-line);
}

.wx-apply-site {
  display: block;
  flex: none;
  width: auto;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--wx-line);
  border-radius: 12px;
  background: var(--wx-hover);
}

.wx-apply-site-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wx-apply-site-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 11px;
  background: color-mix(in srgb, var(--wx-accent) 10%, var(--wx-card));
  color: var(--wx-accent);
  font-size: 18px;
  font-weight: 650;
}

.wx-apply-site-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wx-apply-site-name,
.wx-apply-site-url {
  display: block;
  margin: 0;
  line-height: 1.5;
}

.wx-apply-site-name b {
  color: var(--wx-text);
  font-size: 13.5px;
  font-weight: 600;
}

.wx-apply-site-url a {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: var(--wx-accent);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wx-apply-site-intro {
  display: block;
  margin: 10px 0 0;
  color: var(--wx-text-2);
  font-size: 11.5px;
  line-height: 1.65;
}

.wx-link-form {
  margin-top: 14px;
}

@media (max-width: 760px) {
  .wx-search {
    padding-top: 64px;
  }

  .wx-search-dialog {
    max-height: 76vh;
    border-radius: 16px;
  }

  .wx-search-form {
    padding: 13px 14px;
  }

  .wx-nav {
    max-width: 52vw;
  }

  .wx-feed-head-right {
    gap: 8px;
  }

  .wx-reward {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .wx-reward-btn {
    width: 100%;
  }

  .wx-link-apply > summary {
    align-items: flex-start;
    padding: 16px;
  }

  .wx-link-apply-body {
    padding: 0 16px 16px;
  }

  .wx-apply-site {
    padding: 12px 13px;
  }

  .wx-apply-site-logo {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .wx-nav {
    max-width: 52vw;
  }

  .wx-feed-page {
    display: none;
  }
}

@media (max-width: 380px) {
  .wx-social {
    grid-template-columns: repeat(3, 32px);
  }

  .wx-nav {
    max-width: 38vw;
  }

  .wx-nav-link {
    padding: 6px 7px;
    font-size: 11.5px;
  }
}

/* ---------------------------------------------------------
   1.5 profile alignment
   --------------------------------------------------------- */

.wx-profile-wrap--right .wx-profile {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.wx-profile-wrap--right .wx-profile-info {
  text-align: right;
}

.wx-profile-wrap--right .wx-social {
  margin-right: auto;
  margin-left: 0;
}

.wx-profile-wrap--right .wx-loc {
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .wx-profile-wrap--right .wx-profile {
    flex-direction: row-reverse;
    justify-content: flex-start;
  }
}

/* ---------------------------------------------------------
   1.5 links view switch / friends circle
   --------------------------------------------------------- */

.wx-friends-feed {
  margin-top: 6px;
}

.wx-friends-feed-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 4px 0 14px;
}

.wx-friends-feed-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
}

.wx-friends-feed-head p {
  margin: 5px 0 0;
  color: var(--wx-text-3);
  font-size: 12px;
}

.wx-friends-feed-count {
  flex: none;
  color: var(--wx-accent);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.wx-friends-feed-list {
  display: grid;
  gap: 10px;
}

.wx-friend-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 16px;
  border: 1px solid var(--wx-line);
  border-radius: 14px;
  background: var(--wx-card);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.wx-friend-item:hover {
  border-color: color-mix(in srgb, var(--wx-accent) 35%, var(--wx-line));
  background: color-mix(in srgb, var(--wx-accent) 3%, var(--wx-card));
  transform: translateY(-1px);
}

.wx-friend-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid var(--wx-line);
  border-radius: 11px;
  background: var(--wx-hover);
  color: var(--wx-text-2);
  font-size: 15px;
  font-weight: 650;
}

.wx-friend-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wx-friend-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
}

.wx-friend-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--wx-text-3);
  font-size: 12px;
  line-height: 1.4;
}

.wx-friend-meta b {
  overflow: hidden;
  color: var(--wx-text-2);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wx-friend-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--wx-text);
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.wx-friend-summary {
  display: -webkit-box;
  overflow: hidden;
  color: var(--wx-text-2);
  font-size: 12.5px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.wx-friend-origin {
  margin-top: 2px;
  color: var(--wx-text-3);
  font-size: 11.5px;
}

.wx-friends-feed-empty {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 42px 24px;
  border: 1px dashed var(--wx-line);
  border-radius: 16px;
  background: var(--wx-card);
  text-align: center;
}

.wx-friends-feed-empty-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 13px;
  border-radius: 50%;
  background: var(--wx-hover);
  color: var(--wx-accent);
}

.wx-friends-feed-empty-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wx-friends-feed-empty h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.wx-friends-feed-empty p {
  max-width: 390px;
  margin: 7px 0 16px;
  color: var(--wx-text-3);
  font-size: 12.5px;
  line-height: 1.7;
}

@media (max-width: 760px) {
  .wx-friends-feed-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .wx-friend-item {
    padding: 13px;
  }

  .wx-friend-logo {
    width: 38px;
    height: 38px;
  }
}

/* ---------------------------------------------------------
   1.5 native reward modal
   --------------------------------------------------------- */

html.wx-modal-open {
  overflow: hidden;
}

.wx-reward-modal[hidden] {
  display: none;
}

.wx-reward-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wx-reward-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.wx-reward-dialog {
  position: relative;
  width: min(390px, calc(100vw - 32px));
  max-height: min(86vh, 680px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--wx-line) 82%, #fff);
  border-radius: 20px;
  background: var(--wx-card);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.wx-reward-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--wx-hover);
  color: var(--wx-text-2);
  cursor: pointer;
}

.wx-reward-close svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.wx-reward-dialog-head {
  padding: 2px 28px 0;
}

.wx-reward-dialog-eyebrow {
  color: var(--wx-accent);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.wx-reward-dialog-head h2 {
  margin: 7px 0 0;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.35;
}

.wx-reward-dialog-head p {
  margin: 7px 0 0;
  color: var(--wx-text-3);
  font-size: 12.5px;
  line-height: 1.65;
}

.wx-reward-tabs {
  display: inline-flex;
  gap: 2px;
  margin: 18px 0 14px;
  padding: 3px;
  border: 1px solid var(--wx-line);
  border-radius: 999px;
  background: var(--wx-hover);
}

.wx-reward-tab {
  min-height: 30px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--wx-text-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.wx-reward-tab.is-active {
  background: var(--wx-text);
  color: var(--wx-card);
}

.wx-reward-panels {
  margin-top: 16px;
}

.wx-reward-tabs + .wx-reward-panels {
  margin-top: 4px;
}

.wx-reward-panel {
  display: none;
}

.wx-reward-panel.is-active {
  display: block;
}

.wx-reward-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 236px;
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  padding: 10px;
  border: 1px solid var(--wx-line);
  border-radius: 14px;
  background: #fff;
}

.wx-reward-qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 7px;
}

.wx-reward-note {
  margin: 11px 0 0;
  color: var(--wx-text-3);
  font-size: 12px;
}

@media (max-width: 480px) {
  .wx-friend-summary {
    -webkit-line-clamp: 3;
  }

  .wx-reward-dialog {
    padding: 22px 18px;
  }

  .wx-reward-qr {
    width: min(220px, 70vw);
  }
}

/* ========== 1.6：瞬间横向轮播 ========== */

.wx-moment-media--single,
.wx-moment-media--carousel {
  display: block;
  width: min(100%, 516px);
  margin-top: 11px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.wx-moment-media-track {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.wx-moment-media-track::-webkit-scrollbar {
  display: none;
}

.wx-moment-media-slide {
  flex: 1 0 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--wx-line);
  border-radius: 15px;
  background: var(--wx-hover);
}

.wx-moment-media--single .wx-moment-media-track {
  display: block;
  overflow: hidden;
}

.wx-moment-media--single .wx-moment-media-slide > img {
  display: block;
  width: 100%;
  height: 280px;
  aspect-ratio: auto;
  object-fit: cover;
}

.wx-moment-media--carousel .wx-moment-media-track {
  padding-right: 22px;
}

.wx-moment-media--carousel .wx-moment-media-slide {
  flex-basis: calc(100% - 30px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.wx-moment-media--carousel .wx-moment-media-slide > img {
  display: block;
  width: 100%;
  height: 300px;
  aspect-ratio: auto;
  object-fit: cover;
}

.wx-moment-media-slide > video {
  display: block;
  width: 100%;
  max-height: 360px;
  background: #000;
}

.wx-moment-media-slide > audio {
  display: block;
  width: calc(100% - 24px);
  margin: 12px;
}

.wx-moment-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 10px 0 1px;
}

.wx-moment-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--wx-line-strong, #d6d6d6);
  cursor: pointer;
  transition: width .18s ease, background-color .18s ease;
}

.wx-moment-dot.is-active {
  width: 15px;
  background: var(--wx-accent, #576b95);
}

/* ========== 1.6：底部导航 ========== */

.wx-bottom-nav {
  display: none;
  position: fixed;
  z-index: 80;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--wx-line) 72%, transparent);
  border-radius: 16px 16px 0 0;
  background: color-mix(in srgb, var(--wx-card) 90%, transparent);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .11), 0 -2px 8px rgba(0, 0, 0, .04);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  backdrop-filter: blur(20px) saturate(1.25);
}

.wx-bottom-nav-inner {
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom, 0px));
}

.wx-bottom-nav-link {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 2px 3px;
  border-radius: 12px;
  color: var(--wx-text-2);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.wx-bottom-nav-link.is-active {
  color: var(--wx-accent, #576b95);
  background: color-mix(in srgb, var(--wx-accent, #576b95) 9%, transparent);
}

.wx-bottom-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.wx-bottom-nav-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wx-bottom-nav-label {
  max-width: 100%;
  overflow: hidden;
  font-size: 10.5px;
  line-height: 1.25;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .wx-bottom-nav {
    display: block;
  }

  body.wx-has-bottom-nav {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  .wx-moment-media--single .wx-moment-media-slide > img {
    height: 220px;
  }

  .wx-moment-media--carousel .wx-moment-media-slide {
    flex-basis: calc(100% - 24px);
  }

  .wx-moment-media--carousel .wx-moment-media-track {
    padding-right: 16px;
  }

  .wx-moment-media--carousel .wx-moment-media-slide > img {
    height: 250px;
  }
}

/* ========== 1.6：独立友链朋友圈页 ========== */

.wx-friends-page .wx-friends-feed {
  margin-top: 24px;
}

.wx-friends-page-intro {
  margin-top: 18px;
  margin-bottom: 2px;
  color: var(--wx-text-2);
  font-size: 14px;
  line-height: 1.8;
}


/* ========== 1.7：图片灯箱 ========== */

body.wx-lightbox-open {
  overflow: hidden;
}

.wx-lightbox {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 44px 22px;
  background: rgba(8, 10, 14, .94);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.wx-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.wx-lightbox[hidden] {
  display: none;
}

.wx-lightbox-figure {
  display: flex;
  width: min(1180px, 92vw);
  max-height: calc(100vh - 42px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.wx-lightbox-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 142px);
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .5);
}

.wx-lightbox-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  padding: 8px 9px 8px 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 13px;
  background: rgba(255, 255, 255, .075);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.wx-lightbox-caption {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .8);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wx-lightbox-controls {
  display: flex;
  flex: none;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}

.wx-lightbox-counter {
  min-width: 42px;
  padding: 0 4px;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  letter-spacing: .04em;
  text-align: center;
  white-space: nowrap;
}

.wx-lightbox-close,
.wx-lightbox-nav {
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .18s ease, border-color .18s ease;
}

.wx-lightbox-close:hover,
.wx-lightbox-nav:hover {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .17);
}

.wx-lightbox-nav {
  width: 31px;
  height: 31px;
}

.wx-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
}

.wx-lightbox-nav[hidden],
.wx-lightbox-counter[hidden],
.wx-lightbox-caption[hidden] {
  display: none;
}

.wx-lightbox-close svg,
.wx-lightbox-nav svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 760px) {
  .wx-lightbox {
    padding: 58px 12px 14px;
  }

  .wx-lightbox-figure {
    width: 100%;
    max-height: calc(100vh - 72px);
  }

  .wx-lightbox-img {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 158px);
  }

  .wx-lightbox-bar {
    gap: 8px;
    margin-top: 10px;
    padding: 7px 7px 7px 12px;
    border-radius: 12px;
  }

  .wx-lightbox-caption {
    font-size: 12px;
  }

  .wx-lightbox-controls {
    gap: 1px;
  }

  .wx-lightbox-nav {
    width: 34px;
    height: 34px;
  }

  .wx-lightbox-counter {
    min-width: 36px;
    font-size: 10.5px;
  }

  .wx-lightbox-close {
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
  }
}

/* 1.9.1：返回顶部 */

.wx-backtop {
  position: fixed;
  z-index: 70;
  right: 22px;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, var(--wx-line) 84%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--wx-card) 90%, transparent);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .1), 0 2px 7px rgba(0, 0, 0, .04);
  color: var(--wx-text-2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, color .18s ease, border-color .18s ease;
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-tap-highlight-color: transparent;
}

.wx-backtop.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.wx-backtop:hover {
  border-color: color-mix(in srgb, var(--wx-accent) 34%, var(--wx-line));
  color: var(--wx-accent);
}

.wx-backtop svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.wx-lightbox-open .wx-backtop {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 760px) {
  .wx-backtop {
    right: 14px;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    height: 38px;
    padding: 0 11px;
    font-size: 11.5px;
  }
}

/* 1.9.1：页脚只在 PC 端显示 */
@media (max-width: 1023px) {
  .wx-footer {
    display: none;
  }
}
