/* ==========================================================================
   FutureYSM · 笑话区
   独立子品牌样式：暖琥珀 + 珊瑚，暗色为默认，亮色为纸张感，高对比单独一套。
   所有选择器以 .jk- 开头，避免和主站 zlib 样式互相污染。
   ========================================================================== */

/* ---------- 1. 变量：暗色（默认） ---------- */
.joke-page {
  --jk-bg: #17181b;
  --jk-bg-deep: #111214;
  --jk-surface: #1f2125;
  --jk-surface-2: #25272c;
  --jk-surface-3: #2c2e34;
  --jk-line: rgba(255, 255, 255, 0.08);
  --jk-line-strong: rgba(255, 255, 255, 0.16);
  --jk-text: #f6f3ec;
  --jk-text-2: #bdb6a9;
  --jk-text-3: #8b8478;
  --jk-accent: #f0b44c;
  --jk-accent-soft: rgba(240, 180, 76, 0.14);
  --jk-accent-2: #ff8a5b;
  --jk-red: #e05252;
  --jk-red-soft: rgba(224, 82, 82, 0.14);
  --jk-violet: #a78bfa;
  --jk-violet-soft: rgba(167, 139, 250, 0.14);
  --jk-cyan: #49afd0;
  --jk-cyan-soft: rgba(73, 175, 208, 0.14);
  --jk-green: #71b82c;
  --jk-green-soft: rgba(113, 184, 44, 0.14);
  --jk-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --jk-radius: 14px;
  --jk-radius-sm: 10px;
  --jk-header-h: 64px;
  --jk-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ---------- 2. 页面基底 ---------- */
html {
  scroll-behavior: smooth;
}

body.joke-page {
  min-height: 100vh;
  margin: 0;
  background-color: var(--jk-bg);
  background-image:
    radial-gradient(900px 520px at 12% -12%, rgba(240, 180, 76, 0.11), transparent 62%),
    radial-gradient(760px 460px at 94% 0%, rgba(255, 138, 91, 0.07), transparent 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--jk-text);
  font-family: var(--jk-font);
  -webkit-font-smoothing: antialiased;
}

body.joke-page *,
body.joke-page *::before,
body.joke-page *::after {
  box-sizing: border-box;
}

.joke-page ::selection {
  background: var(--jk-accent);
  color: #1a1508;
}

.joke-page a {
  color: inherit;
}

.joke-page button,
.joke-page input,
.joke-page textarea {
  font-family: inherit;
}

.joke-page img {
  max-width: 100%;
}

/* ---------- 3. 顶部导航 ---------- */
.jk-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(23, 24, 27, 0.86);
  border-bottom: 1px solid var(--jk-line);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.jk-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  height: var(--jk-header-h);
  display: flex;
  align-items: center;
  gap: 18px;
}

.jk-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--jk-text);
  flex: none;
}

.jk-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--jk-accent), var(--jk-accent-2));
  color: #1a1508;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(240, 180, 76, 0.22);
}

.jk-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.jk-brand-text span {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--jk-accent);
}

.jk-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
}

.jk-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--jk-text-2);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.16s ease, background 0.16s ease;
}

.jk-nav a:hover {
  color: var(--jk-text);
  background: var(--jk-surface);
}

.jk-nav a.is-active {
  color: var(--jk-accent);
  background: var(--jk-accent-soft);
}

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

.jk-icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: var(--jk-radius-sm);
  background: transparent;
  color: var(--jk-text-2);
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.jk-icon-btn:hover {
  color: var(--jk-text);
  background: var(--jk-surface);
  border-color: var(--jk-line);
}

.jk-icon-btn svg {
  width: 19px;
  height: 19px;
}

.jk-menu-btn {
  display: none;
}

.jk-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 16px 16px;
  border-top: 1px solid var(--jk-line);
  background: var(--jk-bg-deep);
}

.jk-mobile-menu a {
  padding: 11px 12px;
  border-radius: var(--jk-radius-sm);
  color: var(--jk-text-2);
  text-decoration: none;
  font-size: 14px;
}

.jk-mobile-menu a:hover,
.jk-mobile-menu a.is-active {
  color: var(--jk-accent);
  background: var(--jk-accent-soft);
}

.jk-mobile-menu.is-open {
  display: flex;
}

