/* 视频复刻页 · 云游AI原创 UGC 1.0 设计（线上嵌入版）
   所有规则都限定在 #video-replication-page 内，类名加 rc- 前缀，避免影响工作台其它页面 */
#video-replication-page{
  --rc-ink:#171b22;--rc-muted:#737d8d;--rc-soft:#a0aabb;--rc-line:#dfe4eb;--rc-blue:#3f6df6;--rc-blue-soft:#eef2ff;--rc-green:#effcf9;
  --rc-shadow:0 18px 42px rgba(40,52,77,.09);
  background:#edf0f4;color:var(--rc-ink);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Microsoft YaHei",sans-serif;
  min-width:320px;
}
#video-replication-page *{box-sizing:border-box}
#video-replication-page button,#video-replication-page input,#video-replication-page textarea,#video-replication-page select{font:inherit}
#video-replication-page button{cursor:pointer}

#video-replication-page .rc-page{padding:28px 20px 48px}
#video-replication-page .rc-app{width:min(1500px,100%);margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 450px;gap:24px;align-items:start}
#video-replication-page .rc-panel{min-width:0;background:rgba(255,255,255,.96);border:1px solid #e0e5ec;border-radius:20px;box-shadow:var(--rc-shadow);overflow:hidden}
#video-replication-page .rc-panel-head{min-height:105px;padding:22px 26px 18px;border-bottom:1px solid var(--rc-line);display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
#video-replication-page .rc-panel-head h1,#video-replication-page .rc-panel-head h2{margin:0;font-size:25px;line-height:1.16;letter-spacing:-.045em;font-weight:760}
#video-replication-page .rc-panel-head h2{font-size:24px}
#video-replication-page .rc-panel-head p{margin:7px 0 0;color:var(--rc-muted);font-size:14px;line-height:1.55}
#video-replication-page .rc-btn{min-height:43px;padding:0 18px;border:1px solid var(--rc-line);border-radius:12px;background:#fff;color:#27303b;font-weight:680}
#video-replication-page .rc-btn.rc-btn-blue{border-color:#bdcaff;background:#eef2ff;color:var(--rc-blue)}
#video-replication-page .rc-btn.rc-btn-primary{border-color:#111827;background:#101827;color:#fff}
#video-replication-page .rc-btn.rc-btn-small{min-height:36px;padding:0 12px;font-size:12px}
#video-replication-page .rc-btn:disabled{opacity:.45;cursor:not-allowed}

#video-replication-page .rc-chat-panel{display:grid;grid-template-rows:auto 1fr auto;min-height:720px}
#video-replication-page .rc-chat-scroll{min-height:500px;padding:24px 26px;display:flex;flex-direction:column;background:linear-gradient(180deg,rgba(249,250,252,.5),rgba(255,255,255,.3));overflow:auto}
#video-replication-page .rc-skill-card{max-width:95%;border:1px solid var(--rc-line);border-radius:17px;padding:17px 19px;background:rgba(255,255,255,.78);color:#707b8c;font-size:16px;line-height:1.72}
#video-replication-page .rc-skill-card strong{display:block;color:#6b7585;margin-bottom:10px;font-size:16px;font-weight:500}
#video-replication-page .rc-chat-empty{flex:1;display:grid;place-items:center;color:#b1bac7;font-size:13px;text-align:center}
#video-replication-page .rc-chat-empty span{display:block;font-size:38px;margin-bottom:9px;opacity:.6}
#video-replication-page .rc-message-list{display:grid;gap:14px;margin-top:14px}
#video-replication-page .rc-message{display:flex;gap:10px;align-items:flex-start}
#video-replication-page .rc-message.user{justify-content:flex-end}
#video-replication-page .rc-avatar-small{width:30px;height:30px;display:grid;place-items:center;flex:none;border-radius:10px;background:#111827;color:#fff;font-size:12px;font-weight:800}
#video-replication-page .rc-message.user .rc-avatar-small{background:#6f7df4}
#video-replication-page .rc-bubble{max-width:min(82%,680px);padding:12px 14px;border-radius:15px;background:#f4f6f9;color:#3d4756;font-size:14px;line-height:1.65;white-space:pre-wrap;word-break:break-word}
#video-replication-page .rc-message.user .rc-bubble{background:#eff2ff;border:1px solid #d9e0ff}
#video-replication-page .rc-bubble.rc-bubble-think{background:#f4f7ff;border:1px solid #e3e9fb;color:#5a6a8a}
#video-replication-page .rc-think-label{display:block;font-size:12px;font-weight:800;color:#6b7cea;margin-bottom:6px}
#video-replication-page .rc-import-prompt{display:block;margin-top:9px;border:0;border-radius:10px;background:#111827;color:#fff;font-size:12px;font-weight:700;padding:7px 13px}

