

html[data-theme="light"] {
  --bg: #f0f1f3;      --card: #ffffff;    --input: #f5f6f8;
  --fg: #14171c;      --fg-dim: #4a4f57;  --fg-mute: #6f757e;
  --line: #dcdfe4;    --line-soft: #e9ebef;
  --accent: #e01e42;  --accent-hi: #c81738; --accent-fg: #ffffff;
  --accent-bg: #fdecef;
  --ok: #2f7d4f;      --ok-bg: #e3f2e8;
  --warn: #8a6d1f;    --warn-bg: #f6eed8;
  --err: #b3402f;     --err-bg: #fbe7e3;
  --shadow: 0 1px 3px rgba(30,50,30,.08);

  --bar: #ffffff;     --elev: #ffffff;    --chip: #eceef1;
  --glow: 0 0 0 1px rgba(224,30,66,.26), 0 8px 24px rgba(224,30,66,.10);

  --vip: #9a7413;     --vip-fg: #ffffff;
}

html[data-theme="dark"] {
  --bg: #0e1116;      --card: #383838;    --input: #2a2b2e;
  --fg: #f3f6fb;      --fg-dim: #c6cad2;  --fg-mute: #9aa1ab;
  --line: #4a4a4a;    --line-soft: #3f4042;

  --accent: #fe2c55;  --accent-hi: #ff4d6d; --accent-fg: #ffffff;
  --accent-bg: #2b0d15;
  --ok: #57d98a;      --ok-bg: #12301f;
  --warn: #f2c14e;    --warn-bg: #322810;
  --err: #ff7b6b;     --err-bg: #381d1a;
  --shadow: 0 1px 3px rgba(0,0,0,.45);
  --bar: #242425;     --elev: #444444;    --chip: #4a4a4a;
  --glow: 0 0 0 1px rgba(126,248,18,.35), 0 8px 24px rgba(126,248,18,.10);

  --vip: #f2c14e;     --vip-fg: #201a06;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 14.5px/1.7 -apple-system, "Segoe UI", "Microsoft YaHei", Roboto, sans-serif;
  transition: background .25s, color .25s;
}

.top { border-bottom: 1px solid var(--line); background: var(--card); }
.top-inner {
  max-width: 900px; margin: 0 auto; padding: 22px 20px 18px;
  display: flex; align-items: flex-start; gap: 16px;
}
.brand { flex: 1; }
.top h1 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: .4px; }
.top .sub { margin: 5px 0 0; color: var(--fg-mute); font-size: 13px; }
.theme-btn {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--input);
  color: var(--fg-dim); font-size: 16px; cursor: pointer; transition: .2s;
}
.theme-btn:hover { color: var(--accent); border-color: var(--accent); transform: rotate(180deg); }

main {
  max-width: 900px; margin: 0 auto; padding: 20px 16px 44px;
  display: flex; flex-direction: column; gap: 15px;
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 17px 19px 19px; box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.card-head h2 { margin: 0; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 9px; }

.badge {
  margin-left: auto; font-size: 12px; padding: 2px 10px;
  border-radius: 20px; border: 1px solid transparent; color: var(--fg-mute); white-space: nowrap;
}
.badge-off  { border-color: var(--line); }
.badge-ok   { color: var(--ok);   background: var(--ok-bg); }
.badge-warn { color: var(--warn); background: var(--warn-bg); }
.badge-err  { color: var(--err);  background: var(--err-bg); }
.badge-info { color: var(--accent); background: var(--accent-bg); }

textarea, input[type=number] {
  width: 100%; background: var(--input); border: 1px solid var(--line);
  border-radius: 9px; color: var(--fg); padding: 11px 13px;
  font: inherit; resize: vertical; outline: none; transition: border-color .15s;
}
textarea:focus, input:focus { border-color: var(--accent); }
textarea::placeholder { color: var(--fg-mute); }

.btn {
  border: 1px solid var(--line); background: var(--input); color: var(--fg);
  padding: 8px 15px; border-radius: 9px; font: inherit; cursor: pointer; transition: .15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); font-weight: 600; }
.btn-primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: var(--accent-fg); }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--err); border-color: var(--line); background: transparent; }
.btn-danger:hover { background: var(--err-bg); border-color: var(--err); color: var(--err); }
.btn-sm { padding: 5px 11px; font-size: 13px; }
.btn-lg { width: 100%; padding: 13px; font-size: 15.5px; letter-spacing: .5px; }

.row { display: flex; align-items: center; gap: 9px; margin-top: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.note { color: var(--fg-mute); font-size: 12.5px; }

.tip {
  margin: 0 0 13px; font-size: 12.5px; color: var(--fg-mute);
  background: var(--accent-bg); border-left: 3px solid var(--accent);
  padding: 9px 13px; border-radius: 0 7px 7px 0; line-height: 1.75;
}
.tip b { color: var(--fg-dim); }

.err-line {
  margin-top: 11px; padding: 9px 13px; border-radius: 8px;
  background: var(--err-bg); color: var(--err); font-size: 13px;
}
.hint-line { margin-top: 11px; font-size: 12.5px; color: var(--fg-mute); }
.hint-line code { background: var(--input); padding: 1px 6px; border-radius: 4px; font-size: 12px; }

.user-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--input); border: 1px solid var(--line);
  border-radius: 11px; padding: 14px 16px;
}
.user-avatar {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--accent-fg);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600; overflow: hidden;
}
.user-avatar.has-img { background: var(--input); border: 1px solid var(--line); }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.user-meta { font-size: 12.5px; color: var(--fg-mute); }

.fold { margin-top: 13px; }
.fold > summary {
  cursor: pointer; color: var(--fg-dim); font-size: 13.5px;
  user-select: none; list-style: none; display: flex; align-items: center; gap: 8px;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before { content: "▸"; color: var(--fg-mute); transition: transform .15s; }
.fold[open] > summary::before { transform: rotate(90deg); }
.fold > summary:hover { color: var(--accent); }
.fold > summary .badge { margin-left: 0; }
.fold > .grid, .fold > .row { margin-top: 11px; }

.switch {
  display: flex; align-items: flex-start; gap: 11px; cursor: pointer;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--input); transition: .15s;
}
.switch:hover { border-color: var(--accent); }
.switch input { display: none; }
.switch-box {
  flex: 0 0 auto; width: 38px; height: 21px; border-radius: 20px;
  background: var(--line); position: relative; transition: background .2s; margin-top: 2px;
}
.switch-box::after {
  content: ""; position: absolute; top: 2.5px; left: 2.5px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--card); transition: transform .2s;
}
.switch input:checked + .switch-box { background: var(--accent); }
.switch input:checked + .switch-box::after { transform: translateX(17px); }
.switch-text { display: flex; flex-direction: column; gap: 1px; }
.switch-text b { font-weight: 600; font-size: 14px; }
.switch-text em { font-style: normal; font-size: 12.5px; color: var(--fg-mute); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid label { font-size: 13px; color: var(--fg-dim); }
.grid input { margin-top: 6px; }
.fold-note { margin: 10px 0 0; font-size: 12px; line-height: 1.7; color: var(--fg-mute); }

.progress {
  display: flex; align-items: center; gap: 10px;
  margin-top: 13px; padding: 13px 15px;
  background: var(--input); border: 1px solid var(--line); border-radius: 9px;
  font-size: 13px; color: var(--fg-dim);
}
.spinner {
  width: 15px; height: 15px; flex: none;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.batch-bar {
  display: flex; align-items: center; gap: 10px;
  margin: 15px 0 2px; padding: 10px 14px;
  background: var(--accent-bg); border: 1px solid var(--line); border-radius: 10px;
  font-size: 13px; color: var(--fg-dim);
}

.vid-card {
  margin-top: 12px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--card); overflow: hidden;
}
.vc-head {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 14px; cursor: pointer; list-style: none;
  background: var(--input); font-size: 13.5px;
}
.vc-head::-webkit-details-marker { display: none; }
.vc-head::before { content: "▸"; color: var(--fg-mute); transition: transform .15s; }
.vid-card[open] > .vc-head::before { transform: rotate(90deg); }
.vc-head:hover .vc-title { color: var(--accent); }
.vc-idx {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: var(--accent-fg);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
}
.vc-title {
  font-weight: 600; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color .15s;
}
.vc-stat { flex: none; font-size: 12px; color: var(--fg-mute); }
.vc-head .badge { margin-left: 0; }
.vc-body { padding: 2px 14px 16px; }
.vc-body .progress { margin-top: 13px; }
.vc-body .info-card { margin-top: 13px; }

#resultWrap { margin-top: 16px; }
.info-card {
  background: var(--accent-bg); border: 1px solid var(--line);
  border-radius: 11px; padding: 14px 16px; margin-bottom: 16px;
}
.info-title { font-size: 16px; font-weight: 650; line-height: 1.55; margin-bottom: 7px; word-break: break-word; }
.info-title:empty { display: none; }
.info-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.info-tags:empty { display: none; }
.info-tags span, .info-tags a {
  font-size: 12px; padding: 2px 9px; border-radius: 20px;
  background: var(--card); color: var(--accent); border: 1px solid var(--line);
  text-decoration: none;
}
.info-tags a { cursor: pointer; transition: border-color .15s, background .15s; }
.info-tags a:hover { border-color: var(--accent); background: var(--accent-bg); }
.info-meta { display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; color: var(--fg-mute); }

.meta-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.meta-avatar {
  flex: 0 0 auto; width: 21px; height: 21px; border-radius: 50%;
  background: var(--accent); color: var(--accent-fg);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
}
.meta-avatar.has-img { background: none; overflow: hidden; }
.meta-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.meta-author {
  font-size: 13px; font-weight: 600; color: var(--fg-dim);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.meta-link { margin-left: auto; flex: 0 0 auto; color: var(--accent); text-decoration: none; }
.meta-link:hover { text-decoration: underline; }

.meta-stats { display: flex; flex-wrap: wrap; align-items: center; row-gap: 6px; }
.meta-stats .stat { display: inline-flex; align-items: baseline; gap: 5px; padding: 0 13px; }
.meta-stats .stat:first-child { padding-left: 0; }
.meta-stats .stat + .stat { position: relative; }
.meta-stats .stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 50%; margin-top: -5.5px;
  width: 1px; height: 11px; background: var(--line);
}
.meta-stats .stat i { font-style: normal; color: var(--fg-mute); }
.meta-stats .stat b {
  font-weight: 600; color: var(--fg-dim);
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
}

.out-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.out-head h3 { margin: 0; font-size: 14.5px; font-weight: 600; }

.transcript {
  background: var(--input); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; font-size: 15px; line-height: 2.05;
  max-height: 620px; overflow-y: auto; white-space: pre-wrap;
  word-break: break-word; letter-spacing: .2px;
}
.transcript .ts {
  display: inline-block; color: var(--accent); background: var(--accent-bg);
  border-radius: 4px; padding: 0 6px; margin-right: 6px; font-size: 12.5px;
  font-family: ui-monospace, Consolas, monospace; vertical-align: 1px;
}

.rw-block {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
}
#rwFold { margin-top: 16px; }
#rwFold textarea { min-height: 150px; font-size: 12.5px; line-height: 1.7; margin-top: 11px; }
#rwFold .fold > summary { font-size: 13px; }

.rw-out {
  margin-top: 12px; background: var(--input); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px 18px; max-height: 620px; overflow-y: auto;
}
.rw-title {
  font-size: 17px; font-weight: 650; line-height: 1.5; color: var(--fg);
  padding-bottom: 11px; margin-bottom: 13px; border-bottom: 1px solid var(--line);
  word-break: break-word;
}
.rw-body {
  font-size: 15px; line-height: 2.05; white-space: pre-wrap;
  word-break: break-word; letter-spacing: .2px;
}
.rw-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.rw-tag {
  font-size: 12px; padding: 2px 9px; border-radius: 20px;
  background: var(--card); color: var(--accent); border: 1px solid var(--line);
}

footer { text-align: center; color: var(--fg-mute); font-size: 12px; padding: 0 16px 30px; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--fg-mute); }

