/* 学堂页面样式，统一使用 xt- 前缀。 */

.xt-root {
  --xt-gold: var(--gold, #e8c86b);
  --xt-gold-soft: rgba(232, 200, 107, 0.55);
  --xt-gold-faint: rgba(232, 200, 107, 0.25);
  --xt-gold-hair: rgba(232, 200, 107, 0.12);
  --xt-bg: #08080c;
  --xt-bg-card: var(--bg-card, rgba(35, 30, 25, 0.85));
  --xt-bg-card-strong: rgba(42, 36, 28, 0.92);
  --xt-text: var(--text-primary, #f2ead6);
  --xt-text-soft: rgba(242, 234, 214, 0.74);
  --xt-text-dim: rgba(242, 234, 214, 0.48);
  --xt-border: var(--border-gold, rgba(232, 200, 107, 0.25));
  --xt-radius: 18px;
  --xt-serif: 'LXGW WenKai', 'Noto Serif SC', 'Songti SC', serif;
  --xt-tap: 44px;

  font-family: var(--xt-serif);
  color: var(--xt-text);
  background: var(--xt-bg);
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  box-sizing: border-box;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

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

/* 首屏标题。 */
.xt-hero {
  padding: 28px 22px 20px;
  background:
    radial-gradient(ellipse at 18% 30%, rgba(232, 200, 107, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 82% 80%, rgba(232, 200, 107, 0.04) 0%, transparent 65%),
    var(--xt-bg);
  border-bottom: 1px solid var(--xt-gold-hair);
}
/* 与 v7 chat 顶部 "念心" 同款楷书墨色 wordmark —— 跨页一致性 */
.xt-hero-zh {
  margin: 0 0 6px;
  font-family: 'Ma Shan Zheng', 'ZCOOL XiaoWei', 'STKaiti', '华文楷体', 'KaiTi', '楷体', 'LXGW WenKai', serif;
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--xt-gold);
  line-height: 1;
  text-shadow: 0 0 24px rgba(232, 200, 107, 0.18);
}
.xt-hero-en {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  color: var(--xt-text-dim);
  font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
  font-style: italic;
}
/* 雅集主题（浅色）下：换成墨色，与 v7 chat 完全一致 */
:root.theme-yaji .xt-hero-zh {
  color: var(--ink, #1b1611);
  text-shadow: 0 1px 0 rgba(27, 22, 17, 0.06);
}

/* 分类栏。 */
.xt-cat-wrap {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 8, 12, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--xt-gold-hair);
  /* 右侧遮罩提示横向滚动。 */
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 86%, transparent 100%);
          mask-image: linear-gradient(to right, #000 0%, #000 86%, transparent 100%);
}
.xt-cat-bar {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.xt-cat-bar::-webkit-scrollbar { display: none; }
.xt-cat-track {
  display: flex;
  gap: 6px;
  padding: 10px 18px;
  min-width: max-content;
}
.xt-cat-btn {
  flex: 0 0 auto;
  min-height: var(--xt-tap);
  padding: 10px 18px;
  background: transparent;
  border: none;
  font-family: var(--xt-serif);
  font-size: 1rem;
  letter-spacing: 0.18em;
  color: var(--xt-text-dim);
  cursor: pointer;
  position: relative;
  transition: color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.xt-cat-btn::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--xt-gold);
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}
.xt-cat-btn.active {
  color: var(--xt-gold);
}
.xt-cat-btn.active::after { width: 60%; }
.xt-cat-btn:active { opacity: 0.7; }

/* 内容列表。 */
.xt-feed-wrap { padding: 18px 16px 40px; }
.xt-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.xt-card {
  background: var(--xt-bg-card);
  border: 1px solid var(--xt-gold-faint);
  border-radius: var(--xt-radius);
  padding: 18px 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.xt-card:active { transform: scale(0.97); }
.xt-card:hover {
  border-color: var(--xt-gold-soft);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.42);
}

/* 文章卡片。 */
.xt-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.xt-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.xt-avatar {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(232, 200, 107, 0.08);
  border: 1px solid var(--xt-gold-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.xt-author-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.xt-author-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--xt-text);
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.xt-author-date {
  font-size: 0.72rem;
  color: var(--xt-text-dim);
  margin-top: 2px;
  letter-spacing: 0.04em;
}
.xt-tag {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(232, 200, 107, 0.14);
  color: var(--xt-gold);
  border: 1px solid var(--xt-gold-faint);
}

.xt-card-title {
  margin: 0 0 10px;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--xt-text);
  line-height: 1.55;
  letter-spacing: 0.03em;
}
.xt-card-excerpt {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: var(--xt-text-soft);
  line-height: 1.85;
}

.xt-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--xt-gold-hair);
}
.xt-action-group { display: flex; gap: 18px; }
.xt-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: var(--xt-tap);
  padding: 6px 4px;
  background: transparent;
  border: none;
  color: var(--xt-text-dim);
  font-family: var(--xt-serif);
  font-size: 0.85rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease, transform 0.15s ease;
}
.xt-action-btn:active { transform: scale(0.92); }
.xt-action-btn .xt-glyph {
  font-size: 1.05rem;
  line-height: 1;
}
.xt-action-btn.xt-heart-btn.active {
  color: var(--xt-gold);
}
.xt-action-btn.xt-heart-btn.active .xt-glyph {
  color: var(--xt-gold);
  text-shadow: 0 0 10px rgba(232, 200, 107, 0.4);
}
.xt-action-btn:hover { color: var(--xt-gold); }

