:root {
  --paper: #f7f8fa;
  --white: #fff;
  --ink: #20252b;
  --muted: #68717c;
  --line: #e2e6eb;
  --accent: #dc3f37;
  --accent-dark: #bf302a;
  --pale: #fff1ef;
  --green: #2f7550;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: inherit; text-decoration: none; }
button, textarea { color: inherit; }
svg { display: block; }
button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
button, a, summary, input, textarea { outline-offset: 5px; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid #dc3f3770; }
textarea:focus-visible { outline: 0; }
[hidden] { display: none !important; }
.page-width { width: min(1000px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; left: 20px; top: -80px; z-index: 20; padding: 12px 20px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 15px; }
.site-header { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 25px; font-weight: 750; letter-spacing: -1px; }
.brand-mark { color: var(--accent); width: 33px; height: 33px; }
.brand-dot { color: var(--accent); }
.header-right { display: flex; align-items: center; gap: 27px; font-size: 13px; color: #535d68; }
.header-right a { padding-block: 8px; }
.header-right a:hover, .footer-links a:hover { color: var(--accent); }
.intro { text-align: center; padding: 35px 0 25px; }
.eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 600; color: var(--muted); }
h1 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 750; letter-spacing: -.035em; line-height: 1.3; margin: 0; }
.title-accent { color: var(--accent); display: inline-block; }
.intro-copy { font-size: 15px; color: #59636f; margin: 12px 0 0; }
.platform-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 18px 0 0; font-size: 12px; color: #66707c; }
.platform-list li { display: flex; align-items: center; gap: 5px; }
.platform-list strong { color: #434d59; font-weight: 600; }
.platform-dot { width: 7px; height: 7px; margin-right: 2px; border-radius: 50%; background: var(--accent); }
.platform-dot-ks { background: #e88624; }
.platform-dot-bili { background: #3598be; }
.input-panel { background: var(--white); border: 1px solid #dfe3e8; border-radius: 14px; padding: 25px 27px 18px; box-shadow: 0 5px 20px #20252b04; }
.input-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.input-heading label { font-size: 15px; font-weight: 600; }
.field-note { font-size: 12px; color: #7b8591; }
.textarea-wrap { position: relative; border: 1px solid #dce1e7; border-radius: 9px; background: #fafbfc; transition: border-color .16s, box-shadow .16s; }
.textarea-wrap:focus-within { border-color: #df7a74; box-shadow: 0 0 0 3px #dc3f370c; }
textarea { display: block; width: 100%; resize: vertical; min-height: 126px; max-height: 300px; padding: 17px 45px 17px 17px; border: 0; background: transparent; border-radius: 9px; font-size: 15px; line-height: 1.8; word-break: break-all; }
textarea::placeholder { color: #8c95a0; }
.clear-input { position: absolute; top: 10px; right: 10px; font-size: 24px; line-height: 30px; width: 30px; color: #808b98; border-radius: 5px; }
.clear-input:hover { background: #e9edf1; color: var(--ink); }
.input-bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 17px; }
.input-bottom p { margin: 0; font-size: 12px; color: #737e8b; display: flex; align-items: center; gap: 6px; }
.input-bottom p svg { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.2; }
.input-actions { display: flex; align-items: center; gap: 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 46px; padding: 11px 21px; border-radius: 8px; font-size: 14px; font-weight: 600; transition: background .15s, transform .15s; white-space: nowrap; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button-primary { background: var(--accent); color: #fff; min-width: 152px; }
.button-primary:hover:not(:disabled) { background: var(--accent-dark); }
.button-quiet { color: #687481; font-weight: 400; padding-inline: 12px; }
.button-quiet:hover:not(:disabled) { background: #f0f3f6; color: var(--ink); }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover:not(:disabled) { background: #39434f; }
.button-outline { border: 1px solid #d2d9e1; background: transparent; color: #52606f; }
.button-outline:hover:not(:disabled) { background: #edf1f5; }
.button-small { min-height: 40px; padding: 8px 14px; font-size: 12px; gap: 8px; }
.button-small svg { width: 17px; height: 17px; }
.text-button { padding: 5px 0; font-size: 12px; color: #626f7c; line-height: 1.5; }
.text-button:hover { color: var(--accent); }
.quality-note { border-top: 1px solid #edf0f3; padding-top: 13px; margin: 16px 0 0; font-size: 12px; line-height: 1.7; color: #737e8a; }
.field-error { color: #bf302a; font-size: 12px; margin: 8px 0 0; }
.spinner { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #ffffff55; border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.feedback-panel { padding: 15px 19px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; border: 1px solid #dce6df; background: #f0f6f2; border-radius: 9px; }
.feedback-message { display: flex; align-items: center; gap: 10px; min-width: 0; }
.feedback-message p { font-size: 13px; margin: 0; color: #446751; white-space: pre-line; overflow-wrap: anywhere; }
.feedback-icon { display: flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; border-radius: 50%; font-size: 11px; border: 1px solid currentColor; color: #5d7c67; }
.feedback-panel.is-error { background: #fff1ed; border-color: #f0d5cc; }
.feedback-panel.is-error p, .feedback-panel.is-error .feedback-icon { color: #ad4938; }
.feedback-panel.is-warning { background: #fff7e8; border-color: #eadcbe; }
.feedback-panel.is-warning p, .feedback-panel.is-warning .feedback-icon { color: #946d2a; }
.feedback-panel .text-button { white-space: nowrap; }
.result-panel { margin-top: 32px; }
.demo-notice { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; border-bottom: 1px solid var(--line); padding-bottom: 17px; }
.pill { display: inline-block; color: #94702f; border: 1px solid #e8d8bb; background: #fff7e7; border-radius: 4px; padding: 2px 7px; font-size: 11px; white-space: nowrap; }
.demo-notice p { font-size: 12px; color: #747b83; margin: 0; }
.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.result-eyebrow { margin: 0 0 7px; font-size: 12px; color: #75808d; }
.result-heading h2 { font-size: 24px; line-height: 1.4; letter-spacing: -.02em; font-weight: 650; margin: 0; overflow-wrap: anywhere; }
.result-meta { min-width: 0; }
.author-line { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #687582; margin: 12px 0 0; }
.count-badge { font-size: 11px; background: #e9edf2; border-radius: 4px; padding: 1px 7px; color: #596572; }
.source-actions { display: flex; gap: 17px; flex-shrink: 0; }
.result-description { font-size: 13px; line-height: 1.9; color: #6e7987; white-space: pre-line; overflow-wrap: anywhere; max-height: 140px; overflow-y: auto; margin-top: 18px; padding-right: 20px; }
.download-toolbar { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 19px 0; margin-top: 26px; }
.select-all { display: flex; align-items: center; gap: 9px; font-size: 13px; cursor: pointer; }
.select-all input, .image-select input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; cursor: pointer; }
.muted { color: #75818f; font-size: 12px; margin-left: 4px; }
.toolbar-actions { display: flex; gap: 10px; align-items: center; }
.download-progress { margin-bottom: 20px; }
.progress-details { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: #627180; margin-bottom: 6px; }
progress { display: block; width: 100%; height: 4px; border: 0; border-radius: 6px; overflow: hidden; background: #e4e9ef; accent-color: var(--accent); }
progress::-webkit-progress-bar { background: #e4e9ef; }
progress::-webkit-progress-value { background: var(--accent); transition: width .2s; }
progress::-moz-progress-bar { background: var(--accent); }
.image-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.image-card { background: #fff; border: 1px solid #dfe5eb; border-radius: 10px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.image-card:hover { box-shadow: 0 5px 17px #20252b08; }
.image-card.is-unselected { border-color: #e8ecf0; }
.image-preview { position: relative; display: block; background: #e9edf1; min-height: 160px; }
.image-preview > img { width: 100%; height: auto; display: block; min-height: 100px; object-fit: contain; }
.image-preview:has(img[hidden]) { aspect-ratio: 4/3; }
.image-select { position: absolute; z-index: 1; top: 11px; left: 11px; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; background: #ffffffec; box-shadow: 0 1px 5px #0000000b; cursor: pointer; }
.image-select span { font-size: 11px; color: #526272; line-height: 1; }
.preview-error { padding: 35px 20px; text-align: center; color: #7e8a96; font-size: 12px; }
.preview-error p { margin-bottom: 10px; }
.image-card-bottom { padding: 12px 13px; }
.image-card-main { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.image-details { font-size: 11px; color: #778390; }
.image-details strong { display: block; font-size: 13px; color: #465666; font-weight: 600; margin-bottom: 2px; }
.image-save { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 36px; padding: 7px 10px; border-radius: 6px; background: #edf1f5; color: #4c6072; font-size: 12px; white-space: nowrap; }
.image-save svg { width: 14px; height: 14px; stroke-width: 1.5; }
.image-save:hover:not(:disabled) { background: #e1e8ef; }
.image-card-status { font-size: 11px; line-height: 1.6; color: var(--green); margin: 8px 0 0; overflow-wrap: anywhere; }
.image-card-status.is-error { color: #b04d38; }
.image-version { font-size: 11px; line-height: 1.7; margin: 8px 0 0; color: #778390; }
.image-version.is-fallback { color: #966c31; }
.result-footnote { display: flex; justify-content: space-between; gap: 12px; color: #778390; font-size: 11px; margin-top: 18px; }
.media-section { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 20px; }
.media-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.media-heading h3, .image-section-label { font-size: 14px; font-weight: 600; margin: 0; }
.media-heading > span { font-size: 12px; color: #73808e; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.video-card { background: #fff; border: 1px solid #dfe5eb; border-radius: 10px; overflow: hidden; }
.video-card > video { display: block; width: 100%; aspect-ratio: 16/10; object-fit: contain; max-height: 440px; background: #20252b; }
.video-card-body { padding: 17px; }
.video-card-body > strong { font-size: 14px; font-weight: 600; }
.video-details { font-size: 12px; line-height: 1.9; color: #687684; margin: 7px 0; overflow-wrap: anywhere; }
.video-preview-status { font-size: 11px; color: #768491; margin: 8px 0 15px; }
.image-section-label:not([hidden]) { margin-top: 30px; }
.image-section-label:not([hidden]) + .download-toolbar { margin-top: 12px; }
.how-it-works { padding: 34px 0 30px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.section-heading h2 { font-size: 17px; font-weight: 650; margin: 0; }
.section-heading > span { font-size: 12px; color: #7c8793; }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.step { display: flex; gap: 12px; }
.step-number { font-size: 12px; color: #6e7b89; font-variant-numeric: tabular-nums; border: 1px solid #dce2e8; background: #fff; border-radius: 7px; display: flex; justify-content: center; align-items: center; width: 30px; height: 30px; flex-shrink: 0; line-height: 1; }
.step h3 { font-size: 13px; font-weight: 600; margin: 1px 0 6px; }
.step p { font-size: 12px; line-height: 1.8; color: #73808c; margin: 0; }
.ad-space { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 65px; border: 1px dashed #d7dfe6; border-radius: 8px; padding: 16px 20px; background: #f1f4f7; }
.ad-label { font-size: 10px; white-space: nowrap; border: 1px solid #dce2e8; padding: 2px 6px; color: #7e8995; border-radius: 3px; }
.ad-placeholder { font-size: 12px; color: #88939e; }
.notes { margin-top: 27px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 30px; }
.notes details { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.notes summary { list-style: none; font-size: 13px; color: #5a6876; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.notes summary::-webkit-details-marker { display: none; }
.notes summary > span { font-size: 18px; font-weight: 400; color: #8a97a4; }
.notes details[open] summary > span { transform: rotate(45deg); }
.notes details p { font-size: 12px; color: #6e7d8a; line-height: 1.9; margin: 12px 0 0; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 29px 0 27px; margin-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: #778591; }
.footer-identity { display: flex; align-items: center; gap: 12px; }
.footer-brand { font-size: 19px; font-weight: 650; color: #526170; letter-spacing: -.05em; }
.footer-brand span { color: var(--accent); }
.site-footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-links a { padding-block: 5px; }
.toast { position: fixed; z-index: 100; bottom: 28px; left: 50%; transform: translateX(-50%); padding: 10px 19px; background: #24313eed; color: #fff; border-radius: 8px; box-shadow: 0 5px 25px #0001; font-size: 12px; max-width: calc(100% - 32px); text-align: center; }
@media (max-width: 760px) {
  .page-width { width: calc(100% - 36px); }
  .site-header { height: 65px; }
  .brand { font-size: 23px; }
  .brand-mark { width: 29px; height: 29px; }
  .header-right { gap: 17px; font-size: 12px; }
  .header-right a:first-child { display: none; }
  .intro { padding: 29px 0 23px; }
  h1 { font-size: clamp(29px, 5.8vw, 38px); }
  .intro-copy { font-size: 14px; }
  .platform-list { font-size: 11px; gap: 8px 14px; margin-top: 16px; }
  .input-panel { padding: 20px; border-radius: 12px; }
  .input-bottom { align-items: flex-start; flex-direction: column; gap: 17px; }
  .input-actions { align-self: stretch; justify-content: flex-end; }
  .button-primary { min-width: 164px; }
  .field-note { font-size: 11px; }
  .textarea-wrap textarea { font-size: 14px; min-height: 128px; }
  .steps-grid { gap: 20px; }
  .step { display: block; }
  .step-number { margin-bottom: 11px; }
  .step h3 { font-size: 12px; }
  .step p { font-size: 11px; }
  .how-it-works { padding: 28px 0; }
  .section-heading > span { display: none; }
  .notes { grid-template-columns: 1fr; gap: 14px; margin-top: 23px; }
  .result-heading { align-items: flex-start; flex-direction: column; gap: 13px; }
  .result-heading h2 { font-size: 21px; }
  .result-description { font-size: 12px; }
  .source-actions { gap: 22px; }
  .image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .image-card-bottom { padding: 10px; }
  .image-card-main { flex-wrap: wrap; gap: 8px; }
  .image-save { flex: 1; }
  .image-details { flex: 1; }
  .download-toolbar { gap: 12px; }
  .toolbar-actions { gap: 7px; }
  .button-small { padding: 8px 11px; font-size: 11px; }
  .select-all { font-size: 12px; gap: 6px; }
  .muted { font-size: 11px; margin-left: 0; }
  .demo-notice { align-items: flex-start; gap: 10px; }
  .result-footnote { flex-direction: column; gap: 3px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 15px; padding-top: 22px; }
  .footer-links { gap: 8px 20px; }
  .feedback-panel { padding: 13px; }
  .feedback-message { gap: 8px; }
  .feedback-message p { font-size: 12px; }
  .download-toolbar:has(#retry-failed:not([hidden])) { align-items: flex-start; flex-direction: column; }
  .download-toolbar:has(#retry-failed:not([hidden])) .toolbar-actions { align-self: flex-end; }
  .video-grid { grid-template-columns: 1fr; }
  .media-heading { gap: 10px; }
  .media-heading > span { font-size: 11px; }
  .video-card > video { max-height: 380px; }
}
@media (max-width: 420px) {
  .page-width { width: calc(100% - 28px); }
  .header-right { gap: 15px; }
  h1 { max-width: 300px; margin-inline: auto; font-size: 34px; }
  .intro-copy { font-size: 13px; }
  .platform-list { gap: 7px 12px; }
  .platform-list li:first-child { flex-basis: 100%; justify-content: center; }
  .input-panel { padding: 17px; }
  .input-heading label { font-size: 14px; }
  .field-note { font-size: 10px; }
  .input-bottom p { font-size: 11px; }
  .input-actions { width: 100%; }
  .button-primary { flex: 1; }
  .quality-note { font-size: 11px; }
  .steps-grid { grid-template-columns: 1fr; gap: 17px; }
  .step { display: flex; gap: 12px; }
  .step-number { margin-bottom: 0; }
  .step h3 { font-size: 13px; }
  .step p { font-size: 12px; }
  .image-grid { gap: 10px; }
  .footer-links { font-size: 11px; gap: 7px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