@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
  .transcript { padding: 13px 14px; font-size: 14.5px; }

  .meta-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; }
  .meta-stats .stat { padding: 0; }
  .meta-stats .stat + .stat::before { display: none; }
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body > textarea { position: fixed; top: -1000px; left: 0; opacity: 0; pointer-events: none; }

body.app {
  font: 14.5px/1.7 PingFangSC-Regular, "PingFang SC", "Segoe UI", "Microsoft YaHei",
        "Helvetica Neue", Helvetica, "Hiragino Sans GB", Arial, sans-serif;
  padding-bottom: 0;
}

body.app .side {
  position: fixed; inset: 0 auto 0 0; width: 85px; z-index: 40;
  background: var(--bar); border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 0 12px; gap: 6px;
}

body.app .side-logo {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-fg);
  text-decoration: none; margin-bottom: 10px;
}
body.app .side-logo svg { width: 23px; height: 23px; fill: currentColor; }

body.app .side-nav {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 100%; padding: 0 6px;
}
body.app .side-nav::-webkit-scrollbar { width: 0; }

body.app .side-item {
  width: 100%; border: 0; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 9px 2px; border-radius: 11px;
  color: var(--fg-mute); font-size: 11.5px; line-height: 1.25;
  text-decoration: none; font-family: inherit; transition: .15s;
}
body.app .side-item svg {
  width: 21px; height: 21px; flex: none;
  fill: currentColor; stroke: none;
}
body.app .side-item span { white-space: nowrap; }
body.app .side-item:hover { background: var(--chip); color: var(--fg); }

body.app .side-item.is-active { background: var(--accent-bg); color: var(--accent); }
body.app .side-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }


body.app .shell { margin-left: 85px; min-width: 0; }

body.app .appbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 26px;
  background: var(--bar); border-bottom: 1px solid var(--line-soft);
}
body.app .appbar-brand {
  color: var(--fg); font-size: 16px; font-weight: 700; letter-spacing: .5px;
  text-decoration: none;
}
body.app .theme-btn { width: 34px; height: 34px; }
body.app .theme-btn:disabled { transform: none; }

body.app main {
  max-width: 1180px; margin: 0 auto; padding: 30px 26px 50px;
  display: flex; flex-direction: column; gap: 30px;
}

body.app .acct { position: relative; }
body.app .acct > .acct-btn {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 8px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--input);
  transition: .15s;
}
body.app .acct > .acct-btn:hover { border-color: var(--accent); }
body.app .acct > .acct-btn svg {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: var(--fg-dim); stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
body.app .acct .badge { margin-left: 0; }

body.app .acct-panel {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: 360px; max-width: calc(100vw - 30px);
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow);
  padding: 16px; z-index: 35;
  text-align: left;
}
body.app .acct-panel .btn-lg { padding: 12px; font-size: 15px; }
body.app .acct-panel .user-card { background: var(--input); }

body.app .hero { text-align: center; padding-top: 16px; }
body.app .hero h1 {
  margin: 0 0 10px; font-size: clamp(25px, 3.6vw, 38px);
  font-weight: 750; letter-spacing: -.5px; line-height: 1.3;
}
body.app .hero-sub {
  margin: 0 auto 26px; max-width: 640px;
  color: var(--fg-dim); font-size: 14.5px;
}

body.app .composer {
  background: var(--elev); border: 1px solid var(--line);
  border-radius: 18px; padding: 14px; text-align: left;
  box-shadow: var(--shadow);
}
body.app .composer textarea {
  background: transparent; border: 0; border-radius: 12px;
  padding: 12px 14px; min-height: 122px; font-size: 15px; line-height: 1.75;
}
body.app .composer textarea:focus { border: 0; }
body.app .composer-bar {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 10px 4px 2px;
}
body.app .composer-bar .badge { margin-left: 0; }
body.app .composer-bar .note { max-width: 320px; }

body.app .switch.chip {
  align-items: center; gap: 9px; padding: 6px 14px 6px 11px;
  border-radius: 20px; background: var(--chip); border-color: transparent;
}
body.app .switch.chip:hover { background: var(--line); border-color: transparent; }

body.app .switch.chip .switch-box {
  width: 32px; height: 18px; margin-top: 0; background: var(--input);
}
body.app .switch.chip input:checked + .switch-box { background: var(--accent); }
body.app .switch.chip .switch-box::after { width: 13px; height: 13px; top: 2.5px; left: 2.5px; }
body.app .switch.chip input:checked + .switch-box::after { transform: translateX(14px); }
body.app .switch.chip .switch-text { flex-direction: row; gap: 0; }
body.app .switch.chip .switch-text b { font-size: 13px; font-weight: 500; }
body.app .switch.chip .switch-text em { display: none; }

body.app .run-btn {
  border-radius: 999px; position: relative;
  padding: 11px 52px 11px 24px; font-size: 15px; letter-spacing: .5px;
}
body.app .run-btn::after {
  content: ""; position: absolute; right: 21px; top: 50%; margin-top: -6px;
  border-left: 9px solid currentColor;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
body.app .run-btn:disabled { opacity: .6; }

body.app .style-label { font-size: 13px; color: var(--fg-mute); }
body.app .style-row {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
body.app .style-chip {
  padding: 6px 13px; border-radius: 20px; font-size: 13px; line-height: 1.6;
  background: var(--chip); border: 1px solid transparent; color: var(--fg-dim);
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
body.app .style-chip:hover { background: var(--line); color: var(--fg); }
body.app .style-chip.is-on {
  background: var(--accent-bg); border-color: var(--accent);
  color: var(--accent); font-weight: 600;
}
body.app .run-btn:disabled::after { opacity: .6; }

body.app .sec-title { margin: 0 0 15px; font-size: 18px; font-weight: 700; }

body.app .sec-head h1 { margin: 0; font-size: 19px; font-weight: 700; }
body.app .page-lede {
  margin: 0 0 18px; font-size: 13.5px; line-height: 1.9; color: var(--fg-dim);
}
body.app .page-lede a:not(.btn) { color: var(--accent); }
body.app .hero-cta {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
body.app .hero-cta .btn { font-size: 15px; padding: 12px 26px; }
body.app .hero-cta .run-btn { padding-right: 52px; }

body.app .panel h2 { margin: 0 0 12px; font-size: 17px; font-weight: 700; }
body.app .panel h3 { margin: 20px 0 8px; font-size: 14.5px; font-weight: 650; color: var(--fg); }
body.app .panel p { margin: 0 0 11px; font-size: 13.5px; line-height: 1.95; color: var(--fg-dim); }
body.app .panel p:last-child { margin-bottom: 0; }
body.app .panel a:not(.btn) { color: var(--accent); }
body.app .doc-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
body.app .doc-list li { display: flex; flex-direction: column; gap: 3px; }
body.app .doc-list a { font-size: 14px; font-weight: 600; }
body.app .doc-list span { font-size: 12.5px; color: var(--fg-mute); line-height: 1.75; }
body.app .panel code {
  background: var(--input); border: 1px solid var(--line); border-radius: 5px;
  padding: 1px 6px; font-size: 12.5px;
  font-family: ui-monospace, Consolas, monospace;
}


body.app .panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 20px 22px 22px; box-shadow: var(--shadow);
}
body.app .sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
body.app .sec-head h2 { margin: 0; font-size: 16.5px; font-weight: 700; }
body.app .sec-head .badge { margin-left: 0; }

body.app #histList { display: flex; flex-direction: column; gap: 9px; }
body.app .hist-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--input); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; cursor: pointer; color: var(--fg); font-family: inherit;
  font-size: 13.5px; transition: .15s;
}
body.app .hist-item:hover { border-color: var(--accent); }
body.app .hist-item .h-title {
  flex: 1; min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; font-weight: 600;
}
body.app .hist-item .h-meta { flex: none; font-size: 12px; color: var(--fg-mute); }
body.app .hist-item .h-chars { flex: none; font-size: 12px; color: var(--fg-mute); }

body.app .hist-detail {
  margin: 4px 0 6px; padding: 14px 16px;
  background: var(--input); border: 1px solid var(--line-soft); border-radius: 12px;
}
body.app .hist-detail .out-head { margin-top: 14px; margin-bottom: 8px; }
body.app .hist-detail .out-head:first-of-type { margin-top: 0; }
body.app .hist-detail .rw-out { margin-top: 0; max-height: 420px; }
body.app .hd-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
body.app .hd-chip {
  font-size: 12px; padding: 2px 9px; border-radius: 20px;
  background: var(--chip); color: var(--fg-dim);
}
body.app #histWrap .row { margin-top: 13px; }

body.app .empty-state {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 34px 20px 30px; text-align: center;
  background: var(--input); border: 1px dashed var(--line); border-radius: 14px;
  color: var(--fg-mute); font-size: 13px;
}
body.app .empty-state svg {
  width: 30px; height: 30px; color: var(--fg-mute); opacity: .6;
  fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round; margin-bottom: 3px;
}
body.app .empty-state b { color: var(--fg-dim); font-size: 14px; font-weight: 600; }
body.app #resultWrap:not([hidden]) ~ .empty-state { display: none; }
body.app #histWrap:not([hidden]) ~ #histGate { display: none; }

body.app #resultWrap { margin-top: 4px; }
body.app .batch-bar { margin-top: 0; }
body.app .vid-card { border-radius: 14px; }
body.app .vc-head { padding: 12px 15px; }
body.app .info-card { border-radius: 14px; }
body.app .transcript, body.app .rw-out { border-radius: 12px; }
body.app .transcript { font-size: 15px; }
body.app #rwFold { margin-top: 18px; }

body.app .collect-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 12px;
}
body.app .collect-kw {
  flex: 1 1 260px; min-width: 200px;
  background: var(--input); border: 1px solid var(--line); border-radius: 10px;
  color: var(--fg); padding: 10px 14px; font: inherit; outline: none;
  transition: border-color .15s;
}
body.app .collect-kw:focus { border-color: var(--accent); }
body.app .collect-kw::placeholder { color: var(--fg-mute); }

