/* ============================================================
   陈文杰 · 简历汇报  |  全屏演示样式
   视觉沿用 PsyAssistant 平台（opt/psyai/apps/web/styles.css）：
   浅色底 #f4f5f9 + 白面板 + 靛蓝 #6366f1 主色 + Space Grotesk / Noto Sans SC
   命名空间 rp-，避免和站点 style.css 打架
   ============================================================ */

:root {
  /* 与 psyai styles.css :root 一一对应 */
  --rp-bg: #f4f5f9;
  --rp-panel: #ffffff;
  --rp-panel-border: #e5e7eb;
  --rp-surface: #f0f1f5;
  --rp-text: #111827;
  --rp-text-dim: #6b7280;
  --rp-primary: #6366f1;
  --rp-cyan: #6366f1;
  --rp-blue: #3b82f6;
  --rp-violet: #8b5cf6;
  --rp-gold: #f59e0b;
  --rp-green: #22c55e;
  --rp-red: #ef4444;
  --rp-line: #e5e7eb;
  --rp-shadow: 0 1px 3px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.04);
  --rp-shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --rp-radius: 16px;
  --rp-mono: "JetBrains Mono", "Cascadia Code", "Consolas", monospace;
}

/* ---------- 容器：全屏覆盖 ---------- */
#rp-root {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  background: var(--rp-bg);
  color: var(--rp-text);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
#rp-root.rp-on { display: block; }
#rp-root h1, #rp-root h2, #rp-root h3, #rp-root b, #rp-root strong, #rp-root button {
  font-family: "Space Grotesk", "Noto Sans SC", "PingFang SC", sans-serif;
}

/* 浅色底不需要科技网格，换成极淡的品牌光晕 */
#rp-root::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(900px 600px at 12% 6%, rgba(99,102,241,.07) 0%, transparent 60%),
              radial-gradient(760px 540px at 88% 92%, rgba(139,92,246,.06) 0%, transparent 58%);
  pointer-events: none;
}

/* ---------- 幻灯片 ---------- */
.rp-slide {
  position: absolute;
  inset: 0;
  display: none;
  padding: 7.4vh 5.2vw 9.5vh;
  overflow-y: auto;
  overflow-x: hidden;
}
.rp-slide.rp-active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: safe center;
}

/* 进入动画：整页轻微上浮 + 子元素错序 */
.rp-slide.rp-active > * { animation: rpUp .5s cubic-bezier(.22,.75,.3,1) both; }
.rp-slide.rp-active > *:nth-child(1) { animation-delay: .02s; }
.rp-slide.rp-active > *:nth-child(2) { animation-delay: .10s; }
.rp-slide.rp-active > *:nth-child(3) { animation-delay: .18s; }
.rp-slide.rp-active > *:nth-child(4) { animation-delay: .26s; }
.rp-slide.rp-active > *:nth-child(5) { animation-delay: .34s; }
.rp-slide.rp-active > *:nth-child(6) { animation-delay: .42s; }
@keyframes rpUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rp-slide.rp-active > * { animation: none; }
}