/* ---------- 4. 通用按钮 ---------- */
.jk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--jk-line-strong);
  border-radius: 999px;
  background: var(--jk-surface);
  color: var(--jk-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.jk-btn:hover {
  transform: translateY(-1px);
  border-color: var(--jk-accent);
  color: var(--jk-accent);
}

.jk-btn svg {
  width: 16px;
  height: 16px;
}

.jk-btn-primary {
  background: var(--jk-accent);
  border-color: var(--jk-accent);
  color: #1a1508;
  box-shadow: 0 8px 22px rgba(240, 180, 76, 0.2);
}

.jk-btn-primary:hover {
  background: #ffc766;
  border-color: #ffc766;
  color: #1a1508;
}

.jk-btn-sm {
  padding: 9px 14px;
  font-size: 13px;
}

/* ---------- 5. Hero ---------- */
.jk-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--jk-line);
}

.jk-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 300px at 18% 20%, rgba(240, 180, 76, 0.13), transparent 65%),
    radial-gradient(460px 260px at 88% 12%, rgba(255, 138, 91, 0.09), transparent 65%);
  pointer-events: none;
}

.jk-hero::after {
  content: "笑";
  position: absolute;
  top: -34%;
  right: -1%;
  font-size: 340px;
  font-weight: 900;
  line-height: 1;
  color: rgba(240, 180, 76, 0.045);
  transform: rotate(-8deg);
  pointer-events: none;
  user-select: none;
}

.jk-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 74px 16px 58px;
}

.jk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 6px 12px;
  border: 1px solid var(--jk-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--jk-text-2);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.jk-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jk-accent);
  box-shadow: 0 0 0 4px var(--jk-accent-soft);
}

.jk-title {
  margin: 0 0 18px;
  font-size: clamp(36px, 6.2vw, 64px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--jk-text);
}

.jk-title em {
  font-style: normal;
  color: var(--jk-accent);
  position: relative;
}

.jk-title em::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--jk-accent-soft);
  z-index: -1;
}

.jk-lead {
  max-width: 640px;
  margin: 0 0 24px;
  color: var(--jk-text-2);
  font-size: 15.5px;
  line-height: 1.85;
}

.jk-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  max-width: 640px;
  padding-top: 18px;
  border-top: 1px solid var(--jk-line);
  color: var(--jk-text-3);
  font-size: 12.5px;
}

.jk-stats b {
  color: var(--jk-text);
  font-size: 15px;
  font-weight: 800;
  margin-right: 2px;
}

.jk-stat-sep {
  width: 1px;
  height: 12px;
  background: var(--jk-line-strong);
}

/* ---------- 6. 双栏布局 ---------- */
.jk-main {
  padding-bottom: 64px;
}

.jk-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 16px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.jk-layout-detail {
  padding-top: 26px;
}

.jk-primary {
  min-width: 0;
}

.jk-side {
  position: sticky;
  top: calc(var(--jk-header-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------- 7. 工具栏 / 标签 / 搜索 ---------- */
.jk-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--jk-line);
}

.jk-tags {
  display: flex;
  align-items: flex-end;
  gap: 26px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
}

.jk-tags::-webkit-scrollbar {
  display: none;
}

.jk-tag {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 10px 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--jk-text-3);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.16s ease;
}

/* 下划线指示条，压在工具栏底线上 */
.jk-tag::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--jk-tag-color, var(--jk-accent));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease;
}

.jk-tag:hover {
  color: var(--jk-text);
}

.jk-tag.is-active {
  color: var(--jk-tag-color, var(--jk-accent));
  background: transparent;
}

.jk-tag.is-active::after {
  transform: scaleX(1);
}

.jk-tag-count {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.55;
}

.jk-sort {
  display: flex;
  flex: none;
  gap: 14px;
  padding-bottom: 12px;
  background: transparent;
}

.jk-sort button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--jk-text-3);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.16s ease;
}

.jk-sort button:hover {
  color: var(--jk-text);
}

.jk-sort button.is-active {
  background: transparent;
  color: var(--jk-accent);
}

.jk-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.jk-search-row input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 15px;
  border: 1px solid var(--jk-line);
  border-radius: 12px;
  background: var(--jk-surface);
  color: var(--jk-text);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

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