/* 视频卡片。 */
.xt-card-video { padding: 0; overflow: hidden; }
.xt-video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 50% 50%, rgba(232, 200, 107, 0.12) 0%, rgba(0,0,0,0.7) 75%),
    linear-gradient(135deg, #1a1410 0%, #120d08 100%);
  border-bottom: 1px solid var(--xt-gold-faint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.xt-video-play {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 2px solid var(--xt-gold);
  color: var(--xt-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  padding-left: 4px;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 24px rgba(232, 200, 107, 0.35);
  transition: transform 0.25s ease;
}
.xt-card-video:active .xt-video-play { transform: scale(0.9); }
.xt-video-duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--xt-gold);
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 10px;
  letter-spacing: 0.08em;
  border: 1px solid var(--xt-gold-faint);
}
.xt-video-body { padding: 16px 20px 14px; }
.xt-video-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 10px;
  font-size: 0.8rem;
  color: var(--xt-text-dim);
}
.xt-video-author { color: var(--xt-text-soft); }

/* 每日短句卡片。 */
.xt-card-quote {
  text-align: center;
  padding: 36px 28px 32px;
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(232, 200, 107, 0.08) 0%, transparent 70%),
    var(--xt-bg-card);
}
.xt-quote-mark {
  font-family: 'Noto Serif SC', serif;
  font-size: 2.8rem;
  color: var(--xt-gold);
  line-height: 1;
  opacity: 0.75;
}
.xt-quote-mark-left  { text-align: left;  margin-bottom: -14px; }
.xt-quote-mark-right { text-align: right; margin-top:   -14px; }
.xt-quote-text {
  margin: 10px 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 2;
  letter-spacing: 0.15em;
  color: var(--xt-text);
}
.xt-quote-source {
  margin-top: 18px;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: var(--xt-gold);
}
.xt-quote-reflection {
  margin: 14px 0 0;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--xt-text-dim);
  line-height: 1.8;
  letter-spacing: 0.04em;
}

/* 空态、加载和错误。 */
.xt-empty, .xt-error, .xt-loading {
  text-align: center;
  padding: 60px 24px;
  color: var(--xt-text-dim);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}
.xt-empty-glyph, .xt-error-glyph {
  font-size: 2.2rem;
  color: var(--xt-gold-soft);
  margin-bottom: 14px;
}
.xt-error-retry {
  margin-top: 16px;
  padding: 10px 28px;
  background: transparent;
  border: 1px solid var(--xt-gold-faint);
  border-radius: 999px;
  color: var(--xt-gold);
  font-family: var(--xt-serif);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  cursor: pointer;
}
.xt-error-retry:active { background: rgba(232, 200, 107, 0.08); }