/* ---------- 排版 ---------- */
.rp-kicker {
  font-size: clamp(11px, 1.05vw, 14px);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rp-cyan);
  font-weight: 600;
  margin-bottom: 1.1vh;
}
.rp-h1 {
  font-size: clamp(30px, 4.4vw, 62px);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 1.4vh;
  letter-spacing: -.5px;
}
.rp-h2 {
  font-size: clamp(21px, 2.5vw, 36px);
  font-weight: 750;
  line-height: 1.2;
  margin: 0 0 .8vh;
}
.rp-sub {
  font-size: clamp(13px, 1.25vw, 17px);
  color: var(--rp-text-dim);
  line-height: 1.75;
  max-width: 62ch;
  margin: 0 0 2vh;
}
.rp-grad {
  background: linear-gradient(96deg, var(--rp-cyan), var(--rp-blue) 45%, var(--rp-violet));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rp-mono { font-family: var(--rp-mono); }

/* ---------- 内容块（不是卡片）----------
   刻意去掉边框/底色/阴影/扫光：靠留白和一条细分隔线组织信息，
   避免整页变成一堆嵌套盒子 */
.rp-card {
  position: relative;
  padding: 0 0 0 1.1vw;
  border-left: 1px solid var(--rp-line);
  background: none;
  border-radius: 0;
  box-shadow: none;
  transition: border-color .25s;
}
.rp-card:hover { border-left-color: rgba(0,198,255,.55); }

/* 需要"独立成块"时才加底纹，整份演示里只用于强调段 */
.rp-note {
  padding: 1.6vh 1.3vw;
  border-left: 2px solid var(--rp-cyan);
  background: linear-gradient(90deg, rgba(0,198,255,.07), transparent 70%);
  border-radius: 0 8px 8px 0;
}
.rp-note.go { border-left-color: var(--rp-gold); background: linear-gradient(90deg, rgba(251,191,36,.07), transparent 70%); }
.rp-note.re { border-left-color: var(--rp-red); background: linear-gradient(90deg, rgba(239,68,68,.07), transparent 70%); }
.rp-note.vi { border-left-color: var(--rp-violet); background: linear-gradient(90deg, rgba(168,85,247,.07), transparent 70%); }

.rp-grid { display: grid; gap: 1.5vh 1.3vw; }
.rp-g2 { grid-template-columns: repeat(2, 1fr); }
.rp-g3 { grid-template-columns: repeat(3, 1fr); }
.rp-g4 { grid-template-columns: repeat(4, 1fr); }
.rp-row { display: flex; gap: 1.3vw; align-items: flex-start; }
.rp-fill { flex: 1; min-width: 0; }

/* ---------- 数字指标 ---------- */
.rp-metric {
  text-align: left;
  padding: 1vh 0 0;
  border-left: none;
  border-top: 1px solid var(--rp-line);
}
.rp-metric:hover { border-left: none; border-top-color: rgba(0,198,255,.5); }
.rp-metric .n {
  font-family: var(--rp-mono);
  font-size: clamp(26px, 3.2vw, 46px);
  font-weight: 800;
  line-height: 1;
  color: var(--rp-cyan);
}
.rp-metric .u { font-size: .5em; color: var(--rp-text-dim); margin-left: 3px; }
.rp-metric .l {
  font-size: clamp(11px, 1.05vw, 13.5px);
  color: var(--rp-text-dim);
  margin-top: .7vh;
  line-height: 1.5;
}

/* ---------- 公式块 ---------- */
.rp-formula {
  font-family: var(--rp-mono);
  font-size: clamp(12px, 1.25vw, 16px);
  background: none;
  border-left: 2px solid rgba(0,198,255,.55);
  border-radius: 0;
  padding: .4vh 0 .4vh 1vw;
  overflow-x: auto;
  white-space: nowrap;
  color: #374151;
}
.rp-formula .cm { color: var(--rp-text-dim); }
.rp-formula .kw { color: var(--rp-gold); }

/* ---------- 标签 ---------- */
.rp-tags { display: flex; flex-wrap: wrap; gap: .7vh .5vw; }
.rp-tag {
  font-size: clamp(10.5px, 1vw, 12.5px);
  padding: 0;
  border: none;
  background: none;
  color: var(--rp-text-dim);
  white-space: nowrap;
}
.rp-tag + .rp-tag::before {
  content: "·";
  margin: 0 .5vw 0 .1vw;
  color: #c7cad1;
}
.rp-tag.cy { color: #4f46e5; }
.rp-tag.vi { color: #7c3aed; }
.rp-tag.go { color: #b45309; }

/* ---------- Demo 外框 ---------- */
/* demo 是"真程序窗口"，保留一点边框把它和正文区分开，但不要玻璃厚壳 */
.rp-demo {
  position: relative;
  background: var(--rp-panel);
  border: 1px solid var(--rp-panel-border);
  border-radius: 12px;
  box-shadow: var(--rp-shadow-sm);
  overflow: hidden;
}
.rp-demo-bar {
  display: flex; align-items: center; gap: .5vw;
  padding: 1vh 1vw;
  background: var(--rp-surface);
  border-bottom: 1px solid var(--rp-line);
  font-size: clamp(10.5px, 1vw, 13px);
  color: var(--rp-text-dim);
}
.rp-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.rp-demo-body { padding: 1.8vh 1.3vw; }
.rp-live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--rp-green); font-weight: 600;
}
.rp-live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--rp-green); animation: rpPulse 1.6s infinite;
}
@keyframes rpPulse { 0%,100% { opacity: 1 } 50% { opacity: .25 } }