.jk-search-row input:focus {
  border-color: var(--jk-accent);
  box-shadow: 0 0 0 3px var(--jk-accent-soft);
}

.jk-search-row > span {
  flex: none;
  color: var(--jk-text-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* ---------- 8. 笑话卡片 ---------- */
.jk-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.jk-card {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 18px 18px 16px 20px;
  border: 1px solid var(--jk-line);
  border-radius: var(--jk-radius);
  background: var(--jk-surface);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.jk-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--jk-tag-color, var(--jk-accent));
  opacity: 0.85;
}

.jk-card:hover {
  transform: translateY(-2px);
  border-color: var(--jk-line-strong);
  background: var(--jk-surface-2);
  box-shadow: var(--jk-shadow);
}

.jk-avatar {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--jk-line);
  border-radius: 14px;
  background: var(--jk-surface-2);
  font-size: 22px;
  line-height: 1;
}

.jk-avatar-lg {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-size: 20px;
}

.jk-card-body {
  flex: 1;
  min-width: 0;
  display: block;
}

.jk-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: var(--jk-text);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.jk-card-excerpt {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--jk-text-2);
  font-size: 13.5px;
  line-height: 1.68;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.jk-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--jk-text-3);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.jk-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.jk-meta-item svg {
  width: 13px;
  height: 13px;
  opacity: 0.8;
}

.jk-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--jk-tag-soft, var(--jk-accent-soft));
  color: var(--jk-tag-color, var(--jk-accent));
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.jk-pin,
.jk-hot {
  flex: none;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.jk-pin {
  background: var(--jk-accent);
  color: #1a1508;
}

.jk-hot {
  background: var(--jk-red-soft);
  color: var(--jk-red);
}

/* 标签配色 */
.jk-tag-hell,
.jk-c-hell {
  --jk-tag-color: var(--jk-red);
  --jk-tag-soft: var(--jk-red-soft);
}

.jk-tag-scene,
.jk-c-scene {
  --jk-tag-color: var(--jk-violet);
  --jk-tag-soft: var(--jk-violet-soft);
}

.jk-tag-daily,
.jk-c-daily {
  --jk-tag-color: var(--jk-cyan);
  --jk-tag-soft: var(--jk-cyan-soft);
}

.jk-tag-submit,
.jk-c-submit {
  --jk-tag-color: var(--jk-green);
  --jk-tag-soft: var(--jk-green-soft);
}

.jk-tag-official,
.jk-c-official {
  --jk-tag-color: var(--jk-accent);
  --jk-tag-soft: var(--jk-accent-soft);
}

.jk-tag-negative,
.jk-c-negative {
  --jk-tag-color: var(--jk-red);
  --jk-tag-soft: var(--jk-red-soft);
}

/* 空状态 / 加载更多 */
.jk-empty {
  padding: 56px 20px;
  border: 1px dashed var(--jk-line-strong);
  border-radius: var(--jk-radius);
  color: var(--jk-text-3);
  text-align: center;
  font-size: 13.5px;
  line-height: 1.9;
}

.jk-more {
  width: 100%;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid var(--jk-line);
  border-radius: 12px;
  background: var(--jk-surface);
  color: var(--jk-text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.jk-more:hover {
  color: var(--jk-accent);
  border-color: var(--jk-accent);
  background: var(--jk-accent-soft);
}

.jk-error {
  padding: 40px 20px;
  border: 1px solid var(--jk-red-soft);
  border-radius: var(--jk-radius);
  background: var(--jk-surface);
  color: var(--jk-text-2);
  text-align: center;
  font-size: 13.5px;
  line-height: 1.9;
}

.jk-loading {
  padding: 56px 20px;
  border: 1px solid var(--jk-line);
  border-radius: var(--jk-radius);
  background: var(--jk-surface);
  color: var(--jk-text-3);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* ---------- 9. 侧栏 ---------- */
.jk-panel {
  border: 1px solid var(--jk-line);
  border-radius: var(--jk-radius);
  background: var(--jk-surface);
  overflow: hidden;
}

.jk-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--jk-line);
  color: var(--jk-text-2);
  font-size: 12.5px;
  font-weight: 700;
}

.jk-panel-head a {
  color: var(--jk-text-3);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 500;
}

.jk-panel-head a:hover {
  color: var(--jk-accent);
}

.jk-panel-kicker {
  color: var(--jk-text-3);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.jk-panel-body {
  padding: 13px 15px;
}

.jk-today {
  display: block;
  text-decoration: none;
  color: inherit;
}

.jk-today-tag {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--jk-accent-soft);
  color: var(--jk-accent);
  font-size: 10px;
  font-weight: 800;
}

.jk-today h3 {
  margin: 0 0 7px;
  color: var(--jk-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.jk-today p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--jk-text-2);
  font-size: 12.5px;
  line-height: 1.7;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.jk-today-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--jk-accent);
  font-size: 11.5px;
  font-weight: 700;
}

.jk-today-more svg {
  width: 13px;
  height: 13px;
}

.jk-hot-item {
  display: flex;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--jk-line);
  text-decoration: none;
  color: inherit;
}

