/* 一键成片(2026-10-03):手机整屏、电脑居中一块(和发布弹窗同一层级之上) */
.reel-sheet { position: fixed; inset: 0; z-index: 10050; /* 要压在发布弹窗(10001)上面 */ background: rgba(0, 0, 0, .45); display: none; align-items: center; justify-content: center; }
.reel-sheet.show { display: flex; }
html.reel-open body { overflow: hidden; }
.reel-panel { width: 100%; max-width: 680px; height: 100%; max-height: 100%; background: #fff; display: flex; flex-direction: column; }
@media (min-width: 769px) { .reel-panel { height: auto; max-height: 92vh; border-radius: 16px; overflow: hidden; } }
.reel-head { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 8px; padding-top: env(safe-area-inset-top); border-bottom: 1px solid #eee; }
.reel-back { width: 44px; height: 44px; border: 0; background: none; font-size: 34px; line-height: 1; color: #222; cursor: pointer; }
.reel-title { flex: 1; margin: 0; text-align: center; font-size: 19px; font-weight: 800; color: #1d1d1f; }
.reel-head-r { width: 44px; }
.reel-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 16px; }
.reel-foot { flex: 0 0 auto; display: flex; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #eee; background: #fff; }
.reel-sec { display: block; margin: 0 0 22px; }
.reel-sec-t { display: block; font-size: 17px; font-weight: 800; color: #1d1d1f; margin-bottom: 10px; }
.reel-count { font-size: 15px; font-weight: 700; color: #888; margin-left: 6px; }
.reel-hint { margin: -4px 0 10px; font-size: 15px; font-weight: 600; color: #B4501A; }
.reel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 560px) { .reel-grid { grid-template-columns: repeat(5, 1fr); } }
.reel-tile, .reel-add { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #f2f3f5; }
.reel-tile img, .reel-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-vid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.reel-no { position: absolute; left: 6px; top: 6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; font-weight: 800; line-height: 22px; text-align: center; }
.reel-x { position: absolute; right: 2px; top: 2px; width: 36px; height: 36px; border: 0; background: none; cursor: pointer; }
.reel-x::before { content: '×'; position: absolute; right: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; font-size: 18px; line-height: 24px; text-align: center; }
.reel-x { font-size: 0; }
.reel-tag { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 32px; border: 0; border-radius: 8px; font-size: 15px; font-weight: 800; cursor: pointer; }
.reel-tag.tag-none { background: rgba(255, 255, 255, .92); color: #555; }
.reel-tag.tag-before { background: #5B6475; color: #fff; }
.reel-tag.tag-after { background: #FF6E30; color: #fff; }
.reel-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 2px dashed #d0d4da; background: #fafafa; cursor: pointer; font-size: 15px; font-weight: 700; color: #555; }
.reel-plus { font-size: 30px; line-height: 1; color: #888; }
.reel-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.reel-chip { min-height: 44px; padding: 0 16px; border: 2px solid #e3e5e8; border-radius: 22px; background: #fff; font-size: 16px; font-weight: 800; color: #333; cursor: pointer; }
.reel-chip.on { border-color: #FF6E30; background: #FFF1EA; color: #C94A12; }
.reel-chip:disabled { opacity: .55; cursor: default; }
.reel-end { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1.5px solid #eee; border-radius: 12px; cursor: pointer; }
.reel-end .reel-sec-t { margin: 0 0 2px; }
.reel-end-s { display: block; font-size: 15px; font-weight: 600; color: #666; }
.reel-switch { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 52px; height: 32px; border-radius: 16px; background: #d0d4da; position: relative; cursor: pointer; transition: background .2s; }
.reel-switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: left .2s; }
.reel-switch:checked { background: #FF6E30; }
.reel-switch:checked::after { left: 23px; }
.reel-caps { display: flex; flex-direction: column; gap: 8px; }
.reel-cap { display: flex; align-items: center; gap: 8px; }
.reel-cap-no { flex: 0 0 26px; height: 26px; border-radius: 13px; background: #f2f3f5; font-size: 14px; font-weight: 800; color: #555; text-align: center; line-height: 26px; }
.reel-cap input { flex: 1; min-width: 0; min-height: 46px; padding: 0 12px; border: 1.5px solid #ddd; border-radius: 10px; font-size: 16px; font-weight: 600; color: #222; }
.reel-cap input:focus { outline: none; border-color: #FF6E30; }
.reel-prog { margin: 4px 0 18px; padding: 16px; border-radius: 12px; background: #FFF6F0; }
.reel-bar { height: 10px; border-radius: 5px; background: #FFE0CF; overflow: hidden; }
.reel-bar i { display: block; height: 100%; background: #FF6E30; border-radius: 5px; transition: width .6s; }
.reel-prog-t { margin-top: 10px; font-size: 17px; font-weight: 800; color: #B4501A; }
.reel-prog-s { margin-top: 4px; font-size: 15px; font-weight: 600; color: #7a5a48; line-height: 1.5; }
.reel-out { margin: 0 auto 20px; max-width: 360px; border-radius: 12px; overflow: hidden; background: #000; }
.reel-out video { display: block; width: 100%; max-height: 60vh; }
.reel-err { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: #D93025; }
.reel-btn { flex: 1; min-height: 52px; border-radius: 12px; border: 0; font-size: 17px; font-weight: 800; cursor: pointer; }
.reel-main { background: #FF6E30; color: #fff; }
.reel-main:disabled { background: #F5B898; cursor: default; }
.reel-sub { background: #fff; color: #C94A12; border: 2px solid #F5C3A8; }
.reel-sub:disabled { color: #bbb; border-color: #eee; cursor: default; }

/* 发布视频表单里的「一键成片」方块(和「视频编辑」方块并排) */
.pv-reel { width: 100%; height: 100%; border: 0; border-radius: 10px; background: linear-gradient(135deg, #FFF1EA, #FFE3D3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; color: #C94A12; }
.pv-reel-ico { width: 28px; height: 28px; }
.pv-reel-t { font-size: 15px; font-weight: 800; }
.pv-reel-s { font-size: 12px; font-weight: 700; color: #B4501A; text-align: center; padding: 0 4px; }
#reelTile.is-busy .pv-reel-s { color: #FF6E30; }
/* 没标的按顺序自动(前一半之前、后一半之后):虚线边表示「自动」,点一下就变成商家自己标的 */
.reel-tag.is-auto { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); opacity: .82; border: 2px dashed rgba(255, 255, 255, .9); }
.reel-tag:disabled { cursor: default; }
/* 发布图文里的入口:一条横按钮 */
.reel-inline { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin-top: 12px; border: 2px solid #F5C3A8; border-radius: 12px; background: #FFF6F0; color: #C94A12; font-size: 16px; font-weight: 800; cursor: pointer; }
.reel-inline-ico { width: 24px; height: 24px; border-radius: 50%; background: #FF6E30; color: #fff; font-size: 11px; line-height: 24px; text-align: center; }
/* 10-03 b60264b0:服务端跳过的非施工图(logo / 截图 / 纯文字图)格子变灰;没标的显示「AI 判断」 */
.reel-tile.is-skip img, .reel-tile.is-skip video { filter: grayscale(1); opacity: .4; }
.reel-tile.is-skip .reel-tag { display: none; }
.reel-skip { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: #666; }
.reel-tag.tag-none.is-auto { background: rgba(255, 255, 255, .92); color: #555; border-color: #c9ccd1; opacity: 1; box-shadow: none; }
/* 10-03 只有切到「前后对比」才有的小入口;智能模式做好后显示实际用的风格 */
.reel-adjust { display: inline-block; margin: 0 0 10px; padding: 8px 2px; border: 0; background: none; font-size: 15px; font-weight: 800; color: #C94A12; text-decoration: underline; cursor: pointer; }
.reel-used { margin: -2px 0 10px; font-size: 15px; font-weight: 700; color: #1F7A3F; }

/* 10-04 晚 Vivian:一键成片不单独占入口 —— 后台生成时进度显示在视频框里(reel.js refreshTile) */
.pv-video-empty.is-reel .pv-plus, .pv-video-empty.is-reel .pv-tile-t { display: none; }
.pv-reel-prog { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 6px; color: #C94A12; font-size: 13px; font-weight: 700; text-align: center; }
.pv-reel-prog b { font-size: 15px; font-weight: 800; }
.pv-reel-prog[hidden], .reel-inline[hidden], .img-tools[hidden] { display: none; }
/* 图文照片下面的「打码」方块(和视频的「视频编辑」方块一个样子);打过码显示「已打码」 */
.img-tools { margin-top: 12px; }
.pv-blur-s { font-size: 12px; font-weight: 700; }
.pv-blur-s:empty { display: none; }

/* 10-04 晚 图文打码页(web/js/photo-blur.js;外壳用上面的 .reel-sheet / .reel-panel)—— 头像、羽化椭圆、框和视频编辑「打码」页一个样子 */
.pb-done { flex: 0 0 auto; min-width: 64px; height: 40px; padding: 0 14px; border: 0; border-radius: 20px; background: var(--primary-color, #F58C45); color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; }
.pb-done:disabled { opacity: .5; cursor: default; }
.pb-sec { padding: 0 0 14px; }
.pb-sec + .pb-sec { border-top: 1px solid #f0f0f0; padding-top: 14px; }
.pb-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; font-size: 17px; font-weight: 800; color: #1d1d1f; }
.pb-tip { margin: 8px 0 0; font-size: 15px; font-weight: 600; color: #666; }
.pb-tip-on { color: var(--primary-color, #F58C45); font-weight: 700; }
.pb-link { padding: 6px 4px; border: 0; background: none; color: var(--primary-color, #F58C45); font-size: 15px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.pb-add { flex: 0 0 auto; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--primary-color, #F58C45); border-radius: 20px; background: #fff7f2; color: var(--primary-color, #F58C45); font-size: 15px; font-weight: 700; cursor: pointer; }
.pb-add:disabled { opacity: .5; }
.pb-faces { display: flex; gap: 12px; overflow-x: auto; padding: 12px 2px 4px; scrollbar-width: none; }
.pb-faces::-webkit-scrollbar { display: none; }
.pb-face { position: relative; flex: 0 0 auto; width: 64px; padding: 0; border: 0; background: none; cursor: pointer; text-align: center; }
.pb-face img { display: block; width: 60px; height: 60px; margin: 0 auto; border-radius: 50%; object-fit: cover; border: 3px solid #d0d4da; filter: grayscale(1); opacity: .55; background: #eee; }
.pb-face.on img { border-color: var(--primary-color, #F58C45); filter: none; opacity: 1; }
.pb-face-ck { position: absolute; right: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: #c7cbd1; color: #fff; font-size: 13px; font-weight: 800; font-style: normal; line-height: 22px; }
.pb-face.on .pb-face-ck { background: var(--primary-color, #F58C45); }
.pb-face-t { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: #777; }
.pb-photos { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.pb-ph { position: relative; border-radius: 10px; overflow: hidden; background: #f2f3f5; }
.pb-ph img { display: block; width: 100%; height: auto; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.pb-layer { position: absolute; inset: 0; }
.pb-layer.drawing { cursor: crosshair; touch-action: none; background: rgba(0, 0, 0, .18); }
.pb-fblur {
    position: absolute; border-radius: 50%; pointer-events: none;
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); background: rgba(128, 128, 128, .12);
    -webkit-mask-image: radial-gradient(closest-side, #000 76%, transparent 100%); mask-image: radial-gradient(closest-side, #000 76%, transparent 100%);
}
.pb-bbox { position: absolute; border: 2px dashed #fff; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.pb-bbox-in {
    position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); background: rgba(128, 128, 128, .12);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
    mask-composite: intersect;
}
.pb-bbox span { position: absolute; left: 3px; top: 1px; z-index: 1; font-size: 12px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); pointer-events: none; }
.pb-bbox-new { border-color: var(--primary-color, #F58C45); background: rgba(245, 140, 69, .15); }
.pb-bbox-new[hidden] { display: none; }
.pb-box-x { position: absolute; right: 2px; top: 2px; z-index: 2; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; font-size: 20px; line-height: 30px; cursor: pointer; }