#video-replication-page .rc-composer{border-top:1px solid var(--rc-line);padding:18px 26px 20px;background:rgba(255,255,255,.72)}
#video-replication-page .rc-composer-box{display:grid;grid-template-columns:42px minmax(0,1fr) auto;grid-template-rows:auto auto;gap:10px;align-items:end;border:1px solid var(--rc-line);border-radius:16px;background:#fff;padding:12px}
#video-replication-page .rc-composer-box:focus-within{border-color:#9eafff;box-shadow:0 0 0 4px rgba(63,109,246,.1)}
#video-replication-page .rc-composer-box textarea{display:block;width:100%;min-height:96px;resize:vertical;padding:6px 2px;border:0;outline:0;line-height:1.65;font-size:15px;color:var(--rc-ink)}
#video-replication-page .rc-composer-add{width:42px;height:42px;align-self:start;border:1px dashed #c6d0de;border-radius:12px;background:#fff;color:#27bfd7;font-size:24px;line-height:1}
#video-replication-page .rc-file-strip{grid-column:1/-1;display:flex;gap:9px;flex-wrap:wrap;padding-top:2px}
#video-replication-page .rc-file-chip{position:relative;width:84px;height:84px;border:1px solid #dbe2ea;border-radius:10px;overflow:hidden;background:#fff;cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
#video-replication-page .rc-file-chip:hover,#video-replication-page .rc-file-chip:focus-visible{border-color:#9eafff;box-shadow:0 4px 16px rgba(63,109,246,.16);transform:translateY(-1px);outline:0}
#video-replication-page .rc-file-chip img,#video-replication-page .rc-file-chip video{width:100%;height:100%;object-fit:cover}
#video-replication-page .rc-file-chip span{position:absolute;left:0;right:0;bottom:0;padding:3px 4px;background:linear-gradient(transparent,rgba(0,0,0,.7));color:#fff;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#video-replication-page .rc-file-chip button{position:absolute;top:4px;right:4px;width:20px;height:20px;border:0;border-radius:50%;background:rgba(17,24,39,.75);color:#fff;opacity:0;z-index:2}
#video-replication-page .rc-file-chip:hover button,#video-replication-page .rc-file-chip:focus-within button{opacity:1}
#video-replication-page .rc-send{align-self:end;margin-bottom:6px;min-width:86px}