.jk-hot-item:first-child {
  padding-top: 2px;
}

.jk-hot-item:last-child {
  padding-bottom: 2px;
  border-bottom: 0;
}

.jk-rank {
  flex: none;
  width: 18px;
  color: var(--jk-text-3);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.jk-rank.is-top {
  color: var(--jk-accent);
}

.jk-hot-main {
  min-width: 0;
  display: block;
}

.jk-hot-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--jk-text-2);
  font-size: 12.5px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.jk-hot-item:hover .jk-hot-title {
  color: var(--jk-accent);
}

.jk-hot-meta {
  display: block;
  margin-top: 3px;
  color: var(--jk-text-3);
  font-size: 10.5px;
}

.jk-side-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jk-side-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid var(--jk-line);
  border-radius: 999px;
  background: var(--jk-surface-2);
  color: var(--jk-text-2);
  text-decoration: none;
  font-size: 11.5px;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.jk-side-tag:hover {
  color: var(--jk-tag-color, var(--jk-accent));
  border-color: var(--jk-tag-color, var(--jk-accent));
}

.jk-side-tag b {
  color: var(--jk-tag-color, var(--jk-accent));
  font-size: 10px;
  font-weight: 800;
}

.jk-panel-submit {
  background:
    linear-gradient(150deg, var(--jk-accent-soft), transparent 70%),
    var(--jk-surface);
}

.jk-panel-submit h3 {
  margin: 0 0 7px;
  color: var(--jk-text);
  font-size: 14px;
  font-weight: 800;
}

.jk-panel-submit p {
  margin: 0 0 12px;
  color: var(--jk-text-2);
  font-size: 12px;
  line-height: 1.7;
}

.jk-side-search {
  display: flex;
  gap: 6px;
}

.jk-side-search input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--jk-line);
  border-radius: 9px;
  background: var(--jk-surface-2);
  color: var(--jk-text);
  font-size: 12px;
  outline: none;
}

.jk-side-search input:focus {
  border-color: var(--jk-accent);
}

.jk-side-search button {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--jk-line);
  border-radius: 9px;
  background: var(--jk-surface-2);
  color: var(--jk-text-2);
  cursor: pointer;
}

.jk-side-search button:hover {
  color: var(--jk-accent);
  border-color: var(--jk-accent);
}

.jk-side-search svg {
  width: 15px;
  height: 15px;
}

/* ---------- 10. 详情页 ---------- */
.jk-detail {
  min-width: 0;
}

.jk-article {
  padding: 26px 28px 22px;
  border: 1px solid var(--jk-line);
  border-radius: var(--jk-radius);
  background: var(--jk-surface);
}

.jk-crumb {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--jk-text-3);
  font-size: 11.5px;
}

.jk-crumb a {
  color: var(--jk-text-2);
  text-decoration: none;
}

.jk-crumb a:hover {
  color: var(--jk-accent);
}

.jk-crumb-sep {
  opacity: 0.5;
}

.jk-article-title {
  margin: 0 0 14px;
  color: var(--jk-text);
  font-size: clamp(24px, 3.8vw, 34px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.jk-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--jk-line);
  color: var(--jk-text-3);
  font-size: 12px;
}

.jk-article-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--jk-text-2);
  font-weight: 600;
}

.jk-article-author small {
  display: block;
  margin-top: 2px;
  color: var(--jk-text-3);
  font-size: 10px;
  font-weight: 500;
}

.jk-article-meta .jk-badge {
  font-size: 11px;
}