/* 文章与视频浮层。 */
.xt-overlay-lock { overflow: hidden; }

.xt-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--xt-bg, #08080c);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  font-family: var(--xt-serif);
  color: var(--xt-text, #f2ead6);
  --xt-gold: #e8c86b;
  --xt-gold-soft: rgba(232, 200, 107, 0.55);
  --xt-gold-faint: rgba(232, 200, 107, 0.25);
  --xt-gold-hair: rgba(232, 200, 107, 0.12);
  --xt-bg-card: rgba(35, 30, 25, 0.85);
  --xt-text: #f2ead6;
  --xt-text-soft: rgba(242, 234, 214, 0.74);
  --xt-text-dim: rgba(242, 234, 214, 0.48);
  --xt-serif: 'LXGW WenKai', 'Noto Serif SC', 'Songti SC', serif;
  --xt-tap: 44px;
}
.xt-overlay.visible {
  transform: translateY(0);
  opacity: 1;
}
.xt-overlay.closing {
  transform: translateY(100%);
  opacity: 0;
}

/* 阅读进度条。 */
.xt-read-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, rgba(232, 200, 107, 0.4), var(--xt-gold));
  z-index: 3;
  transition: width 0.1s linear;
}

/* 详情页顶部。 */
.xt-article-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(env(safe-area-inset-top) + 12px) 14px 12px;
  background: rgba(8, 8, 12, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--xt-gold-hair);
  position: sticky;
  top: 0;
  z-index: 4;
}
.xt-header-spacer { flex: 1; }
.xt-header-right { display: flex; gap: 4px; }
.xt-header-btn {
  width: var(--xt-tap);
  height: var(--xt-tap);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--xt-text-soft);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.xt-header-btn:hover { color: var(--xt-gold); }
.xt-header-btn:active {
  transform: scale(0.92);
  background: rgba(232, 200, 107, 0.08);
}
.xt-header-btn.xt-heart-btn.active { color: var(--xt-gold); }

/* 正文滚动区域。 */
.xt-article-body,
.xt-video-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 28px 22px 80px;
}

.xt-article-hero {
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--xt-gold-hair);
}
.xt-article-title {
  margin: 0 0 14px;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--xt-gold);
  font-family: 'STKaiti', 'KaiTi', 'LXGW WenKai', 'Noto Serif SC', serif;
}
.xt-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 0.8rem;
  color: var(--xt-text-dim);
  letter-spacing: 0.06em;
}
.xt-article-meta span { white-space: nowrap; }
.xt-article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.xt-article-content {
  font-size: 1rem;
  line-height: 2.1;
  color: var(--xt-text-soft);
  letter-spacing: 0.04em;
}
.xt-article-h2 {
  margin: 28px 0 14px;
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--xt-gold);
  letter-spacing: 0.12em;
  padding-left: 10px;
  border-left: 3px solid var(--xt-gold);
}
.xt-article-h3 {
  margin: 22px 0 10px;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--xt-text);
  letter-spacing: 0.08em;
}
.xt-article-p {
  margin: 0 0 16px;
  text-indent: 2em;
}

/* 相关推荐和上下篇。 */
.xt-related {
  margin-top: 36px;
  padding: 20px 0 4px;
  border-top: 1px solid var(--xt-gold-hair);
}
.xt-related-title {
  margin: 0 0 14px;
  font-size: 0.9rem;
  letter-spacing: 0.24em;
  color: var(--xt-gold);
  font-weight: 600;
}
.xt-related-item {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--xt-bg-card);
  border: 1px solid var(--xt-gold-faint);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.xt-related-item:active { transform: scale(0.97); border-color: var(--xt-gold-soft); }
