/* =========================================================
   CO-SIGN · 产品路演模式
   黑金发布会：幻灯片讲"为什么"，AI 光标群现场搭建讲"怎么做"
   ========================================================= */

/* ---------- 右侧目录顶部的入口按钮 ---------- */
.rs-start {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 20px 2px;
  padding: 12px 14px;
  border-radius: 10px;
  text-align: left;
  overflow: hidden;
  color: var(--ivory);
  background: linear-gradient(135deg, rgba(200, 164, 90, .24), rgba(200, 164, 90, .05));
  border: 1px solid rgba(200, 164, 90, .6);
  transition: border-color .2s, transform .2s;
}

.rs-start::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 240, 200, .18) 48%, transparent 64%);
  transform: translateX(-100%);
  animation: rsShine 4.5s ease-in-out infinite;
  pointer-events: none;
}

.rs-start:hover { border-color: var(--gold-hi); }
.rs-start:active { transform: scale(.985); }
.rs-start .ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--leaf); color: #1a1408; box-shadow: 0 0 0 4px rgba(200, 164, 90, .14); }
.rs-start .ic svg { width: 15px; height: 15px; margin-left: 2px; }
.rs-start b { display: block; font-family: var(--serif-zh); font-size: 16px; letter-spacing: .06em; }
.rs-start small { display: block; margin-top: 1px; color: var(--smoke); font-size: 11.5px; }

@keyframes rsShine { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }

/* ---------- 路演期间：舞台让位 ---------- */
body.rs-on .cover-notes,
body.rs-on .liner-notes { opacity: 0; pointer-events: none; transition: opacity .5s; }
body.rs-on .device { transform: translateY(var(--rs-dy, -40px)) scale(var(--rs-s, 1)) !important; transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
body.rs-on #app .pushbanner { display: none; }

#rs-root { position: fixed; inset: 0; z-index: 9000; pointer-events: none; color: var(--ivory); font-family: var(--sans); }
#rs-root > * { pointer-events: none; }

/* ---------- 发布会幻灯片 ---------- */
#rs-keynote {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s, visibility .7s;
  background:
    radial-gradient(1100px 700px at 50% 40%, rgba(200, 164, 90, .11), transparent 62%),
    radial-gradient(900px 520px at 50% 118%, rgba(200, 164, 90, .09), transparent 70%),
    #050505;
}

#rs-keynote::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 50% 44%, rgba(255, 255, 255, .017) 0 1px, transparent 1px 4px);
  mask-image: radial-gradient(1000px 680px at 50% 44%, #000 25%, transparent 78%);
  pointer-events: none;
}

body.rs-keynote #rs-keynote { opacity: 1; visibility: visible; pointer-events: auto; }

.rs-frame { position: absolute; inset: 26px; border: 1px solid rgba(200, 164, 90, .2); pointer-events: none; }
.rs-top { position: absolute; top: 44px; left: 58px; right: 58px; display: flex; justify-content: space-between; align-items: center; color: var(--smoke); font-size: 13px; z-index: 2; }
.rs-brand { display: flex; align-items: center; gap: 10px; letter-spacing: .04em; }
.rs-brand img { width: 26px; height: 26px; border-radius: 6px; }
.rs-act { font-size: 14px; color: var(--ivory); }
.rs-act i { font-family: var(--serif-en); font-size: 19px; color: var(--gold); margin-right: 10px; }
.rs-act em { font-family: var(--serif-en); font-style: italic; color: var(--ash); margin-left: 8px; }

.rs-stage { position: absolute; inset: 104px 7vw 176px; display: grid; place-items: center; }

.rs-slide { width: 100%; max-width: 1240px; opacity: 0; transform: translateY(14px) scale(.985); filter: blur(8px); transition: opacity .8s, transform .8s cubic-bezier(.22, 1, .36, 1), filter .8s; }
.rs-slide.in { opacity: 1; transform: none; filter: none; }
.rs-slide.out { opacity: 0; transform: translateY(-10px) scale(1.01); filter: blur(6px); transition-duration: .38s; }

#rs-keynote [data-step] { opacity: 0; transform: translateY(16px); filter: blur(6px); transition: opacity .75s, transform .75s cubic-bezier(.22, 1, .36, 1), filter .75s; }
#rs-keynote [data-step].in { opacity: 1; transform: none; filter: none; }