body.app .collect-field {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--fg-dim); white-space: nowrap;
}
body.app .collect-field select,
body.app .collect-field input {
  background: var(--input); border: 1px solid var(--line); border-radius: 10px;
  color: var(--fg); font: inherit; font-size: 13.5px; padding: 9px 11px;
  outline: none; transition: border-color .15s;
}
body.app .collect-field select:focus,
body.app .collect-field input:focus { border-color: var(--accent); }
body.app .collect-field input { width: 112px; }

body.app .collect-note {
  margin: 0 0 16px; font-size: 12.5px; line-height: 1.85; color: var(--fg-mute);
  background: var(--input); border-left: 3px solid var(--accent);
  border-radius: 0 9px 9px 0; padding: 10px 14px;
}
body.app .collect-note strong { color: var(--fg-dim); font-weight: 600; }

body.app p.collect-hint {
  border-left-color: var(--warn);
  background: var(--warn-bg); color: var(--warn);
}

body.app .collect-ops {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin-bottom: 14px;
}
body.app .collect-all {
  display: flex; align-items: center; gap: 7px;
  font-size: 13.5px; color: var(--fg-dim); cursor: pointer; user-select: none;
}
body.app .collect-all input { width: 15px; height: 15px; accent-color: var(--accent); }

body.app .collect-grid { display: flex; flex-direction: column; gap: 8px; }
body.app .cc {
  display: flex; align-items: center; gap: 12px;
  background: var(--input); border: 1px solid var(--line); border-radius: 12px;
  padding: 9px 13px; transition: border-color .15s;
}
body.app .cc:hover { border-color: var(--accent); }
body.app .cc.is-picked { border-color: var(--accent); box-shadow: var(--glow); }

body.app .cc-pick { flex: none; display: flex; align-items: center; cursor: pointer; }
body.app .cc-pick input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }

body.app .cc-cover {
  flex: none; width: 76px; height: 46px; border-radius: 7px;
  background: var(--chip); overflow: hidden;
}
body.app .cc-cover:empty { display: none; }
body.app .cc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

body.app .cc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }

body.app .cc-title {
  font-size: 13.5px; font-weight: 600; line-height: 1.6; color: var(--fg);
  min-width: 0; word-break: break-word;
}
body.app .cc-tags { display: flex; flex-wrap: wrap; gap: 5px; }
body.app .cc-tag {
  font-size: 11.5px; padding: 1px 8px; border-radius: 20px;
  background: var(--chip); color: var(--accent);
}
body.app .cc-author {
  display: flex; align-items: center; gap: 6px; min-width: 0;
  font-size: 12px; color: var(--fg-mute);
}
body.app .cc-author img {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  object-fit: cover; display: block;
}
body.app .cc-author i {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--chip); color: var(--fg-dim);
  display: inline-flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 10px;
}
body.app .cc-author span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

body.app .cc-stats { flex: none; display: flex; flex-wrap: wrap; gap: 5px; }
body.app .cc-chip {
  font-size: 11.5px; padding: 2px 8px; border-radius: 20px;
  background: var(--chip); color: var(--fg-dim);
  font-variant-numeric: tabular-nums;
}
body.app .cc-chip.is-hot { background: var(--accent-bg); color: var(--accent); }

body.app .cc-ops { flex: none; display: flex; gap: 7px; }
body.app .cc-ops .btn { white-space: nowrap; }

@media (max-width: 760px) {
  body.app .cc { flex-wrap: wrap; }
  body.app .cc-main { flex-basis: calc(100% - 130px); }
  body.app .cc-stats { order: 5; flex-basis: 100%; padding-left: 27px; }
  body.app .cc-ops { order: 6; flex-basis: 100%; padding-left: 27px; }
}

body.app #collectWrap:not([hidden]) ~ #collectEmpty { display: none; }

body.app .foot {
  margin-top: 10px; background: var(--bar);
  border-top: 1px solid var(--line-soft);
  padding: 40px 26px 26px; color: var(--fg-mute); font-size: 12.5px;
  text-align: left;
}
body.app .foot-inner {
  max-width: 1180px; margin: 0 auto 26px;
  display: grid; gap: 26px;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.5fr;
}
body.app .foot-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
body.app .foot-logo svg { width: 22px; height: 22px; fill: var(--accent); }
body.app .foot-logo b { font-size: 16px; color: var(--fg); letter-spacing: .5px; }
body.app .foot-brand p { margin: 0; line-height: 1.85; }
body.app .foot-col { display: flex; flex-direction: column; gap: 9px; }

body.app .foot-col h3 { margin: 0 0 3px; font-size: 13px; color: var(--fg-dim); font-weight: 650; }
body.app .foot-col a { color: var(--fg-mute); text-decoration: none; transition: color .15s; }
body.app .foot-col a:hover { color: var(--accent); }

body.app .ph {
  color: var(--fg-mute); opacity: .75;
  border-bottom: 1px dashed var(--line); align-self: flex-start; cursor: default;
}
body.app .qr-row { display: flex; gap: 10px; flex-wrap: wrap; }
body.app .qr-ph {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--fg-mute);
}
body.app .qr-ph i {
  display: flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 10px;
  border: 1px dashed var(--line); background: var(--input);
  font-style: normal; font-size: 10.5px; color: var(--fg-mute); opacity: .8;
}
body.app .foot-bottom {
  max-width: 1180px; margin: 0 auto; padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex; gap: 9px; flex-wrap: wrap; justify-content: center;
  text-align: center; font-size: 12px;
}

@media (max-width: 1100px) {
  body.app .foot-inner { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 860px) {

  body.app .side {
    inset: auto 0 0 0; width: auto; height: 58px;
    flex-direction: row; justify-content: space-around; align-items: center;
    padding: 0 4px; gap: 0; border-right: 0; border-top: 1px solid var(--line-soft);
  }
  body.app .side-logo { display: none; }
  body.app .side-nav {
    flex-direction: row; justify-content: space-around; align-items: center;
    overflow: visible; padding: 0; gap: 0;
  }
  body.app .side-item { padding: 6px 4px; font-size: 10.5px; gap: 3px; }
  body.app .side-item svg { width: 19px; height: 19px; }

  body.app .shell { margin-left: 0; padding-bottom: 58px; }
  body.app .appbar { padding: 11px 16px; }
  body.app main { padding: 22px 16px 34px; gap: 24px; }
  body.app .foot { padding: 32px 16px 22px; }
  body.app .foot-inner { grid-template-columns: 1fr 1fr; }
  html { scroll-padding-top: 74px; }
}

@media (max-width: 620px) {
  body.app .panel { padding: 17px 15px 19px; border-radius: 15px; }
  body.app .foot-inner { grid-template-columns: 1fr; }
  body.app .composer-bar .note { max-width: none; flex-basis: 100%; order: 9; }
  body.app .run-btn { flex: 1; text-align: center; padding-right: 46px; }
  body.app .acct-panel { width: calc(100vw - 30px); }
}

body.app .top-vip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--vip); background: transparent;
  color: var(--vip); font-size: 13.5px; font-weight: 600;
  text-decoration: none; white-space: nowrap; transition: .18s;
}
body.app .top-vip svg {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.1;
  stroke-linecap: round; stroke-linejoin: round;
}
body.app .top-vip:hover { background: var(--vip); color: var(--vip-fg); }

body.app .top-login { white-space: nowrap; }

body.app .acct-close {
  position: absolute; right: 9px; top: 9px;
  width: 26px; height: 26px; padding: 0; border-radius: 8px;
  border: 0; background: transparent; color: var(--fg-mute);
  cursor: pointer; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
}
body.app .acct-close svg {
  width: 15px; height: 15px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
}
body.app .acct-close:hover { background: var(--input); color: var(--fg); }