#video-replication-page .rc-video-panel{min-height:720px;display:flex;flex-direction:column;align-self:start;position:sticky;top:20px;max-height:calc(100vh - 40px)}
#video-replication-page .rc-video-body{flex:1;min-height:0}
#video-replication-page .rc-video-body{padding:20px 22px 23px;display:grid;gap:14px;overflow:auto}
#video-replication-page .rc-field > label{display:block;margin-bottom:7px;font-size:14px;font-weight:760}
#video-replication-page .rc-field{display:grid;gap:6px}
#video-replication-page .rc-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#video-replication-page .rc-three{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}
#video-replication-page .rc-duration-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;padding:0 4px}
#video-replication-page .rc-duration-row input[type="range"]{width:100%;accent-color:#111827;cursor:pointer}
#video-replication-page .rc-duration-value{min-width:112px;text-align:right;font-size:14px;font-weight:760;color:#111827;background:#f1fffd;border:1px solid #8ad8ce;border-radius:10px;padding:8px 10px}
#video-replication-page .rc-duration-hint{font-size:12px;color:#8e99a9;padding-left:4px}
#video-replication-page .rc-input,#video-replication-page .rc-select,#video-replication-page .rc-prompt-area{width:100%;border:1px solid var(--rc-line);border-radius:12px;background:#fff;color:var(--rc-ink);outline:0}
#video-replication-page .rc-select{height:48px;padding:0 13px;font-size:15px}
#video-replication-page .rc-prompt-area{min-height:165px;padding:13px 14px;resize:vertical;line-height:1.65;font-size:14px}
#video-replication-page .rc-upload-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
#video-replication-page .rc-upload-box{position:relative;min-height:136px;padding:16px 10px;border:1.5px dashed #c6d0de;border-radius:14px;background:rgba(255,255,255,.7);display:grid;place-items:center;text-align:center;color:#8e99a9;overflow:hidden}
#video-replication-page .rc-upload-box input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
#video-replication-page .rc-plus{width:35px;height:35px;display:grid;place-items:center;margin:0 auto 8px;border-radius:50%;background:#111827;color:#fff;font-size:23px;line-height:1}
#video-replication-page .rc-upload-box strong{display:block;color:#333b48;font-size:14px}
#video-replication-page .rc-upload-box span{display:block;margin-top:4px;font-size:12px}
#video-replication-page .rc-upload-box.has{border-style:solid;border-color:#8ad8ce;background:#f1fffd}
#video-replication-page .rc-slot-strip{display:flex;gap:10px;flex-wrap:wrap;padding:11px 12px;border:1px solid var(--rc-line);border-radius:14px;background:rgba(255,255,255,.85)}
#video-replication-page .rc-slot-chip{position:relative;display:flex;align-items:center;gap:9px;min-width:0;max-width:230px;padding:7px 34px 7px 8px;border:1px solid #dbe2ea;border-radius:11px;background:#fff}
#video-replication-page .rc-slot-chip img,#video-replication-page .rc-slot-chip video{width:44px;height:44px;flex:none;border-radius:7px;object-fit:cover;background:#f0f3f8}
#video-replication-page .rc-slot-chip-audio{width:44px;height:44px;flex:none;display:grid;place-items:center;border-radius:7px;background:#eef2ff;color:#6b7cea;font-size:22px;font-weight:800}
#video-replication-page .rc-slot-chip-meta{min-width:0;display:grid;gap:2px}
#video-replication-page .rc-slot-chip-meta span{font-size:12px;color:#3d4756;font-weight:680;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#video-replication-page .rc-slot-chip-remove{position:absolute;top:6px;right:6px;width:22px;height:22px;border:0;border-radius:50%;background:rgba(17,24,39,.78);color:#fff;font-size:13px;line-height:1}
#video-replication-page .rc-slot-chip-remove:hover{background:#111827}
#video-replication-page .rc-thumbs{display:flex;gap:5px;justify-content:center;margin-top:7px;max-width:100%;overflow:hidden}
#video-replication-page .rc-thumbs img{width:39px;height:39px;border-radius:6px;object-fit:cover}
#video-replication-page .rc-action-row{display:grid;grid-template-columns:1fr 1fr;gap:11px}
#video-replication-page .rc-status{padding:13px 14px;border:1px solid #bde8e2;border-radius:14px;background:var(--rc-green);color:#5f6d7c;font-size:13px;line-height:1.55}
#video-replication-page .rc-status strong{display:block;color:#3e847c;font-size:14px;margin-bottom:3px}
#video-replication-page .rc-status.is-error{border-color:#f0c3c3;background:#fdf2f2}
#video-replication-page .rc-status.is-error strong{color:#b54747}
#video-replication-page .rc-bar{height:8px;margin-top:10px;border-radius:999px;background:#dceaf0;overflow:hidden}
#video-replication-page .rc-bar i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#4ecbbd,#72a2ff);transition:width .3s ease}
#video-replication-page .rc-bar i.rc-is-active{animation:rcBarPulse 1.6s ease-in-out infinite}
@keyframes rcBarPulse{0%{width:12%}50%{width:76%}100%{width:12%}}
#video-replication-page .rc-notice{color:#99a4b4;font-size:11px;line-height:1.55;margin:0}
#video-replication-page .rc-hidden{display:none!important}

#video-replication-page .rc-output{border:1px solid var(--rc-line);border-radius:14px;background:#fff;padding:14px;display:grid;gap:10px}
#video-replication-page .rc-output-head{display:flex;align-items:center;justify-content:space-between}
#video-replication-page .rc-output-head strong{font-size:14px;color:#27303b}
#video-replication-page .rc-output-head a{font-size:12px;color:var(--rc-blue);text-decoration:none;font-weight:700}
#video-replication-page .rc-output video{width:100%;max-height:380px;border-radius:10px;background:#0b0f17;display:block}
#video-replication-page .rc-output-empty{color:#8e99a9;font-size:12px;text-align:center;margin:6px 0}