/* 字体系统 */
.rs-word {
  margin: 0;
  font-family: var(--serif-en);
  font-weight: 400;
  font-size: clamp(64px, 9vw, 150px);
  line-height: .95;
  letter-spacing: .015em;
  background: var(--leaf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rs-word.sm { font-size: clamp(56px, 7vw, 112px); text-align: center; }
.rs-zh { margin-top: 18px; font-family: var(--serif-zh); font-size: clamp(20px, 2vw, 30px); letter-spacing: .55em; color: var(--gold-hi); text-indent: .55em; }
.rs-h { margin: 0 0 30px; font-family: var(--serif-zh); font-weight: 700; font-size: clamp(30px, 3.3vw, 52px); letter-spacing: .04em; line-height: 1.3; }
.rs-p { margin: 0; max-width: 34em; color: var(--smoke); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.85; }
.rs-big { margin: 30px 0 0; font-family: var(--serif-zh); font-size: clamp(26px, 2.8vw, 42px); line-height: 1.45; color: var(--gold-hi); }
.rs-center { text-align: center; margin-left: auto; margin-right: auto; }

/* 封面 */
.rs-s-title, .rs-s-close { position: relative; text-align: center; }
.rs-ring { position: absolute; left: 50%; top: 50%; width: min(640px, 72vh); aspect-ratio: 1; transform: translate(-50%, -56%); border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(200, 164, 90, .12) 0 1.2deg, transparent 1.2deg 4deg); mask: radial-gradient(circle, transparent 55%, #000 56% 69%, transparent 70%); animation: spin 70s linear infinite; pointer-events: none; }
.rs-logo { position: relative; display: block; width: 92px; margin: 0 auto 26px; border-radius: 18px; box-shadow: 0 24px 70px rgba(200, 164, 90, .28); }
.rs-sub { margin: 34px 0 0; font-family: var(--serif-zh); font-size: clamp(20px, 1.9vw, 28px); color: var(--ivory); letter-spacing: .08em; }
.rs-meta { margin-top: 14px; color: var(--ash); font-size: 14px; letter-spacing: .12em; }

/* 人为什么追星 */
.rs-s-why { display: grid; grid-template-columns: 1fr 1.15fr; gap: 6vw; align-items: center; }
.rs-quote { margin: 0 0 26px; padding-left: 26px; border-left: 2px solid var(--gold); font-family: var(--serif-zh); font-size: clamp(36px, 4.2vw, 66px); line-height: 1.28; color: var(--ivory); }
.rs-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rs-card { padding: 20px 20px 18px; border-radius: 14px; background: linear-gradient(160deg, rgba(32, 29, 24, .92), rgba(12, 12, 13, .92)); border: 1px solid rgba(200, 164, 90, .26); }
.rs-card b { display: block; font-family: var(--serif-zh); font-size: clamp(20px, 1.8vw, 26px); }
.rs-card i { display: block; margin-top: 2px; font-family: var(--serif-en); color: var(--gold); font-size: 15px; }
.rs-card span { display: block; margin: 8px 0 8px; color: var(--ash); font-size: 12.5px; letter-spacing: .04em; }
.rs-card p { margin: 0; color: #d6d0c2; font-size: 14.5px; line-height: 1.7; }

/* 两股力量 */
.rs-k { display: block; width: 100%; max-width: 1180px; height: auto; margin: 0 auto; overflow: visible; }
.rs-axis { fill: none; stroke: rgba(242, 237, 227, .18); stroke-width: 1.2; }
#rs-keynote .rs-line { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1200; stroke-dashoffset: 1200; opacity: 1; transform: none; filter: none; transition: stroke-dashoffset 1.8s cubic-bezier(.22, 1, .36, 1); }
#rs-keynote .rs-line.in { stroke-dashoffset: 0; }
.rs-line.l1 { stroke: rgba(242, 237, 227, .42); }
.rs-line.l2 { stroke: url(#rsGold); }
#rs-keynote .rs-line.l2.in { filter: drop-shadow(0 0 10px rgba(200, 164, 90, .55)); }
.rs-tl { font-family: var(--serif-zh); font-size: 27px; font-weight: 700; fill: var(--ivory); }
.rs-tl.gold { fill: var(--gold-hi); }
.rs-ts { font-size: 15px; fill: var(--smoke); }
.rs-chip-row { display: flex; gap: 18px; justify-content: center; margin-top: 30px; }
.rs-chip { max-width: 470px; padding: 16px 20px; border-radius: 12px; border: 1px solid rgba(200, 164, 90, .3); background: rgba(20, 19, 17, .75); color: var(--smoke); font-size: 15px; line-height: 1.7; }
.rs-chip b { font-family: var(--serif-zh); font-size: 21px; color: var(--ivory); margin-right: 10px; }
.rs-chip i { font-family: var(--serif-en); color: var(--gold); font-size: 14px; margin-right: 8px; }

/* 旧模式 */
.rs-s-problem { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; }
.rs-strike { display: flex; gap: 34px; margin: 6px 0 26px; padding: 0; list-style: none; }
.rs-strike li { position: relative; font-family: var(--serif-zh); font-weight: 700; font-size: clamp(42px, 4.6vw, 72px); color: rgba(242, 237, 227, .86); }
.rs-strike li::after { content: ""; position: absolute; left: -5%; right: -5%; top: 54%; height: 4px; border-radius: 2px; background: #c9705f; transform: scaleX(0); transform-origin: left; transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
.rs-strike li.in::after { transform: scaleX(1); transition-delay: .5s; }
.rs-strike li:nth-child(2).in::after { transition-delay: .75s; }
.rs-strike li:nth-child(3).in::after { transition-delay: 1s; }
.rs-reg { margin-bottom: 24px; padding: 4px 0 4px 20px; border-left: 2px solid var(--gold); }
.rs-reg span { color: var(--ash); font-size: 13px; letter-spacing: .04em; }
.rs-reg b { display: block; margin: 4px 0 6px; font-family: var(--serif-zh); font-size: clamp(20px, 1.9vw, 27px); }
.rs-reg p { margin: 0; color: var(--smoke); font-size: 15px; line-height: 1.7; }

/* 从追星到署名 */
.rs-from { display: flex; justify-content: center; align-items: center; gap: 40px; font-family: var(--serif-zh); font-weight: 900; font-size: clamp(66px, 8.4vw, 136px); line-height: 1; }
.rs-old { position: relative; color: transparent; -webkit-text-stroke: 1.5px rgba(242, 237, 227, .38); }
.rs-old::after { content: ""; position: absolute; left: -4%; right: -4%; top: 52%; height: 5px; background: #c9705f; transform: scaleX(0); transform-origin: left; animation: rsStrike .9s .9s cubic-bezier(.22, 1, .36, 1) forwards; }
.rs-arrow { font-family: var(--serif-en); font-weight: 400; color: var(--gold); font-size: .46em; }
.rs-new { background: var(--leaf); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 10px 40px rgba(200, 164, 90, .28)); }
.rs-s-answer > .rs-p { margin-top: 26px; }
.rs-credits { width: min(560px, 92%); margin: 34px auto 0; padding: 26px 34px 24px; border-radius: 4px; background: linear-gradient(180deg, #131210, #0a0a0a); border: 1px solid rgba(200, 164, 90, .34); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.rs-cr-t { margin-bottom: 18px; text-align: center; font-family: var(--serif-en); font-size: 30px; color: var(--gold-hi); }
.rs-cr-t small { display: block; margin-top: 4px; font-family: var(--sans); font-size: 12px; color: var(--ash); letter-spacing: .12em; }
.rs-credits dl { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px 22px; margin: 0; font-size: 16px; }
.rs-credits dt { text-align: right; color: var(--ash); }
.rs-credits dd { margin: 0; color: var(--ivory); }
.rs-credits .rs-you { color: var(--gold-hi); font-weight: 700; }
.rs-type { display: inline-block; padding-right: 4px; border-right: 2px solid var(--gold-hi); animation: blink 1s steps(1) infinite; }

@keyframes rsStrike { to { transform: scaleX(1); } }

/* 飞轮 */
.rs-s-loop { text-align: center; }
.rs-wheel { position: relative; width: min(500px, 50vh); aspect-ratio: 1; margin: 56px auto 0; }
.rs-wheel svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rs-orbit { fill: none; stroke: rgba(200, 164, 90, .24); stroke-width: 1.5; }
.rs-orbit.dash { stroke: var(--gold); stroke-dasharray: 6 18; animation: rsDash 7s linear infinite; }
.rs-hub { position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-content: center; background: radial-gradient(circle at 35% 30%, #f6e9c4, #c8a45a 42%, #6b5225 90%); color: #1a1408; font-family: var(--serif-zh); font-weight: 900; font-size: clamp(18px, 1.8vw, 26px); box-shadow: 0 0 0 6px rgba(200, 164, 90, .12), 0 20px 60px rgba(200, 164, 90, .3); }
.rs-hub small { font-family: var(--serif-en); font-weight: 400; font-size: 13px; letter-spacing: .1em; }
.rs-node { position: absolute; width: 46%; padding: 14px 16px; border-radius: 14px; background: rgba(16, 15, 13, .94); border: 1px solid rgba(200, 164, 90, .32); }
.rs-node b { display: block; font-family: var(--serif-zh); font-size: clamp(22px, 2vw, 30px); }
.rs-node i { display: block; font-family: var(--serif-en); color: var(--gold); font-size: 15px; }
.rs-node span { display: block; margin-top: 4px; color: var(--smoke); font-size: 13.5px; }
.rs-node.n1 { left: 27%; top: -4%; }
.rs-node.n2 { left: 72%; top: 64%; }
.rs-node.n3 { left: -18%; top: 64%; }

@keyframes rsDash { to { stroke-dashoffset: -240; } }

/* 原理与护栏 */
.rs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rs-pr { padding: 20px 22px; border-radius: 14px; background: linear-gradient(160deg, rgba(31, 28, 24, .92), rgba(12, 12, 13, .92)); border: 1px solid rgba(200, 164, 90, .24); }
.rs-pr .m { font-family: var(--serif-zh); font-size: 14px; color: var(--gold); }
.rs-pr b { display: block; margin: 6px 0 8px; font-family: var(--serif-zh); font-size: clamp(22px, 2vw, 30px); }
.rs-pr p { margin: 0 0 12px; color: #d6d0c2; font-size: 14.5px; line-height: 1.7; }
.rs-pr em { font-style: normal; font-size: 13px; color: #a5dcb4; }
#rs-keynote .rs-grid .rs-pr:nth-child(2) { transition-delay: .12s; }
#rs-keynote .rs-grid .rs-pr:nth-child(3) { transition-delay: .24s; }
#rs-keynote .rs-grid .rs-pr:nth-child(4) { transition-delay: .36s; }
#rs-keynote .rs-grid .rs-pr:nth-child(5) { transition-delay: .48s; }
#rs-keynote .rs-grid .rs-pr:nth-child(6) { transition-delay: .6s; }

/* 团队入场 */
.rs-team { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px; margin: 40px auto 0; }
.rs-team .m { display: flex; align-items: center; gap: 9px; padding: 6px 16px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s cubic-bezier(.22, 1, .36, 1); }
.rs-team .m.in { opacity: 1; transform: none; }
.rs-team .m.anon { padding: 6px; }
.rs-team .m i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #111; font-style: normal; font-weight: 700; font-size: 13px; }
.rs-team .m b { font-size: 14.5px; }
.rs-team .m em { font-style: normal; font-size: 12.5px; color: var(--smoke); }

/* 商业模式 */
.rs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.rs-col h3 { margin: 0 0 12px; font-family: var(--serif-zh); font-size: clamp(24px, 2.2vw, 32px); }
.rs-col h3 i { margin-left: 12px; font-family: var(--sans); font-style: normal; font-weight: 400; font-size: 14px; color: var(--smoke); }
.rs-col ul { margin: 0; padding: 0; list-style: none; }
.rs-col li { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: clamp(15px, 1.3vw, 18px); }
.rs-col li span { color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.rs-stat { display: flex; justify-content: center; gap: 70px; margin-top: 38px; text-align: center; }
.rs-stat b { display: block; font-family: var(--serif-en); font-weight: 400; font-size: clamp(54px, 6vw, 98px); line-height: 1; background: var(--leaf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rs-stat .dim b { background: none; color: rgba(242, 237, 227, .32); }
.rs-stat span { display: block; margin-top: 10px; color: var(--smoke); font-size: 15px; }

/* 合规护城河 */
.rs-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 56px; max-width: 1000px; margin: 0 auto; padding: 0; list-style: none; }
.rs-checks li { position: relative; padding-left: 44px; font-family: var(--serif-zh); font-size: clamp(20px, 2vw, 29px); line-height: 1.35; }
.rs-checks li::before { content: "✓"; position: absolute; left: 0; top: .1em; width: 28px; height: 28px; border-radius: 50%; background: var(--leaf); color: #1a1408; font: 700 15px/28px var(--sans); text-align: center; }
#rs-keynote .rs-checks li:nth-child(even) { transition-delay: .15s; }

/* 路线图 */
.rs-road { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 46px 0 0; padding: 0; list-style: none; }
.rs-road::before { content: ""; position: absolute; left: 12%; right: 12%; top: 15px; height: 2px; background: linear-gradient(90deg, var(--gold), rgba(200, 164, 90, .18)); }
.rs-road li { position: relative; padding: 50px 16px 0; text-align: center; }
.rs-road li::before { content: ""; position: absolute; left: 50%; top: 6px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: #050505; border: 2px solid var(--gold); box-shadow: 0 0 0 6px rgba(200, 164, 90, .12); }
.rs-road li:first-child::before { background: var(--gold); }
.rs-road b { display: block; margin-bottom: 10px; font-family: var(--serif-en); font-weight: 400; font-size: clamp(22px, 2vw, 30px); color: var(--gold-hi); }
.rs-road span { color: var(--smoke); font-size: 15.5px; line-height: 1.75; }

/* 结尾 */
.rs-s-close .rs-word { font-size: clamp(54px, 7.4vw, 124px); }
.rs-end { display: flex; justify-content: center; gap: 14px; margin-top: 34px; }
.rs-btn { height: 46px; padding: 0 26px; border-radius: 999px; border: 1px solid rgba(200, 164, 90, .55); color: var(--gold-hi); font-size: 15px; pointer-events: auto; }
.rs-btn.gold { border: 0; background: var(--leaf); color: #1a1408; font-weight: 700; }
#rs-keynote .rs-end:not(.in) .rs-btn { pointer-events: none; }

/* ---------- 现场演示：左右面板 ---------- */
.rs-panel { position: absolute; z-index: 2; opacity: 0; transform: translateY(12px); transition: opacity .6s, transform .6s cubic-bezier(.22, 1, .36, 1); }
body.rs-demo:not(.rs-hud) .rs-panel:not(.off) { opacity: 1; transform: none; }
.rs-panel.off { display: none; }

.rs-dcard { padding: 24px 24px 22px; border-radius: 16px; background: linear-gradient(170deg, rgba(27, 25, 21, .95), rgba(10, 10, 11, .95)); border: 1px solid rgba(200, 164, 90, .3); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); opacity: 0; transform: translateX(-14px); transition: opacity .6s, transform .6s cubic-bezier(.22, 1, .36, 1); }
.rs-dcard.in { opacity: 1; transform: none; }
.rs-dcard .no { font-family: var(--serif-en); font-size: 46px; line-height: 1; color: var(--gold-hi); }
.rs-dcard .no span { margin-left: 6px; font-size: 16px; color: var(--ash); }
.rs-dcard h3 { margin: 10px 0 16px; font-family: var(--serif-zh); font-size: clamp(22px, 1.9vw, 28px); }
.rs-dcard h3 i { display: block; margin-top: 2px; font-family: var(--serif-en); font-weight: 400; font-size: 15px; color: var(--gold); }
.rs-dcard .laws { display: grid; gap: 8px; margin-bottom: 14px; }
.rs-dcard .law { padding: 10px 12px; border-radius: 10px; background: rgba(200, 164, 90, .08); border: 1px solid rgba(200, 164, 90, .2); }
.rs-dcard .law b { display: block; font-family: var(--serif-zh); font-size: 15.5px; }
.rs-dcard .law span { font-family: var(--serif-en); font-style: italic; font-size: 12.5px; color: var(--smoke); }
.rs-dcard .body { margin: 0 0 14px; color: #d8d2c4; font-size: 14px; line-height: 1.8; }
.rs-dcard .guards { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rs-dcard .guards .lbl { margin-right: 2px; color: var(--ash); font-size: 12px; }
.rs-dcard .guards .g { padding: 3px 9px; border-radius: 999px; font-size: 12px; color: #a5dcb4; background: rgba(127, 191, 146, .1); border: 1px solid rgba(127, 191, 146, .26); }

#rs-right { display: flex; flex-direction: column; gap: 12px; }
.rs-editor { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: #0b0b0d; border: 1px solid rgba(200, 164, 90, .22); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.rs-ed-top { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; flex: none; border-bottom: 1px solid rgba(255, 255, 255, .06); color: var(--smoke); font-size: 12px; }
.rs-ed-top > i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3e; }
.rs-ed-top .file { margin-left: 8px; color: var(--ivory); font-family: "SF Mono", Menlo, Consolas, monospace; }
.rs-ed-top .who { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.rs-ed-top .who i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.rs-code { flex: 1; min-height: 0; margin: 0; padding: 12px 0; overflow: hidden; font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 11.5px; line-height: 1.68; color: #cfcab9; }
.rs-code .ln { position: relative; padding: 0 12px 0 46px; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.rs-code .ln::before { content: attr(data-n); position: absolute; left: 0; width: 32px; text-align: right; color: #4c483f; }
.rs-code .ln:last-child::after { content: ""; display: inline-block; width: 7px; height: 13px; margin-left: 1px; vertical-align: -2px; background: var(--gold-hi); animation: blink 1s steps(1) infinite; }
.rs-code i { font-style: normal; }
.rs-code .k { color: #d19bff; }
.rs-code .s { color: #c3e88d; }
.rs-code .c { color: #6b6658; font-style: italic; }
.rs-code .n { color: #f7a46c; }
.rs-code .f { color: #8ab4ff; }
.rs-console { flex: none; height: 176px; padding: 10px 12px; overflow: hidden; border-radius: 12px; background: rgba(9, 9, 10, .94); border: 1px solid rgba(200, 164, 90, .18); font: 11.5px/1.75 "SF Mono", Menlo, Consolas, monospace; }
.rs-log { display: flex; gap: 10px; animation: fadeIn .3s; }
.rs-log b { flex: none; width: 88px; font-weight: 600; }
.rs-log span { flex: 1; min-width: 0; color: #cfcab9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-log em { flex: none; font-style: normal; color: #34d399; }
.rs-log em.run { color: var(--gold); }

/* ---------- 搭建画布、选框、点击涟漪、光标 ---------- */
#rs-paint { position: absolute; z-index: 3; }
#rs-marks { position: absolute; inset: 0; z-index: 4; }
.rs-ripple { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid var(--c); animation: rsRipple .65s ease-out forwards; }
.rs-sel { position: absolute; border: 1.5px solid var(--c); border-radius: 4px; background: color-mix(in srgb, var(--c) 8%, transparent); animation: fadeIn .25s; transition: opacity .35s; }
.rs-sel.out { opacity: 0; }
.rs-sel i { position: absolute; width: 7px; height: 7px; background: #fff; border: 1.5px solid var(--c); }
.rs-sel i:nth-child(1) { left: -4px; top: -4px; }
.rs-sel i:nth-child(2) { right: -4px; top: -4px; }
.rs-sel i:nth-child(3) { left: -4px; bottom: -4px; }
.rs-sel i:nth-child(4) { right: -4px; bottom: -4px; }
.rs-sel span { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 7px); padding: 2px 9px; border-radius: 4px; background: var(--c); color: #111; font-size: 11.5px; font-weight: 700; line-height: 17px; white-space: nowrap; }

#rs-cursors { position: absolute; inset: 0; z-index: 5; transition: opacity .45s; }
body.rs-nocur #rs-cursors { opacity: 0; }
.rs-cur { position: absolute; left: 0; top: 0; will-change: transform; }
.rs-cur svg { position: absolute; left: -3px; top: -3px; display: none; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); transition: transform .08s; }
.rs-cur[data-tool="arrow"] .ar, .rs-cur:not([data-tool]) .ar, .rs-cur[data-tool="cross"] .cr, .rs-cur[data-tool="ibeam"] .ib { display: block; }
.rs-cur[data-tool="cross"] .cr, .rs-cur[data-tool="ibeam"] .ib { left: -11px; top: -11px; }
.rs-cur.press svg { transform: scale(.8); }
.rs-cur .tag { position: absolute; left: 17px; top: 19px; padding: 2px 8px; border-radius: 6px; background: var(--c); color: #111; font-size: 11px; font-weight: 700; line-height: 16px; white-space: nowrap; box-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.rs-cur.anon .tag { display: none; }

@keyframes rsRipple { to { transform: scale(5); opacity: 0; } }

/* ---------- 字幕与控制条 ---------- */
#rs-cap { position: absolute; z-index: 6; left: 50%; bottom: 78px; width: min(1060px, calc(100vw - 80px)); transform: translateX(-50%); text-align: center; opacity: 0; transition: opacity .4s; }
#rs-cap.in { opacity: 1; }
#rs-cap .who { display: inline-block; margin-bottom: 6px; font-family: var(--serif-en); font-style: italic; font-size: 13px; color: var(--gold); }
body.rs-paused #rs-cap .who::after { content: "　· 已暂停"; color: var(--smoke); }
#rs-cap .t { margin: 0; font-family: var(--serif-zh); font-size: clamp(18px, 1.55vw, 24px); line-height: 1.62; color: rgba(242, 237, 227, .38); text-shadow: 0 2px 14px rgba(0, 0, 0, .95), 0 0 2px rgba(0, 0, 0, .9); }
#rs-cap .t span { transition: color .18s; }
#rs-cap .t span.on { color: var(--ivory); }
body.rs-demo #rs-cap .t { max-width: 900px; margin: 0 auto; }

#rs-bar { position: absolute; z-index: 7; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 12px; border-radius: 14px; background: rgba(20, 19, 17, .94); border: 1px solid rgba(200, 164, 90, .28); box-shadow: 0 14px 40px rgba(0, 0, 0, .6); backdrop-filter: blur(10px); color: var(--smoke); font-size: 12.5px; white-space: nowrap; pointer-events: auto !important; }
#rs-bar .avs { display: flex; padding-left: 5px; }
#rs-bar .avs i { width: 20px; height: 20px; margin-left: -5px; border-radius: 50%; border: 2px solid #141311; background: var(--c); color: #111; font-style: normal; font-weight: 700; font-size: 10px; line-height: 16px; text-align: center; }
#rs-bar .cnt b { color: var(--ivory); font-weight: 600; }
#rs-bar .sep { width: 1px; height: 18px; background: rgba(255, 255, 255, .12); }
#rs-bar .chap { max-width: 230px; overflow: hidden; text-overflow: ellipsis; color: var(--ivory); }
#rs-bar .chap i { margin-right: 8px; font-family: var(--serif-en); font-style: italic; color: var(--gold); }
#rs-bar .prog { width: 120px; height: 3px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .12); }
#rs-bar .prog i { display: block; width: 0; height: 100%; background: var(--leaf); }
#rs-bar button { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--ivory); }
#rs-bar button:hover { background: rgba(255, 255, 255, .08); }
#rs-bar button:focus-visible { outline: 2px solid var(--gold-hi); }

/* 大屏 HUD 章节：只留字幕、控制条和光标 */
body.rs-hud #rs-cap { bottom: 74px; }

/* ---------- 窄屏 ---------- */
@media (max-width: 1100px) {
  .rs-panel { display: none !important; }
  .rs-s-why, .rs-s-problem { grid-template-columns: 1fr; gap: 28px; }
  .rs-grid { grid-template-columns: 1fr 1fr; }
  .rs-stage { inset: 96px 5vw 170px; }
}

@media (max-width: 760px) {
  .rs-stage { inset: 80px 18px 150px; overflow: auto; }
  .rs-cards, .rs-grid, .rs-two, .rs-checks { grid-template-columns: 1fr; }
  .rs-road { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  #rs-bar .avs, #rs-bar .cnt, #rs-bar .sep, #rs-bar .prog { display: none; }
  .rs-top { left: 24px; right: 24px; top: 30px; }
  .rs-frame { inset: 12px; }
}
.rs-act i, #rs-bar .chap i { font-style: normal; }
