/* ==========================================================================
   光影流年 · 影院风（默认暗色）  portal.css
   午夜蓝 #0b1220 + 猩红 #e03e3e + 琥珀 #f0b429
   ========================================================================== */

:root {
  --rl-bg: #080d17;
  --rl-bg2: #0d1524;
  --rl-card: #131c2d;
  --rl-card2: #182238;
  --rl-line: #1e2b41;
  --rl-text: #e9eff8;
  --rl-text2: #b9c6d9;
  --rl-muted: #7d8da5;
  --rl-red: #e03e3e;
  --rl-red-d: #b52d2d;
  --rl-gold: #f0b429;
  --rl-r: 10px;
}

html[data-theme="light"] {
  --rl-bg: #f5f6f9;
  --rl-bg2: #eceef4;
  --rl-card: #ffffff;
  --rl-card2: #f7f8fb;
  --rl-line: #e3e7ef;
  --rl-text: #16202e;
  --rl-text2: #3d4c62;
  --rl-muted: #6b7a90;
}

* {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--rl-bg);
  color: var(--rl-text);
  font-size: 15.5px;
  line-height: 1.8;
  -webkit-text-size-adjust: none;
}

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

img {
  max-width: 100%;
}

.hide {
  display: none !important;
}

/* ------------------------------ 顶部栏 ------------------------------ */
.rl-top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(8, 13, 23, .92);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--rl-line);
}

html[data-theme="light"] .rl-top {
  background: rgba(255, 255, 255, .94);
}

.rl-top.scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
}

.rl-top-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.rl-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}

.rl-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 17px;
  color: var(--rl-red);
  background: rgba(224, 62, 62, .12);
  border-radius: 50%;
}

.rl-brand-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .8px;
  color: var(--rl-text);
  white-space: nowrap;
}

.rl-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 6px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.rl-nav a {
  position: relative;
  font-size: 14.5px;
  color: var(--rl-text2);
  white-space: nowrap;
  padding: 6px 0;
  transition: color .2s;
}

.rl-nav a:hover {
  color: var(--rl-red);
}

.rl-search {
  display: flex;
  flex: 0 0 auto;
}

.rl-search input {
  width: 200px;
  height: 36px;
  padding: 0 14px;
  font-size: 13.5px;
  color: var(--rl-text);
  background: var(--rl-card);
  border: 1px solid var(--rl-line);
  border-right: 0;
  border-radius: 18px 0 0 18px;
  outline: none;
}

.rl-search input::placeholder {
  color: var(--rl-muted);
}

.rl-search input:focus {
  border-color: var(--rl-red);
}

.rl-search button {
  height: 36px;
  padding: 0 16px;
  font-size: 13.5px;
  color: #fff;
  background: var(--rl-red);
  border: 0;
  border-radius: 0 18px 18px 0;
  cursor: pointer;
  transition: background .2s;
}

.rl-search button:hover {
  background: var(--rl-red-d);
}

.rl-theme {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--rl-text2);
  background: var(--rl-card);
  border: 1px solid var(--rl-line);
  border-radius: 50%;
  cursor: pointer;
  transition: all .2s;
}

.rl-theme:hover {
  color: var(--rl-gold);
  border-color: var(--rl-gold);
}

.rl-menu-btn {
  display: none;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0 6px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.rl-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--rl-text2);
  border-radius: 1px;
}

/* ------------------------------ 抽屉 ------------------------------ */
.rl-drawer {
  display: none;
  position: fixed;
  top: 66px;
  left: 0;
  right: 0;
  z-index: 59;
  background: var(--rl-bg2);
  border-bottom: 1px solid var(--rl-line);
  padding: 16px 20px 20px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .5);
  max-height: calc(100vh - 66px);
  overflow-y: auto;
}

.rl-drawer.open {
  display: block;
}

.rl-drawer-search {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.rl-drawer-search input {
  flex: 1;
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--rl-text);
  background: var(--rl-card);
  border: 1px solid var(--rl-line);
  border-radius: 20px;
  outline: none;
}

