/* 课件转视频. 颜色、字号、圆角沿用智汇的那一套数值（web/tokens.css） */
:root {
  --ink-l: #1d1d1f; --muted-l: #6e6e73; --bg-l: #f5f5f7; --surface-l: #fff; --fill-l: #f0f0f3; --line-l: #d2d2d7; --blue-l: #0071e3; --on-blue-l: #fff; --red-l: #bd3e35; --green-l: #2b7a5e;
  --ink-d: #ececf0; --muted-d: #a0a3af; --bg-d: #10141c; --surface-d: #181e29; --fill-d: #222a38; --line-d: #3a4150; --blue-d: #a5baff; --on-blue-d: #14213c; --red-d: #ff9494; --green-d: #8dd6bf;
  --ink: var(--ink-l); --muted: var(--muted-l); --bg: var(--bg-l); --surface: var(--surface-l); --fill: var(--fill-l); --line: var(--line-l);
  --blue: var(--blue-l); --on-blue: var(--on-blue-l); --red: var(--red-l); --green: var(--green-l);
  @media (prefers-color-scheme: dark) {
    --ink: var(--ink-d); --muted: var(--muted-d); --bg: var(--bg-d); --surface: var(--surface-d); --fill: var(--fill-d); --line: var(--line-d);
    --blue: var(--blue-d); --on-blue: var(--on-blue-d); --red: var(--red-d); --green: var(--green-d);
  }
  color-scheme: light dark;
  accent-color: var(--blue);
  --target: 36px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
@media (pointer: coarse) { :root { --target: 46px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; font: 1rem/1.5 var(--font); color: var(--ink); background: var(--bg); overflow-wrap: break-word;
  padding: env(safe-area-inset-top, 0px) max(1rem, env(safe-area-inset-right, 0px)) max(2.5rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
}
.top, main, .foot { max-inline-size: 40rem; margin-inline: auto; }
.top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; padding-block: 1.25rem .75rem; }
h1 { font-size: 1.375rem; margin: 0; font-weight: 600; }
h2 { font-size: 1.0625rem; margin: 0 0 1rem; font-weight: 600; text-wrap: balance; }
.who { display: flex; align-items: center; gap: .75rem; font-size: .875rem; }
.credit { color: var(--muted); font-variant-numeric: tabular-nums; }

.card { background: var(--surface); border-radius: 14px; padding: 1.25rem; margin-block-end: 1.75rem; border: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.field { display: flex; flex-direction: column; gap: .3rem; margin-block-end: 1.1rem; }
label { font-size: .875rem; color: var(--muted); }
input:not([type="radio"], [type="file"]), select, textarea {
  font: inherit; font-size: max(1rem, 1em); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: .6rem .75rem; min-block-size: var(--target); inline-size: 100%;
}
textarea { resize: vertical; min-block-size: 5.5rem; }
:is(input, select, textarea, button, a, .drop, .seg label):focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.seg label:has(:focus-visible), .drop:has(:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
input:user-invalid, textarea:user-invalid { border-color: var(--red); }
.row { display: flex; gap: .5rem; }
.row select { flex: 1; min-inline-size: 0; }

button { font: inherit; cursor: pointer; min-block-size: var(--target); border-radius: 10px; border: 0; padding: .5rem 1rem; color: inherit; background: none; }
button:disabled { opacity: .55; cursor: default; }
.primary { inline-size: 100%; background: var(--blue); color: var(--on-blue); font-weight: 600; min-block-size: 48px; }
.ghost { background: var(--fill); white-space: nowrap; }
.link { color: var(--blue); padding-inline: .25rem; }
.link.center { display: block; margin: .5rem auto 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.hint { font-size: .8125rem; color: var(--muted); margin: .75rem 0 0; }
.center { text-align: center; }
.error { color: var(--red); font-size: .875rem; margin: 0 0 .9rem; }
.price { font-size: .9375rem; margin: 0 0 .9rem; font-variant-numeric: tabular-nums; }

.seg { border: 0; padding: 3px; margin: 0 0 1.1rem; display: grid; grid-template-columns: 1fr 1fr; background: var(--fill); border-radius: 12px; }
.seg label { display: flex; align-items: center; justify-content: center; min-block-size: var(--target); border-radius: 9px; cursor: pointer; color: var(--ink); font-size: .9375rem; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label:has(:checked) { background: var(--surface); font-weight: 600; box-shadow: 0 1px 3px rgb(0 0 0 / .12); }

.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-block-size: 6.5rem; padding: 1rem; margin-block-end: 1.1rem;
  border: 1.5px dashed var(--line); border-radius: 12px; cursor: pointer; color: var(--ink); font-size: 1rem; text-align: center; }
.drop.over { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 8%, transparent); }
.drop.has { border-style: solid; }
.drop .hint { margin: 0; }

progress { appearance: none; border: 0 solid; overflow: clip; inline-size: 100%; block-size: 6px; border-radius: 1e5px; background: var(--fill); display: block; }
progress::-webkit-progress-bar { background: transparent; }
progress::-webkit-progress-value { background: var(--blue); border-radius: 1e5px; transition: inline-size .3s; }
progress::-moz-progress-bar { background: var(--blue); border-radius: 1e5px; }
#up { margin-block: -.5rem 1.1rem; }

.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.item { background: var(--surface); border-radius: 14px; padding: 1rem 1.25rem; border: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.item h3 { font-size: 1rem; margin: 0 0 .25rem; font-weight: 600; }
.item .meta { font-size: .8125rem; color: var(--muted); margin: 0; font-variant-numeric: tabular-nums; }
.item .state { font-size: .875rem; margin: 0 0 .5rem; }
.item .state.bad { color: var(--red); }
.item progress { margin-block: .25rem .6rem; }
.item video { display: block; inline-size: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; margin-block: .6rem; }
.item .acts { display: flex; flex-wrap: wrap; gap: .5rem; margin-block-start: .75rem; }
.item .acts :is(a, button) { display: inline-flex; align-items: center; justify-content: center; min-block-size: var(--target); padding: .4rem 1rem; border-radius: 10px; background: var(--fill); color: var(--ink); font-size: .9375rem; }
.item .acts .play { background: var(--blue); color: var(--on-blue); font-weight: 600; }
.item .acts a:hover { text-decoration: none; }
.item .acts .quiet { background: none; color: var(--muted); margin-inline-start: auto; }

.visually-hidden { position: absolute; clip-path: inset(50%); overflow: hidden; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; white-space: nowrap; }

.foot { margin-block-start: 2rem; text-align: center; font-size: .8125rem; }
.foot a { color: var(--muted); display: inline-flex; align-items: center; min-block-size: var(--target); padding-inline: .5rem; }
.terms { line-height: 1.7; }
.terms :is(p, li) { text-wrap: pretty; font-size: .9375rem; margin: 0 0 .6rem; }
.terms h2 { margin: 1.5rem 0 .6rem; }
.terms h2:first-of-type { margin-block-start: .25rem; }
.terms ul { padding-inline-start: 1.2rem; margin: 0; }
.terms .dates { color: var(--muted); font-size: .8125rem; }
.back { display: inline-flex; align-items: center; min-block-size: var(--target); font-size: .9375rem; }