.xt-related-name {
  font-size: 1rem;
  color: var(--xt-text);
  font-weight: 600;
  margin-bottom: 4px;
}
.xt-related-excerpt {
  font-size: 0.78rem;
  color: var(--xt-text-dim);
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.xt-prev-next {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.xt-nav-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  min-height: 64px;
  background: var(--xt-bg-card);
  border: 1px solid var(--xt-gold-faint);
  border-radius: 14px;
  color: var(--xt-text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.xt-nav-btn[data-dir="next"] { text-align: right; }
.xt-nav-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.xt-nav-btn:active:not(:disabled) { transform: scale(0.97); border-color: var(--xt-gold-soft); }
.xt-nav-label {
  font-size: 0.7rem;
  color: var(--xt-gold);
  letter-spacing: 0.18em;
}
.xt-nav-name {
  font-size: 0.9rem;
  color: var(--xt-text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 视频浮层。 */
.xt-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--xt-gold-faint);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.xt-player-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.xt-video-info { padding: 0 2px; }
.xt-video-title {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--xt-gold);
  letter-spacing: 0.05em;
}
.xt-video-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.82rem;
  color: var(--xt-text-dim);
  margin-bottom: 16px;
}
.xt-video-excerpt {
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: var(--xt-text-soft);
  line-height: 1.9;
}

/* 轻提示。 */
.xt-toast {
  position: fixed;
  left: 50%;
  bottom: calc(90px + env(safe-area-inset-bottom));
  transform: translate(-50%, 10px);
  padding: 11px 22px;
  background: rgba(20, 16, 12, 0.96);
  border: 1px solid var(--xt-gold-faint, rgba(232, 200, 107, 0.25));
  border-radius: 999px;
  color: var(--xt-gold, #e8c86b);
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  font-family: 'LXGW WenKai', 'Noto Serif SC', serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1000;
  pointer-events: none;
}
.xt-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 响应式保护。 */
@media (max-width: 360px) {
  .xt-card { padding: 16px 16px; }
  .xt-hero-zh { font-size: 1.65rem; }
  .xt-quote-text { font-size: 1.1rem; }
  .xt-article-title { font-size: 1.45rem; }
}

/* 讲座系列卡。 */

.xt-card-lecture {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 14px;
  padding: 14px;
  align-items: stretch;
}

.xt-lecture-poster {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(160deg, #2b1f10 0%, #110a04 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 156px;
  box-shadow:
    inset 0 0 0 1px rgba(232, 200, 107, 0.18),
    0 6px 18px rgba(0, 0, 0, 0.35);
}

.xt-lecture-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(232, 200, 107, 0.25) 0%, transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(232, 200, 107, 0.10) 0%, transparent 55%);
  pointer-events: none;
}

.xt-lecture-poster-glyph {
  position: relative;
  font-family: 'LXGW WenKai', 'Noto Serif SC', serif;
  font-size: 56px;
  font-weight: 400;
  color: #f5dfa0;
  text-shadow: 0 0 24px rgba(232, 200, 107, 0.45), 0 2px 4px rgba(0, 0, 0, 0.4);
  line-height: 1;
}

.xt-lecture-poster-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  text-align: center;
  font-family: 'Noto Serif SC', serif;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: rgba(245, 223, 160, 0.78);
  background: rgba(8, 8, 12, 0.55);
  border-radius: 6px;
  padding: 4px 6px;
  backdrop-filter: blur(2px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xt-lecture-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.xt-lecture-title {
  font-family: 'LXGW WenKai', 'Noto Serif SC', serif;
  font-size: 1.18rem;
  color: #f5dfa0;
  letter-spacing: 0.06em;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.xt-lecture-subtitle {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.82rem;
  color: rgba(232, 200, 107, 0.78);
  letter-spacing: 0.06em;
  margin: 0;
}

.xt-lecture-meta {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.72rem;
  color: rgba(201, 188, 158, 0.65);
  letter-spacing: 0.04em;
  margin: 2px 0 0 0;
}

.xt-lecture-excerpt {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.83rem;
  color: rgba(235, 228, 216, 0.78);
  line-height: 1.65;
  margin: 4px 0 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.xt-lecture-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  gap: 8px;
}

.xt-lecture-detail-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Noto Serif SC', serif;
  font-size: 0.78rem;
  color: rgba(232, 200, 107, 0.85);
  letter-spacing: 0.06em;
}

.xt-lecture-detail-hint svg {
  flex-shrink: 0;
}

@media (max-width: 380px) {
  .xt-card-lecture {
    grid-template-columns: 92px 1fr;
    gap: 12px;
  }
  .xt-lecture-poster {
    min-height: 132px;
  }
  .xt-lecture-poster-glyph {
    font-size: 44px;
  }
  .xt-lecture-title {
    font-size: 1.08rem;
  }
}

/* 视频和讲座详情页。 */

.xt-video-overlay .xt-article-header {
  background: rgba(8, 8, 12, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(232, 200, 107, 0.12);
}

.xt-video-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0;
}

.xt-video-hero {
  position: relative;
  padding: 56px 24px 36px;
  text-align: center;
  background: linear-gradient(160deg, #2b1f10 0%, #110a04 100%);
  overflow: hidden;
}

.xt-video-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(232, 200, 107, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 75% 90%, rgba(232, 200, 107, 0.10) 0%, transparent 55%);
  pointer-events: none;
}

.xt-video-hero > * {
  position: relative;
  z-index: 1;
}

.xt-video-hero-glyph-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.xt-video-hero-glyph {
  font-family: 'LXGW WenKai', 'Noto Serif SC', serif;
  font-size: 96px;
  color: #f5dfa0;
  line-height: 1;
  text-shadow: 0 0 32px rgba(232, 200, 107, 0.5), 0 4px 8px rgba(0, 0, 0, 0.4);
}

.xt-video-hero-title {
  font-family: 'LXGW WenKai', 'Noto Serif SC', serif;
  font-size: 1.85rem;
  color: #f5dfa0;
  letter-spacing: 0.18em;
  font-weight: 400;
  margin: 0 0 10px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.xt-video-hero-subtitle {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.92rem;
  color: rgba(232, 200, 107, 0.78);
  letter-spacing: 0.12em;
  margin: 0;
}

.xt-video-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 22px 22px 6px;
  justify-content: center;
}

.xt-video-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: rgba(35, 30, 25, 0.7);
  border: 1px solid rgba(232, 200, 107, 0.25);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: 'Noto Serif SC', serif;
}

.xt-video-chip-label {
  font-size: 0.7rem;
  color: rgba(201, 188, 158, 0.7);
  letter-spacing: 0.06em;
}

.xt-video-chip-value {
  font-size: 0.82rem;
  color: #f5dfa0;
  letter-spacing: 0.04em;
}

.xt-video-section {
  padding: 28px 22px 6px;
}

.xt-video-section-title {
  font-family: 'LXGW WenKai', 'Noto Serif SC', serif;
  font-size: 1.05rem;
  color: #e8c86b;
  letter-spacing: 0.18em;
  margin: 0 0 14px 0;
  position: relative;
  padding-left: 14px;
  font-weight: 400;
}

.xt-video-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: linear-gradient(180deg, #e8c86b, transparent);
  border-radius: 2px;
}

.xt-video-desc {
  font-family: 'Noto Serif SC', serif;
}

.xt-video-desc-p {
  font-size: 0.95rem;
  line-height: 2;
  letter-spacing: 0.04em;
  color: rgba(235, 228, 216, 0.88);
  text-indent: 2em;
  margin: 0 0 12px 0;
}

.xt-video-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.xt-video-highlight {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(35, 30, 25, 0.55);
  border: 1px solid rgba(232, 200, 107, 0.15);
  border-radius: 12px;
  font-family: 'Noto Serif SC', serif;
}

.xt-video-highlight-dot {
  font-size: 0.7rem;
  color: #e8c86b;
  margin-top: 4px;
  flex-shrink: 0;
}

.xt-video-highlight-text {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(235, 228, 216, 0.88);
  letter-spacing: 0.04em;
}

.xt-video-cta-spacer {
  height: 120px;
}

.xt-video-cta-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 22px calc(22px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent 0%, rgba(8, 8, 12, 0.92) 25%, rgba(8, 8, 12, 0.98) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(232, 200, 107, 0.15);
}

.xt-video-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 14px 22px;
  background: linear-gradient(180deg, #f5dfa0 0%, #e8c86b 100%);
  color: #1a1509;
  font-family: 'LXGW WenKai', 'Noto Serif SC', serif;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  font-weight: 500;
  border-radius: 14px;
  text-decoration: none;
  border: none;
  box-shadow:
    0 6px 24px rgba(232, 200, 107, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.xt-video-cta-btn:active {
  transform: scale(0.98);
  box-shadow:
    0 3px 12px rgba(232, 200, 107, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.xt-video-cta-btn svg {
  flex-shrink: 0;
}

.xt-video-cta-hint {
  margin: 10px 0 0 0;
  text-align: center;
  font-family: 'Noto Serif SC', serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(201, 188, 158, 0.6);
  line-height: 1.5;
}

@media (max-width: 380px) {
  .xt-video-hero { padding: 44px 18px 30px; }
  .xt-video-hero-glyph { font-size: 78px; }
  .xt-video-hero-title { font-size: 1.55rem; }
  .xt-video-section { padding: 22px 18px 4px; }
  .xt-video-cta-btn { font-size: 0.95rem; min-height: 48px; }
}

/* 编辑精选和文献出处。 */

.xt-card-featured {
  position: relative;
  background:
    linear-gradient(180deg, rgba(50, 38, 16, 0.55) 0%, rgba(35, 30, 25, 0.85) 60%);
  border: 1px solid rgba(232, 200, 107, 0.45);
  box-shadow:
    0 0 0 1px rgba(232, 200, 107, 0.12),
    0 8px 28px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(245, 223, 160, 0.18);
  overflow: hidden;
}

.xt-card-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(232, 200, 107, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(232, 200, 107, 0.10) 0%, transparent 50%);
  pointer-events: none;
}

.xt-card-featured > * {
  position: relative;
  z-index: 1;
}

.xt-featured-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 5px 12px;
  background: linear-gradient(180deg, #f5dfa0 0%, #e8c86b 100%);
  color: #1a1509;
  border-radius: 999px;
  font-family: 'LXGW WenKai', 'Noto Serif SC', serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  font-weight: 500;
  box-shadow:
    0 4px 14px rgba(232, 200, 107, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  align-self: flex-start;
  width: fit-content;
}

.xt-featured-glyph {
  font-size: 0.7rem;
  line-height: 1;
}

.xt-card-featured .xt-card-title {
  font-size: 1.32rem;
  color: #f5dfa0;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.xt-card-featured .xt-card-excerpt {
  color: rgba(235, 228, 216, 0.86);
  -webkit-line-clamp: 3;
}

/* 详情页精选标记。 */
.xt-article-featured-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 5px 12px;
  background: linear-gradient(180deg, #f5dfa0 0%, #e8c86b 100%);
  color: #1a1509;
  border-radius: 999px;
  font-family: 'LXGW WenKai', 'Noto Serif SC', serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  font-weight: 500;
  box-shadow: 0 3px 12px rgba(232, 200, 107, 0.28);
  align-self: flex-start;
  width: fit-content;
}

/* 文献出处 */
.xt-references {
  margin: 36px 0 24px;
  padding: 22px;
  background: rgba(35, 30, 25, 0.55);
  border: 1px solid rgba(232, 200, 107, 0.18);
  border-radius: 14px;
}

.xt-references-title {
  margin: 0 0 14px 0;
  font-family: 'LXGW WenKai', 'Noto Serif SC', serif;
  font-size: 0.95rem;
  color: #e8c86b;
  letter-spacing: 0.18em;
  font-weight: 400;
  position: relative;
  padding-left: 14px;
}

.xt-references-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: linear-gradient(180deg, #e8c86b, transparent);
  border-radius: 2px;
}

.xt-references-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.xt-references-item {
  position: relative;
  padding-left: 18px;
}

.xt-references-item::before {
  content: "◇";
  position: absolute;
  left: 0;
  top: 1px;
  color: rgba(232, 200, 107, 0.6);
  font-size: 0.72rem;
}

.xt-references-link {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.85rem;
  line-height: 1.65;
  letter-spacing: 0.04em;
  color: rgba(232, 200, 107, 0.88);
  text-decoration: none;
  border-bottom: 1px dashed rgba(232, 200, 107, 0.35);
  word-break: break-word;
}

.xt-references-link:active {
  color: #f5dfa0;
}