body.app .hero-home { padding-top: 24px; }
body.app .hero-home h1 {
  font-size: clamp(27px, 4vw, 44px); margin-bottom: 12px;
}
body.app .hero-home .hero-sub {
  max-width: 720px; font-size: 15px; margin-bottom: 30px;
}

body.app .home-composer {
  max-width: 790px; margin: 0 auto;
  border-radius: 20px; padding: 16px;
}
body.app .home-composer textarea { min-height: 86px; font-size: 15.5px; }

body.app .home-chip {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 20px;
  background: var(--chip); color: var(--fg-dim);
  font-size: 13px; text-decoration: none; transition: .15s;
}
body.app .home-chip:hover { background: var(--line); color: var(--fg); }

body.app .hero-foot {
  margin: 18px 0 0; color: var(--fg-mute); font-size: 13px;
}
body.app .hero-foot a:not(.btn) { color: var(--accent); }

@media (max-width: 600px) {
  body.app .top-vip span { display: none; }
  body.app .top-vip { padding: 7px 11px; }
  body.app .top-login { padding-left: 12px; padding-right: 12px; }
}
body.app .home-composer textarea { resize: none; }

html { --t-fast: .14s; --t: .2s; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

body.app .side-logo { transition: transform var(--t), box-shadow var(--t); }
body.app .side-logo:hover { transform: translateY(-1px) scale(1.03); box-shadow: var(--glow); }
body.app .side-logo:active { transform: translateY(0) scale(.97); }
body.app .side-logo svg { transition: transform var(--t); }
body.app .side-logo:hover svg { transform: translateX(1px); }

body.app .side-item { transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast); }
body.app .side-item:active { transform: scale(.96); }


body.app .home-chip { transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast); }
body.app .home-chip:active { transform: scale(.96); }

body.app .top-vip:active { transform: scale(.97); }
body.app .top-vip { transition: background var(--t), color var(--t), transform var(--t-fast); }

body.app .acct-close { transition: background var(--t-fast), color var(--t-fast); }
body.app .acct-close:active { transform: scale(.9); }

body.app .btn:focus-visible,
body.app .home-chip:focus-visible,
body.app .top-vip:focus-visible,
body.app .appbar-brand:focus-visible,
body.app .acct-close:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

body.app .appbar-brand { transition: color var(--t-fast); }
body.app .appbar-brand:hover { color: var(--accent); }

body.app .switch.chip { transition: background var(--t-fast); }
body.app .switch.chip .switch-box::after { transition: transform var(--t); }

body.app p.sec-lede {
  margin: -4px 0 4px; max-width: 780px;
  color: var(--fg-dim); font-size: 14px; line-height: 1.95;
}
body.app p.sec-lede b { color: var(--fg); }

body.app .show-wrap {
  display: flex; align-items: center; gap: 16px; margin-top: 26px;
}
body.app .show-side { flex: 1 1 0; min-width: 0; }
body.app .show-mid { flex: none; width: 60px; color: var(--fg-mute); }
body.app .show-mid svg {
  display: block; width: 60px; height: 24px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
}
body.app .show-mid .arrow-head { fill: currentColor; stroke: none; }
body.app .show-label {
  margin-top: 11px; text-align: center;
  color: var(--fg-mute); font-size: 12.5px;
}

body.app .mock-video {
  background: var(--elev); border: 1px solid var(--line);
  border-radius: 16px; padding: 12px; box-shadow: var(--shadow);
}
body.app .mock-screen {
  position: relative; aspect-ratio: 16 / 10; border-radius: 11px;
  background: #150b0f; overflow: hidden;
}
body.app .mock-art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; object-fit: cover;
}
body.app .mock-play {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
}
body.app .mock-play::before {
  content: ""; position: absolute; width: 68px; height: 68px;
  border-radius: 50%; background: rgba(0,0,0,.22);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
body.app .mock-play svg {
  position: relative; width: 46px; height: 46px; fill: var(--accent);
}
body.app .mock-dur {
  position: absolute; right: 9px; bottom: 9px;
  background: rgba(0,0,0,.6); color: #fff; padding: 2px 8px;
  border-radius: 6px; font-size: 11.5px; font-variant-numeric: tabular-nums;
}
body.app .mock-cap { padding: 12px 4px 2px; display: flex; flex-direction: column; gap: 5px; }
body.app .mock-cap b { font-size: 14px; line-height: 1.5; }
body.app .mock-cap span { color: var(--fg-mute); font-size: 12.5px; }

body.app .mock-out {
  background: var(--elev); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px; box-shadow: var(--shadow);
}
body.app .mock-out-head b { display: block; font-size: 14.5px; line-height: 1.5; }
body.app .mock-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
body.app .mock-tags i {
  font-style: normal; font-size: 12px; color: var(--accent);
  background: var(--accent-bg); padding: 2px 9px; border-radius: 20px;
}
body.app .mock-lines {
  margin: 14px 0 0; padding-top: 13px; border-top: 1px dashed var(--line);
  display: flex; flex-direction: column; gap: 9px;
}
body.app .mock-lines p {
  margin: 0; font-size: 12.8px; line-height: 1.75; color: var(--fg-dim);
}
body.app .mock-lines em {
  font-style: normal; color: var(--accent);
  font-variant-numeric: tabular-nums; margin-right: 5px;
}
body.app .mock-out-foot {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft);
}
body.app .mock-out-foot .spacer { display: block; }
body.app .mock-count { color: var(--fg-mute); font-size: 12.5px; }
body.app .mock-btn {
  font-size: 12px; padding: 3px 11px; border-radius: 7px;
  border: 1px solid var(--line); color: var(--fg-dim);
}


body.app .cmp {
  width: 100%; border-collapse: collapse; margin: 16px 0 0;
  font-size: 13px; line-height: 1.7;
}
body.app .cmp th, body.app .cmp td {
  text-align: left; vertical-align: top;
  padding: 11px 12px; border-bottom: 1px solid var(--line);
}
body.app .cmp thead th {
  font-size: 12px; font-weight: 600; color: var(--fg-mute);
  border-bottom: 1px solid var(--line); padding-bottom: 8px;
}
body.app .cmp tbody th { font-weight: 650; color: var(--fg); white-space: nowrap; }
body.app .cmp td { color: var(--fg-dim); }
body.app .cmp tr.is-us th, body.app .cmp tr.is-us td { background: var(--accent-bg); }
body.app .cmp tr.is-us th { color: var(--accent); }

body.app .tool-list {
  list-style: none; margin: 14px 0 0; padding: 0;
  border-top: 1px solid var(--line);
}
body.app .tool-list li { margin: 0; padding: 0; }
body.app .tool-list li::before { display: none; }
body.app .tool-list a {
  display: flex; gap: 20px; align-items: baseline;
  padding: 14px 2px; border-bottom: 1px solid var(--line);
  text-decoration: none; transition: background var(--t-fast), padding var(--t-fast);
}
body.app .tool-list a:hover { background: var(--accent-bg); padding-left: 10px; }
body.app .tool-list b { flex: none; width: 118px; font-size: 14px; color: var(--fg); }
body.app .tool-list span { color: var(--fg-mute); font-size: 13px; line-height: 1.7; }

body.app .plans {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px;
}
body.app .plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--elev); border: 1px solid var(--line);
  border-radius: 18px; padding: 24px 18px 18px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
body.app .plan:hover { transform: translateY(-3px); box-shadow: var(--glow); }
body.app .plan.is-best {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--glow);
}
body.app .plan-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-fg);
  font-size: 12px; font-weight: 700; padding: 3px 13px;
  border-radius: 20px; white-space: nowrap;
}
body.app .plan-name { font-size: 14px; color: var(--fg-dim); font-weight: 600; }
body.app .plan-price {
  font-size: 33px; font-weight: 750; letter-spacing: -.5px;
  margin: 9px 0 2px; line-height: 1.1;
}
body.app .plan.is-best .plan-price { color: var(--accent); }
body.app .plan-dur { color: var(--fg-mute); font-size: 13px; }
body.app .plan-feat {
  list-style: none; margin: 16px 0 20px; padding: 16px 0 0;
  border-top: 1px solid var(--line-soft); flex: 1;
  display: flex; flex-direction: column; gap: 9px;
}
body.app .plan-feat li {
  position: relative; padding-left: 20px;
  font-size: 13px; color: var(--fg-dim); line-height: 1.6;
}
body.app .plan-feat li::before {
  content: ""; position: absolute; left: 3px; top: 6px;
  width: 5px; height: 9px; border: solid var(--accent);
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}
body.app .plan-buy { width: 100%; }
body.app .plan-buy:disabled { opacity: .5; }
body.app p.plan-note {
  margin: 24px 0 0; padding: 15px 18px; border-radius: 12px;
  background: var(--warn-bg); color: var(--fg-dim);
  font-size: 13px; line-height: 1.9;
}
body.app p.plan-note b { color: var(--err); }

body.app .faq {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--elev); margin-top: 12px; overflow: hidden;
}
body.app .faq summary {
  cursor: pointer; list-style: none;
  padding: 15px 18px; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
  transition: color var(--t-fast), background var(--t-fast);
}
body.app .faq summary::-webkit-details-marker { display: none; }
body.app .faq summary::after {
  content: ""; margin-left: auto; flex: none;
  width: 8px; height: 8px; margin-right: 3px;
  border: solid var(--fg-mute); border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--t), border-color var(--t-fast);
}
body.app .faq[open] summary::after {
  transform: rotate(-135deg) translateY(-2px); border-color: var(--accent);
}
body.app .faq summary:hover { background: var(--input); color: var(--accent); }
body.app .faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
body.app .faq p {
  margin: 0; padding: 0 18px 17px; color: var(--fg-dim);
  font-size: 13.5px; line-height: 1.9;
}

