/* Vidoglo public pages: centered search-style hero, results card below. */
:root {
  color-scheme: light;
  --ink: #0b1324;
  --text: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e5e9f0;
  --line-strong: #cfd6e2;
  --bg: #ffffff;
  --soft: #f6f8fc;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #edf3ff;
  --violet: #7c3aed;
  --green: #047857;  --green-soft: #e8f7f0;
  --amber: #a16207;  --amber-soft: #fdf3dc;
  --indigo: #4f46e5; --indigo-soft: #eef0fe;
  --red: #b91c1c;    --red-soft: #fdecec;
  --radius: 10px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-bar: 0 2px 6px rgba(37, 99, 235, .06), 0 18px 40px rgba(37, 99, 235, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 300px; background: var(--bg); color: var(--text);
  font: 15px/1.7 "PingFang SC", "Microsoft YaHei", "Noto Sans SC", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.3; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #93b4f5; outline-offset: 2px; border-radius: 6px; }
::selection { background: #cfe0fd; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.page-width { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 60; top: -80px; left: 16px; padding: 8px 14px; background: #fff; border: 2px solid var(--brand); border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px;
  border: 0; border-radius: 12px; font-weight: 600; white-space: nowrap; transition: background .15s, transform .1s, box-shadow .15s; }
.button-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, .28); }
.button-primary:hover { background: var(--brand-dark); }
.button:active { transform: translateY(1px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .85); border-bottom: 1px solid rgba(229, 233, 240, .8);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); }
.header-inner { min-height: 62px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 800; letter-spacing: -.5px; color: #0b3d91; }
.brand img { display: block; flex: none; }
.main-nav { display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 500; color: var(--text); }
.main-nav > a, .platform-menu summary { padding: 7px 12px; border-radius: 8px; }
.main-nav > a:hover, .platform-menu summary:hover { background: var(--soft); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.platform-menu { position: relative; }
.platform-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.platform-menu summary::-webkit-details-marker { display: none; }
.chevron { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
details[open] > summary .chevron { transform: translateY(1px) rotate(225deg); }
.platform-menu-panel { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: min(620px, calc(100vw - 32px));
  max-height: min(70vh, 560px); overflow: auto; padding: 18px 20px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 18px 40px rgba(15, 23, 42, .12); display: grid; gap: 14px; }
.platform-menu-group h2 { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.platform-menu-group div { display: flex; flex-wrap: wrap; gap: 6px; }
.platform-menu-group a { padding: 4px 10px; border-radius: 999px; background: var(--soft); font-size: 13px; }
.platform-menu-group a:hover, .platform-menu-group a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.main-nav > a, .platform-menu summary, .header-community, .header-updates, .header-feedback, .header-qq-group { white-space: nowrap; }
.header-community { padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.header-community:hover { background: var(--soft); }
.header-community[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.header-updates { position: relative; padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.header-updates:hover { background: var(--soft); }
.header-updates[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.update-dot { position: absolute; top: 6px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 2px #fff; }
.header-feedback { padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; font-size: 14px; font-weight: 500; }
.header-feedback:hover { border-color: var(--brand); color: var(--brand); }
.header-qq-group { padding: 7px 12px; border: 1px solid var(--brand); border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-size: 14px; font-weight: 500; }
.header-qq-group:hover { background: var(--brand); color: #fff; }
.qq-label-short { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px; text-align: center;
  background:
    radial-gradient(900px 380px at 50% -60px, rgba(37, 99, 235, .14), transparent 70%),
    radial-gradient(600px 300px at 85% 10%, rgba(124, 58, 237, .08), transparent 70%),
    radial-gradient(600px 300px at 12% 30%, rgba(14, 165, 233, .07), transparent 70%),
    linear-gradient(#f8faff, #fff 85%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(37, 99, 235, .12) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(#000, transparent 75%); -webkit-mask-image: linear-gradient(#000, transparent 75%); }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-notice { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 5px 14px 5px 6px; margin-bottom: 22px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .8); font-size: 13px; color: var(--text); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.hero-notice:hover { border-color: #b9cdf8; }
.notice-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-arrow { color: var(--brand); }
.hero-title { font-size: clamp(30px, 5vw, 50px); font-weight: 800; letter-spacing: -1px; line-height: 1.18; max-width: 18em; text-wrap: balance; }
.title-accent { display: block; margin-top: 6px; background: linear-gradient(90deg, var(--brand) 0%, #6d28d9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.nowrap { display: inline-block; white-space: nowrap; }
.platform-title { font-size: clamp(28px, 4.2vw, 42px); }
.hero-description { margin-top: 16px; font-size: 17px; color: var(--muted); max-width: 40em; }
.hero-card { width: min(780px, 100%); margin-top: 30px; text-align: left; }
.parse-bar { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-strong);
  border-radius: 20px; box-shadow: var(--shadow-bar); transition: border-color .15s, box-shadow .15s; }
.parse-bar:focus-within { border-color: var(--brand); box-shadow: var(--shadow-bar), 0 0 0 4px rgba(37, 99, 235, .12); }
.input-frame { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 16px 16px 6px 18px; }
.input-icon { flex: none; margin-top: 3px; color: var(--faint); }
.parse-bar:focus-within .input-icon { color: var(--brand); }
.input-frame textarea { flex: 1; min-width: 0; min-height: 52px; max-height: 160px; padding: 0 30px 0 0; border: 0; resize: none; background: transparent;
  font-size: 16px; line-height: 1.6; color: var(--ink); field-sizing: content; }
.input-frame textarea:focus { outline: none; }
.input-frame textarea::placeholder { color: var(--faint); }
.input-clear { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--soft); color: var(--muted); font-size: 18px; line-height: 1; }
.input-clear:hover { background: var(--line); color: var(--ink); }
.input-frame textarea:placeholder-shown ~ .input-clear { visibility: hidden; }
.parse-toolbar { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; }
.paste-button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-size: 13px; font-weight: 600; color: var(--text); transition: border-color .15s, color .15s, background .15s; }
.paste-button:hover { border-color: #b9cdf8; background: var(--brand-soft); color: var(--brand); }
.parse-hint { flex: 1; min-width: 0; font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.parse-button { flex: none; min-height: 46px; padding: 0 22px; font-size: 15px; border-radius: 13px; }
.hero-perks { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 16px 0 0; padding: 0; font-size: 13px; color: var(--muted); }
.hero-perks li { display: inline-flex; align-items: center; gap: 6px; }
.hero-perks li::before { content: ""; width: 15px; height: 15px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23047857' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat; }
.platform-selection-status, .parse-status { margin-top: 14px; padding: 10px 14px; border-radius: var(--radius); background: var(--soft); font-size: 14px; text-align: center; }
.parse-status.is-busy { background: var(--brand-soft); color: var(--brand-dark); }
.parse-status.is-error { background: var(--red-soft); color: var(--red); }
/* 视频号 pages: two link boxes, one work or the author's whole homepage (as the desktop 视频号下载器). */
.sph-box { padding: 12px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, .72); box-shadow: var(--shadow-card); }
.sph-box-batch { margin-top: 14px; }
.sph-box-head { display: flex; align-items: center; gap: 10px; margin: 2px 4px 10px; }
.sph-box-icon { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand), #4f46e5); box-shadow: 0 4px 12px rgba(37, 99, 235, .25); }
.sph-box-batch .sph-box-icon { background: linear-gradient(135deg, #7c3aed, #db2777); box-shadow: 0 4px 12px rgba(124, 58, 237, .25); }
.sph-box-copy { min-width: 0; }
.sph-box-copy h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.sph-box-copy p { margin: 1px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.sph-box-copy b { color: #7c3aed; font-weight: 700; }
.sph-box-copy h2:has(.sph-box-tag) { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.sph-box-tag { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px 0 4px; border-radius: 999px; background: #e7f8ee; color: #078a3e;
  font-size: 12px; font-weight: 600; line-height: 22px; white-space: nowrap; }
.sph-box-tag img { width: 16px; height: 16px; border-radius: 4px; }
.sph-box-more { margin: 9px 6px 2px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.sph-box-more .link-button { font-size: 12.5px; }
.sph-box .input-frame { padding: 13px 14px 4px 16px; }
.sph-box .input-frame textarea { min-height: 26px; max-height: 96px; }
.sph-box .parse-button { min-height: 40px; padding: 0 18px; border-radius: 12px; }
.sph-box-batch .parse-button { background: linear-gradient(135deg, #7c3aed, #6d28d9); box-shadow: 0 6px 16px rgba(124, 58, 237, .28); }
.sph-box-batch .parse-button:hover { background: #6d28d9; }
.sph-box-batch .parse-bar:focus-within { border-color: #7c3aed; box-shadow: var(--shadow-bar), 0 0 0 4px rgba(124, 58, 237, .12); }
.sph-box-batch .parse-bar:focus-within .input-icon { color: #7c3aed; }
.is-batch .sph-box-copy p, .is-batch .sph-box .parse-hint { display: none; }
.parse-status.is-success { background: var(--green-soft); color: #166534; }
/* Progress bars for waits, as the desktop tools; the penguin walks on them (pet.css). */
.progress-track .progress-fill { height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--brand), #6d28d9); transition: width .35s ease; }
.progress-track.is-indeterminate .progress-fill { width: 35% !important; animation: indeterminate 1.1s ease-in-out infinite; }
.progress-track.is-live .progress-fill { position: relative; overflow: hidden; }
.progress-track.is-live .progress-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 15%, rgba(255, 255, 255, .55) 50%, transparent 85%); transform: translateX(-100%); animation: progress-sheen 1.4s ease-in-out infinite; }
@keyframes progress-sheen { to { transform: translateX(100%); } }
.tool-wait-bar { height: 4px; }
.parse-status .tool-wait-bar { background: rgba(37, 99, 235, .14); }
.progress-lane { position: relative; }
.progress-lane:has(> .progress-track[hidden]) { display: none; }
.progress-lane > .progress-track { margin: 0; }
.parse-status .progress-lane { max-width: 420px; margin: 9px auto 1px; }
.feedback-error-entry { margin-top: 8px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.feedback-error-entry button { padding: 0; border: 0; background: none; color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 28px; font-size: 13px; }
.logo-strip a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 7px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .85); color: var(--text); transition: border-color .15s, transform .15s; }
.logo-strip a:hover { border-color: #b9cdf8; transform: translateY(-1px); }
.logo-strip a[aria-current="page"] { border-color: var(--brand); color: var(--brand); }
.logo-strip img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }
.logo-strip .logo-more { padding: 6px 12px; color: var(--brand); font-weight: 600; border-style: dashed; }

/* The free desktop Douyin downloader, below the link box on the home and Douyin pages: one short line
   that opens a card (closed by default, so the link box stays the first thing people see). */
.tool-promo { width: 100%; margin-top: 12px; text-align: center; }
.tool-promo-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px dashed #fdba74; border-radius: 999px;
  background: #fff7ed; color: #c2410c; font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; user-select: none; }
.tool-promo-toggle::-webkit-details-marker { display: none; }
.tool-promo-toggle:hover { border-style: solid; background: #ffedd5; }
.tool-promo-chevron { width: 7px; height: 7px; margin-left: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.tool-promo[open] .tool-promo-chevron { transform: translateY(1px) rotate(225deg); }
.tool-promo-body { display: flex; gap: 14px; align-items: center; margin-top: 10px; padding: 12px; border: 1px solid #fed7aa;
  border-radius: 16px; background: linear-gradient(135deg, #fff7ed, #fff); text-align: left; animation: tool-promo-in .2s ease-out; }
@keyframes tool-promo-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.tool-promo-video { position: relative; flex: none; width: 168px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 16px rgba(15, 23, 42, .16); }
.tool-promo-video img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.tool-promo-video:hover img { transform: scale(1.04); }
.tool-promo-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 38px; height: 38px; margin: -19px 0 0 -19px; padding-left: 3px;
  border-radius: 50%; background: rgba(15, 23, 42, .55); color: #fff; font-size: 15px; }
.tool-promo-time { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(15, 23, 42, .7); color: #fff; font-size: 11px; font-weight: 600; }
.tool-promo-copy { flex: 1; min-width: 0; }
.tool-promo-text { font-size: 13px; line-height: 1.6; color: var(--text); }
.tool-promo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tool-promo-actions .button { min-height: 34px; padding: 0 14px; font-size: 13px; box-shadow: none; }
.tool-promo-qq { border: 1px solid #fdba74; background: #fff; color: #c2410c; }
.tool-promo-qq:hover { background: #fff7ed; }
@media (max-width: 719px) { .tool-promo-body { align-items: flex-start; } .tool-promo-video { width: 120px; } }
@media (max-width: 420px) { .tool-promo-body { flex-direction: column; align-items: stretch; } .tool-promo-video { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .tool-promo-body { animation: none; } }

/* Right-hand results panel (stacks under the form on narrow screens) */
.hero-main { display: flex; flex-direction: column; align-items: center; min-width: 0; width: 100%; }
.hero-preview { width: min(780px, 100%); margin-top: 32px; padding: 18px; border: 1px solid var(--line); border-radius: 22px;
  background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-card); text-align: left; }
#results:not([hidden]) + .preview-empty { display: none; }
.preview-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.preview-dot { width: 8px; height: 8px; border-radius: 50%; background: #9db8f0; box-shadow: 0 0 0 4px var(--brand-soft); }
.preview-sample { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: var(--soft); }
.sample-cover { flex: none; width: 104px; height: 68px; border-radius: 12px; background: linear-gradient(135deg, #e0e9fb, #ece4fb); display: grid; place-items: center; color: #9db3d9; font-size: 18px; }
.sample-lines { flex: 1; display: grid; gap: 9px; }
.sample-lines span { height: 10px; border-radius: 5px; background: #e4e9f2; }
.sample-lines span + span { width: 60%; }
.sample-rows { list-style: none; margin: 12px 0 0; padding: 0; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.sample-rows li { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 14px; color: var(--muted); background: #fff; }
.sample-rows li + li { border-top: 1px solid var(--line); }
.sample-rows em { font-style: normal; font-size: 12px; padding: 4px 12px; border-radius: 8px; background: var(--brand-soft); color: #7aa0e6; }
.preview-tip { margin-top: 12px; font-size: 12px; color: var(--faint); text-align: center; }

/* Results card */
.results-section { width: 100%; }
.section-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-top h2 { font-size: 17px; }
.result-badge { padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 12px; font-weight: 600; }
.result-notice { margin-top: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); color: var(--muted); font-size: 13px; line-height: 1.6; }
/* One-click downloads above the result groups (as the desktop tools). */
.tool-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tool-quick .button { min-height: 42px; padding: 0 18px; font-size: 14px; }
.tool-quick .quick-secondary { border: 1px solid var(--line-strong); background: #fff; color: var(--ink); }
.tool-quick .quick-secondary:hover { border-color: var(--brand); color: var(--brand); }
.quick-note { width: 100%; font-size: 12px; color: var(--muted); }
.media-summary { display: flex; gap: 16px; padding: 14px; border-radius: 16px; background: var(--soft); }
.summary-art { position: relative; flex: none; width: 150px; height: 96px; border-radius: 12px; overflow: hidden; background: #e3eaf7; display: grid; place-items: center; color: #9db3d9; }
.summary-art img { width: 100%; height: 100%; object-fit: cover; }
.summary-copy { min-width: 0; align-self: center; }
.summary-copy h3 { font-size: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.summary-author { margin-top: 4px; font-size: 13px; color: var(--muted); }
.summary-description { margin-top: 4px; font-size: 12px; color: var(--faint); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.download-status { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 13px; }
.download-status.is-busy { border-color: #bcd2fb; background: #f7faff; }
.download-status.is-success { border-color: #a7e3c7; background: var(--green-soft); }
.download-status.is-error { border-color: #f5c2c2; background: var(--red-soft); color: var(--red); }
.download-status-head { display: flex; justify-content: space-between; font-weight: 600; color: var(--ink); }
.download-status.is-error .download-status-head { color: var(--red); }
#download-detail { margin-top: 4px; color: var(--muted); }
/* Shown when a foreign CDN refuses the page: the file opens in its own tab. */
.download-original { display: table; margin-top: 6px; color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.download-original:hover { color: var(--brand-dark); }
.progress-track { position: relative; height: 6px; margin-top: 8px; border-radius: 3px; background: var(--line); overflow: hidden; }
#progress-fill { height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--brand), #6d28d9); transition: width .2s; }
.progress-track.is-indeterminate #progress-fill { width: 35% !important; animation: indeterminate 1.1s ease-in-out infinite; }
@keyframes indeterminate { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.result-group { margin-top: 18px; }
.group-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.group-heading h3 { font-size: 15px; }
.group-heading p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.group-heading > span { flex: none; font-size: 12px; color: var(--faint); }
.download-list { border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.download-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #fff; }
.download-item:hover { background: #fafbfe; }
.download-item + .download-item { border-top: 1px solid var(--line); }
.download-item-copy { min-width: 0; }
.download-item-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.download-item-meta { font-size: 12px; color: var(--muted); }
.download-item-title .result-badge { margin-left: 8px; padding: 1px 8px; white-space: nowrap; }
.download-button { flex: none; padding: 8px 16px; border: 0; border-radius: 10px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.download-button:hover { background: var(--brand-dark); }
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.image-item { border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.image-thumb { aspect-ratio: 3 / 4; background: #e8eef8; }
.image-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-copy { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; font-size: 12px; }
.image-copy .download-button { padding: 5px 10px; font-size: 12px; }
.image-grid.has-live-photos { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.image-copy-live { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 8px; }
.image-copy-live > * { min-width: 0; max-width: 100%; }
.image-copy-live select { width: 100%; box-sizing: border-box; padding: 7px 6px; font: inherit; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: inherit; }
.image-copy-live .download-button { width: 100%; box-sizing: border-box; white-space: normal; }
.image-copy-live p { margin: 0; line-height: 1.6; overflow-wrap: anywhere; color: var(--muted); }
.image-thumb-unavailable { display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
.image-preview-unavailable { margin: 0; text-align: center; white-space: pre-line; overflow-wrap: anywhere; color: var(--muted); font-size: 13px; line-height: 1.7; }
/* Subtitles can run to dozens of small files: compact rows in a list that scrolls. */
.subtitle-list { max-height: 340px; overflow-y: auto; }
.subtitle-list .download-item { padding: 9px 16px; }
.subtitle-list .download-item-title { font-size: 14px; }
/* 保存到 … 更改: under a 抖音 result and in the batch bar. */
.save-place { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.link-button { padding: 0; border: 0; background: none; color: var(--brand); font-size: 12px; font-weight: 600; cursor: pointer; }
.link-button:hover { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
/* 抖音 batch (several links): the result panel gives way to the works as cards below the link box,
   with 画质 choices and a bottom bar, laid out as the desktop tool on the site's white background. */
.is-batch .hero { padding-bottom: 0; overflow: visible; }
.is-batch .hero-inner { display: block; }
.is-batch .hero-preview, .is-batch .hero-notice, .is-batch .hero-description, .is-batch .hero-perks,
.is-batch .tool-promo, .is-batch .logo-strip { display: none; }
.is-batch .hero-main { width: min(860px, 100%); margin: 0 auto; align-items: stretch; }
.batch-view { padding: 18px 0 28px; text-align: left; }
.batch-summary { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.batch-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; font-size: 24px; }
.batch-summary-copy { min-width: 0; }
.batch-summary-copy h2 { font-size: 18px; }
.batch-summary-copy p { margin-top: 4px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.batch-count { margin-left: auto; flex: none; text-align: right; line-height: 1.15; }
.batch-count strong { display: block; font-size: 26px; font-weight: 800; color: var(--ink); }
.batch-count span { font-size: 12px; color: var(--muted); }
.batch-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 14px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 13px; }
.batch-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-button { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; color: var(--text); }
.chip-button:hover { border-color: var(--brand); color: var(--brand); }
.batch-seg-group { display: inline-flex; align-items: center; }
.batch-option-name { margin-right: 8px; color: var(--muted); }
.batch-seg { position: relative; }
.batch-seg input { position: absolute; opacity: 0; pointer-events: none; }
.batch-seg span { display: inline-block; padding: 5px 12px; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; }
.batch-seg:first-of-type span { border-radius: 999px 0 0 999px; }
.batch-seg:last-of-type span { border-radius: 0 999px 999px 0; }
.batch-seg + .batch-seg span { margin-left: -1px; }
.batch-seg span:hover { color: var(--brand); }
.batch-seg input:checked + span { position: relative; border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.batch-seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.batch-grid { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 14px; }
.batch-grid:empty { display: none; }
.batch-card label { display: block; height: 100%; cursor: pointer; border: 2px solid var(--line); border-radius: 14px; background: #fff;
  overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.batch-card label:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15, 23, 42, .12); }
.batch-card.is-selected label { border-color: var(--brand); }
.batch-card label:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
/* 微博博主主页：卡片照样勾选，下面多一个“单独打开” */
.batch-card.is-pick { display: flex; flex-direction: column; }
.batch-card.is-pick label { height: auto; flex: 1; }
.batch-open { display: block; align-self: center; margin-top: 6px; }
.batch-open:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.batch-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.batch-more { display: flex; justify-content: center; margin-top: 18px; }
.batch-more .button { min-height: 42px; padding: 0 28px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font-size: 14px; }
.batch-more .button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.batch-more .button:disabled { color: var(--muted); cursor: default; }
.profile-back { display: block; margin: 0 0 12px; font-size: 13px; }
.batch-cover { position: relative; display: block; aspect-ratio: 3 / 4; background: #e8eef8; }
.batch-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .15s; }
.batch-card:not(.is-selected) .batch-cover img { opacity: .5; }
.batch-tick { position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; border: 2px solid #fff; border-radius: 50%;
  background: rgba(15, 23, 42, .35); box-shadow: 0 1px 4px rgba(15, 23, 42, .35); }
.batch-card.is-selected .batch-tick { background: var(--brand); }
.batch-card.is-selected .batch-tick::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.batch-badge { position: absolute; bottom: 7px; padding: 1px 7px; border-radius: 6px; background: rgba(15, 23, 42, .68); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.6; }
.batch-badge.is-left { left: 7px; }
.batch-badge.is-right { right: 7px; }
.batch-badge.is-quality { background: rgba(37, 99, 235, .92); }
.batch-card-copy { display: grid; gap: 3px; padding: 8px 10px 10px; }
.batch-card-copy strong { min-height: 2.8em; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--ink); display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.batch-card-copy small { font-size: 12px; color: var(--muted); }
.batch-card-meta.is-downloading { color: var(--brand); }
.batch-card-meta.is-saved { color: var(--green); }
.batch-card-meta.is-failed { color: var(--red); }
.batch-card-meta.is-partial { color: var(--amber); }
.batch-grid.author-works { grid-template-columns: minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.author-work { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 10px; }
.author-work + .author-work { border-top: 1px solid var(--line); }
.author-work label { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center; align-items: center; column-gap: 10px;
  flex: 1; min-width: 0; min-height: 44px; height: auto; padding: 6px 2px; border: 0; border-radius: 4px; transition: none; }
.author-work label:hover { transform: none; box-shadow: none; }
.author-work input { width: 17px; height: 17px; margin: 0; accent-color: var(--brand); }
.author-work-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  overflow-wrap: anywhere; font-size: 14px; font-weight: 600; line-height: 1.4; }
.author-work .batch-card-meta { grid-column: 2; overflow-wrap: anywhere; }
.author-work .batch-card-meta:empty { display: none; }
.author-work .batch-open { flex: none; margin: 0; padding: 8px 2px; }
.author-works.has-author-covers { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 14px; align-items: start; border: 0; background: transparent; }
.has-author-covers .author-work { flex-direction: column; align-items: stretch; gap: 0; padding: 0; border: 0; }
.has-author-covers .author-work label { border: 2px solid var(--line); padding: 8px; border-radius: 14px; }
.has-author-covers .author-work.is-selected label { border-color: var(--brand); }
.has-author-covers .has-cover label { display: flex; position: relative; flex-direction: column; align-items: stretch; padding: 0; }
.has-cover .author-work-cover { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--soft); }
.author-work.has-cover input { position: absolute; z-index: 1; inset-block-start: 8px; inset-inline-start: 8px; width: 22px; height: 22px; }
.has-cover .author-work-title { margin: 8px 10px; min-height: 2.8em; }
.has-cover .batch-card-meta { padding: 0 10px 8px; }
.batch-dock { position: sticky; bottom: 12px; z-index: 6; display: flex; align-items: center; gap: 18px; margin-top: 16px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .16); }
.batch-dock-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.batch-dock-info strong { font-size: 15px; color: var(--ink); }
.batch-dock .save-place { margin-top: 0; }
.batch-run { margin-top: 4px; font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
.batch-run .progress-track { margin-top: 6px; }
.batch-dock .batch-start { flex: none; min-height: 46px; padding: 0 26px; font-size: 15px; }
.batch-dock .batch-start:disabled { background: var(--faint); box-shadow: none; cursor: not-allowed; }
@media (max-width: 560px) {
  .batch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .author-works.has-author-covers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .batch-dock { flex-direction: column; align-items: stretch; }
}
.subtitle-list .download-button { padding: 6px 14px; font-size: 12px; }

/* Content sections */
.content-section { padding-top: 88px; }
.section-heading { text-align: center; margin-bottom: 32px; }
.section-heading h2, .content-section > h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -.4px; }
.section-heading p { margin-top: 8px; color: var(--muted); }
.content-section > h2 { text-align: center; margin-bottom: 28px; }
.step-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.step-grid article { position: relative; padding: 26px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-card); text-align: center; }
.step-icon, .feature-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto; border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-soft), #f3ecff); color: var(--brand); }
.step-number { display: block; margin-top: 16px; font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: .5px; }
.step-grid h3 { margin-top: 4px; font-size: 18px; }
.step-grid p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.feature-grid article { padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.feature-grid article:hover { border-color: #c9d8fb; box-shadow: var(--shadow-card); transform: translateY(-2px); }
.feature-grid .feature-icon { margin: 0; width: 46px; height: 46px; border-radius: 14px; }
.feature-grid h3 { margin-top: 16px; font-size: 17px; }
.feature-grid p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.supported-content-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.supported-content-grid article { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.supported-content-grid h3 { font-size: 17px; }
.supported-content-grid p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.faq-list details[open] { border-color: #c9d8fb; box-shadow: var(--shadow-card); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; font-weight: 600; color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg) translateY(-3px); transition: transform .15s; }
.faq-list details[open] summary::after { transform: rotate(225deg) translateY(-1px); border-color: var(--brand); }
.faq-list p { padding: 0 20px 18px; font-size: 14px; color: var(--muted); }

/* Update notice dialog: opened only when a visitor asks for it */
body.updates-open { overflow: hidden; }
.updates-dialog { width: min(520px, calc(100vw - 24px)); max-height: min(640px, calc(100vh - 48px)); padding: 0; border: 0; border-radius: 20px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, .28); color: var(--text); overflow: hidden; }
.updates-dialog[open] { display: flex; flex-direction: column; animation: updates-in .2s ease-out; }
.updates-dialog::backdrop { background: rgba(15, 23, 42, .42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
@keyframes updates-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.updates-dialog-head { display: flex; align-items: center; gap: 12px; padding: 20px 20px 16px; background: linear-gradient(180deg, var(--brand-soft), #fff); border-bottom: 1px solid var(--line); }
.updates-dialog-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), #6d28d9); color: #fff; }
.updates-dialog-title { min-width: 0; flex: 1; }
.updates-dialog-title h2 { font-size: 18px; }
.updates-dialog-title p { margin-top: 2px; font-size: 13px; color: var(--muted); }
.updates-dialog-close { flex: none; align-self: flex-start; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .8); color: var(--muted); font-size: 20px; line-height: 1; }
.updates-dialog-close:hover { background: #fff; color: var(--ink); }
.updates-dialog-list { list-style: none; margin: 0; padding: 18px 20px 6px; overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; min-height: 0; }  /* basis auto: Safari squeezes a 0 basis to nothing */
.updates-dialog-list li { position: relative; padding: 0 0 18px 22px; }
.updates-dialog-list li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--faint); box-shadow: 0 0 0 3px #fff; z-index: 1; }
.updates-dialog-list li::after { content: ""; position: absolute; left: 8px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.updates-dialog-list li:last-child::after { display: none; }
.updates-dialog-list .kind-dot-feature::before { background: var(--green); }
.updates-dialog-list .kind-dot-fix::before { background: #d97706; }
.updates-dialog-list .kind-dot-change::before { background: var(--indigo); }
.updates-dialog-list h3 { margin-top: 6px; font-size: 15px; }
.updates-dialog-list p { margin-top: 4px; font-size: 13px; color: var(--muted); white-space: pre-line; word-break: break-word; }
.update-latest { padding: 1px 8px; border-radius: 999px; background: #fee2e2; color: #b91c1c; font-size: 11px; font-weight: 600; }
.updates-dialog-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--soft); }
.updates-dialog-foot a { font-size: 14px; font-weight: 600; color: var(--brand); }
.updates-dialog-foot .button { min-height: 38px; padding: 0 18px; font-size: 14px; }

/* Update notices (badges and /updates page) */
.update-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.update-list li { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.update-list h2, .update-list h3 { margin-top: 8px; font-size: 16px; }
.update-list p { margin-top: 4px; font-size: 14px; color: var(--muted); white-space: pre-line; word-break: break-word; }
.update-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--faint); }
.notice-kind { flex: none; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--soft); color: var(--text); }
.kind-feature { background: var(--green-soft); color: var(--green); }
.kind-fix { background: var(--amber-soft); color: var(--amber); }
.kind-change { background: var(--indigo-soft); color: var(--indigo); }
.updates-main { padding: 56px 0 24px; max-width: 760px; }
.updates-intro h1 { font-size: 34px; font-weight: 800; }
.updates-intro p { margin: 8px 0 18px; color: var(--muted); }
.update-timeline { margin-top: 32px; }
.updates-empty { margin-top: 32px; padding: 28px; border: 1px dashed var(--line-strong); border-radius: 14px; text-align: center; color: var(--muted); }

/* Community channel */
.community-main { max-width: 760px; padding: 48px 0 24px; }
.community-intro h1 { font-size: 34px; font-weight: 800; letter-spacing: -.5px; }
.community-intro p { margin-top: 8px; color: var(--muted); }
.community-compose { margin-top: 24px; padding: 16px; border: 1px solid var(--line-strong); border-radius: 18px; background: #fff; box-shadow: var(--shadow-card);
  transition: border-color .15s, box-shadow .15s; }
.community-compose:focus-within { border-color: var(--brand); box-shadow: var(--shadow-card), 0 0 0 4px rgba(37, 99, 235, .1); }
.community-compose.is-reply { margin-top: 12px; padding: 12px; border-radius: 14px; box-shadow: none; }
.community-compose.is-reply .compose-row { display: none; }
.compose-row input { width: 100%; max-width: 260px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); font-size: 13px; }
.compose-row input:focus { outline: none; border-color: var(--brand); background: #fff; }
.community-compose textarea { display: block; width: 100%; margin-top: 10px; min-height: 76px; padding: 4px 2px; border: 0; resize: vertical; background: transparent;
  font-size: 15px; line-height: 1.6; color: var(--ink); }
.community-compose.is-reply textarea { margin-top: 0; min-height: 56px; }
.community-compose textarea:focus { outline: none; }
.community-compose textarea::placeholder { color: var(--faint); }
.compose-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.compose-foot { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.compose-note { flex: 1; min-width: 0; font-size: 12px; color: var(--faint); }
.compose-count { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.compose-foot .button { min-height: 38px; padding: 0 20px; font-size: 14px; border-radius: 11px; }
.compose-status { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--soft); font-size: 13px; }
.compose-status.is-error { background: var(--red-soft); color: var(--red); }
.compose-status.is-success { background: var(--green-soft); color: var(--green); }
.community-closed, .community-empty { margin-top: 24px; padding: 24px; border: 1px dashed var(--line-strong); border-radius: 14px; text-align: center; color: var(--muted); }
.community-list { margin-top: 28px; display: grid; gap: 12px; }
.community-post { display: flex; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.community-post.is-admin { border-color: #c9d8fb; background: #fbfcff; }
.post-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-soft), #f3ecff);
  color: var(--brand); font-weight: 700; font-size: 15px; }
.community-post.is-admin .post-avatar { background: linear-gradient(135deg, var(--brand), #6d28d9); color: #fff; }
.post-main { flex: 1; min-width: 0; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.post-meta strong { color: var(--ink); }
.post-meta time { color: var(--faint); font-size: 12px; }
.admin-badge { padding: 1px 8px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 600; }
.post-body { margin-top: 4px; font-size: 15px; color: var(--text); white-space: pre-line; word-break: break-word; }
.post-replies { margin-top: 12px; display: grid; gap: 8px; }
.community-reply { padding: 10px 14px; border-radius: 12px; background: var(--soft); }
.community-reply.is-admin { background: var(--brand-soft); }
.community-reply .post-body { font-size: 14px; }
.reply-toggle { margin-top: 8px; padding: 0; border: 0; background: none; font-size: 13px; color: var(--muted); }
.reply-toggle:hover { color: var(--brand); }
.community-pages { display: flex; justify-content: space-between; margin-top: 20px; font-size: 14px; font-weight: 600; }
.community-pages a { color: var(--brand); }

/* Platform directory */
.platform-toolbar { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.platform-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.platform-filter { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; }
.platform-filter span { color: var(--faint); margin-left: 2px; }
.platform-filter[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: #fff; }
.platform-filter[aria-pressed="true"] span { color: #dbe6fd; }
.platform-visible-count { font-size: 13px; color: var(--muted); }
.platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 18px; }
.platform-card { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-size: 14px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.platform-card:hover { border-color: #c9d8fb; box-shadow: var(--shadow-card); transform: translateY(-1px); }
.platform-card.is-selected { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.platform-icon { flex: none; width: 28px; height: 28px; border-radius: 8px; overflow: hidden; background: var(--soft); }
.platform-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.platform-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Footer */
.site-footer { margin-top: 96px; border-top: 1px solid var(--line); background: var(--soft); }
.footer-inner { display: grid; gap: 16px; padding: 36px 0; }
.footer-brand p { margin-top: 6px; font-size: 13px; color: var(--muted); }
.footer-brand .brand { font-size: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.footer-links a:hover { color: var(--brand); }
.footer-guides { margin-top: 10px; color: var(--muted); }
.footer-guides span { font-weight: 600; color: var(--text); }
.related-guides h2 { font-size: 22px; margin-bottom: 14px; }
.related-guide-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.related-guide-list a { display: inline-flex; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; }
.related-guide-list a:hover { border-color: #b9cdf8; color: var(--brand); }
.footer-note { font-size: 12px; color: var(--faint); }

/* Feedback dialog */
body.feedback-open { overflow: hidden; }
.feedback-dialog { width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 22px; border: 0; border-radius: 20px; box-shadow: 0 24px 60px rgba(15, 23, 42, .25); color: var(--text); }
.feedback-dialog::backdrop { background: rgba(15, 23, 42, .45); }
.feedback-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.section-kicker { font-size: 12px; font-weight: 600; color: var(--brand); }
.feedback-heading h2 { font-size: 20px; margin-top: 2px; }
.feedback-close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--soft); font-size: 20px; line-height: 1; color: var(--muted); }
.feedback-intro { margin: 8px 0 14px; font-size: 14px; color: var(--muted); }
#feedback-form { display: grid; gap: 6px; }
#feedback-form label { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
#feedback-form label span { font-weight: 400; color: var(--faint); }
#feedback-form .feedback-required { color: var(--red); }
#feedback-form input, #feedback-form select, #feedback-form textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; font-size: 14px; }
#feedback-form textarea { resize: vertical; }
#feedback-form input:focus, #feedback-form select:focus, #feedback-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.feedback-privacy { margin-top: 6px; font-size: 12px; color: var(--faint); }
.feedback-submit-status { padding: 8px 12px; border-radius: 8px; background: var(--soft); font-size: 13px; }
.feedback-submit-status.is-error { background: var(--red-soft); color: var(--red); }
.feedback-submit-status.is-success { background: var(--green-soft); color: var(--green); }
.feedback-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.feedback-cancel { min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; font-weight: 500; }
.feedback-success { text-align: center; padding: 12px 0 0; }
.feedback-success-mark { width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-size: 24px; font-weight: 700; }
.feedback-success h3 { font-size: 18px; }
.feedback-success p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.feedback-reference { font-family: ui-monospace, Consolas, monospace; }
.feedback-success .feedback-actions { justify-content: center; }

/* Wider screens */
/* QQ group: load the original QR image only after opening the dialog. */
body.qq-group-open { overflow: hidden; }
.qq-group-dialog { width: min(420px, calc(100vw - 24px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 22px; overflow: auto; border: 0; border-radius: 20px; box-shadow: 0 24px 60px rgba(15, 23, 42, .25); color: var(--text); }
.qq-group-dialog::backdrop { background: rgba(15, 23, 42, .45); }
.qq-group-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.qq-group-heading h2 { margin-top: 2px; font-size: 22px; }
.qq-group-close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--soft); color: var(--muted); font-size: 24px; line-height: 1; }
.qq-group-close:hover { background: var(--brand-soft); color: var(--brand); }
.qq-group-number { margin-top: 16px; font-size: 17px; text-align: center; }
.qq-group-number strong { color: var(--ink); user-select: all; }
.qq-group-intro { margin: 4px 0 14px; color: var(--muted); font-size: 14px; text-align: center; }
.qq-group-image { display: block; width: 100%; height: auto; margin-inline: auto; border-radius: 12px; }
.qq-group-image-error { margin-top: 12px; color: var(--red); font-size: 14px; }
.qq-group-original { margin-top: 12px; font-size: 14px; text-align: center; }
.qq-group-original a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) {
  .nav-platform, .nav-guide { display: none; }
}

@media (min-width: 720px) {
  .step-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .supported-content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .footer-note { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .hero { padding: 64px 0 56px; text-align: left; }
  .hero-inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: start; }
  .hero-main { align-items: flex-start; }
  .hero-title { font-size: clamp(36px, 3.6vw, 48px); }
  .hero-card { margin-top: 26px; }
  .hero-perks, .logo-strip { justify-content: flex-start; }
  .hero-perks { padding-left: 4px; }
  .parse-status, .platform-selection-status { text-align: left; }
  .feedback-error-entry { justify-content: flex-start; }
  .hero-preview { width: auto; margin-top: 0; padding: 22px; position: sticky; top: 82px; max-height: calc(100vh - 100px); overflow: auto; overscroll-behavior: contain; }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Narrow screens */
@media (max-width: 719px) {
  .nav-platform, .nav-guide { display: none; }
  .header-inner { gap: 8px; min-height: 56px; }
  .brand { font-size: 19px; }
  .main-nav { margin-left: 4px; }
  .header-actions { gap: 4px; }
  .header-updates, .header-community, .main-nav > .platform-menu summary { padding: 6px 8px; }
  .label-long { display: none; }
  .compose-note { display: none; }
  .header-feedback { padding: 6px 10px; }
  .header-qq-group { padding: 6px 8px; }
  .qq-label-long { display: none; }
  .qq-label-short { display: inline; }
  .platform-menu-panel { position: fixed; top: 60px; left: 16px; right: 16px; width: auto; transform: none; }
  .hero { padding: 32px 0 28px; }
  .hero-title { letter-spacing: -.5px; }
  .hero-description { font-size: 15px; }
  .parse-bar { border-radius: 18px; }
  .input-frame { padding: 14px 14px 4px 14px; }
  .parse-hint { display: none; }
  .parse-toolbar { justify-content: space-between; }
  .parse-button { flex: 1; max-width: 220px; }
  .logo-strip { gap: 8px; margin-top: 22px; }
  .hero-preview { padding: 14px; border-radius: 18px; }
  .summary-art { width: 104px; height: 72px; }
  .content-section { padding-top: 64px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .feature-grid article { padding: 16px; border-radius: 16px; }
  .feature-grid h3 { margin-top: 12px; font-size: 15px; }
  .feature-grid p { font-size: 13px; }
  /* The buttons only say 下载 (as the desktop tools), so they stay beside their row. */
  .download-item { gap: 10px; padding: 12px 14px; }
  .download-item .download-button { padding: 9px 16px; }
  .subtitle-list .download-item .download-button { padding: 6px 14px; }
  .tool-quick .button { flex: 1 1 auto; }
  .updates-dialog { width: 100vw; max-width: 100vw; max-height: 82vh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .updates-dialog[open] { animation-name: updates-sheet-in; }
}
@keyframes updates-sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 520px) {
  .site-header .brand span { display: none; }
}
@media (max-width: 390px) {
  .main-nav { margin-left: 0; }
  .header-community, .header-updates { padding-inline: 4px; }
  .header-feedback, .header-qq-group { padding-inline: 6px; }
}
@media (max-width: 360px) {
  .header-inner { gap: 4px; }
  .main-nav { margin-left: 0; }
  .header-community { display: none; }
  .header-updates, .main-nav > .platform-menu summary { padding-inline: 4px; }
  .header-feedback, .header-qq-group { padding-inline: 6px; }
}
@media (max-width: 380px) {
  .header-updates { font-size: 13px; }
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

.transfer-controls { margin-top: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; font-size: 13px; }
.transfer-controls[hidden], .transfer-controls [hidden] { display: none !important; }
.transfer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 8px; }
.transfer-actions select { min-width: 120px; max-width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; padding: 8px; color: #0f172a; }
.transfer-controls p { color: #64748b; line-height: 1.6; margin: 6px 0 0; }

/* Tutorials with recorded screenshots (guide_walkthrough.html) and the link to them under 如何使用. */
.guide-tutorial-link { margin-top: 22px; text-align: center; }
.guide-tutorial-link a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border: 1px solid #c9d8fb; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 14px; font-weight: 600; }
.guide-tutorial-link a:hover { border-color: var(--brand); }
.walkthrough-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 64px; counter-reset: none; }
.walkthrough-copy { display: flex; gap: 14px; align-items: flex-start; max-width: 760px; margin: 0 auto; }
.walkthrough-number { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 16px; font-weight: 800; line-height: 1; }
.walkthrough-text { min-width: 0; }
.walkthrough-text h3 { font-size: 20px; line-height: 34px; }
.walkthrough-text p { margin-top: 6px; }
.walkthrough-text .walkthrough-tip { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); font-size: 14px; }
.walkthrough-shot { margin: 20px 0 0; }
.walkthrough-shot img { display: block; max-width: 100%; height: auto; margin: 0 auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-card); }
.walkthrough-shot.is-portrait img { max-width: min(100%, 300px); }
.walkthrough-shot figcaption { margin-top: 10px; text-align: center; font-size: 13px; color: var(--muted); }
@media (max-width: 719px) {
  .walkthrough-list { gap: 44px; }
  .walkthrough-copy { gap: 12px; }
  .walkthrough-number { width: 30px; height: 30px; font-size: 15px; }
  .walkthrough-text h3 { font-size: 18px; line-height: 30px; }
  .walkthrough-shot img { border-radius: 12px; }
  .walkthrough-shot.is-portrait img { max-width: min(100%, 240px); }
}