.jk-content {
  padding: 22px 0 6px;
  color: var(--jk-text-2);
  font-size: 15.5px;
  line-height: 1.95;
}

.jk-content p {
  margin: 0 0 16px;
}

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

.jk-content blockquote {
  margin: 20px 0;
  padding: 13px 18px;
  border-left: 3px solid var(--jk-accent);
  border-radius: 0 10px 10px 0;
  background: var(--jk-accent-soft);
  color: var(--jk-text);
  font-size: 15.5px;
  line-height: 1.8;
}

.jk-content ul,
.jk-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.jk-content li {
  margin-bottom: 6px;
}

.jk-content strong {
  color: var(--jk-text);
}

.jk-content code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--jk-surface-2);
  color: var(--jk-accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9em;
}

/* 反应与操作 */
.jk-react-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--jk-line);
}

.jk-react {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--jk-line);
  border-radius: 999px;
  background: var(--jk-surface-2);
  color: var(--jk-text-2);
  font-size: 12.5px;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.jk-react:hover {
  transform: translateY(-1px);
  color: var(--jk-text);
  border-color: var(--jk-line-strong);
}

.jk-react.is-active {
  color: var(--jk-accent);
  border-color: var(--jk-accent);
  background: var(--jk-accent-soft);
}

.jk-react-emoji {
  font-size: 14px;
  line-height: 1;
}

.jk-react b {
  color: var(--jk-text-3);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.jk-react.is-active b {
  color: var(--jk-accent);
}

.jk-article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.jk-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid var(--jk-line);
  border-radius: 999px;
  background: transparent;
  color: var(--jk-text-2);
  font-size: 12.5px;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.jk-action:hover {
  color: var(--jk-text);
  border-color: var(--jk-line-strong);
}

.jk-action.is-active {
  color: var(--jk-accent);
  border-color: var(--jk-accent);
  background: var(--jk-accent-soft);
}

.jk-action svg {
  width: 15px;
  height: 15px;
}

.jk-action b {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.jk-share-hint {
  margin-left: auto;
  align-self: center;
  color: var(--jk-text-3);
  font-size: 10.5px;
}

/* 上一条 / 下一条 */
.jk-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.jk-prevnext a {
  display: block;
  padding: 13px 15px;
  border: 1px solid var(--jk-line);
  border-radius: var(--jk-radius-sm);
  background: var(--jk-surface);
  text-decoration: none;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.jk-prevnext a:hover {
  border-color: var(--jk-accent);
  background: var(--jk-surface-2);
}

.jk-prevnext span {
  display: block;
  margin-bottom: 4px;
  color: var(--jk-text-3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.jk-prevnext strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--jk-text-2);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.jk-prevnext .is-next {
  text-align: right;
}

/* ---------- 11. 评论 ---------- */
.jk-comments {
  margin-top: 16px;
  padding: 22px 28px 24px;
  border: 1px solid var(--jk-line);
  border-radius: var(--jk-radius);
  background: var(--jk-surface);
}

.jk-comments-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--jk-text);
  font-size: 15px;
  font-weight: 800;
}

.jk-comments-head span {
  color: var(--jk-text-3);
  font-size: 12px;
  font-weight: 500;
}

.jk-comments-head em {
  margin-left: auto;
  color: var(--jk-text-3);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 500;
}

.jk-comment {
  display: flex;
  gap: 11px;
  padding: 16px 0;
  border-bottom: 1px solid var(--jk-line);
}

.jk-comment:last-child {
  border-bottom: 0;
}

.jk-comment-body {
  flex: 1;
  min-width: 0;
}

.jk-comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--jk-text-3);
  font-size: 11px;
}

.jk-comment-author {
  color: var(--jk-text);
  font-size: 12.5px;
  font-weight: 700;
}

.jk-comment-floor {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--jk-surface-2);
  color: var(--jk-text-3);
  font-size: 9.5px;
  font-weight: 700;
}

.jk-comment-local {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--jk-accent-soft);
  color: var(--jk-accent);
  font-size: 9.5px;
  font-weight: 700;
}

.jk-comment-text {
  margin-top: 6px;
  color: var(--jk-text-2);
  font-size: 13.5px;
  line-height: 1.8;
  word-break: break-word;
}

.jk-comment-empty {
  padding: 26px 0 10px;
  color: var(--jk-text-3);
  font-size: 12.5px;
  text-align: center;
}

