@charset 'UTF-8';

/**
 * readnovel 小说百科页面样式
 * 布局风格：封面优先 + 探索感，有别于 hongxiu(左导航) 和 xs8(顶部tab+网格)
 * 包含：首页、频道页、详情页
 */

/**
 * @author yangye
 * @design xurui;
 */

/**
 * @author yangye
 * @design xurui;
 */

/* 居中容器 */

/*边框*/

/*下边距 默认mb就是10px*/

/* 不折行截字 */

/* 折行截字 */

/* 字号22的标题 - 调整行高 */

/* 嵌套小三角 */

/* 实体小三角 */

/* 过渡动画 默认0.3秒 */

/* 平面书封hover放大到1.1倍 */

/* 父容器清浮动 */

/* 标题下边框线 */

/* =============================================
   通用
   ============================================= */

.rn-baike-wrap {
  padding: 24px 0 40px;
}

/* 封面懒加载占位 */

.rn-cover-placeholder {
  background: linear-gradient(135deg, #f5f5f5 25%, #ececec 50%, #f5f5f5 75%);
  background-size: 400% 400%;
}

/* =============================================
   首页 - 标签云 + 横向封面列表
   ============================================= */

/* 页头 banner 区 */

.rn-baike-hero {
  display: flex;
  margin-bottom: 24px;
  padding: 20px 28px;
  color: #fff;
  border-radius: 8px;
  background: var(--color-primary, #c8584a);
  align-items: center;
  justify-content: space-between;
}

.rn-baike-hero .rn-hero-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}

.rn-baike-hero .rn-hero-desc {
  font-size: 13px;
  margin-top: 4px;
  opacity: .85;
}

.rn-baike-hero .rn-hero-tags {
  display: flex;
  max-width: 560px;
  flex-wrap: wrap;
  gap: 8px;
}

.rn-baike-hero .rn-hero-tags a {
  font-size: 12px;
  display: inline-block;
  padding: 4px 12px;
  transition: background .2s;
  white-space: nowrap;
  color: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 20px;
}

.rn-baike-hero .rn-hero-tags a:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, .25);
}