/* 首页留言板：纯文本建议箱，不展示留言内容。 */
body.app .feedback-sec .sec-lede { margin-bottom: 20px; }
body.app .feedback-form {
  max-width: 820px; margin-top: 18px;
  display: flex; flex-direction: column; gap: 14px;
}
body.app .fb-field {
  display: flex; flex-direction: column; gap: 7px; min-width: 0;
}
body.app .fb-field > span:first-child {
  font-size: 13px; color: var(--fg-dim); font-weight: 600;
}
body.app .feedback-form textarea {
  min-height: 132px; resize: vertical; line-height: 1.8;
}
body.app .feedback-form input[type=text] {
  width: 100%; background: var(--input); border: 1px solid var(--line);
  border-radius: 9px; color: var(--fg); padding: 11px 13px;
  font: inherit; outline: none; transition: border-color .15s;
}
body.app .feedback-form input[type=text]:focus { border-color: var(--accent); }
body.app .fb-count {
  align-self: flex-end; margin-top: -2px;
  font-size: 12px; color: var(--fg-mute);
  font-variant-numeric: tabular-nums;
}
body.app .fb-row {
  display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap;
}
body.app .fb-contact { flex: 1 1 260px; }
body.app .fb-actions {
  display: flex; align-items: center; gap: 12px; margin-left: auto;
}
body.app .fb-msg {
  min-height: 1.7em; font-size: 13px; color: var(--fg-dim);
}
body.app .fb-msg.ok { color: var(--ok); }
body.app .fb-msg.err { color: var(--err); }
body.app .fb-hint {
  margin: 0; color: var(--fg-mute); font-size: 12.5px; line-height: 1.75;
}
body.app .fb-hp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}
@media (max-width: 620px) {
  body.app .fb-row { flex-direction: column; align-items: stretch; }
  /* 桌面上的 1 1 260px 到了竖排里会变成「高度 260px」，必须清掉。 */
  body.app .fb-contact { flex: 0 0 auto; }
  body.app .fb-actions {
    margin-left: 0; flex-wrap: wrap; justify-content: flex-start;
  }
  body.app .fb-msg { flex: 1 1 100%; }
  body.app .fb-actions .btn { flex: 1 1 100%; width: 100%; }
}

@media (max-width: 920px) {
  body.app .show-wrap { flex-direction: column; align-items: stretch; }
  body.app .show-mid { width: auto; display: flex; justify-content: center; }
  body.app .show-mid svg { transform: rotate(90deg); }
  body.app .plans { grid-template-columns: repeat(2, 1fr); }
  body.app .cmp { display: block; overflow-x: auto; white-space: nowrap; }
  body.app .tool-list a { flex-wrap: wrap; align-items: center; gap: 4px 12px; }
  body.app .tool-list b { width: auto; }
  body.app .tool-list a > span:not(.tl-ico) { flex: 0 0 100%; }
}
@media (max-width: 520px) {
  body.app .plans { grid-template-columns: 1fr; }
}

body.app .foot-slogan {
  margin: 0 0 7px; color: var(--accent);
  font-size: 13.5px; font-weight: 600; letter-spacing: .2px;
}
body.app .foot-logo svg { fill: currentColor; stroke: none; }

body.app .show-wrap { align-items: stretch; }
body.app .show-side { display: flex; flex-direction: column; }
body.app .show-label { margin-top: auto; padding-top: 11px; }
body.app .show-mid { align-self: center; }
body.app .mock-screen { aspect-ratio: 16 / 9; }
body.app .mock-play svg {
  width: 54px; height: 54px;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.35));
}
body.app .mock-prog {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--line); border-radius: 0 0 11px 11px; overflow: hidden;
}
body.app .mock-prog i {
  display: block; height: 100%; width: 34%; background: var(--accent);
}

body.app .show-side > .mock-video,
body.app .show-side > .mock-out { flex: 1; }
body.app .show-label { margin-top: 0; }
body.app .mock-out { display: flex; flex-direction: column; }
body.app .mock-lines { flex: 1; }
body.app .mock-out-foot { margin-top: 16px; }

body.app .card-line {
  display: flex; align-items: center; gap: 8px; margin-bottom: 9px;
}
body.app .card-line .spacer { flex: 1; }
body.app .pane-split {
  height: 1px; background: var(--line-soft); margin: 15px 0 14px;
}
body.app .card-form { display: flex; gap: 8px; }
body.app .card-form input {
  flex: 1; min-width: 0; font-family: ui-monospace, Consolas, monospace;
  font-size: 14px; letter-spacing: .8px; text-transform: uppercase;
  padding: 9px 12px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--input); color: var(--fg);
}
body.app .card-form input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
body.app .card-form input::placeholder {
  letter-spacing: .5px; color: var(--fg-mute); text-transform: none;
}
body.app .card-form .btn { flex: none; padding: 9px 18px; }
body.app #cardErr { margin-top: 9px; }
body.app .card-form + .err-line { margin-top: 9px; }

body.app .ext-dl {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin: 22px 0 18px; padding: 20px 22px;
  background: var(--accent-bg); border: 1px solid var(--line); border-radius: 16px;
}
body.app .ext-dl-text { flex: 1; min-width: 200px; display: flex;
                        flex-direction: column; gap: 5px; }
body.app .ext-dl-text b { font-size: 16px; }
body.app .ext-dl-text span { color: var(--fg-dim); font-size: 13px; }
body.app .ext-dl-btn { flex: none; width: auto; padding: 12px 26px; }
body.app p.ext-warn {
  margin: 0; padding: 14px 18px; border-radius: 12px;
  background: var(--warn-bg); color: var(--fg-dim);
  font-size: 13px; line-height: 1.9;
}
body.app p.ext-warn b { color: var(--warn); }

body.app .step-card {
  display: flex; align-items: center; gap: 20px;
  padding: 20px; margin-top: 14px;
  background: var(--elev); border: 1px solid var(--line); border-radius: 16px;
  transition: border-color var(--t), box-shadow var(--t);
}
body.app .step-card:hover { border-color: var(--accent); box-shadow: var(--glow); }
body.app .step-no {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-fg);
  font-size: 17px; font-weight: 750;
}
body.app .step-body { flex: 1; min-width: 0; }
body.app .step-body h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
body.app .step-body p { margin: 0 0 7px; color: var(--fg-dim);
                        font-size: 13.5px; line-height: 1.9; }
body.app .step-body p:last-child { margin-bottom: 0; }
body.app .step-body code {
  background: var(--input); padding: 2px 7px; border-radius: 6px;
  font-size: 12.5px; border: 1px solid var(--line);
}
body.app .step-art { flex: 0 0 230px; max-width: 230px; }
body.app .step-art svg { display: block; width: 100%; height: auto; }

body.app .step-art .art-card { fill: var(--input); stroke: var(--line); stroke-width: 1.5; }
body.app .step-art .art-bar { fill: var(--fg-mute); opacity: .45; }
body.app .step-art .art-fill { fill: var(--accent); }
body.app .step-art .art-line { stroke: var(--fg-mute); stroke-width: 2; fill: none; }
body.app .step-art .art-head { fill: var(--fg-mute); }
body.app .step-art .art-drop { fill: none; stroke: var(--accent);
                               stroke-width: 2; stroke-dasharray: 6 5; }
body.app .step-art .art-plus { stroke: var(--accent); stroke-width: 2.5;
                               stroke-linecap: round; fill: none; }
body.app .step-art .art-on { fill: var(--accent); opacity: .9; }
body.app .step-art .art-txt { fill: var(--fg-mute); font-size: 13px;
                              font-weight: 700; font-family: ui-monospace, Consolas, monospace; }
body.app .step-art .art-txt-sm { fill: var(--fg-mute); font-size: 9px; }
body.app .step-art .art-txt-on { fill: var(--accent-fg); font-size: 11px; font-weight: 700; }

body.app .panel ul,
body.app .panel ol { margin: 0 0 12px; padding-left: 0; list-style: none; }
body.app .panel li {
  position: relative; padding-left: 20px; margin-bottom: 8px;
  font-size: 13.5px; line-height: 1.95; color: var(--fg-dim);
}
body.app .panel li:last-child { margin-bottom: 0; }
body.app .panel ul > li::before {
  content: ""; position: absolute; left: 3px; top: 12px;
  width: 8px; height: 2px; border-radius: 1px;
  background: var(--accent); opacity: .75;
}
body.app .panel ol { counter-reset: tli; }
body.app .panel ol > li { counter-increment: tli; padding-left: 30px; }
body.app .panel ol > li::before {
  content: counter(tli); position: absolute; left: 0; top: 6px;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-fg);
  font-size: 11.5px; font-weight: 700;
}
body.app .panel li b { color: var(--fg); }
body.app .changelog {
  margin: 12px 0 0; padding: 0; list-style: none;
  border-left: 2px solid var(--line);
}
body.app .changelog li { position: relative; padding: 7px 0 7px 22px; }
body.app .panel ul.changelog > li::before {
  content: ""; position: absolute; left: -6px; top: 15px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px var(--card);
}
body.app .changelog li b {
  color: var(--accent); font-family: Consolas, monospace; font-size: 12px;
  margin-right: 9px; letter-spacing: .2px;
}


body.app .ext-note {
  margin-top: 16px; padding: 16px 20px;
  background: var(--elev); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0;
}
body.app .ext-note h2 { margin: 0 0 10px; font-size: 15px; }
body.app .ext-note ul { margin: 0 0 10px; }

@media (max-width: 760px) {
  body.app .step-card { flex-direction: column; align-items: flex-start; }
  body.app .step-art { flex: none; width: 100%; max-width: 280px; }
}

body.app .steps {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 4px;
}
body.app .step {
  background: var(--elev); border: 1px solid var(--line);
  border-radius: 15px; padding: 16px 16px 15px;
}
body.app .step-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--accent-bg); color: var(--accent);
}
body.app .step-ico svg {
  width: 21px; height: 21px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
body.app .step h3 { margin: 11px 0 7px; font-size: 14.5px; }
body.app .step p { margin: 0; font-size: 13px; line-height: 1.85; color: var(--fg-dim); }

body.app .tool-list a { align-items: center; gap: 14px; }
body.app .tl-ico {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--chip); color: var(--accent);
}
body.app .tl-ico svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }

