/* 禁漫天堂 19 — 纸感浅色 + 左侧导航，响应式 */
:root {
  --rx-bg: #f3f1eb;
  --rx-paper: #fffef9;
  --rx-ink: #1a202c;
  --rx-muted: #5a6578;
  --rx-line: #e2ddd4;
  --rx-navy: #1a365d;
  --rx-blue: #2c5282;
  --rx-accent: #c05621;
  --rx-max: 1120px;
  --rx-r: 14px;
  --rx-font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--rx-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--rx-ink);
  background: var(--rx-bg);
}

a {
  color: var(--rx-blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.rx-skip {
  position: absolute;
  left: -9999px;
  background: var(--rx-navy);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.rx-skip:focus {
  left: 8px;
  top: 8px;
}

/* 外壳：移动端侧栏变顶栏滚动 */
.rx-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .rx-app {
    grid-template-columns: 210px 1fr;
    max-width: var(--rx-max);
    margin-inline: auto;
    border-left: 1px solid var(--rx-line);
    border-right: 1px solid var(--rx-line);
    background: var(--rx-paper);
    box-shadow: 0 0 40px rgba(26, 54, 93, 0.06);
  }
}

.rx-stage {
  min-width: 0;
}

/* 侧栏 */
.rx-side {
  background: var(--rx-navy);
  color: #e8edf5;
  padding: 0;
}

@media (max-width: 899px) {
  .rx-side {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 3px solid var(--rx-accent);
  }
}

.rx-side-inner {
  padding: 18px 16px 20px;
}

@media (min-width: 900px) {
  .rx-side-inner {
    position: sticky;
    top: 0;
    min-height: 100vh;
    padding: 24px 18px;
  }
}

.rx-logo {
  margin-bottom: 18px;
}

.rx-logo strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
}

.rx-logo span {
  display: block;
  font-size: 0.72rem;
  opacity: 0.85;
  margin-top: 4px;
  line-height: 1.4;
}

.rx-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

@media (min-width: 900px) {
  .rx-nav {
    flex-direction: column;
    overflow: visible;
    gap: 4px;
  }
}

.rx-nav a {
  flex: 0 0 auto;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
  text-decoration: none;
  white-space: nowrap;
}
.rx-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}
.rx-nav a.on {
  background: #fff;
  color: var(--rx-navy);
}

/* 主区 */
.rx-main {
  padding: 0 18px 40px;
}

@media (min-width: 900px) {
  .rx-main {
    padding: 28px 32px 48px;
  }
}

.rx-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 0 20px;
  border-bottom: 1px solid var(--rx-line);
  margin-bottom: 22px;
}

.rx-topbar h1 {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 800;
  color: var(--rx-navy);
}

.rx-topbar p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--rx-muted);
  flex: 1 1 100%;
}

@media (min-width: 600px) {
  .rx-topbar p {
    flex: 1 1 auto;
  }
}

.rx-chip {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e8eef5;
  color: var(--rx-blue);
}

/* 头图 + 叠卡 */
.rx-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 26px;
}

@media (min-width: 820px) {
  .rx-hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
  }
}

.rx-hero-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  line-height: 1.25;
  color: var(--rx-navy);
}

.rx-hero-copy .rx-lead {
  margin: 0 0 16px;
  color: var(--rx-muted);
  font-size: 0.95rem;
}

.rx-hero-copy .rx-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rx-mini span {
  font-size: 0.78rem;
  padding: 6px 10px;
  background: var(--rx-paper);
  border: 1px solid var(--rx-line);
  border-radius: 8px;
  color: var(--rx-muted);
}

.rx-hero-fig {
  margin: 0;
  border-radius: var(--rx-r);
  overflow: hidden;
  border: 1px solid var(--rx-line);
  box-shadow: 0 16px 40px rgba(26, 54, 93, 0.1);
  background: var(--rx-paper);
}

@media (min-width: 820px) {
  .rx-hero-fig {
    margin-bottom: -24px;
    position: relative;
    z-index: 1;
  }
}