.rl-drawer-search button {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
  color: #fff;
  background: var(--rl-red);
  border: 0;
  border-radius: 20px;
}

.rl-drawer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--rl-line);
}

.rl-drawer-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--rl-text);
}

.rl-drawer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rl-drawer-cats a {
  font-size: 13px;
  color: var(--rl-text2);
  background: var(--rl-card);
  border: 1px solid var(--rl-line);
  border-radius: 16px;
  padding: 5px 12px;
}

/* ------------------------------ HERO ------------------------------ */
.rl-hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 40px;
  background: var(--rl-bg2);
}

.rl-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(224, 62, 62, .28), transparent 70%),
    radial-gradient(700px 380px at 88% 0%, rgba(56, 100, 200, .22), transparent 72%),
    linear-gradient(180deg, #0d1524, #080d17);
}

html[data-theme="light"] .rl-hero-bg {
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(224, 62, 62, .16), transparent 70%),
    radial-gradient(700px 380px at 88% 0%, rgba(56, 100, 200, .12), transparent 72%),
    linear-gradient(180deg, #eceef4, #f5f6f9);
}

.rl-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.rl-hero-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.rl-hero-kicker {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 2px;
  color: var(--rl-red);
  border-left: 3px solid var(--rl-red);
  padding-left: 10px;
  margin-bottom: 14px;
}

.rl-hero-title {
  margin: 0 0 12px;
  font-size: 38px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--rl-text);
}

.rl-hero-sub {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--rl-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 海报墙 */
.rl-hero-wall {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

/* ------------------------------ 海报组件 ------------------------------ */
.rl-poster {
  display: block;
}

.rl-poster-box {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: var(--rl-r);
  overflow: hidden;
  background: linear-gradient(145deg, #1b2740, #131c2d 60%, #0f1828);
  border: 1px solid var(--rl-line);
  transition: transform .28s, box-shadow .28s, border-color .28s;
}

html[data-theme="light"] .rl-poster-box {
  background: linear-gradient(145deg, #dfe5f0, #eef1f7 60%, #e6eaf2);
}

.rl-poster:hover .rl-poster-box {
  transform: translateY(-4px);
  border-color: rgba(224, 62, 62, .55);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .5), 0 0 0 1px rgba(224, 62, 62, .25);
}

.rl-poster-box img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s;
}

.rl-poster:hover .rl-poster-box img {
  transform: scale(1.05);
}

/* 无图时的字母占位 */
.rl-poster-mono {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 2px;
  color: rgba(233, 239, 248, .5);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .028) 0 2px, transparent 2px 12px),
    linear-gradient(145deg, #1b2740, #131c2d 60%, #0f1828);
  text-align: center;
  padding: 10px;
  text-transform: uppercase;
}

html[data-theme="light"] .rl-poster-mono {
  color: rgba(22, 32, 46, .42);
  background:
    repeating-linear-gradient(135deg, rgba(0, 0, 0, .035) 0 2px, transparent 2px 12px),
    linear-gradient(145deg, #dfe5f0, #eef1f7 60%, #e6eaf2);
}

.rl-poster-info {
  display: block;
  padding: 10px 2px 0;
}

.rl-poster-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--rl-text2);
}

.rl-poster:hover .rl-poster-title {
  color: var(--rl-text);
}

.rl-poster-meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--rl-muted);
}

/* 首图更大 */
.rl-poster-lead .rl-poster-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--rl-text);
}

.rl-poster-lead .rl-poster-box {
  border-color: rgba(224, 62, 62, .45);
  box-shadow: 0 0 0 1px rgba(224, 62, 62, .18);
}

.rl-poster-lead .rl-poster-mono {
  font-size: 40px;
}

/* ------------------------------ 容器 ------------------------------ */
.rl-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 26px 24px 44px;
}

.rl-shell-article {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.rl-shell-article .rl-main {
  flex: 1 1 auto;
  min-width: 0;
}

.rl-aside {
  flex: 0 0 300px;
  width: 300px;
}

.rl-aside-sticky {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ------------------------------ 区块 ------------------------------ */
.rl-section {
  margin-bottom: 34px;
}

.rl-section-inline {
  margin-top: 34px;
}

.rl-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rl-line);
  flex-wrap: wrap;
}