body.app .cmp-ico {
  width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px;
  fill: none; stroke: var(--fg-mute); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
body.app .cmp tr.is-us .cmp-ico { stroke: var(--accent); }

@media (max-width: 760px) {
  body.app .steps { grid-template-columns: 1fr; }
}

body.app .hero-home { position: relative; isolation: isolate; }
body.app .panel h2 { display: flex; align-items: center; gap: 9px; }
body.app .sec-ico {
  flex: none; width: 19px; height: 19px;
  fill: none; stroke: var(--accent); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

body.app .doc-list li { flex-direction: row; gap: 12px; align-items: flex-start; }
body.app .doc-ico {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--chip); color: var(--accent);
}
body.app .doc-ico svg {
  width: 17px; height: 17px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
body.app .doc-txt { display: flex; flex-direction: column; gap: 3px; }

body.app .doc-list li { padding-left: 0; margin-bottom: 0; }
body.app .panel ul.doc-list > li::before { content: none; display: none; }

body.app .hero-mural {
  display: block; width: 100%; max-width: 1080px; height: auto;
  margin: 14px auto 4px; color: var(--fg); opacity: .9;
  pointer-events: none;
}
@media (max-width: 760px) { body.app .hero-mural { display: none; } }

body.app .sec-top {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px; align-items: center;
}
body.app .sec-top-txt { min-width: 0; }
body.app .sec-lead-art {
  width: 100%; height: auto; justify-self: end;
  color: var(--fg); pointer-events: none;
}
@media (max-width: 820px) {
  body.app .sec-top { grid-template-columns: 1fr; }
  body.app .sec-lead-art { display: none; }
}

body.app .sec-top.is-tight { align-items: start; }
body.app .sec-top.is-tight .sec-lead-art { width: 216px; }

body.app .nf-wrap {
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  gap: 44px; align-items: center; padding: 26px 8px 30px;
}
body.app .nf-art { width: 100%; height: auto; color: var(--fg); }
body.app .nf-code {
  margin: 0 0 8px; font-size: 12.5px; letter-spacing: 3px;
  color: var(--accent); font-weight: 700;
  font-family: Consolas, ui-monospace, monospace;
}
body.app .nf h1 { margin: 0 0 11px; font-size: clamp(24px, 3vw, 32px); }
body.app .nf-lede {
  margin: 0 0 22px; max-width: 470px;
  color: var(--fg-dim); font-size: 13.5px; line-height: 1.9;
}
body.app .nf-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) {
  body.app .nf-wrap { grid-template-columns: 1fr; gap: 18px; padding-top: 10px; }
  body.app .nf-art { max-width: 210px; margin: 0 auto; }
}

body.app .masthead {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 46px; align-items: center; text-align: left;
}
body.app .masthead-txt { min-width: 0; }
body.app .masthead .hero-sub { margin: 0; max-width: 640px; }
body.app .masthead-art {
  width: 100%; height: auto; justify-self: end;
  color: var(--fg); pointer-events: none;
}
body.app .masthead h1 { text-align: left; }
@media (max-width: 900px) {
  body.app .masthead { grid-template-columns: 1fr; gap: 16px; }
  body.app .masthead-art { width: 190px; justify-self: center; }
}

/* 首页：把 hero-mural 插画作为输入框背景，cover 铺满 */
body.app .home-composer {
  position: relative;
  overflow: hidden;
}
body.app .home-composer .hero-mural {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  opacity: .22;
  z-index: 0;
  pointer-events: none;
}
body.app .home-composer > textarea,
body.app .home-composer > .composer-bar {
  position: relative;
  z-index: 1;
}
@media (max-width: 760px) {
  body.app .home-composer .hero-mural { display: block; opacity: .14; }
}

/* 首页标题与输入框之间留出呼吸空间 */
body.app .hero-home h1 {
  margin-bottom: 28px;
}
@media (max-width: 600px) {
  body.app .hero-home h1 { margin-bottom: 22px; }
}

/* 首页：真实 UI 演示图 */
body.app .show-real {
  display: block;
  max-width: 1120px;
  margin: 26px auto 0;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--elev);
}
body.app .show-real img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) {
  body.app .show-real { margin-top: 18px; border-radius: 14px; }
}

/* 首页 v2：双栏首屏 + 能力卡 + 场景卡 */
body.app .hero.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 46px;
  align-items: center;
  text-align: left;
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 26px;
}
body.app .hero-split .hero-copy { min-width: 0; }
body.app .hero-split .hero-kicker {
  margin: 0 0 10px; color: var(--accent);
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
}
body.app .hero-split h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.22; letter-spacing: -.8px;
}
body.app .hero-split .hero-sub {
  margin: 0 0 22px; max-width: 620px;
  color: var(--fg-dim); font-size: 15.5px; line-height: 1.8;
}
body.app .hero-split .home-composer { max-width: none; margin: 0; }
body.app .hero-trust {
  margin: 14px 0 0; color: var(--fg-mute); font-size: 13px;
}
body.app .hero-visual { margin: 0; }
body.app .hero-visual img {
  display: block; width: 100%; height: auto;
  border-radius: 20px; border: 1px solid var(--line);
  box-shadow: var(--shadow); background: #120b0e;
}
@media (max-width: 980px) {
  body.app .hero.hero-split { grid-template-columns: 1fr; gap: 26px; }
  body.app .hero-visual { max-width: 520px; margin: 0 auto; }
}

body.app .feature-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; margin-top: 22px;
}
body.app .feature-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--elev); color: inherit; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.app .feature-card:hover {
  transform: translateY(-2px); box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}
body.app .feature-ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--chip); color: var(--accent);
}
body.app .feature-ico svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
body.app .feature-card h3 { margin: 0; font-size: 18px; }
body.app .feature-card p {
  margin: 0; color: var(--fg-dim); font-size: 14px; line-height: 1.75; flex: 1;
}
body.app .feature-link { color: var(--accent); font-size: 14px; font-weight: 600; }

body.app .scene-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; margin-top: 20px;
}
body.app .scene-card {
  display: flex; flex-direction: column; gap: 5px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--input); color: inherit; text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
body.app .scene-card:hover { background: var(--elev); border-color: var(--line); }
body.app .scene-card b { font-size: 15px; }
body.app .scene-card span { color: var(--fg-mute); font-size: 13px; line-height: 1.65; }
@media (max-width: 900px) {
  body.app .feature-grid { grid-template-columns: 1fr; }
  body.app .scene-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body.app .scene-grid { grid-template-columns: 1fr; }
}

/* 首屏右侧用手机视频卡，避免和下方完整演示图重复 */
body.app .hero-visual img { max-width: 340px; margin: 0 auto; }
@media (min-width: 1101px) {
  body.app .foot-inner { grid-template-columns: 1.6fr 1fr 1fr; }
}

/* 演示区只展示结果卡，避免和首屏手机重复 */
body.app .show-real { max-width: 900px; }

/* 恢复完整演示图尺寸（v2 之前为 1120） */
body.app .show-real { max-width: 1120px; }

/* ================================================================
   抖音文案提取页
   ================================================================ */
body.app .extract-main { gap: 24px; }

body.app .extract-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: 44px;
  align-items: start;
  padding: 8px 4px 2px;
  text-align: left;
}
body.app .extract-hero-copy { min-width: 0; }
body.app .extract-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.8px;
}
body.app .extract-hero .eyebrow i {
  display: inline-block; width: 20px; height: 1px;
  background: var(--accent);
}
body.app .extract-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.16; letter-spacing: -.8px;
}
body.app .extract-hero .hero-sub {
  max-width: 650px; margin: 0 0 22px;
  color: var(--fg-dim); font-size: 15px; line-height: 1.9;
}
body.app .extract-hero-composer {
  margin-top: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}
html.is-parsing .extract-hero-composer {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg), var(--shadow);
}
body.app .extract-hero-chips {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 23px;
}
body.app .extract-hero-chips span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--input);
  color: var(--fg-dim); font-size: 12px;
}
body.app .extract-hero-chips svg {
  width: 14px; height: 14px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

body.app .extract-demo {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(145deg, var(--elev), var(--card));
  box-shadow: var(--shadow); padding: 18px 19px 16px;
}
body.app .extract-demo::before {
  content: ""; position: absolute; width: 220px; height: 220px;
  right: -100px; top: -120px; border-radius: 50%;
  background: var(--accent); opacity: .12; filter: blur(40px);
  pointer-events: none;
}
body.app .demo-head {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
body.app .demo-brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--fg-dim); font-size: 12px; font-weight: 600;
}
body.app .demo-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-bg);
}
body.app .demo-badge {
  padding: 2px 8px; border-radius: 20px;
  color: var(--accent); background: var(--accent-bg);
  font-size: 10.5px; font-weight: 600;
}
body.app .demo-wave {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end; gap: 3px;
  height: 38px; margin-top: 14px; opacity: .72;
}
body.app .demo-wave span {
  flex: 1 1 0; min-width: 2px; height: var(--h);
  border-radius: 2px; background: var(--accent);
  opacity: .55; transform-origin: bottom;
}
html.is-parsing .demo-wave span {
  animation: demoWave .8s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -65ms);
}
@keyframes demoWave {
  from { transform: scaleY(.34); opacity: .32; }
  to { transform: scaleY(1); opacity: .95; }
}
body.app .demo-body {
  display: flex; flex-direction: column; gap: 11px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
body.app .demo-body p {
  margin: 0; color: var(--fg-dim);
  font-size: 13.5px; line-height: 1.85;
}
body.app .demo-body .demo-muted { opacity: .68; }
body.app .demo-ts {
  display: inline-block; margin-right: 5px; padding: 1px 6px;
  border-radius: 5px; background: var(--accent-bg); color: var(--accent);
  font: 11px ui-monospace, Consolas, monospace; white-space: nowrap;
}
body.app .demo-foot {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
  margin-top: 16px; padding-top: 13px;
  border-top: 1px solid var(--line-soft);
}
body.app .demo-foot > span:not(.demo-len) {
  padding: 2px 9px; border-radius: 20px;
  background: var(--accent-bg); color: var(--accent); font-size: 11px;
}
body.app .demo-len { margin-left: auto; color: var(--fg-mute); font-size: 11px; }
body.app .demo-scan {
  position: absolute; z-index: 2; left: 18px; right: 18px; top: 104px;
  height: 1px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 10px var(--accent);
}
html.is-parsing .demo-scan {
  animation: demoScan 2.6s ease-in-out infinite;
}
@keyframes demoScan {
  0% { transform: translateY(0); opacity: 0; }
  16% { opacity: .8; }
  82% { opacity: .7; }
  100% { transform: translateY(152px); opacity: 0; }
}
html.is-parsing .extract-demo {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg), var(--shadow);
}

