/* ============================================================
 * 书评广场（review_plaza）· duwen 纸页书房视觉
 * ------------------------------------------------------------
 * 全部类名以 rp- 前缀限定，不污染主题与核心；颜色/圆角/阴影
 * 优先继承 duwen 设计令牌，插件停用或换主题时仍有暖色兜底。
 * ============================================================ */

/* ---------- 页面骨架 ---------- */
.rp-page { color: var(--tx, #1E2A24); }
.rp-grid { margin-top: 18px; }
.rp-grid.is-solo { grid-template-columns: minmax(0, 1fr); }
.rp-maincol { min-width: 0; }

/* ---------- Hero ---------- */
.rp-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  overflow: hidden;
  padding: 26px 30px;
  margin-bottom: 18px;
  border: 1px solid var(--bd, rgba(30, 42, 36, .12));
  border-radius: 20px;
  background:
    radial-gradient(460px 220px at 88% -20%, rgba(201, 162, 78, .14), transparent 62%),
    radial-gradient(420px 220px at 4% 120%, rgba(92, 173, 129, .12), transparent 64%),
    linear-gradient(135deg, var(--card, #FFFDF8) 0%, var(--soft, #F3EFE4) 100%);
  box-shadow: var(--shadow, 0 1px 2px rgba(30, 42, 36, .06), 0 8px 24px rgba(30, 42, 36, .10));
}
.rp-hero::after {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft, rgba(201, 162, 78, .14)), transparent);
}
.rp-hero-main {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1;
}
.rp-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--gold-text, #8C6A1F);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.rp-hero h1 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 7px;
  color: var(--tx, #1E2A24);
  font-family: var(--serif, Georgia, "Songti SC", serif);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.3;
}
.rp-hero h1 svg { color: var(--ac-text, #2F6E50); }
.rp-hero-desc {
  max-width: 600px;
  margin: 0 0 15px;
  color: var(--tx-3, #5E7267);
  font-size: 13px;
  line-height: 1.7;
}
.rp-hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.rp-stat b {
  display: block;
  color: var(--ac-2, #3E8F66);
  font-family: var(--serif, Georgia, serif);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.1;
}
.rp-stat span {
  display: block;
  margin-top: 2px;
  color: var(--tx-3, #5E7267);
  font-size: 11.5px;
}
.rp-stat-div {
  flex: none;
  width: 1px;
  height: 32px;
  background: var(--bd-2, rgba(30, 42, 36, .22));
  opacity: .55;
}
.rp-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: 8px;
}
.rp-hero-art {
  position: relative;
  z-index: 1;
  flex: none;
  width: 190px;
  opacity: .95;
}
.rp-hero-art svg { width: 100%; height: auto; display: block; }

/* ---------- 通用按钮 ---------- */
.rp-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.rp-btn:hover { transform: translateY(-1px); }
.rp-btn-primary {
  background: var(--ac, #5CAD81);
  color: var(--dw-brand-on, #08100C);
}
.rp-btn-primary:hover { background: var(--ac-2, #3E8F66); color: var(--dw-brand-on, #08100C); }
.rp-btn-ghost {
  background: var(--card, #FFFDF8);
  border-color: var(--bd, rgba(30, 42, 36, .12));
  color: var(--tx-2, #4E6256);
}
.rp-btn-ghost:hover { border-color: var(--ac, #5CAD81); color: var(--ac-text, #2F6E50); }

/* ---------- 标签 / 排序 ---------- */
.rp-tabs {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--bd, rgba(30, 42, 36, .12));
  scrollbar-width: none;
}
.rp-tabs::-webkit-scrollbar { display: none; }
.rp-tab {
  position: relative;
  flex: none;
  margin-bottom: -1px;
  padding: 12px 2px 11px;
  border-bottom: 2px solid transparent;
  color: var(--tx-3, #5E7267);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease;
}
.rp-tab:hover { color: var(--tx, #1E2A24); }
.rp-tab.is-on {
  border-bottom-color: var(--ac, #5CAD81);
  color: var(--ac-text, #2F6E50);
  font-weight: 600;
}
.rp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 13px 2px 11px;
}
.rp-sorts { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.rp-chip {
  padding: 4px 12px;
  border: 1px solid var(--bd, rgba(30, 42, 36, .12));
  border-radius: 999px;
  background: var(--card, #FFFDF8);
  color: var(--tx-3, #5E7267);
  font-size: 11.5px;
  line-height: 1.6;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.rp-chip:hover { border-color: var(--ac, #5CAD81); color: var(--tx-2, #4E6256); }
.rp-chip.is-on {
  border-color: var(--ac, #5CAD81);
  background: var(--ac-soft, rgba(92, 173, 129, .12));
  color: var(--ac-text, #2F6E50);
  font-weight: 600;
}
.rp-total { color: var(--tx-3, #5E7267); font-size: 11.5px; }

/* ---------- 信息流 ---------- */
.rp-feed {
  padding: 2px 20px;
  border: 1px solid var(--bd, rgba(30, 42, 36, .12));
  border-radius: 18px;
  background: var(--card, #FFFDF8);
  box-shadow: var(--shadow, 0 1px 2px rgba(30, 42, 36, .06), 0 8px 24px rgba(30, 42, 36, .10));
}
.rp-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 2px;
  border-bottom: 1px solid var(--bd, rgba(30, 42, 36, .12));
}
.rp-item:last-child { border-bottom: 0; }
.rp-item-main { min-width: 0; }

/* 封面 / 字块 */
.rp-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 90px;
  overflow: hidden;
  border: 1px solid var(--bd, rgba(30, 42, 36, .12));
  border-radius: 9px;
  background: var(--soft, #F3EFE4);
  box-shadow: 0 6px 16px rgba(30, 42, 36, .13);
  text-decoration: none;
}
.rp-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rp-cover-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #FFF8EE;
  font-family: var(--serif, Georgia, serif);
  font-size: 30px;
  font-weight: 600;
}
.rp-cover-post { background: var(--soft-2, #ECE6D8); }
.rp-cover-post-char {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #FFF8EE;
  font-family: var(--serif, Georgia, serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: .04em;
}
.rp-cover-shelf { align-items: flex-end; background: linear-gradient(160deg, var(--soft, #F3EFE4), var(--card, #FFFDF8)); }
.rp-shelf-stack {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  width: 54px;
  padding: 0 2px 7px;
  border-bottom: 3px solid var(--gold, #C9A24E);
}
.rp-shelf-book {
  display: block;
  width: 15px;
  height: 44px;
  overflow: hidden;
  border-radius: 3px 3px 1px 1px;
  background: var(--soft-2, #ECE6D8);
  box-shadow: 0 2px 5px rgba(30, 42, 36, .18);
}
.rp-shelf-book:nth-child(2) { width: 17px; height: 50px; }
.rp-shelf-book:nth-child(3) { width: 13px; height: 39px; }
.rp-shelf-book img { width: 100%; height: 100%; object-fit: cover; }
.rp-shelf-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--tx-3, #5E7267); }
.rp-cover-fallback-shelf { color: var(--gold-text, #8C6A1F); background: transparent; }

/* 文案区 */
.rp-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.rp-type {
  flex: none;
  padding: 1px 7px;
  border: 1px solid;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .02em;
}
.rp-type-review { border-color: var(--ac, #5CAD81); background: var(--ac-soft, rgba(92, 173, 129, .12)); color: var(--ac-text, #2F6E50); }
.rp-type-post { border-color: var(--gold, #C9A24E); background: var(--gold-soft, rgba(201, 162, 78, .14)); color: var(--gold-text, #8C6A1F); }
.rp-type-shelf { border-color: var(--bd-2, rgba(30, 42, 36, .22)); background: var(--soft, #F3EFE4); color: var(--tx-2, #4E6256); }
.rp-title {
  min-width: 0;
  margin: 0;
  color: var(--tx, #1E2A24);
  font-family: var(--serif, Georgia, "Songti SC", serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}
.rp-title a { color: inherit; text-decoration: none; }
.rp-title a:hover { color: var(--ac-text, #2F6E50); }
.rp-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0 8px;
  color: var(--tx-2, #4E6256);
  font-size: 13px;
  line-height: 1.72;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.rp-bookline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 9px;
  color: var(--tx-3, #5E7267);
  font-size: 12px;
  line-height: 1.6;
}
.rp-bookline b { color: var(--tx-2, #4E6256); font-weight: 600; }
.rp-bookline a { color: var(--tx-2, #4E6256); text-decoration: none; }
.rp-bookline a:hover { color: var(--ac-text, #2F6E50); }
.rp-muted { color: var(--tx-3, #5E7267); }
.rp-score {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--gold-soft, rgba(201, 162, 78, .14));
  color: var(--gold-text, #8C6A1F);
  font-family: var(--mono, ui-monospace, Consolas, monospace);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}
.rp-score small { font-size: 9px; font-weight: 400; opacity: .75; }

/* 底部作者行 */
.rp-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--tx-3, #5E7267);
  font-size: 11.5px;
  line-height: 1.7;
}
.rp-user {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--tx-2, #4E6256);
  text-decoration: none;
}
.rp-foot a.rp-user:hover span:last-child { color: var(--ac-text, #2F6E50); }
.rp-user .avatar { border-radius: 50%; flex: none; }
.rp-user-anon { color: var(--tx-3, #5E7267); }
.rp-anon-ava {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--soft-2, #ECE6D8);
  color: var(--tx-3, #5E7267);
  font-size: 10px;
}
.rp-stars { display: inline-flex; gap: 1px; color: var(--bd-2, rgba(30, 42, 36, .22)); font-size: 11px; letter-spacing: .5px; line-height: 1; }
.rp-stars .on { color: var(--gold, #C9A24E); }
.rp-stars .off { color: var(--bd-2, rgba(30, 42, 36, .22)); }
.rp-dot { color: var(--tx-3, #5E7267); font-style: normal; opacity: .55; }
.rp-go {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  margin-left: auto;
  color: var(--ac-text, #2F6E50);
  font-weight: 500;
  text-decoration: none;
}
.rp-go:hover { color: var(--ac-2, #3E8F66); }

/* ---------- 空态 / 登录提示 ---------- */
.rp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
  padding: 54px 20px;
  border: 1px dashed var(--bd-2, rgba(30, 42, 36, .22));
  border-radius: 18px;
  background: var(--soft, #F3EFE4);
  text-align: center;
}
.rp-empty-ic { color: var(--gold-text, #8C6A1F); }
.rp-empty h2 { margin: 0; color: var(--tx, #1E2A24); font-family: var(--serif, Georgia, serif); font-size: 19px; font-weight: 600; }
.rp-empty p { max-width: 480px; margin: 0 0 3px; color: var(--tx-3, #5E7267); font-size: 12.5px; line-height: 1.7; }

/* 底部说明 */
.rp-note { display: flex; align-items: flex-start; gap: 5px; margin: 14px 2px 0; color: var(--tx-3, #5E7267); font-size: 11px; line-height: 1.65; }
.rp-note svg { flex: none; margin-top: 2px; }
.rp-maincol .pager { margin-top: 16px; }

/* ---------- 右侧栏 ---------- */
.rp-side-card {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--bd, rgba(30, 42, 36, .12));
  border-radius: 16px;
  background: var(--card, #FFFDF8);
  box-shadow: var(--shadow, 0 1px 2px rgba(30, 42, 36, .06), 0 8px 24px rgba(30, 42, 36, .10));
}
.rp-side-card:last-child { margin-bottom: 0; }
.rp-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.rp-side-head h3 {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: var(--tx, #1E2A24);
  font-family: var(--serif, Georgia, serif);
  font-size: 15px;
  font-weight: 600;
}
.rp-side-head h3 svg { color: var(--gold-text, #8C6A1F); }
.rp-side-more { display: inline-flex; align-items: center; gap: 1px; color: var(--tx-3, #5E7267); font-size: 10.5px; text-decoration: none; }
.rp-side-more:hover { color: var(--ac-text, #2F6E50); }
.rp-side-list { display: flex; flex-direction: column; }

/* 本周热评 */
.rp-hot { display: block; padding: 9px 0; border-bottom: 1px dashed var(--bd, rgba(30, 42, 36, .12)); text-decoration: none; }
.rp-hot:first-child { padding-top: 3px; }
.rp-hot:last-child { padding-bottom: 0; border-bottom: 0; }
.rp-hot-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--tx, #1E2A24);
  font-size: 12.5px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.rp-hot:hover .rp-hot-title { color: var(--ac-text, #2F6E50); }
.rp-hot-meta { display: flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--tx-3, #5E7267); font-size: 10.5px; }
.rp-hot-meta svg { color: var(--err, #C0392B); opacity: .75; }

/* 评分榜 */
.rp-rank-list { display: flex; flex-direction: column; }
.rp-rank { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--bd, rgba(30, 42, 36, .12)); text-decoration: none; }
.rp-rank:first-child { padding-top: 2px; }
.rp-rank:last-child { padding-bottom: 0; border-bottom: 0; }
.rp-rank-no { flex: none; width: 15px; color: var(--tx-3, #5E7267); font-family: var(--mono, Consolas, monospace); font-size: 11px; text-align: center; }
.rp-rank-no.is-top { color: var(--gold-text, #8C6A1F); font-weight: 700; }
.rp-rank-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 38px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--soft, #F3EFE4);
  color: var(--tx-3, #5E7267);
}
.rp-rank-cover img { width: 100%; height: 100%; object-fit: cover; }
.rp-rank-main { flex: 1; min-width: 0; }
.rp-rank-title { display: block; overflow: hidden; color: var(--tx, #1E2A24); font-size: 12px; line-height: 1.5; white-space: nowrap; text-overflow: ellipsis; }
.rp-rank:hover .rp-rank-title { color: var(--ac-text, #2F6E50); }
.rp-rank-meta { display: block; margin-top: 1px; color: var(--tx-3, #5E7267); font-size: 10px; }
.rp-rank-score { flex: none; color: var(--gold-text, #8C6A1F); font-family: var(--mono, Consolas, monospace); font-size: 13px; font-weight: 700; }

/* 活跃书友 */
.rp-user-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px dashed var(--bd, rgba(30, 42, 36, .12)); color: var(--tx, #1E2A24); text-decoration: none; }
.rp-user-row:first-child { padding-top: 2px; }
.rp-user-row:last-child { padding-bottom: 0; border-bottom: 0; }
.rp-user-row .avatar { flex: none; border-radius: 50%; }
.rp-user-main { flex: 1; min-width: 0; }
.rp-user-main b { display: block; overflow: hidden; font-size: 12.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.rp-user-main span { display: block; margin-top: 1px; color: var(--tx-3, #5E7267); font-size: 10.5px; }
.rp-user-row > svg { flex: none; color: var(--tx-3, #5E7267); }

/* CTA */
.rp-cta {
  border-color: var(--gold-soft, rgba(201, 162, 78, .14));
  background:
    radial-gradient(300px 160px at 100% 0%, rgba(201, 162, 78, .16), transparent 66%),
    linear-gradient(135deg, var(--card, #FFFDF8), var(--soft, #F3EFE4));
}
.rp-cta-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--gold-soft, rgba(201, 162, 78, .14));
  color: var(--gold-text, #8C6A1F);
}
.rp-cta h3 { margin: 10px 0 4px; color: var(--tx, #1E2A24); font-family: var(--serif, Georgia, serif); font-size: 16px; font-weight: 600; }
.rp-cta p { margin: 0 0 12px; color: var(--tx-3, #5E7267); font-size: 12px; line-height: 1.65; }
.rp-cta-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .rp-hero { align-items: flex-start; padding: 22px 22px; }
  .rp-hero-art { position: absolute; right: -24px; bottom: -10px; width: 150px; opacity: .30; }
  .rp-hero-desc { max-width: none; padding-right: 20px; }
  .rp-hero-stats { position: relative; z-index: 1; }
}

@media (max-width: 640px) {
  .rp-hero { padding: 19px 18px; border-radius: 16px; }
  .rp-hero h1 { font-size: 21px; }
  .rp-kicker { font-size: 9.5px; }
  .rp-hero-desc { font-size: 12px; }
  .rp-hero-stats { gap: 12px; }
  .rp-stat b { font-size: 19px; }
  .rp-hero-actions { width: 100%; margin-left: 0; margin-top: 2px; }
  .rp-tabs { gap: 20px; }
  .rp-tab { font-size: 13.5px; }
  .rp-toolbar { margin: 11px 0 9px; }
  .rp-feed { padding: 0 12px; border-radius: 14px; }
  .rp-item { grid-template-columns: 54px minmax(0, 1fr); gap: 11px; padding: 14px 0; }
  .rp-cover { width: 54px; height: 74px; border-radius: 7px; }
  .rp-cover-fallback, .rp-cover-post-char { font-size: 24px; }
  .rp-shelf-stack { width: 44px; padding-bottom: 5px; }
  .rp-shelf-book { width: 12px; height: 35px; }
  .rp-shelf-book:nth-child(2) { width: 14px; height: 40px; }
  .rp-shelf-book:nth-child(3) { width: 11px; height: 31px; }
  .rp-title { font-size: 15.5px; }
  .rp-excerpt { font-size: 12.5px; -webkit-line-clamp: 3; }
  .rp-bookline { font-size: 11.5px; }
  .rp-foot { font-size: 11px; gap: 5px; }
  .rp-go { margin-left: 0; }
  .rp-side-card { padding: 14px; border-radius: 14px; }
}
