* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #fff; }
body { color: #161616; font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 1.55; }
.layout { width: min(1040px, calc(100% - 28px)); margin: 22px auto; display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 16px; align-items: start; }
h1 { margin: 0 0 8px; font-size: 30px; }
.intro { margin: 0 0 14px; color: #444; }
.work { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr); gap: 16px; }
.frame { position: relative; border: 1px solid #161616; background: #111; min-height: 220px; }
.frame video { display: block; width: 100%; max-height: 420px; background: #111; }
.mark {
    position: absolute;
    color: #fff;
    font-size: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    max-width: 46%;
    line-height: 1.3;
}
.mark img { display: block; max-width: 120px; max-height: 80px; }
.mark[data-pos="tl"] { left: 8%; top: 8%; }
.mark[data-pos="tc"] { left: 50%; top: 8%; transform: translateX(-50%); }
.mark[data-pos="tr"] { right: 8%; top: 8%; }
.mark[data-pos="ml"] { left: 8%; top: 50%; transform: translateY(-50%); }
.mark[data-pos="mc"] { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.mark[data-pos="mr"] { right: 8%; top: 50%; transform: translateY(-50%); }
.mark[data-pos="bl"] { left: 8%; bottom: 8%; }
.mark[data-pos="bc"] { left: 50%; bottom: 8%; transform: translateX(-50%); }
.mark[data-pos="br"] { right: 8%; bottom: 8%; }
.add { cursor: pointer; border-bottom: 1px solid #161616; }
.add input, .field input[type="file"] { display: block; margin-top: 4px; }
.field { display: block; margin-top: 12px; }
.field input[type="text"] { width: 100%; border: 1px solid #161616; padding: 6px 8px; margin-top: 4px; }
#file-list { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14px; }
#file-list li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid #eee; }
#file-list button { border: 0; background: transparent; cursor: pointer; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.grid button { border: 1px solid #161616; background: #fff; padding: 8px 0; cursor: pointer; }
.grid button.is-on { background: #161616; color: #fff; }
#start-btn { margin-top: 12px; border: 0; background: #161616; color: #fff; padding: 10px 16px; cursor: pointer; }
#start-btn:disabled { opacity: 0.4; cursor: default; }
.progress { height: 3px; background: #eee; margin-top: 12px; }
#progress-bar { height: 100%; width: 0; background: #161616; }
.status { min-height: 1.4em; color: #555; }
.status.is-error { color: #9d2c2c; }
.result a { color: #161616; }
.promo { border-top: 4px solid #161616; padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.promo p { margin: 0; font-weight: 700; }
.promo a { text-align: center; background: #161616; color: #fff; text-decoration: none; padding: 8px 4px; }
.foot { width: min(1040px, calc(100% - 28px)); margin: 0 auto 28px; }
.foot h2 { font-size: 15px; }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; }
.foot a { color: #161616; }
@media (max-width: 800px) {
    .layout, .work { grid-template-columns: 1fr; }
}