.jk-comment-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--jk-line);
}

.jk-comment-form-head {
  margin-bottom: 10px;
  color: var(--jk-text-2);
  font-size: 12.5px;
  font-weight: 700;
}

.jk-comment-form input,
.jk-comment-form textarea {
  width: 100%;
  border: 1px solid var(--jk-line);
  border-radius: 10px;
  background: var(--jk-surface-2);
  color: var(--jk-text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.jk-comment-form input {
  height: 38px;
  padding: 0 12px;
  margin-bottom: 8px;
}

.jk-comment-form textarea {
  min-height: 92px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.7;
}

.jk-comment-form input:focus,
.jk-comment-form textarea:focus {
  border-color: var(--jk-accent);
  box-shadow: 0 0 0 3px var(--jk-accent-soft);
}

.jk-comment-form input::placeholder,
.jk-comment-form textarea::placeholder {
  color: var(--jk-text-3);
}

.jk-comment-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
}

.jk-comment-form-foot span {
  color: var(--jk-text-3);
  font-size: 10.5px;
}

/* ---------- 12. 浮动工具 / Toast ---------- */
.jk-scroll {
  position: fixed;
  right: calc(50% - 610px);
  bottom: 8%;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jk-scroll button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--jk-line);
  border-radius: 12px;
  background: var(--jk-surface);
  color: var(--jk-text-2);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.16s ease, border-color 0.16s ease;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.jk-scroll button.is-show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.jk-scroll button:hover {
  color: var(--jk-accent);
  border-color: var(--jk-accent);
}

.jk-scroll svg {
  width: 17px;
  height: 17px;
}

.jk-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 1000;
  padding: 10px 18px;
  border: 1px solid var(--jk-line-strong);
  border-radius: 999px;
  background: var(--jk-surface-3);
  color: var(--jk-text);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.jk-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- 13. 页脚（沿用主站结构，做轻量适配） ---------- */
.joke-page .site-footer {
  margin-top: 0;
}

.joke-page .footer-bottom {
  color: var(--jk-text-3);
}

/* ---------- 14. 亮色主题：纸张感 ---------- */
html[data-theme="light"] .joke-page {
  --jk-bg: #f0e6d2;
  --jk-bg-deep: #e6d9bf;
  --jk-surface: #fffdf8;
  --jk-surface-2: #ffffff;
  --jk-surface-3: #ffffff;
  --jk-line: #c6b79c;
  --jk-line-strong: #8c795a;
  --jk-text: #1f1a11;
  --jk-text-2: #51452f;
  --jk-text-3: #6d5e45;
  --jk-accent: #8a5500;
  --jk-accent-soft: rgba(240, 180, 76, 0.26);
  --jk-accent-2: #c2521f;
  --jk-red: #b23a3a;
  --jk-red-soft: rgba(178, 58, 58, 0.14);
  --jk-violet: #6d4fc4;
  --jk-violet-soft: rgba(109, 79, 196, 0.14);
  --jk-cyan: #127a9c;
  --jk-cyan-soft: rgba(18, 122, 156, 0.14);
  --jk-green: #4f8a1e;
  --jk-green-soft: rgba(79, 138, 30, 0.14);
  --jk-shadow: 0 2px 4px rgba(70, 50, 15, 0.08), 0 14px 32px rgba(70, 50, 15, 0.12);
}

html[data-theme="light"] body.joke-page {
  background-color: #f0e6d2;
  background-image:
    radial-gradient(900px 520px at 12% -12%, rgba(240, 180, 76, 0.24), transparent 62%),
    radial-gradient(760px 460px at 94% 0%, rgba(255, 138, 91, 0.14), transparent 60%);
}

html[data-theme="light"] .jk-header {
  background: rgba(240, 230, 210, 0.92);
  border-bottom-color: var(--jk-line-strong);
}

html[data-theme="light"] .jk-hero::after {
  color: rgba(154, 100, 0, 0.05);
}

html[data-theme="light"] .jk-brand-mark {
  color: #fffaf0;
}

html[data-theme="light"] .jk-btn-primary {
  color: #fffaf0;
}

html[data-theme="light"] .jk-pin {
  color: #fffaf0;
}

html[data-theme="light"] .jk-card {
  box-shadow: 0 1px 2px rgba(70, 50, 15, 0.06);
}

html[data-theme="light"] .jk-card:hover {
  border-color: var(--jk-line-strong);
  box-shadow: var(--jk-shadow);
}

/* 亮色下输入框和按钮用实底，避免和纸张背景糊在一起 */
html[data-theme="light"] .jk-search-row input,
html[data-theme="light"] .jk-side-search input,
html[data-theme="light"] .jk-comment-form input,
html[data-theme="light"] .jk-comment-form textarea {
  background: #ffffff;
}

/* ---------- 15. 高对比主题 ---------- */
html[data-theme="contrast"] .joke-page {
  --jk-bg: #000000;
  --jk-bg-deep: #000000;
  --jk-surface: #0d0e10;
  --jk-surface-2: #141518;
  --jk-surface-3: #1c1e22;
  --jk-line: rgba(255, 255, 255, 0.18);
  --jk-line-strong: rgba(255, 255, 255, 0.34);
  --jk-text: #ffffff;
  --jk-text-2: #e2e2e2;
  --jk-text-3: #b8b8b8;
  --jk-accent: #ffc24d;
  --jk-accent-soft: rgba(255, 194, 77, 0.2);
  --jk-accent-2: #ff9a6b;
  --jk-red: #ff6b6b;
  --jk-red-soft: rgba(255, 107, 107, 0.18);
  --jk-violet: #b9a0ff;
  --jk-violet-soft: rgba(185, 160, 255, 0.18);
  --jk-cyan: #6fd3f0;
  --jk-cyan-soft: rgba(111, 211, 240, 0.18);
  --jk-green: #8ed44a;
  --jk-green-soft: rgba(142, 212, 74, 0.18);
  --jk-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

html[data-theme="contrast"] body.joke-page {
  background-image: none;
}

html[data-theme="contrast"] .jk-header {
  background: rgba(0, 0, 0, 0.94);
}

html[data-theme="contrast"] .jk-card,
html[data-theme="contrast"] .jk-article,
html[data-theme="contrast"] .jk-comments,
html[data-theme="contrast"] .jk-panel {
  border-color: var(--jk-line-strong);
}

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1100px) {
  .jk-scroll {
    right: 16px;
  }
}

@media (max-width: 980px) {
  .jk-layout {
    grid-template-columns: 1fr;
  }

  .jk-side {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    align-items: start;
  }

  .jk-scroll {
    display: none;
  }
}

@media (max-width: 760px) {
  .jk-nav {
    display: none;
  }

  .jk-menu-btn {
    display: grid;
  }

  .jk-header-inner {
    gap: 10px;
  }

  .jk-brand-text {
    font-size: 14px;
  }

  .jk-hero-inner {
    padding: 48px 16px 40px;
  }

  .jk-hero::after {
    top: -18%;
    right: -10%;
    font-size: 230px;
  }

  .jk-title {
    font-size: clamp(32px, 10vw, 46px);
  }

  .jk-lead {
    font-size: 14px;
  }

  .jk-toolbar {
    gap: 10px;
  }

  .jk-tags {
    gap: 22px;
  }

  .jk-sort {
    gap: 10px;
  }

  .jk-sort button {
    font-size: 12px;
  }

  .jk-article,
  .jk-comments {
    padding: 20px 18px;
  }

  .jk-article-title {
    font-size: 24px;
  }

  .jk-content {
    font-size: 14.5px;
  }

  .jk-prevnext {
    grid-template-columns: 1fr;
  }

  .jk-prevnext .is-next {
    text-align: left;
  }

  .jk-share-hint {
    display: none;
  }

  .jk-comments-head em {
    display: none;
  }
}

@media (max-width: 480px) {
  .jk-card {
    padding: 14px 13px 13px 16px;
    gap: 10px;
  }

  .jk-avatar {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 18px;
  }

  .jk-card-title {
    font-size: 15px;
  }

  .jk-card-excerpt {
    font-size: 12.5px;
    -webkit-line-clamp: 3;
  }

  .jk-meta {
    gap: 8px;
  }

  .jk-stats {
    gap: 10px;
  }

  .jk-comment-form-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .jk-comment-form-foot .jk-btn {
    width: 100%;
  }
}

/* ---------- 17. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .joke-page *,
  .joke-page *::before,
  .joke-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