/* ---------- 控件 ---------- */
.rp-ctl { display: flex; flex-direction: column; gap: .6vh; margin-bottom: 1.4vh; }
.rp-ctl label {
  display: flex; justify-content: space-between;
  font-size: clamp(11px, 1.05vw, 13.5px); color: var(--rp-text-dim);
}
.rp-ctl label b { color: var(--rp-cyan); font-family: var(--rp-mono); }
.rp-ctl input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 5px; border-radius: 3px;
  background: #dcdee5; outline: none; cursor: pointer;
}
.rp-ctl input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--rp-cyan); cursor: pointer;
  box-shadow: 0 2px 6px rgba(99,102,241,.4);
  transition: transform .15s;
}
.rp-ctl input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.18); }
.rp-ctl input[type=range]::-moz-range-thumb {
  width: 17px; height: 17px; border: none; border-radius: 50%;
  background: var(--rp-cyan); cursor: pointer;
}
.rp-btn {
  font: inherit;
  font-size: clamp(11.5px, 1.1vw, 14px);
  padding: .9vh 1.3vw;
  border-radius: 9px;
  border: 1px solid rgba(99,102,241,.35);
  background: rgba(99,102,241,.08);
  color: #4338ca; cursor: pointer; font-weight: 600;
  transition: background .2s, transform .12s;
}
.rp-btn:hover { background: rgba(99,102,241,.16); }
.rp-btn:active { transform: scale(.97); }
.rp-btn[disabled] { opacity: .45; cursor: not-allowed; }
.rp-btn.go { border-color: rgba(245,158,11,.45); background: rgba(245,158,11,.12); color: #b45309; }
.rp-btn.go:hover { background: rgba(245,158,11,.22); }

/* ---------- 转移矩阵 ---------- */
.rp-mx { border-collapse: separate; border-spacing: 4px; font-family: var(--rp-mono); width: 100%; }
.rp-mx td, .rp-mx th {
  padding: .8vh .4vw; text-align: center;
  font-size: clamp(10.5px, 1.05vw, 14px);
  border-radius: 6px;
}
.rp-mx th { color: var(--rp-text-dim); font-weight: 500; font-size: .85em; }
.rp-mx td.v { background: rgba(99,102,241,.09); color: #3730a3; transition: background .4s, color .4s; }
.rp-mx td.v.hot { background: rgba(239,68,68,.16); color: #b91c1c; font-weight: 700; }
.rp-mx td.rl { color: var(--rp-text-dim); text-align: right; font-size: .85em; }

/* ---------- 导航 ---------- */
#rp-nav {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 1vw;
  padding: 1.4vh 5.2vw;
  background: linear-gradient(transparent, var(--rp-bg) 55%);
  z-index: 12;
}
#rp-bar { flex: 1; height: 3px; background: #dcdee5; border-radius: 2px; overflow: hidden; }
#rp-bar i { display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--rp-cyan), var(--rp-violet));
  transition: width .4s cubic-bezier(.3,.8,.3,1); }
#rp-num { font-family: var(--rp-mono); font-size: clamp(11px,1.05vw,13.5px); color: var(--rp-text-dim); min-width: 62px; }
#rp-num b { color: var(--rp-text); }
.rp-navbtn {
  width: 36px; height: 36px; flex: none;
  border-radius: 50%; border: 1px solid var(--rp-line);
  background: var(--rp-panel); color: var(--rp-text);
  cursor: pointer; font-size: 15px; line-height: 1;
  transition: background .2s, border-color .2s;
}
.rp-navbtn:hover { background: rgba(99,102,241,.12); border-color: rgba(99,102,241,.45); }
#rp-close {
  position: absolute; top: 2.4vh; right: 2.4vw; z-index: 14;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--rp-line); background: var(--rp-panel);
  color: var(--rp-text); cursor: pointer; font-size: 17px; line-height: 1;
}
#rp-close:hover { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.5); }
#rp-hint {
  position: absolute; top: 2.6vh; left: 5.2vw; z-index: 13;
  font-size: clamp(10.5px,1vw,12.5px); color: var(--rp-text-dim);
  opacity: .8;
}
#rp-hint kbd {
  font-family: var(--rp-mono); font-size: .95em;
  padding: 1px 6px; border-radius: 4px;
  background: var(--rp-surface); border: 1px solid var(--rp-line);
}