.rx-hero-fig img {
  border-radius: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.rx-hero-fig figcaption {
  padding: 10px 12px;
  font-size: 0.78rem;
  color: var(--rx-muted);
  border-top: 1px solid var(--rx-line);
}

/* 正文卡片 */
.rx-panel {
  background: var(--rx-paper);
  border: 1px solid var(--rx-line);
  border-radius: var(--rx-r);
  padding: 22px 20px 24px;
  margin-bottom: 28px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

@media (min-width: 820px) {
  .rx-panel {
    margin-top: 8px;
  }
}

.rx-k {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--rx-accent);
  margin-bottom: 8px;
}

.rx-panel h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: var(--rx-navy);
}

.rx-article {
  font-size: 0.95rem;
  color: #2d3748;
}

.rx-article p {
  margin: 0 0 1em;
  text-align: justify;
  text-justify: inter-ideograph;
}

.rx-article p:last-of-type {
  margin-bottom: 0;
}

.rx-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.rx-tags span {
  font-size: 0.74rem;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f0ebe3;
  border: 1px solid var(--rx-line);
  color: var(--rx-muted);
}

/* 分区标题 */
.rx-sec-h {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--rx-navy);
}

.rx-sec-p {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--rx-muted);
}

/* 卡片栅格 */
.rx-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 560px) {
  .rx-grid.g2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 860px) {
  .rx-grid.g3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rx-card {
  background: var(--rx-paper);
  border: 1px solid var(--rx-line);
  border-radius: var(--rx-r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.2s;
}
.rx-card:hover {
  box-shadow: 0 8px 24px rgba(26, 54, 93, 0.08);
}

.rx-card a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rx-card a:hover h4 {
  color: var(--rx-blue);
}

.rx-card img {
  border-radius: 0;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.rx-card .in {
  padding: 12px 14px 16px;
  flex: 1;
}

.rx-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
  background: #feebc8;
  color: #9c4221;
  margin-bottom: 6px;
}

.rx-card h4 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.rx-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--rx-muted);
}

/* 内页 */
.rx-crumb {
  font-size: 0.84rem;
  color: var(--rx-muted);
  padding: 8px 0 12px;
}

.rx-page-title {
  margin: 0 0 10px;
  font-size: clamp(1.15rem, 2.8vw, 1.5rem);
  color: var(--rx-navy);
}

.rx-page-sum {
  margin: 0 0 18px;
  color: var(--rx-muted);
  font-size: 0.92rem;
}

.rx-fig {
  border-radius: var(--rx-r);
  overflow: hidden;
  border: 1px solid var(--rx-line);
  margin-bottom: 20px;
  background: var(--rx-paper);
}

.rx-fig img {
  border-radius: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.rx-fig figcaption {
  padding: 8px 12px;
  font-size: 0.76rem;
  color: var(--rx-muted);
}

.rx-list {
  border: 1px solid var(--rx-line);
  border-radius: var(--rx-r);
  overflow: hidden;
  background: var(--rx-paper);
}

.rx-li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rx-line);
}

@media (min-width: 600px) {
  .rx-li {
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }
}

.rx-li:last-child {
  border-bottom: 0;
}

.rx-li a.n {
  font-weight: 700;
  color: var(--rx-ink);
  text-decoration: none;
}
.rx-li a.n:hover {
  color: var(--rx-blue);
}

.rx-li .d {
  font-size: 0.82rem;
  color: var(--rx-muted);
}

.rx-li .f {
  font-size: 0.75rem;
  color: var(--rx-accent);
  font-weight: 700;
  white-space: nowrap;
}

.rx-prose {
  font-size: 0.94rem;
  color: #2d3748;
  max-width: 680px;
}

.rx-prose p {
  margin: 0 0 1em;
}

.rx-aside {
  background: #f7f2ea;
  border: 1px solid var(--rx-line);
  border-radius: var(--rx-r);
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--rx-muted);
  margin-bottom: 18px;
}

.rx-aside h2 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--rx-navy);
}

.rx-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 760px) {
  .rx-split.s2 {
    grid-template-columns: 260px 1fr;
  }
}

.rx-foot {
  border-top: 1px solid var(--rx-line);
  padding: 20px 18px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--rx-muted);
  background: #ebe8e0;
}