.rl-section-title {
  position: relative;
  margin: 0;
  padding-left: 14px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .3px;
  color: var(--rl-text);
}

.rl-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: var(--rl-red);
  border-radius: 2px;
}

.rl-section-more,
.rl-section-hint {
  font-size: 13px;
  color: var(--rl-muted);
}

.rl-section-more:hover {
  color: var(--rl-red);
}

/* tabs */
.rl-tabs {
  display: flex;
  gap: 6px;
}

.rl-tab {
  padding: 6px 16px;
  font-size: 13.5px;
  color: var(--rl-text2);
  background: var(--rl-card);
  border: 1px solid var(--rl-line);
  border-radius: 16px;
  cursor: pointer;
  transition: all .2s;
}

.rl-tab:hover {
  color: var(--rl-text);
  border-color: var(--rl-red);
}

.rl-tab.on {
  color: #fff;
  background: var(--rl-red);
  border-color: var(--rl-red);
}

.rl-tabpanel {
  display: none;
}

.rl-tabpanel.on {
  display: block;
}

/* ------------------------------ 榜单 ------------------------------ */
.rl-rank {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
}

.rl-rank li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rl-line);
  min-width: 0;
}

.rl-rank .no {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--rl-muted);
  background: var(--rl-card);
  border-radius: 4px;
}

.rl-rank .no.hot {
  color: #fff;
  background: var(--rl-red);
}

.rl-rank a {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  color: var(--rl-text2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rl-rank a:hover {
  color: var(--rl-red);
}

.rl-rank-date {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--rl-muted);
}

.rl-rank-sm {
  grid-template-columns: minmax(0, 1fr);
}

.rl-rank-sm li {
  padding: 8px 0;
}

.rl-rank-sm a {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ------------------------------ 海报网格 ------------------------------ */
.rl-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px 16px;
}

.rl-grid-sm {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.rl-card {
  display: block;
  min-width: 0;
}

.rl-card-box {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(145deg, #1b2740, #131c2d 60%, #0f1828);
  border: 1px solid var(--rl-line);
  transition: all .26s;
}

html[data-theme="light"] .rl-card-box {
  background: linear-gradient(145deg, #dfe5f0, #eef1f7 60%, #e6eaf2);
}

.rl-card:hover .rl-card-box {
  transform: translateY(-3px);
  border-color: rgba(224, 62, 62, .5);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .45);
}

.rl-card-box img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s;
}

.rl-card:hover .rl-card-box img {
  transform: scale(1.05);
}

.rl-card-box .rl-poster-mono {
  font-size: 26px;
}

.rl-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 9px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--rl-text2);
}

.rl-card:hover .rl-card-title {
  color: var(--rl-text);
}

.rl-card-meta {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--rl-muted);
}

/* ------------------------------ 横向卡片带 ------------------------------ */
.rl-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
}

.rl-rail::-webkit-scrollbar {
  height: 5px;
}

.rl-rail::-webkit-scrollbar-thumb {
  background: var(--rl-line);
  border-radius: 3px;
}

.rl-rail-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  display: flex;
  background: var(--rl-card);
  border: 1px solid var(--rl-line);
  border-radius: var(--rl-r);
  padding: 18px;
  transition: all .24s;
}

.rl-rail-card:hover {
  border-color: rgba(224, 62, 62, .5);
  transform: translateY(-2px);
}

.rl-rail-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.rl-rail-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--rl-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rl-rail-card:hover .rl-rail-title {
  color: var(--rl-red);
}

.rl-rail-desc {
  font-size: 13px;
  line-height: 1.72;
  color: var(--rl-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rl-rail-meta {
  margin-top: auto;
  font-size: 12px;
  color: var(--rl-muted);
}

/* ------------------------------ 分类墙 ------------------------------ */
.rl-catwall {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rl-catpill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  font-size: 13.5px;
  color: var(--rl-text2);
  background: var(--rl-card);
  border: 1px solid var(--rl-line);
  border-radius: 20px;
  transition: all .2s;
}

.rl-catpill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rl-red);
  opacity: .55;
}