/* ---------- 入口按钮（嵌在 /team 页面里） ---------- */
/* 底部留够高度，避免和站点 footer / 看板娘叠在一起 */
.rp-entry-wrap { text-align: center; margin: 46px 0 96px; position: relative; z-index: 5; }
#rp-open {
  position: relative; overflow: hidden;
  font: inherit; font-size: 16px; font-weight: 650;
  padding: 16px 42px; border-radius: 999px; border: none; cursor: pointer;
  color: #06263a;
  background: linear-gradient(96deg, #35d6f5, #4d7cff 48%, #9a6cff);
  box-shadow: 0 8px 26px rgba(99,102,241,.34);
  transition: transform .22s, box-shadow .22s;
}
#rp-open:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(99,102,241,.46); }
#rp-open i { margin-right: 9px; }
#rp-open::after {
  content: ""; position: absolute; top: 0; left: -120%;
  width: 55%; height: 100%; transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
  animation: rpSheen 3.6s ease-in-out infinite;
}
@keyframes rpSheen { 0%,62% { left: -120% } 88%,100% { left: 190% } }
.rp-entry-note { margin-top: 12px; font-size: 13px; color: var(--rp-text-dim); }

/* ---------- 移动端 ---------- */
@media (max-width: 820px) {
  .rp-slide { padding: 3.4vh 6vw 11vh; }
  .rp-g2, .rp-g3, .rp-g4 { grid-template-columns: 1fr; }
  .rp-row { flex-direction: column; }
  #rp-hint { display: none; }
  .rp-formula { font-size: 11px; }
}

/* ============================================================
   Demo 专用样式
   ============================================================ */

/* ---------- demo2 多智能体 ---------- */
.ag-stage { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8vh .6vw; }
.ag-node {
  display: flex; flex-direction: column; align-items: center; gap: .4vh;
  padding: 1.1vh .4vw; border-radius: 10px;
  background: var(--rp-surface);
  border: 1px solid var(--rp-line);
  font-size: clamp(9.5px, .92vw, 11.5px);
  text-align: center; line-height: 1.35;
  transition: all .35s;
}
.ag-node i { font-size: 1.4em; color: var(--rp-text-dim); transition: color .35s; }
.ag-node em { font-style: normal; color: var(--rp-text-dim); font-size: .88em; }
.ag-node.on {
  background: rgba(99,102,241,.10);
  border-color: var(--rp-cyan);
  transform: scale(1.07);
  box-shadow: 0 4px 14px rgba(99,102,241,.22);
}
.ag-node.on i { color: var(--rp-cyan); }
.ag-node.done { background: rgba(34,197,94,.10); border-color: rgba(34,197,94,.42); }
.ag-node.done i { color: var(--rp-green); }

.ag-log {
  height: 30vh; overflow-y: auto;
  background: var(--rp-surface); border-radius: 10px;
  border: 1px solid var(--rp-line);
  padding: 1vh .9vw;
  font-size: clamp(10.5px, 1vw, 12.5px);
}
.ag-line {
  display: flex; align-items: baseline; gap: .5vw;
  padding: .7vh 0; border-bottom: 1px solid var(--rp-line);
  animation: rpUp .35s both;
}
.ag-line .ag-i { font-family: var(--rp-mono); color: var(--rp-cyan); flex: none; }
.ag-line b { flex: none; }
.ag-line .ag-d { color: var(--rp-text-dim); font-size: .92em; }