body.app .extract-work,
body.app .extract-guide,
body.app .extract-result { padding: 22px 24px 24px; }
body.app .work-head,
body.app .guide-head,
body.app .result-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
}
body.app .work-head { margin-bottom: 16px; }
body.app .work-head h2,
body.app .guide-head h2,
body.app .result-head h2 {
  margin: 0 0 4px; font-size: 20px; line-height: 1.35;
}
body.app .work-head p,
body.app .guide-head > p,
body.app .result-note {
  margin: 0; color: var(--fg-mute); font-size: 12.5px; line-height: 1.75;
}
body.app .work-pill {
  flex: none; align-self: flex-start; padding: 5px 10px;
  border: 1px solid var(--line); border-radius: 20px;
  color: var(--fg-mute); background: var(--input); font-size: 11.5px;
}
body.app .extract-composer {
  padding: 16px 17px 14px; border-radius: 16px;
  box-shadow: none;
}
body.app .composer-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 0 2px 4px;
}
body.app .composer-label {
  color: var(--fg-dim); font-size: 12.5px; font-weight: 600;
}
body.app .composer-hint { color: var(--fg-mute); font-size: 11px; }
body.app .extract-composer textarea {
  min-height: 162px; font-size: 15px; line-height: 1.8;
}
body.app .extract-composer .composer-bar {
  margin-top: 6px; padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
body.app .composer-foot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 11px;
  border-top: 1px solid var(--line-soft);
  color: var(--fg-mute); font-size: 11.5px;
}
body.app #extractInputMeta { font-variant-numeric: tabular-nums; }

body.app .guide-head { margin-bottom: 18px; }
body.app .guide-head > p { max-width: 300px; margin-top: 7px; text-align: right; }
body.app .guide-grid {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 34px;
  border-top: 1px solid var(--line);
}
body.app .guide-step {
  display: grid; grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 10px; padding: 18px 0 19px;
  border: 0; border-bottom: 1px solid var(--line-soft);
  border-radius: 0; background: transparent;
}
body.app .guide-num {
  grid-row: 1 / span 2; align-self: start;
  min-width: 0; height: auto; padding: 2px 0;
  border-radius: 0; color: var(--accent); background: none;
  font: 700 11px/1.4 ui-monospace, Consolas, monospace;
  letter-spacing: .4px;
}
body.app .guide-step h3 {
  grid-column: 2; margin: 0 0 5px; font-size: 14.5px;
}
body.app .guide-step p {
  grid-column: 2; margin: 0;
  color: var(--fg-mute); font-size: 13px; line-height: 1.8;
}
body.app .guide-step a { color: var(--accent); }
body.app .guide-tip {
  display: block; margin-top: 16px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(100deg, var(--accent-bg), var(--input));
}
body.app .guide-tip h3 { margin: 0 0 5px; font-size: 14px; }
body.app .guide-tip p { margin: 0; color: var(--fg-mute); font-size: 13px; line-height: 1.8; }
body.app .guide-tip code {
  padding: 1px 5px; border-radius: 5px;
  background: var(--card); color: var(--accent);
  font: 12px ui-monospace, Consolas, monospace;
}

body.app .extract-result { padding-bottom: 20px; }
body.app .result-head { align-items: flex-end; margin-bottom: 10px; }
body.app .result-note { max-width: 340px; text-align: right; }
body.app .extract-result #resultWrap { margin-top: 16px; }
body.app .extract-result .batch-bar {
  margin-top: 0; padding: 11px 14px;
  background: var(--input); border-color: var(--line-soft);
  border-radius: 12px;
}
body.app .extract-result .vid-card {
  margin-top: 14px; border-color: var(--line);
  border-radius: 16px; background: var(--card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}
body.app .extract-result .vc-head {
  padding: 14px 18px; background: transparent;
  border-bottom: 1px solid var(--line-soft);
}
body.app .extract-result .vc-idx {
  width: 24px; height: 24px; border-radius: 8px; font-size: 12px;
}
body.app .extract-result .vc-title { font-size: 14.5px; }
body.app .extract-result .vc-body { padding: 16px 18px 19px; }
body.app .extract-result .info-card {
  margin-top: 0; margin-bottom: 14px; padding: 16px 17px;
  border: 1px solid var(--line-soft); border-left: 3px solid var(--accent);
  border-radius: 12px; background: var(--input);
}
body.app .extract-result .info-title { font-size: 18px; line-height: 1.55; }
body.app .extract-result .info-tags { margin-bottom: 10px; }
body.app .extract-result .info-tags a { background: var(--card); }
body.app .extract-result .out-head { margin: 4px 0 10px; }
body.app .extract-result .out-head h3 { font-size: 14px; }
body.app .extract-result .transcript {
  padding: 20px 22px; max-height: 720px;
  border-color: var(--line-soft); border-radius: 12px;
  background: var(--elev); font-size: 15.5px;
}
body.app .extract-result .transcript .ts {
  padding: 1px 7px; border-radius: 5px; margin-right: 7px; font-size: 12px;
}
body.app .extract-result .progress {
  position: relative; overflow: hidden;
  border-color: var(--line-soft); border-radius: 12px; background: var(--input);
}
body.app .extract-result:not([hidden]) {
  animation: extractIn .48s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes extractIn {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
body.app .parse-wave {
  display: flex; align-items: center; gap: 3px;
  height: 26px; flex: none;
}
body.app .parse-wave i {
  display: block; width: 3px; min-width: 3px;
  border-radius: 3px; background: var(--accent);
  opacity: .55; transform-origin: bottom;
  animation: parseBar .85s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -70ms);
}
@keyframes parseBar {
  from { transform: scaleY(.32); opacity: .28; }
  to { transform: scaleY(1); opacity: .95; }
}
body.app .parse-copy {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
body.app .parse-copy b {
  color: var(--fg); font-size: 13px; font-weight: 600;
}
body.app .parse-copy span {
  color: var(--fg-mute); font-size: 12px; line-height: 1.5;
}
body.app .parse-track {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  overflow: hidden; background: var(--line);
}
body.app .parse-track i {
  display: block; width: 34%; height: 100%;
  background: var(--accent);
  animation: parseTrack 1.8s ease-in-out infinite;
}
@keyframes parseTrack {
  from { transform: translateX(-100%); }
  to { transform: translateX(300%); }
}
body.app .extract-result .rw-block {
  margin-top: 22px; padding-top: 18px; border-color: var(--line-soft);
}
body.app .extract-result .rw-out {
  border-color: var(--line-soft); border-radius: 12px; background: var(--elev);
}

@media (max-width: 900px) {
  body.app .extract-hero { grid-template-columns: 1fr; gap: 22px; }
  body.app .extract-demo { max-width: 560px; }
  body.app .guide-head,
  body.app .result-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  body.app .guide-head > p,
  body.app .result-note { max-width: none; text-align: left; }
}
@media (max-width: 860px) {
  /* 底部导航是 fixed 的，操作栏跟着粘在导航上方，别被盖住。 */
  body.app .extract-composer .composer-bar {
    position: sticky; bottom: 58px; z-index: 5;
    margin: 6px -4px -2px; padding: 9px 6px 8px;
    background: var(--elev); border: 1px solid var(--line-soft);
    border-radius: 12px;
    box-shadow: 0 -8px 22px rgba(0, 0, 0, .16);
  }
}
@media (max-width: 720px) {
  body.app .extract-main { gap: 18px; }
  body.app .extract-hero { padding-top: 2px; }
  body.app .extract-demo { display: none; }
  body.app .extract-work,
  body.app .extract-guide,
  body.app .extract-result { padding: 18px 16px 19px; }
  body.app .work-head { flex-direction: column; gap: 8px; }
  body.app .work-pill { align-self: flex-start; }
  body.app .guide-grid { grid-template-columns: 1fr; }
  body.app .composer-hint { display: none; }
  body.app .extract-composer textarea { min-height: 150px; }
  body.app .composer-foot { flex-direction: column; gap: 5px; }
  body.app .extract-result .vc-head { padding: 12px 13px; }
  body.app .extract-result .vc-body { padding: 14px 13px 16px; }
  body.app .extract-result .info-card { padding: 14px 15px; }
  body.app .extract-result .transcript { padding: 15px 16px; font-size: 14.5px; }
  body.app .guide-tip { padding: 14px 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html.is-parsing .demo-wave span,
  html.is-parsing .demo-scan,
  body.app .parse-wave i,
  body.app .parse-track i,
  body.app .extract-result:not([hidden]) { animation: none !important; }
}

/* ================================================================
   抖音主页作品采集
   ================================================================ */
body.app .works-main { gap: 24px; }

body.app .works-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: 42px;
  align-items: center;
  padding: 8px 4px 2px;
  text-align: left;
}
body.app .works-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.16; letter-spacing: -.8px;
}
body.app .works-hero .hero-sub {
  max-width: 650px; margin: 0;
  color: var(--fg-dim); font-size: 15px; line-height: 1.9;
}
body.app .works-search {
  display: flex; align-items: stretch; gap: 10px;
  max-width: 760px; margin-top: 22px;
}
body.app .works-search input {
  flex: 1; min-width: 0;
  background: var(--elev); border: 1px solid var(--line);
  border-radius: 12px; color: var(--fg);
  padding: 13px 15px; font: inherit; font-size: 14.5px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
body.app .works-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
body.app .works-search input::placeholder { color: var(--fg-mute); }
body.app .works-search .btn { flex: none; padding: 0 22px; border-radius: 12px; }
body.app .works-hint {
  max-width: 720px; margin: 11px 0 0;
  color: var(--fg-mute); font-size: 12px; line-height: 1.75;
}
body.app .works-error {
  margin-top: 14px; padding: 10px 13px;
  border: 1px solid var(--err); border-radius: 10px;
  background: var(--err-bg); color: var(--err);
  font-size: 13px; line-height: 1.65;
}

body.app .works-hero-art {
  padding: 18px 19px 15px;
  border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(145deg, var(--elev), var(--card));
  box-shadow: var(--shadow);
}
body.app .works-art-head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 13px; border-bottom: 1px solid var(--line-soft);
  color: var(--fg-dim); font-size: 12px; font-weight: 600;
}
body.app .works-art-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-bg);
}
body.app .works-art-count {
  margin-left: auto; padding: 2px 8px; border-radius: 20px;
  color: var(--accent); background: var(--accent-bg); font-size: 10.5px;
}
body.app .works-art-row {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 0 0;
}
body.app .works-art-thumb {
  width: 42px; height: 54px; flex: none; border-radius: 8px;
  background: linear-gradient(145deg, var(--accent-bg), var(--input));
  border: 1px solid var(--line-soft);
}
body.app .works-art-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
body.app .works-art-lines i,
body.app .works-art-lines b,
body.app .works-art-lines em {
  display: block; height: 7px; border-radius: 4px;
  background: var(--line); font-style: normal;
}
body.app .works-art-lines i { width: 78%; background: var(--accent); opacity: .45; }
body.app .works-art-lines b { width: 52%; }
body.app .works-art-lines em { width: 64%; opacity: .65; }