.rl-catpill:hover {
  color: #fff;
  background: var(--rl-red);
  border-color: var(--rl-red);
}

.rl-catpill:hover::before {
  background: #fff;
  opacity: 1;
}

/* ------------------------------ 文章页 ------------------------------ */
.rl-crumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--rl-muted);
  margin-bottom: 16px;
}

.rl-crumb a:hover {
  color: var(--rl-red);
}

.rl-article {
  background: var(--rl-card);
  border: 1px solid var(--rl-line);
  border-radius: var(--rl-r);
  padding: 30px 34px;
}

.rl-art-head {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rl-line);
  margin-bottom: 22px;
}

.rl-art-cat {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--rl-red);
  background: rgba(224, 62, 62, .12);
  border-radius: 4px;
  padding: 2px 10px;
  margin-bottom: 12px;
}

.rl-art-cat:hover {
  color: #fff;
  background: var(--rl-red);
}

.rl-art-title {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.42;
  font-weight: 800;
  letter-spacing: -.4px;
  color: var(--rl-text);
}

.rl-art-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--rl-muted);
}

.rl-dot {
  color: var(--rl-line);
}

/* 看点 */
.rl-keypoints {
  margin: 0 0 24px;
  padding: 18px 22px;
  background: var(--rl-bg2);
  border: 1px solid var(--rl-line);
  border-left: 3px solid var(--rl-red);
  border-radius: 0 var(--rl-r) var(--rl-r) 0;
}

.rl-keypoints-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--rl-text);
  margin-bottom: 10px;
}

.rl-keypoints-icon {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  background: var(--rl-red);
  border-radius: 3px;
  padding: 1px 7px;
}

.rl-keypoints-list {
  margin: 0;
  padding-left: 19px;
}

.rl-keypoints-list li {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--rl-text2);
  margin-bottom: 3px;
}

/* 正文 */
.rl-content {
  font-size: 16.5px;
  line-height: 2;
  color: var(--rl-text2);
  overflow-wrap: break-word;
  word-break: break-word;
}

.rl-content p {
  margin: 0 0 1.15em;
}

.rl-content h2 {
  position: relative;
  margin: 1.9em 0 .8em;
  padding-left: 13px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--rl-text);
}

.rl-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .4em;
  width: 4px;
  height: 1em;
  background: var(--rl-red);
  border-radius: 2px;
}

.rl-content h3 {
  margin: 1.5em 0 .7em;
  font-size: 18px;
  font-weight: 700;
  color: var(--rl-text);
}

.rl-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5em auto;
  border-radius: 8px;
  cursor: zoom-in;
}

.rl-content a {
  color: var(--rl-red);
  border-bottom: 1px solid rgba(224, 62, 62, .35);
}

.rl-content blockquote {
  margin: 1.4em 0;
  padding: 12px 18px;
  background: var(--rl-bg2);
  border-left: 3px solid var(--rl-red);
  border-radius: 0 6px 6px 0;
  color: var(--rl-muted);
}

.rl-content ul,
.rl-content ol {
  margin: 0 0 1.15em;
  padding-left: 1.6em;
}

.rl-content li {
  margin-bottom: .45em;
}

.rl-content code {
  background: var(--rl-bg2);
  color: var(--rl-gold);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: .9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
}

.rl-content pre {
  background: #05090f;
  color: #d8e2f0;
  padding: 15px 17px;
  border-radius: 6px;
  overflow-x: auto;
  max-width: 100%;
  font-size: 13.5px;
  line-height: 1.7;
}

.rl-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  white-space: pre;
}

.rl-content table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
}

.rl-content table th,
.rl-content table td {
  border: 1px solid var(--rl-line);
  padding: 8px 12px;
  font-size: 14.5px;
  white-space: nowrap;
}

.rl-content table th {
  background: var(--rl-bg2);
  font-weight: 700;
}