.rn-baike-hero .rn-hero-tags a.act {
  font-weight: 600;
  color: var(--color-primary, #c8584a);
  border-color: #fff;
  background: #fff;
}

/* 分类区块 */

.rn-baike-section {
  margin-bottom: 28px;
}

.rn-section-head {
  display: flex;
  margin-bottom: 14px;
  align-items: center;
}

.rn-section-head .rn-section-line {
  width: 3px;
  height: 18px;
  margin-right: 10px;
  border-radius: 2px;
  background: var(--color-primary, #c8584a);
  flex-shrink: 0;
}

.rn-section-head .rn-section-name {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  flex: 1;
}

.rn-section-head .rn-section-name:hover {
  color: var(--color-primary, #c8584a);
}

.rn-section-head .rn-section-count {
  font-size: 12px;
  margin-left: 8px;
  color: #999;
}

.rn-section-head .rn-section-more {
  font-size: 12px;
  margin-left: auto;
  color: #999;
}

.rn-section-head .rn-section-more:hover {
  color: var(--color-primary, #c8584a);
}

/* 横向封面书架 */

.rn-shelf {
  display: flex;
  overflow-x: visible;
  gap: 12px;
}

.rn-shelf-item {
  width: 88px;
  cursor: pointer;
  flex: 0 0 auto;
}

.rn-shelf-item:hover .rn-shelf-img img {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}

.rn-shelf-item:hover .rn-shelf-title {
  color: var(--color-primary, #c8584a);
}

.rn-shelf-img {
  position: relative;
  overflow: hidden;
  width: 88px;
  height: 117px;
  margin-bottom: 6px;
  border-radius: 4px;
  background: #f0f0f0;
  /* 排名角标 */
}

.rn-shelf-img .rn-shelf-rank {
  font-size: 11px;
  font-weight: 700;
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  display: flex;
  width: 22px;
  height: 22px;
  color: #fff;
  border-bottom-right-radius: 4px;
  background: var(--color-primary, #c8584a);
  align-items: center;
  justify-content: center;
}

.rn-shelf-img .rn-shelf-rank.rank-1 {
  background: #e8471e;
}

.rn-shelf-img .rn-shelf-rank.rank-2 {
  background: #f07020;
}

.rn-shelf-img .rn-shelf-rank.rank-3 {
  background: #f0a020;
}

.rn-shelf-img img {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
  object-fit: cover;
}

.rn-shelf-title {
  font-size: 12px;
  line-height: 1.5;
  overflow: hidden;
  transition: color .2s;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #666;
}

/* 无封面时的文字列表（备选样式）*/

.rn-text-row {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.rn-text-item {
  display: flex;
  box-sizing: border-box;
  width: 25%;
  padding: 6px 0;
  align-items: center;
  gap: 6px;
}

.rn-text-item .rn-text-rank {
  font-size: 11px;
  font-weight: 600;
  display: flex;
  width: 18px;
  height: 18px;
  color: #999;
  border-radius: 3px;
  background: #e6e6e6;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.rn-text-item .rn-text-rank.rank-1 {
  color: #fff;
  background: #e8471e;
}

.rn-text-item .rn-text-rank.rank-2 {
  color: #fff;
  background: #f07020;
}

.rn-text-item .rn-text-rank.rank-3 {
  color: #fff;
  background: #f0a020;
}

.rn-text-item a {
  font-size: 13px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #666;
}

.rn-text-item a:hover {
  color: var(--color-primary, #c8584a);
}

/* =============================================
   频道页 - 顶部分类 banner + 双列大卡片
   ============================================= */

/* 分类 banner */

.rn-cat-banner {
  overflow: hidden;
  margin-bottom: 16px;
  padding: 0;
  border-radius: 8px;
  background: var(--sheet-background-bw-white);
}

.rn-cat-tabs-wrap {
  display: flex;
  overflow-x: auto;
  padding: 0 20px;
  border-bottom: 1px solid #e6e6e6;
  gap: 0;
}

.rn-cat-tabs-wrap::-webkit-scrollbar {
  display: none;
}

.rn-cat-tab {
  font-size: 14px;
  display: inline-block;
  margin-bottom: -1px;
  padding: 13px 16px;
  transition: color .15s;
  white-space: nowrap;
  color: #666;
  border-bottom: 2px solid transparent;
}

.rn-cat-tab:hover {
  color: var(--color-primary, #c8584a);
}

.rn-cat-tab.act {
  font-weight: 600;
  color: var(--color-primary, #c8584a);
  border-bottom-color: var(--color-primary, #c8584a);
}

.rn-cat-subtabs-wrap {
  display: flex;
  padding: 10px 20px;
  flex-wrap: wrap;
  gap: 8px;
}

.rn-cat-subtab {
  font-size: 12px;
  display: inline-block;
  padding: 3px 12px;
  transition: all .15s;
  color: #666;
  border: 1px solid #e6e6e6;
  border-radius: 20px;
}

.rn-cat-subtab:hover {
  color: var(--color-primary, #c8584a);
  border-color: var(--color-primary-light, #f7b8b1);
}

.rn-cat-subtab.act {
  font-weight: 600;
  color: #fff;
  border-color: var(--color-primary, #c8584a);
  background: var(--color-primary, #c8584a);
}

/* 双列大卡片 */

.rn-cat-main {
  padding-top: 8px;
}

.rn-card-grid {
  display: flex;
  margin: 0 -8px;
  flex-wrap: wrap;
}

.rn-card {
  box-sizing: border-box;
  width: 50%;
  margin-bottom: 16px;
  padding: 0 8px;
  cursor: pointer;
}

.rn-card:hover .rn-card-box {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
}

.rn-card:hover .rn-card-title a {
  color: var(--color-primary, #c8584a);
}

.rn-card-box {
  display: flex;
  padding: 14px;
  transition: box-shadow .2s, transform .2s;
  border-radius: 8px;
  background: var(--sheet-background-bw-white);
  gap: 14px;
}

.rn-card-cover {
  overflow: hidden;
  width: 72px;
  height: 96px;
  border-radius: 4px;
  background: #f0f0f0;
  flex-shrink: 0;
}

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

.rn-card-cover .rn-cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
}

.rn-card-info {
  min-width: 0;
  flex: 1;
}

.rn-card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 6px;
}

.rn-card-title a {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #1a1a1a;
}

.rn-card-summary {
  font-size: 12px;
  line-height: 1.7;
  display: -webkit-box;
  overflow: hidden;
  color: #999;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rn-card-meta {
  font-size: 12px;
  line-height: 1.6;
  overflow: hidden;
  margin-bottom: 6px;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #999;
}

.rn-card-meta .rn-card-author {
  margin-right: 8px;
}

.rn-card-time {
  font-size: 12px;
  line-height: 1.6;
  margin-top: 6px;
  color: #999;
}

/* 空态 */

.rn-empty {
  font-size: 14px;
  padding: 60px 0;
  text-align: center;
  color: #999;
}

/* =============================================
   详情页 - 沉浸式：封面 + 书籍信息面板 + 正文
   ============================================= */

.rn-detail-wrap {
  padding: 24px 0 40px;
}

/* 书籍详情 layout：左侧 sidebar 240px + 右侧主内容 */

.rn-detail-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* ===== 左侧固定信息栏 ===== */

.rn-detail-aside {
  width: 220px;
  flex-shrink: 0;
}

/* 封面卡片 */

.rn-aside-cover-card {
  margin-bottom: 16px;
  padding: 16px;
  text-align: center;
  border-radius: 8px;
  background: var(--sheet-background-bw-white);
}

.rn-aside-cover-card .rn-aside-cover-img {
  display: inline-block;
  overflow: hidden;
  width: 140px;
  height: 187px;
  margin-bottom: 12px;
  border-radius: 6px;
  background: #f0f0f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.rn-aside-cover-card .rn-aside-cover-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rn-aside-cover-card .rn-aside-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 4px;
  color: #1a1a1a;
}

.rn-aside-cover-card .rn-aside-author {
  font-size: 12px;
  margin-bottom: 8px;
  color: #999;
}

.rn-aside-cover-card .rn-aside-tags {
  display: flex;
  margin-bottom: 10px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.rn-aside-cover-card .rn-aside-tags .rn-aside-tag {
  font-size: 11px;
  display: inline-block;
  padding: 2px 8px;
  color: var(--color-primary, #c8584a);
  border: 1px solid var(--color-primary-light, #f7b8b1);
  border-radius: 20px;
  background: var(--color-primary-lighest, #fff5f4);
}

.rn-aside-cover-card .rn-aside-update {
  font-size: 11px;
  color: #a6a6a6;
}

/* 操作按钮区 */

.rn-aside-actions {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  gap: 8px;
}

.rn-aside-actions .rn-btn {
  font-size: 13px;
  font-weight: 600;
  display: block;
  padding: 9px 0;
  transition: opacity .15s;
  text-align: center;
  border-radius: 6px;
}

.rn-aside-actions .rn-btn:hover {
  opacity: .85;
}

.rn-aside-actions .rn-btn-primary {
  color: #fff;
  background: var(--color-primary, #c8584a);
}

.rn-aside-actions .rn-btn-outline {
  color: var(--color-primary, #c8584a);
  border: 1px solid var(--color-primary, #c8584a);
}

.rn-aside-actions .rn-btn-gray {
  color: #666;
  border: 1px solid #e6e6e6;
}

/* 侧边推荐 */

.rn-aside-block {
  overflow: hidden;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--sheet-background-bw-white);
}

.rn-aside-block-head {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  padding: 12px 16px 10px;
  color: #1a1a1a;
  border-bottom: 1px solid #e6e6e6;
  align-items: center;
  gap: 6px;
}

.rn-aside-block-head::before {
  display: inline-block;
  width: 3px;
  height: 14px;
  content: '';
  border-radius: 2px;
  background: var(--color-primary, #c8584a);
}

.rn-aside-list {
  padding: 6px 0;
}

.rn-aside-item {
  display: flex;
  padding: 7px 16px;
  align-items: center;
  gap: 8px;
}

.rn-aside-item:hover .rn-aside-item-link {
  color: var(--color-primary, #c8584a);
}

.rn-aside-item-idx {
  font-size: 11px;
  font-weight: 600;
  display: flex;
  width: 18px;
  height: 18px;
  color: #a6a6a6;
  border-radius: 3px;
  background: #f5f5f5;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.rn-aside-item-idx.top1 {
  color: #fff;
  background: #e8471e;
}

.rn-aside-item-idx.top2 {
  color: #fff;
  background: #f07020;
}

.rn-aside-item-idx.top3 {
  color: #fff;
  background: #f0a020;
}

.rn-aside-item-link {
  font-size: 13px;
  overflow: hidden;
  transition: color .15s;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #666;
  flex: 1;
}

/* ===== 右侧主内容 ===== */

.rn-detail-main {
  min-width: 0;
  flex: 1;
}

/* 简介区 */

.rn-summary-card {
  margin-bottom: 16px;
  padding: 20px 24px;
  border-radius: 8px;
  background: var(--sheet-background-bw-white);
}

.rn-summary-card .rn-summary-label {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  margin-bottom: 8px;
  color: #666;
  align-items: center;
  gap: 6px;
}

.rn-summary-card .rn-summary-label::before {
  display: inline-block;
  width: 3px;
  height: 13px;
  content: '';
  border-radius: 2px;
  background: var(--color-primary, #c8584a);
}

.rn-summary-card .rn-summary-text {
  font-size: 14px;
  line-height: 1.8;
  overflow: hidden;
  color: #666;
}

.rn-summary-card .rn-summary-text.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.rn-summary-card .rn-summary-toggle {
  font-size: 12px;
  display: inline-block;
  margin-top: 8px;
  cursor: pointer;
  color: var(--color-primary, #c8584a);
}

.rn-summary-card .rn-summary-toggle .iconfont {
  font-size: 12px;
  transition: transform .2s;
}

.rn-summary-card .rn-summary-toggle.expanded .iconfont {
  transform: rotate(180deg);
}

/* 正文内容区 */

.rn-content-card {
  padding: 20px 24px;
  border-radius: 8px;
  background: var(--sheet-background-bw-white);
}

.rn-content-card .rn-content-inner {
  font-size: 14px;
  line-height: 1.9;
  color: #666;
}

.rn-content-card .rn-content-inner h1,
.rn-content-card .rn-content-inner h2,
.rn-content-card .rn-content-inner h3,
.rn-content-card .rn-content-inner h4 {
  font-weight: 700;
  line-height: 1.5;
  margin: 16px 0 8px;
  color: #1a1a1a;
}

.rn-content-card .rn-content-inner h1 {
  font-size: 18px;
}

.rn-content-card .rn-content-inner h2 {
  font-size: 16px;
}

.rn-content-card .rn-content-inner h3 {
  font-size: 15px;
}

.rn-content-card .rn-content-inner p {
  margin-bottom: 10px;
}

.rn-content-card .rn-content-inner h1 a,
.rn-content-card .rn-content-inner h2 a,
.rn-content-card .rn-content-inner h3 a {
  text-decoration: none;
  color: inherit;
}

.rn-content-card .rn-content-inner h1 a:hover,
.rn-content-card .rn-content-inner h2 a:hover,
.rn-content-card .rn-content-inner h3 a:hover {
  text-decoration: none;
  color: var(--color-primary, #c8584a);
}

.rn-content-card .rn-content-inner h1 a:visited,
.rn-content-card .rn-content-inner h2 a:visited,
.rn-content-card .rn-content-inner h3 a:visited {
  color: inherit;
}

.rn-content-card .rn-content-inner a {
  transition: color .15s, text-decoration-color .15s;
  text-decoration: underline;
  word-break: break-word;
  color: var(--color-primary, #c8584a);
  text-decoration-color: var(--color-primary-light, rgba(200, 88, 74, .35));
  text-underline-offset: 3px;
}

.rn-content-card .rn-content-inner a:hover {
  color: var(--color-primary, #c8584a);
  text-decoration-color: var(--color-primary, #c8584a);
}

.rn-content-card .rn-content-inner a:visited {
  color: var(--color-primary-dark, #a04030);
  text-decoration-color: var(--color-primary-dark, rgba(160, 64, 48, .4));
}

.rn-content-card .rn-content-inner .bk-tooltip-wrap {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
}

.rn-content-card .rn-content-inner .bk-tooltip-wrap .bk-kw {
  cursor: pointer;
  text-decoration: underline;
  color: var(--color-primary, #c8584a);
  text-decoration-style: dotted;
  text-decoration-color: var(--color-primary, #c8584a);
  text-underline-offset: 3px;
}

.rn-content-card .rn-content-inner .bk-tooltip-wrap .bk-tooltip {
  position: absolute;
  z-index: 100;
  top: calc(100% + 6px);
  left: 0;
  display: none;
  overflow-y: auto;
  min-width: 120px;
  max-width: 240px;
  max-height: 200px;
  padding: 4px 0;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}

.rn-content-card .rn-content-inner .bk-tooltip-wrap .bk-tooltip a {
  font-size: 13px;
  display: block;
  overflow: hidden;
  padding: 6px 12px;
  transition: background .15s, color .15s;
  white-space: nowrap;
  text-decoration: none;
  text-overflow: ellipsis;
  color: #666;
}

.rn-content-card .rn-content-inner .bk-tooltip-wrap .bk-tooltip a:hover {
  text-decoration: none;
  color: var(--color-primary, #c8584a);
  background: var(--color-primary-lighest, #fff5f4);
}

.rn-content-card .rn-content-inner .bk-tooltip-wrap .bk-tooltip a:visited {
  color: #666;
}

.rn-content-card .rn-content-inner .bk-tooltip-wrap::before {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: none;
  height: 6px;
  content: '';
}

.rn-content-card .rn-content-inner .bk-tooltip-wrap::after {
  position: absolute;
  z-index: 101;
  top: calc(100% + 2px);
  left: 20px;
  display: none;
  width: 10px;
  height: 10px;
  content: '';
  transform: rotate(45deg);
  border-top: 1px solid #e6e6e6;
  border-left: 1px solid #e6e6e6;
  background: #fff;
}

.rn-content-card .rn-content-inner .bk-tooltip-wrap:hover .bk-tooltip {
  display: block;
}

.rn-content-card .rn-content-inner .bk-tooltip-wrap:hover::before,
.rn-content-card .rn-content-inner .bk-tooltip-wrap:hover::after {
  display: block;
}

.rn-content-card .rn-content-inner table {
  font-size: 13px;
  width: 100%;
  margin: 12px 0;
  border-collapse: collapse;
}

.rn-content-card .rn-content-inner table th,
.rn-content-card .rn-content-inner table td {
  padding: 8px 12px;
  text-align: left;
  border: 1px solid #e6e6e6;
}

.rn-content-card .rn-content-inner table th {
  font-weight: 600;
  color: #1a1a1a;
  background: #fafafa;
}

.rn-content-card .rn-content-inner img {
  max-width: 100%;
  border-radius: 4px;
}

/*# sourceMappingURL=data/landun/workspace/.map/readnovelbaike.css.map */