/* ---------- demo4 BART ---------- */
#bt-balloon { transition: r .28s cubic-bezier(.34,1.56,.64,1), opacity .2s; }
.bt-stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1vh .6vw; }
.bt-stat > div {
  background: var(--rp-surface); border-radius: 8px; padding: .9vh .6vw;
  border: 1px solid var(--rp-line);
}
.bt-stat span { display: block; font-size: clamp(9.5px,.9vw,11px); color: var(--rp-text-dim); }
.bt-stat b {
  display: block; font-family: var(--rp-mono);
  font-size: clamp(13px,1.35vw,18px); color: var(--rp-text); margin-top: .3vh;
}
.bt-stat b.hi { color: var(--rp-red); }

/* ---------- demo5 数据管线 ---------- */
.pl-flow {
  display: flex; align-items: center; justify-content: space-between;
  gap: .3vw; flex-wrap: nowrap; overflow-x: auto;
}
.pl-stage {
  display: flex; flex-direction: column; align-items: center; gap: .4vh;
  padding: 1.1vh .7vw; border-radius: 10px; flex: none;
  background: var(--rp-surface); border: 1px solid var(--rp-line);
  font-size: clamp(9.5px,.92vw,11.5px); white-space: nowrap;
  transition: all .35s;
}
.pl-stage i { font-size: 1.35em; color: var(--rp-text-dim); transition: color .35s; }
.pl-stage.on {
  background: rgba(245,158,11,.14); border-color: var(--rp-gold);
  transform: translateY(-4px); box-shadow: 0 4px 14px rgba(245,158,11,.25);
}
.pl-stage.on i { color: var(--rp-gold); }
.pl-stage.done { background: rgba(34,197,94,.10); border-color: rgba(34,197,94,.42); }
.pl-stage.done i { color: var(--rp-green); }
.pl-arrow { color: var(--rp-text-dim); flex: none; font-size: .95em; }

.pl-out {
  margin-top: 1.2vh; min-height: 9vh; max-height: 21vh; overflow-y: auto;
  font-size: clamp(10.5px,1vw,12.5px);
}
.pl-line {
  padding: .55vh 0; border-bottom: 1px solid var(--rp-line);
  color: var(--rp-text-dim); animation: rpUp .3s both;
}
.pl-line b { color: var(--rp-text); margin-right: .4vw; }
.pl-line .pl-k { color: var(--rp-cyan); font-family: var(--rp-mono); margin-left: .4vw; }
.pl-line.ok { color: var(--rp-green); font-weight: 600; border: none; }

@media (max-width: 820px) {
  .ag-stage { grid-template-columns: repeat(2, 1fr); }
  .bt-stat { grid-template-columns: repeat(2, 1fr); }
  .ag-log { height: 24vh; }
}

/* ============================================================
   图片模块：沿用站点 .reward-frame 的金边证书框做法
   ============================================================ */

/* 证书 / 图片框 —— 金色描边，和 /team 页荣誉展示同一套视觉 */
.rp-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--rp-panel-border);
  box-shadow: var(--rp-shadow-sm);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  cursor: zoom-in;
}
.rp-frame:hover {
  transform: translateY(-3px);
  border-color: rgba(99,102,241,.45);
  box-shadow: 0 8px 28px rgba(99,102,241,.16);
  z-index: 10;
}
.rp-frame img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}
.rp-frame .rp-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  position: static;
  padding: .6vh .6vw;
  background: var(--rp-surface);
  border-top: 1px solid var(--rp-panel-border);
  font-size: clamp(10px, .9vw, 12px);
  color: var(--rp-text-dim); text-align: center; line-height: 1.35;
}
.rp-cap b { color: var(--rp-primary); }

/* 证书墙：定高栅格 */
.rp-wall { display: grid; gap: .9vh .8vw; }
.rp-wall .rp-frame { aspect-ratio: 16 / 10; }
.rp-w4 { grid-template-columns: repeat(4, 1fr); }
.rp-w5 { grid-template-columns: repeat(5, 1fr); }

/* 项目截图：蓝色描边，区别于金色证书 */
.rp-shot {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--rp-panel-border);
  background: var(--rp-surface);
  box-shadow: var(--rp-shadow-sm);
  position: relative;
}
.rp-shot img { width: 100%; display: block; object-fit: contain; background: var(--rp-surface); }
.rp-shot .rp-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  position: static;
  padding: .6vh .8vw;
  background: var(--rp-surface);
  border-top: 1px solid var(--rp-panel-border);
  font-size: clamp(10px, .9vw, 12px); color: var(--rp-text-dim);
}