.rl-art-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--rl-line);
}

.rl-art-tags a {
  font-size: 12.5px;
  color: var(--rl-text2);
  background: var(--rl-bg2);
  border: 1px solid var(--rl-line);
  border-radius: 4px;
  padding: 3px 10px;
}

.rl-art-tags a:hover {
  color: #fff;
  background: var(--rl-red);
  border-color: var(--rl-red);
}

/* 上下篇 */
.rl-prevnext {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.rl-prevnext-link {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 15px 18px;
  background: var(--rl-card);
  border: 1px solid var(--rl-line);
  border-radius: var(--rl-r);
  transition: all .2s;
}

.rl-prevnext-link:hover {
  border-color: var(--rl-red);
}

.rl-prevnext-label {
  font-size: 12px;
  color: var(--rl-muted);
}

.rl-prevnext-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--rl-text2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rl-prevnext-link:hover .rl-prevnext-title {
  color: var(--rl-text);
}

.rl-prevnext-link.is-empty {
  border-style: dashed;
  background: transparent;
  cursor: default;
}

.rl-prevnext-link.is-empty .rl-prevnext-title {
  color: var(--rl-muted);
  font-weight: 400;
}

/* 侧栏 */
.rl-side-card {
  background: var(--rl-card);
  border: 1px solid var(--rl-line);
  border-radius: var(--rl-r);
  padding: 18px;
}

.rl-side-title {
  display: flex;
  align-items: center;
  margin: 0 0 14px;
  padding-left: 11px;
  position: relative;
  font-size: 15px;
  font-weight: 700;
  color: var(--rl-text);
}

.rl-side-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 13px;
  background: var(--rl-red);
  border-radius: 2px;
}

.rl-toc {
  max-height: 44vh;
  overflow-y: auto;
  scrollbar-width: thin;
}

.rl-toc::-webkit-scrollbar {
  width: 4px;
}

.rl-toc::-webkit-scrollbar-thumb {
  background: var(--rl-line);
  border-radius: 2px;
}

.rl-toc a {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: var(--rl-text2);
  padding: 5px 0 5px 10px;
  border-left: 2px solid transparent;
  transition: all .2s;
}

.rl-toc a.lv3 {
  padding-left: 21px;
  font-size: 12.5px;
  color: var(--rl-muted);
}

.rl-toc a:hover {
  color: var(--rl-red);
}

.rl-toc a.on {
  color: var(--rl-red);
  border-left-color: var(--rl-red);
  font-weight: 600;
}

.rl-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.rl-cats a {
  font-size: 12.5px;
  color: var(--rl-text2);
  background: var(--rl-bg2);
  border: 1px solid var(--rl-line);
  border-radius: 14px;
  padding: 4px 11px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all .2s;
}

.rl-cats a:hover {
  color: #fff;
  background: var(--rl-red);
  border-color: var(--rl-red);
}

/* ------------------------------ 分页 ------------------------------ */
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin-top: 28px;
}

.pager .page-link {
  display: inline-block;
  width: auto;
  min-width: 40px;
  height: 40px;
  line-height: 38px;
  text-align: center;
  padding: 0 13px;
  white-space: nowrap;
  flex: 0 0 auto;
  font-size: 13.5px;
  color: var(--rl-text2);
  background: var(--rl-card);
  border: 1px solid var(--rl-line);
  border-radius: 20px;
  transition: all .2s;
}

.pager .page-link:hover {
  color: var(--rl-red);
  border-color: var(--rl-red);
}

.pager .page-link.current {
  color: #fff;
  background: var(--rl-red);
  border-color: var(--rl-red);
  font-weight: 700;
}

/* ------------------------------ 列表页头 ------------------------------ */
.rl-page-head {
  padding: 4px 0 20px;
  border-bottom: 1px solid var(--rl-line);
  margin-bottom: 24px;
}

.rl-page-head h1 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 800;
  color: var(--rl-text);
}

.rl-page-head p {
  margin: 0;
  font-size: 13.5px;
  color: var(--rl-muted);
}