body.app .works-profile { padding: 20px 22px 18px; }
body.app .works-profile-main {
  display: flex; align-items: flex-start; gap: 16px;
}
body.app .works-avatar {
  flex: none; width: 64px; height: 64px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; color: var(--accent); background: var(--accent-bg);
  font-size: 24px; font-weight: 700;
}
body.app .works-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.app .works-avatar.has-img { background: none; }
body.app .works-profile-text { flex: 1; min-width: 0; }
body.app .works-name-line { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
body.app .works-name-line h2 { margin: 0; font-size: 21px; line-height: 1.35; }
body.app .works-verified {
  padding: 2px 8px; border-radius: 20px;
  background: var(--accent-bg); color: var(--accent); font-size: 10.5px;
}
body.app .works-handle {
  margin: 4px 0 5px; color: var(--fg-mute); font-size: 12px;
}
body.app .works-bio {
  margin: 0; color: var(--fg-dim); font-size: 12.5px; line-height: 1.7;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
body.app .works-profile-actions {
  flex: none; display: flex; align-items: flex-end; gap: 9px;
}
body.app .works-pages-field {
  display: flex; flex-direction: column; gap: 4px;
  color: var(--fg-mute); font-size: 10.5px;
}
body.app .works-pages-field input {
  width: 70px; background: var(--input); border: 1px solid var(--line);
  border-radius: 8px; color: var(--fg); padding: 7px 9px;
  font: inherit; font-size: 13px; outline: none;
}
body.app .works-stats {
  display: flex; flex-wrap: wrap; gap: 0;
  margin-top: 16px; padding-top: 13px;
  border-top: 1px solid var(--line-soft);
}
body.app .works-stats > span {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 90px; padding: 0 20px;
  border-right: 1px solid var(--line-soft);
}
body.app .works-stats > span:first-child { padding-left: 0; }
body.app .works-stats > span:last-child { border-right: 0; }
body.app .works-stats i { color: var(--fg-mute); font-size: 11px; font-style: normal; }
body.app .works-stats b { color: var(--fg-dim); font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }

body.app .works-progress { padding: 20px 22px 21px; }
body.app .works-progress-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
body.app .works-progress-kicker {
  display: block; margin-bottom: 4px;
  color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: 1.4px;
}
body.app .works-progress-head b { color: var(--fg); font-size: 15px; font-weight: 600; }
body.app .works-progress-count { color: var(--fg-dim); font-size: 13px; font-variant-numeric: tabular-nums; }
body.app .works-progress-track {
  height: 6px; margin-top: 14px; overflow: hidden;
  border-radius: 99px; background: var(--input);
}
body.app .works-progress-track i {
  display: block; width: 0; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
  transition: width .4s ease;
}
body.app .works-progress-meta {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 9px; color: var(--fg-mute); font-size: 11.5px;
}

body.app .works-results { padding: 20px 22px 22px; }
body.app .works-toolbar {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin-bottom: 15px;
}
body.app .works-toolbar-title {
  display: flex; align-items: baseline; gap: 8px; margin-right: auto;
}
body.app .works-toolbar h2 { margin: 0; font-size: 19px; }
body.app .works-total { color: var(--fg-mute); font-size: 11.5px; }
body.app .works-toolbar input[type=search] {
  width: 180px; background: var(--input); border: 1px solid var(--line);
  border-radius: 9px; color: var(--fg); padding: 7px 10px;
  font: inherit; font-size: 12.5px; outline: none;
}
body.app .works-toolbar input[type=search]:focus { border-color: var(--accent); }
body.app .works-toolbar select {
  background: var(--input); border: 1px solid var(--line);
  border-radius: 9px; color: var(--fg); padding: 7px 10px;
  font: inherit; font-size: 12.5px; outline: none;
}
body.app .works-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
body.app .works-card {
  display: block; overflow: hidden; color: inherit; text-decoration: none;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
body.app .works-card:hover {
  transform: translateY(-2px); border-color: var(--accent);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .14);
}
body.app .works-cover {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  background: linear-gradient(145deg, var(--accent-bg), var(--input));
}
body.app .works-cover img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
body.app .works-card:hover .works-cover img { transform: scale(1.035); }
body.app .works-cover.no-img::before {
  content: "抖音作品"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-mute); font-size: 12px;
}
body.app .works-play {
  position: absolute; left: 10px; bottom: 10px;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.48); color: #fff; font-size: 10px;
  backdrop-filter: blur(4px);
}
body.app .works-top {
  position: absolute; right: 9px; top: 9px;
  padding: 2px 7px; border-radius: 20px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 10px;
}
body.app .works-card-body { padding: 12px 13px 13px; }
body.app .works-desc {
  margin: 0 0 8px; min-height: 2.85em;
  font-size: 13.5px; font-weight: 600; line-height: 1.42;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
body.app .works-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 9px; color: var(--fg-mute); font-size: 11px;
}
body.app .works-author {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 58%;
}
body.app .works-card-stats {
  display: flex; gap: 10px; padding-top: 8px;
  border-top: 1px solid var(--line-soft);
  color: var(--fg-mute); font-size: 11px;
}
body.app .works-card-stats i { margin-right: 3px; font-style: normal; color: var(--fg-mute); }
body.app .works-card-stats b { font-weight: 500; color: var(--fg-dim); font-variant-numeric: tabular-nums; }
body.app .works-empty {
  padding: 34px 20px; text-align: center;
  border: 1px dashed var(--line); border-radius: 14px;
  color: var(--fg-mute); font-size: 13px;
}

body.app .works-guide { padding: 20px 22px 21px; }
body.app .works-guide-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
body.app .works-guide-head h2 { margin: 0; font-size: 19px; }
body.app .works-guide-head span { color: var(--fg-mute); font-size: 12px; }
body.app .works-guide-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 28px; margin-top: 16px;
  border-top: 1px solid var(--line);
}
body.app .works-guide-grid > div {
  padding: 16px 0 15px; border-bottom: 1px solid var(--line-soft);
}
body.app .works-guide-grid b {
  color: var(--accent); font: 700 10px ui-monospace, Consolas, monospace;
  letter-spacing: .4px;
}
body.app .works-guide-grid h3 { margin: 6px 0 5px; font-size: 14px; }
body.app .works-guide-grid p { margin: 0; color: var(--fg-mute); font-size: 12.5px; line-height: 1.75; }
body.app .works-note { margin: 13px 0 0; color: var(--fg-mute); font-size: 11.5px; }

@media (max-width: 1000px) {
  body.app .works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  body.app .works-hero { grid-template-columns: 1fr; gap: 22px; }
  body.app .works-hero-art { max-width: 560px; }
  body.app .works-guide-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body.app .works-main { gap: 18px; }
  body.app .works-hero { padding-top: 2px; }
  body.app .works-hero-art { display: none; }
  body.app .works-profile,
  body.app .works-progress,
  body.app .works-results,
  body.app .works-guide { padding: 18px 16px 19px; }
  body.app .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.app .works-profile-main { flex-wrap: wrap; }
  body.app .works-profile-actions { width: 100%; justify-content: flex-end; margin-top: 6px; }
  body.app .works-stats > span { min-width: 80px; padding: 0 12px; }
  body.app .works-stats b { font-size: 14px; }
  body.app .works-toolbar input[type=search] { flex: 1 1 160px; width: auto; }
  body.app .works-guide-grid { grid-template-columns: 1fr; }
  body.app .works-guide-head { align-items: flex-start; flex-direction: column; gap: 5px; }
  body.app .works-search { flex-direction: column; }
  body.app .works-search .btn { padding: 12px 18px; }
}
@media (max-width: 460px) {
  body.app .works-grid { grid-template-columns: 1fr; }
  body.app .works-stats > span { min-width: 50%; border-right: 0; margin-top: 8px; }
  body.app .works-stats > span:first-child { padding-left: 12px; }
}