/* 图文分栏：左图右文 / 左文右图 */
.rp-split { display: grid; gap: 1.4vw; align-items: center; }
.rp-split-31 { grid-template-columns: 1.15fr .85fr; }
.rp-split-13 { grid-template-columns: .85fr 1.15fr; }

/* 灯箱：点证书看大图 */
#rp-light {
  position: fixed; inset: 0; z-index: 100000;
  display: none; align-items: center; justify-content: center;
  background: rgba(17,24,39,.78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  cursor: zoom-out;
}
#rp-light.on { display: flex; }
#rp-light img {
  max-width: 90vw; max-height: 84vh;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
  background: #fff;
}
#rp-light .rp-lcap {
  position: absolute; bottom: 4vh; left: 0; right: 0;
  text-align: center; color: #fff;
  font-size: clamp(12px, 1.1vw, 15px);
}

@media (max-width: 820px) {
  .rp-w4, .rp-w5 { grid-template-columns: repeat(2, 1fr); }
  .rp-split-31, .rp-split-13 { grid-template-columns: 1fr; }
}

/* 卡片顶部通栏缩略图 */
.rp-thumb {
  margin: 0 0 1.4vh;
  border-radius: 8px;
  height: 17vh; min-height: 112px;
  overflow: hidden;
  background: var(--rp-surface);
  border-bottom: 1px solid var(--rp-line);
}
.rp-thumb img {
  width: 100%; height: 100%;
  /* contain 而不是 cover：这些截图接近正方形，cover 会把主体裁掉 */
  object-fit: contain; object-position: center; display: block;
  transition: transform .45s ease;
}
.rp-card:hover .rp-thumb img { transform: scale(1.06); opacity: 1; }

/* 封面右侧的品牌印记 —— 用「凌烟阁」标识做水印，压暗融进背景
   注意：.rp-slide 自身是 position:absolute + inset:0，这里绝不能再给 .rp-cover
   设 position:relative，否则 inset 失效、页高塌成内容高度，垂直居中就没了 */
.rp-mark {
  position: absolute;
  right: 4vw; top: 50%;
  transform: translateY(-50%);
  width: min(30vw, 340px);
  opacity: .07;
  filter: grayscale(1);
  pointer-events: none;
}
@media (max-width: 900px) { .rp-mark { display: none; } }

/* 白底 logo 缩略图：反相压暗，避免一块高亮白斑打断深色版面 */
.rp-thumb-mark { background: #fff; }
.rp-thumb-mark img {
  object-fit: contain;
  padding: 1.4vh 0;
  opacity: .9;
}
.rp-card:hover .rp-thumb-mark img { transform: none; opacity: .95; }

/* 横幅型截图：限高，且标题栏不压在图上，改为图下独立一行 */
.rp-shot-wide img { max-height: 20vh; object-fit: contain; background: var(--rp-surface); }
.rp-shot-wide .rp-cap {
  position: static;
  background: var(--rp-surface);
  color: var(--rp-text-dim);
  border-top: 1px solid var(--rp-line);
}

/* ---------- 新增排版件 ---------- */
.rp-lead {
  font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.75;
  color: var(--rp-text);
  max-width: 46em;
  margin: 1.4vh 0 0;
}
.rp-h3 {
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 700;
  margin: .3vh 0 .8vh;
  color: var(--rp-text);
}
/* 段落小字号（原来到处写内联 style，收敛成一个类） */
.rp-s {
  font-size: clamp(11.5px, 1.05vw, 13.5px);
  line-height: 1.75;
  margin: 0 0 1vh;
}
.rp-steps {
  margin: 0; padding-left: 1.2em;
  font-size: clamp(11.5px, 1.05vw, 13.5px);
  color: var(--rp-text-dim);
  line-height: 1.55;
}
.rp-steps li { margin-bottom: .55vh; }
.rp-steps b { color: var(--rp-text); margin-right: .4em; }
.rp-mono { font-family: var(--rp-mono); }