/* ------------------------------ 面板 / 标签云 / 错误页 ------------------------------ */
.rl-panel {
  background: var(--rl-card);
  border: 1px solid var(--rl-line);
  border-radius: var(--rl-r);
  padding: 26px 30px;
}

.rl-tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rl-tagpill {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13.5px;
  color: var(--rl-text2);
  background: var(--rl-bg2);
  border: 1px solid var(--rl-line);
  border-radius: 18px;
  transition: all .2s;
}

.rl-tagpill:hover {
  color: #fff;
  background: var(--rl-red);
  border-color: var(--rl-red);
}

.rl-empty {
  margin: 0;
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
  color: var(--rl-muted);
}

.rl-error {
  max-width: 620px;
  margin: 60px auto;
  padding: 48px 32px;
  text-align: center;
  background: var(--rl-card);
  border: 1px solid var(--rl-line);
  border-radius: 14px;
}

.rl-error-code {
  font-size: 62px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 2px;
  color: var(--rl-red);
  opacity: .3;
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
}

.rl-error h1 {
  margin: 0 0 12px;
  font-size: 23px;
  font-weight: 800;
  color: var(--rl-text);
}

.rl-error p {
  margin: 0 0 26px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--rl-muted);
}

.rl-error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.rl-btn {
  display: inline-block;
  padding: 10px 26px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 22px;
  transition: all .2s;
}

.rl-btn-primary {
  color: #fff;
  background: var(--rl-red);
}

.rl-btn-primary:hover {
  background: var(--rl-red-d);
}

.rl-btn-plain {
  color: var(--rl-text2);
  background: var(--rl-bg2);
  border: 1px solid var(--rl-line);
}

.rl-btn-plain:hover {
  color: var(--rl-red);
  border-color: var(--rl-red);
}

/* ------------------------------ 留言板 ------------------------------ */
.guestbook-form {
  max-width: 720px;
  margin: 0 auto;
}

.guestbook-form .form-item {
  display: flex;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.guestbook-form .form-label {
  flex: 0 0 92px;
  padding-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rl-text2);
  text-align: right;
}

.guestbook-form .form-value {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

.guestbook-form input[type="text"],
.guestbook-form input[type="number"],
.guestbook-form input[type="email"],
.guestbook-form input[type="file"],
.guestbook-form textarea,
.guestbook-form select {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  font-size: 14.5px;
  color: var(--rl-text);
  background: var(--rl-bg2);
  border: 1px solid var(--rl-line);
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  transition: border-color .2s;
}

.guestbook-form input::placeholder,
.guestbook-form textarea::placeholder {
  color: var(--rl-muted);
}

.guestbook-form input:focus,
.guestbook-form textarea:focus,
.guestbook-form select:focus {
  border-color: var(--rl-red);
}

.guestbook-form textarea {
  resize: vertical;
  line-height: 1.75;
}

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

.rl-captcha-row input[type="text"] {
  flex: 1 1 auto;
}

.guestbook-form .form-captcha {
  flex: 0 0 auto;
  width: 116px;
  height: 42px;
  border: 1px solid var(--rl-line);
  border-radius: 8px;
  cursor: pointer;
  object-fit: cover;
}

.guestbook-form .form-control {
  padding-left: 108px;
  margin-top: 10px;
}

.guestbook-form .form-btn {
  min-width: 150px;
  height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--rl-red);
  border: 0;
  border-radius: 22px;
  cursor: pointer;
  transition: background .2s;
}

.guestbook-form .form-btn:hover {
  background: var(--rl-red-d);
}

/* ------------------------------ 页脚 ------------------------------ */
.rl-foot {
  background: #05090f;
  color: #7d8da5;
  padding-top: 42px;
  border-top: 1px solid var(--rl-line);
}

html[data-theme="light"] .rl-foot {
  background: #eceef4;
  color: #6b7a90;
}

.rl-foot-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
}

.rl-foot-col h4 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--rl-text);
}

.rl-foot-col p {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: var(--rl-muted);
}

.rl-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.rl-foot-links a {
  font-size: 13px;
  color: var(--rl-muted);
  transition: color .2s;
}