#video-replication-page .rc-message-attachments{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
#video-replication-page .rc-message-attachment{position:relative;width:86px;height:86px;padding:0;border:1px solid #d8e0eb;border-radius:10px;overflow:hidden;background:#fff;cursor:pointer}
#video-replication-page .rc-message-attachment:hover,#video-replication-page .rc-message-attachment:focus-visible{border-color:#9eafff;box-shadow:0 3px 12px rgba(63,109,246,.18);outline:0}
#video-replication-page .rc-message-attachment img,#video-replication-page .rc-message-attachment video{width:100%;height:100%;object-fit:cover;display:block}
#video-replication-page .rc-message-attachment span{position:absolute;left:0;right:0;bottom:0;padding:3px 4px;background:linear-gradient(transparent,rgba(0,0,0,.72));color:#fff;font-size:10px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#video-replication-page .rc-preview-modal{position:fixed;inset:0;z-index:5000;display:grid;place-items:center;padding:24px;background:rgba(9,14,25,.72);backdrop-filter:blur(5px)}
#video-replication-page .rc-preview-modal[hidden]{display:none}
#video-replication-page .rc-preview-dialog{width:min(900px,100%);max-height:min(90vh,820px);display:grid;grid-template-rows:auto 1fr;border:1px solid rgba(255,255,255,.2);border-radius:18px;background:#101827;box-shadow:0 24px 70px rgba(0,0,0,.35);overflow:hidden}
#video-replication-page .rc-preview-head{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;color:#fff;border-bottom:1px solid rgba(255,255,255,.12)}
#video-replication-page .rc-preview-head strong{font-size:14px}
#video-replication-page .rc-preview-close{width:30px;height:30px;border:0;border-radius:50%;background:rgba(255,255,255,.13);color:#fff;font-size:22px;line-height:1}
#video-replication-page .rc-preview-media{min-height:180px;display:grid;place-items:center;padding:18px;overflow:auto}
#video-replication-page .rc-preview-media img,#video-replication-page .rc-preview-media video{display:block;max-width:100%;max-height:calc(90vh - 100px);border-radius:10px;background:#05080d;object-fit:contain}
#video-replication-page .rc-preview-media video{width:min(780px,100%)}

#video-replication-page .rc-toast{position:fixed;left:50%;bottom:22px;transform:translate(-50%,12px);padding:11px 15px;border-radius:10px;background:#172033;color:#fff;font-size:13px;opacity:0;pointer-events:none;transition:.2s;z-index:4000}
#video-replication-page .rc-toast.show{opacity:1;transform:translate(-50%,0)}

@media(max-width:980px){
  #video-replication-page .rc-app{grid-template-columns:1fr}
  #video-replication-page .rc-chat-panel,#video-replication-page .rc-video-panel{min-height:0}
  #video-replication-page .rc-video-panel{order:2}
  #video-replication-page .rc-chat-scroll{min-height:430px}
  #video-replication-page .rc-upload-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:600px){
  #video-replication-page .rc-page{padding:16px 8px 30px}
  #video-replication-page .rc-panel-head{padding:17px 15px 14px;min-height:82px}
  #video-replication-page .rc-panel-head h1,#video-replication-page .rc-panel-head h2{font-size:20px}
  #video-replication-page .rc-panel-head p{font-size:12px}
  #video-replication-page .rc-chat-scroll{padding:16px 14px;min-height:340px}
  #video-replication-page .rc-skill-card{max-width:100%;padding:14px;font-size:14px}
  #video-replication-page .rc-composer{padding:13px 14px 15px}
  #video-replication-page .rc-composer-box{grid-template-columns:36px 1fr;padding:10px}
  #video-replication-page .rc-composer-box .rc-send{grid-column:2;min-height:40px}
  #video-replication-page .rc-composer-add{width:36px;height:36px}
  #video-replication-page .rc-video-body{padding:15px 14px 17px}
  #video-replication-page .rc-two,#video-replication-page .rc-three,#video-replication-page .rc-upload-grid,#video-replication-page .rc-action-row{grid-template-columns:1fr}
  #video-replication-page .rc-upload-box{min-height:110px}
}

/* bootstrap 加载失败时的提示（宿主页面内） */
.video-replication-load-error{color:#8a94a6;font-size:14px;padding:60px 24px;text-align:center;background:#fff;border-radius:16px;margin:24px}
#video-replication-page .rc-guided-status{display:flex;flex-direction:column;gap:4px;margin-top:14px;padding:12px 15px;border:1px solid #dfe6f5;border-radius:13px;background:#f6f8ff;color:#66758b;font-size:12px;line-height:1.55}
#video-replication-page .rc-guided-status strong{color:#526bd1;font-size:13px}