.rl-foot-links a:hover {
  color: var(--rl-red);
}

.rl-fl-more {
  margin-top: 12px;
  padding: 3px 11px;
  font-size: 12px;
  color: var(--rl-muted);
  background: transparent;
  border: 1px solid var(--rl-line);
  border-radius: 14px;
  cursor: pointer;
  transition: all .2s;
}

.rl-fl-more:hover {
  color: var(--rl-red);
  border-color: var(--rl-red);
}

.rl-foot-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--rl-muted);
  border-top: 1px solid var(--rl-line);
}

/* ------------------------------ 回到顶部 ------------------------------ */
.rl-totop {
  position: fixed;
  right: 26px;
  bottom: 30px;
  z-index: 40;
  width: 44px;
  height: 44px;
  font-size: 18px;
  color: #fff;
  background: var(--rl-red);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 8px 22px rgba(224, 62, 62, .4);
  transition: all .25s;
}

.rl-totop.show {
  opacity: 1;
  visibility: visible;
}

.rl-totop:hover {
  background: var(--rl-gold);
  box-shadow: 0 8px 22px rgba(240, 180, 41, .4);
}

/* ------------------------------ 灯箱 ------------------------------ */
.rl-viewer {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3, 6, 11, .94);
}

.rl-viewer.open {
  display: flex;
}

.rl-viewer img {
  max-width: 94vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.rl-viewer .close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  font-size: 22px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media screen and (max-width: 1240px) {
  .rl-grid,
  .rl-grid-sm {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .rl-hero-wall {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
  }
}

@media screen and (max-width: 1040px) {
  .rl-shell-article {
    flex-direction: column;
  }

  .rl-aside {
    width: 100%;
    flex: 1 1 auto;
  }

  .rl-aside-sticky {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rl-grid,
  .rl-grid-sm {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .rl-hero-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rl-hero-title {
    font-size: 30px;
  }

  .rl-foot-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

@media screen and (max-width: 760px) {
  .rl-grid,
  .rl-grid-sm {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .rl-hero-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rl-rank {
    grid-template-columns: minmax(0, 1fr);
  }

  .rl-article {
    padding: 22px 18px;
  }

  .rl-art-title {
    font-size: 22px;
  }

  .rl-content {
    font-size: 16px;
  }

  .rl-aside-sticky {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media screen and (max-width: 680px) {
  .rl-top-inner {
    height: 56px;
    padding: 0 14px;
    gap: 10px;
  }

  .rl-menu-btn {
    display: flex;
  }

  .rl-nav,
  .rl-search {
    display: none;
  }

  .rl-brand-text {
    font-size: 17px;
  }

  .rl-drawer {
    top: 56px;
  }

  .rl-theme {
    margin-left: auto;
    width: 34px;
    height: 34px;
  }

  .rl-hero {
    padding: 26px 0 26px;
  }

  .rl-hero-inner,
  .rl-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .rl-hero-title {
    font-size: 25px;
  }

  .rl-hero-wall {
    gap: 10px;
  }

  .rl-poster-lead .rl-poster-title {
    font-size: 15px;
  }

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

  .rl-card-box .rl-poster-mono {
    font-size: 22px;
  }

  .rl-rail-card {
    flex: 0 0 84%;
  }

  .rl-section-title {
    font-size: 18px;
  }

  .rl-prevnext {
    grid-template-columns: minmax(0, 1fr);
  }

  .rl-panel {
    padding: 18px 16px;
  }

  .rl-error {
    margin: 30px 14px;
    padding: 32px 20px;
  }

  .rl-error-code {
    font-size: 46px;
  }

  .guestbook-form .form-item {
    flex-direction: column;
    gap: 6px;
  }

  .guestbook-form .form-label {
    flex: none;
    width: 100%;
    text-align: left;
    padding-top: 0;
  }

  .guestbook-form .form-control {
    padding-left: 0;
  }

  .rl-totop {
    right: 14px;
    bottom: 18px;
    width: 40px;
    height: 40px;
  }
}
